Skip to content

Put Secret

PUT /secrets/{name}
NameInTypeNotes
namepathstringrequired—
FieldTypeNotes
valuestringrequiredmin length 1 max length 65536
labelstring | nulloptionalmax length 200
scopeworkspace | organization | platformoptionalDefault "workspace".
StatusDescriptionBody
200Successful ResponseSecretMeta
422Validation ErrorHTTPValidationError

The body shows the fields the schema always carries. Which combination is legal is a service rule the schema cannot express, so read the description above before copying this.

Terminal window
curl -X PUT https://your-deployment.example.com/secrets/{name} \
-H "Authorization: Bearer $COBRE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"value": "string"
}'
FieldTypeNotes
namestringrequired—
labelstring | nulloptional—
scopeworkspace | organization | platformrequired—
organization_idstring (uuid) | nulloptional—
workspace_idstring (uuid) | nulloptional—
key_versionintegerrequired—
is_activebooleanrequired—
created_atstring (date-time)required—
updated_atstring (date-time)required—