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
Type: string
Required: true
Specifies the name of your application, for example, Discover.
Body Parameter
The keyword redirects to be created for the given application.
Root Schema : Redirects
Type: object
Represents an application's Keyword Redirects configuration. Child Nodes represent Redirect Group configuration confirming to RedirectGroup JSON schema
Security
basicAuth
Type: basic
Description: Basic username/password authentication.

Response

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

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