Explore documentation

Update an existing metadata record

This will update an existing metadata.

PATCH https://uptime.betterstack.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",
      "team_name": "Testing",
      "owner_id": "2",
      "owner_type": "Monitor"
    }
  }
}
404

Example cURL

Example
curl --request PATCH \
  --url https://uptime.betterstack.com/api/v2/metadata/123456789 \
  --header "Authorization: Bearer $TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{"key": "KEY_3", "value": "value-4"}'