PUT
/
query-rewrite
/
instances
/
{id}
Update a query rewrite
curl --request PUT \
  --url https://{FUSION HOST}/api/query-rewrite/instances/{id} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "type": "banner",
  "id": "<string>",
  "source": "<string>",
  "sourceType": "<string>",
  "createdOn": "2023-11-07T05:31:56Z",
  "updatedOn": "2023-11-07T05:31:56Z",
  "reviewer": "<string>",
  "reviewedOn": "2023-11-07T05:31:56Z",
  "review": "auto",
  "deployed": true,
  "tags": [
    "<string>"
  ],
  "is_deleted": true,
  "base_object_id_s": "<string>",
  "doc_type": "<string>",
  "description": "<string>",
  "priority": 1,
  "matching": "<string>",
  "groups": "<string>",
  "rollup": "<string>"
}'
{
  "type": "banner",
  "id": "<string>",
  "source": "<string>",
  "sourceType": "<string>",
  "createdOn": "2023-11-07T05:31:56Z",
  "updatedOn": "2023-11-07T05:31:56Z",
  "reviewer": "<string>",
  "reviewedOn": "2023-11-07T05:31:56Z",
  "review": "auto",
  "deployed": true,
  "tags": [
    "<string>"
  ],
  "is_deleted": true,
  "base_object_id_s": "<string>",
  "doc_type": "<string>",
  "description": "<string>",
  "priority": 1,
  "matching": "<string>",
  "groups": "<string>",
  "rollup": "<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

id
string
required

The query rewrite ID.

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.

Body

application/json

Response

200 - */*

OK

The response is of type object.