Skip to main content
Answered

Can't publish article from the REST API if it current state is draft and ever published before


I use Rest api to create/update an article. I get an error when update it to "published" if the state ever get "published" before. To reproduce this case Please follow this steps:

 

  1. Create a draft article using REST API, it run well.
  2. Then I update the article by set state to "published" - worked
  3. Reupdate by set state to "draft" - worked
  4. Reupdate by set state to "published" again - don't work
curl --location --request PUT 'https://api.intercom.io/articles/6349370#39; \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer dG9rOmMzMTU4YzZDZiMWMyYToxOjA=' \
--data-raw '{ "state": "published" }'

The error I get is "parameter_invalid: This ruleset link is already activated."

Best answer by Aparna

Hey @user1330​  We have an open bug issue on this. Will keep you posted once the issue is resolved.

View original
Did this topic help you find an answer to your question?

2 replies

  • Employee
  • 328 replies
  • Answer
  • July 5, 2022

Hey @user1330​  We have an open bug issue on this. Will keep you posted once the issue is resolved.


  • Employee
  • 328 replies
  • July 12, 2022

@user1330​ , still there isn't any update on the issue


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings