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 centroid attribute, which requires defined latitude and longitude values.

  • The type of Note can be specified using the type attribute with acceptable values of PLANNED or REAL.

  • The description of the Note can be provided using the comment attribute. If the description needs to be multiline, the comment attribute should contain a string with newline characters \\n to 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

Powered by GeoPard Agriculture - Automated precisionAg platform