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

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

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

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

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

Last updated