teams

Create a new team

Changed on

Create a new team. Access policy: administrator

post/teams

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/teams
  • Auth
    • API key in header X-API-KEY
    • or API key in header Authorization

Request body

Namestring required

Name

TeamLeadersinteger[]

TeamLeaders

Example request

{
  "Name": "developers",
  "TeamLeaders": [
    3,
    5
  ]
}

Response

Success

DenyPortainerAccessboolean

Whether members of this team are denied access to Portainer itself (EE only)

Idinteger

Team Identifier

Namestring

Team name

Example response

{
  "Id": 1,
  "Name": "developers"
}

Changes