Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Body
application/vnd.api+json
Response
secret updated
Update a specific secret by id
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": "88f16a20-89b7-4edb-b7f3-cf1d251eea17",
"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-09-15T13:05:43.650-07:00",
"updated_at": "2025-09-15T13:05:45.493-07:00"
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Show child attributes
secret updated
Show child attributes
Was this page helpful?
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": "88f16a20-89b7-4edb-b7f3-cf1d251eea17",
"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-09-15T13:05:43.650-07:00",
"updated_at": "2025-09-15T13:05:45.493-07:00"
}
}
}