Add Users to Team
POST
/v2/api/team/{team_id}/users
Team
How to View Your Team ID?
View Your Team ID
How to View Your User ID?
View Your User ID
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/v2/api/team/242/users' \
--header 'Content-Type: application/json' \
--data-raw '{
"users": [
2,
19
],
"created_by": "admin@example.com"
}'
Response Response Example
200 - Example 1
{
"success": true,
"message": "Users added to team",
"data": [
{
"id": 667,
"user": {
"id": 2,
"email": "user@example.com",
"is_staff": true,
"is_superuser": true,
"is_active": true,
"date_joined": "2024-01-20T01:38:19Z",
"first_name": "Saad",
"last_name": "Shaikh",
"organization": {
"id": 1,
"org_name": "Data Science Dojo",
"domain": "datasciencedojo.com",
"org_logo_url": null,
"org_icon_url": null,
"is_deleted": false,
"created_by": "System",
"created_on": "2024-01-20T01:32:56.659642Z",
"modified_by": "user@example.com",
"modified_on": "2024-01-20T01:32:56.659663Z"
}
},
"role": "Viewer"
}
]
}
Request
Path Params
team_id
integerÂ
required
Example:
242
Body Params application/json