Skip to content

Merge-patch application metadata

PATCH
/api/v3/organizations/{organisation}/applications/{application}/metadata
curl --request PATCH \
--url https://dashboard.quantcdn.io/api/v3/organizations/example/applications/example/metadata \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "additionalProperty": "example" }'

Sets the given keys and removes keys whose value is null. A request that breaks any rule is rejected whole.

organisation
required
string
application
required
string
Media typeapplication/json
object
key
additional properties
string
nullable
Examplegenerated
{
"additionalProperty": "example"
}

The resulting metadata

Media typeapplication/json
object
metadata
required

Free-form key/value metadata. Maximum 50 pairs. Keys are 1-128 characters, values 0-256 characters. Letters, digits, space and + - = . _ : / @ only. Keys starting with ‘quant:’ are reserved.

object
<= 50 properties
key
additional properties
string
<= 256 characters
Example
{
"metadata": {
"team": "web",
"cost_centre": "1234"
}
}

Invalid metadata

Media typeapplication/json
object
message
string
errors
Array<string>
Example
{
"message": "Invalid metadata"
}

The application was not found

The write conflicts with the current metadata