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."

icon

Best answer by Aparna 5 July 2022, 15:18

View original

2 replies

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

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

Reply