Create Keyword Redirect Group.
post
/gsadmin/v1/{appName}/redirects/{redirectGroup}
Create a new keyword redirect group configuration of the specified application's redirects
Request
Supported Media Types
- application/json
- application/zip
Path Parameters
- appName
-
Type:
stringRequired:trueSpecifies the name of your application, for example, Discover.- redirectGroup
Type:stringRequired:trueSpecifies the redirect group name, for example, Default.
Body Parameter
The keyword redirect group to be created.
Root Schema : RedirectGroup
Type:
objectRepresents a Redirect Group configuration. Child Nodes represent Redirect Entry configuration confirming to RedirectEntry JSON schema
- ecr:createDate
-
Type:
string - ecr:lastModified
-
Type:
string - ecr:lastModifiedBy
-
Type:
string - ecr:type
-
Type:
stringDefault Value:redirect-group
Security
- basicAuth
-
Type:
basicDescription:Basic username/password authentication.
Response
Supported Media Types
- application/json
201 Response
Keyword Redirect Group successfully created.
Body
Root Schema : Response
Type:
object- message
-
Type:
string - status
-
Type:
integer(int32)
Examples
The following example shows how to configure a redirect-group object named default_group 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/default_group
Request Body Example
The following example shows how to configure the redirect-group object containing two redirect-entry objects, id1 and id2:
{
"ecr:type": "redirect-group",
"id1": {
"ecr:type": "redirect-entry",
"searchTerms": "canon",
"matchmode": "MATCHEXACT",
"url": "/browse/Canon/_/N-1z141ya",
"searchTermExpansions": {
"0": {"canon": ["canon"]}
}
},
"id2": {
"ecr:type": "redirect-entry",
"searchTerms": "contacts",
"matchmode": "MATCHEXACT",
"url": "/contact-us",
"searchTermExpansions": {
"0": {"contacts": ["contact"]}
}
}
}