Git Configuration

Replace Team Git Scope

Replaces the team's whole Git scope: each key sent becomes exactly that list, and a key not sent is cleared. At least one key is required; clearing the whole scope is a DELETE

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

Request

Path parameters

team_idinteger required

The team id

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.