跳轉到主要內容
PUT
/
v1
/
projects
/
{projectId}
/
pathway
取代 Pathway
curl --request PUT \
  --url https://api.pathors.com/v1/projects/{projectId}/pathway \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "nodes": [
    {}
  ],
  "edges": [
    {}
  ],
  "version": "<string>"
}
'

請求

PUT https://api.pathors.com/v1/projects/{projectId}/pathway
取代整個 Pathway。若要進行細部更新,請改用節點端點。

路徑參數

projectId
string
必填
專案 ID

標頭

Authorization
string
必填
使用您的 Developer Key 進行 Bearer 令牌認證

請求主體

nodes
array
必填
Pathway 節點陣列。必須至少包含一個 start 節點。
edges
array
必填
連接各節點的邊陣列。
version
string
必填
Pathway 版本字串。

回應

{
  "message": "Pathway saved"
}