[Artifacts API] Got Method Not Allowed when Create a public download URL #1418
-
Hi, I already followed the docs : https://docs.codemagic.io/rest-api/artifacts/ and tested in Postman and Terminal with curl but it keeps returning Method Not Allowed :
I already changed the method to GET, PUT and other methods but the error keep showing. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hi @arbyazra123, it is because you are trying to set a date to a private link. You will need to do it with a publicly available artefact link. It would look like this:
|
Beta Was this translation helpful? Give feedback.
-
Hi, finally i can make that public url. That's my fault, apparently it can be obtained from copying download link in codemagic with additional /public-url and x-auth-token in the headers. |
Beta Was this translation helpful? Give feedback.
Hi @arbyazra123, it is because you are trying to set a date to a private link. You will need to do it with a publicly available artefact link. It would look like this:
https://api.codemagic.io/artifacts/securepath/myapp.ipa/public-url