Create Page
Changed onCreates a new custom page for this portal. Custom pages can be used to display static content, documentation, or other information to developers. Title and Description properties may be provided in the frontmatter section of content. If you set values in both the POST request and in the frontmatter, the values in frontmatter will take precedence.
Request
- Base URL: https://global.api.konghq.com
- URL: https://global.api.konghq.com/v3/portals/{portalId}/pages
- Auth: one of:
- HTTP bearer
- HTTP bearer
- HTTP bearer
- HTTP bearer
Path parameters
ID of the portal.
Request body
Example request
{
"slug": "/my-page",
"title": "My Page",
"content": "# Welcome to My Page",
"visibility": "public",
"status": "published",
"description": "A custom page about developer portals"
}Response
Details about a page in a portal.
Example response
{
"id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
"slug": "/my-page",
"title": "My Page",
"content": "# Welcome to My Page",
"visibility": "public",
"status": "published",
"description": "A custom page about developer portals",
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z"
}Changes
- breaking
added to the
/response propertyoneOflist for the response status - warning
added the new
key_invalidenum value to the//////response property for the response status - warning
added the new
uniqueenum value to the//////response property for the response status
- breaking
- warning
added the new
400.00enum value to theresponse property for the response status - warning
added the new
403.00enum value to theresponse property for the response status - warning
added the new
404.00enum value to theresponse property for the response status
- warning