36. Mutation: Add multiple "Comments" to the selected "Notes"
This mutation allows you to add multiple Comments to the selected Note.
The maximum amount of Comments to save is 25.
A Comment can be linked to the Field via its unique identifier
fieldUuidand to the Note vianoteUuid.The content of the Comment can be provided using the
textattribute. If the content needs to be multiline, thetextattribute should contain a string with newline characters\\nto separate lines. For example:"First line. is here\\nSecond line is here.\\nThird line is here.".It is possible to set a defined datetime associated with the comment using the
createdDateattribute in the ISO8601 format.
The sample request can be found below:
mutation BatchAddNoteComments {
addNoteComments(input:{
comments: [
{
noteUuid: "53547188-f37c-4d65-9733-f7de4be28e5b",
fieldUuid: "d31240db-98e6-4cb0-b0a8-97ffe00f5e0d",
text: "The 4th comment from multiple.",
createdDate: "2020-08-25T06:06:06.000Z"
},
{
noteUuid: "53547188-f37c-4d65-9733-f7de4be28e5b",
fieldUuid: "d31240db-98e6-4cb0-b0a8-97ffe00f5e0d",
text: "The 5th comment from multiple.\\nThe second line of the comment.",
createdDate: "2020-08-25T06:06:07.000Z"
}
]
}) {
uuid
fieldUuid
noteUuid
createdDate
updatedDate
text
}
}Previous35. Mutation: Add "Comment" to the selected "Note"Next37. Query: Get "SatelliteImages" in the defined interval
Last updated
Was this helpful?