Page tree
Skip to end of metadata
Go to start of metadata

Last updated: Jan 30, 2020 15:22

Use the information below when you need to upload a file to the repository via and API call.

Use Postman

  1. Create your API call as desired using the information in this article.
  2. In postman, create a new PUT request and include your newly created API call in the request.

  3. Select Body and change it to "binary" option.

  4. Select the file you would like to upload.

  5. Hit Send


Use cURL

  1. Create your API call as desired using the information in this article.
  2. After adding curl to your path, open a command prompt and navigate to the directory containing the file you want to upload.
  3. Customize the example below by replacing the name of your file and security token information. Then press enter.

    curl -X POST -T YOUR-FILE.ipa "https://yourcloud.perfectomobile.com/services/repositories/media/PRIVATE:DIRECTORY-NAME/YOUR-FILE.ipa?operation=upload&securityToken=YOUR-SECURITY-TOKEN"

    Note: You may need to use the following cURL format:

    curl -H "Content-Type: application/octet-stream" --data-binary "@YOUR-FILE.ipa" "https://yourcloud.perfectomobile.com/services/repositories/media/PRIVATE:DIRECTORY-NAME/YOUR-FILE.ipa?operation=upload&securityToken=YOUR-SECURITY-TOKEN"
Important: If you are experiencing an issue with uploading via curl over http2 protocol, the workaround is to use --http1.1 in your API call.

For more information see this article: https://github.com/curl/curl/issues/3206


Related articles