PUT/spaces/api/v1/users/{userID}.json

PUT_v1_users_{userID}.json

Updates a user stored in the central store

Path Params

  • Name
    userID
    Type
    integer
    required
    Description

Responses

  • Code
    200
    Type
    object
    Schema
    Description
    200 OK
  • Code
    500
    Type
    object
    Schema
    Description
    500 Internal Server Error

Examples

200 OK

User
{
  "user": {
    "LinkedCompany": {
      "company": {
        "id": 0,
        "meta": {},
        "type": "string"
      }
    },
    "LinkedInstallation": {
      "installation": {
        "id": 0,
        "meta": {},
        "type": "string"
      }
    },
    "avatar": "string",
    "createdAt": "2024-12-19T16:02:34.102Z",
    "createdBy": {
      "id": 0,
      "meta": {},
      "type": "string"
    },
    "deletedAt": "2024-12-19T16:02:34.102Z",
    "deletedBy": {
      "id": 0,
      "meta": {},
      "type": "string"
    },
    "email": "string",
    "firstname": "string",
    "id": 0,
    "isAdmin": true,
    "isOnboarded": true,
    "lastname": "string",
    "preferences": {
      "emailEnabled": true,
      "showOnboardingHelp": true,
      "welcomeTextEnabled": true
    },
    "state": "string",
    "updatedAt": "2024-12-19T16:02:34.102Z",
    "updatedBy": {
      "id": 0,
      "meta": {},
      "type": "string"
    },
    "userType": "string"
  }
}