Creates a page configuration
post
/gsadmin/v1/{appName}/pages/{siteHome}/{page}
Request
Supported Media Types
- application/json
- application/zip
Path Parameters
-
appName: string
Specifies the name of your application. For example, "cloud".
-
page: string
Specifies the name of the page.
-
siteHome: string
Specifies the name of the site.
Security
-
basicAuth: basic
Type:
basic
Description:Basic username/password authentication.
Response
Supported Media Types
- application/json
201 Response
Page created successfully.
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": "Guided Search Service", "@type": "GuidedSearchService", "additionalContent": { "ruleLimit": 2, "@type": "ContentSlot", "@contentPaths": ["/content/additionalContent"] } } }