Viviot.Api

<back to all web services

UpdateTaskStatus

Requires Authentication
The following routes are available for this service:
PUT/mobileb/tasklist/task/statusUpdates the status of a task.
UpdateTaskStatus Parameters:
NameParameterData TypeRequiredDescription
TaskIdbodystringYesTask ID
TaskStatusbodyTaskStatusYesCurrent status of the task.

Allowable Values

  • ToDo
  • InProgress
  • Incomplete
  • Done
NfcCodebodystringNoNFC code of the tag, if applicable.
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
VersionformintegerNoApi version
Status Enum:
NameValue
ToDo0
InProgress10
Incomplete30
Done40
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PUT /mobileb/tasklist/task/status HTTP/1.1 
Host: api.4spaces.io 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"taskId":"00000000000000000000000000000000","taskStatus":0,"nfcCode":"String","version":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}