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.

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.

description
optional
string

Description

set
optional
object

Set object.

tags
optional
array

Set tag ids. If array is empty or null, it is ignored.

account
optional
string

Set account id.

category
optional
string

Set category id.

add
optional
object

Add object.

tags
optional
array

Add tag ids.

remove
optional
object

Remove object.

tags
optional
array

Remove tag ids.

* denotes required field/parameter.

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