apiCredentials

Update an API Credential

Update the specified API Credential.

patch/v1/organizations/{organizationId}/api-credentials/{apiCredentialId}

Path parameters

organizationIdstring required

The <code>id</code> of the Organization whose API Credential you want to update.

apiCredentialIdstring required

The <code>clientId</code> of the API Credential to update.

Request body

namestring

Human-readable name of the API Credential.

descriptionstring

Brief description of the purpose and usage for the API Credential.

enabledboolean

If <code>true</code>, the API Credential is enabled. Otherwise, <code>false</code>.

ipAllowliststring[]

Omit to leave unchanged. Pass an empty array to clear the stored IP allowlist.

Example request

{
  "name": "Auto-Manage-Workspaces",
  "description": "Used for automated Workspace management",
  "enabled": true,
  "roles": {
    "workspaces": [
      {
        "workspaceId": "main"
      }
    ]
  },
  "ipAllowlist": [
    "10.0.0.1/32"
  ]
}

Response

API Credential updated

Changes

Changed in 6 of the 41 revisions of this API.125

    • added the new insights enum value to the request property roles/allOf[ApiCredentialRolesSchema]/workspaces/items/products/items/product/allOf[ProductName]/

      request-property-enum-value-added

    • added the new optional request property ipAllowlist

      new-optional-request-property

    • added the non-success response with the status 404

      response-non-success-status-added

    • added the non-success response with the status 409

      response-non-success-status-added

    • the name request property's maxLength was set to 140

      request-property-max-length-set

    • added the pattern ^[A-Za-z0-9-]+$ to the request property name

      request-property-pattern-added

    • the description request property's maxLength was set to 140

      request-property-max-length-set

    • endpoint added

      endpoint-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog