Skip to content

Add Deals To List

POST
/lists/{audience_id}/deals

Put deals on a deals list.

Each deal is checked against the caller’s DEAL scope as well as the list’s, so adding a deal you cannot see is refused rather than silently skipped.

Authorizations

Parameters

Path Parameters

audience_id
required

List (audience) id.

integer

List (audience) id.

Header Parameters

X-Target-Org-Id
Any of:
string

Request Body required

Put deals on a deals list.

Deal ids are STRINGS here while contact, company, suppression and lead ids are integers. That is the app’s own typing and it is mirrored rather than smoothed over: coercing would make a mistyped id a silent miss.

object
deal_ids
required

Deal ids (strings, unlike the others).

Array<string>
source
Any of:
string

Responses

201

Successful Response

object
data
required

An open envelope for a list, a capability map or a job result.

Open because several of these return the whole Audience, whose shape carries per-source metadata that differs between an uploaded file, a dynamic query and a master list - and grows with them.

object
key
additional properties
any
pagination
Any of:
object
has_next
required

Whether there are more pages

boolean
limit
required

Items per page

integer
next_cursor
Any of:
string
page
required

Current page number (1-indexed)

integer
total
required

Total number of items

integer

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string