27. Mutation: Save "Note" attached to "SoilDataset"

This mutation allows you to attach a Note to a specified SoilDataset.

  • A Note can be linked to the Field via its unique identifier fieldUuid and to the associated SoilDataset via soilDatasetUuid.

  • 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 SaveNoteAttachedToSoilDataset {
  saveNote(input:{
    fieldUuid: "586a2ef2-03e4-4715-846c-07a2f0cb3016",
    centroid: {
      latitude: 53.42644, 
      longitude:  -109.87590
    },
    type: REAL,
    comment: "The test note attached to SoilDataset",
    soilDatasetUuid: "34162ba6-77b6-4d66-8935-b0941d60f7e1"
  } ) {
    uuid
    fieldUuid
    centroid {
      latitude
      longitude
    }
    createdDate
    updatedDate
    type
    comment
    soilDataset {
     	uuid
     	fieldUuid
    }
  }
}
mutation SaveNoteAttachedToSoilDataset {
  saveNote(input:{
    fieldUuid: "586a2ef2-03e4-4715-846c-07a2f0cb3016",
    centroid: {
      latitude: 53.42644, 
      longitude:  -109.87590
    },
    type: REAL,
    comment: "First line. is here\\nSecond line is here.\\nThird line is here.",
    soilDatasetUuid: "34162ba6-77b6-4d66-8935-b0941d60f7e1"
  } ) {
    uuid
    fieldUuid
    centroid {
      latitude
      longitude
    }
    createdDate
    updatedDate
    type
    comment
    soilDataset {
     	uuid
     	fieldUuid
    }
  }
}

Last updated

Powered by GeoPard Agriculture - Automated precisionAg platform