Get the GitHub team a Chelsea team is linked to
curl --request GET \ --url https://example.com/api/v1/teams/example/github-team \ --header 'Authorization: Bearer <token>'Returns the link of a Chelsea team to a GitHub team, or null when it has none, with sync: when a person confirmed that Chelsea decides who is on the GitHub team, when it last ran and what it did (sync is absent on an older server). Read from the database, never GitHub. Requires settings.manage and github.view.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Resource identifier (CUID2).
Resource identifier (CUID2).
Responses
Section titled “Responses”The link, or null.
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" } } }}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" }}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