Vault

Update an existing vault secret

PUT
/api/vault/{secretName}

Update the value of an existing vault secret identified by name. Returns 404 when the secret does not exist; the upsert endpoint should be used to handle that case implicitly.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

secretName*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X PUT "https://example.com/api/vault/string" \  -H "Content-Type: application/json" \  -d '{    "value": "sk_live_REPLACED",    "workosOrganizationId": "org_01HXYZ123ABCDEFG"  }'
{  "success": true,  "message": "Secret created successfully",  "data": {    "name": "TWILIO_AUTH_TOKEN"  }}