Read the repository a ticket works in and its choices
curl --request GET \ --url 'https://example.com/api/v1/delegations/repository-choices?taskId=example&projectId=example' \ --header 'Authorization: Bearer <token>'Returns the repository the project links, the override the ticket uses instead, the repositories of the ticket’s companies it can switch to, and whether a delivery already locks it. Requires tasks.delegate.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Ticket whose repository is read
Ticket whose repository is read
Project the ticket is delegated from
Project the ticket is delegated from
Responses
Section titled “Responses”The ticket’s repositories.
object
The repository a ticket works in and the ones it can switch to.
object
Repositories linked by projects of the ticket’s companies, up to 50
object
Whether a delivery already fixes the ticket’s repository
Example generated
{ "data": { "choices": [ { "fullName": "example", "id": "example", "projectName": "example" } ], "isLocked": true, "override": { "fullName": "example", "id": "example" }, "projectRepository": { "fullName": "example", "id": "example" } }}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" }}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