Import SAML provider metadata.
POST
/api/admin/saml-providers/{id}/import-metadata
Code sample: Shell / cURL
curl --request POST \ --url https://auth.example.com/api/admin/saml-providers/example/import-metadata \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "metadataUrl": "https://idp.example.com/metadata.xml" }'Imports single-entity SAML metadata into an existing provider, preserving custom settings while updating metadata-derived configuration and refresh status.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
SAML provider id.
Request Body required
Section titled “Request Body required ” Media type application/json
object
metadataXml
string
metadataUrl
A different URL requires the provider-update permission before it is fetched.
string format: uri
samlProfile
string
attributePresetId
string
Example
{ "metadataUrl": "https://idp.example.com/metadata.xml"}Responses
Section titled “ Responses ”Successful JSON response.
Media type application/json
object
success
required
boolean
config
required
object
entityId
string
ssoUrl
string format: uri
acsUrl
string format: uri
certificate
string
metadataUrl
string format: uri
metadataXml
string
metadataRefreshPolicy
object
mode
required
URL-backed providers default to automatic when this property is omitted.
string
intervalSeconds
required
integer
nextRefreshAt
integer format: int64
lastAttemptAt
integer format: int64
lastSuccessAt
integer format: int64
consecutiveFailures
integer
sourceState
string
lastErrorCode
string
suspendedByMetadataSync
True when metadata lifecycle automation disabled the provider.
boolean
key
additional properties
nameIdFormat
string
metadataNameIdFormats
Array<string>
identityMapping
object
fieldMappingSetId
required
string
fieldMappingVersionId
string
destinationNamespace
string
destinationFieldPolicies
Per-SP release mode for every attribute in the active SAML Destination Profile.
object
key
additional properties
string
key
additional properties
attributeReleaseConsent
object
enabled
boolean
mode
string
key
additional properties
key
additional properties
enabled
required
boolean
metadataRefreshStatus
required
object
key
additional properties
Example
{ "success": true, "config": { "entityId": "https://idp.example.com/metadata" }, "enabled": true, "metadataRefreshStatus": { "diff": { "changed": true } }}