Skip to main content

Get a node's children

GET 

/pcm/hierarchies/:hierarchyID/nodes/:nodeID/children

Retrieves the child nodes for a specified node.

Request

Path Parameters

    hierarchyID stringrequired

    A unique identifier for the hierarchy.

    nodeID stringrequired

    A unique identifier for the node.

Query Parameters

    page[offset] int64

    Possible values: <= 10000

    The number of records to offset the results by.

    page[limit] int64

    Possible values: <= 10000

    The number of records per page. The maximum limit is 100.

Responses

Successfully returns the node's children

Schema
    data object[]

    An array of nodes.

  • Array [
  • id string

    The unique identifier of a node.

    type string

    Possible values: [node]

    This represents the type of resource object being returned. Always node.

    attributes object
    name string

    The name of the node, such as Ranges or Refrigerators. Names must be unique among sibling nodes in the hierarchy. Otherwise, a name can be non-unique within the hierarchy and across multiple hierarchies.

    description string

    A description for a node.

    slug string

    A slug for the node. Slugs must be unique among sibling nodes in the hierarchy. Otherwise, a slug can be non-unique within the hierarchy and across multiple hierarchies.

    curated_products string[]

    You can curate your products in your nodes product lists. Product curation allows you to promote specific products within each node in a hierarchy, enabling you to create unique product collections in your storefront.

    locales object

    Product Experience Manager supports localization of hierarchies and nodes. If you store supports multiple languages, you can localize hierarchy and node names and descriptions.

    property name* object

    A three-letter language code that represents the name of language you have used.

    name string

    A localized hierarchy or node name.

    description string

    A localized hierarchy or node description.

    relationships object

    Relationships allow you to move between requests. Includes links to the child nodes and products associated with a hierarchy or node.

    children object

    The child nodes related to the resource.

    data array

    An array of child nodes.

    links object

    Links allow you to move between requests.

    related string

    A link to a related resource.

    parent object

    The parent node related to the resource

    data object

    The parent node

    type stringrequired

    Possible values: [node]

    This represents the type of resource object being returned. Always node.

    id stringrequired

    The unique identifier of a node.

    products object

    The products related to the resource.

    data array

    An array of products.

    links object

    Links allow you to move between requests.

    related string

    A link to a related resource.

    meta object
    sort_order integer

    The sort order value. The node with the highest value of sort_order is displayed first. For example, a node with a sort_order value of 3 appears before a node with a sort_order value of 2. See Sorting Nodes in a hierarchy.

    created_at date-time

    The date and time a node is created.

    updated_at date-time

    The date and time a node was updated.

    parent_name string

    The name of the parent of the node if one exists.

    owner string

    Possible values: [store, organization]

    The node owner, either organization or store.

  • ]
  • meta object
    results object

    Contains the results for the entire collection.

    total integer

    Total number of results for the entire collection.

    links object

    Links are used to allow you to move between requests.

    first string

    Always the first page.

    last string

    This is null if there is only one page.

    next string

    This is null if there is only one page.

    prev string

    This is null if you on the first page.

Loading...