Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible with the confluence API?

青山 明
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
February 16, 2022

I want to write a comment on the confluence page with the confluence API, is it possible?

2 answers

1 accepted

1 vote
Answer accepted
Fabio Racobaldo _Catworkx_
Community Champion
February 16, 2022

Hi @青山 明 ,

yes, you can. Please use the following Rest API Create content  https://developer.atlassian.com/cloud/confluence/rest/api-group-content/#api-wiki-rest-api-content-post with type "comment".

 

Hope this helps,

Fabio

青山 明
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
February 16, 2022

thank you for your reply. Is this possible with existing pages? It's not about adding comments to a new page.

Fabio Racobaldo _Catworkx_
Community Champion
February 16, 2022

It should be possible. Please add id of your existing page.

Regards,

Fabio

青山 明
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
February 16, 2022

Do you have any helpful examples?

Fabio Racobaldo _Catworkx_
Community Champion
February 16, 2022

examples are available on the linked Rest API url.

青山 明
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
February 16, 2022

thank you. I managed to solve it.

Fabio Racobaldo _Catworkx_
Community Champion
February 16, 2022

you're welcome @青山 明 . if it works, please mark my answer as accepted.

0 votes
Pramodh M
Community Champion
February 16, 2022

Hi @青山 明 

Can you add the approach on how you went ahead and added the comment to a page?

I found a helpful way here

https://developer.atlassian.com/cloud/confluence/rest-api-examples/#add-a-comment-to-a-page--python-

Thanks,
Pramodh

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events