Updates a page configuration
put
/gsadmin/v1/{appName}/pages/{siteHome}/{page}
Request
Supported Media Types
- application/json
- application/zip
Path Parameters
- appName
-
Type:
stringRequired:trueSpecifies the name of your application, for example, Discover.- page
Type:stringRequired:trueSpecifies the name of the page.- siteHome
Type:stringRequired:trueSpecifies the name of the site.Security- basicAuth
-
Type:
basicDescription:Basic username/password authentication.
Response
Supported Media Types
- application/json
202 Response
Page updated successfully.
Body
Root Schema : Response
Type:
object- message
-
Type:
string - status
-
Type:
integer(int32)
Examples
The following example shows how to update the default page configuration:
curl -X PUT -H "Authorization:Bearer <token>" -H "Content-Type:application/json" -d@pathname/filename.json http://host:port/gsadmin/v1/cloud/pages/Default/services/guidedsearch
Request Body Example
The following example shows the new configuration of the default page:
{
"ecr:type":"page",
"contentItem":
{"@name":"GuidedSearchService",
"@type":"GuidedSearchService",
"additionalContent":
{"ruleLimit":1,
"@type":"ContentSlot",
"@contentPaths":["/content/additionalContent"]
}
}
}