Put Secret
PUT /secrets/{name}Parameters
Section titled “Parameters”| Name | In | Type | Notes | |
|---|---|---|---|---|
name | path | string | required | — |
Request body — SecretWrite
Section titled “Request body — SecretWrite”| Field | Type | Notes | |
|---|---|---|---|
value | string | required | min length 1 max length 65536 |
label | string | null | optional | max length 200 |
scope | workspace | organization | platform | optional | Default "workspace". |
Responses
Section titled “Responses”| Status | Description | Body |
|---|---|---|
200 | Successful Response | SecretMeta |
422 | Validation Error | HTTPValidationError |
Example
Section titled “Example”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.
curl -X PUT https://your-deployment.example.com/secrets/{name} \ -H "Authorization: Bearer $COBRE_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "value": "string" }'Response — SecretMeta
Section titled “Response — SecretMeta”| Field | Type | Notes | |
|---|---|---|---|
name | string | required | — |
label | string | null | optional | — |
scope | workspace | organization | platform | required | — |
organization_id | string (uuid) | null | optional | — |
workspace_id | string (uuid) | null | optional | — |
key_version | integer | required | — |
is_active | boolean | required | — |
created_at | string (date-time) | required | — |
updated_at | string (date-time) | required | — |