Update a company
curl --request PATCH \
--url https://api.lighton.ai/api/v2/companies/{id}/update/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"dpo_email": "jsmith@example.com",
"max_users": 123,
"allow_company_admins_to_manage_sso": false,
"storage_limit_company_ws": 123,
"storage_limit_personal_ws": 123,
"storage_limit_custom_ws": 123
}
'import requests
url = "https://api.lighton.ai/api/v2/companies/{id}/update/"
payload = {
"name": "<string>",
"dpo_email": "jsmith@example.com",
"max_users": 123,
"allow_company_admins_to_manage_sso": False,
"storage_limit_company_ws": 123,
"storage_limit_personal_ws": 123,
"storage_limit_custom_ws": 123
}
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({
name: '<string>',
dpo_email: 'jsmith@example.com',
max_users: 123,
allow_company_admins_to_manage_sso: false,
storage_limit_company_ws: 123,
storage_limit_personal_ws: 123,
storage_limit_custom_ws: 123
})
};
fetch('https://api.lighton.ai/api/v2/companies/{id}/update/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 123,
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"max_users": 123,
"dpo_email": "jsmith@example.com",
"allow_company_admins_to_manage_sso": true,
"storage_limit_company_ws": 123,
"storage_limit_personal_ws": 123,
"storage_limit_custom_ws": 123,
"active_members_count": 123
}Companies
Update a company
This endpoint allows you to update the details of an existing company.
This is useful for maintaining accurate company information within the system.
It is restricted to admin and company admin users.
PATCH
/
api
/
v2
/
companies
/
{id}
/
update
/
Update a company
curl --request PATCH \
--url https://api.lighton.ai/api/v2/companies/{id}/update/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"dpo_email": "jsmith@example.com",
"max_users": 123,
"allow_company_admins_to_manage_sso": false,
"storage_limit_company_ws": 123,
"storage_limit_personal_ws": 123,
"storage_limit_custom_ws": 123
}
'import requests
url = "https://api.lighton.ai/api/v2/companies/{id}/update/"
payload = {
"name": "<string>",
"dpo_email": "jsmith@example.com",
"max_users": 123,
"allow_company_admins_to_manage_sso": False,
"storage_limit_company_ws": 123,
"storage_limit_personal_ws": 123,
"storage_limit_custom_ws": 123
}
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({
name: '<string>',
dpo_email: 'jsmith@example.com',
max_users: 123,
allow_company_admins_to_manage_sso: false,
storage_limit_company_ws: 123,
storage_limit_personal_ws: 123,
storage_limit_custom_ws: 123
})
};
fetch('https://api.lighton.ai/api/v2/companies/{id}/update/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 123,
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"max_users": 123,
"dpo_email": "jsmith@example.com",
"allow_company_admins_to_manage_sso": true,
"storage_limit_company_ws": 123,
"storage_limit_personal_ws": 123,
"storage_limit_custom_ws": 123,
"active_members_count": 123
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Response
200 - application/json