task_schedulers
Update task scheduler
Changed onUpdate task scheduler
put/api/v1/task_schedulers/{id}
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.
Path parameters
idstring string required
The Scheduler Hashed ID
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
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
- breaking
the response's body type changed from
objectto no type for status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status
- breaking