メインコンテンツまでスキップ

Post a message to a workflow.

POST/api/v1/workflows/{workflow_id}/messagesworkflows:manage
注記

このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。

Posts to everyone who can see the workflow, on one of its items (workflow_item_id, required when it has several). mention_emails notify active users by email after the message is saved. Attach files afterwards with create_workflow_message_attachment.

スコープworkflows:manage
非同期いいえ
MCP ツールcreate_workflow_message
Portal の権限create_workflow_messages

パラメーター​

名前場所型必須説明
workflow_idpathstring必須
Docwize-Versionheaderstring (date)任意
Idempotency-Keyheaderstring任意max 255

リクエスト本文​

Content-Type型
application/jsonWorkflowMessagePostInput

応答​

ステータス説明本文
201Success.application/json WorkflowMessage または 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
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

エラー​

この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。

スキーマ​

UserRef​

フィールド型必須説明
display_namestring必須
kindstring: user, system, integration または string必須
user_idstring または null必須

WorkflowMessage​

フィールド型必須説明
attachmentsstring の配列必須The attachments' file names; list_workflow_message_attachments gives their IDs.
from_callerboolean必須
is_privateboolean必須
reply_to_workflow_message_idstring または null必須
senderUserRef必須
sent_atstring (date-time) または null必須
subjectstring必須
textstring必須
workflow_idstring必須
workflow_item_idstring または null必須
workflow_message_idstring必須

WorkflowMessagePostInput​

フィールド型必須説明
mention_emailsstring の配列任意Active users to notify by email.
messagestring必須
reply_to_workflow_message_idstring または null任意
workflow_item_idstring または null任意The item the message is on; required when the workflow has several.