POST
/
experience-manager
/
query-rewrites
Update a query rewrite rule
curl --request POST \
  --url https://{FUSION HOST}/api/experience-manager/query-rewrites \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "base_object_id_s": "<string>",
  "createdOn": "2023-11-07T05:31:56Z",
  "deployed": true,
  "id": "<string>",
  "is_deleted": true,
  "review": "approved",
  "reviewedOn": "2023-11-07T05:31:56Z",
  "reviewer": "<string>",
  "source": "<string>",
  "sourceType": "<string>",
  "tags": [
    "<string>"
  ],
  "updatedOn": "2023-11-07T05:31:56Z"
}'
{}

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

commitWithin
string

Time in milliseconds within which the update should be committed.

context
string
required

Application context for the query rewrite request.

staging
boolean
required

Indicates whether the query rewrite should be applied in a staging environment.

version
integer

Optional version number of the query rewrite update.

Body

application/json

Details of the query rewrite rule to be created or updated.

Represents a request to create or update a query rewrite rule.

base_object_id_s
string

The unique identifier of the base object associated with this query rewrite.

createdOn
string<date-time>

Timestamp indicating when the query rewrite was created.

deployed
boolean

Indicates whether the query rewrite rule is currently deployed.

id
string

Unique identifier for the query rewrite.

is_deleted
boolean

Indicates whether the query rewrite has been deleted.

review
enum<string>

The current review status of the query rewrite.

Available options:
approved,
auto,
denied,
pending,
supplied
reviewedOn
string<date-time>

Timestamp indicating when the query rewrite was last reviewed.

reviewer
string

Identifier of the user who reviewed the query rewrite.

source
string

The source from which the query rewrite originated.

sourceType
string

Type of source associated with the query rewrite.

tags
string[]

A list of tags associated with the query rewrite.

updatedOn
string<date-time>

Timestamp indicating when the query rewrite was last updated.

Response

Query rewrite rule successfully updated.

The response is of type object.