# Add User Symptom Log

Use the `createSymptomLog` mutation add  a symptom log on behalf the user.

### Required Arguments

| Argument    | Type      | Description                                                                  |
| ----------- | --------- | ---------------------------------------------------------------------------- |
| `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 created successfully. Otherwise, it displays **false** |
| `message`  | String  | The message returns either if the entry has been created or not.                       |

### Example

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

```graphql
mutation{
  createSymptomLog(
    symptomId:"U3ltcHRvbTozNGNlYjBkZC05ZTg4LTQ0OWYtODcwNC05ZjJlMmU2MGRiNDE="
    timestamp:"2025-07-21T16:09:18.150559+00:00"
    intensity:4
    notes:"After eating pasta at night"
  ){
    success
    message
  }
}
```

{% endtab %}

{% tab title="Response" %}

```graphql
{
  "data": {
    "createSymptomLog": {
      "success": true,
      "message": "Symptom log created"
    }
  }
}
```

{% endtab %}
{% endtabs %}
