# Journey Status

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

### Required Arguments

| Argument    | Type          | Description                                                                                      |
| ----------- | ------------- | ------------------------------------------------------------------------------------------------ |
| `journeyId` | String        | [ProfileJourney ](https://docs.suggestic.com/graphql/queries/content/journey#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 %}
