/mapping/validate
Checks mapping records against each record’s own integration without writing anything. Use it before POST /v1/mapping/apply to see which rows would be refused and why. It takes the same body as apply; mode is ignored here.
Each record names its integration (integration_id, encoded), level, entity_id, field and value (or wnm: true). For every record it checks that:
- the integration is reachable: available to the caller’s organisation chain (its own, its parents’, CORE’s), or to the organisation of the record’s entity, so a CORE user or a parent organisation can map a publisher’s own integrations;
- the level is known and the field exists in that integration’s catalogue (exact key; see GET /v1/mapping/schema/);
- the caller may write the field: not computed, not owner-only unless the caller owns the integration, and
approvedonly by the owner, only at integration / organisation / publisher level and never as wnm; - a
config(ad unit) record is for a field that can vary per unit; - a non-empty value validates against the field’s JSON Schema (empty values and wnm rows skip this);
- the entity exists, isn’t archived and is inside the caller’s organisation tree (CORE: just exists). Integration-level records need the caller to own the integration.
Results are per row, with no all-or-nothing failure: the response is 200 even when every row is invalid. rows[].index is the record’s 0-based position. Entity problems are also listed in unknown_entities.
Requires the integration.view permission.
Authorizations
Query Parameters
Optional publisher uid. Integrations available to that publisher's organisation chain (its organisation, its parents and CORE) are accepted for every record, in place of the caller's own chain. The caller must be able to access the publisher (404 Not Found otherwise). Rarely needed: a record's integration is accepted anyway when it is available to the organisation of the record's own entity.