Create a field mapping set.
curl --request POST \ --url https://auth.example.com/api/admin/field-mapping/field-mapping-sets \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "fieldMappingKey": "workforce-to-oidc", "displayName": "Workforce to OIDC", "description": "Claims released to workforce clients." }'Creates a field mapping set container. Versions and rules are added through the versions endpoint. With ownerScopeType set to platform the set is created in the platform’s namespace (the set every tenant can read), which requires platform administrator authority; any other value creates a set the calling tenant owns. A tenant set cannot carry the platform owner scope. 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 ”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
platform creates the set in the platform’s namespace (platform administrator authority required). Otherwise the set belongs to the calling tenant.
Example
{ "fieldMappingKey": "workforce-to-oidc", "displayName": "Workforce to OIDC", "description": "Claims released to workforce clients."}Responses
Section titled “ Responses ”Field mapping set mutation response.
object
object
The tenant ID the set is stored under: the tenant’s own, or platform for a set the platform owns.
Who owns the set. A platform set is shared by every tenant and read-only for them.
Unix epoch milliseconds when the field mapping set was created.
Unix epoch milliseconds when the field mapping set was last updated.
Example
{ "result": { "owner": "tenant" }}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"}