Create a product tour.
POST/api/v1/tourssettings:write
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
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.
| スコープ | settings:write (機密性の高いスコープ) |
| 非同期 | いいえ |
| MCP ツール | create_tour |
| Portal の権限 | create_tours, manage_tour_audience |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
Docwize-Version | header | string (date) | 任意 | |
Idempotency-Key | header | string | 任意 | max 255 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | TourCreateInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
201 | Success. | application/json Tour または object |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
409 | idempotency_in_progress | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | idempotency_key_reused, validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
スキーマ
Tour
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
audience | TourAudience または null | 必須 | Who sees the tour; null without View Tour Audience. |
created_at | string (date-time) または null | 必須 | |
created_by | UserRef または null | 必須 | |
description | string または null | 必須 | |
frequency | string または null | 必須 | When the player offers the tour again: until_completed, once_per_session, first_login_only or always; null when none was set. |
modified_at | string (date-time) または null | 必須 | |
modified_by | UserRef または null | 必須 | |
name | string | 必須 | |
progress_summary | TourProgressSummary または null | 必須 | How far the audience has got; null without View Other Users Tour Progress. |
start_url | string または null | 必須 | The shell-relative address the tour starts on, such as /?app=search. |
steps | object または null | 必須 | The 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_id | string | 必須 | |
tour_type | integer または null | 必須 | The Tour Builder's type code (0 for a guided tour); null when none was set. |
trigger_rules | string または null | 必須 | The text of the tour's trigger rules; null when none. |
TourAudience
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
group_ids | string の配列 | 必須 | The groups the tour is shown to (everyone in them). |
user_ids | string の配列 | 必須 | The people the tour is shown to. |
TourAudienceInputInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
group_ids | string の配列 | 任意 | The groups the tour is shown to. |
user_ids | string の配列 | 任意 | The people the tour is shown to. |
TourCreateInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
audience | TourAudienceInputInput | 必須 | Who sees the tour: at least one person or group, which must exist. Needs Manage Tour Audience. |
description | string または null | 任意 | At most 500 characters. |
frequency | string または null | 任意 | At most 100 characters; the Tour Builder offers until_completed, once_per_session, first_login_only and always. |
name | string | 必須 | At most 100 characters. |
start_url | string または null | 任意 | The shell-relative address the tour starts on. At most 2000 characters. |
steps | object または null | 任意 | A tour_steps document (format_version 1); its body must be a list. |
tour_type | integer または null | 任意 | |
trigger_rules | string または null | 任意 |
TourProgressSummary
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
completed_count | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
dismissed_count | integer | 必須 | Stopped without finishing. ≥ -2147483648; ≤ 2147483647 |
in_progress_count | integer | 必須 | Started, but neither completed nor dismissed. ≥ -2147483648; ≤ 2147483647 |
UserRef
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
display_name | string | 必須 | |
kind | string: user, system, integration または string | 必須 | |
user_id | string または null | 必須 |