Skip to main content
POST
Create One Rule
The fields to populate depend on the rule’s type — three distinct shapes; mixing them produces a rule that silently never fires. See Rules.

Authorizations

Authorization
string
header
required

Your API key, sent in the Authorization header: Authorization: YOUR_API_KEY. A Bearer prefix is also accepted (Authorization: Bearer YOUR_API_KEY). Keys are created in the Upwell dashboard (Account → API keys) and are scoped to one organization.

Body

application/json

Query parameters can also be provided in the request body as a JSON object

input
RulesInsertInput · object

input type for inserting data into table "rules"

Response

Responses for POST /api/rest/rules

createRule
Rules · object | null

Rules used for matching, document requirements, etc