See who a sync would add to and remove from the GitHub team
curl --request GET \ --url https://example.com/api/v1/teams/example/github-team/sync \ --header 'Authorization: Bearer <token>'The plan of the membership sync: who would join the linked GitHub team, who would leave it, and who cannot be added because they have no GitHub account connected. Only direct members of the team are read, so people who belong through a child team are never planned for removal; those not wanted by Chelsea are listed in throughChildTeams for information, since they stay through the child team. Invitations still waiting are listed in pendingInvitations for information and are never cancelled. Carries the confirmationKey that names this plan. Changes nothing. Reads the GitHub team live. Show it to the person before calling the confirm operation. Requires settings.manage and github.manage.
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 plan.
object
object
Names this plan. Send it with the confirmation; a confirmation for another plan is refused with a conflict.
Whether a person already confirmed that Chelsea decides who is on the GitHub team.
The Chelsea teams linked to this GitHub team; their people together are who it should hold.
object
People on a linked team with no GitHub account connected; they cannot be added.
object
Invited to the GitHub team and not yet in it. Information only: a sync never cancels an invitation.
On the team through a child team and not wanted by Chelsea. Information only: they stay, and a sync does not change them.
object
memberName is set when Chelsea knows the person but they are on no linked team.
object
Example generated
{ "data": { "confirmationKey": "example", "githubTeamSlug": "example", "isConfirmed": true, "linkedTeams": [ { "name": "example", "teamId": "example" } ], "notConnected": [ { "memberId": "example", "name": "example" } ], "pendingInvitations": [ "example" ], "teamId": "example", "throughChildTeams": [ "example" ], "toAdd": [ { "login": "example", "memberId": "example", "name": "example" } ], "toRemove": [ { "login": "example", "memberName": "example" } ], "unchangedCount": 1 }}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