> 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/journey.md).

# Journey Status

Update the status of a "day" on a journey

Use the `updateJourneyStatusMutation` mutation to update the status of "day" on a journey.

### Required Arguments

| Argument    | Type          | Description                                                                     |
| ----------- | ------------- | ------------------------------------------------------------------------------- |
| `journeyId` | String        | [ProfileJourney ](/graphql/query/queries/content/journey.md#currentjourneys)id. |
| `status`    | JourneyStatus | JourneyStatus enum. `CLOSE`, `OPEN`, `FINISH`                                   |

## Available Field

The following fields will be part of the response.

| Field name | Type   | Description                                                                |
| ---------- | ------ | -------------------------------------------------------------------------- |
| `sucess`   | String | **True** if the Journey has been updated. Otherwise, it displays **False** |
| `message`  | String | Description of the result                                                  |

### Example

The following example changes a Journey status to Finish

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

```graphql
mutation {
  updateJourneyStatus(
    journeyId: "UHJvZ3JhbTowYWQ0ZTc3YS04ZWRhLTRlOWItYWM4ZS0xYzg0YTJlOGJiNDI="
    status: FINISH
    ) {
    success
    message
  }
}

```

{% endtab %}

{% tab title="Response" %}

```graphql
{
  "data": {
    "updateJourneyStatus": {
      "success": true,
      "message": "Ok"
    }
  }
}
```

{% endtab %}
{% endtabs %}

If a Journey does not exist, the following message is displayed:

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

```graphql
{
  "data": {
    "updateJourneyStatus": {
      "success": false,
      "message": "Journey not found."
    }
  }
}
```

{% endtab %}
{% endtabs %}
