Reply on a feedback
Code Mode: praxis.organization.feedback.messages.create
HTTP: POST /organization/v1/feedback/{id}/messages
Add your message to a feedback conversation, for example to answer a question from support. A reply while the phase is awaiting_customer moves it to in_progress and notifies support.
签名
praxis.organization.feedback.messages.create(args:{path:{id:string};body:{/** Markdown text; at most 4096 Unicode code points. e.g. "The order id is 20261019." */ body:string;/** Up to five attachments; decoded bytes must not exceed 10 MiB each or 20 MiB in total. */ attachments?:Array<{/** Attachment filename shown with the message. e.g. "screenshot.png" */ name:string;/** MIME type of the attachment content. e.g. "image/png" */ content_type:string;/** Base64-encoded file bytes with standard padding; limits apply to decoded bytes. e.g. "ZXJyb3I=" */ data_base64:string}>}}):Promise<{/** Object type tag, always feedback.message. */ object:"feedback.message";/** Message identifier, prefixed with fbm_. */ id:string;/** Identifier of the feedback this message belongs to. */ feedback_id:string;/** Who wrote the message. */ author:{/** customer means your organization wrote it; staff means the support team wrote it; system means a recorded event or the automatic acknowledgement. */ kind?:"customer"|"staff"|"system";/** Display name of the support team member; present only when kind is staff. */ name?:string};/** Markdown text of the message. */ body:string;/** Present on system messages that record a change. */ event?:{/** Kind of change recorded: phase_changed means the phase moved from one value to another; assigned means the handling owner changed. */ type?:"phase_changed"|"assigned";/** Value before the change. */ from?:string|null;/** Value after the change. */ to?:string|null}|{/** Kind of change recorded: phase_changed means the phase moved from one value to another; assigned means the handling owner changed. */ type?:"phase_changed"|"assigned";/** Value before the change. */ from?:string|null;/** Value after the change. */ to?:string|null};/** Files attached to this item; metadata only, bytes are never inlined. */ attachments:Array<{/** Attachment identifier, prefixed with fba_. */ id?:string;/** Original filename of the attachment. */ name?:string;/** MIME type of the attachment content. */ content_type?:string;/** Size of the attachment in bytes. */ size?:number;/** When the attachment was stored. */ create_time?:string}>;/** When the message was written. */ create_time:string}>;参数
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| id | path | string | 是 | Feedback identifier, prefixed with fb_. |
请求体
| 必填 | 内容类型 | 说明 |
|---|---|---|
| 是 | application/json |
响应
| 状态码 | 内容类型 | 说明 |
|---|---|---|
| 201 | application/json | The stored message. |
| 400 | INVALID_PARAMS; correct the fields identified by violations. | |
| 401 | Missing or invalid credential; authenticate with a valid API key, Console session, or machine token. | |
| 404 | FEEDBACK_NOT_FOUND. | |
| 413 | ATTACHMENT_TOO_LARGE; reduce decoded attachments to at most 10 MiB each and 20 MiB total. |