GET Read frozen authoring ports for an exact private version
GET /loom/v1/users/me/templates/{template}/versions/{version}/viewerContext
所属分组:Workflow viewer ·
Owner-only. v3/v4 ports come from the saved contract, never a newer live model catalog. Earlier unsupported or invalid contracts explicitly degrade without changing the existing spec readback. Model accounting usage is not an extra workflow output. Saved-version failures use viewer_quota_exceeded, viewer_context_too_large and viewer_context_unavailable.
https://router.shengsuanyun.com/apiAuthorization: Bearer YOUR_API_KEY端点列表
GET/loom/v1/users/me/templates/{template}/versions/{version}/viewerContextRead frozen authoring ports for an exact private version
Owner-only. v3/v4 ports come from the saved contract, never a newer live model catalog. Earlier unsupported or invalid contracts explicitly degrade without changing the existing spec readback. Model accounting usage is not an extra workflow output. Saved-version failures use viewer_quota_exceeded, viewer_context_too_large and viewer_context_unavailable.
请求参数
| 参数 | 位置 / 类型 | 说明 |
|---|---|---|
template必填 | path / any | Private template ID |
version必填 | path / any | Exact version ID |
请求示例
参考地址:https://loomloom.shengsuanyun.com。路径参数与凭据需替换;非 JSON 请求体需按对应格式准备。
curl -X GET 'https://loomloom.shengsuanyun.com/loom/v1/users/me/templates/{template}/versions/{version}/viewerContext' \
-H 'Authorization: Bearer YOUR_API_KEY'响应
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"
}404 Not Found
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"
}