TokenVaultProviders

Update a vault provider

Changed on

Partially updates an existing vault provider.

patch/v2/directories/{directoryId}/vault/providers/{providerId}

Request

  • Base URL
    https://global.api.konghq.com
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Path parameters

directoryId, string uuid required

ID of the directory

providerId, string uuid required

ID of the vault provider

Request body

PatchVaultProviderBody required
name, string
enabled, boolean

Defines if the provider is enabled or not

client_secret, string

Replaces the stored OAuth client secret. Never returned in read APIs.

scopes, string[]
token_endpoint, string
authorization_endpoint, string
pkce_enabled, boolean
refresh_buffer_seconds, integer

Response

A vault provider

VaultProvider required

An credential provider configuration for a token-vault enabled directory.

id, string uuid required

Contains a unique identifier used for this resource.

directory_id, string uuid required

Contains a unique identifier used for this resource.

name, string required
template_name, 'github' | 'slack' | 'static_secret' | 'google' | 'atlassian-rovo' | 'datadog' | 'custom-oauth' | 'miro' required

The static name of the vault provider template to base this provider on (e.g. "github"). For static_secret, provide only name and credential_type ("shared"); the credential is provisioned separately via the vault provider credentials API, and client_id/client_secret are rejected.

bearer_methods_supported, string[] required
enabled, boolean required

Defines if the provider is enabled or not

client_id, string nullable
scopes, string[] required
token_endpoint_effective, string nullable

Resolved token endpoint (provider override or template default).

authorization_endpoint_effective, string nullable

Resolved authorization endpoint (provider override or template default).

registration_endpoint_effective, string nullable

Resolved DCR registration endpoint (provider override or template default).

dcr_enabled, boolean required

True if this provider's OAuth client is obtained via Dynamic Client Registration (RFC 7591) rather than a statically-supplied client_id. When true, client_id is null on this provider -- each principal gets its own dynamically-registered client on first use.

credential_type, string required
pkce_enabled, boolean required
refresh_buffer_seconds, integer required
created_at, string date-time required

An ISO-8601 timestamp representation of entity creation date.

updated_at, string date-time required

An ISO-8601 timestamp representation of entity update date.

Example response

{
  "id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
  "directory_id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
  "template_name": "github",
  "bearer_methods_supported": [
    "header"
  ],
  "credential_type": "user",
  "created_at": "2022-11-04T20:10:06.927Z",
  "updated_at": "2022-11-04T20:10:06.927Z"
}

Changes