Skip to main content
POST
Upload up to 16 small tasks in one request

Authorizations

Authorization
string
header
required

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

Path Parameters

owner
string
required

Owning user or team slug

Required string length: 1 - 255

Body

application/vnd.prime.hub-tasks.v1

Four bytes with the header's length (big-endian), then the header, then the archives back to back. The header is a UTF-8 JSON array with one object per task: name, size (of its tar.gz, in bytes), archive_sha256, content_hash, and optionally task_type, description and labels. At most 16 tasks and 8 MiB of archives.

The body is of type file.

Response

Successful Response

results
TaskUploadOutcome · object[]
required

One per task, in the order they were sent