Explore documentation

Create a Catalog record

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

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

URL parameters

relation_id
required string

Headers

Authorization
required string
Content_Type
string

Body parameters

attributes
required array
attributes.0.attribute
required object
attributes.0.attribute.id
string
attributes.0.attribute.name
string
attributes.0.values
required array
attributes.0.values.0.type
required string
attributes.0.values.0.value
string
attributes.0.values.0.item_id
string
attributes.0.values.0.name
string
attributes.0.values.0.email
string
201

Response body

{
  "data": {
    "id": "67",
    "type": "catalog_record",
    "attributes": {
      "attributes": [
        {
          "attribute": {
            "id": "56",
            "name": "Team"
          },
          "values": [
            {
              "type": "String",
              "value": "My Team"
            }
          ]
        },
        {
          "attribute": {
            "id": "57",
            "name": "Team Lead"
          },
          "values": [
            {
              "type": "Team",
              "item_id": "123"
            }
          ]
        }
      ]
    }
  }
}

Example cURL

Example
curl -X "POST" "https://uptime.betterstack.com/api/v2/catalog/relations/67/records" \
     -H "Authorization: Bearer $TOKEN" \
     -H 'Content-Type: application/json; charset=utf-8' \
     -d $'{
  "attributes": [
    {
      "attribute": { "id": "56", "name": "Team" },
      "values": [
        { "type": "String", "value": "My Team" }
      ]
    },
    {
      "attribute": { "id": "57", "name": "Team Lead" },
      "values": [
        { "type": "Team", "item_id": "123" }
      ]
    }
  ]
}'