Request headers

Only registered user can perform this action
  Authentication - string - required
    Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"

Request body example

{
  "user_emails": [
    "sample_email@gmail.com",
    ...
  ],
  "team": {
    "name": "team"
  }
}

Success response body

{
  "team": {
    "id": 20877,
    "name": "team",
    "member_roles_count": 2,
    "admin_roles_count": 1
  },
  "workspace": {
    "id": 14891,
    "name": "workspace",
    "available_users_count": 30,
    "can_add_new_users": true,
    "can_invite_users_count": 27
  }
}

Params

Param name Description
user_emails
optional

user_emails for inviting to team

Validations:

  • Must be an array of String

team
required

Validations:

  • Must be a Hash

team[name]
required

Name of team

Validations:

  • Must be a String