Create a field mapping version.
curl --request POST \ --url https://auth.example.com/api/admin/field-mapping/field-mapping-sets/example/versions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "versionLabel": "v1", "rules": [ { "ruleKey": "map-department", "ruleKind": "direct", "action": "map", "priority": 100, "edges": [ { "sourceRef": { "path": "department" }, "targetRef": { "claim": "department" } } ] } ] }'Creates a draft version for a field mapping set with rules, edges, transforms, validation rules, release rules, and conflict rules. A set the platform owns cannot read a field a tenant defines (custom claims, custom fields, attributes), make a persistent identifier, or use a Source Profile. Mapping edges cannot target claims owned by an OIDC or introspection protocol envelope. Every source field marked mappingRequired in a referenced Source Profile must be connected by an edge. Deprecated: this is one of the five steps (set, version, publish, compile, activate) that POST /api/admin/identity-mapping/sets and PUT /api/admin/identity-mapping/sets/{id} run in one call, with the same checks and a release safety check made when the content is saved. It keeps working unchanged; new clients use the Mapping Set facade.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Header Parameters
Section titled “Header Parameters ”Idempotency key for state-changing operations that support replay protection.
Request Body required
Section titled “Request Body required ”object
Source Profile references validated for mappingRequired fields, including profiles with no connected edges yet.
object
Example
{ "versionLabel": "v1", "rules": [ { "ruleKey": "map-department", "ruleKind": "direct", "action": "map", "priority": 100, "edges": [ { "sourceRef": { "path": "department" }, "targetRef": { "claim": "department" } } ] } ]}Responses
Section titled “ Responses ”Field mapping version mutation response.
object
object
object
object
Example generated
{ "result": { "id": "example", "tenantId": "example", "fieldMappingSetId": "example", "versionLabel": "example", "lifecycleState": "example", "fieldMappingHash": "example", "compatibilityRange": "example", "authorId": "example", "publishedAt": 1, "createdAt": 1, "updatedAt": 1, "directions": { "source": true, "destination": true }, "sourceProfileIds": [ "example" ], "destinationProfileIds": [ "example" ], "rules": [ { "additionalProperty": "example" } ], "latestSnapshot": "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"}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"}Error response.
object
Example generated
{ "error": "example", "message": "example", "error_description": "example"}