POST
/
v1
/
teams
/
{team}
/
create-user
cURL
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>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

team
string<uuid>
required

The team ID

Body

application/json
email
string<email>
required
Maximum length: 255
password
string
required
Minimum length: 8
role
enum<string>
Available options:
admin,
member

Response

message
string
required
Example:

"User created and added to team successfully"

user
object
required