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: string
Specifies the name of your application. For example, "cloud".
The request body represents the updated keyword redirects configuration.
Root Schema : Redirects
Type:
objectRepresents an application's Keyword Redirects configuration. Child Nodes represent Redirect Group configuration confirming to RedirectGroup JSON schema
Show Source
Security
-
basicAuth: basic
Type:
basicDescription:Basic username/password authentication.
Response
Supported Media Types
- application/json
202 Response
Keyword Redirects successfully updated.
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"
}
}
}