Skip to main content
PUT
/
query-rewrite
/
instances
Create/update/delete query rewrites
import requests

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

payload = {
    "delete": ["<string>"],
    "update": [{}],
    "create": [{}]
}
headers = {
    "Authorization": "Basic <encoded-value>",
    "Content-Type": "application/json"
}

response = requests.put(url, json=payload, 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.

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.

checkUpdateConflict
boolean
default:false

Whether to check for conflicts caused by this update.

checkCreateConflict
boolean
default:false

Whether to check for conflicts caused by creating this query rewrite.

Body

application/json
delete
string[]

One or more query rewrites to delete.

update
object[]

One or more query rewrites to update.

create
object[]

One or more new query rewrites to create.

Response

200 - application/octet-stream

OK

The response is of type string.