Create Keyword Redirects Configuration
post
/gsadmin/v1/{appName}/redirects
Create keyword redirects configuration for the application
Request
Supported Media Types
- application/json
- application/zip
Path Parameters
-
appName(required): string
Specifies the name of your application. For example, "cloud".
The keyword redirects to be created for the given application.
Root Schema : Redirects
Type:
objectRepresents an application's Keyword Redirects configuration. Child Nodes represent Redirect Group configuration confirming to RedirectGroup JSON schema
Show Source
-
ecr:createDate:
string
-
ecr:lastModified:
string
-
ecr:lastModifiedBy:
string
-
ecr:type:
string
Default Value:
redirects
Security
-
basicAuth: basic
Type:
basicDescription:Basic username/password authentication.
Response
Supported Media Types
- application/json
201 Response
Redirects successfully created.
Examples
The following example shows how to configure the redirects object using cURL:
curl -X POST -H "Authorization:Bearer access_token" -H "Content-Type:application/json" -d@pathname/filename.json http://host:port/gsadmin/v1/cloud/redirects
Request Body Example
The following example shows how to configure the redirects object with two redirect-group objects and a redirect-entry object within each redirect-group object:
{
"ecr:type": "redirects",
"Default": {
"ecr:type": "redirect-group",
"id1": {
"ecr:type": "redirect-entry",
"searchTerms": "fujifilm",
"matchmode": "MATCHEXACT",
"url": "/browse/Fujifilm/_/N-1z141wh"
}
},
"Products": {
"ecr:type": "redirect-group",
"id3" : {
"ecr:type": "redirect-entry",
"searchTerms": "canon",
"matchmode": "MATCHEXACT",
"url": "/browse/Canon/_/N-1z141ya"
}
}
}