PUT
/
v1
/
secrets
/
{id}
Update a secret
curl --request PUT \
  --url https://api.rootly.com/v1/secrets/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '{
  "data": {
    "type": "secrets",
    "attributes": {
      "name": "<string>",
      "secret": "<string>",
      "hashicorp_vault_mount": "secret",
      "hashicorp_vault_path": "<string>",
      "hashicorp_vault_version": 0
    }
  }
}'
{
  "data": {
    "id": "6f0a734f-9c61-4f86-a6df-a794b54e2d31",
    "type": "secrets",
    "attributes": {
      "kind": "built_in",
      "name": "foo_bar",
      "secret": "[REDACTED]",
      "hashicorp_vault_mount": "secret",
      "hashicorp_vault_path": null,
      "hashicorp_vault_version": 0,
      "created_at": "2025-07-12T00:19:20.456-07:00",
      "updated_at": "2025-07-12T00:19:23.230-07:00"
    }
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Body

application/vnd.api+json

Response

200
application/vnd.api+json

secret updated

The response is of type object.