POST
/
v1
/
catalogs
/
{catalog_id}
/
fields
curl --request POST \
  --url https://api.rootly.com/v1/catalogs/{catalog_id}/fields \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '{
  "data": {
    "type": "catalog_fields",
    "attributes": {
      "name": "<string>",
      "kind": "text",
      "kind_catalog_id": "<string>",
      "multiple": true,
      "position": 123
    }
  }
}'
{
  "data": {
    "id": "cf5f8782-e433-414b-90de-2ac2b5aac09e",
    "type": "catalog_fields",
    "attributes": {
      "catalog_id": "75811181-4427-4c4a-b495-460940b7b26c",
      "name": "Test Attribute",
      "slug": "test-attribute",
      "kind": "reference",
      "kind_catalog_id": null,
      "multiple": false,
      "position": 2,
      "deleted_at": null,
      "updated_at": "2025-03-22T22:58:25.909-07:00",
      "created_at": "2025-03-22T22:58:25.909-07:00"
    },
    "relationships": {
      "catalog": {
        "data": {
          "id": "75811181-4427-4c4a-b495-460940b7b26c",
          "type": "catalogs"
        }
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

catalog_id
string
required

Body

application/vnd.api+json
data
object
required

Response

201
application/vnd.api+json
catalog_field created
data
object
required

Was this page helpful?