Skip to main content
PATCH
Update a Deal

Authorizations

Authorization
string
header
required

Bearer Token necessary to use API

Scopes

public.deal:write
Bearer
public.deal:write
OAuth2

Deal (Write)

Path Parameters

deal_id
string
required

The ID of the deal

Pattern: ^deal_

Query Parameters

expand
string[]

This endpoint supports expandable responses. For more, see the documentation page.

fields
string[]

Returns only the listed fields, such as id,status,site.name. Identifiers and constant fields such as object are always returned. A field inside an expandable association also needs it in expand, unless the collapsed association returns it, such as site.id. For more, see the documentation page.

Body

application/json

Update Deal Request

name
string

The name of the deal.

contact
object

Contact the deal belongs to.

stage
object

Pipeline stage to move the deal to. Cannot be changed on a won or lost deal.

assignee
object | null

Staff member responsible for the deal. Set to null to remove the assignee.

site
object | null

Site the deal is for. Set to null to remove the site.

note
string | null

Free-text note for the deal. Displayed under 'Deal value estimate' in Backoffice. To remove the existing value, set to null.

starts_at
string<date-time> | null

Intended move-in date, as an ISO 8601 date-time. Only the date is stored. Set to null to remove it.

metadata
object | null

Set of key-value pairs for storing additional information on the deal. Learn more about metadata.

line_items
object[] | null

Leave this property out to keep the current line items. When you send it, it replaces all existing line items. Send an empty array to remove them all. At most one item per type is allowed.

Maximum array length: 2

Deal Unit Type Line Item

Response

deal updated

Single Deal

deal
object
required

Deal

meta
object
required