Create traveller journey
Adds a traveller to a specific journey. If the traveller does not exist as a company traveller, they will be automatically created and then subsequently added to the journey.
Create a new journey for traveller
Authorizations
AuthorizationstringRequired
Token-based authentication with required prefix "Token"
Body
idstringRead-onlyRequired
short_idstring · max: 255 · nullableOptional
journeystringRequired
emailstring · emailRequired
namestringOptional
phonestringOptional
supervisorstring · nullableOptional
date_startstring · dateOptional
progressnumber · doubleRead-onlyRequired
statusstringRead-onlyRequired
picturestring · uriOptional
sourcestringWrite-onlyOptional
source_descriptionstringWrite-onlyOptional
Responses
201Success
application/json
idstringRead-onlyRequired
short_idstring · max: 255 · nullableOptional
journeystringRequired
emailstring · emailRequired
namestringOptional
phonestringOptional
supervisorstring · nullableOptional
date_startstring · dateOptional
progressnumber · doubleRead-onlyRequired
statusstringRead-onlyRequired
picturestring · uriOptional
sourcestringWrite-onlyOptional
source_descriptionstringWrite-onlyOptional
400Error
application/json
401
Unauthorized
postv1/traveller-journeys/
Python
import requests
response = requests.post(
"https://journeys-api.50skills.app/v1/traveller-journeys",
json={
"email": "michael@jordan.com",
"email": "Just Better",
"journey": "6mK7AyZV"
}
)
print(response.json())
{
"id": "9rKdez72",
"shortId": "9rKdez72",
"name": "Just Better",
"phone": null,
"journey": "6mK7AyZV",
"dateStart": "2023-01-01",
"progress": 1,
"status": "not_started",
"supervisor": {
"email": "jackson@bulls.nba",
"isActive": true,
"name": "Phil Jackson",
"role": "admin",
"shortId": "7x89X78y"
},
"email": "michael@jordan.com",
"picture": null,
"source": "Manually added",
"source_description": null,
"actions": [
{
"shortId": "AYGpl0Go",
"action": "journey_start",
"description": null,
"values": null,
"isAutomatic": false,
"isComplete": false,
"parentAction": null,
"savedValues": null,
"data": null,
"result": null
},
{
"short_id": "8oz3MlGp",
"action": "send_sms",
"description": "Send sms to traveller",
"values": {
"message": {
"value": "Sms message to traveller"
},
"recipients": [
{
"value": "+3546666666"
}
]
},
"isAutomatic": false,
"isComplete": false,
"parentAction": "AYGpl0Go",
"savedValues": null,
"data": {
"message": "Sms message to traveller",
"recipients": [
"+3546666666"
]
},
"result": null
}
]
}Request samples
Response samples
Last updated