Create a Mapping Set with its content, and switch it on.
curl --request POST \ --url 'https://auth.example.com/api/admin/identity-mapping/sets?preview=false' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: example' \ --data '{ "display_name": "example", "description": "example", "field_mapping_key": "example", "owner_scope_type": "tenant", "enabled": true, "confirm_impact": 1, "content": { "catalogVersionId": "example", "compatibilityRange": "example", "sourceProfileIds": [ "example" ], "rules": [ { "additionalProperty": "example" } ] } }'Creates a Mapping Set and saves its content in one call (the set, a version, its publication and compile, and the activation), as PUT /api/admin/identity-mapping/sets/{id} does for a set that exists. The body is the same, with field_mapping_key (required here, unique among the sets of the owner) and owner_scope_type: platform creates the platform’s set, which needs platform authority (403 otherwise); any other value creates the calling tenant’s. The set is given a server-made ID (a set ID cannot be chosen). Answers 201. ?preview=true writes nothing (see the PUT). A key already in use answers 409 conflict. If a step fails, the set is not left behind (see the PUT for stage_failed). A set that releases into a Destination Profile that is not an OIDC one is refused with 400 unsupported_destination. Idempotency-Key is required (8 to 128 characters; not for a preview). Rate limited with the strict profile.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ”Required replay-protection key retained for 15 minutes.
Query Parameters
Section titled “Query Parameters ”With true nothing is written; the answer says what the save would do (see the PUT).
Request Body required
Section titled “Request Body required ”object
Required to create (unique among the owner’s sets). On a PUT it can be left out or must be the set’s own key.
Only when creating: platform creates the platform’s set (platform authority). On a PUT it can be left out or must be the set’s owner.
True switches the saved version on, in place of the one in use. False saves it and ends the activation (refused while something names the set).
The number of references seen last (preview or usage). Required to change a set that something names.
What a version holds, in the form the version create takes (camelCase), and the catalog version it is compiled against. The version label and the author are made by the server.
object
The catalog version the content is compiled against.
Source Profile references validated for mappingRequired fields. Not given back by a GET (the edges carry the profile IDs).
Rules with ruleKey, ruleKind, action, priority, scope, condition, metadata, edges (sourceRef, targetRef, edgeKind), transforms (edgeIndex, operation, parameters), validationRules, releaseRules and conflictRules, as in FieldMappingVersionCreateRequest. The rules release into exactly one OIDC Destination Profile (named by targetRef.profileId).
object
Responses
Section titled “ Responses ”What a save would do (nothing was written).
object
Only when valid is false.
Only when valid is false.
Only when valid is false.
object
object
object
object
Why switching the set off would be refused now, if it would.
object
object
object
The names of the claims released. Never a value.
object
The names of the claims released. Never a value.
object
Example
{ "preview": true, "stage_failed": "validate"}The set was saved (200 for a set that existed, 201 for one that was created), or, with preview=true, what a save would do.
object
Whether an activation is in use.
The label of the version the set is now (the one in use, else the last saved).
What the set is now: the ID of the version in use, else of the version saved last, else none. Changes with every save; sent as If-Match.
The version this save created.
object
The names of the claims released. Never a value.
object
Only when valid is false.
Only when valid is false.
Only when valid is false.
object
object
object
object
Why switching the set off would be refused now, if it would.
object
object
object
The names of the claims released. Never a value.
object
The names of the claims released. Never a value.
object
Example
{ "owner": "tenant"}Headers
Section titled “Headers ”The content_version after the save, quoted.
The save was refused or a step failed. stage_failed names the step when the content was looked at or written; version_id and version_discarded are given when a version was created.
object
For example invalid_request, unsupported_destination, conflict, impact_confirmation_required, idempotency_conflict, result_unknown, internal_error.
The version this save created before it failed.
Whether that version was removed.
The references that made a change a conflict, as in MappingSetInUseError; for impact_confirmation_required, references.count is the number to confirm.
object
Example
{ "stage_failed": "validate", "reason": "referenced"}Error response.
object
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
object
Example generated
{ "error": "example", "message": "example", "error_description": "example"}The save was refused or a step failed. stage_failed names the step when the content was looked at or written; version_id and version_discarded are given when a version was created.
object
For example invalid_request, unsupported_destination, conflict, impact_confirmation_required, idempotency_conflict, result_unknown, internal_error.
The version this save created before it failed.
Whether that version was removed.
The references that made a change a conflict, as in MappingSetInUseError; for impact_confirmation_required, references.count is the number to confirm.
object
Example
{ "stage_failed": "validate", "reason": "referenced"}Error response.
object
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
object
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
object
Example generated
{ "error": "example", "message": "example", "error_description": "example"}The save was refused or a step failed. stage_failed names the step when the content was looked at or written; version_id and version_discarded are given when a version was created.
object
For example invalid_request, unsupported_destination, conflict, impact_confirmation_required, idempotency_conflict, result_unknown, internal_error.
The version this save created before it failed.
Whether that version was removed.
The references that made a change a conflict, as in MappingSetInUseError; for impact_confirmation_required, references.count is the number to confirm.
object
Example
{ "stage_failed": "validate", "reason": "referenced"}Error response.
object
Example generated
{ "error": "example", "message": "example", "error_description": "example"}