import requests
url = "https://{FUSION HOST}/api/index-pipelines/{id}"
payload = {
"id": "default",
"stages": [
{
"type": "<string>",
"id": "<string>",
"label": "<string>",
"condition": "<string>",
"skip": True
}
],
"properties": {}
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"id": "default",
"stages": [
{
"type": "<string>",
"id": "<string>",
"label": "<string>",
"condition": "<string>",
"skip": true
}
],
"properties": {}
}Update an index pipeline
The request is a JSON body containing the index pipeline’s attributes. All attributes are required, including those not being updated. Use GET to fetch the current attributes to edit and submit as the body of this request.
import requests
url = "https://{FUSION HOST}/api/index-pipelines/{id}"
payload = {
"id": "default",
"stages": [
{
"type": "<string>",
"id": "<string>",
"label": "<string>",
"condition": "<string>",
"skip": True
}
],
"properties": {}
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"id": "default",
"stages": [
{
"type": "<string>",
"id": "<string>",
"label": "<string>",
"condition": "<string>",
"skip": true
}
],
"properties": {}
}Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Headers
Optional tag to match.
Path Parameters
The index profile ID
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
A JSON object defining the index pipeline.
The index pipeline ID.
"default"
The stages in this index pipeline and their configurations. Use /api/index-stages/schema and /api/index-stages/schema/{type} to get the configuration schemas for the available index stage types.
Show child attributes
Show child attributes
Additional properties defining this index pipeline.
Show child attributes
Show child attributes
Response
OK
A JSON object defining the index pipeline.
The index pipeline ID.
"default"
The stages in this index pipeline and their configurations. Use /api/index-stages/schema and /api/index-stages/schema/{type} to get the configuration schemas for the available index stage types.
Show child attributes
Show child attributes
Additional properties defining this index pipeline.
Show child attributes
Show child attributes
Was this page helpful?