---
title: "Finalize upload"
method: POST
path: "/hubs/{HubHashId}/projects/{ProjectId}/upload/{UploadSessionId}/finalize"
tags: ["Upload"]
---

# Finalize upload

`POST /hubs/{HubHashId}/projects/{ProjectId}/upload/{UploadSessionId}/finalize`

Finalize a file upload, providing metadata required for the creation of the file

## Path parameters

- `UploadSessionId` integer, required
- `HubHashId` string, required
- `ProjectId` integer, required

## Request body

- FeaturesDocumentsUploadsFinalizeUploadFinalizeUploadCommandFinalizeUploadCommandBody
  - `projectId` integer
  - `documentName` string, required
  - `documentId` string, nullable
  - `uploadRevision` FeaturesDocumentsUploadsFinalizeUploadFinalizeUploadCommandFinalizeUploadCommandBodyUploadRevisionBody, required
    - `prefix` string, nullable
    - `number` string, nullable
    - `suffix` string, nullable

## Response `200`

OK

- FeaturesDocumentsUploadsFinalizeUploadFinalizeUploadResponse
  - `revisionNumber` string, nullable
  - `revisionId` string, nullable
  - `id` string, nullable
  - `name` string, nullable
  - `modifiedDate` string, date-time
  - `createdDate` string, date-time
  - `modifiedByUser` FeaturesSharedModelsUserSummary
    - `id` integer
    - `firstName` string, nullable
    - `lastName` string, nullable
    - `email` string, nullable
    - `avatarUrl` string, nullable
    - `isDisabled` boolean
  - `createdByUser` FeaturesSharedModelsUserSummary
    - `id` integer
    - `firstName` string, nullable
    - `lastName` string, nullable
    - `email` string, nullable
    - `avatarUrl` string, nullable
    - `isDisabled` boolean
  - `size` integer
  - `originalDocumentUploadName` string, nullable

## Other responses

- `307` — According to the hub id, the request is at the wrong datacenter. Please retry with the URL in the "Location" header.

---

[API](https://skmtc.dev/bimtrackapp/apis/newforma-konekt-document-control-api.md) · [All operations](https://skmtc.dev/bimtrackapp/apis/newforma-konekt-document-control-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/bimtrackapp/newforma-konekt-document-control-api/revisions/4671d430ce39/schema)
