---
title: "Complete file upload"
method: POST
path: "/blobs/uploads/{id}/complete"
tags: ["Blobs"]
---

# Complete file upload

`POST /blobs/uploads/{id}/complete`

## Request

- Base URL: `https://HOSTNAME:8887/api`
- URL: `https://HOSTNAME:8887/api/blobs/uploads/{id}/complete`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/docs/blobs/uploads/:id/complete/post.ts> (a function with typed inputs; its response is checked against the schema)

Complete the upload specified by unique ID, providing all the data in the body, if necessary.
A request without a body will just complete the upload with previously uploaded content.

## Path parameters

- `id` string, required: The universally unique identifier (UUID).

## Query parameters

- `digest` string: The Content Digests. A digest is a serialized hash result, consisting of a algorithm and hex portion. Only sha256 based digest accepted.

## Headers

- `PortSIP-Upload-Token` string, required

## Request body `application/octet-stream`

- string, binary

## Response `201`

Created

- object
  - `id` string: The unique ID of the resource.

## Other responses

- `4XX`: Error

---

[API](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api.md) - [All operations](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/revisions/577415d4a3d5?raw)
