Skip to main content
PUT
/
api
/
v2
/
users
/
{id}
/
workspaces
/
update
/
Update workspaces of a company member
curl --request PUT \
  --url https://paradigm.lighton.ai/api/v2/users/{id}/workspaces/update/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "workspaces": [
    123
  ]
}'
{
  "id": 123,
  "username": "<string>",
  "first_name": "<string>",
  "last_name": "<string>",
  "email": "<string>",
  "is_active": true,
  "date_joined": "2023-11-07T05:31:56Z",
  "account_expiration_date": "2023-11-07T05:31:56Z",
  "last_login": "2023-11-07T05:31:56Z",
  "invitation_status": "<string>",
  "language": "<string>",
  "company": {
    "name": "<string>",
    "id": 123
  },
  "groups": [
    {
      "name": "<string>",
      "id": 123
    }
  ],
  "workspaces": [
    {
      "id": 123,
      "name": "<string>",
      "description": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer token authentication

Path Parameters

id
integer
required

The unique identifier of the user.

Body

workspaces
integer[]

Response

Successful response

id
integer
required
username
string
required
first_name
string
required
last_name
string
required
email
string
required
is_active
boolean
required
date_joined
string<date-time>
required
account_expiration_date
string<date-time>
required
last_login
string<date-time>
required
invitation_status
string
required
language
string
required
company
object
required
groups
object[]
required
workspaces
object[]
required
I