Skip to main content
POST
Start or resume the upload of one large task, in parts

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string
required

The task's name under its owner; / separates segments, as in Harbor's org/task

Maximum string length: 400
Pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*(/[A-Za-z0-9][A-Za-z0-9_.-]*)*$
archive_sha256
string
required

sha256 of the tar.gz bytes

Pattern: ^[0-9a-f]{64}$
content_hash
string
required

sha256 of the manifest of the unpacked files

Pattern: ^[0-9a-f]{64}$
owner
string
required

Owning user or team slug

Required string length: 1 - 255
size
integer
required

Archive size in bytes

Required range: x <= 5368709120
task_type
enum<string>
default:harbor

The code that sets up, runs and scores the task

Available options:
harbor
Allowed value: "harbor"
description
string | null

Used only when this creates the task

Maximum string length: 4000
labels
string[]

Used only when this creates the task

Maximum array length: 64
Required string length: 1 - 200
Pattern: ^[^\x00-\x1f\x7f]+$

Response

Successful Response

status
enum<string>
required

exists: the task already has this content, so there is nothing to upload and version is the one it has

Available options:
upload,
exists
version
TaskVersion · object | null
upload_id
string | null
part_size
integer | null
parts
UploadPart · object[]
expires_at
string<date-time> | null

When the upload is abandoned; the links expire sooner