# Update User Symptom Log

Use the `updateSymptomLog` mutation to update a symptom log on behalf the user.

### Required Arguments

| Argument    | Type     | Description                                                                  |
| ----------- | -------- | ---------------------------------------------------------------------------- |
| `id`        | ID!      | Symptom Log ID.                                                              |
| `symptomId` | ID       | Symptom ID.                                                                  |
| `timestamp` | DateTime | The datetime the log was entered. Use the format: `YYYY-MM-DDT hh:mm:ssZ`    |
| `intensity` | Int      | Numeric value provided by the user to describe the intensity of the symptom. |
| `notes`     | String   | User-provided information about the symptom, e.g., trigger, duration, etc.   |

### Available Fields

| Field Name | Type    | Description                                                                            |
| ---------- | ------- | -------------------------------------------------------------------------------------- |
| `success`  | Boolean | **true:** If the entry has been updated successfully. Otherwise, it displays **false** |
| `message`  | String  | The message returns either if the entry has been updated or not.                       |

### Example

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

```graphql
mutation{
  updateSymptomLog(
    id:"U3ltcHRvbUxvZzoyNTY="
    timestamp:"2025-07-21T15:09:18.150559+00:00"
    intensity:3
  ){
    success
    message
  }
}
```

{% endtab %}

{% tab title="Response" %}

```graphql
{
  "data": {
    "updateSymptomLog": {
      "success": true,
      "message": "Symptom log updated"
    }
  }
}
```

{% endtab %}
{% endtabs %}
