Creates a page configuration
post
/gsadmin/v1/{appName}/pages/{siteHome}/{page}
Request
Supported Media Types
- application/json
- application/zip
Path Parameters
- appName
-
Type:
string
Required:true
Specifies the name of your application, for example, Discover.- page
Type:string
Required:true
Specifies the name of the page.- siteHome
Type:string
Required:true
Specifies the name of the site.Security- basicAuth
-
Type:
basic
Description:Basic username/password authentication.
Response
Supported Media Types
- application/json
201 Response
Page created successfully.
Body
Root Schema : Response
Type:
object
- message
-
Type:
string
- status
-
Type:
integer
(int32
)
Examples
The following example shows how to create the default page definition:
curl -X POST -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":2, "@type":"ContentSlot", "@contentPaths":["/content/additionalContent"] } } }