Skip to main content
POST
Validate an integration's ad stack settings

Authorizations

Authorization
string
header
required

A personal API token from the platform's settings page, or an OAuth access token.

Path Parameters

id
string
required

Encoded integration ID (iid, base-36, as returned by GET /v1/integration)

Query Parameters

uid
integer

Publisher ID. Fills mapping from that publisher and its organisations, checks against its organisation, and adds the required-mapping, approval and policy checks and completeness

sid
integer

Ad stack ID. Its stack-level mapping fills empty fields, and with uid only the publisher's configs on this stack count in the required-field check

cid
integer

Config (ad unit) ID, with uid. If it's one of the publisher's configs, its own mapping values count, and the required-field check looks at that config only

Body

application/json

The integration's stack settings, as described by GET /v1/integration/{id}/stack-schema. Empty values are ignored

Response

OK: Validation result.

valid
required

true when the integration is valid, otherwise a JSON-encoded string to parse, {"message": "<reason>", "status": 400}. The reason is a validation message (Form errors found: …), is missing required mapping: <field titles> ((the owner must set it) follows a field only the integration's owner can set), isn't approved for this publisher, or Requires policy acceptance

completeness
object | null
required

With uid, the integration's required fields that have no value for the publisher. Null without uid

success
boolean
required

Always true