Skip to navigation

Create Upload

Register an uploaded file (after a Transloadit assembly completes) into the user’s filebox.

Authentication: Required — Bearer token.

Request body:

  • file.name (required), file.size, file.type (mime, drives the media class), file.meta.fields.assembly_type (optional override)
  • assembly.assembly_id (required) — The Transloadit assembly ID
  • is_avatar_image (optional, default false)
  • origin (optional)

Response: data — The created upload. Status 201.

Errors:

  • 422 — Validation errors

Authentication

AuthorizationBearer

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

Request

This endpoint expects an object.
fileobjectOptional
assemblyobjectOptional
is_avatar_imagebooleanOptional
originstringOptional

Response

Created