Teams

Set a team's repository role

Assigns or changes the team's role on a repository. Team repository management and repository administration are both required on their distinct targets. Requires authenticated authority and enforces current resource policy.

put/api/orgs/{slug}/teams/{teamSlug}/repos/{repoId}

Request

  • Base URL
    https://git.cafe
  • Auth
    • API key in cookie gc-session
    • or HTTP bearer
    • or HTTP basic
    • or HTTP token

Path parameters

slugstring required
teamSlugstring required
repoIdstring required

Request body

expectedTeamVersioninteger required
expectedLedgerIdstring nullable required
role'repo-reader' | 'repo-triager' | 'repo-writer' | 'repo-maintainer' | 'repo-admin' | 'null' nullable required

Response

Response for status 200

teamIdstring required
teamVersioninteger required
repoIdstring required
ledgerIdstring nullable required
role'repo-reader' | 'repo-triager' | 'repo-writer' | 'repo-maintainer' | 'repo-admin' | 'null' nullable required

Changes

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