authed

Finalize Assistant Attachment

Step two, after the PUT: verify the object arrived, sniff what it actually is (the bytes decide — the filename only ever picks among text formats), enforce its kind's size cap, and flip the row ready. Idempotent: a replayed finalize reads the settled row back.

post/api/v1/assistant-attachments/{attachment_id}/finalize

Request

  • Base URL
    https://api.teaflask.com (the document declares no server; this is the origin it was published from)
  • URL
    https://api.teaflask.com/api/v1/assistant-attachments/{attachment_id}/finalize
  • Auth
    none declared

Path parameters

attachment_idstring uuid required

Response

Successful Response

idstring uuid required
kind'image' | 'document' | 'video' | 'audio' | 'file' required

The assistant_attachments kind CHECK's closed set.

formatstring nullable required
filenamestring required
byte_sizeinteger required
readyboolean required

Changes

No recorded changes to this operation across all 1 revision of this API.