# Create catalog relation

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

[endpoint]
base_url = "https://uptime.betterstack.com"
path = "/api/v2/catalog/relations"
method = "POST"

[[body_param]]
name = "name"
description = "The name of the Catalog relation"
required = true
type = "string"

[[body_param]]
name = "*"
description = "Any params you'd like to set. See the [list of all Catalog relation API parameters](https://betterstack.com/docs/uptime/api/catalog-relation-response-params/) for details."
required = false

[[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 = 201
description = '''Returns newly created Catalog relation'''
body = '''{
  "data": {
    "id": "37",
    "type": "catalog_relation",
    "attributes": {
      "name": "Team",
      "description": "Catalog of organization teams"     
    }
  }
}'''

[/responses]

#### Example cURL 

```shell
[label Example]
curl -X "POST" "https://uptime.betterstack.com/api/v2/catalog/relations/" \
     -H "Authorization: Bearer $TOKEN" \
     -H 'Content-Type: application/json; charset=utf-8' \
     -d $'{
  "name": "Test"
}'
```

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