跳转到内容
EN

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}>;

参数

名称位置类型必填说明
idpathstring是Feedback identifier, prefixed with fb_.

请求体

必填内容类型说明
是application/json

响应

状态码内容类型说明
201application/jsonThe stored message.
400INVALID_PARAMS; correct the fields identified by violations.
401Missing or invalid credential; authenticate with a valid API key, Console session, or machine token.
404FEEDBACK_NOT_FOUND.
413ATTACHMENT_TOO_LARGE; reduce decoded attachments to at most 10 MiB each and 20 MiB total.