NewNoteInput
input type
Append-input for addNote.
Fields
| Field | Type | Required | Notes |
|---|---|---|---|
targetConstructId | ID ID! | yes | The annotated construct (ANY same-tenant type — existence + same-rootId gate; a cross-tenant/missing target refuses NOT_FOUND). |
targetType | String String! | yes | The target's declared construct type. |
body | String String! | yes | The note body (1..4096). |
parentNoteId | ID | no | |
title | String | no | The optional lead line (1..120). |
kind | String | no | The kind ∈ {comment, question, action} — unnamed stamps 'comment' (the Task-priority idiom; server-validated). |
links | NoteLinkInput [NoteLinkInput!] | no | Outbound links (≤8 — the scheme fence). |
attachmentIds | ID [ID!] | no | The caller's own prior upload-mints to bind (≤8, distinct; each un-bound + on the same target — the attachment-first flow). |
refs | TaskConstructRefInput [TaskConstructRefInput!] | no | The construct refs (≤8, distinct by (type,id); in-tenant + non-doomed at write — the TaskConstructRef law). |
mentions | NoteMentionInput [NoteMentionInput!] | no | The mentions (≤8, distinct by target; userId ⊕ teamId each — the sendMessage recipient gates verbatim [a user in-tenant + non-doomed, suspended still receives; a team must be active with the caller a member]; each lands ONE inbox message in the birth txn). |
labelIds | ID [ID!] | no | The labels (≤8, distinct — active TaskLabels; the ONE shared vocabulary). |