Skip to main content
PUT
/
query-rewrite
/
publish
/
{types}
Publish query rewrites by type
import requests

url = "https://{FUSION HOST}/api/query-rewrite/publish/{types}"

headers = {"Authorization": "Basic <encoded-value>"}

response = requests.put(url, headers=headers)

print(response.json())
"<string>"

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

types
enum<string>[]
required

A comma-separated list of query rewrite types. Use /query-rewrite/schema to check the available query rewrite types.

Query Parameters

context
string
required

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.

editSessionId
string

The edit session ID associated with this request. Equivalent to a Fusion username.

noOptimizeWithin
integer

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.