Rest API endpoint for deployment details
I tried to call to above api endpoint using my workspace id but it returned
{"type": "error", "error": {"message": "workspace"}}
Could someone please help me to resolve this issue?
Basically I want to get deployment details of the pipeline through API endpoint for my deployment rate report.
My GET url : https://api.bitbucket.org/2.0/repositories/{workspace id}/{repo_slug}/deployments/
Hi Saman,
Is your workspace id the same as your username? If not, could you try using your username instead of your workspace id in the url and let me know if that makes any difference?
Hi Steven,
Thanks for the reply.
I tried with my username instead of my workspace id, but it returned same error.
This is the url I have tried.
/2.0/repositories/{workspace}/{repo_slug}/deployments/
If my workspace is "saman"and repo_slug is "project1.git" then url will be
/2.0/repositories/saman/project1.git/deployments/
Is it correct?
It is not clearly mention in the document too. It says path parameters are username and repo_slug. and description of username is "The account."
I tried deployment endpoint with the sample project of the bitbucket API documentation and it worked as expected.
https://api.bitbucket.org/2.0/repositories/jeroendr/meat-demo2/deployments/
Could you please help me to resolve this issue?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you see your deployments from the "deployments" page in the Bitbucket UI, or does that also fail? The UI uses the same endpoint that you're trying to use, so if the UI works then you should be able to find the correct URL by looking at the request that the UI makes (eg. using your browser's "dev tools" window).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Steven,
I found the issue, when analyzing the api requests of UI.
I used repo_slug as "project1.git", but it should be passed as "project1".
Thank you very much for your support.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.