Create a new company member
curl --request POST \
--url https://paradigm.lighton.ai/api/v3/users \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "jsmith@example.com",
"username": "<string>"
}
'import requests
url = "https://paradigm.lighton.ai/api/v3/users"
payload = {
"email": "jsmith@example.com",
"username": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: 'jsmith@example.com', username: '<string>'})
};
fetch('https://paradigm.lighton.ai/api/v3/users', 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
Create a new company member
This endpoint allows to create a new company member.
Permissions:
- Admin, SysAdmin, Account Manager: can create users for any company
- Company Admin: can create users for their own company
Throttling: 60 requests per minute
It is API Key protected and restricted to users with appropriate permissions.
POST
/
api
/
v3
/
users
Create a new company member
curl --request POST \
--url https://paradigm.lighton.ai/api/v3/users \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "jsmith@example.com",
"username": "<string>"
}
'import requests
url = "https://paradigm.lighton.ai/api/v3/users"
payload = {
"email": "jsmith@example.com",
"username": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: 'jsmith@example.com', username: '<string>'})
};
fetch('https://paradigm.lighton.ai/api/v3/users', 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 created successfully