Create knowledge articles through api
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hey developers
We have a requirement to create knowledge articles in ServiceNow via api call. Can someone pls help
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi @Kush Sharma
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Publishing Knowledge Articles in ServiceNow via the REST API involves interacting with specific endpoints to create, update, and publish articles.
Prerequisites:
Access to a ServiceNow instance with appropriate permissions.
API user credentials (Basic Auth or OAuth).
Steps:
Authenticate using Basic Auth or OAuth to authorize API requests.
Get Knowledge Base ID with GET /api/now/table/kb_knowledge_base to identify the target KB.
Create Draft Article using POST /api/now/table/kb_knowledge and include required fields such as short_description, text, and knowledge_base.
Update Article (if needed) using PUT /api/now/table/kb_knowledge/{sys_id} to modify content or metadata.
Publish Article by calling POST /api/now/table/kb_knowledge/{sys_id}/workflow/publish, which triggers the publishing workflow and makes the article live.
Note:
Ensure the API user has permissions to create, update, and publish articles. Always secure authentication credentials and refer to official ServiceNow REST API documentation for payload details.
Also check below thread for more reference:
Thanks & Regards
Muhammad Iftikhar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Side note, you'll want to be careful with creating knowledge articles via API. You'll want to ensure the number padding for article numbers are generating correctly to prevent KBAs with duplicate Article numbers.