Update Keyword Redirects configuration

put

/gsadmin/v1/{appName}/redirects

Updates keyword redirects configuration of the specified 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 request body represents the updated keyword redirects configuration.
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
202 Response
Keyword Redirects successfully updated.
Body
Root Schema : Response
Type: object

Examples

The following example shows how to replace all existing configuration of the redirects object and its child objects using cURL:

curl -X PUT -H "Authorization:Bearer access_token" -H "Content-Type:application/json" -d@pathname/filename.json http://host:port/gsadmin/v1/cloud/redirects

Request Body Example

For example, you can import the following JSON content to replace all existing configuration of the redirects object and its child objects:

{
  "ecr:type": "redirects",
  "Default": {
    "ecr:type": "redirect-group",
    "id1": {
      "ecr:type": "redirect-entry",
      "searchTerms": "kodak",
      "matchmode": "MATCHEXACT",
      "url": "/browse/kodak/_/N-1z141wh"
     }
  },
  "Products": {
    "ecr:type": "redirect-group",
    "id3" : {
      "ecr:type": "redirect-entry",
      "searchTerms": "fujifilm",
      "matchmode": "MATCHEXACT",
      "url": "/browse/fujifilm/_/N-1z1763wa"
    }
  }
}