Finish Upload Session
Changed onFinish Upload Session. Only call this endpoint after all File parts have been uploaded to Upload part of File. Note that the base URL is upload.apideck.com instead of unify.apideck.com. For more information on uploads, refer to the file upload guide.
Request
- Base URL: https://upload.apideck.com
- URL: https://upload.apideck.com/file-storage/upload-sessions/{id}/finish
- Auth: API key in header Authorization
Path parameters
ID of the record you are acting upon.
Query parameters
Include raw response. Mostly used for debugging purposes
Headers
ID of the consumer which you want to get or push data from
The ID of your Unify application
Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
The RFC3230 message digest of the uploaded part. Only required for the Box connector. More information on the Box API docs here
Request body
Response
File
Example response
{
"status_code": 200,
"status": "OK",
"service": "google-drive",
"resource": "files",
"operation": "one",
"data": {
"id": "12345",
"downstream_id": "12345",
"name": "sample.jpg",
"description": "A sample image",
"type": "file",
"path": "/Documents/sample.jpg",
"mime_type": "image/jpeg",
"size": 1810673,
"owner": {
"id": "12345",
"email": "hello@apideck.com",
"name": "Elon Musk"
},
"parent_folders": [
{
"id": "12345",
"name": "Personal"
}
],
"export_formats": [
"application/pdf",
"application/vnd.oasis.opendocument.presentation",
"text/plain"
],
"updated_by": "12345",
"created_by": "12345",
"updated_at": "2020-09-30T07:43:32.000Z",
"created_at": "2020-09-30T07:43:32.000Z"
},
"meta": {
"items_on_page": 50,
"cursors": {
"previous": "em9oby1jcm06OnBhZ2U6OjE=",
"current": "em9oby1jcm06OnBhZ2U6OjI=",
"next": "em9oby1jcm06OnBhZ2U6OjM="
},
"total_count": 1,
"warnings": [
{
"type": "downstream_request_failed",
"status_code": 429,
"operation": "getManager"
}
]
}
}Changes
- info
added the optional property
to the response with the status
- info
- warning
removed the optional property
from the response with the status
- warning