Getting not found exception in Artifacts api

Rifat Erdem Sahin's Avatar

Rifat Erdem Sahin

26 Nov, 2014 04:05 PM

I am getting 404 error when used by put request.

  1. Support Staff 1 Posted by Feodor Fitsner on 26 Nov, 2014 06:06 PM

    Feodor Fitsner's Avatar

    There is no such API endpoint. Artifact can be uploaded from build worker only.
    To upload artifact from build worker you should:

    1) Add artifact and obtain temporary upload URL.

    POST %APPVEYOR_API_URL%/api/artifacts

    where %APPVEYOR_API_URL% is URL of build worker API stored in environment variable, so you can grab it with Environment.GetEnvironmentVariable("APPVEYOR_API_URL")


      "path": "<full-local-path-to-artifact>",
      "fileName": "<path-in-cloud-storage>",
      "name": "<artifact-deployment-name>"

    You'll take JSON string in the response which is upload URL.

    Use WebClient class to upload artifact to that URL:

    using (var wc = new WebClient())
      wc.UploadFile(uploadUrl, path);
  2. 2 Posted by Rifat Erdem Sah... on 27 Nov, 2014 08:58 AM

    Rifat Erdem Sahin's Avatar

    I am having a hard time understanding the example. could you provide a detailed example please ?

    Thank you

    Keep up the great work

  3. Rifat Erdem Sahin closed this discussion on 26 Dec, 2014 01:35 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac