My branch name has a forward slash e.g. test/homepage-feature
I want to use the following GET request to get the last branch build. When I use that, I'm getting 404 error "message": "Build not found or access denied."
GET /api/projects/{accountName}/{projectSlug}/branch/{buildBranch}
Could you please let me know if the GET request supports a branch which contains a forward slash?
Reference https://www.appveyor.com/docs/api/projects-builds/#get-project-last-branch-build ,

#1 Posted by Feodor Fitsner Support staff on 31 Oct, 2020 02:22 AM
Have you tried
test%2Fhomepage-feature?#2 Posted by weerayuth_r on 31 Oct, 2020 02:50 AM
Yes, I have. It doesn't solve.
{
"message": "Build not found or access denied."
}
#3 Posted by Feodor Fitsner Support staff on 31 Oct, 2020 02:55 AM
OK, it works without an encode. Try this in your browser:
#4 Posted by weerayuth_r on 31 Oct, 2020 04:30 AM
Thanks Feodor.
I have double-checked. It works for me now. The reason why it didn't work when I tried first time is because I cancelled the build of my branch after it's stuck in the queue.
After I re-ran the build, the GET request is working with my branch.
weerayuth_r closed this discussion on 31 Oct, 2020 04:30 AM.