Set Secret

View as Markdown

Create or replace one vault secret using the key from the path. Secret values are write-only on this route: reads and lists return metadata by default, and raw value access is limited to the dedicated value endpoint and the caller’s vault policy.

Authentication

AuthorizationBearer

Use Bearer <api-key>.

Path parameters

keystringRequired

Request

This endpoint expects an object.
loginobjectRequired
OR
valueobjectRequired

Response

OK
hasTotpboolean
keystringformat: "^[\[email protected]]+(\/[\[email protected]]+)*$"1-256 characters
typeenum
createdAtstring
labelstring
originPatternslist of strings
originslist of strings
updatedAtstring

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error