Explore documentation

Batch update Catalog records

Allows replacing all Catalog records for a given relation at once. This is a destructive operation and will remove all existing records for the relation before creating new ones.

PUT 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 "PUT" "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" }
          ]
        }
      ]
    }
  ]'