Update SAML application secret

PATCH /api/saml-applications/{id}/secrets/{secretId}

Update the status of a signing certificate.

Path parameters

  • id string Required

    The unique identifier of the saml application.

  • secretId string Required

    The unique identifier of the secret.

application/json

Body Required

  • active boolean Required

    Whether the certificate is active.

Responses

  • 200 application/json

    The signing certificate was updated successfully.

    Hide response attributes Show response attributes object
  • Invalid request body.

  • Unauthorized

  • Forbidden

  • The SAML application or certificate was not found.

PATCH /api/saml-applications/{id}/secrets/{secretId}
curl \
 --request PATCH 'https://[tenant_id].logto.app/api/saml-applications/{id}/secrets/{secretId}' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"active":true}'
Request examples
{
  "active": true
}
Response examples (200)
{
  "id": "string",
  "certificate": "string",
  "createdAt": 42.0,
  "expiresAt": 42.0,
  "active": true,
  "fingerprints": {
    "sha256": {
      "formatted": "string",
      "unformatted": "string"
    }
  }
}