25. Mutation: Save "Note" attached to "Field"
This mutation allows you to attach a Note to a specified Field.
A Note can be linked to the Field via its unique identifier
fieldUuid.The coordinate of the Note can be set using the
centroidattribute, which requires definedlatitudeandlongitudevalues.The type of Note can be specified using the
typeattribute with acceptable values ofPLANNEDorREAL.The description of the Note can be provided using the
commentattribute. If the description needs to be multiline, thecommentattribute should contain a string with newline characters\\nto separate lines. For example:"First line. is here\\nSecond line is here.\\nThird line is here.".
The sample requests can be found below:
mutation SaveNoteAttachedToField {
saveNote(input:{
fieldUuid: "d31240db-98e6-4cb0-b0a8-97ffe00f5e0d",
centroid: {
latitude: 51.177747,
longitude: -113.533613
},
type: PLANNED,
comment: "The test note attached to Field"
} ) {
uuid
fieldUuid
centroid {
latitude
longitude
}
createdDate
updatedDate
type
comment
}
}mutation SaveMultiLineNoteAttachedToField {
saveNote(input:{
fieldUuid: "d31240db-98e6-4cb0-b0a8-97ffe00f5e0d",
centroid: {
latitude: 51.177747,
longitude: -113.533613
},
type: PLANNED,
comment: "First line. is here\\nSecond line is here.\\nThird line is here."
} ) {
uuid
fieldUuid
centroid {
latitude
longitude
}
createdDate
updatedDate
type
comment
}
}Last updated
Was this helpful?