Yes, it is possible to delete Featured Results using API using the delete and clear requests. Using delete request you can delete on the featured results at a time, using clear requests you can delete all featured results.
Delete a Featured Result:
Index URL
https://localhost:8443/rest/v2/api/ads/delete
Method
POST
Media Type
application/json
Headers
content-type : application/json
accept: application/json
accept: application/json
Document Syntax
{
"apikey": "5615BEF054EB6CE7E3ECCF1DBBEC2524",
"uid": "13"
}
Document Description
apikey | API key accessible in the SearchBlox Admin Console. It is also present in the config.xml file. |
uid | Unique ID for the ad. Note: Each Ad should be given a unique ID. |
Delete All Featured Results:
Kindly note that all ads would be deleted using this API. Back up of SearchBlox Featured Results CSV file with name searchblox_ad_backup_<timestamp>.csv would be available at ../webapps/ROOT on using this delete all ads API.
Index URL
https://localhost:8443/rest/v2/api/ads/clear
Method
POST
Media Type
application/json
Headers
content-type : application/json
accept: application/json
accept: application/json
SB-PKEY: MJxdHTfBplp06eEfUbhxoHseH8j7QoU7zUfpC6vVRtoz/QdPP0LrB7Xz7Vu+w+G2CHhmqg==
Document Syntax
{
"apikey":"AD22EDE4515784C4C9433C72745183BA"
}
Document Description
apikey | API key accessible in the SearchBlox Admin Console. It is also present in the config.xml file. |
uid | Unique ID for the ad. Note: Each Ad should be given a unique ID. |
active | This is to activate the ad while creating. When a value is true the ad will be activated while creating. When a value is false the ad will be deactivated while creating |
To learn more on Featured Results API read: Featured Results API
Comments
0 comments
Please sign in to leave a comment.