Partially update a company member
curl --request PATCH \
--url https://paradigm.lighton.ai/api/v3/users/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"first_name": "<string>",
"last_name": "<string>",
"account_expiration_date": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://paradigm.lighton.ai/api/v3/users/{id}"
payload = {
"first_name": "<string>",
"last_name": "<string>",
"account_expiration_date": "2023-11-07T05:31:56Z"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
first_name: '<string>',
last_name: '<string>',
account_expiration_date: '2023-11-07T05:31:56Z'
})
};
fetch('https://paradigm.lighton.ai/api/v3/users/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"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
},
"roles": [
{
"name": "<string>",
"id": 123
}
],
"groups": [
{
"id": 123,
"name": "<string>",
"description": "<string>",
"role": "<string>",
"category": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
]
}Users
Partially update a company member
This endpoint allows to update a specific company member by ID.
PUT: Requires all fields (first_name, last_name, account_expiration_date, language). PATCH: Allows partial updates - only provide the fields you want to change.
Permissions:
- Admin, SysAdmin, Account Manager: can update any user
- Company Admin: can update users from their own company only
Throttling: 60 requests per minute
It is API Key protected and restricted to users with appropriate permissions.
PATCH
/
api
/
v3
/
users
/
{id}
Partially update a company member
curl --request PATCH \
--url https://paradigm.lighton.ai/api/v3/users/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"first_name": "<string>",
"last_name": "<string>",
"account_expiration_date": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://paradigm.lighton.ai/api/v3/users/{id}"
payload = {
"first_name": "<string>",
"last_name": "<string>",
"account_expiration_date": "2023-11-07T05:31:56Z"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
first_name: '<string>',
last_name: '<string>',
account_expiration_date: '2023-11-07T05:31:56Z'
})
};
fetch('https://paradigm.lighton.ai/api/v3/users/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"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
},
"roles": [
{
"name": "<string>",
"id": 123
}
],
"groups": [
{
"id": 123,
"name": "<string>",
"description": "<string>",
"role": "<string>",
"category": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
]
}Authorizations
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Response
Company member updated successfully