Letter and patient document title byte limit
Summary
createLetter, updateLetter, and createPatientDocument now reject title / name values longer than 128 UTF-8 bytes (not Unicode code points). Accented characters count as multiple bytes in UTF-8.
This aligns with DMP (Mon Espace Santé) constraints and matches validation in the Semble web app.
Affected GraphQL fields
| Operation / type | Field | Limit |
|---|---|---|
createLetter / CreateLetterDataInput | title | 128 UTF-8 bytes |
updateLetter / UpdateLetterDataInput | title | 128 UTF-8 bytes (when provided) |
Letter | title | Same limit on write |
createPatientDocument | name | 128 UTF-8 bytes |
PatientDocument | name | Same limit on write |
Field descriptions in the GraphQL schema document this limit. Validation errors return a message indicating the title or name is too long.
Migration
- Refresh your schema snapshot and regenerate GraphQL clients so field descriptions are visible in your tooling.
- Before calling
createLetter,updateLetter, orcreatePatientDocument, ensuretitle/nameencodes to at most 128 UTF-8 bytes (use UTF-8 byte length in your language, notstring.lengthalone). - If a name was previously accepted but exceeds the limit, shorten it in your integration; the API will not truncate automatically.
- Existing documents with oversized names are unchanged until the next update; updates that exceed the limit are rejected.
See also
- API reference:
createLetter - API reference:
updateLetter - API reference:
createPatientDocument