Request

Response

    AppPackages
    GET

    AppPackages/Operations.GetUploadUrl

    ../../../../_images/v2_retired2.png

    Requests a pre-signed URL for uploading a zip file that contains the binaries for this AppPackage.

    The zip file must be formatted in autoloader format used by the Autodesk Exchange appstore. The URL obtained should be used to issue an HTTP PUT operation with the zip contents as the request body.

    Resource Information

    Method and URI
    GET
    https://developer.api.autodesk.com/autocad.io/us-east/v2/AppPackages/Operations.GetUploadUrl
    Authentication Context
    app only
    Required OAuth Scopes
    code:all
    Data Format
    JSON

    Request

    Headers

    Authorization*
    string
    Must be Bearer <token>, where <token> is obtained via OAuth
    * Required

    Response

    HTTP Status Code Summary

    200
    OK
    Request has succeeded
    400
    Bad Request
    Request could not be understood by the server due to malformed syntax
    401
    Unauthorized
    Access token is invalid
    404
    Not Found
    Resource cannot be found
    429
    Too Many Requests
    Rate limit exceeded; wait some time before retrying
    500
    Internal Server Error
    An unexpected error occurred on the server

    Response

    Body Structure (200)

    value
    string
    Upload URL

    Example

    Successful retrieval of an upload url (200)

    Request

    curl -v 'https://developer.api.autodesk.com/autocad.io/us-east/v2/AppPackages/Operations.GetUploadUrl' \
      -X 'GET' \
      -H 'Content-Type: application/json' \
      -H 'Authorization: Bearer Pn43z2DJnsYuaAxI4R2iT84b3UPy'
    

    Response

    HTTP/1.1 200 OK
    Cache-Control: no-cache
    Content-Type: application/json; charset=utf-8
    Date: Mon, 12 May 2014 21:29:13 GMT
    Expires: -1
    Pragma: no-cache
    Server: Microsoft-IIS/8.0
    X-AspNet-Version: 4.0.30319
    X-Powered-By: ASP.NET
    Content-Length: 1036
    Connection: keep-alive
    
    {
      "@odata.context":"https://developer.api.autodesk.com/autocad.io/us-east/v2/$metadata#Edm.String",
      "value":"https://acadio.s3.amazonaws.com/aces-apppackages/201e3370-4e58-4396-8996-280bf52cc924/1600fce3-424b-4bf5-91ca-faf76361f398?AWSAccessKeyId=ASIAJDD5PQCOQJ6COFSA&Expires=1465326334&x-amz-security-token=FQoDYXdzEML%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaDOXGmmoUTrNUQj6nAiKZA4nfp6klbbH%2FLo5Jw8ehojQ%2BCs2Z9bQ5JYI7bS%2F5n7k5YpYMLKLNauk5pMnZZlJWpwOW0KjYXC%2FeZwboIidNRh1TPtxCJX3QgSmFxsKllUdWC4mglD5OoiN%2B18OIiRFppiQZmPBtFRYcq6ePK40aGBMv82gg4VqFkCscQ2sMtDoga9rrJ7YG3MfmBSVtYLeDPx%2FATco0hgU2A2jtyC2MA5sbuyVzbSk2RVBuf%2B0bH1Q5%2BeqBf80a2%2BoZEaKs95UjTmghNRMDFABScjAZ0W4S59FmKpcckLmqAhgrACwZgL0jeOxN%2BWi72NSitIuj%2Fjen4oRfBmIGoAoz2bIMtMn5RN%2BA2rjuwTAxLLB21RaomMfsMCIc0qaub%2BQy6BK34qM28qbJqxNLu2jAvEfLjtyu5tbzdimq8wvNxyAhctADoqpWFjZ7CIZz3V05VwehnrKI0QlIk67zwb7tw82PKnl0MRhGUDSIFtZdEyEPkXwMkzFcJEOlSR1c3%2B5yA5Nhd%2FZiqp1V59wN2ULocif8SCEvx3ta0ywV%2Fn%2Fowd4o04HcugU%3D&Signature=5dOQB7vQHYWp3o%2BCDD74SIw9Qho%3D"
    }
    
    Show More