Create a User in an Organization
POST
/api/v2/organizations/{organization_id}/users
Organizationsv2
Assigns the user a designated role within the organization, which may define their access level and permissions.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v2/organizations//users' \
--header 'Content-Type: application/json' \
--data-raw '{
"first_name": "string",
"last_name": "string",
"email": "user@example.com",
"password": "string",
"role": "string"
}'
Response Response Example
201 - Example 1
{
"success": true,
"message": "string",
"data": {
"id": 0,
"email": "user@example.com",
"is_staff": true,
"is_superuser": true,
"is_active": true,
"date_joined": "2019-08-24T14:15:22Z",
"first_name": "string",
"last_name": "string",
"organization": {
"id": 0,
"org_name": "string",
"domain": "string",
"description": "string",
"org_logo_url": "string",
"org_icon_url": "string",
"is_deleted": true,
"created_by": "string",
"created_on": "2019-08-24T14:15:22Z",
"modified_by": "string",
"modified_on": "2019-08-24T14:15:22Z"
}
}
}
Request
Path Params
organization_id
integerÂ
required
Body Params application/json