EndpointsCreate package

packages

Create package

Creates a private Package in the Akua-Context Workspace, hosted at Akua or imported from an external OCI repository. It holds no versions yet; publish each with Create package version. Retry with the same Idempotency-Key to receive the same Package.

POST/packages
Authorizationstringheaderrequired

Bearer token for the authenticated caller.

Optional workspace/scope context for the request. Carries a single workspace wire id (ws_…) today. Only needed for broad tokens - a workspace-owned token implies its workspace.

Required string length: 1 - 53

Example: "ws_j572abc123def4"

Optional caller-supplied idempotency key. Any non-empty key up to 64 characters is accepted. Endpoint-specific documentation describes how the key is used.

Required string length: 1 - 64

Example: "create-prod-2026-05-07"

Body

application/json
namestringrequired

Required string length: 1 - 100

sourceobjectrequired
source.kindenum<string>required

Available options: hosted

source.chartstringrequired

Required string length: 1 - 253

Pattern: ^[a-z0-9]+(?:[._-][a-z0-9]+)*$

Response

application/json

Package created

idstringrequired

Required string length: 3 - 54

html_urlstring<uri>required

Absolute dashboard URL for this resource. OUTPUT_ONLY.

Maximum string length: 2048

workspace_idstringrequired

Required string length: 2 - 53

namestringrequired
sourceobjectrequired
source.kindenum<string>required

Available options: hosted

source.chartstringrequired

Required string length: 1 - 253

Pattern: ^[a-z0-9]+(?:[._-][a-z0-9]+)*$

versionsobject[]required

Every version created for the Package, newest first.

child attributes
versions.versionstringrequired

Required string length: 1 - 128

Pattern: ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|[0-9A-Za-z-]*[A-Za-z-][0-9A-Za-z-]*)(?:\.(?:0|[1-9]\d*|[0-9A-Za-z-]*[A-Za-z-][0-9A-Za-z-]*))*))?(?:\+([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?$

versions.statusenum<string>required

Available options: publishing, published, failed

etagstringrequired