PUT
/
schedulers
/
rules
/
{id}
Update an scheduler rule
curl --request PUT \
  --url https://api.syntage.com/schedulers/rules/{id} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "extractor": "invoice",
  "options": {
    "types": [
      "I",
      "E",
      "P"
    ],
    "period": {
      "from": "2020-01-01T00:00:00.000Z",
      "to": "2020-03-31T23:59:59.000Z"
    }
  },
  "cronExpression": "@daily"
}'
{
  "@context": "/contexts/SchedulerRule",
  "@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"
}

Authorizations

X-API-Key
string
header
required

Your API key is available in the Production and Sandbox dashboards.

Path Parameters

id
string<uuid>
required

Body

application/json
extractor
enum<string>

The extractor to be executed. Extracts various resources from the corresponding datasources.

Available options:
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
options
object

The extractor options. Check the available options for each extractor in Extractions.

Example:
{
"types": ["I", "E", "P"],
"period": {
"from": "2020-01-01T00:00:00.000Z",
"to": "2020-03-31T23:59:59.000Z"
}
}
cronExpression
string

The cron expression

Example:

"@daily"

Response

Scheduler rule resource response

@context
string
default:/contexts/SchedulerRule
@id
string<iri-reference>

Scheduler Rule IRI reference

Example:

"/schedulers/rules/91106968-1abd-4d64-85c1-4e73d96fb997"

@type
string
default:SchedulerRule
id
string<uuid>
Example:

"e0a24894-7fbf-48ae-bfb0-efaae30a6319"

scheduler
string
Example:

"Daily Invoices Scheduler"

extractor
enum<string>

The extractor to be executed. Extracts various resources from the corresponding datasources.

Available options:
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
options
object

The extractor options. Check the available options for each extractor in Extractions.

Example:
{
"types": ["I", "E", "P"],
"period": {
"from": "2020-01-01T00:00:00.000Z",
"to": "2020-03-31T23:59:59.000Z"
}
}
cronExpression
string | null
Example:

"@daily"

nextRunDate
string

Date and time the resource should execute in the next iteration

Example:

"2020-01-01T12:15:00.000Z"

createdAt
string

Date and time the resource was created

Example:

"2020-01-01T12:15:00.000Z"

updatedAt
string

Date and time the resource was last updated

Example:

"2020-01-01T12:15:00.000Z"