Information

Requires Authentication?Yes
Require admin rightsYes
Response Formatsjson
xml
HTTP expected codeHTTP/1.1 100 Continue
HTTP MethodsPOST
SinceUForge 1.0

Updated on Apr 30, 2012

projectPkgBinary_upload

POST /distributions/{id}/projects/{pid}/pkgs/{pkgid}/bin/{fileName}

Uploads a binary file into the package container object for the specified Project.

Resource URL

/distributions/{id}/projects/{pid}/pkgs/{pkgid}/bin/{fileName}

Parameters

id
required
the id of the operating system
pid
required
the id of the project
pkgid
required
the id of the package
fileName
required
the binary file to upload

Example Request

curl 'http://10.0.0.20:9090/ufws-3.0/distributions/57/projects/13327/pkgs/409150/bin/myFileName?apiKey=Qk-RWL48LjU72q5o0-n-n8Ukz4f-s8MnSM1ntpnRySuEcoc0ZHui2yzx5H8zhWwF7qqeT5FFNoj40Hjy7-&signature=%2FpFPu31J%2FItR1jKPH1nmUeZ7AvU%3D' -D /tmp/headers -H "Content-Type: application/xml" -H "Accept: application/xml" -X POST --data-binary "@resources/lynx-2.8.5-11.i386.rpm" | tidy -xml -indent -quiet

Example Request Body

resources/lynx-2.8.5-11.i386.rpm

Example Response Body

Response type: Pkg

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<package>
  <arch>i386</arch>
  <binaryUploaded>true</binaryUploaded>
  <binaryUri>
  distributions/57/projects/13327/pkgs/409150/bin</binaryUri>
  <fullName>lynx-2.8.5-11.i386.rpm</fullName>
  <isDefault>false</isDefault>
  <isLanguage>false</isLanguage>
  <lastModified>2012-04-30T11:09:16+02:00</lastModified>
  <md5sum>(none)</md5sum>
  <name>lynx</name>
  <origName>lynx-2.8.5-11.i386.rpm</origName>
  <parentUri>distributions/57/projects/13327</parentUri>
  <release>11</release>
  <size>1520955</size>
  <status>
    <bytesLoaded>1520955</bytesLoaded>
    <bytesTotal>1520955</bytesTotal>
    <cancelled>false</cancelled>
    <complete>true</complete>
    <created>2012-04-30T11:09:08+02:00</created>
    <dbId>3216</dbId>
    <detailedError>false</detailedError>
    <detailedErrorMsg></detailedErrorMsg>
    <error>false</error>
    <errorMessage></errorMessage>
    <lastModified>2012-04-30T11:09:16+02:00</lastModified>
    <message>Done</message>
    <parentUri>
    distributions/57/projects/13327/pkgs/409150</parentUri>
    <percentage>100</percentage>
    <published>false</published>
    <uri>distributions/57/projects/13327/pkgs/409150/status</uri>
  </status>
  <type>application/x-rpm</type>
  <uri>distributions/57/projects/13327/pkgs/409150</uri>
  <version>2.8.5</version>
</package>