Update a team

PUT
/v1/{namespace}/teams/{team}

Authorization

headerAuthorizationBearer <token>

A personal or service access token, sent as Authorization: Bearer <token>. See access tokens.

Path Parameters

namespace*string

The namespace id.

team*string

The team id.

Request Body

application/json
  1. body

A team to create or update.

name*string

A display name.

description*string

A free-form description.

permissions*array<>

The namespace permissions the team's members hold. Omit it on update to keep the current permissions.

Response Body

The updated team.

application/json
  1. response

A group of users that holds permissions in the namespace.

id*string

The team id.

name*string

A display name.

description*string

A free-form description.

permissions*array<>

The namespace permissions every member of the team holds.

protected*boolean

Whether the team is one of the built-in teams, everybody and admin, which cannot be changed or deleted.

curl -X PUT 'https://eu-sov-1.bytesafecloud.eu/v1/my-namespace-id/teams/string' \  -H 'Content-Type: application/json' \  -d '{  "description": "Owns the build and release infrastructure.",  "name": "Platform",  "permissions": [    "fw:read"  ]}'
{  "id": "3b6f1e2a-9c4d-4e7f-a815-6d2c0b9e7f41",  "name": "Platform",  "description": "Owns the build infrastructure.",  "permissions": [    "team:read",    "ns:create:pat"  ],  "protected": false}