Create Keyword Redirects Configuration

post

/gsadmin/v1/{appName}/redirects

Create keyword redirects configuration for the application

Request

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

Response

Supported Media Types

201 Response

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

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