POST/v1/preferencecatalogs

Create preferencecatalogs

Not yet documented — no summary in the API source.

RequiresAuthorization: Bearer sk_...tenant_id

Request body application/json

idstringnullable
tenant_idstringnullable
created_atstring (date-time)
updated_atstring (date-time)
namestringnullablemax length 64
codestringnullablemax length 32
dependsOnstringnullable
dependsOnLogicstringnullable
statusstringnullable
optionsarray of objectPreferenceOptionnullable
idstringnullable
tenant_idstringnullable
created_atstring (date-time)
updated_atstring (date-time)
codestringnullable
valuestringnullable
orderinteger (int32)
is_deletedboolean
deleted_atstring (date-time)nullable

Responses

object PreferenceCatalog — same shape as the request body.

curl --request POST \
  --url 'https://api.4comply.io/v1/preferencecatalogs' \
  --header 'Authorization: Bearer sk_...' \
  --header 'tenant_id: your-tenant-id' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "00000000-0000-0000-0000-000000000000",
  "tenant_id": "your-tenant-id",
  "created_at": "2026-09-07T12:00:00Z",
  "updated_at": "2026-09-07T12:00:00Z",
  "name": "Example name",
  "code": "example-code",
  "dependsOn": "string",
  "dependsOnLogic": "string",
  "status": "active",
  "options": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "tenant_id": "your-tenant-id",
      "created_at": "2026-09-07T12:00:00Z",
      "updated_at": "2026-09-07T12:00:00Z",
      "code": "example-code",
      "value": "string",
      "order": 1
    }
  ],
  "is_deleted": true,
  "deleted_at": "2026-09-07T12:00:00Z"
}'