Refresh SAML provider metadata.
curl --request POST \ --url https://auth.example.com/api/admin/saml-providers/example/refresh-metadata \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "metadataUrl": "https://idp.example.com/metadata.xml" }'Fetches metadata from the configured or supplied HTTPS metadata URL and updates the provider configuration, certificate validation state, and metadata refresh status. The metadata-refresh permission is sufficient only when the configured URL and entityID remain unchanged. Supplying a different URL or approving an entityID change also requires the provider-update permission.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”SAML provider id.
Request Body
Section titled “Request Body ”object
Explicitly approve an entityID change during this manual refresh. An actual entityID change also requires the provider-update permission.
Example
{ "metadataUrl": "https://idp.example.com/metadata.xml"}Responses
Section titled “ Responses ”Successful JSON response.
object
object
object
URL-backed providers default to automatic when this property is omitted.
True when metadata lifecycle automation disabled the provider.
object
Per-SP release mode for every attribute in the active SAML Destination Profile.
object
object
object
Example
{ "success": true, "changed": true, "config": { "entityId": "https://idp.example.com/metadata" }, "enabled": true, "metadataRefreshStatus": { "diff": { "changed": true } }}