Okapi Okapi

Toggl Track API labour_cost body parameter removal on /api/v9/workspaces/*

Stopped workingSubscribe to Toggl Track APIShare

On August 31, 2024, Toggl Track API removed the body parameter labour_cost across /api/v9/workspaces/* endpoints. Requests attempting to use this property to update labor costs with the cents-based method now fail. Calls to these workspace endpoints must avoid using the old field.


Calls it hits

  • /api/v9/workspaces/*
  • body parameter labour_cost

What to use instead of these calls

Send labor_cost in monetary units, such as 10.5 for $10.50, instead of labour_cost in cents on workspace user and project user updates.

In Toggl Track API's words

By 2024/08/31 , we will deprecate the old labour_cost property. After this date, you won't be able to change labor costs using the cents-based method.

Toggl Track API, Announcement

Facts

API
Toggl Track API api.track.toggl.com
Kind
Parameter removal
Announced
August 9, 2024
Takes effect
August 31, 2024
Calls after that day
Fail
Source
Announcement
Last updated
Verified
, against Toggl Track API's own pages

Questions

When does this change take effect?

Calls to /api/v9/workspaces/*, body parameter labour_cost on Toggl Track API stopped working on August 31, 2024.

What happens to calls after August 31, 2024?

They have failed since August 31, 2024.

How do I find the calls this hits in my code?

Okapi reads your repository, finds the calls this change hits and opens a pull request with the fix. It never commits to your branches: every change comes as a pull request you review.


More from Toggl Track API 7

  1. /api/v8/*Version retirement Stopped working
  2. DELETE /api/v9/me/sessionsEndpoint removal Stopped working
  3. POST /api/v9/me/close_accountEndpoint removal Stopped working
  4. POST /api/v9/me/lost_passwordsEndpoint removal Stopped working
  5. POST /api/v9/me/sessionsEndpoint removal Stopped working
  6. POST /api/v9/signupEndpoint removal Stopped working
  7. /api/v9/workspaces/{id}/users/{id}/lost_passwordEndpoint removal Stopped working

You fixed this one by hand.

Okapi opens the pull request with the fix before the next breaking change reaches your code.

Add to GitHub

Get notifications

Subscribe to Toggl Track API

Hear about each breaking change Toggl Track API announces, in your feed reader, calendar or Slack.

1What to follow

Provider
  • Toggl Track API

2Where to get it

/breaking-changes/feed.xml

Paste it into Feedly, Inoreader, NetNewsWire or any reader. New changes show up as they're announced.