Update tag
Update a tag. Some related data is updated asynchronously.
PUT /tags/{id}
Required scope:
- tags:rw
Parameters
id * required string
|
Tag id. |
name * required string
|
Tag name. Max length:255 |
name_override optional boolean
|
Is true if name is overriden with a custom name. |
modified * required string
|
Specifies when the tag was last modified. |
type * required string
|
Tag type. Possible values:expense, income |
category optional string
|
Primary category id of the tag. |
extra optional object
|
A custom JSON object that you can use to extend Toshl API. Whatever you save into this field you will get back whenever you fetch it later. |
* denotes required field/parameter.
Request
$ curl https://api.toshl.com/tags/42 \ -H "Authorization: Bearer T9cE5asGnuyYCCqIZFoWjFHvNbvVqHjl" \ -H "Content-Type: application/json" \ -X PUT \ -d '{json}'