Forums

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

how to create a "comment" in pull request

Jin Wu
Contributor
October 17, 2018

hi there,

I want to create a new comment in pull request by POST method "/2.0/repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/comments", but i always got error "required key not provided". May i have a sample json dict when posting? especially how to set comment "id"?

i'm using bitbucket cloud, thanks! 

1 answer

1 accepted

0 votes
Answer accepted
Jin Wu
Contributor
October 18, 2018

{

    "content":

         "raw": "your comments"

}

 

no need to set "id"

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events