Update the deal settings
curl --request PATCH \ --url https://example.com/api/v1/deal-settings \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "createAccessTasksOnWon": true, "createDiscordChannelOnWon": true, "createKickoffOnWon": true, "createOrderOnWon": true, "defaultOwnerMemberId": "example", "designNoticeRoleId": "example", "designProjectTypeIds": [ "example" ], "draftInvoiceOnWon": true, "draftTasksFromSowOnWon": true, "handoffNoticeRoleId": "example", "invitePortalOnWon": true, "kickoffAccesses": [ "example" ], "onboardingProjectTemplateId": "example", "openSetupItemsOnWon": true, "promoteOnWon": true, "proposeAssignmentOnWon": true, "sendIntakeOnWon": true, "suggestWonOnSigned": true, "winOnFirstPayment": true, "winOnSigned": true }'Changes the settings the body names and leaves the others as they are; every change is audited. defaultOwnerMemberId must be an active team member of the workspace, or null. Requires deals.manage, plus orders.create to change createOrderOnWon, invoices.create for draftInvoiceOnWon, projects.create for createKickoffOnWon, tasks.create for draftTasksFromSowOnWon and createAccessTasksOnWon, and settings.manage for createDiscordChannelOnWon. kickoffAccesses replaces the whole list; more than 30 accesses, or one over 200 characters, is refused with 422.
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”object
On win, add to the kickoff project one team-only task per access in kickoffAccesses, assigned to its manager and due in 3 days, and an automation that reminds the manager when one is overdue. Off by default. Needs tasks.create to change. Emails nobody.
On win, create a Discord channel for the kickoff project under the chosen category. Needs settings.manage to change. Emails nobody.
On win, set the deal’s kickoff project: the one chosen when winning it, or a new one with the confirmed name from the onboarding template. A deal won with no choice joins its company’s only active project, and waits for a person when the company has none or several. Emails nobody.
On win, open an order from the deal’s latest accepted estimate.
Every project type whose won deals need design; the others stop needing it. An empty list means none does.
On win, draft an invoice from that estimate. The draft takes an invoice number.
On win, have a model read the deal’s fully signed contract and propose the kickoff project’s tasks, hidden from the client. Emails nobody.
On win, email the company’s primary contact a portal invitation when they have none. Emails a client.
The accesses the kickoff asks the client for, one task each. An empty list goes back to the starting list (Shopify collaborator, domain, Klaviyo, apps).
On win, add the manual setup items to the company’s onboarding checklist when the company was not a client yet. On by default. Emails nobody.
On win, move a company in Lead, Contact, Stand by, Lost or a status an open or lost stage sets to Client.
On win, propose a team and managers for the kickoff project from current workload, for a person to approve. Assigns nobody and emails nobody.
On win, email the primary contact the intake of each service order still unanswered, once they have been invited to the portal. Emails a client.
Offer winning an open deal once one of its contracts is fully signed. Not offered while winOnSigned is on.
Win an open deal on its own when an invoice made from one of its proposals is paid. Emails nobody.
Win an open deal on its own when one of its contracts is fully signed. Emails nobody.
Example generated
{ "createAccessTasksOnWon": true, "createDiscordChannelOnWon": true, "createKickoffOnWon": true, "createOrderOnWon": true, "defaultOwnerMemberId": "example", "designNoticeRoleId": "example", "designProjectTypeIds": [ "example" ], "draftInvoiceOnWon": true, "draftTasksFromSowOnWon": true, "handoffNoticeRoleId": "example", "invitePortalOnWon": true, "kickoffAccesses": [ "example" ], "onboardingProjectTemplateId": "example", "openSetupItemsOnWon": true, "promoteOnWon": true, "proposeAssignmentOnWon": true, "sendIntakeOnWon": true, "suggestWonOnSigned": true, "winOnFirstPayment": true, "winOnSigned": true}Responses
Section titled “Responses”Deal settings after the change.
object
object
Absent on a server older than this setting.
Absent on a server older than this setting.
Absent on a server older than this setting.
Absent on a server older than this setting.
The project types whose won deals need design. Absent on a server older than this setting, and in the won-deal plan.
Absent on a server older than this setting.
Absent on a server older than this setting.
The accesses the kickoff asks the client for. Absent on a server older than this setting, and in the won-deal plan.
Absent on a server older than this setting.
Absent on a server older than this setting.
Absent on a server older than this setting.
Absent on a server older than this setting.
Example generated
{ "data": { "createAccessTasksOnWon": true, "createDiscordChannelOnWon": true, "createKickoffOnWon": true, "createOrderOnWon": true, "defaultOwnerMemberId": "example", "designNoticeRoleId": "example", "designProjectTypeIds": [ "example" ], "draftInvoiceOnWon": true, "draftTasksFromSowOnWon": true, "handoffNoticeRoleId": "example", "invitePortalOnWon": true, "kickoffAccesses": [ "example" ], "onboardingProjectTemplateId": "example", "openSetupItemsOnWon": true, "promoteOnWon": true, "proposeAssignmentOnWon": true, "sendIntakeOnWon": true, "suggestWonOnSigned": true, "winOnFirstPayment": true, "winOnSigned": true }}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" }}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