# Update User Goal

Use the `updateUserTracker` mutation to update the user custom tracker goal.

### **Required Arguments**

<table data-header-hidden><thead><tr><th width="201.33333333333331">Argument</th><th>Type</th><th width="271.7804878048781">Note</th></tr></thead><tbody><tr><td>Argument</td><td>Type</td><td>Note</td></tr><tr><td><code>id</code></td><td>ID!</td><td>User tracker goal ID.</td></tr><tr><td><code>goal</code></td><td>Float</td><td>Sets new goal for selected tracker ex. <code>20000</code> steps.</td></tr><tr><td><code>source</code></td><td>SourceType</td><td>Source of input, <strong>default</strong> is set to <strong>SUGGESTIC</strong>.  enum SourceType {<br>APPLE<br>FITBIT<br>GARMIN<br>GOOGLEFIT_NATIVE<br>GOOGLEFIT_REST<br>HEALTHCONNECT<br>HUAWEIHEALTH<br>IHEALTH<br>MISFIT<br>OMRONCONNECT<br>OMRONWELLNESS<br>OURA<br>POLAR<br>SAMSUNG<br>STRAVA<br>SUGGESTIC<br>SUUNTO<br>WITHINGS<br>}</td></tr></tbody></table>

### **Available Fields**

<table data-header-hidden><thead><tr><th>Field</th><th width="249.33333333333331">Type</th><th>Note</th></tr></thead><tbody><tr><td>Field</td><td>Type</td><td>Note</td></tr><tr><td><code>success</code></td><td>Boolean</td><td><strong>true:</strong> If the tracker goal has been updated successfully. Otherwise, it displays <strong>false</strong></td></tr><tr><td><code>message</code></td><td>String</td><td>The message returns either if the goal has been updated or not.</td></tr><tr><td><code>tracker</code></td><td>UserTracker</td><td><a href="/pages/YfDR6rqHyROTCOwqzRKJ">User Tracker.</a></td></tr></tbody></table>

### Example <a href="#example" id="example"></a>

{% tabs %}
{% tab title="Request" %}

```graphql
mutation {
  updateUserTracker(input: {
    id: "VXNlclRyYWNrZXI6MQ=="
    goal: 18000
    source: SUGGESTIC
  }) {
    success
    message
    tracker {
      id
      tracker
      goal
      source
    }
  }
}
```

{% endtab %}

{% tab title="Response" %}

```graphql
{
  "data": {
    "updateUserTracker": {
      "success": true,
      "message": "steps_tracker successfully updated",
      "tracker": {
        "id": "VXNlclRyYWNrZXI6MQ==",
        "tracker": "STEPS_TRACKER",
        "goal": 18000,
        "source": "SUGGESTIC"
      }
    }
  }
}
```

{% endtab %}
{% endtabs %}


---

# 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.suggestic.com/graphql/query/mutations/tracking/user-tracker-goals/update-user-goal.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.
