Merge categories
Merge multiple categories into one. All entries and budgets with the selected categories will be updated. After merging the selected categories will be deleted. Some related data is updated asynchronously.
POST /categories/merge
Required scope:
- entries:rw
- categories:rw
- budgets:rw
Parameters
categories * required array
|
Category ids to merge. |
category * required string
|
Category id to merge selected categories into. |
* denotes required field/parameter.
Request
$ curl https://api.toshl.com/categories/merge \ -H "Authorization: Bearer T9cE5asGnuyYCCqIZFoWjFHvNbvVqHjl" \ -H "Content-Type: application/json" \ -X POST \ -d '{"categories": ["42", "43"], "category": "44"}'