curl --request POST \
--url https://{FUSION HOST}/api/query-rewrite/instances \
--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>"
}
The request is a JSON body defining the new query rewrite.
curl --request POST \
--url https://{FUSION HOST}/api/query-rewrite/instances \
--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>"
}
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
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.
OK
The response is of type object
.
Was this page helpful?