Changes the custom status of a deal
/jsonapi/deals/{id}/statusWhere id is the identifier of the deal. The target CustomStatusId must belong to the same org as the deal.
For client-credentials integrations, supply your assigned adviser identifier in the UserId header. See request headers and data access.
Bearer authentication. Confirm your scopes, data access and required adviser context.
Request parameters
id path required
idintegerformat: int32
Request body
application/json
customStatusIdintegerrequiredformat: int32
Example request
Use your supplied API base URL and replace path placeholders such as {id}. These examples run in your backend or terminal, where your credentials are kept.
curl --globoff --request PUT "${API_BASE_URL}/jsonapi/deals/{id}/status" \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "UserId: $ADVISER_CONTACT_ID" \
--header 'Accept: application/vnd.api+json' \
--header 'Content-Type: application/vnd.api+json' \
--data @request.json
Create request.json (or requestBody in JavaScript) using the request schema above. The field descriptions and resource guide explain additional business rules.
Responses
OK format: int32 format: int32application/jsonidintegercustomStatusIdintegerstatusNamestring · nullable
For guidance beyond this operation's schema, see troubleshooting and JSON:API explained.