Explore documentation

Update a Catalog record

Update an existing Catalog record. Send only the parameters you wish to change (eg. attributes).

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

URL parameters

relation_id
required string
record_id
required string

Headers

Authorization
required string
Content_Type
string

Body parameters

attributes
array
200

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 "PATCH" "https://uptime.betterstack.com/api/v2/catalog/relations/37/records/67" \
     -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" }
      ]
    }
  ]
}'