Skip to main content
POST
Presign a workspace bundle upload

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-ankra-organisation-id
string

PAT organisation override.

Path Parameters

workspace_id
string<uuid>
required

The workspace.

Body

application/json

A git bundle the client is about to upload.

sha256
string
required

The bundle's SHA-256, 64 lower-case hex digits.

Pattern: ^[0-9a-f]{64}$
size_bytes
integer
required

The bundle's size (1 byte to 512 MiB).

Required range: 1 <= x <= 536870912

Response

Where to upload the bundle

Where to PUT a bundle.

exists
boolean
required

The workspace already holds this bundle; the PUT can be skipped.

expires_at
string<date-time>
required
object_key
string
required

Name the bundle to a run with this key (bundle_object_key).

upload_url
string
required

A presigned PUT of the bundle bytes.