Start aggregate metadata batch create.
curl --request POST \ --url https://auth.example.com/api/admin/saml-metadata/previews/example/batch-create \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "entityIds": [ "https://idp.example.com/metadata" ], "providerType": "saml_idp", "enabled": true }'Starts an asynchronous provider creation job from selected EntityDescriptor entries in an aggregate metadata preview. When enabled is false and identityMapping is omitted, mixed IdP and SP selections are registered as disabled providers so each provider can be mapped and enabled later.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Aggregate metadata preview id.
Request Body required
Section titled “Request Body required ”object
object
Per-SP release mode for every attribute in the active SAML Destination Profile.
object
Defaults to true. Set false to register selected entities without identityMapping for later per-provider setup; this deferred-setup mode also accepts mixed IdP and SP selections.
Example
{ "entityIds": [ "https://idp.example.com/metadata" ], "providerType": "saml_idp", "enabled": true}Responses
Section titled “ Responses ”Aggregate metadata batch creation status.
object
object
Example
{ "batchId": "batch_123", "tenantId": "tenant_123", "status": "running", "total": 10, "processed": 2, "succeeded": 2, "failed": 0, "startedAt": 1770000000000, "results": [ { "entityId": "https://sp.example.com/metadata", "success": true, "providerId": "saml_provider_123", "providerType": "saml_sp", "name": "Example SP" } ]}The selected entities, provider role, Mapping Set, enabled-state requirement, or per-SP destination field policy is invalid. No asynchronous batch is started.
object
Example generated
{ "additionalProperty": "example"}