Create an index profile
import requests
url = "https://{FUSION HOST}/api/index-profiles"
payload = {
"id": "SiteSearch",
"indexPipeline": "newSiteSearchProfile",
"collection": "SiteSearch",
"parser": "SiteSearch"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "default",
"indexPipeline": "<string>",
"collection": "<string>",
"parser": "<string>"
}Create an index profile
The request is a JSON body defining the new index profile.
POST
/
index-profiles
Create an index profile
import requests
url = "https://{FUSION HOST}/api/index-profiles"
payload = {
"id": "SiteSearch",
"indexPipeline": "newSiteSearchProfile",
"collection": "SiteSearch",
"parser": "SiteSearch"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "default",
"indexPipeline": "<string>",
"collection": "<string>",
"parser": "<string>"
}Authorizations
Basic authAPI key
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Query Parameters
The app to which this object belongs, as app:SomeApp. If the object is not part of this app, the request fails. Other comma-separated contexts in the context parameter are allowed but ignored.
Body
application/json
Response
201 - application/json
Created
Was this page helpful?
⌘I