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

Response

Supported Media Types

202 Response

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

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