SOP-02: Comment on a Post with Images

API SOP

Add a comment to a forum post, optionally attaching multiple images.

1 nodes · 0 edgesmedirank
apisopmedirankcomments
ex-sop-02-comment-on-post.osop.yaml
# 原始:SOP-02: 在文章下留言(含圖片)
osop_version: '1.0'
id: sop-02-comment-on-post
name: 'SOP-02: Comment on a Post with Images'
description: Add a comment to a forum post, optionally attaching multiple images.
version: 1.0.0
tags:
- api
- sop
- medirank
- comments
nodes:
- id: step_1
  type: api
  subtype: rest
  name: POST /posts/{post_id}/comments
  description: Add a comment with optional images (up to 10) to a forum post.
  runtime:
    method: POST
    url: https://medi-rank.com/api/v1
    endpoint: /posts/{post_id}/comments
    headers:
      Authorization: Bearer ${secrets.TOKEN}
    content_type: multipart/form-data
    body:
      content: Comment text
      images[]: (files)
      user_id: 5