Validate mapping values across integrations
Checks mapping records that each name their own integration and returns the result for each, without storing anything. Apply runs the same checks, so use this as a dry run before POST /v1/mapping/apply. A record’s integration is accepted when it’s available to your organisation (its own, a parent organisation’s or a platform-wide one) or to the organisation of the record’s entity, so a parent organisation or a platform admin can map a publisher’s own integrations. An integration that isn’t accepted fails the record, not the request. Each record is checked for: a known level; a field in the integration’s field list that you can write (not filled in automatically, declared read-only or owner-only when you’re not the owner); a field that can vary per config (ad unit) for a config record and isn’t read per publisher for an ad_stack record; approved only from the integration’s owner, only at integration, organisation or publisher level and never will not map; a non-empty value that matches the field’s JSON Schema; and an entity that exists, isn’t deleted and, unless you’re a platform admin, is in your organisation or one below it. Integration-level records need you to own the integration. With mode append, valid records whose field already has a stored value for the entity are marked skipped, as apply would leave them. The response is a 200 even when every record is invalid.
Authorizations
Query Parameters
Publisher ID. Accepts the integrations available to this publisher's organisation for every record, in place of your own organisation's. Unless you're a platform admin, the publisher must be in your own organisation. Rarely needed, as a record's integration is accepted anyway when it's available to the organisation of the record's own entity.
Body
How to treat a field that already has a stored value for the entity, including an empty or will-not-map one. Any other value returns a 400. Values: overwrite = Replace it (default), append = Leave it and count the record as skipped.
overwrite, append