Rebrand 2023 Learn more 

  • Products/
    Products API/
    Dissociate Products from Multiple Nodes

    Dissociate Products from Multiple Nodes

    This endpoint is for Administrator use only. Do not use this endpoint on your customer-facing frontends.

    POST Detach multiple nodes

    https://useast.api.elasticpath.com/pcm/products/detach_nodes
    

    Dissociates products from multiple hierarchies and their children nodes.

    Request Parameters

    Body

    NameRequiredTypeDescription
    filterRequiredstringFilters applied to search for appropriate products. For more details on filtering, see Filtering.
    node_idsRequiredstringA list of node UUIDs that you want to dissociate from the products.

    Headers

    NameRequiredTypeDescription
    AuthorizationRequiredstringThe Bearer token required to get access to the API.

    Request Example

    This request dissociates the products that you have selected from multiple hierarchies and their children nodes.

    curl -X POST https://useast.api.elasticpath.com/pcm/products/detach_nodes \
         -H "Authorization: Bearer XXXX" \
         -H "Content-Type: application/json" \
         -d $ {
          "data": {
            "filter": "eq(sku,book)",
            "node_ids": ["123"]
          }
         }
    

    Response Example

    200 OK

    {
      "meta": {
        "nodes_detached": 1,
        "nodes_not_found": []
      }
    }
    

    Response Objects

    NameDescription
    nodes_detachedNumber of nodes dissociated from the products.
    nodes_not_foundA list of node UUIDs that could not be identified.
    Previous
    Assign Products to Multiple Nodes