Git Configuration

Update Team Git Scope Keys

Writes each key sent; keys not sent are left as they are. mode=merge (default) replaces each key's whole list; mode=add adds the ids sent to it and removes none

patch/api/v1/git/config/teams/{team_id}/scope

Request

Path parameters

team_idinteger required

The team id

Query parameters

mode'merge' | 'add'

merge replaces each key sent; add adds to it

Request body

repository_idsinteger[] nullable

Repository ids; [] clears the key

service_idsinteger[] nullable

Service ids; [] clears the key

Example request

{
  "repository_ids": [
    101,
    102
  ],
  "service_ids": [
    201
  ]
}

Response

Successful Response

team_idinteger required

The team id

team_namestring nullable

The team name

Example response

{
  "team_id": 123,
  "team_name": "Payments",
  "repositories": [
    {
      "id": 101,
      "name": "api",
      "url": "https://github.com/acme/api"
    }
  ],
  "services": [
    {
      "id": 201,
      "name": "checkout"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.