Create article
Changed onCreates a new article under the specified knowledge base and language in a draft state. Requires knowledgeBaseId, title, and language; optionally accepts subtitle, body, categoryId, path, metaDescription, tagIds, accessType, accessGroupIds, and translationOfId (to link this article as a translation of an existing one). Returns the created article, including its assigned ID and public URL.
Request
- Base URL: https://api.hubapi.com
- URL: https://api.hubapi.com/cms/knowledge-base/2027-03-beta/articles
- Auth: one of:
- OAuth 2 (authorization code, authorization URL https://app.hubspot.com/oauth/authorize, token URL https://api.hubapi.com/oauth/v1/token, scopes: cms.knowledge_base.articles.publish)
- OAuth 2 (authorization code, authorization URL https://app.hubspot.com/oauth/authorize, token URL https://api.hubapi.com/oauth/v1/token, scopes: cms.knowledge_base.articles.write)
- OAuth 2 (authorization code, authorization URL https://app.hubspot.com/oauth/authorize, token URL https://api.hubapi.com/oauth/v1/token, scopes: cms.knowledge_base.settings.write)
Request body
Example request
{
"accessType": "{ \"accessType\": \"ACCESS_GROUP_MEMBERSHIP\" }",
"categoryId": "{ \"categoryId\": \"12345678\" }",
"knowledgeBaseId": "{ \"knowledgeBaseId\": \"23456789\" }",
"language": "{ \"language\": \"en\" }",
"path": "{ \"path\": \"how-to-reset-your-password\" }",
"subtitle": "{ \"subtitle\": \"Step-by-step instructions\" }",
"title": "{ \"title\": \"How to reset your password\" }",
"translationOfId": "{ \"translationOfId\": \"98765432\" }"
}Response
successful operation
Changes
- ○
the security scope
cms.knowledge_base.articles.publishwas added to the endpoint's security schemeoauth2 - ○
the security scope
cms.knowledge_base.settings.writewas removed from the endpoint's security schemeoauth2 - ○
the request property
became optional - ○
the request property
became optional
- ○
- ○
the security scope
cms.knowledge_base.articles.publishwas added to the endpoint's security schemeoauth2 - ○
the security scope
cms.knowledge_base.settings.writewas removed from the endpoint's security schemeoauth2
- ○