Skip to content

Codemagic API Returning Deleted GitHub Branches After Deletion #2762

Closed Answered by Imgkl
Imgkl asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @dtrdic,

Thanks for pointing this out. Though I was in need of API solution where we refresh and get the updated git branches through API. I was able to get the endpoint through the above mentioned.

For anyone who is looking for a solution for the same issue. Here is the cURL:

curl --location --request POST 'https://api.codemagic.io/apps/${APP_ID}/branches' \
--header 'Content-Type: application/json' \
--header 'x-auth-token: <API-TOKEN>'

Replace the APP_ID and API_TOKEN with the appropriate values, then you are good to go.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Imgkl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
misc for misc queries dt
2 participants