Create a new metadata record

This will create a new metadata.

POST https://uptime.betterstack.com/api/v2/metadata

Headers

Authorization
required string
Content_Type
string

Body parameters

owner_id
string
owner_type
string
key
string
value
string
201

Response body

{
  "data": {
    "id": "25",
    "type": "metadata",
    "attributes": {
      "key": "KEY_1",
      "value": "value-1"
    },
    "relationships": {
      "owner": {
        "data": {
          "id": "2",
          "type": "Monitor"
        }
      }
    }
  }
}
403

Example cURL

Example
curl --request POST \
  --url https://uptime.betterstack.com/api/v2/metadata \
  --header "Authorization: Bearer $TEAM_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{"key": "KEY_1", "value": "value-1", "owner_id": "2", "owner_type": "Monitor"}'