# 62. Mutacija: deli kmetije

Skupinsko deljenje kmetij uporabnikom znotraj »Organizacije« ali za zunanje uporabnike. Obstajata dva primera uporabe mutacije. Prvi primer je skupinsko deljenje »Kmetije« po seznamu e-poštnih naslovov.

{% code overflow="wrap" lineNumbers="true" %}

```graphql
mutacija ShareFarmsSample {
  shareFarms(
    vnos: {
      farmUuids: ["farm_uuid1", "farm_uuid2"]
      emails: ["user1@gmail.com", "user2@gmail.com"]
    }
  ) {
    uuid
    userUuid
    ime
    farmOwnership
    datumUstvarjanja
    updatedDate
    e-pošta
  }
}

```

{% endcode %}

In drugi primer je nastavitev zastavice ‚allFarms=true‘ za seznam »Uporabnikov« v »Organizaciji«, kar pomeni, da bodo vse nove kmetije znotraj »Organizacije« dostopne tem »Uporabnikom«.&#x20;

{% code overflow="wrap" lineNumbers="true" %}

```graphql
mutacija ShareFarmsSample {
  shareFarms(
    vnos: { 
      emails: ["user@gmail.com"], 
      allFarms: true 
    }
  ) {
    uuid
    userUuid
    ime
    farmOwnership
    datumUstvarjanja
    updatedDate
    e-pošta
  }
}
```

{% endcode %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.geopard.tech/geopard-tutorials/svn/api-dokumentacija/pregled-zahtevkov-geopard-api/62.-mutacija-deli-kmetije.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
