Clear Timers

Clears any timers.

Clear Timers

ParameterMandatoryDescriptionExamplesMore Info
APIYesThe API areatspending.json
GeneralYesParameters described in overviewsee overviewStructure of an API call
CompanyYesThe company numbercompany=1
DateNoDate (a blank date clears timers regardless of date, not an error)date=2019-07-23
ResourceNoResource code (defaults to the calling user's own resource if omitted)resource=1/ME
ActionYesThe action to performaction=timerclear

Example request (OAuth 2.0):

Authorization: Bearer <access_token>
http://<SERVER>/jsonapi/tspending.json?&version=6&action=timerclear&company=1

Example request (legacy username/password):

http://<SERVER>/jsonapi/tspending.json?&version=6&action=timerclear&company=1&user=<username>&password=<password>

Example response:

{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "responsemessage": "No timers found to be cleared.",
  "warningmessage": "",
  "success": true
}