• Register

Put Complete Upload

The PUT /recordings/<RECORDING_ID>/complete_upload/ endpoint is used to tell Dubber that multi part uploading for a new recording has been completed.

Within the body of the request you must send a JSON array defining the part number and the e_tag value returned by AWS in the Put Upload call for each part.

Example request:

curl -H "Authorization: Bearer <ACCESS_TOKEN>" –X PUT 
 https://api.dubber.net/sandbox/v1/recordings/<RECORDING_ID>/complete_upload/ -H "Content-Type:application/json" -d '
 {
   "parts":[
     {
       "part_number":"1",
       "e_tag":"26a8a9c355301c288e45a91b500bfdfa"
     }
   ]
 }'

Example response:

    HTTP/1.1 201 Created
    Cache-Control: max-age=0, private, must-revalidate
    Content-Type: application/json; charset=utf-8
    Date: Wed, 23 Oct 2013 02:36:28 GMT
    ETag: "260c1177220ed2c7a85780c4e29afa8b"
    Server: nginx/1.1.19
    Status: 201 Created
    X-Mashery-Responder: prod-j-worker-ap-se-2b-02.mashery.com
    X-Rack-Cache: invalidate, pass
    X-Request-Id: 8053fb3124353deb8da7f018960068db
    X-Runtime: 3.514774
    transfer-encoding: chunked
    Connection: keep-alive

    {
      "self": "https://api.dubber.net/sandbox/v1/recordings/<RECORDING_ID>",
      "recording_url": "sbox/U1199731224/1daa2b0b-ba2d-46c9-8f9d-4a54fd49e2eb/sometest.mp3",
      "account": "https://api.dubber.net/sandbox/v1/accounts/<ACCOUNT_ID>",
      "id": "0592604015",
      "to": "61422331122",
      "to_label": "61422331122",
      "from": "61422331123",
      "call_type": "inbound",
      "recording_type": "recording",
      "channel": "61422331122",
      "status": "Pending",
      "start_time": "Thu, 22 Aug 2013 09:39:12 +0800",
      "end_time": "Thu, 22 Aug 2013 09:40:12 +0800",
      "duration": 60,
      "date_created": "Mon, 08 Aug 2016 07:10:23 +0000",
      "date_updated": "Mon, 08 Aug 2016 07:26:09 +0000"
    }

Docs Navigation