Skip to main content

Create a product tour.

POST/api/v1/tourssettings:write

Creates the tour and its audience together. The audience must name at least one person or group that exists: a tour with no audience would be hidden from everyone. Needs Create Tours and Manage Tour Audience.

Scopesettings:write (sensitive)
AsynchronousNo
MCP toolcreate_tour
Portal permissionscreate_tours, manage_tour_audience

Parameters​

NameInTypeRequiredDescription
Docwize-Versionheaderstring (date)Optional
Idempotency-KeyheaderstringOptionalmax 255

Request body​

Content typeType
application/jsonTourCreateInput

Responses​

StatusDescriptionBody
201Success.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
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409idempotency_in_progressapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_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.

TourAudienceInputInput​

FieldTypeRequiredDescription
group_idsarray of stringOptionalThe groups the tour is shown to.
user_idsarray of stringOptionalThe people the tour is shown to.

TourCreateInput​

FieldTypeRequiredDescription
audienceTourAudienceInputInputRequiredWho sees the tour: at least one person or group, which must exist. Needs Manage Tour Audience.
descriptionstring or nullOptionalAt most 500 characters.
frequencystring or nullOptionalAt most 100 characters; the Tour Builder offers until_completed, once_per_session, first_login_only and always.
namestringRequiredAt most 100 characters.
start_urlstring or nullOptionalThe shell-relative address the tour starts on. At most 2000 characters.
stepsobject or nullOptionalA tour_steps document (format_version 1); its body must be a list.
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

UserRef​

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