English
API Reference
cURL
curl --request PATCH \ --url https://paradigm.lighton.ai/api/v2/users/{id}/update/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "first_name": "<string>", "last_name": "<string>", "account_expiration_date": "2023-11-07T05:31:56Z", "language": "ar" } '
{ "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>" } ] }
This endpoint allows you to update the details of a company member. It is restricted to admin and company admin users. \ to admin and company admin users.”
Bearer token authentication
The unique identifier of the user.
ar
en
fr
de
Successful response
Show child attributes