attachment

Register an uploaded attachment after R2 verification

Changed on
post/api/preview/attachments/confirm

Request

Request body

capsuleIdstring required

UUID v4 string

fileNamestring required

Original file name; persisted on the row for display.

objectKeystring required

Canonical R2 object key returned from the presign endpoint. Server verifies the prefix matches <userId>/<capsuleId>/ before insert.

Response

Successful response

availableboolean
capsule_idstring nullable
capsule_updated_atstring nullable

Upload confirm only: the capsule's new updated_at when the upload rewrote a file-name embed in its body; null when the body was not changed.

created_atstring
deleted_atstring nullable
embed_markdownstring

Markdown that places this file in a capsule body. Credential-free and durable, unlike any ?cat= URL.

expires_atstring nullable
file_namestring
heightinteger nullable
idstring
mime_typestring
object_keystring
rotation_base_keystring nullable
rotation_base_sizeinteger nullable
rotation_degreesinteger nullable
sizeinteger
unavailable_atstring nullable
unavailable_reasonstring nullable
widthinteger nullable

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status