Delete multiple objects from a custom URL category? (or reset it?)

Reply
Highlighted
L1 Bithead

Delete multiple objects from a custom URL category? (or reset it?)

Hi,

 

I'm managing a custom URL category via API calls. Domains are added, removed. Works well. 

But, in some cases, I'd like to remove multiple domains or, more efficiently, clear the category (remove all entries) with one API call.

Any idea how to achieve this?

 

Cheers,

/x


Accepted Solutions
Highlighted
L4 Transporter


All Replies
Highlighted
L4 Transporter

'Delete' allows to delete one and only 1 entry.

 

you can use 'edit' to rewrite entirely the content of a node.

Highlighted
L1 Bithead

Tx for your reply.

What do you mean by "rewrite the content of a node" exactly?

 

Let's assume that I've this custom category: "custom_url" with 3 domains:

"domaina.net"

"domainb.org"

"domainc.com"

 

I need to populate this category with a _new_ list of domains (some are the same, some are new, some are removed). Example:

 

"domaina.net"

"domaind.be"

"domainf.co.uk"

 

What would be the best approach to populate the category with the new domains?

 

Cheers,

/x

Highlighted
L4 Transporter

Highlighted
L1 Bithead

I had to play a little bit but finally it worked! Tx for your help!

 

Cheers,

Xavier

Highlighted
L1 Bithead

Do you know the limit of an API call (most browsers have a limit of 8KB for HTTP requests).

The custom URL category that I've to replace has a lot of entries.

 

Cheers,

Xavier

Highlighted
L1 Bithead

Ok, found the answer by myself... I can use a POST request... RTFM!!

 

Cheers,

Xavier

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!

The Live Community thanks you for your participation!