Yes, we can get the collection ID by providing the collection name using list API request as below:
Index URL
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":"C6D418861BAD66A46A7CC96B70CEADF9",
"name": "WebCollection"
}
Document Description
JSON Fields | Value |
---|---|
apikey | API key accessible in the SearchBlox Admin Console. It is also present in the config.xml file. |
Name | Name of the collection for which the id has to be identified |
JSON response:
{
"WebCollection": 1
}
To learn more about API for collection read: Collection list API in SearchBlox
Comments
0 comments
Please sign in to leave a comment.