Custom fields may be required or rule-controlled — call getPartnerDealRequirements first to learn the field/rule constraints. Validation failures return per-field details with machine-readable reason codes. When the deal’s lock_deal_stage is true (the calling partnership’s own lock or, for a supporting partner on a co-sell deal, the primary partnership’s lock), changing fields.stage_id returns 403 forbidden with a locked_by_partnership detail reason and nothing in the request is saved; re-sending the current stage is allowed. A supporting partner on a co-sell deal cannot set a field the vendor hides from supporting partners: a hidden custom field returns 400 validation_error with reason not_accessible, and fields.label or fields.expiration_date when hidden returns 400 validation_error with reason hidden_by_rule; nothing in the request is saved. The response is the deal as getPartnerDeal returns it, filtered the same way by the caller’s co-sell role. A deal field the vendor does not share with partners (fields.label, fields.expiration_date) returns 400 validation_error with reason hidden_by_rule for every partner. A deal field the vendor has locked (getPartnerDealRequirements standard_fields with locked: true) reads as usual but is set only by the vendor: a different fields.label or fields.expiration_date returns 400 validation_error with reason locked_field and nothing in the request is saved; re-sending the current value is allowed.
The deal name. Null when the company does not share the deal name with partners, or when the calling partnership supports this deal (co-sell, not its primary partner) and the company hides the deal name from supporting partners. The same applies to the deal value (deal_value), the currency (currency_code), the expiration (expiration_date, expired_at) and the lead's first and last name, email and phone (null); a commission the company does not share comes back null for every partner, and a supporting partner also loses the lead's company name when hidden and the custom fields hidden from supporting partners.
deal_value
number | null
required
The deal value in minor units. Null when the company does not share the deal value with partners, or when the calling partnership supports this deal (co-sell) and the company hides the deal value from supporting partners.
total_commission_value
number | null
required
total_commission_occurrences
number | null
required
lead_id
string
required
created_by_user_id
string | null
required
stage_id
string | null
required
expiration_date
string | null
required
expired_at
string | null
required
currency_code
string | null
required
stage
object | null
required
Show child attributes
created_by_user_first_name
string | null
required
created_by_user_last_name
string | null
required
created_by_user_email
string | null
required
created_by_user_profile_image_id
number | null
required
created_by_user_profile_image_uuid
string | null
required
lead_company_name
string | null
required
lead_first_name
string | null
required
lead_last_name
string | null
required
lead_email
string | null
required
lead_phone_number
string | null
required
lead_direction
enum<string> | null
required
Available options:
sent,
received
lead_status
enum<string>
required
Available options:
new,
converted,
rejected
lead_campaign_id
string | null
required
campaign_title
string | null
required
partnership
object | null
required
Show child attributes
tags
object[]
required
Show child attributes
assigned_users
object[]
required
Show child attributes
assigned_contacts
object[]
required
Partner contacts assigned to this deal. On a co-sell deal this includes the contacts of every partner on the deal, not only the calling partnership's. When the calling partnership's co-sell role hides other partners' contacts, it holds only the primary partner's contacts and the caller's own.
Show child attributes
custom_fields
object[]
required
Show child attributes
has_quote
boolean
required
has_products
boolean
required
has_live_calculators
boolean
required
partners
object[]
required
Every partner on the deal. The primary partner (is_primary: true, the same partner as the deal's partner) comes first, then each supporting (co-sell) partner, oldest first, with its role. Supporting partners appear only while the Co-selling module is enabled, and only while they are active partners of the deal's partner type. When the calling partnership's co-sell role hides other partners, only the primary partner and the caller are listed.
Show child attributes
id
string
required
entry_commission_values
object[]
Show child attributes
spiff_entry_commission_values
object[]
Show child attributes
total_spiff_value
integer
Required range: -9007199254740991 <= x <= 9007199254740991
commission_overrides
object[]
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Journeybee API","colors":{"primary":"#007aff"},"logo":{"light":"https://mintcdn.com/journeybee/OYst47RAi-INCv0T/logo-light.svg?fit=max\u0026auto=format\u0026n=OYst47RAi-INCv0T\u0026q=85\u0026s=8afc66d3e6015e470883014b04a24784","dark":"https://mintcdn.com/journeybee/OYst47RAi-INCv0T/logo-dark.svg?fit=max\u0026auto=format\u0026n=OYst47RAi-INCv0T\u0026q=85\u0026s=0911c07015635ad1edf6f86660d20de5"},"api":{"playground":{"display":"interactive"}},"navbar":{"links":[{"href":"https://support.journeybee.io","label":"Support"},{"href":"https://app.journeybee.io","label":"Dashboard"}]},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/journeybee-partners"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"journeybee","hasAudioNarration":false,"actualSubdomain":"journeybee","customDomains":["docs.journeybee.io"],"gitSource":{"type":"github","owner":"journeybeeio","repo":"journeybee","deployBranch":"master","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6afa1ae08deffcac16ff58f1","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"default","tag":"API Reference","count":758},{"language":"default","tag":"Analytics","count":27},{"language":"default","tag":"Webhook Events","count":16},{"language":"default","tag":"Guides","count":13},{"language":"default","tag":"Partner API","count":13},{"language":"default","tag":"Campaign Audience","count":12},{"language":"default","tag":"Proposals","count":12},{"language":"default","tag":"Room Secure Files","count":12},{"language":"default","tag":"Partner API Reference","count":11},{"language":"default","tag":"Partner","count":11}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"partner-api-reference/partner/update-a-partnership-deal","slug":"/partner-api-reference/partner/update-a-partnership-deal","pageMetadata":{"title":"Update a partnership deal","description":"Custom fields may be required or rule-controlled — call getPartnerDealRequirements first to learn the field/rule constraints. Validation failures return per-field `details` with machine-readable `reason` codes. When the deal's `lock_deal_stage` is true (the calling partnership's own lock or, for a supporting partner on a co-sell deal, the primary partnership's lock), changing `fields.stage_id` returns 403 `forbidden` with a `locked_by_partnership` detail reason and nothing in the request is saved; re-sending the current stage is allowed. A supporting partner on a co-sell deal cannot set a field the vendor hides from supporting partners: a hidden custom field returns 400 `validation_error` with reason `not_accessible`, and `fields.label` or `fields.expiration_date` when hidden returns 400 `validation_error` with reason `hidden_by_rule`; nothing in the request is saved. The response is the deal as getPartnerDeal returns it, filtered the same way by the caller's co-sell role. A deal field the vendor does not share with partners (`fields.label`, `fields.expiration_date`) returns 400 `validation_error` with reason `hidden_by_rule` for every partner. A deal field the vendor has locked (getPartnerDealRequirements `standard_fields` with `locked: true`) reads as usual but is set only by the vendor: a different `fields.label` or `fields.expiration_date` returns 400 `validation_error` with reason `locked_field` and nothing in the request is saved; re-sending the current value is allowed.","deprecated":null,"version":null,"openapi":"/partner-openapi.json patch /partner/{partnershipId}/deals/{dealId}","href":"/partner-api-reference/partner/update-a-partnership-deal","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Custom fields may be required or rule-controlled — call getPartnerDealRequirements first to learn the field/rule constraints. Validation failures return per-field \", _jsx(_components.code, {\n children: \"details\"\n }), \" with machine-readable \", _jsx(_components.code, {\n children: \"reason\"\n }), \" codes. When the deal’s \", _jsx(_components.code, {\n children: \"lock_deal_stage\"\n }), \" is true (the calling partnership’s own lock or, for a supporting partner on a co-sell deal, the primary partnership’s lock), changing \", _jsx(_components.code, {\n children: \"fields.stage_id\"\n }), \" returns 403 \", _jsx(_components.code, {\n children: \"forbidden\"\n }), \" with a \", _jsx(_components.code, {\n children: \"locked_by_partnership\"\n }), \" detail reason and nothing in the request is saved; re-sending the current stage is allowed. A supporting partner on a co-sell deal cannot set a field the vendor hides from supporting partners: a hidden custom field returns 400 \", _jsx(_components.code, {\n children: \"validation_error\"\n }), \" with reason \", _jsx(_components.code, {\n children: \"not_accessible\"\n }), \", and \", _jsx(_components.code, {\n children: \"fields.label\"\n }), \" or \", _jsx(_components.code, {\n children: \"fields.expiration_date\"\n }), \" when hidden returns 400 \", _jsx(_components.code, {\n children: \"validation_error\"\n }), \" with reason \", _jsx(_components.code, {\n children: \"hidden_by_rule\"\n }), \"; nothing in the request is saved. The response is the deal as getPartnerDeal returns it, filtered the same way by the caller’s co-sell role. A deal field the vendor does not share with partners (\", _jsx(_components.code, {\n children: \"fields.label\"\n }), \", \", _jsx(_components.code, {\n children: \"fields.expiration_date\"\n }), \") returns 400 \", _jsx(_components.code, {\n children: \"validation_error\"\n }), \" with reason \", _jsx(_components.code, {\n children: \"hidden_by_rule\"\n }), \" for every partner. A deal field the vendor has locked (getPartnerDealRequirements \", _jsx(_components.code, {\n children: \"standard_fields\"\n }), \" with \", _jsx(_components.code, {\n children: \"locked: true\"\n }), \") reads as usual but is set only by the vendor: a different \", _jsx(_components.code, {\n children: \"fields.label\"\n }), \" or \", _jsx(_components.code, {\n children: \"fields.expiration_date\"\n }), \" returns 400 \", _jsx(_components.code, {\n children: \"validation_error\"\n }), \" with reason \", _jsx(_components.code, {\n children: \"locked_field\"\n }), \" and nothing in the request is saved; re-sending the current value is allowed.\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Update a partnership deal","description":"Custom fields may be required or rule-controlled — call getPartnerDealRequirements first to learn the field/rule constraints. Validation failures return per-field `details` with machine-readable `reason` codes. When the deal's `lock_deal_stage` is true (the calling partnership's own lock or, for a supporting partner on a co-sell deal, the primary partnership's lock), changing `fields.stage_id` returns 403 `forbidden` with a `locked_by_partnership` detail reason and nothing in the request is saved; re-sending the current stage is allowed. A supporting partner on a co-sell deal cannot set a field the vendor hides from supporting partners: a hidden custom field returns 400 `validation_error` with reason `not_accessible`, and `fields.label` or `fields.expiration_date` when hidden returns 400 `validation_error` with reason `hidden_by_rule`; nothing in the request is saved. The response is the deal as getPartnerDeal returns it, filtered the same way by the caller's co-sell role. A deal field the vendor does not share with partners (`fields.label`, `fields.expiration_date`) returns 400 `validation_error` with reason `hidden_by_rule` for every partner. A deal field the vendor has locked (getPartnerDealRequirements `standard_fields` with `locked: true`) reads as usual but is set only by the vendor: a different `fields.label` or `fields.expiration_date` returns 400 `validation_error` with reason `locked_field` and nothing in the request is saved; re-sending the current value is allowed.","deprecated":null,"version":null,"openapi":"/partner-openapi.json patch /partner/{partnershipId}/deals/{dealId}","href":"/partner-api-reference/partner/update-a-partnership-deal","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"updatePartnerDeal","summary":"Update a partnership deal","tags":["Partner"],"description":"Custom fields may be required or rule-controlled — call getPartnerDealRequirements first to learn the field/rule constraints. Validation failures return per-field `details` with machine-readable `reason` codes. When the deal's `lock_deal_stage` is true (the calling partnership's own lock or, for a supporting partner on a co-sell deal, the primary partnership's lock), changing `fields.stage_id` returns 403 `forbidden` with a `locked_by_partnership` detail reason and nothing in the request is saved; re-sending the current stage is allowed. A supporting partner on a co-sell deal cannot set a field the vendor hides from supporting partners: a hidden custom field returns 400 `validation_error` with reason `not_accessible`, and `fields.label` or `fields.expiration_date` when hidden returns 400 `validation_error` with reason `hidden_by_rule`; nothing in the request is saved. The response is the deal as getPartnerDeal returns it, filtered the same way by the caller's co-sell role. A deal field the vendor does not share with partners (`fields.label`, `fields.expiration_date`) returns 400 `validation_error` with reason `hidden_by_rule` for every partner. A deal field the vendor has locked (getPartnerDealRequirements `standard_fields` with `locked: true`) reads as usual but is set only by the vendor: a different `fields.label` or `fields.expiration_date` returns 400 `validation_error` with reason `locked_field` and nothing in the request is saved; re-sending the current value is allowed.","requestBody":"20b5d496-8209-473a-8e58-5809885af3d2","parameters":["576c00f3-bf2f-4930-9cab-526042343be5","3a83575e-b203-44a6-9ea2-595f38fcad98"],"x-capability":{"contract_version":2,"key":"openapi:partner.updatePartnerDeal","version":1,"identity":{"source":"openapi","name":"call_endpoint","operationId":"updatePartnerDeal","method":"PATCH","surface":"partner"},"operation":{"kind":"write","risk":"write","approval_policy":"configurable"},"access":{"read":false,"write":true},"access_mode":"all","scope_key":"deals","actors":["partner"],"requirements":{"modules":["partner_api"],"program_modules":[],"workflow_management":false},"scope":{"object_definitions":[],"programs":[],"portal_membership":"not_applicable"},"entity_kinds":[],"idempotency":{"mode":"key_optional","dry_run":false,"reversible":true},"presentation":{"title":"Update a partnership deal","summary":"Custom fields may be required or rule-controlled — call getPartnerDealRequirements first to learn the field/rule constraints. Validation failures return per-field `details` with machine-readable `reason` codes. When the deal's `lock_deal_stage` is true (the calling partnership's own lock or, for a supporting partner on a co-sell deal, the primary partnership's lock), changing `fields.stage_id` returns 403 `forbidden` with a `locked_by_partnership` detail reason and nothing in the request is saved; re-sending the current stage is allowed. A supporting partner on a co-sell deal cannot set a field the vendor hides from supporting partners: a hidden custom field returns 400 `validation_error` with reason `not_accessible`, and `fields.label` or `fields.expiration_date` when hidden returns 400 `validation_error` with reason `hidden_by_rule`; nothing in the request is saved. The response is the deal as getPartnerDeal returns it, filtered the same way by the caller's co-sell role. A deal field the vendor does not share with partners (`fields.label`, `fields.expiration_date`) returns 400 `validation_error` with reason `hidden_by_rule` for every partner. A deal field the vendor has locked (getPartnerDealRequirements `standard_fields` with `locked: true`) reads as usual but is set only by the vendor: a different `fields.label` or `fields.expiration_date` returns 400 `validation_error` with reason `locked_field` and nothing in the request is saved; re-sending the current value is allowed.","domain":"Partner","surface":"partner"}},"responses":{"200":"85786db7-a916-4273-b4ed-3308c0c9c47a","403":"8a1919c6-91a0-400b-a9ff-421f374d18c1"},"method":"patch","type":"path","servers":["e0c483a8-4d49-4ce8-8e24-4be11d00d28b"],"security":["ee7e257a-1749-4101-b33f-5219b49f324a"],"path":"/partner/{partnershipId}/deals/{dealId}","baseUrlOptions":["https://api.journeybee.io/v1"],"title":"Update a partnership deal","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"576c00f3-bf2f-4930-9cab-526042343be5":{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","isRequired":true,"uniqueKey":"","typeLabel":"string\u003cuuid>"},"in":"path","name":"partnershipId","required":true},"3a83575e-b203-44a6-9ea2-595f38fcad98":{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","isRequired":true,"uniqueKey":"","typeLabel":"string\u003cuuid>"},"in":"path","name":"dealId","required":true}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fields":{"type":"object","properties":{"stage_id":{"type":"string","uniqueKey":"fields.stage_id","typeLabel":"string"},"label":{"description":"Rejected with 400 (hidden_by_rule) when the vendor does not share the deal name with partners; the deal name is then derived from the lead's company name.","type":"string","uniqueKey":"fields.label","typeLabel":"string"},"expiration_date":{"oneOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","uniqueKey":"fields.expiration_date.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","uniqueKey":"fields.expiration_date.oneOf.1","typeLabel":"null"}],"uniqueKey":"fields.expiration_date","typeLabel":"string\u003cdate-time> | null"},"custom_field_values":{"type":"array","items":{"type":"object","properties":{"custom_field_id":{"type":"string","isRequired":true,"uniqueKey":"fields.custom_field_values.items.[INDEX].custom_field_id","typeLabel":"string"},"value":{"type":"object","properties":{"text":{"oneOf":[{"type":"string","description":"Value for text-like fields","uniqueKey":"fields.custom_field_values.items.[INDEX].value.text.oneOf.0","typeLabel":"string"},{"type":"null","description":"Value for text-like fields","uniqueKey":"fields.custom_field_values.items.[INDEX].value.text.oneOf.1","typeLabel":"null"}],"uniqueKey":"fields.custom_field_values.items.[INDEX].value.text","typeLabel":"string | null"},"textarea":{"oneOf":[{"type":"string","description":"Legacy value key for textarea fields; write using text","uniqueKey":"fields.custom_field_values.items.[INDEX].value.textarea.oneOf.0","typeLabel":"string"},{"type":"null","description":"Legacy value key for textarea fields; write using text","uniqueKey":"fields.custom_field_values.items.[INDEX].value.textarea.oneOf.1","typeLabel":"null"}],"uniqueKey":"fields.custom_field_values.items.[INDEX].value.textarea","typeLabel":"string | null"},"number":{"oneOf":[{"type":"number","description":"Value for number fields","uniqueKey":"fields.custom_field_values.items.[INDEX].value.number.oneOf.0","typeLabel":"number"},{"type":"string","description":"Value for number fields","uniqueKey":"fields.custom_field_values.items.[INDEX].value.number.oneOf.1","typeLabel":"string"},{"type":"null","description":"Value for number fields","uniqueKey":"fields.custom_field_values.items.[INDEX].value.number.oneOf.2","typeLabel":"null"}],"uniqueKey":"fields.custom_field_values.items.[INDEX].value.number","typeLabel":"number | string | null"},"date":{"oneOf":[{"type":"string","description":"Value for date fields (ISO 8601 date string)","uniqueKey":"fields.custom_field_values.items.[INDEX].value.date.oneOf.0","typeLabel":"string"},{"type":"null","description":"Value for date fields (ISO 8601 date string)","uniqueKey":"fields.custom_field_values.items.[INDEX].value.date.oneOf.1","typeLabel":"null"}],"uniqueKey":"fields.custom_field_values.items.[INDEX].value.date","typeLabel":"string | null"},"boolean":{"oneOf":[{"type":"boolean","description":"Value for checkbox fields","uniqueKey":"fields.custom_field_values.items.[INDEX].value.boolean.oneOf.0","typeLabel":"boolean"},{"type":"string","description":"Value for checkbox fields","uniqueKey":"fields.custom_field_values.items.[INDEX].value.boolean.oneOf.1","typeLabel":"string"},{"type":"null","description":"Value for checkbox fields","uniqueKey":"fields.custom_field_values.items.[INDEX].value.boolean.oneOf.2","typeLabel":"null"}],"uniqueKey":"fields.custom_field_values.items.[INDEX].value.boolean","typeLabel":"boolean | string | null"},"select":{"oneOf":[{"type":"number","description":"Option ID for single-select fields","uniqueKey":"fields.custom_field_values.items.[INDEX].value.select.oneOf.0","typeLabel":"number"},{"type":"null","description":"Option ID for single-select fields","uniqueKey":"fields.custom_field_values.items.[INDEX].value.select.oneOf.1","typeLabel":"null"}],"uniqueKey":"fields.custom_field_values.items.[INDEX].value.select","typeLabel":"number | null"},"multi_select":{"oneOf":[{"type":"array","items":{"type":"number","uniqueKey":"fields.custom_field_values.items.[INDEX].value.multi_select.oneOf.0.items.[INDEX]","typeLabel":"number"},"description":"Option IDs for multi-select fields","uniqueKey":"fields.custom_field_values.items.[INDEX].value.multi_select.oneOf.0","typeLabel":"number[]"},{"type":"null","description":"Option IDs for multi-select fields","uniqueKey":"fields.custom_field_values.items.[INDEX].value.multi_select.oneOf.1","typeLabel":"null"}],"uniqueKey":"fields.custom_field_values.items.[INDEX].value.multi_select","typeLabel":"number[] | null"},"file":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"uuid":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","isRequired":true,"uniqueKey":"fields.custom_field_values.items.[INDEX].value.file.oneOf.0.items.[INDEX].uuid","typeLabel":"string\u003cuuid>"}},"required":["uuid"],"additionalProperties":false,"uniqueKey":"fields.custom_field_values.items.[INDEX].value.file.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Files of a file field, by uuid. Only files already in the value can be kept; leaving one out removes it. Uploading new files is not available to partners.","maxItems":10,"uniqueKey":"fields.custom_field_values.items.[INDEX].value.file.oneOf.0","typeLabel":"object[]"},{"type":"null","description":"Files of a file field, by uuid. Only files already in the value can be kept; leaving one out removes it. Uploading new files is not available to partners.","uniqueKey":"fields.custom_field_values.items.[INDEX].value.file.oneOf.1","typeLabel":"null"}],"uniqueKey":"fields.custom_field_values.items.[INDEX].value.file","typeLabel":"object[] | null"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"fields.custom_field_values.items.[INDEX].value","typeLabel":"object"},"custom_field_value_id":{"type":"string","uniqueKey":"fields.custom_field_values.items.[INDEX].custom_field_value_id","typeLabel":"string"}},"required":["custom_field_id","value"],"additionalProperties":false,"uniqueKey":"fields.custom_field_values.items.[INDEX]","typeLabel":"object"},"uniqueKey":"fields.custom_field_values","typeLabel":"object[]"},"partner_custom_field_values":{"type":"array","items":{"type":"object","properties":{"custom_field_id":{"type":"string","isRequired":true,"uniqueKey":"fields.partner_custom_field_values.items.[INDEX].custom_field_id","typeLabel":"string"},"lead_deal_id":{"type":"string","isRequired":true,"uniqueKey":"fields.partner_custom_field_values.items.[INDEX].lead_deal_id","typeLabel":"string"},"value":{"oneOf":[{"type":"object","properties":{"text":{"oneOf":[{"type":"string","description":"Value for text-like fields","uniqueKey":"fields.partner_custom_field_values.items.[INDEX].value.oneOf.0.text.oneOf.0","typeLabel":"string"},{"type":"null","description":"Value for text-like fields","uniqueKey":"fields.partner_custom_field_values.items.[INDEX].value.oneOf.0.text.oneOf.1","typeLabel":"null"}],"uniqueKey":"fields.partner_custom_field_values.items.[INDEX].value.oneOf.0.text","typeLabel":"string | null"},"textarea":{"oneOf":[{"type":"string","description":"Legacy value key for textarea fields; write using text","uniqueKey":"fields.partner_custom_field_values.items.[INDEX].value.oneOf.0.textarea.oneOf.0","typeLabel":"string"},{"type":"null","description":"Legacy value key for textarea fields; write using text","uniqueKey":"fields.partner_custom_field_values.items.[INDEX].value.oneOf.0.textarea.oneOf.1","typeLabel":"null"}],"uniqueKey":"fields.partner_custom_field_values.items.[INDEX].value.oneOf.0.textarea","typeLabel":"string | null"},"number":{"oneOf":[{"type":"number","description":"Value for number fields","uniqueKey":"fields.partner_custom_field_values.items.[INDEX].value.oneOf.0.number.oneOf.0","typeLabel":"number"},{"type":"string","description":"Value for number fields","uniqueKey":"fields.partner_custom_field_values.items.[INDEX].value.oneOf.0.number.oneOf.1","typeLabel":"string"},{"type":"null","description":"Value for number fields","uniqueKey":"fields.partner_custom_field_values.items.[INDEX].value.oneOf.0.number.oneOf.2","typeLabel":"null"}],"uniqueKey":"fields.partner_custom_field_values.items.[INDEX].value.oneOf.0.number","typeLabel":"number | string | null"},"date":{"oneOf":[{"type":"string","description":"Value for date fields (ISO 8601 date string)","uniqueKey":"fields.partner_custom_field_values.items.[INDEX].value.oneOf.0.date.oneOf.0","typeLabel":"string"},{"type":"null","description":"Value for date fields (ISO 8601 date string)","uniqueKey":"fields.partner_custom_field_values.items.[INDEX].value.oneOf.0.date.oneOf.1","typeLabel":"null"}],"uniqueKey":"fields.partner_custom_field_values.items.[INDEX].value.oneOf.0.date","typeLabel":"string | null"},"boolean":{"oneOf":[{"type":"boolean","description":"Value for checkbox fields","uniqueKey":"fields.partner_custom_field_values.items.[INDEX].value.oneOf.0.boolean.oneOf.0","typeLabel":"boolean"},{"type":"string","description":"Value for checkbox fields","uniqueKey":"fields.partner_custom_field_values.items.[INDEX].value.oneOf.0.boolean.oneOf.1","typeLabel":"string"},{"type":"null","description":"Value for checkbox fields","uniqueKey":"fields.partner_custom_field_values.items.[INDEX].value.oneOf.0.boolean.oneOf.2","typeLabel":"null"}],"uniqueKey":"fields.partner_custom_field_values.items.[INDEX].value.oneOf.0.boolean","typeLabel":"boolean | string | null"},"select":{"oneOf":[{"type":"number","description":"Option ID for single-select fields","uniqueKey":"fields.partner_custom_field_values.items.[INDEX].value.oneOf.0.select.oneOf.0","typeLabel":"number"},{"type":"null","description":"Option ID for single-select fields","uniqueKey":"fields.partner_custom_field_values.items.[INDEX].value.oneOf.0.select.oneOf.1","typeLabel":"null"}],"uniqueKey":"fields.partner_custom_field_values.items.[INDEX].value.oneOf.0.select","typeLabel":"number | null"},"multi_select":{"oneOf":[{"type":"array","items":{"type":"number","uniqueKey":"fields.partner_custom_field_values.items.[INDEX].value.oneOf.0.multi_select.oneOf.0.items.[INDEX]","typeLabel":"number"},"description":"Option IDs for multi-select fields","uniqueKey":"fields.partner_custom_field_values.items.[INDEX].value.oneOf.0.multi_select.oneOf.0","typeLabel":"number[]"},{"type":"null","description":"Option IDs for multi-select fields","uniqueKey":"fields.partner_custom_field_values.items.[INDEX].value.oneOf.0.multi_select.oneOf.1","typeLabel":"null"}],"uniqueKey":"fields.partner_custom_field_values.items.[INDEX].value.oneOf.0.multi_select","typeLabel":"number[] | null"},"file":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"uuid":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","isRequired":true,"uniqueKey":"fields.partner_custom_field_values.items.[INDEX].value.oneOf.0.file.oneOf.0.items.[INDEX].uuid","typeLabel":"string\u003cuuid>"}},"required":["uuid"],"additionalProperties":false,"uniqueKey":"fields.partner_custom_field_values.items.[INDEX].value.oneOf.0.file.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Files of a file field, by uuid. Only files already in the value can be kept; leaving one out removes it. Uploading new files is not available to partners.","maxItems":10,"uniqueKey":"fields.partner_custom_field_values.items.[INDEX].value.oneOf.0.file.oneOf.0","typeLabel":"object[]"},{"type":"null","description":"Files of a file field, by uuid. Only files already in the value can be kept; leaving one out removes it. Uploading new files is not available to partners.","uniqueKey":"fields.partner_custom_field_values.items.[INDEX].value.oneOf.0.file.oneOf.1","typeLabel":"null"}],"uniqueKey":"fields.partner_custom_field_values.items.[INDEX].value.oneOf.0.file","typeLabel":"object[] | null"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"fields.partner_custom_field_values.items.[INDEX].value.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"fields.partner_custom_field_values.items.[INDEX].value.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"fields.partner_custom_field_values.items.[INDEX].value","typeLabel":"object | null"},"custom_field_value_id":{"type":"string","uniqueKey":"fields.partner_custom_field_values.items.[INDEX].custom_field_value_id","typeLabel":"string"}},"required":["custom_field_id","lead_deal_id","value"],"additionalProperties":false,"uniqueKey":"fields.partner_custom_field_values.items.[INDEX]","typeLabel":"object"},"uniqueKey":"fields.partner_custom_field_values","typeLabel":"object[]"},"tag":{"type":"object","properties":{"id":{"type":"string","uniqueKey":"fields.tag.id","typeLabel":"string"},"label":{"type":"string","uniqueKey":"fields.tag.label","typeLabel":"string"},"background_color":{"type":"string","uniqueKey":"fields.tag.background_color","typeLabel":"string"},"text_color":{"oneOf":[{"type":"string","uniqueKey":"fields.tag.text_color.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"fields.tag.text_color.oneOf.1","typeLabel":"null"}],"uniqueKey":"fields.tag.text_color","typeLabel":"string | null"},"added":{"type":"boolean","uniqueKey":"fields.tag.added","typeLabel":"boolean"},"removed":{"type":"boolean","uniqueKey":"fields.tag.removed","typeLabel":"boolean"}},"additionalProperties":false,"uniqueKey":"fields.tag","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"fields","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"fields":{"stage_id":"\u003cstring>","label":"\u003cstring>","expiration_date":"2023-11-07T05:31:56Z","custom_field_values":[{"custom_field_id":"\u003cstring>","value":{"text":"\u003cstring>","textarea":"\u003cstring>","number":123,"date":"\u003cstring>","boolean":true,"select":123,"multi_select":[123],"file":[{"uuid":"3c90c3cc-0d44-4b50-8888-8dd25736052a"}]},"custom_field_value_id":"\u003cstring>"}],"partner_custom_field_values":[{"custom_field_id":"\u003cstring>","lead_deal_id":"\u003cstring>","value":{"text":"\u003cstring>","textarea":"\u003cstring>","number":123,"date":"\u003cstring>","boolean":true,"select":123,"multi_select":[123],"file":[{"uuid":"3c90c3cc-0d44-4b50-8888-8dd25736052a"}]},"custom_field_value_id":"\u003cstring>"}],"tag":{"id":"\u003cstring>","label":"\u003cstring>","background_color":"\u003cstring>","text_color":"\u003cstring>","added":true,"removed":true}}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"85786db7-a916-4273-b4ed-3308c0c9c47a":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"uuid":{"type":"string","isRequired":true,"uniqueKey":"uuid","typeLabel":"string"},"created_at":{"type":"string","isRequired":true,"uniqueKey":"created_at","typeLabel":"string"},"updated_at":{"type":"string","isRequired":true,"uniqueKey":"updated_at","typeLabel":"string"},"label":{"oneOf":[{"type":"string","description":"The deal name. Null when the company does not share the deal name with partners, or when the calling partnership supports this deal (co-sell, not its primary partner) and the company hides the deal name from supporting partners. The same applies to the deal value (deal_value), the currency (currency_code), the expiration (expiration_date, expired_at) and the lead's first and last name, email and phone (null); a commission the company does not share comes back null for every partner, and a supporting partner also loses the lead's company name when hidden and the custom fields hidden from supporting partners.","isRequired":true,"uniqueKey":"label.oneOf.0","typeLabel":"string"},{"type":"null","description":"The deal name. Null when the company does not share the deal name with partners, or when the calling partnership supports this deal (co-sell, not its primary partner) and the company hides the deal name from supporting partners. The same applies to the deal value (deal_value), the currency (currency_code), the expiration (expiration_date, expired_at) and the lead's first and last name, email and phone (null); a commission the company does not share comes back null for every partner, and a supporting partner also loses the lead's company name when hidden and the custom fields hidden from supporting partners.","isRequired":true,"uniqueKey":"label.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"label","typeLabel":"string | null"},"deal_value":{"oneOf":[{"type":"number","description":"The deal value in minor units. Null when the company does not share the deal value with partners, or when the calling partnership supports this deal (co-sell) and the company hides the deal value from supporting partners.","isRequired":true,"uniqueKey":"deal_value.oneOf.0","typeLabel":"number"},{"type":"null","description":"The deal value in minor units. Null when the company does not share the deal value with partners, or when the calling partnership supports this deal (co-sell) and the company hides the deal value from supporting partners.","isRequired":true,"uniqueKey":"deal_value.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"deal_value","typeLabel":"number | null"},"total_commission_value":{"oneOf":[{"type":"number","isRequired":true,"uniqueKey":"total_commission_value.oneOf.0","typeLabel":"number"},{"type":"null","isRequired":true,"uniqueKey":"total_commission_value.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"total_commission_value","typeLabel":"number | null"},"total_commission_occurrences":{"oneOf":[{"type":"number","isRequired":true,"uniqueKey":"total_commission_occurrences.oneOf.0","typeLabel":"number"},{"type":"null","isRequired":true,"uniqueKey":"total_commission_occurrences.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"total_commission_occurrences","typeLabel":"number | null"},"lead_id":{"type":"string","isRequired":true,"uniqueKey":"lead_id","typeLabel":"string"},"created_by_user_id":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"created_by_user_id.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"created_by_user_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"created_by_user_id","typeLabel":"string | null"},"stage_id":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"stage_id.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"stage_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"stage_id","typeLabel":"string | null"},"expiration_date":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"expiration_date.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"expiration_date.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"expiration_date","typeLabel":"string | null"},"expired_at":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"expired_at.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"expired_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"expired_at","typeLabel":"string | null"},"currency_code":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"currency_code.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"currency_code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"currency_code","typeLabel":"string | null"},"stage":{"oneOf":[{"type":"object","required":["id","label","series","phase"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"stage.oneOf.0.id","typeLabel":"string"},"label":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"stage.oneOf.0.label.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"stage.oneOf.0.label.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"stage.oneOf.0.label","typeLabel":"string | null"},"series":{"oneOf":[{"type":"number","isRequired":true,"uniqueKey":"stage.oneOf.0.series.oneOf.0","typeLabel":"number"},{"type":"null","isRequired":true,"uniqueKey":"stage.oneOf.0.series.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"stage.oneOf.0.series","typeLabel":"number | null"},"phase":{"oneOf":[{"type":"string","enum":["new","in_progress","won","lost","expired","on_hold"],"isRequired":true,"uniqueKey":"stage.oneOf.0.phase.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","isRequired":true,"uniqueKey":"stage.oneOf.0.phase.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"stage.oneOf.0.phase","typeLabel":"enum\u003cstring> | null"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"stage.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"stage.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"stage","typeLabel":"object | null"},"created_by_user_first_name":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"created_by_user_first_name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"created_by_user_first_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"created_by_user_first_name","typeLabel":"string | null"},"created_by_user_last_name":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"created_by_user_last_name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"created_by_user_last_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"created_by_user_last_name","typeLabel":"string | null"},"created_by_user_email":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"created_by_user_email.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"created_by_user_email.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"created_by_user_email","typeLabel":"string | null"},"created_by_user_profile_image_id":{"oneOf":[{"type":"number","isRequired":true,"uniqueKey":"created_by_user_profile_image_id.oneOf.0","typeLabel":"number"},{"type":"null","isRequired":true,"uniqueKey":"created_by_user_profile_image_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"created_by_user_profile_image_id","typeLabel":"number | null"},"created_by_user_profile_image_uuid":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"created_by_user_profile_image_uuid.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"created_by_user_profile_image_uuid.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"created_by_user_profile_image_uuid","typeLabel":"string | null"},"lead_company_name":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"lead_company_name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"lead_company_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"lead_company_name","typeLabel":"string | null"},"lead_first_name":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"lead_first_name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"lead_first_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"lead_first_name","typeLabel":"string | null"},"lead_last_name":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"lead_last_name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"lead_last_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"lead_last_name","typeLabel":"string | null"},"lead_email":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"lead_email.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"lead_email.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"lead_email","typeLabel":"string | null"},"lead_phone_number":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"lead_phone_number.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"lead_phone_number.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"lead_phone_number","typeLabel":"string | null"},"lead_direction":{"oneOf":[{"type":"string","enum":["sent","received"],"isRequired":true,"uniqueKey":"lead_direction.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","isRequired":true,"uniqueKey":"lead_direction.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"lead_direction","typeLabel":"enum\u003cstring> | null"},"lead_status":{"type":"string","enum":["new","converted","rejected"],"isRequired":true,"uniqueKey":"lead_status","typeLabel":"enum\u003cstring>"},"lead_campaign_id":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"lead_campaign_id.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"lead_campaign_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"lead_campaign_id","typeLabel":"string | null"},"campaign_title":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"campaign_title.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"campaign_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"campaign_title","typeLabel":"string | null"},"partnership":{"oneOf":[{"type":"object","required":["id","uuid","name","partner_type","logo_square_id","logo_square_uuid","partnership_distributors_id","distributor_name","distributor_logo_square_id","distributor_logo_square_uuid"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"partnership.oneOf.0.id","typeLabel":"string"},"uuid":{"type":"string","isRequired":true,"uniqueKey":"partnership.oneOf.0.uuid","typeLabel":"string"},"name":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"partnership.oneOf.0.name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"partnership.oneOf.0.name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"partnership.oneOf.0.name","typeLabel":"string | null"},"partner_type":{"type":"string","enum":["referral","reseller","distributor"],"isRequired":true,"uniqueKey":"partnership.oneOf.0.partner_type","typeLabel":"enum\u003cstring>"},"logo_square_id":{"oneOf":[{"type":"number","isRequired":true,"uniqueKey":"partnership.oneOf.0.logo_square_id.oneOf.0","typeLabel":"number"},{"type":"null","isRequired":true,"uniqueKey":"partnership.oneOf.0.logo_square_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"partnership.oneOf.0.logo_square_id","typeLabel":"number | null"},"logo_square_uuid":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"partnership.oneOf.0.logo_square_uuid.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"partnership.oneOf.0.logo_square_uuid.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"partnership.oneOf.0.logo_square_uuid","typeLabel":"string | null"},"partnership_distributors_id":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"partnership.oneOf.0.partnership_distributors_id.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"partnership.oneOf.0.partnership_distributors_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"partnership.oneOf.0.partnership_distributors_id","typeLabel":"string | null"},"distributor_name":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"partnership.oneOf.0.distributor_name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"partnership.oneOf.0.distributor_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"partnership.oneOf.0.distributor_name","typeLabel":"string | null"},"distributor_logo_square_id":{"oneOf":[{"type":"number","isRequired":true,"uniqueKey":"partnership.oneOf.0.distributor_logo_square_id.oneOf.0","typeLabel":"number"},{"type":"null","isRequired":true,"uniqueKey":"partnership.oneOf.0.distributor_logo_square_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"partnership.oneOf.0.distributor_logo_square_id","typeLabel":"number | null"},"distributor_logo_square_uuid":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"partnership.oneOf.0.distributor_logo_square_uuid.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"partnership.oneOf.0.distributor_logo_square_uuid.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"partnership.oneOf.0.distributor_logo_square_uuid","typeLabel":"string | null"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"partnership.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"partnership.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"partnership","typeLabel":"object | null"},"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"tags.items.[INDEX].id","typeLabel":"string"},"label":{"type":"string","isRequired":true,"uniqueKey":"tags.items.[INDEX].label","typeLabel":"string"},"background_color":{"type":"string","isRequired":true,"uniqueKey":"tags.items.[INDEX].background_color","typeLabel":"string"},"text_color":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"tags.items.[INDEX].text_color.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"tags.items.[INDEX].text_color.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"tags.items.[INDEX].text_color","typeLabel":"string | null"}},"required":["id","label","background_color","text_color"],"additionalProperties":false,"uniqueKey":"tags.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"tags","typeLabel":"object[]"},"assigned_users":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"assigned_users.items.[INDEX].id","typeLabel":"string"},"first_name":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"assigned_users.items.[INDEX].first_name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"assigned_users.items.[INDEX].first_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"assigned_users.items.[INDEX].first_name","typeLabel":"string | null"},"last_name":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"assigned_users.items.[INDEX].last_name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"assigned_users.items.[INDEX].last_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"assigned_users.items.[INDEX].last_name","typeLabel":"string | null"},"email":{"type":"string","isRequired":true,"uniqueKey":"assigned_users.items.[INDEX].email","typeLabel":"string"},"profile_image_id":{"oneOf":[{"type":"number","isRequired":true,"uniqueKey":"assigned_users.items.[INDEX].profile_image_id.oneOf.0","typeLabel":"number"},{"type":"null","isRequired":true,"uniqueKey":"assigned_users.items.[INDEX].profile_image_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"assigned_users.items.[INDEX].profile_image_id","typeLabel":"number | null"},"profile_image_uuid":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"assigned_users.items.[INDEX].profile_image_uuid.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"assigned_users.items.[INDEX].profile_image_uuid.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"assigned_users.items.[INDEX].profile_image_uuid","typeLabel":"string | null"}},"required":["id","first_name","last_name","email","profile_image_id","profile_image_uuid"],"additionalProperties":false,"uniqueKey":"assigned_users.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"assigned_users","typeLabel":"object[]"},"assigned_contacts":{"description":"Partner contacts assigned to this deal. On a co-sell deal this includes the contacts of every partner on the deal, not only the calling partnership's. When the calling partnership's co-sell role hides other partners' contacts, it holds only the primary partner's contacts and the caller's own.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"assigned_contacts.items.[INDEX].id","typeLabel":"string"},"first_name":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"assigned_contacts.items.[INDEX].first_name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"assigned_contacts.items.[INDEX].first_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"assigned_contacts.items.[INDEX].first_name","typeLabel":"string | null"},"last_name":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"assigned_contacts.items.[INDEX].last_name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"assigned_contacts.items.[INDEX].last_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"assigned_contacts.items.[INDEX].last_name","typeLabel":"string | null"},"email":{"type":"string","isRequired":true,"uniqueKey":"assigned_contacts.items.[INDEX].email","typeLabel":"string"},"profile_image_id":{"oneOf":[{"type":"number","isRequired":true,"uniqueKey":"assigned_contacts.items.[INDEX].profile_image_id.oneOf.0","typeLabel":"number"},{"type":"null","isRequired":true,"uniqueKey":"assigned_contacts.items.[INDEX].profile_image_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"assigned_contacts.items.[INDEX].profile_image_id","typeLabel":"number | null"},"profile_image_uuid":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"assigned_contacts.items.[INDEX].profile_image_uuid.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"assigned_contacts.items.[INDEX].profile_image_uuid.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"assigned_contacts.items.[INDEX].profile_image_uuid","typeLabel":"string | null"}},"required":["id","first_name","last_name","email","profile_image_id","profile_image_uuid"],"additionalProperties":false,"uniqueKey":"assigned_contacts.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"assigned_contacts","typeLabel":"object[]"},"custom_fields":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"custom_fields.items.[INDEX].id","typeLabel":"string"},"label":{"type":"string","isRequired":true,"uniqueKey":"custom_fields.items.[INDEX].label","typeLabel":"string"},"type":{"type":"string","enum":["text","textarea","email","website","phone","number","date","boolean","checkbox","select","multi_select","file"],"isRequired":true,"uniqueKey":"custom_fields.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"value":{"oneOf":[{"type":"object","properties":{"text":{"oneOf":[{"type":"string","description":"Value for text-like fields","uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.text.oneOf.0","typeLabel":"string"},{"type":"null","description":"Value for text-like fields","uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.text.oneOf.1","typeLabel":"null"}],"uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.text","typeLabel":"string | null"},"textarea":{"oneOf":[{"type":"string","description":"Legacy value key for textarea fields; write using text","uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.textarea.oneOf.0","typeLabel":"string"},{"type":"null","description":"Legacy value key for textarea fields; write using text","uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.textarea.oneOf.1","typeLabel":"null"}],"uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.textarea","typeLabel":"string | null"},"number":{"oneOf":[{"type":"number","description":"Value for number fields","uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.number.oneOf.0","typeLabel":"number"},{"type":"string","description":"Value for number fields","uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.number.oneOf.1","typeLabel":"string"},{"type":"null","description":"Value for number fields","uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.number.oneOf.2","typeLabel":"null"}],"uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.number","typeLabel":"number | string | null"},"date":{"oneOf":[{"type":"string","description":"Value for date fields (ISO 8601 date string)","uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.date.oneOf.0","typeLabel":"string"},{"type":"null","description":"Value for date fields (ISO 8601 date string)","uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.date.oneOf.1","typeLabel":"null"}],"uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.date","typeLabel":"string | null"},"boolean":{"oneOf":[{"type":"boolean","description":"Value for checkbox fields","uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.boolean.oneOf.0","typeLabel":"boolean"},{"type":"string","description":"Value for checkbox fields","uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.boolean.oneOf.1","typeLabel":"string"},{"type":"null","description":"Value for checkbox fields","uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.boolean.oneOf.2","typeLabel":"null"}],"uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.boolean","typeLabel":"boolean | string | null"},"select":{"oneOf":[{"type":"number","description":"Option ID for single-select fields","uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.select.oneOf.0","typeLabel":"number"},{"type":"null","description":"Option ID for single-select fields","uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.select.oneOf.1","typeLabel":"null"}],"uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.select","typeLabel":"number | null"},"multi_select":{"oneOf":[{"type":"array","items":{"type":"number","uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.multi_select.oneOf.0.items.[INDEX]","typeLabel":"number"},"uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.multi_select.oneOf.0","typeLabel":"number[]"},{"type":"string","uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.multi_select.oneOf.1","typeLabel":"string"},{"type":"null","uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.multi_select.oneOf.2","typeLabel":"null"}],"uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.multi_select","typeLabel":"number[] | string | null"},"file":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"uuid":{"type":"string","isRequired":true,"uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.file.oneOf.0.items.[INDEX].uuid","typeLabel":"string"},"file_name":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.file.oneOf.0.items.[INDEX].file_name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.file.oneOf.0.items.[INDEX].file_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.file.oneOf.0.items.[INDEX].file_name","typeLabel":"string | null"},"mime_type":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.file.oneOf.0.items.[INDEX].mime_type.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.file.oneOf.0.items.[INDEX].mime_type.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.file.oneOf.0.items.[INDEX].mime_type","typeLabel":"string | null"},"size":{"oneOf":[{"type":"number","isRequired":true,"uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.file.oneOf.0.items.[INDEX].size.oneOf.0","typeLabel":"number"},{"type":"null","isRequired":true,"uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.file.oneOf.0.items.[INDEX].size.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.file.oneOf.0.items.[INDEX].size","typeLabel":"number | null"}},"required":["uuid","file_name","mime_type","size"],"additionalProperties":false,"uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.file.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Files of a file field. Download one with getLeadCustomFieldFileDownload / getDealCustomFieldFileDownload / getPartnerCustomFieldFileDownload.","uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.file.oneOf.0","typeLabel":"object[]"},{"type":"null","description":"Files of a file field. Download one with getLeadCustomFieldFileDownload / getDealCustomFieldFileDownload / getPartnerCustomFieldFileDownload.","uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.file.oneOf.1","typeLabel":"null"}],"uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0.file","typeLabel":"object[] | null"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"custom_fields.items.[INDEX].value.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"custom_fields.items.[INDEX].value.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"custom_fields.items.[INDEX].value","typeLabel":"object | null"},"options":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"number","isRequired":true,"uniqueKey":"custom_fields.items.[INDEX].options.oneOf.0.items.[INDEX].id","typeLabel":"number"},"label":{"type":"string","isRequired":true,"uniqueKey":"custom_fields.items.[INDEX].options.oneOf.0.items.[INDEX].label","typeLabel":"string"}},"required":["id","label"],"additionalProperties":false,"uniqueKey":"custom_fields.items.[INDEX].options.oneOf.0.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"custom_fields.items.[INDEX].options.oneOf.0","typeLabel":"object[]"},{"type":"null","isRequired":true,"uniqueKey":"custom_fields.items.[INDEX].options.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"custom_fields.items.[INDEX].options","typeLabel":"object[] | null"},"custom_field_value_id":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"custom_fields.items.[INDEX].custom_field_value_id.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"custom_fields.items.[INDEX].custom_field_value_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"custom_fields.items.[INDEX].custom_field_value_id","typeLabel":"string | null"},"locked":{"type":"boolean","isRequired":true,"uniqueKey":"custom_fields.items.[INDEX].locked","typeLabel":"boolean"}},"required":["id","label","type","value","options","custom_field_value_id","locked"],"additionalProperties":false,"uniqueKey":"custom_fields.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"custom_fields","typeLabel":"object[]"},"has_quote":{"type":"boolean","isRequired":true,"uniqueKey":"has_quote","typeLabel":"boolean"},"has_products":{"type":"boolean","isRequired":true,"uniqueKey":"has_products","typeLabel":"boolean"},"has_live_calculators":{"type":"boolean","isRequired":true,"uniqueKey":"has_live_calculators","typeLabel":"boolean"},"partners":{"type":"array","items":{"type":"object","properties":{"uuid":{"type":"string","description":"The partner's (partnership's) uuid.","isRequired":true,"uniqueKey":"partners.items.[INDEX].uuid","typeLabel":"string"},"name":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"partners.items.[INDEX].name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"partners.items.[INDEX].name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"partners.items.[INDEX].name","typeLabel":"string | null"},"partner_type":{"type":"string","enum":["referral","reseller","distributor"],"isRequired":true,"uniqueKey":"partners.items.[INDEX].partner_type","typeLabel":"enum\u003cstring>"},"role":{"oneOf":[{"type":"object","description":"The partner's role on this deal (a deal partner role). For the primary partner: the role the vendor picked from the primary partner roles of the deal's partner type, or the first of those roles when none was picked; null when that partner type has no primary roles. For a supporting partner: its supporting role, or null for none. Always null while the Co-selling module is off.","required":["uuid","label"],"properties":{"uuid":{"type":"string","isRequired":true,"uniqueKey":"partners.items.[INDEX].role.oneOf.0.uuid","typeLabel":"string"},"label":{"type":"string","isRequired":true,"uniqueKey":"partners.items.[INDEX].role.oneOf.0.label","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"partners.items.[INDEX].role.oneOf.0","typeLabel":"object"},{"type":"null","description":"The partner's role on this deal (a deal partner role). For the primary partner: the role the vendor picked from the primary partner roles of the deal's partner type, or the first of those roles when none was picked; null when that partner type has no primary roles. For a supporting partner: its supporting role, or null for none. Always null while the Co-selling module is off.","isRequired":true,"uniqueKey":"partners.items.[INDEX].role.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"partners.items.[INDEX].role","typeLabel":"object | null"},"is_primary":{"type":"boolean","description":"True for the deal's primary partner (the deal's `partner`); false for a supporting (co-sell) partner.","isRequired":true,"uniqueKey":"partners.items.[INDEX].is_primary","typeLabel":"boolean"}},"required":["uuid","name","partner_type","role","is_primary"],"additionalProperties":false,"uniqueKey":"partners.items.[INDEX]","typeLabel":"object"},"description":"Every partner on the deal. The primary partner (`is_primary: true`, the same partner as the deal's `partner`) comes first, then each supporting (co-sell) partner, oldest first, with its role. Supporting partners appear only while the Co-selling module is enabled, and only while they are active partners of the deal's partner type. When the calling partnership's co-sell role hides other partners, only the primary partner and the caller are listed.","isRequired":true,"uniqueKey":"partners","typeLabel":"object[]"},"id":{"type":"string","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"entry_commission_values":{"type":"array","items":{"type":"object","properties":{"stage_label":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"entry_commission_values.items.[INDEX].stage_label.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"entry_commission_values.items.[INDEX].stage_label.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"entry_commission_values.items.[INDEX].stage_label","typeLabel":"string | null"},"commission_value":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"isRequired":true,"uniqueKey":"entry_commission_values.items.[INDEX].commission_value","typeLabel":"integer"}},"required":["stage_label","commission_value"],"additionalProperties":false,"uniqueKey":"entry_commission_values.items.[INDEX]","typeLabel":"object"},"uniqueKey":"entry_commission_values","typeLabel":"object[]"},"spiff_entry_commission_values":{"type":"array","items":{"type":"object","properties":{"stage_label":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"spiff_entry_commission_values.items.[INDEX].stage_label.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"spiff_entry_commission_values.items.[INDEX].stage_label.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"spiff_entry_commission_values.items.[INDEX].stage_label","typeLabel":"string | null"},"commission_value":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"isRequired":true,"uniqueKey":"spiff_entry_commission_values.items.[INDEX].commission_value","typeLabel":"integer"},"recipient_type":{"oneOf":[{"type":"string","enum":["partnership","user","contact"],"uniqueKey":"spiff_entry_commission_values.items.[INDEX].recipient_type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"spiff_entry_commission_values.items.[INDEX].recipient_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"spiff_entry_commission_values.items.[INDEX].recipient_type","typeLabel":"enum\u003cstring> | null"},"recipient_user_id":{"type":"string","uniqueKey":"spiff_entry_commission_values.items.[INDEX].recipient_user_id","typeLabel":"string"},"recipient_contact_id":{"type":"string","uniqueKey":"spiff_entry_commission_values.items.[INDEX].recipient_contact_id","typeLabel":"string"},"recipient_name":{"type":"string","uniqueKey":"spiff_entry_commission_values.items.[INDEX].recipient_name","typeLabel":"string"}},"required":["stage_label","commission_value"],"additionalProperties":false,"uniqueKey":"spiff_entry_commission_values.items.[INDEX]","typeLabel":"object"},"uniqueKey":"spiff_entry_commission_values","typeLabel":"object[]"},"total_spiff_value":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"uniqueKey":"total_spiff_value","typeLabel":"integer"},"commission_overrides":{"type":"array","items":{"type":"object","properties":{"stage_label":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"commission_overrides.items.[INDEX].stage_label.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"commission_overrides.items.[INDEX].stage_label.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"commission_overrides.items.[INDEX].stage_label","typeLabel":"string | null"},"amount":{"type":"integer","minimum":0,"maximum":9007199254740991,"isRequired":true,"uniqueKey":"commission_overrides.items.[INDEX].amount","typeLabel":"integer"},"currency_code":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"commission_overrides.items.[INDEX].currency_code.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"commission_overrides.items.[INDEX].currency_code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"commission_overrides.items.[INDEX].currency_code","typeLabel":"string | null"},"note":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"commission_overrides.items.[INDEX].note.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"commission_overrides.items.[INDEX].note.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"commission_overrides.items.[INDEX].note","typeLabel":"string | null"},"document":{"oneOf":[{"type":"object","required":["uuid","file_url","file_name","mime_type"],"properties":{"uuid":{"type":"string","isRequired":true,"uniqueKey":"commission_overrides.items.[INDEX].document.oneOf.0.uuid","typeLabel":"string"},"file_url":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"commission_overrides.items.[INDEX].document.oneOf.0.file_url.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"commission_overrides.items.[INDEX].document.oneOf.0.file_url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"commission_overrides.items.[INDEX].document.oneOf.0.file_url","typeLabel":"string | null"},"file_name":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"commission_overrides.items.[INDEX].document.oneOf.0.file_name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"commission_overrides.items.[INDEX].document.oneOf.0.file_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"commission_overrides.items.[INDEX].document.oneOf.0.file_name","typeLabel":"string | null"},"mime_type":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"commission_overrides.items.[INDEX].document.oneOf.0.mime_type.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"commission_overrides.items.[INDEX].document.oneOf.0.mime_type.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"commission_overrides.items.[INDEX].document.oneOf.0.mime_type","typeLabel":"string | null"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"commission_overrides.items.[INDEX].document.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"commission_overrides.items.[INDEX].document.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"commission_overrides.items.[INDEX].document","typeLabel":"object | null"}},"required":["stage_label","amount","currency_code","note","document"],"additionalProperties":false,"uniqueKey":"commission_overrides.items.[INDEX]","typeLabel":"object"},"uniqueKey":"commission_overrides","typeLabel":"object[]"}},"required":["uuid","created_at","updated_at","label","deal_value","total_commission_value","total_commission_occurrences","lead_id","created_by_user_id","stage_id","expiration_date","expired_at","currency_code","stage","created_by_user_first_name","created_by_user_last_name","created_by_user_email","created_by_user_profile_image_id","created_by_user_profile_image_uuid","lead_company_name","lead_first_name","lead_last_name","lead_email","lead_phone_number","lead_direction","lead_status","lead_campaign_id","campaign_title","partnership","tags","assigned_users","assigned_contacts","custom_fields","has_quote","has_products","has_live_calculators","partners","id"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"uuid":"\u003cstring>","created_at":"\u003cstring>","updated_at":"\u003cstring>","label":"\u003cstring>","deal_value":123,"total_commission_value":123,"total_commission_occurrences":123,"lead_id":"\u003cstring>","created_by_user_id":"\u003cstring>","stage_id":"\u003cstring>","expiration_date":"\u003cstring>","expired_at":"\u003cstring>","currency_code":"\u003cstring>","stage":{"id":"\u003cstring>","label":"\u003cstring>","series":123,"phase":"new"},"created_by_user_first_name":"\u003cstring>","created_by_user_last_name":"\u003cstring>","created_by_user_email":"\u003cstring>","created_by_user_profile_image_id":123,"created_by_user_profile_image_uuid":"\u003cstring>","lead_company_name":"\u003cstring>","lead_first_name":"\u003cstring>","lead_last_name":"\u003cstring>","lead_email":"\u003cstring>","lead_phone_number":"\u003cstring>","lead_direction":"sent","lead_status":"new","lead_campaign_id":"\u003cstring>","campaign_title":"\u003cstring>","partnership":{"id":"\u003cstring>","uuid":"\u003cstring>","name":"\u003cstring>","partner_type":"referral","logo_square_id":123,"logo_square_uuid":"\u003cstring>","partnership_distributors_id":"\u003cstring>","distributor_name":"\u003cstring>","distributor_logo_square_id":123,"distributor_logo_square_uuid":"\u003cstring>"},"tags":[{"id":"\u003cstring>","label":"\u003cstring>","background_color":"\u003cstring>","text_color":"\u003cstring>"}],"assigned_users":[{"id":"\u003cstring>","first_name":"\u003cstring>","last_name":"\u003cstring>","email":"\u003cstring>","profile_image_id":123,"profile_image_uuid":"\u003cstring>"}],"assigned_contacts":[{"id":"\u003cstring>","first_name":"\u003cstring>","last_name":"\u003cstring>","email":"\u003cstring>","profile_image_id":123,"profile_image_uuid":"\u003cstring>"}],"custom_fields":[{"id":"\u003cstring>","label":"\u003cstring>","type":"text","value":{"text":"\u003cstring>","textarea":"\u003cstring>","number":123,"date":"\u003cstring>","boolean":true,"select":123,"multi_select":[123],"file":[{"uuid":"\u003cstring>","file_name":"\u003cstring>","mime_type":"\u003cstring>","size":123}]},"options":[{"id":123,"label":"\u003cstring>"}],"custom_field_value_id":"\u003cstring>","locked":true}],"has_quote":true,"has_products":true,"has_live_calculators":true,"partners":[{"uuid":"\u003cstring>","name":"\u003cstring>","partner_type":"referral","role":{"uuid":"\u003cstring>","label":"\u003cstring>"},"is_primary":true}],"id":"\u003cstring>","entry_commission_values":[{"stage_label":"\u003cstring>","commission_value":0}],"spiff_entry_commission_values":[{"stage_label":"\u003cstring>","commission_value":0,"recipient_type":"partnership","recipient_user_id":"\u003cstring>","recipient_contact_id":"\u003cstring>","recipient_name":"\u003cstring>"}],"total_spiff_value":0,"commission_overrides":[{"stage_label":"\u003cstring>","amount":4503599627370495,"currency_code":"\u003cstring>","note":"\u003cstring>","document":{"uuid":"\u003cstring>","file_url":"\u003cstring>","file_name":"\u003cstring>","mime_type":"\u003cstring>"}}]}}},"exampleType":"generated"}},"exampleType":"generated"},"8a1919c6-91a0-400b-a9ff-421f374d18c1":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"array","items":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].message","typeLabel":"string"},"field":{"type":"string","uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"label":{"type":"string","uniqueKey":"error.details.items.[INDEX].label","typeLabel":"string"},"reason":{"type":"string","uniqueKey":"error.details.items.[INDEX].reason","typeLabel":"string"}},"required":["message"],"additionalProperties":false,"uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.details","typeLabel":"object[]"}},"required":["code","message"],"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","details":[{"message":"\u003cstring>","field":"\u003cstring>","label":"\u003cstring>","reason":"\u003cstring>"}]}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"ee7e257a-1749-4101-b33f-5219b49f324a":{"apiKey":{"type":"http","scheme":"bearer","description":"API key authentication. Use \"Bearer \u003capi_key>\" or \"Api-Key \u003capi_key>\".","scopes":[],"schemeName":"apiKey"}}},"servers":{"e0c483a8-4d49-4ce8-8e24-4be11d00d28b":{"url":"https://api.journeybee.io/v1","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"API key authentication. Use \"Bearer \u003capi_key>\" or \"Api-Key \u003capi_key>\".","scopes":[],"schemeName":"apiKey"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"API key authentication. Use \"Bearer \u003capi_key>\" or \"Api-Key \u003capi_key>\".","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"apiKey","name":"Authorization"}],"title":"apiKey"}]},"originalFileLocation":"partner-openapi.json"},"subdomain":"journeybee","siteName":"Journeybee API","title":"Update a partnership deal - Journeybee API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-15T20:49:57.629Z","originalFileLocation":"partner-api-reference/partner/update-a-partnership-deal.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Custom fields may be required or rule-controlled — call getPartnerDealRequirements first to learn the field/rule constraints. Validation failures return per-field details with machine-readable reason codes. When the deal\u0026#x27;s lock_deal_stage is true (the calling partnership\u0026#x27;s own lock or, for a supporting partner on a co-sell deal, the primary partnership\u0026#x27;s lock), changing fields.stage_id returns 403 forbidden with a locked_by_partnership detail reason and nothing in the request is saved; re-sending the current stage is allowed. A supporting partner on a co-sell deal cannot set a field the vendor hides from supporting partners: a hidden custom field returns 400 validation_error with reason not_accessible, and fields.label or fields.expiration_date when hidden returns 400 validation_error with reason hidden_by_rule; nothing in the request is saved. The response is the deal as getPartnerDeal returns it, filtered the same way by the caller\u0026#x27;s co-sell role. A deal field the vendor does not share with partners (fields.label, fields.expiration_date) returns 400 validation_error with reason hidden_by_rule for every partner. A deal field the vendor has locked (getPartnerDealRequirements standard_fields with locked: true) reads as usual but is set only by the vendor: a different fields.label or fields.expiration_date returns 400 validation_error with reason locked_field and nothing in the request is saved; re-sending the current value is allowed.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Journeybee API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/journeybee/_generated/favicon/apple-touch-icon.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/journeybee/_generated/favicon/favicon-32x32.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/journeybee/_generated/favicon/favicon-16x16.png?v=3\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/journeybee/_generated/favicon/favicon.ico?v=3\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update a partnership deal - Journeybee API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Custom fields may be required or rule-controlled — call getPartnerDealRequirements first to learn the field/rule constraints. Validation failures return per-field details with machine-readable reason codes. When the deal\u0026#x27;s lock_deal_stage is true (the calling partnership\u0026#x27;s own lock or, for a supporting partner on a co-sell deal, the primary partnership\u0026#x27;s lock), changing fields.stage_id returns 403 forbidden with a locked_by_partnership detail reason and nothing in the request is saved; re-sending the current stage is allowed. A supporting partner on a co-sell deal cannot set a field the vendor hides from supporting partners: a hidden custom field returns 400 validation_error with reason not_accessible, and fields.label or fields.expiration_date when hidden returns 400 validation_error with reason hidden_by_rule; nothing in the request is saved. The response is the deal as getPartnerDeal returns it, filtered the same way by the caller\u0026#x27;s co-sell role. A deal field the vendor does not share with partners (fields.label, fields.expiration_date) returns 400 validation_error with reason hidden_by_rule for every partner. A deal field the vendor has locked (getPartnerDealRequirements standard_fields with locked: true) reads as usual but is set only by the vendor: a different fields.label or fields.expiration_date returns 400 validation_error with reason locked_field and nothing in the request is saved; re-sending the current value is allowed.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Journeybee API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.journeybee.io/partner-api-reference/partner/update-a-partnership-deal\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://journeybee.mintlify.site/_mintlify/api/og/v2?division=Partner\u0026amp;title=Update+a+partnership+deal\u0026amp;description=Custom+fields+may+be+required+or+rule-controlled+%E2%80%94+call+getPartnerDealRequirements+first+to+learn+the+field%2Frule+constraints.+Validation+failures+return+per-fie\u0026amp;theme=68f9df7cb6fc1ba2bed56275\u0026amp;signature=55a4865787c96c9453265851c820eb86fb80ab5afbf2452b4098a3ba2074712f\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Update a partnership deal - Journeybee API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Custom fields may be required or rule-controlled — call getPartnerDealRequirements first to learn the field/rule constraints. Validation failures return per-field details with machine-readable reason codes. When the deal\u0026#x27;s lock_deal_stage is true (the calling partnership\u0026#x27;s own lock or, for a supporting partner on a co-sell deal, the primary partnership\u0026#x27;s lock), changing fields.stage_id returns 403 forbidden with a locked_by_partnership detail reason and nothing in the request is saved; re-sending the current stage is allowed. A supporting partner on a co-sell deal cannot set a field the vendor hides from supporting partners: a hidden custom field returns 400 validation_error with reason not_accessible, and fields.label or fields.expiration_date when hidden returns 400 validation_error with reason hidden_by_rule; nothing in the request is saved. The response is the deal as getPartnerDeal returns it, filtered the same way by the caller\u0026#x27;s co-sell role. A deal field the vendor does not share with partners (fields.label, fields.expiration_date) returns 400 validation_error with reason hidden_by_rule for every partner. A deal field the vendor has locked (getPartnerDealRequirements standard_fields with locked: true) reads as usual but is set only by the vendor: a different fields.label or fields.expiration_date returns 400 validation_error with reason locked_field and nothing in the request is saved; re-sending the current value is allowed.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://journeybee.mintlify.site/_mintlify/api/og/v2?division=Partner\u0026amp;title=Update+a+partnership+deal\u0026amp;description=Custom+fields+may+be+required+or+rule-controlled+%E2%80%94+call+getPartnerDealRequirements+first+to+learn+the+field%2Frule+constraints.+Validation+failures+return+per-fie\u0026amp;theme=68f9df7cb6fc1ba2bed56275\u0026amp;signature=55a4865787c96c9453265851c820eb86fb80ab5afbf2452b4098a3ba2074712f\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/journeybee/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Journeybee API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#007aff\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.journeybee.io/partner-api-reference/partner/update-a-partnership-deal\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/partner-api-reference/partner/update-a-partnership-deal.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.journeybee.io/#organization\",\"name\":\"Journeybee API\",\"url\":\"https://docs.journeybee.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/journeybee/OYst47RAi-INCv0T/logo-light.svg?fit=max\u0026auto=format\u0026n=OYst47RAi-INCv0T\u0026q=85\u0026s=8afc66d3e6015e470883014b04a24784\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.journeybee.io#website\",\"name\":\"Journeybee API\",\"url\":\"https://docs.journeybee.io\",\"publisher\":{\"@id\":\"https://docs.journeybee.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.journeybee.io/partner-api-reference/partner/update-a-partnership-deal#webpage\",\"url\":\"https://docs.journeybee.io/partner-api-reference/partner/update-a-partnership-deal\",\"name\":\"Update a partnership deal\",\"description\":\"Custom fields may be required or rule-controlled — call getPartnerDealRequirements first to learn the field/rule constraints. Validation failures return per-field details with machine-readable reason codes. When the deal's lock_deal_stage is true (the calling partnership's own lock or, for a supporting partner on a co-sell deal, the primary partnership's lock), changing fields.stage_id returns 403 forbidden with a locked_by_partnership detail reason and nothing in the request is saved; re-sending the current stage is allowed. A supporting partner on a co-sell deal cannot set a field the vendor hides from supporting partners: a hidden custom field returns 400 validation_error with reason not_accessible, and fields.label or fields.expiration_date when hidden returns 400 validation_error with reason hidden_by_rule; nothing in the request is saved. The response is the deal as getPartnerDeal returns it, filtered the same way by the caller's co-sell role. A deal field the vendor does not share with partners (fields.label, fields.expiration_date) returns 400 validation_error with reason hidden_by_rule for every partner. A deal field the vendor has locked (getPartnerDealRequirements standard_fields with locked: true) reads as usual but is set only by the vendor: a different fields.label or fields.expiration_date returns 400 validation_error with reason locked_field and nothing in the request is saved; re-sending the current value is allowed.\",\"dateModified\":\"2026-11-15T20:49:57.629Z\",\"isPartOf\":{\"@id\":\"https://docs.journeybee.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.journeybee.io/partner-api-reference/partner/update-a-partnership-deal#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.journeybee.io/partner-api-reference/partner/update-a-partnership-deal#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Partner API Reference\",\"item\":\"https://docs.journeybee.io/partner-api-reference/partner/get-partner-identity-and-accessible-partnerships\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Partner\",\"item\":\"https://docs.journeybee.io/partner-api-reference/partner/get-partner-identity-and-accessible-partnerships\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Update a partnership deal\",\"item\":\"https://docs.journeybee.io/partner-api-reference/partner/update-a-partnership-deal\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.journeybee.io/partner-api-reference/partner/update-a-partnership-deal#apireference\",\"headline\":\"Update a partnership deal\",\"name\":\"Update a partnership deal\",\"description\":\"Custom fields may be required or rule-controlled — call getPartnerDealRequirements first to learn the field/rule constraints. Validation failures return per-field details with machine-readable reason codes. When the deal's lock_deal_stage is true (the calling partnership's own lock or, for a supporting partner on a co-sell deal, the primary partnership's lock), changing fields.stage_id returns 403 forbidden with a locked_by_partnership detail reason and nothing in the request is saved; re-sending the current stage is allowed. A supporting partner on a co-sell deal cannot set a field the vendor hides from supporting partners: a hidden custom field returns 400 validation_error with reason not_accessible, and fields.label or fields.expiration_date when hidden returns 400 validation_error with reason hidden_by_rule; nothing in the request is saved. The response is the deal as getPartnerDeal returns it, filtered the same way by the caller's co-sell role. A deal field the vendor does not share with partners (fields.label, fields.expiration_date) returns 400 validation_error with reason hidden_by_rule for every partner. A deal field the vendor has locked (getPartnerDealRequirements standard_fields with locked: true) reads as usual but is set only by the vendor: a different fields.label or fields.expiration_date returns 400 validation_error with reason locked_field and nothing in the request is saved; re-sending the current value is allowed.\",\"url\":\"https://docs.journeybee.io/partner-api-reference/partner/update-a-partnership-deal\",\"mainEntityOfPage\":{\"@id\":\"https://docs.journeybee.io/partner-api-reference/partner/update-a-partnership-deal#webpage\"},\"dateModified\":\"2026-11-15T20:49:57.629Z\",\"publisher\":{\"@id\":\"https://docs.journeybee.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.journeybee.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Journeybee API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Journeybee API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/partner-api-reference/partner/update-a-partnership-deal.md","siteName":"Journeybee API","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/account/get-current-account-info"}]},{"tab":"Partner API","groups":[{"group":"Guides","pages":[{"title":"Partner API","href":"/guides/partner-api"},{"title":"Partner MCP","href":"/guides/partner-mcp"}]},{"group":"Partner API Reference","pages":[{"group":"Partner","pages":[{"title":"Get partner identity and accessible partnerships","deprecated":null,"version":null,"openapi":"/partner-openapi.json get /partner/me","href":"/partner-api-reference/partner/get-partner-identity-and-accessible-partnerships"},{"title":"List partnership leads","deprecated":null,"version":null,"openapi":"/partner-openapi.json get /partner/{partnershipId}/leads","href":"/partner-api-reference/partner/list-partnership-leads"},{"title":"Create a partnership lead","deprecated":null,"version":null,"openapi":"/partner-openapi.json post /partner/{partnershipId}/leads","href":"/partner-api-reference/partner/create-a-partnership-lead"},{"title":"Get lead custom field requirements","deprecated":null,"version":null,"openapi":"/partner-openapi.json get /partner/{partnershipId}/leads/requirements","href":"/partner-api-reference/partner/get-lead-custom-field-requirements"},{"title":"Get a partnership lead","deprecated":null,"version":null,"openapi":"/partner-openapi.json get /partner/{partnershipId}/leads/{leadId}","href":"/partner-api-reference/partner/get-a-partnership-lead"},{"title":"Update a partnership lead","deprecated":null,"version":null,"openapi":"/partner-openapi.json patch /partner/{partnershipId}/leads/{leadId}","href":"/partner-api-reference/partner/update-a-partnership-lead"},{"title":"List partnership deals","deprecated":null,"version":null,"openapi":"/partner-openapi.json get /partner/{partnershipId}/deals","href":"/partner-api-reference/partner/list-partnership-deals"},{"title":"Create a partnership deal","deprecated":null,"version":null,"openapi":"/partner-openapi.json post /partner/{partnershipId}/deals","href":"/partner-api-reference/partner/create-a-partnership-deal"},{"title":"Get deal custom field requirements","deprecated":null,"version":null,"openapi":"/partner-openapi.json get /partner/{partnershipId}/deals/requirements","href":"/partner-api-reference/partner/get-deal-custom-field-requirements"},{"title":"Get a partnership deal","description":"`partners` lists every partner on the deal: the primary partner first, then each supporting (co-sell) partner with its role. When the calling partnership is a supporting partner, every money field comes back null or empty (commission values, spiffs, overrides; `has_quote` is false), the lead is not reachable, and the primary partnership's deal-stage lock binds it too (listPartnerDeals reports it as `lock_deal_stage`; updatePartnerDeal enforces it). The vendor's co-sell roles can narrow what the caller sees: with the caller's role hiding other partners, `partners` lists only the primary partner and the caller; hiding their contacts, `assigned_contacts` holds only the primary partner's and the caller's own and `created_by_user_id` is null when another partner's contact created the deal; a supporting role hiding products gets `has_products` false. Fields the vendor hides from supporting partners are withheld from a supporting caller: a hidden deal name, expiration (`expiration_date`, `expired_at`) or lead company name, first or last name, email or phone comes back null, and a hidden custom field is left out of `custom_fields`. A deal or lead field the vendor does not share with partners comes back null for every partner: deal name, value, currency, expiration, the lead's first and last name, email and phone, and, when the commission is not shared, every commission, override and spiff value: not shared hides the commission estimate on the deal; payouts stay visible.","deprecated":null,"version":null,"openapi":"/partner-openapi.json get /partner/{partnershipId}/deals/{dealId}","href":"/partner-api-reference/partner/get-a-partnership-deal"},{"title":"Update a partnership deal","deprecated":null,"version":null,"openapi":"/partner-openapi.json patch /partner/{partnershipId}/deals/{dealId}","href":"/partner-api-reference/partner/update-a-partnership-deal"}]}]}]}]},"basePath":"","title":"Update a partnership deal - Journeybee API","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DdEMm2kG.js","utils-BMo572L7.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C-4m9KAx.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DPLK2Oq9.js","snippetPresets-BKjfJMC9.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-DTsgtCEj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C8vmhyQM.js","shallow-r9w8LQGS.js","getApiPlaygroundDisplay-DjPI64HQ.js","CodeSnippet-C8Bvhl16.js","CodeSnippets-BtWUwcMy.js","Page-BIYvYBgk.js","getPastedJson-Dcm_3Pgl.js","icon-BXwrTpjc.js","MethodPill-CcjfVmmy.js","DuplicateIcon-BuKIbXAQ.js","createIcon-DaL9yXsO.js","DynamicMarkdown-Co5nikxh.js","SectionHeading-P4UNTsMZ.js","axios-vUo_bRtp.js","Markdown-CEfymfIH.js","clsx-Dq9TQuNi.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-D2J8knkn.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BgZ2ThuU.js"]}