I'm trying to upload a build artifact to my Azure DevOps pipeline using the REST API: https://learn.microsoft.com/en-us/rest/api/azure/devops/build/artifacts/create?view=azure-devops-rest-7.1
But it's not clear from the documentation how to use this method. Especially ArtifactResource entity
- what is the purpose of the "data" field there?
- what are the possible values for "type" field?
- How the body of the file will get to the server? Will the DevOps download the body from the URL specified in "Url" field?
I tried to use it, but it create some empty artifact in the pipeline, not clickable and without the content.
It would be great to have some usage examples.
Thanks