Update a federation trust source.
curl --request PUT \ --url https://auth.example.com/api/admin/field-mapping/federation-trust-sources/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "expectedUpdatedAt": 1788249600000, "sourceType": "saml_metadata", "sourceKey": "partner-idp", "displayName": "Partner IdP metadata", "lifecycleState": "active", "protocolPayload": { "metadataUrl": "https://idp.example.com/metadata", "metadataUrlPatterns": [ "https://idp.example.com/metadata" ], "policy": "strict", "polling": { "mode": "automatic", "intervalSeconds": 21600 } } }'Updates federation trust source metadata, lifecycle state, protocol payload, anchors, and scope bindings. Only polling mode and interval are operator-controlled; HTTP validators, timestamps, failure counters, and lifecycle observations are reset and maintained by the metadata poller.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Federation trust source identifier.
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
object
object
True when metadata lifecycle automation disabled the provider.
object
Inventory_only stores verified entities without using them for authentication. automatic permits runtime entityID resolution subject to this policy.
Required when automatic resolution includes saml_idp.
Required when automatic resolution includes saml_sp.
object
object
object
object
object
Required on update; the last observed source revision in Unix milliseconds.
Example
{ "expectedUpdatedAt": 1788249600000, "sourceType": "saml_metadata", "sourceKey": "partner-idp", "displayName": "Partner IdP metadata", "lifecycleState": "active", "protocolPayload": { "metadataUrl": "https://idp.example.com/metadata", "metadataUrlPatterns": [ "https://idp.example.com/metadata" ], "policy": "strict", "polling": { "mode": "automatic", "intervalSeconds": 21600 } }}Responses
Section titled “ Responses ”Federation trust source mutation response.
object
object
object
object
True when metadata lifecycle automation disabled the provider.
object
Inventory_only stores verified entities without using them for authentication. automatic permits runtime entityID resolution subject to this policy.
Required when automatic resolution includes saml_idp.
Required when automatic resolution includes saml_sp.
object
object
object
Example
{ "result": { "sourceType": "saml_aggregate", "protocolPayload": { "policy": "strict", "polling": { "mode": "automatic", "sourceState": "healthy" }, "runtimeResolution": { "mode": "inventory_only", "roles": [ "saml_idp" ], "priority": 0, "defaultAttributePresetId": "basic.v1", "entityCategoryPolicy": { "defaultDecision": "allow", "rules": [ { "decision": "allow", "attributePresetId": "basic.v1" } ] } } } }}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"}