Move a deal to another stage
curl --request POST \ --url https://example.com/api/v1/deals/example/stage \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "stageId": "example" }'Moves an open deal to the specified stage. A stage that requires the company’s legal name answers 422 with code LEGAL_NAME_REQUIRED while the company’s companyName is empty: set it with PATCH /clients/{id} and move again. Requires deals.manage.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Deal identifier (CUID2).
Deal identifier (CUID2).
Request Body
Section titled “Request Body”object
Example generated
{ "stageId": "example"}Responses
Section titled “Responses”Deal after stage move.
object
object
The deal’s field values. Present on GET /deals/{id} only; absent on lists, on write responses and on an older server.
One deal field with a deal’s value for it.
object
The deal field this value belongs to.
True when the deal holds a value, or at least one checklist item, for the field.
The items of a CHECKLIST field, in order; null while it has none and on every other kind.
object
What a deal field holds: a short text, a long text, a link, a day, one option of a list, a yes or no, or a checklist.
The options of a DROPDOWN field; empty for every other kind.
The value of every kind but CHECKLIST, null while the field is empty: the text (TEXT, MULTILINE), the address (URL), the day as YYYY-MM-DD (DATE), the chosen option (DROPDOWN), or “true” or “false” (CHECKBOX). Always null on a CHECKLIST field.
True when no project was kicked off from the deal, so it sits in its company’s General section, as the company’s Deals tab marks it. Returned by the list only; absent on an older server.
The kickoff project the won deal was handed to delivery in.
The name of the kickoff project, when the caller reaches that project; null otherwise. Returned by the list only; absent on an older server.
The optional note written beside the lost reason. A deal lost before reasons existed keeps its old text here.
The reason the deal was lost, an id from the lost reasons list; null on an open or won deal and on a deal lost before reasons existed. Absent on an older server.
Example
{ "data": { "fields": [ { "kind": "TEXT" } ], "outcome": "OPEN" }}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" }}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