Link a Chelsea team to a GitHub team
curl --request PUT \ --url https://example.com/api/v1/teams/example/github-team \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "defaultPermission": "pull", "slug": "example" }'Links the team to a GitHub team of the organization, with what the team gets on a new repository. A project’s new repository then gives the team’s GitHub team access. Linking again replaces the link and keeps its sync state. Requires settings.manage, github.view and github.manage.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Resource identifier (CUID2).
Resource identifier (CUID2).
Request Body
Section titled “Request Body”object
What the team gets on a new repository; push (Write) when omitted.
The slug of the GitHub team to link.
Responses
Section titled “Responses”The link.
object
object
Where the membership sync of this link stands. Absent on an older server.
object
When a person confirmed that Chelsea decides who is on the GitHub team; null before.
object
GitHub logins added to the team.
Why a failed run stopped, in a sentence.
Invited to the GitHub team and not yet in it. Information only: a sync never cancels an invitation.
People GitHub or Chelsea refused to add or remove, with the reason.
object
GitHub logins taken out of the team; they stay in the organization.
synced when everything applied, partial when GitHub refused some, failed when none ran.
On the team through a child team and not wanted by Chelsea. Information only: they stay, and a sync does not change them.
When the last run finished; null before.
Example
{ "data": { "defaultPermission": "pull", "sync": { "lastResult": { "status": "synced" } } }}Validation error. Parse failures include field paths and expectations.
Validation error with safe field paths and expected values; submitted values are never returned.
object
object
Stable machine-readable error code.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Not found.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Conflict.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Invalid input.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}GitHub failed (GITHUB_API_ERROR), or Chelsea’s GitHub App or the organization has not granted the access this needs (GITHUB_ACCESS_MISSING; the message names the step in Settings, Integrations, GitHub).
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC