Skip to main content
POST
Create Accurate sync rule

Authorizations

Authorization
string
header
required

Use a valid Bearer token to authenticate.

Body

application/json
direction
enum<string>

Create only. Kind of rule.

Available options:
push,
import
module
string

Accurate module slug. Example: delivery-order

flowId
string

MileApp flow ID. Example: 625678f90fc8ba02bb5eb432

flowName
string

Flow name, for display. Example: Delivery

businessDataId
string

Accurate business data (company) ID. Example: 123456

event
string

Push only. Task event that triggers the push. Default: onTaskFinished

action
enum<string>

Push only. create makes a new document; update edits the document the task came from. Default: create

Available options:
create,
update
fieldMappings
object[]

Push only. [{accurateField, source: {type: flow|task|constant|salesOrder, value, dataType}}].

billComponentId
string

Push only. Bill component ID (same as lineItems.billComponentId).

targetHubId
string

Import only. Hub of the created tasks. Example: 64d9932e2beb9037735ff022

headerMappings
object[]

Import only. [{accurateField, target: {type: flow, value, dataType}}].

lineItems
object

Line items. Push: {billComponentId, rowMappings: [{accurateField, billField}]}. Import: {targetListId, rowMappings: [{accurateField, rowField, dataType}]}.

autoCreateRemainderTask
boolean

Import only.

Response

Success

status
boolean
data
object
quotaReached
boolean

Push rules only.