Complete an existing todo

POST /todo/complete/{unique_id}/{id}

When a todo is done, it needs completing. Use this end point

Path parameters

  • unique_id integer Required

    the user id about whom the request is being made

  • id integer Required

    Which item to be processed

    Minimum value is 0.

text/plain

Body Required

  • note string

    The note for this task - required

  • who the note associated with this todo, and therefore the completed todo is visible to - required

    Values are me, group, or anyone.

  • if the visibleto is set to group, this is the ID of the group - required if visibleto is group

  • the workflow step that triggered this todo. Obtained from the original todo and means the rest of the workflow (if any) can continue

  • the workflow action that triggered this todo. Obtained from the original todo and means the rest of the workflow (if any) can continue

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • ok integer

      whether it worked or not. 1 is success

POST /todo/complete/{unique_id}/{id}
curl \
 -X POST https://YOURSITE.infoodle.com/apiv2/todo/complete/1234/99 \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: text/plain"
Response examples (200)
{
  "ok": 1
}