Update Keyword Redirect Group.

put

/gsadmin/v1/{appName}/redirects/{redirectGroup}

Updates the given keyword redirect group configuration of the specified application's redirects.

Request

Supported Media Types
  • application/json
  • application/zip
Path Parameters
appName
Type: string
Required: true
Specifies the name of your application, for example, Discover.
redirectGroup
Type: string
Required: true
Specifies the redirect group name, for example, Default
Body Parameter
The request body represents the updated keyword redirect group configuration.
Root Schema : RedirectGroup
Type: object
Represents a Redirect Group configuration. Child Nodes represent Redirect Entry configuration confirming to RedirectEntry JSON schema
Security
basicAuth
Type: basic
Description: Basic username/password authentication.

Response

Supported Media Types
  • application/json
202 Response
Keyword Redirect Group successfully updated.
Body
Root Schema : Response
Type: object

Examples

The following example shows how to modify the default redirect-group object 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/Default

Request Body Example

The following example shows a new redirect-entry object named id3 is added to the default redirect-group object:

{
  "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"]}
    }
  }
  "id3": {
    "ecr:type": "redirect-entry",
    "searchTerms": "kodak",
    "matchmode": "MATCHEXACT",
    "url": "/browse/Kodak/_/N-1z141wh",
    }
  }
}