One binding with the definition and the workflow document it runs. Its `ETag` (the body's `rowVersion`) is the `If-Match` of the next write.
GET
/v1/projects/{projectId}/workflow-bindings/{purpose}curl -X GET 'https://api.embodiflow.io/v1/projects/{projectId}/workflow-bindings/{purpose}' \
-H "Authorization: Bearer $EMBODIFLOW_PAT"认证
每个请求都需要携带个人访问令牌(PAT)。
- Authorization: Bearer PAT
路径参数
- projectIdstring必填
- purposestring必填
响应
Success
- dataobject必填
- purposestring必填可选值exportprocessingcurate
- revisionRefstring | null必填
- triggersobject | null必填
- updatedAtstring | null必填
- rowVersionnumber必填
- definitionobject必填
- revisionobject必填
- latestPublishedRevisionobject必填
响应示例
{
"data": {
"purpose": "export",
"revisionRef": "string",
"triggers": {},
"updatedAt": "string",
"rowVersion": 0,
"definition": {
"id": "string",
"code": "string",
"name": "string",
"owner": "tenant",
"latestRevision": 0
},
"revision": {
"spec": {},
"specHash": "string",
"id": "string",
"revision": 0,
"publishedAt": "string"
},
"latestPublishedRevision": {
"id": "string",
"revision": 0,
"publishedAt": "string"
}
}
}服务器https://api.embodiflow.io/v1