How to update the state of a Knowledge Article using REST API (without Scripted REST API)?

ganeshkale
Tera Contributor

Hi Community,

I'm trying to update the state of a Knowledge Article using the out-of-the-box REST API in ServiceNow — specifically via the PATCH/PUT method on the kb_knowledge table. While the request executes without error, the state field is not getting updated.

Upon checking, I found that the state field is marked as read-only in the system.

Here are my specific questions:

Is it possible to update read-only fields like state using the standard Table API?

Can we trigger a UI Action (such as “Publish" to move stat  for Review”) directly through the REST API?

If not, what is the recommended approach to programmatically move a Knowledge Article to the "Review" state using REST API?

How can we accomplish this without using a Scripted REST API? I’m looking for solutions using only the out-of-the-box capabilities like Table API, Import Set API, or others.



If anyone has done this before or knows a reliable method, I’d really appreciate your insights or examples.

Thanks in advance!

4 REPLIES 4

palanikumar
Mega Sage

You can try updating using PUT or Patch in  OOTB table api

https://yourinstance.service-now.com/api/now/table/kb_knowledge
Thank you,
Palani

I am trying with same API -
https://{instance}.service-now.com/api/now/table/kb_knowledge/{recid}

.

ganeshkale
Tera Contributor

I am trying with the same API endpoint-
https://{instance}.service-now.com/api/now/table/kb_knowledge/{recid}