- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
11-16-2016 06:17 AM
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
11-16-2016 08:43 AM
Hi,
You should check our API guide. The part that interests you is here :
11-16-2016 08:31 AM
'Delete' allows to delete one and only 1 entry.
you can use 'edit' to rewrite entirely the content of a node.
11-16-2016 08:40 AM
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
11-16-2016 08:43 AM
Hi,
You should check our API guide. The part that interests you is here :
11-16-2016 11:59 PM
I had to play a little bit but finally it worked! Tx for your help!
Cheers,
Xavier
11-17-2016 12:16 AM
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
11-17-2016 12:34 AM
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 LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!