Create Knowledge Base Page
CUSTOM-ENDPOINT
POST https://api.speakap.io/networks/:eid/pages/
CUSTOM-REQUEST
- URI: /networks/{networkEID}/pages/
- Method: POST
- Content-Type: application/json
- Authentication: OAuth 2.0
Parameters
Name | Type | Description |
---|
networkEID | EID | Network EID |
Request Body
Supply a complete knowledge base page resource in the request body.
Name | Type | Description |
---|
title | string | Title of page. It's a required field. |
body | html | The body of page. It's a required field. |
icon | string | The name of the icon of the page. It's a required field. |
status | string | The status of the page. Published or draft. It's a required field. |
pageType | string | The type of the page. It must be knowledge_base. It's a required field. |
knowledgeBaseCategory | array | A list of categories. Although it's a list, should be a list of a single element. It's a required field |
recipients | array | List of recipient objects (groups or network). It's a required field |
recipients[i].EID | EID | EID of the recipient (group or network) |
recipients[i].type | string | group or network |
coverImage | messageIdentity | A cover image for the page. It's optional. |
coverImage.EID | EID | EID of the uploaded file |
coverImage.type | string | message |
Example (knowledge base page)
{
"body": "The body here",
"icon": "car",
"recipients": [
{
"EID": "{{NetworkEID}}",
"type": "network"
}
],
"knowledgeBaseCategories": ["{{CategoryEID}}"],
"title": "Auto",
"status": "published",
"pageType": "knowledge_base",
"coverImage": {
"EID": "{{FileEID}}",
"type": "message"
}
}
Response