SOP-11: Update a Clinic Review
API SOPEdit an existing clinic review, add or remove images.
2 nodes · 1 edgesmedirank
apisopmedirankclinic-reviews
Visual
ex-sop-11-update-clinic-review.osop.yaml
# 原始:SOP-11: 修改診所評價
osop_version: '1.0'
id: sop-11-update-clinic-review
name: 'SOP-11: Update a Clinic Review'
description: Edit an existing clinic review, add or remove images.
version: 1.0.0
tags:
- api
- sop
- medirank
- clinic-reviews
nodes:
- id: step_1
type: api
subtype: rest
name: GET /clinic-reviews/{review_id}
description: Fetch current review and note existing image IDs.
runtime:
method: GET
url: https://medi-rank.com/api/v1
endpoint: /clinic-reviews/{review_id}
headers:
Authorization: Bearer ${secrets.TOKEN}
- id: step_2
type: api
subtype: rest
name: PUT /clinic-reviews/{review_id}
description: Update rating, content, remove old images, or add new images.
runtime:
method: PUT
url: https://medi-rank.com/api/v1
endpoint: /clinic-reviews/{review_id}
headers:
Authorization: Bearer ${secrets.TOKEN}
content_type: multipart/form-data
body:
rating: 4
content: Updated review text
removed_images[]:
- 3
- 5
review_images[]: (files)
edges:
- from: step_1
to: step_2
mode: sequential