Upload Sessions
Finish Upload Session
Finish 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.
post/file-storage/upload-sessions/{id}/finish
Path parameters
idstring required
ID of the record you are acting upon.
Query parameters
rawboolean
Include raw response. Mostly used for debugging purposes
Headers
x-apideck-consumer-idstring required
ID of the consumer which you want to get or push data from
x-apideck-app-idstring required
The ID of your Unify application
x-apideck-service-idstring
Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
digeststring
Example:sha=fpRyg5eVQletdZqEKaFlqwBXJzM=
The RFC3230 message digest of the uploaded part. Only required for the Box connector. More information on the Box API docs here
Request body
object required
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"
}
]
}
}