Toshl Developer

Manage entries

To manage entries in bulk first select which entries you want to manage by selecting tags, accounts or categories and then set the desired tags, account or category. You must set at least one with and at least one set, add, or remove property for this endpoint to work. See example for more info.

Some related data is updated asynchronously. Clients can set an additional GET parameter immediate_update which dictates that those values should be updated immediately in current request. Such a request may take longer to complete.

POST /entries/manage

Required scope:

Parameters

with
required
object

With object.

tags
optional
array

Entries with tag ids.

accounts
optional
array

Entries with account ids.

categories
optional
array

Entries with category ids.

set
optional
object

Set object.

tags
optional
array

Set tag ids.

account
optional
string

Set account id.

category
optional
string

Set category id.

Request

$ curl https://api.toshl.com/entries/manage \
  -H "Authorization: Bearer T9cE5asGnuyYCCqIZFoWjFHvNbvVqHjl" \
  -H "Content-Type: application/json" \
  -X POST \
  -d '{"with": {"tags": ["42", "43"]}, "set": {"account": "42"}}'

Response

HTTP/1.1 204 No Content