Skip to main content

kobana kadu files

Commands of kobana kadu files. Every global option (Global options) applies here.

CommandHTTPDescription
files listGET /v1/filesList files
files createPOST /v1/filesStart an input file upload
files getGET /v1/files/{id}Get file details
files confirmPOST /v1/files/{id}/confirmConfirm the upload (pending → uploaded)
files downloadGET /v1/files/{id}/downloadTemporary download URL

files list​

List files

kobana kadu files list [OPTIONS]

GET /v1/files

Query parameters

NameTypeRequiredDescription
cursorstringno
limitnumberno
sort_bystringnoField in snake_case: created_at (default), updated_at or a filterable field.
sort_orderstringnoDefault: desc. Values: asc, desc.

Responses

HTTPDescription
200OK
503AS_UNAVAILABLE — token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

files create​

Start an input file upload

kobana kadu files create [OPTIONS]

POST /v1/files

Three-step flow: (1) this POST creates the pending file and returns upload_url; (2) PUT the bytes to upload_url with the same Content-Type; (3) POST /files/{id}/confirm. The id goes in input_file_ids of POST /tasks/{id}/run (the Task must accept input files). Maximum size: 100 MB.

Request body

NameTypeRequiredDescription
task_idstring (uuid)yes
filenamestringyes
size_bytesintegeryes
content_typestringno

More fields and nested objects: kobana schema kadu.files.create.

Responses

HTTPDescription
201created
409IDEMPOTENCY_KEY_REUSED / IDEMPOTENCY_REQUEST_IN_PROGRESS (or the route's CONFLICT)
422TASK_DOES_NOT_ACCEPT_FILES / VALIDATION_ERROR — Task outside the organization
503AS_UNAVAILABLE — token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

files get​

Get file details

kobana kadu files get [ID] [OPTIONS]

GET /v1/files/{id}

Path arguments: id

Responses

HTTPDescription
200OK
404not found
503AS_UNAVAILABLE — token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

files confirm​

Confirm the upload (pending → uploaded)

kobana kadu files confirm [ID] [OPTIONS]

POST /v1/files/{id}/confirm

Path arguments: id

Responses

HTTPDescription
200OK
404NOT_FOUND
409CONFLICT — not a pending input file / IDEMPOTENCY_KEY_REUSED
503AS_UNAVAILABLE — token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

files download​

Temporary download URL

kobana kadu files download [ID] [OPTIONS]

GET /v1/files/{id}/download

Path arguments: id

Responses

HTTPDescription
200OK
404NOT_FOUND
409FILE_NOT_UPLOADED
503AS_UNAVAILABLE — token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).