# Update catalog record

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

[endpoint]
base_url = "https://uptime.betterstack.com"
path = "/api/v2/catalog/relations/{relation_id}/records/{record_id}"
method = "PATCH"

[[path_param]]
name = "relation_id"
description = "The ID of the Catalog relation you want to update a record for."
required = true
type = "string"

[[path_param]]
name = "record_id"
description = "The ID of the Catalog record you want to update."
required = true
type = "string"

[[body_param]]
name = "attributes"
description = "The attributes for the Catalog record. See [create a Catalog record](https://betterstack.com/docs/uptime/api/create-catalog-record/) for details."
required = false
type = "array"

[[header]]
name = "Authorization"
description = "Bearer `$TOKEN`"
required = true
type = "string"

[[header]]
name = "Content_Type"
description = "application/json"
required = false
type = "string"
[/endpoint]

[responses]
[[response]]
status = 200
description = '''Returns the Catalog record'''
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" }
          ]
        }
      ]
    }
  }
}'''

[/responses]

#### Example cURL 

```shell
[label 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" }
      ]
    }
  ]
}'
```

[info]
#### Looking for the details of a specific parameter?
Explore [the list of all Catalog record API parameters](https://betterstack.com/docs/uptime/api/catalog-record-response-params/)
[/info]
