Skip to content

Update the deal settings

PATCH
/deal-settings
Code sample: Shell / cURL
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.

Media typeapplication/json
object
createAccessTasksOnWon

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.

boolean
createDiscordChannelOnWon

On win, create a Discord channel for the kickoff project under the chosen category. Needs settings.manage to change. Emails nobody.

boolean
createKickoffOnWon

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.

boolean
createOrderOnWon

On win, open an order from the deal’s latest accepted estimate.

boolean
defaultOwnerMemberId

Active team member who owns the deals Chelsea opens on its own, or null for the first active team member.

Any of:
string
>= 1 characters
designNoticeRoleId

Role whose holders are asked to schedule the design meeting when the approved deal’s project type needs design; null tells nobody.

Any of:
string
>= 1 characters
designProjectTypeIds

Every project type whose won deals need design; the others stop needing it. An empty list means none does.

Array<string>
<= 200 items
draftInvoiceOnWon

On win, draft an invoice from that estimate. The draft takes an invoice number.

boolean
draftTasksFromSowOnWon

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.

boolean
handoffNoticeRoleId

Role whose holders are told when a won deal’s team and managers are approved, besides the team and the managers; null tells nobody else.

Any of:
string
>= 1 characters
invitePortalOnWon

On win, email the company’s primary contact a portal invitation when they have none. Emails a client.

boolean
kickoffAccesses

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).

Array<string>
<= 30 items
onboardingProjectTemplateId

Project template the won deal’s kickoff project starts from, or null for an empty project.

Any of:
string
>= 1 characters
openSetupItemsOnWon

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.

boolean
promoteOnWon

On win, move a company in Lead, Contact, Stand by, Lost or a status an open or lost stage sets to Client.

boolean
proposeAssignmentOnWon

On win, propose a team and managers for the kickoff project from current workload, for a person to approve. Assigns nobody and emails nobody.

boolean
sendIntakeOnWon

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.

boolean
suggestWonOnSigned

Offer winning an open deal once one of its contracts is fully signed. Not offered while winOnSigned is on.

boolean
winOnFirstPayment

Win an open deal on its own when an invoice made from one of its proposals is paid. Emails nobody.

boolean
winOnSigned

Win an open deal on its own when one of its contracts is fully signed. Emails nobody.

boolean

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
}

Deal settings after the change.

Media typeapplication/json
object
data
required
object
createAccessTasksOnWon

Absent on a server older than this setting.

boolean
createDiscordChannelOnWon

Absent on a server older than this setting.

boolean
createKickoffOnWon

Absent on a server older than this setting.

boolean
createOrderOnWon
required
boolean
defaultOwnerMemberId
required
string | null
designNoticeRoleId

Absent on a server older than this setting.

string | null
designProjectTypeIds

The project types whose won deals need design. Absent on a server older than this setting, and in the won-deal plan.

Array<string>
draftInvoiceOnWon
required
boolean
draftTasksFromSowOnWon

Absent on a server older than this setting.

boolean
handoffNoticeRoleId

Absent on a server older than this setting.

string | null
invitePortalOnWon
required
boolean
kickoffAccesses

The accesses the kickoff asks the client for. Absent on a server older than this setting, and in the won-deal plan.

Array<string>
onboardingProjectTemplateId
required
string | null
openSetupItemsOnWon

Absent on a server older than this setting.

boolean
promoteOnWon
required
boolean
proposeAssignmentOnWon

Absent on a server older than this setting.

boolean
sendIntakeOnWon
required
boolean
suggestWonOnSigned
required
boolean
winOnFirstPayment

Absent on a server older than this setting.

boolean
winOnSigned

Absent on a server older than this setting.

boolean

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.

Media typeapplication/json

Validation error with safe field paths and expected values; submitted values are never returned.

object
error
required
object
code
required

Stable machine-readable error code.

string
issues
Array<object>
object
expected
required
string
message
required
string
path
required
Array<string | number>
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Unauthorized.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Forbidden.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Invalid input.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Rate limit exceeded. Wait for Retry-After before retrying.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}
RateLimit-Limit
string
/^\d+$/

Maximum requests in the current quota window.

RateLimit-Policy
string

Quota policy in requests and window seconds, for example 60;w=60.

RateLimit-Remaining
string
/^\d+$/

Requests left in this quota window (zero when blocked).

RateLimit-Reset
string
/^\d+$/

Seconds until the current quota window resets, when available from the rate-limit store.

Retry-After
string
/^\d+$/

Seconds until another request may be attempted.