Skip to main content
POST
Create a rule

Authorizations

Authorization
string
header
required

A WordPress application password (Users → Profile → Application passwords).

Body

application/json
name
string
required
Maximum string length: 190
Example:

"Bulk hardware"

active
boolean
default:true
priority
integer
default:10

Lower runs first.

exclusive
boolean
default:false

Don't combine with other rules.

conditions
object[]
Maximum array length: 20
actions
object[]
Maximum array length: 20
Example:

Response

The new rule.

id
integer
required
Example:

1

name
string
required
Maximum string length: 190
Example:

"Bulk hardware"

active
boolean
default:true
priority
integer
default:10

Lower runs first.

exclusive
boolean
default:false

Don't combine with other rules.

conditions
object[]
Maximum array length: 20
actions
object[]
Maximum array length: 20
Example: