Notes and note comments.
Queries
note
A single Note by ID
Arguments
id(ID!) — The unique identifier of the Note
Returns: Note — An item that can include arbitrary text. It can optionally be associated to a specific customer and have a task attached to it.
noteComment
A single NoteComment by ID
Arguments
id(ID!) — The unique identifier of the NoteComment
Returns: NoteComment — A NoteComment is a message associated to a Note by a User
noteComments
Lists NoteComments
Arguments
after(String) — A cursor to search after (only include first & after or last & before)before(String) — A cursor to search before (only include first & after or last & before)creatorId(ID) — An ID for a User to filter byfirst(Int) — The number of results to fetch when searching forward (only include first & after or last & before)includeDeleted(Boolean) — Whether or not to include deleted NoteComments in the resultslast(Int) — The number of results to fetch when searching backward (only include first & after or last & before)noteId(ID!) — An ID for a Note to filter bysearch(String) — A search query to filter resultssortBy(SortNoteCommentsBy) — The sort keysortDir(SortDirection) — The sort direction
Returns: NoteCommentConnection! — A connection to a list of items.
noteCommentsByIds
A list of NoteComments by IDs
Arguments
ids([ID!]!) — The IDs of the NoteComments
Returns: [NoteComment]! — A NoteComment is a message associated to a Note by a User
notesByIds
A list of Notes by IDs
Arguments
ids([ID!]!) — The IDs of the Notes
Returns: [Note]! — An item that can include arbitrary text. It can optionally be associated to a specific customer and have a task attached to it.
searchNoteComments
Deprecated: Use Query.noteComments instead
Lists NoteComments
Arguments
after(String) — A cursor to search after (only include first & after or last & before)before(String) — A cursor to search before (only include first & after or last & before)creatorId(ID) — An ID for a User to filter byfirst(Int) — The number of results to fetch when searching forward (only include first & after or last & before)includeDeleted(Boolean) — Whether or not to include deleted NoteComments in the resultslast(Int) — The number of results to fetch when searching backward (only include first & after or last & before)noteId(ID!) — An ID for a Note to filter bysearch(String) — A search query to filter resultssortBy(SortNoteCommentsBy) — The sort keysortDir(SortDirection) — The sort direction
Returns: NoteCommentConnection! — A connection to a list of items.
searchNotes
Searches Notes
Arguments
after(String) — A cursor to search after (only include first & after or last & before)before(String) — A cursor to search before (only include first & after or last & before)filters([SearchFilterInput!]) — A set of filters to applyfirst(Int) — The number of results to fetch when searching forward (only include first & after or last & before)last(Int) — The number of results to fetch when searching backward (only include first & after or last & before)search(String) — A search term to applysortBy(SortNotesBy) — The sort keysortDir(SortDirection) — The sort direction
Returns: NoteConnection! — A connection to a list of items.
Mutations
createNote
Creates a Note
Arguments
createdInTeamId(ID) — The Team that the Note was created increatorId(ID) — The User who is creating the NotecustomerId(ID) — An ID of the Customer to associate with the Notedescription(String) — The description of the NotelocalId(ID) — The local ID of the Notetags([String!]) — A list of tags to associate with the NotetimeZone(String) — The time zone that the Note was created intitle(String) — The title of the Note
Returns: CreateNotePayload!
createNoteComment
Creates a NoteComment
Arguments
comment(String!) — The content of the NoteCommentcreatorId(ID!) — The ID of the User who is creating the NoteCommentnoteId(ID!) — The ID the Note
Returns: CreateNoteCommentPayload!
deleteNoteComment
Deletes a NoteComment
Arguments
editorId(ID!) — The ID of the User who is deleting the commentid(ID!) — The ID of the NoteComment
Returns: DeleteNoteCommentPayload!
restoreNoteComment
Restores a NoteComment
Arguments
editorId(ID!) — The ID of the User who is deleting the commentid(ID!) — The ID of the NoteComment
Returns: RestoreNoteCommentPayload!
updateNote
Updates a Note
Arguments
customerId(ID) — The ID of the Customer to associate with the Notedescription(String) — The description of the NoteeditorId(ID) — The User who is updating the Noteid(ID!) — The unique identifier of the Notetags([String!]) — A list of tags to associate with the Notetitle(String) — The title of the Note
Returns: UpdateNotePayload!
updateNoteComment
Updates a NoteComment
Arguments
comment(String!) — The content of the NoteCommentid(ID!) — The ID the NoteCommentupdaterId(ID!) — The ID of the User who is updating the NoteComment
Returns: UpdateNoteCommentPayload!
Objects
CreateNoteCommentError
Fields
code(CreateNoteCommentErrorCode!)human_readable_message(String!)
CreateNoteCommentFailure
Fields
errors([CreateNoteCommentError!]!)
CreateNoteCommentSuccess
Fields
noteComment(NoteComment!)
CreateNoteError
Fields
code(CreateNoteErrorCode!)human_readable_message(String!)
CreateNoteFailure
Fields
errors([CreateNoteError!]!)
CreateNoteSuccess
Fields
note(Note!)
DeleteNoteCommentError
Fields
code(DeleteNoteCommentErrorCode!)human_readable_message(String!)
DeleteNoteCommentFailure
Fields
errors([DeleteNoteCommentError!]!)
DeleteNoteCommentSuccess
Fields
noteComment(NoteComment!)
Note
An item that can include arbitrary text. It can optionally be associated to a specific customer and have a task attached to it.
Fields
analysis_opted_in_at(DateTime) — The date the Note was opted in for analysisassets([Asset!]!) — The assets associated with the Note — 🚧 Deprecated: Use assets_v2 insteadassets_v2([NoteAsset!]!) — The assets associated with the Notebody_html(String) — The HTML body of the Notebody_text(String) — The text body of the Notecomments(NoteCommentConnection!) — The NoteComments associated to the Notecreated_at(DateTime!) — The date the Note was createdcreator(User) — The User that created the Notecustomer(Customer) — The customer associated with the Notedeleted_at(DateTime) — When the Note was deleteddescription(String) — The description of the Note — 🚧 Deprecated: Use body_text or body_html insteadid(ID!) — The unique identifier of the Notelocal_id(ID) — The local ID of the Notetags([String!]!) — Associated tags for the Notetask(Task) — The task associated with the Noteteam(Team) — The Team that the Note was created intime_zone(String) — The time zone that the Note was created intitle(String) — The title of the Notetype(NoteType!) — The type of Noteupdated_at(DateTime!) — The date the Note was last updatedweb_url(URL!) — The URL to the Note inside the web application — 🚧 Deprecated: No longer supported
NoteAsset
An Asset that is associated with a Note
Fields
asset(Asset) — The asset associated with the NoteAssetcreated_at(DateTime!) — The date & time the NoteAsset was createdid(ID!) — The unique identifier of the NoteAssettranscription(String) — The transcription of the NoteAssetupdated_at(DateTime!) — The date & time the NoteAsset was last updatedvisibility(NoteAssetVisibility!) — The visibility of the NoteAsset
NoteComment
A NoteComment is a message associated to a Note by a User
Fields
body_html(String) — The HTML body of the NoteCommentbody_text(String) — The text body of the NoteCommentcomment(String) — The comment text for the NoteComment — 🚧 Deprecated: Use body_text or body_html insteadcreated_at(DateTime!) — The date the NoteComment was createdcreator(User) — The User that created the NoteCommentdeleted_at(DateTime) — When the NoteComment was deletedid(ID!) — The unique identifier of the NoteCommentis_user_editable(Boolean!) — Whether the NoteComment can be edited by the Usernote(Note!) — The Note that the NoteComment is associated toupdated_at(DateTime!) — The date the NoteComment was last updatedweb_url(URL!) — The URL to the NoteComment inside the web application — 🚧 Deprecated: No longer supported
NoteCommentConnection
A connection to a list of items.
Fields
edges([NoteCommentEdge]) — A list of edges.pageInfo(PageInfo!) — Information to aid in pagination.
NoteCommentEdge
An edge in a connection.
Fields
cursor(String!) — A cursor for use in paginationnode(NoteComment) — The item at the end of the edge
NoteConnection
A connection to a list of items.
Fields
edges([NoteEdge]) — A list of edges.pageInfo(PageInfo!) — Information to aid in pagination.total(Int)
NoteEdge
An edge in a connection.
Fields
RestoreNoteCommentError
Fields
code(RestoreNoteCommentErrorCode!)human_readable_message(String!)
RestoreNoteCommentFailure
Fields
errors([RestoreNoteCommentError!]!)
RestoreNoteCommentSuccess
Fields
noteComment(NoteComment!)
UpdateNoteCommentError
Fields
code(UpdateNoteCommentErrorCode!)human_readable_message(String!)
UpdateNoteCommentFailure
Fields
errors([UpdateNoteCommentError!]!)
UpdateNoteCommentSuccess
Fields
noteComment(NoteComment!)
UpdateNoteError
Fields
code(UpdateNoteErrorCode!)human_readable_message(String!)
UpdateNoteFailure
Fields
errors([UpdateNoteError!]!)
UpdateNoteSuccess
Fields
note(Note!)
Unions
CreateNoteCommentPayload
Possible types
CreateNotePayload
Possible types
DeleteNoteCommentPayload
Possible types
RestoreNoteCommentPayload
Possible types
UpdateNoteCommentPayload
Possible types
UpdateNotePayload
Possible types
Enums
CreateNoteCommentErrorCode
Values
COMMENT_TOO_LONG— The comment exceeds the maximum length of 5000 charactersCOMMENT_TOO_SHORT— The comment is too shortCREATOR_NOT_FOUND— The creator was not foundINVALID_COMMENT_HTML— The comment is invalidNOTE_NOT_FOUND— The note was not found
CreateNoteErrorCode
Values
ASSET_NOT_FOUND— The asset was not foundCREATOR_NOT_FOUND— The creator was not foundCUSTOMER_NOT_FOUND— The customer was not foundDESCRIPTION_TOO_LONG— The description exceeds the maximum length of 5000 charactersINTEGRATED_CUSTOMER_NOT_RESOLVED— The integrated customer could not be resolved to a customerINVALID_DESCRIPTION_HTML— The description is invalidINVALID_LOCAL_ID— The local ID is invalidTEAM_NOT_FOUND— The team was not found
DeleteNoteCommentErrorCode
Values
CANNOT_DELETE_NOTE_COMMENT— This note comment cannot be deletedEDITOR_NOT_FOUND— The editor was not foundNOTE_COMMENT_NOT_FOUND— The note comment was not found
NoteAssetVisibility
The available visibility types for a NoteAsset
Values
NOT_VISIBLEVISIBLE_TO_EVERYONE
NoteType
The type of Note
Values
NOTETASK
RestoreNoteCommentErrorCode
Values
CANNOT_RESTORE_NOTE_COMMENT— This note comment cannot be restoredEDITOR_NOT_FOUND— The editor was not foundNOTE_COMMENT_NOT_FOUND— The note comment was not found
SortNoteCommentsBy
The available keys to sort NoteComments
Values
CREATED_ATUPDATED_AT
SortNotesBy
The available keys to sort Notes
Values
CREATED_ATUPDATED_AT
UpdateNoteCommentErrorCode
Values
CANNOT_UPDATE_DELETED_NOTE_COMMENT— A deleted note comment cannot be updatedCANNOT_UPDATE_NOTE_COMMENT— This note comment cannot be updatedCOMMENT_TOO_LONG— The comment exceeds the maximum length of 5000 charactersCOMMENT_TOO_SHORT— The comment is too shortCONCURRENCY_ERROR— The note comment was updated by another userINVALID_COMMENT_HTML— The comment is invalidNOTE_COMMENT_NOT_FOUND— The note comment was not found
UpdateNoteErrorCode
Values
CUSTOMER_NOT_FOUND— The customer was not foundDESCRIPTION_TOO_LONG— The description exceeds the maximum length of 5000 charactersFORBIDDEN— You do not have permission to perform this actionINVALID_DESCRIPTION_HTML— The description is invalidNOTE_NOT_FOUND— The note was not found
