Skip to main content
POST
Add an entity to an Opportunity.

Authorizations

x-api-key
string
header
required

Path Parameters

opportunity_uuid
string
required

Body

application/json
entity_type
string
required

Entity type discriminator (case-insensitive, stored uppercase). Must be one of: PERSON, COMPANY, NOTE, FILE, TASK, ACTIVITY, OPPORTUNITY. Unlike notes and tasks, OPPORTUNITY-to-OPPORTUNITY associations are allowed here. For ACTIVITY, entity_uuid is the activity's object_id (what GET /v1/activities/{activity_object_id}/body takes), not a uuid.

entity_uuid
string
required
context
string | null

Response

201 - application/json

Response body for association create (includes the new association uuid).

entity_type
string
required
entity_uuid
string
required
uuid
string
required
context
string | null