Explore documentation

Batch create Catalog records

Allows creation of multiple Catalog records at once.

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

URL parameters

relation_id
required string

Headers

Authorization
required string
Content_Type
string

Body parameters

[]
required array
201

Example cURL

Example
curl -X "POST" "https://uptime.betterstack.com/api/v2/catalog/relations/37/records/batch" \
     -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" }
        ]
      }
    ]
  },
  {
    "attributes": [
      {
        "attribute": { "id": "56", "name": "Team" },
        "values": [
          { "type": "String", "value": "Another Team" }
        ]
      },
      {
        "attribute": { "id": "57", "name": "Team Lead" },
        "values": [
          { "type": "Team", "item_id": "124" }
        ]
      }
    ]
  }
]'