English
API Reference v2
cURL
curl --request POST \ --url https://paradigm.lighton.ai/api/v2/companies/{id}/users/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "username": "<string>", "email": "[email protected]", "first_name": "<string>", "last_name": "<string>", "account_expiration_date": "2023-11-07T05:31:56Z", "language": "ar", "groups": [ 123 ], "roles": [ 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": { "id": 123, "name": "<string>" }, "roles": [ { "id": 123, "name": "<string>" } ], "groups": [ { "id": 123, "name": "<string>", "description": "<string>", "role": "<string>", "category": "<string>", "created_at": "2023-11-07T05:31:56Z" } ] }
This endpoint allows to create a company member.
It is restricted to admin and company admin users.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The unique identifier of the company.
ar
en
fr
de
Show child attributes