Skip to main content
PUT
Update Accurate sync rule

Authorizations

Authorization
string
header
required

Use a valid Bearer token to authenticate.

Path Parameters

id
string
required

Sync rule ID (a UUID), from GET /integration/accurate/rules. Example: 3f6c2a1e-8b4d-4e0f-9a51-2c7d8e9f0a12

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

Status of response.

data
object

Updated rule.