Skip to main content
PUT
Replace a secret slot value

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null
x-ankra-organisation-id
string | null

Path Parameters

slot_id
string<uuid>
required

The secret slot's id, the <slot_id> in its ${SECRET_SLOT:<slot_id>} sentinel.

Body

application/json

Send exactly one of value or generate.

value
string
required

The new secret value.

Minimum string length: 1

Response

The slot after the replacement

A secret slot without its value, which is never returned.

slot_id
string<uuid>
required
label
string
required

The slot's name, unique in the organisation.

hint
string | null
required

A note about what the secret is for, or null.

created_at
string<date-time>
required
expires_at
string<date-time> | null
required

When the slot expires, or null when it does not.

last_accessed_at
string<date-time> | null
required

When the value was last read, or null.

access_count
integer
required

How many times the value has been read.

sentinel
string
required

${SECRET_SLOT:<slot_id>}: put this where the value belongs.

created_via
enum<string>
required

user when a person supplied the current value, generated when Ankra created it.

Available options:
user,
generated
pinned_at
string<date-time> | null
required

When the slot was pinned so it does not expire, or null.

references
SecretSlotReference · object[]
required

The live resources that carry the sentinel.

created_by_user_id
string | null
required

The user who created the slot, or null when unknown.