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
Solved! Go to Solution.
'Delete' allows to delete one and only 1 entry.
you can use 'edit' to rewrite entirely the content of a node.
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
Hi,
You should check our API guide. The part that interests you is here :
I had to play a little bit but finally it worked! Tx for your help!
Cheers,
Xavier
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
Ok, found the answer by myself... I can use a POST request... RTFM!!
Cheers,
Xavier
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!