63. Mutation: Save Organization

Mutation to add or edit the "Organization". The "User" who sent the saveOrganization request will be the owner of the "Organization".

mutation saveOrganizationSample {
  saveOrganization(
    input: {
      name: "Organization name"
      surname: "Owner surname"
      givenName: "Owner given name"
      email: "owner@gmail.com"
      phone: "+0"
    }
  ) {
    uuid
    name
    surname
    givenName
    email
    phone
    createdDate
    updatedDate
  }
}

To edit the existing "Organization", add the uuid attribute to the request.

mutation saveOrganizationSample {
  saveOrganization(
    input: {
      uuid: "<organization_uuid>"
      name: "New organization name"
      surname: "Owner surname"
      givenName: "Owner given name"
      email: "owner_info@gmail.com"
      phone: "+0"
    }
  ) {
    uuid
    name
    surname
    givenName
    email
    phone
    createdDate
    updatedDate
  }
}

Last updated

Powered by GeoPard Agriculture - Automated precisionAg platform