PUT
/
team
Create a new team
curl --request PUT \
  --url https://api.wirespeed.co/team \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "ownerFirstName": "<string>",
  "ownerLastName": "<string>",
  "ownerEmail": "<string>",
  "domain": "<string>",
  "demo": false
}'
{
  "data": [
    {
      "id": "<string>",
      "intercomId": "<string>",
      "createdAt": "<string>",
      "fullName": "<string>",
      "email": "<string>",
      "locked": true,
      "superAdmin": true,
      "activeTeamId": "<string>",
      "parentTeamId": "<string>",
      "completedOnboarding": true,
      "firstName": "<string>",
      "lastName": "<string>",
      "teamId": "<string>",
      "autoSubscribeToNotifications": true,
      "role": "ADMIN",
      "isExternal": true
    }
  ],
  "totalCount": 123
}

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string
required

Name of the team (1-512 characters)

ownerEmail
string
required

Email address of the team owner

domain
string
required

Domain URL for the team

ownerFirstName
string

First name of the team owner (1-512 characters)

ownerLastName
string

Last name of the team owner (1-512 characters)

demo
boolean
default:false

Whether this is a demo team

Response

data
object[]
required

Array of team member user objects

totalCount
number
required

Total number of team members matching the search criteria