updateRedirect

put

/ccadmin/v1/redirects/{id}

Updates the redirection rule.

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : createRedirect_request
Type: object
Show Source
Example:
{
    "originUrl":"/origin_url_4",
    "siteId":"siteUS",
    "type":301,
    "targetUrl":"/target_url_4"
}
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : createRedirect_response
Type: object
Show Source
Example Response (application/json)
{
    "originUrl":"/origin_url_1",
    "siteId":null,
    "id":"300001",
    "type":301,
    "targetUrl":"/target_url_1"
}

Default Response

The error response. The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud: |Error Code|Description| |------------------|------------------| |183000|Unexpected error returned processing redirection rules.| |183001|Unsupported redirect type.| |183002|Incorrect origin URL.| |183003|Incorrect target URL.| |183004|Site {0} does not exist.| |183005|Redirect loop detected.| |183006|Number of redirect jumps exceeded.| |183009|Error parsing input request.| |183014|Rule with id {0} does not exist.| |183011|Origin and target URLs are the same.| |183013|Maximum number of redirection rules exceeded.| |
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top