curl --request POST \
--url https://api.comm.com/api/v1/teams/{team}/create-user \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"email": "jsmith@example.com",
"password": "<string>",
"role": "admin"
}'
{
"message": "User created and added to team successfully",
"user": {
"id": "<string>",
"name": "<string>",
"email": "<string>",
"role": "<string>"
}
}
curl --request POST \
--url https://api.comm.com/api/v1/teams/{team}/create-user \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"email": "jsmith@example.com",
"password": "<string>",
"role": "admin"
}'
{
"message": "User created and added to team successfully",
"user": {
"id": "<string>",
"name": "<string>",
"email": "<string>",
"role": "<string>"
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The team ID
The response is of type object
.