Skip to content

Change a secret's labels (`label`).

PATCH
/v1/metadata/{path}
curl --request PATCH \
--url https://ferritor.example.internal:7070/v1/metadata/example \
--header 'Content-Type: application/json' \
--data '{ "remove": [ "example" ], "set": { "additionalProperty": "example" } }'
path
required
string

A canonical secret path, slashes included (billing/db); its first segment is its namespace.

Media typeapplication/json

A change to a secret’s labels.

object
remove

Label keys to remove (absent ones are fine).

Array<string>
set

Added, or replacing a label’s value.

object
key
additional properties
string

Example generated

{
"remove": [
"example"
],
"set": {
"additionalProperty": "example"
}
}

The labels now.

Media typeapplication/json
object
labels
required

The labels now.

object
key
additional properties
string

Example generated

{
"labels": {
"additionalProperty": "example"
}
}

An error: see error.code.

Media typeapplication/json

Every error’s body.

object
error
required
object
code
required

Match on this, never on the message.

string
Allowed values: invalid_argument unauthenticated permission_denied not_found method_not_allowed version_mismatch live_version no_namespace unknown_profile busy aborted misdirected_request sealed unaudited unknown_kek policy_unverified rate_limited unavailable failed_precondition internal
message
required

For people; may change.

string

Example

{
"error": {
"code": "invalid_argument"
}
}