The Salesforce Developers website will undergo maintenance on May 29, 2024 from 3:00 a.m. UTC to 10:00 a.m. UTC. The maintenance process may affect the availability of our documentation. Please plan accordingly.

GET /hub/v1/nestedtags/{tagId}

Returns the tag associated with the specified tagId.

depthnumberThe number of nesting levels to retrieve. The default depth is 0.
200  Response includes the specified tag and all of its properties, including nested tags at the level specified by the depth parameter.
 idintegerTagId of the tag.
 namestringName of the tag.
 descriptionstringDescription of the tag.
 parentIdstringTagId of the parent tag. This field is null or zero if no parent tag exists.
 tagsobjectA list of the tag’s nested tags. Add and modify nested tags using the Update Nested Tags or Patch Nested Tags requests.

This example gets a tag by ID.

This example gets a tag by ID and includes its nested tags one level deep.