Merge-patch application metadata
PATCH
/api/v3/organizations/{organisation}/applications/{application}/metadata
const url = 'https://dashboard.quantcdn.io/api/v3/organizations/example/applications/example/metadata';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"additionalProperty":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”organisation
required
string
application
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
key
additional properties
string
Examplegenerated
{ "additionalProperty": "example"}Responses
Section titled “Responses”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
key
additional properties
string
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
