Skip to main content

Create or update a secret

Creates a new secret or updates an existing secret for the specified key. Requires admin or secret management permissions.

Path Parameters
secretkey string — REQUIRED

The key for the secret to create or update.

secretkey string — REQUIRED
Request Body — REQUIRED

The secret value to store.

string
Responses
201

Secret created or updated successfully. The Location header contains the URI of the created/updated secret.

Schema — OPTIONAL
string
400

Bad request. Invalid secret key or content.

Schema — OPTIONAL
string
401

Unauthorized. Authentication required.

Schema — OPTIONAL
string
403

Forbidden. Insufficient permissions to create or update the secret.

Schema — OPTIONAL
string
409

Conflict. Secret with the given key already exists.

Schema — OPTIONAL
string
500

Internal server error.

Schema — OPTIONAL
string