Ana içeriğe atla

Endpoint

Authentication

Requires a Personal API Access Token.

Request

Headers

Path Parameters

Request Body

Full JSON Body Example - Basic Token Settings

Full JSON Body Example - Token Never Expires

Request Body Fields

Notes

  • All fields are optional
  • Only provided fields are updated; other fields remain unchanged
  • Credential must exist
  • Authentication type is automatically set to SECRET_MANAGER for APIOps token settings
  • If tokenNeverExpires is true, tokenExpiresInAmount and tokenExpiresInUnit are ignored
  • If refreshTokenAllowed is false, refresh token related fields are ignored
  • tokenExpiresInAmount and refreshTokenExpiresInAmount must be at least 1
  • refreshTokenCount must be at least 1

Response

Success Response (200 OK)

Error Response (400 Bad Request)

or

Error Response (401 Unauthorized)

Error Response (404 Not Found)

cURL Example

Example 1: Set Basic Token Settings

Example 2: Set Token Never Expires

Notes and Warnings

  • Partial Updates:
    • Only provided fields are updated
    • Fields not included in the request remain unchanged
    • Use reset endpoint to restore all defaults
  • Authentication Type:
    • Authentication type is automatically set to SECRET_MANAGER for APIOps token settings
    • This cannot be changed via this endpoint
  • Token Expiration:
    • If tokenNeverExpires is true, token never expires regardless of expiration settings
    • If tokenNeverExpires is false, tokenExpiresInAmount and tokenExpiresInUnit must be provided
  • Refresh Token Settings:
    • If refreshTokenAllowed is true, refresh token count and expiration must be provided
    • Refresh token count must be at least 1
    • Refresh token expiration amount must be at least 1
  • Grant Types:
    • Supported grant types: PASSWORD, CLIENT_CREDENTIALS, AUTHORIZATION_CODE, IMPLICIT, REFRESH_TOKEN
    • Grant type determines the OAuth2/OIDC flow used
  • JWT Signature Algorithm:
    • Common algorithms: RS256, HS256, ES256, PS256
    • Algorithm must match the key type used
  • Automatic Deployment:
    • Credential is automatically deployed to all environments after token settings update
    • Deployment results are returned in the response

Permissions

  • User must have IDENTITY + MANAGE permission in the project
  • For automatic deployment, user must also have IDENTITY + DEPLOY_UNDEPLOY permission