Experiences

Upload digital download files

Changed on

Attaches already-uploaded files to a digital download experience as deliverables. Upload the bytes first with POST /files (presigned upload), then reference the resulting ids here: { "file_ids": ["file_..."] }. Appends to the existing set and de-duplicates, so re-sending an already-attached id is a safe no-op. Returns the full file list.

post/experiences/{experience_id}/files

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Path parameters

experience_id, string required

The digital download experience ID

Headers

Idempotency-Key, string

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Request body

object required
file_ids, string[] required

Ids of files already uploaded via POST /files (e.g. "file_abc123") to attach as deliverables

Response

Files attached

ListResponseDigitalDownloadFile required
object, 'list' required
data, DigitalDownloadFile[] required
has_more, boolean required
url, string required

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    4 more changes in this revision