Skip to main content

Register attachment

POST 

/entries/:id/attachments

Register attachment

Request

Path Parameters

    id uuidrequired

    Resource UUID.

Header Parameters

    Idempotency-Key string

    Optional idempotency key (24 h cache). Repeat calls with the same key and path return the cached response.

Body

required

    fileNamestringrequired
    fileSizestringrequired
    fileTypestringrequired
    objectPathstringrequired
    categorystring | nullnullable
    isAiGeneratedstring | nullnullable

Created

Schema

    iduuidrequired
    Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6
    entryIduuidrequired
    Example: 7b1e2c3d-0000-0000-0000-000000000001
    fileNamestringrequired
    Example: screenshot.png
    fileSizestringrequired

    File size in bytes (stored as string for precision).

    Example: 204800
    fileTypestringrequired

    MIME type.

    Example: image/png
    objectPathstringrequired
    Example: public/attachments/screenshot.png
    categorystring | nullnullablerequired
    Example: product_business
    createdAtdate-timerequired
    Example: 2025-01-15T10:30:00Z