Forums

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

Is it possible to fetch not public snippets of the the team i belong to using BitBucket REST Api?

DavAre
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 3, 2018

I can see only the public snippet using the https://api.bitbucket.org/2.0/snippets/{team_name} endpoint

1 answer

1 accepted

0 votes
Answer accepted
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 9, 2018

 

Hi Davide!

You'll need to authenticate if you want to fetch the private snippets too. Remember that, in the case of a team, you need to authenticate as a team member with administrative access. If you are testing an application, you can use a client such as cURL together with basic authentication (username/password, or if you have two-step verification enabled, username/app password). 

Hope that helps!

Ana

Davide Arena
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 9, 2018

Thanks for the reply, I was able to find the solution to my problem.

Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 10, 2018

Glad to hear that, Davide! Have a good day,

Ana

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events