> For the complete documentation index, see [llms.txt](https://docs.suggestic.com/graphql/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.suggestic.com/graphql/query/mutations/tracking/user-tracker-goals/update-user-goal.md). Agents can also search and read this documentation through its [MCP server](https://docs.suggestic.com/graphql/~gitbook/mcp).

# 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="https://docs.suggestic.com/graphql/objects/common/tracker.md">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 %}
