Skip to main content
POST
Update an Opportunity

Authorizations

Authorization
string
header
required

A static Affinity API key, presented as a bearer token.

Path Parameters

opportunityId
integer<int64>
required

Opportunity ID

Required range: 1 <= x <= 9007199254740991

Body

application/json

Partial-update request body for an Opportunity. Only provided properties are updated; properties omitted from the request keep their current value.

name
string

The name of the opportunity.

Required string length: 1 - 255
Example:

"Horizon Technologies Upsell $10k"

isRestricted
boolean

Set to true to restrict the opportunity. Only true is allowed, because a restricted opportunity cannot be made unrestricted. A false value returns a 400 validation error.

Example:

true

Response

No Content