Publish a query rewrite
import requests
url = "https://{FUSION HOST}/api/query-rewrite/instances/{id}/publish"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.put(url, headers=headers)
print(response.text)"<string>"Publish a query rewrite
Publish an un-deployed query rewrite matching the specified ID.
PUT
/
query-rewrite
/
instances
/
{id}
/
publish
Publish a query rewrite
import requests
url = "https://{FUSION HOST}/api/query-rewrite/instances/{id}/publish"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.put(url, headers=headers)
print(response.text)"<string>"Authorizations
Basic authAPI key
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Path Parameters
The query rewrite ID.
Query Parameters
The app to which this object belongs, as app:SomeApp. If the app doesn't exist, the request fails. Other comma-separated contexts in the context parameter are allowed but ignored.
The edit session ID associated with this request. Equivalent to a Fusion username.
The number of seconds to wait after a publish before optimizing the query rewrite collection.
Response
200 - application/octet-stream
OK
The response is of type string.
Was this page helpful?
⌘I