Skip to main content
PUT
Store a secret (write-only)

Authorizations

Authorization
string
header
required

Send your Cufea API key as Authorization: Bearer <key>.

Path Parameters

kind
enum<string>
required

Kind of secret to store.

Available options:
software_pin,
technical_key,
cert_pem,
cert_key,
key_password

Query Parameters

environment
enum<string> | null

Stage to read or write; default: the stage of this API key. A key reads only its own stage. It writes only its own stage too, with one exception: a test key may write (never read) the production secrets and ranges the promotion needs. A sandbox key writes no configuration: the sandbox stage is Cufea's.

Available options:
sandbox,
test,
production

Body

application/json
value
string
required

The secret. Write-only: it is never returned by any endpoint.

Required string length: 1 - 65536

Response

Successful Response

kind
string
required

The kind that was stored.

stored
boolean
default:true