Skip to content

Task JSON

CoPokBl edited this page Nov 14, 2022 · 2 revisions

Here is a basic template for a task represented as a JSON object:

{
     "id":"1da9f78c-e083-4181-8f7c-79d419ca59e6",
  
     "class":"Math",
     "classColour":"-1.-1.-1",
  
     "type":"CAT",
     "typeColour":"-1.-1.-1",
  
     "task":"Do some math work",
     "dueDate":"5249550074427387904"
}

When sending GET requests to /api/tasks/ this is the format that you will get the individual tasks in
When sending a put request to add/replace a task all fields are optional, if they aren't specified they will be set to the default value

Defaults

id: Will be generated

Clone this wiki locally