curator/tags.update
Updates a tag in your Curator Media Unit
URL
POST /v1.0/curator/tags.update
Parameters
Argument | Required | Default Value | Example | Description |
---|---|---|---|---|
tag_id | Required | - | 12345678912345 | ID of the tag. |
name | Required | - | Hanami | Name of the tag. |
Responses
{
"ok": true,
"tag": {
"id": "9012345",
"name": "Hanami",
"created_at": "2015-11-10T20:09:31+00:00",
"updated_at": "2015-12-25T18:58:10+00:00"
}
}
If successful, the method returns updated data. For more details, please refer to the “curator tag” object.
Errors
Error Code | Description |
---|---|
no_tag_id | Value for "tag_id" is not specified. |
invalid_tag_id | Value passed for “tag_id" is invalid. |
tag_not_found | The tag cannot be found. |
no_update_param | Updated parameters are not specified. |
no_name | Value for “name” is not specified. |
invalid_name | Value passed for “name" is invalid. |
name_taken | Tag name taken. |
For other error codes, refer to the Common Errors section of this document.