task_schedulers
Create task scheduler with job
Changed onCreate task scheduler with a job (action(job) request should be sent via request also. Example: We want client report to be job which will be run * multiple times, we should send the same parameters in the request as we would send if we wanted to get report, see example
post/api/v1/task_schedulers
Request
- Base URLhttps://demo.invoiceninja.com
- Authnone declared. Required headers: X-Requested-With
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
X-API-SECRETstring
Example:password
The API secret as defined by the .env variable API_SECRET. Only needed for self hosted users, and only applicable on the login route.
X-Requested-Withstring required
Example:XMLHttpRequest
Used to send the XMLHttpRequest header
Request body
Example request
{
"repeat_every": "DAY",
"start_from": 1652898504,
"job": "create_credit_report",
"date_range": "last7",
"date_key": "created_at",
"start_date": "2022-10-31",
"end_date": "2022-10-31",
"report_keys": [
"['name','date']"
]
}Response
success
Changes
- breaking
api path removed without deprecation
- info
endpoint added
- breaking
- breaking
the response's body type changed from no type to
objectfor status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- breaking