Skip to main content

Change a product tour (JSON Merge Patch).

PATCH/api/v1/tours/{tour_id}settings:write

Changes what is sent. audience.user_ids and audience.group_ids, when sent, replace that kind of member; the tour must still have an audience afterwards (422). The change is stamped with the caller and the time. If-Match is honoured. Needs Edit Tours, and Manage Tour Audience when the audience changes.

Scopesettings:write (sensitive)
AsynchronousNo
MCP toolupdate_tour
Portal permissionsedit_tours

Parameters​

NameInTypeRequiredDescription
tour_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
If-MatchheaderstringOptional

Request body​

Content typeType
application/jsonTourPatchInput
application/merge-patch+jsonTourPatchInput

Responses​

StatusDescriptionBody
200Success.application/json Tour or object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
412precondition_failedapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

Tour​

FieldTypeRequiredDescription
audienceTourAudience or nullRequiredWho sees the tour; null without View Tour Audience.
created_atstring (date-time) or nullRequired
created_byUserRef or nullRequired
descriptionstring or nullRequired
frequencystring or nullRequiredWhen the player offers the tour again: until_completed, once_per_session, first_login_only or always; null when none was set.
modified_atstring (date-time) or nullRequired
modified_byUserRef or nullRequired
namestringRequired
progress_summaryTourProgressSummary or nullRequiredHow far the audience has got; null without View Other Users Tour Progress.
start_urlstring or nullRequiredThe shell-relative address the tour starts on, such as /?app=search.
stepsobject or nullRequiredThe step tree the Tour Builder saves, a tour_steps document (format_version 1) whose body is the list of steps with their sub-steps; null when the tour has none.
tour_idstringRequired
tour_typeinteger or nullRequiredThe Tour Builder's type code (0 for a guided tour); null when none was set.
trigger_rulesstring or nullRequiredThe text of the tour's trigger rules; null when none.

TourAudience​

FieldTypeRequiredDescription
group_idsarray of stringRequiredThe groups the tour is shown to (everyone in them).
user_idsarray of stringRequiredThe people the tour is shown to.

TourAudiencePatchInput​

FieldTypeRequiredDescription
group_idsarray of string or nullOptionalReplaces the groups the tour is shown to.
user_idsarray of string or nullOptionalReplaces the people the tour is shown to.

TourPatchInput​

FieldTypeRequiredDescription
audienceTourAudiencePatchInput or nullOptional
created_atstring (date-time) or nullOptional
created_byUserRefInput or nullOptional
descriptionstring or nullOptional
frequencystring or nullOptional
modified_atstring (date-time) or nullOptional
modified_byUserRefInput or nullOptional
namestring or nullOptional
progress_summaryTourProgressSummaryPatchInput or nullOptional
start_urlstring or nullOptional
stepsobject or nullOptional
tour_idstring or nullOptional
tour_typeinteger or nullOptional
trigger_rulesstring or nullOptional

TourProgressSummary​

FieldTypeRequiredDescription
completed_countintegerRequired≥ -2147483648; ≤ 2147483647
dismissed_countintegerRequiredStopped without finishing. ≥ -2147483648; ≤ 2147483647
in_progress_countintegerRequiredStarted, but neither completed nor dismissed. ≥ -2147483648; ≤ 2147483647

TourProgressSummaryPatchInput​

FieldTypeRequiredDescription
completed_countinteger or nullOptional
dismissed_countinteger or nullOptional
in_progress_countinteger or nullOptional

UserRef​

FieldTypeRequiredDescription
display_namestringRequired
kindstring: user, system, integration or stringRequired
user_idstring or nullRequired

UserRefInput​

FieldTypeRequiredDescription
display_namestringOptional
kindstring: user, system, integrationOptional
user_idstring or nullOptional