fix: Help center api doc (#7189)
This commit is contained in:
@@ -18,6 +18,16 @@ custom_attribute:
|
||||
$ref: ./resource/custom_attribute.yml
|
||||
automation_rule:
|
||||
$ref: ./resource/automation_rule.yml
|
||||
portal:
|
||||
$ref: ./resource/portal.yml
|
||||
category:
|
||||
$ref: ./resource/category.yml
|
||||
article:
|
||||
$ref: ./resource/article.yml
|
||||
category:
|
||||
$ref: ./resource/category.yml
|
||||
article:
|
||||
$ref: ./resource/article.yml
|
||||
contact:
|
||||
$ref: ./resource/contact.yml
|
||||
conversation:
|
||||
@@ -110,6 +120,14 @@ integrations_hook_update_payload:
|
||||
automation_rule_create_update_payload:
|
||||
$ref: ./request/automation_rule/create_update_payload.yml
|
||||
|
||||
# Help Center
|
||||
portal_create_update_payload:
|
||||
$ref: ./request/portal/portal_create_update_payload.yml
|
||||
category_create_update_payload:
|
||||
$ref: ./request/portal/category_create_update_payload.yml
|
||||
article_create_update_payload:
|
||||
$ref: ./request/portal/article_create_update_payload.yml
|
||||
|
||||
|
||||
## public requests
|
||||
public_contact_create_update_payload:
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
type: object
|
||||
properties:
|
||||
content:
|
||||
type: string
|
||||
description: The text content.
|
||||
meta:
|
||||
type: object
|
||||
description: Use for search
|
||||
example: { tags: ['article_name'], title: 'article title', description: 'article description' }
|
||||
position:
|
||||
type: integer
|
||||
description: article position in category
|
||||
status:
|
||||
type: integer
|
||||
example: ['draft', 'published', 'archived']
|
||||
title:
|
||||
type: string
|
||||
slug:
|
||||
type: string
|
||||
views:
|
||||
type: integer
|
||||
portal_id:
|
||||
type: integer
|
||||
account_id:
|
||||
type: integer
|
||||
author_id:
|
||||
type: integer
|
||||
category_id:
|
||||
type: integer
|
||||
folder_id:
|
||||
type: integer
|
||||
associated_article_id:
|
||||
type: integer
|
||||
description: To associate similar articles to each other, e.g to provide the link for the reference.
|
||||
@@ -0,0 +1,28 @@
|
||||
type: object
|
||||
properties:
|
||||
description:
|
||||
type: string
|
||||
description: Category description
|
||||
locale:
|
||||
type: string
|
||||
description: Category locale
|
||||
example: en/es
|
||||
name:
|
||||
type: string
|
||||
description: Category name
|
||||
slug:
|
||||
type: string
|
||||
description: Category slug
|
||||
position:
|
||||
type: integer
|
||||
description: Category position in the portal list to sort
|
||||
portal_id:
|
||||
type: integer
|
||||
account_id:
|
||||
type: integer
|
||||
associated_category_id:
|
||||
type: integer
|
||||
description: To associate similar categories to each other, e.g same category of product documentation in different languages
|
||||
parent_category_id:
|
||||
type: integer
|
||||
description: To define parent category, e.g product documentation has multiple level features in sales category or in engineering category.
|
||||
@@ -0,0 +1,36 @@
|
||||
type: object
|
||||
properties:
|
||||
archived:
|
||||
type: boolean
|
||||
description: Status to check if portal is live
|
||||
color:
|
||||
type: string
|
||||
description: Header color for help-center
|
||||
example: add color HEX string, "#fffff"
|
||||
config:
|
||||
type: object
|
||||
description: Configuration about supporting locales
|
||||
example: { allowed_locales: ['en', 'es'], default_locale: 'en' }
|
||||
custom_domain:
|
||||
type: string
|
||||
description: Custom domain to display help center.
|
||||
example: https://chatwoot.help/.
|
||||
header_text:
|
||||
type: string
|
||||
description: Help center header
|
||||
example: Handbook
|
||||
homepage_link:
|
||||
type: string
|
||||
description: link to main dashboard
|
||||
example: https://www.chatwoot.com/
|
||||
name:
|
||||
type: string
|
||||
description: Name for the portal
|
||||
slug:
|
||||
type: string
|
||||
description: Slug for the portal to display in link
|
||||
page_title:
|
||||
type: string
|
||||
description: Page title for the portal
|
||||
account_id:
|
||||
type: integer
|
||||
33
swagger/definitions/resource/article.yml
Normal file
33
swagger/definitions/resource/article.yml
Normal file
@@ -0,0 +1,33 @@
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
content:
|
||||
type: string
|
||||
description: The text content.
|
||||
meta:
|
||||
type: object
|
||||
position:
|
||||
type: integer
|
||||
status:
|
||||
type: integer
|
||||
enum: ['draft', 'published', 'archived']
|
||||
title:
|
||||
type: string
|
||||
slug:
|
||||
type: string
|
||||
views:
|
||||
type: integer
|
||||
portal_id:
|
||||
type: integer
|
||||
account_id:
|
||||
type: integer
|
||||
author_id:
|
||||
type: integer
|
||||
category_id:
|
||||
type: integer
|
||||
folder_id:
|
||||
type: integer
|
||||
associated_article_id:
|
||||
type: integer
|
||||
description: To associate similar articles to each other, e.g to provide the link for the reference.
|
||||
25
swagger/definitions/resource/category.yml
Normal file
25
swagger/definitions/resource/category.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
description:
|
||||
type: string
|
||||
description: The text content.
|
||||
locale:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
slug:
|
||||
type: string
|
||||
position:
|
||||
type: integer
|
||||
portal_id:
|
||||
type: integer
|
||||
account_id:
|
||||
type: integer
|
||||
associated_category_id:
|
||||
type: integer
|
||||
description: To associate similar categories to each other, e.g same category of product documentation in different languages
|
||||
parent_category_id:
|
||||
type: integer
|
||||
description: To define parent category, e.g product documentation has multiple level features in sales category or in engineering category.
|
||||
34
swagger/definitions/resource/portal.yml
Normal file
34
swagger/definitions/resource/portal.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
archived:
|
||||
type: boolean
|
||||
color:
|
||||
type: string
|
||||
config:
|
||||
type: object
|
||||
description: Save information about locales, allowed_locales and default portal/help-center locale
|
||||
custom_domain:
|
||||
type: string
|
||||
header_text:
|
||||
type: string
|
||||
description: The text content.
|
||||
homepage_link:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
slug:
|
||||
type: string
|
||||
page_title:
|
||||
type: string
|
||||
account_id:
|
||||
type: integer
|
||||
categories:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/definitions/category'
|
||||
articles:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/definitions/article'
|
||||
Reference in New Issue
Block a user