Archive a team algorithm: it leaves the library and the default lists (`GET /v1/algorithms?archived=only` lists it); its versions stay, so published workflows that pin one keep running. Idempotent. A built-in algorithm is `404 ALGORITHM_DEFINITION_NOT_FOUND`.
POST
/v1/algorithms/{algorithmId}/archivecurl -X POST 'https://api.embodiflow.io/v1/algorithms/{algorithmId}/archive' \
-H "Authorization: Bearer $EMBODIFLOW_PAT"认证
每个请求都需要携带个人访问令牌(PAT)。
- Authorization: Bearer PAT
路径参数
- algorithmIdstring必填
响应
Success
- dataobject必填
- idstring必填
- tenantIdstring | null必填
- codestring必填
- namestring必填
- descriptionstring | null必填
- ownerTypestring必填
- systemSlugstring | null必填
- latestVersionstring | null必填
- archivedone of必填
- createdAtstring必填
- updatedAtstring必填
- usedByCountnumber
响应示例
{
"data": {
"id": "string",
"tenantId": "string",
"code": "string",
"name": "string",
"description": "string",
"ownerType": "string",
"systemSlug": "string",
"latestVersion": "string",
"archived": false,
"createdAt": "string",
"updatedAt": "string",
"usedByCount": 0
}
}服务器https://api.embodiflow.io/v1