跳转到主要内容
POST
/
publishers
/
{publisherId}
/
nodes
/
{nodeId}
/
claim-my-node
Claim nodeId into publisherId for the authenticated publisher
curl --request POST \
  --url https://api.comfy.org/publishers/{publisherId}/nodes/{nodeId}/claim-my-node \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "GH_TOKEN": "<string>"
}
'
{
  "error": "<string>",
  "message": "<string>"
}

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

路径参数

publisherId
string
必填
nodeId
string
必填

请求体

application/json
GH_TOKEN
string
必填

GitHub token to verify if the user owns the repo of the node

响应

Node claimed successfully