Skip to main content
POST
/
teams
Create a team for a company
curl --request POST \
  --url https://openapi.pleo.io/v1/teams \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "code": "<string>"
}
'
{
  "id": "<string>",
  "name": "<string>",
  "code": "<string>",
  "employees": [
    {
      "id": "<string>",
      "firstName": "<string>",
      "lastName": "<string>",
      "email": "<string>",
      "jobTitle": "<string>",
      "role": "<string>",
      "phone": "<string>",
      "avatar": {
        "url": "<string>"
      },
      "code": "<string>",
      "teamId": "<string>"
    }
  ],
  "reviewers": [
    {
      "id": "<string>",
      "firstName": "<string>",
      "lastName": "<string>",
      "email": "<string>",
      "jobTitle": "<string>",
      "role": "<string>",
      "phone": "<string>",
      "avatar": {
        "url": "<string>"
      },
      "code": "<string>",
      "teamId": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Open API Bearer token

Body

application/json
name
string
required

Team name

code
string

Team code

Response

A team has been created

id
string
required

The unique UUID identifier of the department

name
string
required

Name of the department

code
string

Code of the department

employees
object[]

Team employee

reviewers
object[]

Team reviewers