Technical Docs
Ask or search…
K

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
Query
Response
mutation {
updateJourneyStatus(
journeyId: "UHJvZ3JhbTowYWQ0ZTc3YS04ZWRhLTRlOWItYWM4ZS0xYzg0YTJlOGJiNDI="
status: FINISH
) {
success
message
}
}
{
"data": {
"updateJourneyStatus": {
"success": true,
"message": "Ok"
}
}
}
If a Journey does not exist, the following message is displayed:
Response
{
"data": {
"updateJourneyStatus": {
"success": false,
"message": "Journey not found."
}
}
}