getRedirects
get
/ccadmin/v1/redirects
Get Redirects. This operation is used to get redirection rules from Oracle Commerce Cloud.
Request
There are no request parameters for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : getRedirects_response
Type:
Show Source
object
-
items(optional):
array items
The list of defined redirection rules
Nested Schema : items
Type:
Show Source
object
-
id(optional):
string
ID.
-
originUrl(optional):
string
Origin URL of the redirect.
-
siteId(optional):
string
ID of the site the redirect belongs to.
-
targetUrl(optional):
string
Destination URL of the redirect.
-
type(optional):
integer
Redirect type
Example Response (application/json)
[
{
"originUrl":"/origin_url_1",
"siteId":null,
"id":"300001",
"type":301,
"targetUrl":"/target_url_1"
},
{
"originUrl":"/origin_url_2",
"siteId":"siteUS",
"id":"400002",
"type":301,
"targetUrl":"/target_url_2"
}
]
Default Response
The error response
Root Schema : errorModel
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
errors(optional):
array errors
An optional list of errors if multiple errors were encountered
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code
-
type(optional):
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code