Update a secret
Secrets
Update a secret
Updates one or more fields on a secret. At least one field must be provided.
Set valueSource to onepassword (with opRef) to switch the secret to a 1Password-resolved value, or provide value to store an inline value.
PATCH
Update a secret
Authorizations
API key obtained from the dashboard or GET /user/api-key
Path Parameters
Body
application/json
Required string length:
1 - 255Available options:
inline, onepassword Required string length:
1 - 100001Password secret reference (op://vault/item/field). Required when valueSource is onepassword.
How the gateway injects this secret into matching outbound requests (generic secrets only). Exactly one variant:
- Header —
{ "headerName": "Authorization", "valueFormat": "Bearer {value}" } - Query parameter —
{ "paramName": "key", "paramFormat": "{value}" } - URL path template —
{ "pathTemplate": "/bot{value}" }(must start with/and contain{value}exactly once) - URL path regex —
{ "pathRegex": "^/bot([^/]+)", "pathReplacement": "/bot{value}" }(replacement must contain{value})
Unknown or mixed keys are rejected.
- Header injection
- Query parameter injection
- URL path template injection
- URL path regex injection
Response
Secret updated