SOP-14:建立療程項目

API SOP

定義新的療程類型,包含定價、恢復資訊與關鍵字。

1 個節點 · 0 條連接medirank
apisopmediranktreatments
ex-sop-14-create-treatment.osop.yaml
# 原始:SOP-14: 建立療程
osop_version: '1.0'
id: sop-14-create-treatment
name: "SOP-14:建立療程項目"
description: "定義新的療程類型,包含定價、恢復資訊與關鍵字。"
version: 1.0.0
tags:
- api
- sop
- medirank
- treatments
nodes:
- id: step_1
  type: api
  subtype: rest
  name: POST /treatments
  description: Define a new treatment with description, pricing, recovery info, and keywords.
  runtime:
    method: POST
    url: https://medi-rank.com/api/v1
    endpoint: /treatments
    headers:
      Authorization: Bearer ${secrets.TOKEN}
    content_type: multipart/form-data
    body:
      name: Hyaluronic Acid Filler
      category: injection
      description: Hyaluronic acid injection for facial contouring...
      how_it_works: Inject hyaluronic acid into target areas...
      suitable_for: Nasolabial folds, tear troughs...
      risks: Possible mild swelling...
      aftercare: Avoid sun exposure for 24 hours...
      typical_price_min: 8000
      typical_price_max: 25000
      recovery_days_min: 1
      recovery_days_max: 7
      keywords[]:
      - hyaluronic acid
      - filler
      cover_image: (file)
      is_published: true