---
title: "POST /2015-01-01/packages"
method: POST
path: "/2015-01-01/packages"
---

# POST /2015-01-01/packages

`POST /2015-01-01/packages`

Create a package for use with Amazon ES domains.

## Request body

- object
  - `PackageName` string, required — Unique identifier for the package.
  - `PackageType` 'TXT-DICTIONARY', required — Type of package. Currently supports only TXT-DICTIONARY.
  - `PackageDescription` string — Description of the package.
  - `PackageSource` object, required — The S3 location for importing the package specified as <code>S3BucketName</code> and <code>S3Key</code>
    - `S3BucketName` string — Name of the bucket containing the package.
    - `S3Key` string — Key (file name) of the package.

## Response `200`

Success

- CreatePackageResponse — Container for response returned by <code> <a>CreatePackage</a> </code> operation.
  - `PackageDetails` object — Information about the package <code>PackageDetails</code>.
    - `PackageID` string — Internal ID of the package.
    - `PackageName` string — User specified name of the package.
    - `PackageType` 'TXT-DICTIONARY' — Currently supports only TXT-DICTIONARY.
    - `PackageDescription` string — User-specified description of the package.
    - `PackageStatus` 'COPYING' | 'COPY_FAILED' | 'VALIDATING' | 'VALIDATION_FAILED' | 'AVAILABLE' | 'DELETING' | 'DELETED' | 'DELETE_FAILED' — Current state of the package. Values are COPYING/COPY_FAILED/AVAILABLE/DELETING/DELETE_FAILED
    - `CreatedAt` string, date-time — Timestamp which tells creation date of the package.
    - `LastUpdatedAt` string, date-time
    - `AvailablePackageVersion` string
    - `ErrorDetails` object — Additional information if the package is in an error state. Null otherwise.
      - `ErrorType` string
      - `ErrorMessage` string

## Other responses

- `480` — BaseException
- `481` — InternalException
- `482` — LimitExceededException
- `483` — InvalidTypeException
- `484` — ResourceAlreadyExistsException
- `485` — AccessDeniedException
- `486` — ValidationException

---

[API](https://skmtc.net/aws/apis/es.md) · [All operations](https://skmtc.net/aws/apis/es/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/es/versions/2aa0f7663d92/schema)
