Sync jobs Object
Properties
JSON schema defining the structure of the arguments that can be passed to the sync job. Same shape as JsonSchemaObject (top-level { type: "object", properties }).
{
"type": "object",
"properties": {
"project_slug": {
"type": "string",
"description": "The project slug of the project on CircleCI. Its in the format vcs_provider/org_name/repo_name.",
"required": true
}
}
}
Map of property name → JsonSchemaObjectProperties.
object
An optional JSONata expression evaluated against the run's args when a sync job run is created. Return an object with a message field to reject the args with a 400.
The date and time when the sync job was created.
2021-08-10T10:00:00.000ZThe runtime version that sync job runs use by default.
41234
An optional delay, in milliseconds, between requests made by the sync job's runs on runtime version 4.
The ID of the environment that this sync job belongs to.
05daecaf-4365-42e8-8370-8127de5dd717The ID of the sync job.
4a4de828-f4db-4c9e-adfd-434e0864c3c7The name of the integration that this sync job interacts with.
zendeskA human-readable name for the sync job.
Zendesk ticketsAn optional key, with {{args.*}} placeholders, that stops a new run from starting while a run with the same resolved key is still active. Applies on runtime version 4.
{{args.integrated_account_id}}The resources to sync as part of the sync job.
The resource that this resource depends on (parent resource). This is optional and can be used to sync a resource only after another resource has been synced. Each object synced for the parent resource is available as the resources object in placeholders for the child resource, e.g. {{resources.crm.contacts.id}} if depends on is crm/contacts resource.
crm/contactsThe ID of the resource to sync. This is optional and can be used to sync a single resource. It also supports placeholders.
Static value like `4a4de828-f4db-4c9e-adfd-434e0864c3c7` or placeholder like `{{args.user_id}}`.When a particular placeholder argument is an array and you want to repeat the request for each element in that array, you can set this parameter. For example, if you accept an argument called user_ids which is an array of strings, and you want to fetch each user's details, you can set this parameter to args.user_ids and the request will be repeated for each element in the user_ids array.
args.user_idsThe method to call on the resource.
listThe name of the node. Required on runtime version 4, where depends_on and destinations refer to nodes by name. Keep names unique within a sync job.
ticketsWhether to persist the resource in the database or not in case of a Daemon sync job run or send as a payload in case of RapidBridge sync job run. The Proxy API resources are by default NOT persisted and this parameter can be set to true to persist them. Unified API resources are always persisted.
The query parameters to pass to the resource method. It supports placeholders for values.
{
"page": 1,
"per_page": 100,
"user_id": "{{args.user_id}}"
}
The name of the resource to sync. Required for request nodes and on runtime versions 1 to 3. For Unified APIs, it should be in the format unified_api_name/resource_name. For Proxy API, it can just be resource_name.
For fetching Contacts from CRM Unified API, `crm/contacts`. For fetching Contacts from a Proxy API, `contacts`.A JSONata expression. On runtime version 4 the node runs only when it evaluates to a truthy value.
The node type. Required on runtime version 4. Each type reads its own fields; resource, method, id, query and loop_on apply to request nodes.
requestrequesttransformspooladd_contextdestinationeventget_stateupdate_statedelete_state
An optional key, with {{args.*}} placeholders, that names the namespace the sync job's get_state, update_state and delete_state nodes read and write. Required for a sync job that uses those nodes.
zendesk-tickets-{{args.integrated_account_id}}The date and time when the sync job was last updated.
2021-08-10T10:00:00.000Z