---
updatedAt: 2026-05-21T16:41:02.000Z
---

# Update a Federation

Updates the federation configuration.<br>Entitlements required: manageFederations (Manage federations) or manageAppAccessAdmin (Manage application lifecycle) or manageIdentitySources (Manage identity sources).<br>Note: You only need one entitlement, but you can have more than one.<br><br>The configuration properties that are used for the service provider federations are:<br><b>clockSkew</b><br>The tolerance in seconds when the received SAML assertion NotBefore and NotOnOrAfter is validated.<br><b>skipTargetUrlValidation</b><br>Specify whether to skip targetURL validation.<br><b>allowedTargetUrls</b><br>Specify the allowed target URLs.<br><br>The configuration properties that are used for the identity provider federations are:<br><b>assertionValidAfter</b><br>The tolerance in seconds that are added to NotOnOrAfter when the SAML assertion is issued.<br><b>assertionValidBefore</b><br>The tolerance in seconds that are added to NotBefore when the SAML assertion is issued.<br><br>Configuration properties that are used for both the service provider and identity provider federations are:<br><b>messageValidTime</b><br>The tolerance in seconds when the received SAML message IssueInstant is validated.<br><b>crlEnabled</b><br>Checks the certificate revocation list. Checking is done for all functions that use an external certificate. If your configuration does not require CRL checking, you can disable it. For example, if you use an internal certificate authority (CA), you might want to disable CRL checking. The crlEnabled property defaults to false.<br><b>keySelectionCriteria</b><br>Specify which key or certificate to use for signing, validating, encrypting, or decrypting various messages. If there are multiple keys or certificates with the same Subject DN as the key or certificate with the specified alias, this setting determines which one to use. Use one of the following selection methods:<br>&nbsp&nbsp&nbsp&nbsp<b>only.alias</b><br>&nbsp&nbsp&nbsp&nbspSelect the key or certificate with the specified alias. This method is the default.<br>&nbsp&nbsp&nbsp&nbsp<b>longest.lifetime</b><br>&nbsp&nbsp&nbsp&nbspFor signing, a valid key with the longest lifetime is used. For validation, keys that share the same SubjectDN are sorted based on lifetime availability. Starting with the key that has the longest lifetime availability, the keys are tried sequentially until validation is successful.<br>&nbsp&nbsp&nbsp&nbsp<b>shortest.lifetime</b><br>&nbsp&nbsp&nbsp&nbspFor signing, a valid key with the shortest lifetime is used. For validation, keys that share the same SubjectDN are sorted based on lifetime availability. Starting with the key that has the shortest lifetime availability, the keys are tried sequentially until validation is successful.<br><br><b>defaultNameIDFormat</b><br>Specify the nameID format to be used when there's no nameID format specified in SSO query parameter or message. Use one of the following nameID formats for identity provider federation:<br>&nbsp&nbsp&nbsp&nbsp<b>urn:oasis:names:tc:SAML:2.0:nameid-format:persistent</b><br>&nbsp&nbsp&nbsp&nbsp<b>urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress</b><br>&nbsp&nbsp&nbsp&nbsp<b>urn:oasis:names:tc:SAML:2.0:nameid-format:transient</b><br>&nbsp&nbsp&nbsp&nbsp<b>urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified</b><br>Use one of the following nameID formats for service provider federation:<br>&nbsp&nbsp&nbsp&nbsp<b>urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress</b><br>&nbsp&nbsp&nbsp&nbsp<b>urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified</b><br><b>organizationName</b><br>The name of the federation's organization, to be included in the exported metadata.<br><br><b>organizationDisplayName</b><br>The displayName of the federation's organization, to be included in the exported metadata.<br><br><b>organizationURL</b><br>The URL of the federation's organization, to be included in the exported metadata.<br><br><b>Note</b>: The <u>crlEnabled</u> and <u>keySelectionCriteria</u> fields are not shown in the GET response until they are updated. <br>If the federation is an identity provider, the payload looks like this example: <br>&nbsp&nbsp{<br>&nbsp&nbsp&nbsp&nbsp"messageValidTime": 300,<br>&nbsp&nbsp&nbsp&nbsp"assertionValidBefore": 300,<br>&nbsp&nbsp&nbsp&nbsp"assertionValidAfter": 300,<br>&nbsp&nbsp&nbsp&nbsp"crlEnabled": true,<br>&nbsp&nbsp&nbsp&nbsp"keySelectionCriteria": "only.alias",<br>&nbsp&nbsp&nbsp&nbsp"defaultNameIDFormat": "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress",<br>&nbsp&nbsp&nbsp&nbsp"role": "ip"<br>&nbsp&nbsp}<br><br>If the federation is a service provider, the payload looks like this example: <br>&nbsp&nbsp{<br>&nbsp&nbsp&nbsp&nbsp"messageValidTime": 300,<br>&nbsp&nbsp&nbsp&nbsp"clockSkew": 0,<br>&nbsp&nbsp&nbsp&nbsp"crlEnabled": true,<br>&nbsp&nbsp&nbsp&nbsp"keySelectionCriteria": "only.alias",<br>&nbsp&nbsp&nbsp&nbsp"defaultNameIDFormat": "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress",<br>&nbsp&nbsp&nbsp&nbsp"role": "sp"<br>&nbsp&nbsp}

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "version": "1.0.0",
    "description": "Federation",
    "title": "Federation"
  },
  "servers": [
    {
      "url": "https://{tenanturl}",
      "variables": {
        "tenanturl": {
          "default": "{tenant_url}",
          "description": "URL of your IBM Security Verify tenant"
        }
      }
    }
  ],
  "tags": [
    {
      "name": "SAML 2.0 Federations Management"
    }
  ],
  "paths": {
    "/v1.0/saml/federations/{federationName}": {
      "put": {
        "tags": [
          "SAML 2.0 Federations Management"
        ],
        "summary": "Update a Federation",
        "description": "Updates the federation configuration.<br>Entitlements required: manageFederations (Manage federations) or manageAppAccessAdmin (Manage application lifecycle) or manageIdentitySources (Manage identity sources).<br>Note: You only need one entitlement, but you can have more than one.<br><br>The configuration properties that are used for the service provider federations are:<br><b>clockSkew</b><br>The tolerance in seconds when the received SAML assertion NotBefore and NotOnOrAfter is validated.<br><b>skipTargetUrlValidation</b><br>Specify whether to skip targetURL validation.<br><b>allowedTargetUrls</b><br>Specify the allowed target URLs.<br><br>The configuration properties that are used for the identity provider federations are:<br><b>assertionValidAfter</b><br>The tolerance in seconds that are added to NotOnOrAfter when the SAML assertion is issued.<br><b>assertionValidBefore</b><br>The tolerance in seconds that are added to NotBefore when the SAML assertion is issued.<br><br>Configuration properties that are used for both the service provider and identity provider federations are:<br><b>messageValidTime</b><br>The tolerance in seconds when the received SAML message IssueInstant is validated.<br><b>crlEnabled</b><br>Checks the certificate revocation list. Checking is done for all functions that use an external certificate. If your configuration does not require CRL checking, you can disable it. For example, if you use an internal certificate authority (CA), you might want to disable CRL checking. The crlEnabled property defaults to false.<br><b>keySelectionCriteria</b><br>Specify which key or certificate to use for signing, validating, encrypting, or decrypting various messages. If there are multiple keys or certificates with the same Subject DN as the key or certificate with the specified alias, this setting determines which one to use. Use one of the following selection methods:<br>&nbsp&nbsp&nbsp&nbsp<b>only.alias</b><br>&nbsp&nbsp&nbsp&nbspSelect the key or certificate with the specified alias. This method is the default.<br>&nbsp&nbsp&nbsp&nbsp<b>longest.lifetime</b><br>&nbsp&nbsp&nbsp&nbspFor signing, a valid key with the longest lifetime is used. For validation, keys that share the same SubjectDN are sorted based on lifetime availability. Starting with the key that has the longest lifetime availability, the keys are tried sequentially until validation is successful.<br>&nbsp&nbsp&nbsp&nbsp<b>shortest.lifetime</b><br>&nbsp&nbsp&nbsp&nbspFor signing, a valid key with the shortest lifetime is used. For validation, keys that share the same SubjectDN are sorted based on lifetime availability. Starting with the key that has the shortest lifetime availability, the keys are tried sequentially until validation is successful.<br><br><b>defaultNameIDFormat</b><br>Specify the nameID format to be used when there's no nameID format specified in SSO query parameter or message. Use one of the following nameID formats for identity provider federation:<br>&nbsp&nbsp&nbsp&nbsp<b>urn:oasis:names:tc:SAML:2.0:nameid-format:persistent</b><br>&nbsp&nbsp&nbsp&nbsp<b>urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress</b><br>&nbsp&nbsp&nbsp&nbsp<b>urn:oasis:names:tc:SAML:2.0:nameid-format:transient</b><br>&nbsp&nbsp&nbsp&nbsp<b>urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified</b><br>Use one of the following nameID formats for service provider federation:<br>&nbsp&nbsp&nbsp&nbsp<b>urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress</b><br>&nbsp&nbsp&nbsp&nbsp<b>urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified</b><br><b>organizationName</b><br>The name of the federation's organization, to be included in the exported metadata.<br><br><b>organizationDisplayName</b><br>The displayName of the federation's organization, to be included in the exported metadata.<br><br><b>organizationURL</b><br>The URL of the federation's organization, to be included in the exported metadata.<br><br><b>Note</b>: The <u>crlEnabled</u> and <u>keySelectionCriteria</u> fields are not shown in the GET response until they are updated. <br>If the federation is an identity provider, the payload looks like this example: <br>&nbsp&nbsp{<br>&nbsp&nbsp&nbsp&nbsp\"messageValidTime\": 300,<br>&nbsp&nbsp&nbsp&nbsp\"assertionValidBefore\": 300,<br>&nbsp&nbsp&nbsp&nbsp\"assertionValidAfter\": 300,<br>&nbsp&nbsp&nbsp&nbsp\"crlEnabled\": true,<br>&nbsp&nbsp&nbsp&nbsp\"keySelectionCriteria\": \"only.alias\",<br>&nbsp&nbsp&nbsp&nbsp\"defaultNameIDFormat\": \"urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress\",<br>&nbsp&nbsp&nbsp&nbsp\"role\": \"ip\"<br>&nbsp&nbsp}<br><br>If the federation is a service provider, the payload looks like this example: <br>&nbsp&nbsp{<br>&nbsp&nbsp&nbsp&nbsp\"messageValidTime\": 300,<br>&nbsp&nbsp&nbsp&nbsp\"clockSkew\": 0,<br>&nbsp&nbsp&nbsp&nbsp\"crlEnabled\": true,<br>&nbsp&nbsp&nbsp&nbsp\"keySelectionCriteria\": \"only.alias\",<br>&nbsp&nbsp&nbsp&nbsp\"defaultNameIDFormat\": \"urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress\",<br>&nbsp&nbsp&nbsp&nbsp\"role\": \"sp\"<br>&nbsp&nbsp}",
        "operationId": "updatePublicFederationWithName",
        "parameters": [
          {
            "name": "federationName",
            "in": "path",
            "description": "Federation name",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "saml20ip",
                "saml20sp"
              ]
            }
          }
        ],
        "requestBody": {
          "description": "Federation payload",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Federation1"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Successful Update",
            "content": {}
          },
          "400": {
            "description": "Bad Request Exception",
            "content": {}
          },
          "403": {
            "description": "Forbidden",
            "content": {}
          },
          "404": {
            "description": "Federation Not Found",
            "content": {}
          },
          "409": {
            "description": "Conflict",
            "content": {}
          },
          "500": {
            "description": "Internal Server Error",
            "content": {}
          }
        },
        "x-category": "Federation",
        "x-publicAPI": "true",
        "x-codegen-request-body-name": "body"
      }
    }
  },
  "components": {
    "schemas": {
      "FederationIp": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Federation1"
          },
          {
            "type": "object",
            "properties": {
              "assertionValidBefore": {
                "type": "integer",
                "format": "int32",
                "example": 300
              },
              "assertionValidAfter": {
                "type": "integer",
                "format": "int32",
                "example": 300
              }
            }
          }
        ]
      },
      "FederationSp": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Federation1"
          },
          {
            "type": "object",
            "properties": {
              "clockSkew": {
                "type": "integer",
                "format": "int32",
                "example": 0
              },
              "includeAllAttributes": {
                "type": "boolean",
                "example": false
              },
              "allowedTargetUrls": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "skipTargetUrlValidation": {
                "type": "boolean",
                "example": false
              },
              "signingKeyLabel": {
                "type": "string",
                "example": "server"
              },
              "signatureAlgorithm": {
                "type": "string",
                "example": "RSA-SHA256",
                "enum": [
                  "RSA-SHA1",
                  "RSA-SHA256",
                  "RSA-SHA512",
                  "ECDSA-SHA256",
                  "ECDSA-SHA384",
                  "ECDSA-SHA512"
                ]
              },
              "decryptionKeyLabel": {
                "type": "string",
                "example": "server"
              }
            }
          }
        ]
      },
      "Federation1": {
        "required": [
          "role"
        ],
        "type": "object",
        "properties": {
          "role": {
            "type": "string",
            "readOnly": true,
            "enum": [
              "ip",
              "sp"
            ]
          },
          "messageValidTime": {
            "type": "integer",
            "format": "int32",
            "example": 300
          },
          "keySelectionCriteria": {
            "type": "string",
            "example": "only.alias",
            "enum": [
              "only.alias",
              "shortest.lifetime",
              "longest.lifetime"
            ]
          },
          "crlEnabled": {
            "type": "boolean",
            "example": true
          },
          "defaultNameIDFormat": {
            "type": "string",
            "example": "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress",
            "enum": [
              "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress",
              "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified"
            ]
          },
          "organizationName": {
            "type": "string"
          },
          "organizationDisplayName": {
            "type": "string"
          },
          "organizationURL": {
            "type": "string"
          }
        },
        "discriminator": {
          "propertyName": "role"
        }
      }
    }
  },
  "x-original-swagger-version": "2.0",
  "x-explorer-enabled": false
}
```