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
Path Parameters
Body ()
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
Show Source
Security
Back to Top

Response

Supported Media Types

201 Response

Keyword Redirect Group successfully created.
Body ()
Root Schema : Response
Type: object
Show Source
Back to Top

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"]}
    }
  }
}
Back to Top