Replace application metadata
PUT
/api/v3/organizations/{organisation}/applications/{application}/metadata
const url = 'https://dashboard.quantcdn.io/api/v3/organizations/example/applications/example/metadata';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"team":"web","cost_centre":"1234"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://dashboard.quantcdn.io/api/v3/organizations/example/applications/example/metadata \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "team": "web", "cost_centre": "1234" }'Replaces the whole metadata set. An empty object removes all metadata.
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
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
{ "team": "web", "cost_centre": "1234"}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
