PATCH /hub/v1/nestedtags/{tagId}
Updates an existing tag. Provide only the tag fields to be changed.
URL Parameters
Name | Type | Description | |
---|---|---|---|
tagId | number | Required | ID of the tag to patch. |
JSON Parameters
Name | Type | Description | |
---|---|---|---|
id | number | Required | TagId of the tag to update. |
name | string | Name of the tag, up to 120 characters. The only special characters allowed are period (.) and apostrophe ('). | |
description | string | Description of the tag, up to 256 characters. The only special characters allowed are period (.), apostrophe ('), comma (,), and forward slash (/). If you don’t provide a description, the existing description is not changed. | |
parentId | number | TagId that you want to be the parent of this tag. If you don’t provide a parentId, the parentId is not changed. | |
tags | object | A list of tags to create as nested tags. If you don’t provide a list of tags, the existing nested tags are not changed. |
Example Request
This example patches a nested tag to update its description field.
Example Response
Example Request
This example changes a nested tag into a root tag with no parent.