---
title: "Create a simple or advanced rule; queues an ordered all-rules pass (202)."
method: POST
path: "/api/v2/categorizer/rules"
---

# Create a simple or advanced rule; queues an ordered all-rules pass (202).

`POST /api/v2/categorizer/rules`

## Request

- Base URL: `https://fintable.io`
- URL: `https://fintable.io/api/v2/categorizer/rules`
- Auth: HTTP bearer

## Query parameters

- `workspace_id` string

## Request body

- object
  - `type` 'simple' | 'advanced', required
  - `text` string
  - `category_id` string
  - `name` string
  - `logic` string: JSONLogic as a JSON string; top-level if; literal category-id result branches.

## Response `202`

A {"data": {...}} envelope.

- DataObject
  - `data` object
  - `workspace_id` string: Public ID of the Workspace this successful response was resolved against (workspace-bound endpoints only).

## Other responses

- `422`: The standard error envelope.

---

[API](https://skmtc.dev/fintable/apis/fintable-api.md) · [All operations](https://skmtc.dev/fintable/apis/fintable-api/llms.txt) · [OpenAPI document](https://skmtc.dev/fintable/apis/fintable-api/revisions/b5ed1cf8f417?raw)
