Explore documentation

Create a Catalog attribute

Returns either a newly created Catalog attribute, or validation errors.

POST https://uptime.betterstack.com/api/v2/catalog/relations/{relation_id}/attributes

URL parameters

relation_id
required string

Headers

Authorization
required string
Content_Type
string

Body parameters

name
required string
*
201

Response body

{
  "data": {
    "id": "56",
    "type": "catalog_attribute",
    "attributes": {
      "name": "Team",
      "primary": true,
      "position": 0
    }
  }
}

Example cURL

Example
curl -X "POST" "https://uptime.betterstack.com/api/v2/catalog/relations/37/attributes" \
     -H "Authorization: Bearer $TOKEN" \
     -H 'Content-Type: application/json; charset=utf-8' \
     -d $'{
  "name": "Test"
}'