Returns the caller-owned historical authoring spec without exposing or validating its frozen execution bundle.
请求参数 参数 位置 / 类型 说明 template必填 path / any Private template ID version必填 path / any Private template version ID
请求示例 参考地址:https://loomloom.shengsuanyun.com。路径参数与凭据需替换;非 JSON 请求体需按对应格式准备。
cURL Python JavaScript
curl -X GET 'https://loomloom.shengsuanyun.com/loom/v1/users/me/templates/{template}/versions/{version}' \
-H 'Authorization: Bearer YOUR_API_KEY'响应 200 OKapplication/json 字段 类型 说明 canonicalSpecobject createdAtUnixinteger createdByinteger definitionHashstring specVersionstring templateIdstring versionIdstring versionNotestring versionNumberinteger
{
"canonicalSpec": {},
"createdAtUnix": 0,
"createdBy": 0,
"definitionHash": "string",
"specVersion": "string",
"templateId": "string",
"versionId": "string",
"versionNote": "string",
"versionNumber": 0
}400 Bad Requestapplication/json 字段 类型 说明 codestring errorstring
{
"code": "string",
"error": "string"
}401 Unauthorizedapplication/json 字段 类型 说明 codestring errorstring
{
"code": "string",
"error": "string"
}403 Forbiddenapplication/json 字段 类型 说明 codestring errorstring
{
"code": "string",
"error": "string"
}404 Not Foundapplication/json 字段 类型 说明 codestring errorstring
{
"code": "string",
"error": "string"
}500 Internal Server Errorapplication/json 字段 类型 说明 codestring errorstring
{
"code": "string",
"error": "string"
}