Skip to main content
PUT
/
vault
/
{vaultId}
Update a vault item
curl --request PUT \
  --url https://api.altostrat.io/vault/{vaultId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "My App'\''s API Token (Updated)",
  "secret": "sec_newkey789",
  "expires_at": "2023-11-07T05:31:56Z"
}'
{
  "id": "vlt_01h3j4k5l6m7n8p9q0r1s2t3u4",
  "name": "External Service API Key",
  "created_at": "2025-10-31T10:00:00.000000Z",
  "expires_at": "2026-10-31T10:00:00.000000Z"
}

Authorizations

Authorization
string
header
required

Standard JWT for user sessions obtained via Altostrat authentication.

Path Parameters

vaultId
string
required

The prefixed ID of the vault item (e.g., vlt_...).

Body

application/json
name
string
required
Example:

"My App's API Token (Updated)"

secret
string
required
Example:

"sec_newkey789"

expires_at
string<date-time> | null

Response

The vault item was updated successfully.

id
string

The unique prefixed identifier for the vault item.

Example:

"vlt_01h3j4k5l6m7n8p9q0r1s2t3u4"

name
string

The name of the vault item. For API keys, use the api-key: prefix.

Example:

"External Service API Key"

created_at
string<date-time>

The timestamp when the item was created.

Example:

"2025-10-31T10:00:00.000000Z"

expires_at
string<date-time> | null

The timestamp when the item expires and can no longer be used.

Example:

"2026-10-31T10:00:00.000000Z"