Update secret
Sets a secret's value or reference. The next sync, check or discover that uses it gets the new value.
Sets a secret's value or reference. The next sync, check or discover that uses it gets the new value.
workspace*stringThe workspace id.
secret*stringThe secret id.
allowMissing?booleanCreate the secret if it doesn't exist.
application/json- body
name?stringworkspaces/{workspace}/secrets/{secret}
value?stringInput only: at most 64 KiB of UTF-8. Set this or ref.
etag?stringOn input, if set, it must match.
createTime?stringdate-timeupdateTime?stringdate-timeusedBy?array<string>Output only: the sources and destinations whose configs name it.
ref?stringWhere runners read the value, instead of a value stored here: aws-sm://{name or ARN}[?region=…][&version=…][&stage=…][&field=…] gcp-sm://projects/{p}/[locations/{l}/]secrets/{s}[/versions/{v}][?field=…] azure-kv://{vault}/{name}[?version=…][&field=…] field picks a top-level field of a JSON object value. Runners read it for each attempt, check and discover.
OK
application/json- response
secret?created?booleanThe secret didn't exist.
curl -X PATCH 'http://localhost:8080/v1/workspaces/string/secrets/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "secret": { "name": "string", "value": "string", "etag": "string", "createTime": "2019-08-24T14:15:22Z", "updateTime": "2019-08-24T14:15:22Z", "usedBy": [ "string" ], "ref": "string" }, "created": true}