Edit journey
Edit a journey
Authorizations
Path parameters
short_idstringRequired
Body
short_idstringRead-onlyOptional
titlestringOptional
descriptionstring | nullableOptional
is_activebooleanOptionalDefault:
falseis_templatebooleanOptionalDefault:
falsehas_published_journeybooleanRead-onlyOptional
has_unpublished_changesbooleanOptional
date_publishedstring · date-timeRead-onlyOptional
is_configuredstringRead-onlyOptional
num_actionsintegerRead-onlyOptional
Responses
200Success
application/json
401
Unauthorized
404
Not found
patch
v1/journeys/{short_id}/
import requests
response = requests.patch(
"https://journeys-api.50skills.app/v1/journeys/ekbCvmCd",
json={
"title": "To Rivendell",
"description": "A dangerous journey to Rivendell",
"isActive": true,
"isTemplate": false,
}
)
print(response.json())
{
"shortId": "ekbCvmCd",
"title": "To Rivendell",
"description": "A dangerous journey to Rivendell",
"isActive": true,
"isTemplate": false
}Request samples
import requests
response = requests.patch(
"https://journeys-api.50skills.app/v1/journeys/{short_id}/",
json={
"title": "To Rivendell",
"description": "A dangerous journey to Rivendell",
"isActive": true,
"isTemplate": false,
}
)
print(response.json()) fetch("https://journeys-api.50skills.app/v1/journeys/ekbCvmCd", {
method: "PATCH",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"title": "To Rivendell",
"description": "A dangerous journey to Rivendell",
"isActive": true,
"isTemplate": false
})
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error(error)); Last updated