curl --request POST \
--url https://api.syntage.com/schedulers \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "Daily Invoices Scheduler",
"type": "recurring",
"isEnabled": true,
"tags": [
"/entity-tags/91106968-1abd-4d64-85c1-4e73d96fb997"
]
}
'{
"@context": "/contexts/Scheduler",
"@id": "/schedulers/91106968-1abd-4d64-85c1-4e73d96fb997",
"@type": "Scheduler",
"id": "e0a24894-7fbf-48ae-bfb0-efaae30a6319",
"name": "Daily Invoices Scheduler",
"type": "recurring",
"isEnabled": true,
"rules": {
"@context": "/contexts/SchedulerRule",
"@id": "/schedulers/rules",
"@type": "hydra:Collection",
"hydra:member": [
{
"@id": "/schedulers/rules/91106968-1abd-4d64-85c1-4e73d96fb997",
"@type": "SchedulerRule",
"id": "e0a24894-7fbf-48ae-bfb0-efaae30a6319",
"scheduler": "Daily Invoices Scheduler",
"extractor": "invoice",
"options": {
"types": [
"I",
"E",
"P"
],
"period": {
"from": "2020-01-01T00:00:00.000Z",
"to": "2020-03-31T23:59:59.000Z"
}
},
"cronExpression": "@daily",
"nextRunDate": "2020-01-01T12:15:00.000Z",
"createdAt": "2020-01-01T12:15:00.000Z",
"updatedAt": "2020-01-01T12:15:00.000Z"
}
],
"hydra:totalItems": 1,
"hydra:view": {
"@id": "/schedulers/rules?page=1",
"@type": "hydra:PartialCollectionView",
"hydra:first": "/schedulers/rules?page=1",
"hydra:next": "/schedulers/rules?page=2",
"hydra:last": "/schedulers/rules?page=3"
},
"hydra:search": {
"@type": "<string>",
"hydra:template": "<string>",
"hydra:variableRepresentation": "<string>",
"hydra:mapping": [
{
"@type": "<string>",
"variable": "<string>",
"property": "<string>",
"required": true
}
]
}
},
"tags": [
{
"@id": "/entity-tags/91106968-1abd-4d64-85c1-4e73d96fb997",
"@type": "EntityTag",
"id": "e0a24894-7fbf-48ae-bfb0-efaae30a6319",
"name": "Important Taxpayer",
"createdAt": "2020-01-01T12:15:00.000Z",
"updatedAt": "2020-01-01T12:15:00.000Z"
}
],
"createdAt": "2020-01-01T12:15:00.000Z",
"updatedAt": "2020-01-01T12:15:00.000Z"
}curl --request POST \
--url https://api.syntage.com/schedulers \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "Daily Invoices Scheduler",
"type": "recurring",
"isEnabled": true,
"tags": [
"/entity-tags/91106968-1abd-4d64-85c1-4e73d96fb997"
]
}
'{
"@context": "/contexts/Scheduler",
"@id": "/schedulers/91106968-1abd-4d64-85c1-4e73d96fb997",
"@type": "Scheduler",
"id": "e0a24894-7fbf-48ae-bfb0-efaae30a6319",
"name": "Daily Invoices Scheduler",
"type": "recurring",
"isEnabled": true,
"rules": {
"@context": "/contexts/SchedulerRule",
"@id": "/schedulers/rules",
"@type": "hydra:Collection",
"hydra:member": [
{
"@id": "/schedulers/rules/91106968-1abd-4d64-85c1-4e73d96fb997",
"@type": "SchedulerRule",
"id": "e0a24894-7fbf-48ae-bfb0-efaae30a6319",
"scheduler": "Daily Invoices Scheduler",
"extractor": "invoice",
"options": {
"types": [
"I",
"E",
"P"
],
"period": {
"from": "2020-01-01T00:00:00.000Z",
"to": "2020-03-31T23:59:59.000Z"
}
},
"cronExpression": "@daily",
"nextRunDate": "2020-01-01T12:15:00.000Z",
"createdAt": "2020-01-01T12:15:00.000Z",
"updatedAt": "2020-01-01T12:15:00.000Z"
}
],
"hydra:totalItems": 1,
"hydra:view": {
"@id": "/schedulers/rules?page=1",
"@type": "hydra:PartialCollectionView",
"hydra:first": "/schedulers/rules?page=1",
"hydra:next": "/schedulers/rules?page=2",
"hydra:last": "/schedulers/rules?page=3"
},
"hydra:search": {
"@type": "<string>",
"hydra:template": "<string>",
"hydra:variableRepresentation": "<string>",
"hydra:mapping": [
{
"@type": "<string>",
"variable": "<string>",
"property": "<string>",
"required": true
}
]
}
},
"tags": [
{
"@id": "/entity-tags/91106968-1abd-4d64-85c1-4e73d96fb997",
"@type": "EntityTag",
"id": "e0a24894-7fbf-48ae-bfb0-efaae30a6319",
"name": "Important Taxpayer",
"createdAt": "2020-01-01T12:15:00.000Z",
"updatedAt": "2020-01-01T12:15:00.000Z"
}
],
"createdAt": "2020-01-01T12:15:00.000Z",
"updatedAt": "2020-01-01T12:15:00.000Z"
}Your API key is available in the Production and Sandbox dashboards.
The scheduler name
"Daily Invoices Scheduler"
The type of scheduler, only the recurring type is allowed for creation
recurring "recurring"
To enable or disable the scheduler
true
The tags to be associated with the scheduler
[
"/entity-tags/91106968-1abd-4d64-85c1-4e73d96fb997"
]Scheduler resource response
Scheduler IRI reference
"/schedulers/91106968-1abd-4d64-85c1-4e73d96fb997"
"e0a24894-7fbf-48ae-bfb0-efaae30a6319"
"Daily Invoices Scheduler"
recurring "recurring"
Show child attributes
Show child attributes
Scheduler Rule IRI reference
"/schedulers/rules/91106968-1abd-4d64-85c1-4e73d96fb997"
"e0a24894-7fbf-48ae-bfb0-efaae30a6319"
"Daily Invoices Scheduler"
The extractor to be executed. Extracts various resources from the corresponding datasources.
invoice, monthly_tax_return, annual_tax_return, rif_tax_return, tax_status, tax_retention, tax_compliance, electronic_accounting, rpc, buro_de_credito_report, bil, rug The extractor options. Check the available options for each extractor in Extractions.
{
"types": ["I", "E", "P"],
"period": {
"from": "2020-01-01T00:00:00.000Z",
"to": "2020-03-31T23:59:59.000Z"
}
}"@daily"
Date and time the resource should execute in the next iteration
"2020-01-01T12:15:00.000Z"
Date and time the resource was created
"2020-01-01T12:15:00.000Z"
Date and time the resource was last updated
"2020-01-01T12:15:00.000Z"
The total number of items found
x >= 01
Pagination information
Show child attributes
Current page IRI reference
"/schedulers/rules?page=1"
First page IRI reference. This property is omitted if there is no pagination.
"/schedulers/rules?page=1"
Next page IRI reference. This property is omitted if there is no pagination.
"/schedulers/rules?page=2"
Last page IRI reference. This property is omitted if there is no pagination.
"/schedulers/rules?page=3"
Show child attributes
Show child attributes
Entity Tag IRI reference
"/entity-tags/91106968-1abd-4d64-85c1-4e73d96fb997"
"e0a24894-7fbf-48ae-bfb0-efaae30a6319"
"Important Taxpayer"
Date and time the resource was created
"2020-01-01T12:15:00.000Z"
Date and time the resource was last updated
"2020-01-01T12:15:00.000Z"
Date and time the resource was created
"2020-01-01T12:15:00.000Z"
Date and time the resource was last updated
"2020-01-01T12:15:00.000Z"