Set a won deal's kickoff project
curl --request POST \ --url https://example.com/api/v1/deals/example/kickoff-project \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "orderName": "example", "projectId": "example" }'Sets the project delivery works in: projectId, an active project of the deal’s company that the caller can reach, which the deal joins (several deals can share one), or a new project named name from the workspace’s onboarding project template or empty. A new project takes the deal’s company and project type and the hours of the hour-block order the win opened as its write-once original estimate; either way that order is linked. The won-deal steps that act on the project (tasks from the contract, team proposal, Discord channel, access tasks) then run behind their switches. With neither, the deal joins the company’s only active project and is refused (422) when the company has none or several: a new project always needs a confirmed name. orderName retitles the order the win opened with the short title confirmed, shown after its code. One per deal; repeating the same projectId returns it and creates nothing. When the hour block cannot be attached the project is still set and warning says why. Requires deals.manage and projects.create (and projects.manage when a template is set).
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
The confirmed name of a new kickoff project for the won deal; the plan offers the company’s name, numbered when one of its projects already has it.
The short title of the order the won deal’s accepted estimate opens, shown after the order’s code. Left out when winning, the order opens named by the workspace’s order name template for an Hour block starting today; sent with the kickoff project, it retitles the order the win opened.
An active project of the deal’s company, one the caller can reach, for the won deal to join; sent with a new project’s name, it wins.
Example generated
{ "name": "example", "orderName": "example", "projectId": "example"}Responses
Section titled “Responses”The kickoff project.
object
object
The write-once original estimate, from that order; null without one.
The hour-block order the win opened, linked to the project.
True when the deal joined a project its company already had, false when one was created. Absent on an older server.
Set when the project was created but the sold hour block could not be attached; hourBlockOrderId is then null and the same note is logged on the deal.
Example generated
{ "data": { "estimatedHours": 1, "hourBlockOrderId": "example", "projectId": "example", "reused": true, "templateId": "example", "warning": "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" }}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