Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Fetch file from a pull request using REST API

Guy Barash February 27, 2019

Hey all. 

I fetched using the REST API (I'm using 1.0) a pull request, I've got a list of changed files. 

Is there anyway to fetch the RAW file? 

I'm seeing the "fromcontentid" and the "tocontentID" in each entry of changed file,

Could you please help? 

thx

1 answer

0 votes
Stephen Sifers
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 28, 2019

Hello Guy,

To understand a bit more about what you're trying to access via the rest API, could you please clarify a few things?

  • Are you using Bitbucket Server or Cloud?
  • What endpoints are you using with the 1.0 API?
  • Are you wanting to GET a single file or the entire pull request (Ensuring I understand so I can find the proper endpoint for you)?

We look forward to your response so we may find if there is an endpoint available in the 2.0 API regarding what you're looking for.

Regards,
Stephen Sifers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events