POST Resolve authoring ports from contract binding identifiers
POST /loom/v1/workflowViewerContext
所属分组:Workflow viewer ·
Read-only and stateless. Accepts at most 200 bindings and 128 KiB. Rejects unknown fields, including draft content, prompts and input values. No preview session or Redis storage is created.
BASE URL
https://router.shengsuanyun.com/api认证方式
Authorization: Bearer YOUR_API_KEY端点列表
POST/loom/v1/workflowViewerContextResolve authoring ports from contract binding identifiers
Read-only and stateless. Accepts at most 200 bindings and 128 KiB. Rejects unknown fields, including draft content, prompts and input values. No preview session or Redis storage is created.
请求体 · 必填
Contract binding identifiers only
application/json
| 字段 | 类型 | 说明 | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
steps | array | 展开结构
数组元素
|
{
"steps": [
{
"executionBinding": {
"kind": "string",
"profileId": "string",
"profileRevision": "string",
"subjectRevisionId": "string"
},
"modelSelection": {
"defaultModelId": "string"
},
"stepId": "string"
}
]
}请求示例
参考地址:https://loomloom.shengsuanyun.com。路径参数与凭据需替换;非 JSON 请求体需按对应格式准备。
curl -X POST 'https://loomloom.shengsuanyun.com/loom/v1/workflowViewerContext' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
--data '{
"steps": [
{
"executionBinding": {
"kind": "string",
"profileId": "string",
"profileRevision": "string",
"subjectRevisionId": "string"
},
"modelSelection": {
"defaultModelId": "string"
},
"stepId": "string"
}
]
}'响应
200 OK
application/json
| 字段 | 类型 | 说明 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
definitionHash | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
schemaVersion | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
source | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
state | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
steps | array | 展开结构
数组元素
|
{
"definitionHash": "string",
"schemaVersion": "string",
"source": "string",
"state": "string",
"steps": [
{
"bindingKind": "string",
"inputPorts": [
{
"acceptedMimeTypes": [
"string"
],
"constraints": {},
"defaultValue": "string",
"description": "string",
"hasDefault": false,
"kind": "string",
"label": "string",
"maxItems": 0,
"minItems": 0,
"portId": "string",
"required": false,
"sequence": {},
"type": "string",
"valueType": "string"
}
],
"modelId": "string",
"operation": "string",
"outputPorts": [
{
"acceptedMimeTypes": [
"string"
],
"constraints": {},
"defaultValue": "string",
"description": "string",
"hasDefault": false,
"kind": "string",
"label": "string",
"maxItems": 0,
"minItems": 0,
"portId": "string",
"required": false,
"sequence": {},
"type": "string",
"valueType": "string"
}
],
"profileId": "string",
"profileRevision": "string",
"reason": "string",
"status": "string",
"stepId": "string",
"subjectRevisionId": "string",
"variant": "string"
}
]
}400 Bad Request
application/json
| 字段 | 类型 | 说明 |
|---|---|---|
code | string | |
error | string |
{
"code": "string",
"error": "string"
}401 Unauthorized
application/json
| 字段 | 类型 | 说明 |
|---|---|---|
code | string | |
error | string |
{
"code": "string",
"error": "string"
}413 Request Entity Too Large
application/json
| 字段 | 类型 | 说明 |
|---|---|---|
code | string | |
error | string |
{
"code": "string",
"error": "string"
}429 Too Many Requests
application/json
| 字段 | 类型 | 说明 |
|---|---|---|
code | string | |
error | string |
{
"code": "string",
"error": "string"
}503 Service Unavailable
application/json
| 字段 | 类型 | 说明 |
|---|---|---|
code | string | |
error | string |
{
"code": "string",
"error": "string"
}