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: string
Required: true
Specifies the name of your application, for example, Discover.
redirectGroup
Type: string
Required: true
Specifies the redirect group name, for example, Default.
Body Parameter
The keyword redirect group to be created.
Root Schema : RedirectGroup
Type: object
Represents a Redirect Group configuration. Child Nodes represent Redirect Entry configuration confirming to RedirectEntry JSON schema
Security
basicAuth
Type: basic
Description: Basic username/password authentication.

Response

Supported Media Types
  • application/json
201 Response
Keyword Redirect Group successfully created.
Body
Root Schema : Response
Type: object

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"]}
    }
  }
}