---
title: "createServiceDocumentUploadDestination"
method: POST
path: "/service/v1/documents"
tags: ["Services v1"]
---

# createServiceDocumentUploadDestination

`POST /service/v1/documents`

Creates an upload destination.

**Usage Plan:**

| Rate (requests per second) | Burst |
| ---- | ---- |
| 5 | 20 |

The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).

## Request body

- ServiceUploadDocument — Input for to be uploaded document.
  - `contentType` 'TIFF' | 'JPG' | 'PNG' | 'JPEG' | 'GIF' | 'PDF', required — The content type of the to-be-uploaded file
  - `contentLength` number, required — The content length of the to-be-uploaded file
  - `contentMD5` string — An MD5 hash of the content to be submitted to the upload destination. This value is used to determine if the data has been corrupted or tampered with during transit.

## Response `200`

Successfully created an upload destination for the given resource.

- CreateServiceDocumentUploadDestination — The response schema for the `createServiceDocumentUploadDestination` operation.
  - `payload` ServiceDocumentUploadDestination — Information about an upload destination.
    - `uploadDestinationId` string, required — The unique identifier to be used by APIs that reference the upload destination.
    - `url` string, required — The URL to which to upload the file.
    - `encryptionDetails` EncryptionDetails, required — Encryption details for required client-side encryption and decryption of document contents.
      - `standard` 'AES', required — The encryption standard required to encrypt or decrypt the document contents.
      - `initializationVector` string, required — The vector to encrypt or decrypt the document contents using Cipher Block Chaining (CBC).
      - `key` string, required — The encryption key used to encrypt or decrypt the document contents.
    - `headers` object — The headers to include in the upload request.
  - `errors` Error[] — A list of error responses returned when a request is unsuccessful.
    - `code` string, required — An error code that identifies the type of error that occurred.
    - `message` string, required — A message that describes the error condition.
    - `details` string — Additional details that can help the caller understand or fix the issue.

## Other responses

- `400` — Request has missing or invalid parameters and cannot be parsed.
- `403` — Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.
- `404` — The resource specified does not exist.
- `413` — The request size exceeded the maximum accepted size.
- `415` — The request's Content-Type header is invalid.
- `422` — Unprocessable Entity. Unable to process the contained instructions.
- `429` — The frequency of requests was greater than allowed.
- `500` — An unexpected condition occurred that prevented the server from fulfilling the request.
- `503` — Temporary overloading or maintenance of the server.

---

[API](https://skmtc.net/aws-samples/apis/a-content-management-v2020-11-01.md) · [All operations](https://skmtc.net/aws-samples/apis/a-content-management-v2020-11-01/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws-samples/a-content-management-v2020-11-01/revisions/815a5b6dbaa6/schema)
