Skip to Main Content
Status Initial review
Categories API
Created by Ulrik Viebke
Created on Oct 30, 2024

REST API endpoint for Channel to unlink entities from all nodes in a channel

Please, fill in the below fields to enable the processing of your idea.

Who would benefit?

Customer who need an efficient way to unlink entities from all existing nodes in a channel.

What impact would it make?

As it is a very timy consuming (and in many cases humanly impossible to do), an endpoint would save a lot of time, and bypass any mistakes a user usually do in the process

How should it work?

A REST API endpoint (DELETE or POST) for submitting entities in bulk, example:

Indata:
Channel entity id: 1234
Entities to unlink: 12,34,55,67,78,90...
LinkTypeId: "ChannelNodeProduct"

As there might be channel filters applied to a channel, we can't use the channel structure to find the products. We must iterate through the Channel Node entities until we find the node where the products exists (or the opposite, for each entity, check it's parent node, check if the node can iterate up to the channel entity id, if so the unlink....)

If this job takes a lot of time to process, it should be forwarded to a Long Running Job. An Id to a LRH should then be returned and a REST API endpoint to check status for the job, so that necessary actions can be taken or proceeded when the job is finished.

Why is it needed?

As there is no efficient way to bulk unlink products from all nodes in a specific channel, and the time it takes for a human to do this is very long and horrible to do manually....


Additional feedback, background or context:


  • Attach files