Edit Teams

There are two ways of editing an existing team

📘

Go to Create Teams for reference on properties

Refer to the Create Teams page to see the required and allowed properties to perform these operations.

1. Edit the team by providing only the properties that need to be updated

PATCH: /api/v3/teams//

$ curl -X PATCH \
  https://www.zenput.com/api/v3/teams/<team-id>/ \
    -H 'content-type: application/json' \
  -H 'X-API-TOKEN: your-api-token-goes-here' \
  -d '{
  "description": "Team description"
}'

2. Replace the entire team

PUT: /api/v3/teams//

$ curl -X PUT \
  https://www.zenput.com/api/v3/teams/<team-id>/ \
    -H 'content-type: application/json' \
  -H 'X-API-TOKEN: your-api-token-goes-here' \
  -d '{
  "name": "Team name",
  "description": "Team description",
  "users": [
    {
      "id": 0
    }
  ],
  "locations": [
    {
      "id": 0
    }
  ],
  "external_key": "team-external-key",
  "parent": {
    "id": 0
  }
}'

❗️

Don't forget the trailing slash!

Both PUT and PATCH requests need to have a trailing slash on the URL.