Update an existing metadata record

This will update an existing metadata.

PATCH https://betteruptime.com/api/v2/metadata/{metadata_id}

URL parameters

metadata_id
required string

Headers

Authorization
required string
Content_Type
string

Body parameters

owner_id
string
owner_type
string
key
string
value
string
200

Response body

{
  "data": {
    "id": "123456789",
    "type": "metadata",
    "attributes": {
      "key": "KEY_3",
      "value": "value-4"
    },
    "relationships": {
      "owner": {
        "data": {
          "id": "2",
          "type": "Monitor"
        }
      }
    }
  }
}
404

Example cURL

curl --request PATCH \
  --url https://betteruptime.com/api/v2/metadata/123456789 \
  --header 'Authorization: Bearer YOUR_API_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{"key": "KEY_3", "value": "value-4"}'
Copied!