Update Keyword Redirects configuration

put

/gsadmin/v1/{appName}/redirects

Updates keyword redirects configuration of the specified application.

Request

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

Response

Supported Media Types

202 Response

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

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