Change a product tour (JSON Merge Patch).
PATCH/api/v1/tours/{tour_id}settings:write
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
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.
| スコープ | settings:write (機密性の高いスコープ) |
| 非同期 | いいえ |
| MCP ツール | update_tour |
| Portal の権限 | edit_tours |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
tour_id | path | string | 必須 | |
Docwize-Version | header | string (date) | 任意 | |
If-Match | header | string | 任意 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | TourPatchInput |
application/merge-patch+json | TourPatchInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | 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 |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
412 | precondition_failed | 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 | 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. |
TourAudiencePatchInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
group_ids | string の配列 または null | 任意 | Replaces the groups the tour is shown to. |
user_ids | string の配列 または null | 任意 | Replaces the people the tour is shown to. |
TourPatchInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
audience | TourAudiencePatchInput または null | 任意 | |
created_at | string (date-time) または null | 任意 | |
created_by | UserRefInput または null | 任意 | |
description | string または null | 任意 | |
frequency | string または null | 任意 | |
modified_at | string (date-time) または null | 任意 | |
modified_by | UserRefInput または null | 任意 | |
name | string または null | 任意 | |
progress_summary | TourProgressSummaryPatchInput または null | 任意 | |
start_url | string または null | 任意 | |
steps | object または null | 任意 | |
tour_id | string または null | 任意 | |
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 |
TourProgressSummaryPatchInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
completed_count | integer または null | 任意 | |
dismissed_count | integer または null | 任意 | |
in_progress_count | integer または null | 任意 |
UserRef
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
display_name | string | 必須 | |
kind | string: user, system, integration または string | 必須 | |
user_id | string または null | 必須 |
UserRefInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
display_name | string | 任意 | |
kind | string: user, system, integration | 任意 | |
user_id | string または null | 任意 |