All Products
Search
Document Center

Microservices Engine:UpdateGatewayRouteHTTPRewrite

Last Updated:Aug 17, 2022

Modifies the rewrite policy of a route.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
IdLongNo

The ID of the route.

238
GatewayIdLongNo

The ID of the gateway.

430
HttpRewriteJSONstringNo

The information about the rewrite policy. The JSON format is supported.

{"HTTPRewrite":"{\"pathType\":\"PRE\",\"path\":\"/\",\"status\":\"on\"}"}
GatewayUniqueIdstringNo

The unique ID of the gateway.

gw-90392d768a3847a7b804c505254da96d
AcceptLanguagestringNo

The language of the response. Valid values:

  • zh: Chinese
  • en: English
zh

Response parameters

ParameterTypeDescriptionExample
object

The data structure.

RequestIdstring

The ID of the request.

AE60DA1E-B234-5105-897B-68372453A5A2
HttpStatusCodeinteger

The HTTP status code returned.

200
Messagestring

The message returned.

The request is processed successfully.
Codeinteger

The status code returned.

200
Successboolean

Indicates whether the request is successful. Valid values:

  • true: The request is successful.
  • false: The request fails.
true
DataLong

The returned data.

411

Error codes

For a list of error codes, visit the API error center.