Serve

Summary

Resource

Operation

Description

Pull Posts

GET /posts/pull

Pull posts from Toggl and send to client.

Push Posts

PUT /posts/push

Push posts into Project Laboratory.

Details

GET /posts/pull

Pull list of Toggl posts in period between specified since and until dates.

Request Headers
Request JSON Object
  • api_token (string) – The Toggl authentication token to use instead of username and password.

  • excluded_projects (string) – List of PL projects names to exclude from result.

  • since (string) – The start date in ISO 8601 (YYYY-MM-DD) format to pull posts from Toggl.

  • until (string) – The last date in ISO 8601 (YYYY-MM-DD) format to pull posts from Toggl.

  • user_key (string) – The Project Laboratory authentication token to use instead of username and password.

  • workspace (string) – The Toggl workspace name (case sensitive) to pull information from.

Response Headers
Status Codes
  • 200 OK – Request successfully processed and response provided back to client.

PUT /posts/push

Push single Project Laboratory task information.

Request Headers
Request JSON Object
  • api_token (string) – The Toggl authentication token to use instead of username and password.

  • date (string) – The date in ISO 8601 (YYYY-MM-DD) format when work was actually done.

  • description (string) – Relatively short description of the work done as a part of the parent task.

  • duration (integer) – The real amount of minutes spent during work on the task entry.

  • project (string) – The Project Laboratory task parent project name.

  • rounded (integer) – The rounded amount of minutes spent during work on the task entry.

  • task (string) – The Project Laboratory task name.

  • user_key (string) – The Project Laboratory authentication token to use instead of username and password.

  • workspace (string) – The Toggl workspace name (case sensitive) to pull information from.

Response Headers
Status Codes
  • 200 OK – Request successfully processed and response provided back to client.