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: string
Specifies the name of your application. For example, "cloud".
-
redirectGroup: string
Specifies the redirect group name, for example, Default
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
-
ecr:createDate(optional):
string
-
ecr:lastModified(optional):
string
-
ecr:lastModifiedBy(optional):
string
-
ecr:type(optional):
string
Default Value:
redirect-group
Security
-
basicAuth: basic
Type:
basic
Description:Basic username/password authentication.
Response
Supported Media Types
- application/json
202 Response
Keyword Redirect Group successfully updated.
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", } } }