Help Center: Add a new article
gapify_add_articleAdd a new article to your help center portal. Supply content, title, meta details, and desired status (draft or published) for instant article creation.
Instructions
Add an article to a help center portal [Help Center]
POST /api/v1/accounts/{account_id}/portals/{portal_id}/articles
Auth: User API key (header api-access-token).
Body fields: content, meta, position, status, title, slug, views, portal_id, account_id, author_id, category_id, folder_id, associated_article_id. Extra fields can be passed via extra_body.
Text values may be written in Persian (Farsi) or any other language and are sent unchanged; IDs, numbers and phone numbers may use Persian or Arabic-Indic digits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | No | Use for search Example: {"tags":["article_name"],"title":"article title","description":"article description"} | |
| slug | No | URL slug of the article (ASCII letters, digits and dashes). | |
| title | No | Title of the article. | |
| views | No | Initial view count of the article. Example: 0 | |
| status | No | Publication status of the article. One of: `draft`, `published`, `archived`. | |
| content | No | The text content. | |
| position | No | article position in category Example: 0 | |
| author_id | No | Numeric ID of the user who authored the article. Example: 1 | |
| folder_id | No | Numeric ID of the help center folder. Example: 1 | |
| portal_id | Yes | portal_id (string) | |
| account_id | Yes | The numeric ID of the account | |
| extra_body | No | Additional JSON body fields to merge into the request (for keys not listed above). | |
| category_id | No | Numeric ID of the help center category. Example: 1 | |
| associated_article_id | No | To associate similar articles to each other, e.g to provide the link for the reference. Example: 1 |