Vai al contenuto principale
PUT
/
vault
/
{vaultId}
Aggiorna un elemento del vault
curl --request PUT \
  --url https://api.altostrat.io/vault/{vaultId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Token API della mia App (Aggiornato)",
  "secret": "sec_newkey789",
  "expires_at": "2023-11-07T05:31:56Z"
}'
{
  "id": "vlt_01h3j4k5l6m7n8p9q0r1s2t3u4",
  "name": "Chiave API Servizio Esterno",
  "created_at": "2025-10-31T10:00:00.000000Z",
  "expires_at": "2026-10-31T10:00:00.000000Z"
}

Authorizations

Authorization
string
header
required

JWT standard per le sessioni utente ottenuto tramite l'autenticazione Altostrat.

Path Parameters

vaultId
string
required

L'ID prefissato dell'elemento del vault (es. vlt_...).

Body

application/json
name
string
required
Example:

"Token API della mia App (Aggiornato)"

secret
string
required
Example:

"sec_newkey789"

expires_at
string<date-time> | null

Response

L'elemento del vault è stato aggiornato con successo.

id
string

L'identificatore univoco prefissato per l'elemento del vault.

Example:

"vlt_01h3j4k5l6m7n8p9q0r1s2t3u4"

name
string

Il nome dell'elemento del vault. Per le chiavi API, usare il prefisso api-key:.

Example:

"Chiave API Servizio Esterno"

created_at
string<date-time>

La data e ora di creazione dell'elemento.

Example:

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

expires_at
string<date-time> | null

La data e ora in cui l'elemento scade e non può più essere utilizzato.

Example:

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