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"Authorization
Send a personal access token with every request.
- Authorization: Bearer PAT
Path parameters
- algorithmIdstringrequired
Responses
Success
- dataobjectrequired
- idstringrequired
- tenantIdstring | nullrequired
- codestringrequired
- namestringrequired
- descriptionstring | nullrequired
- ownerTypestringrequired
- systemSlugstring | nullrequired
- latestVersionstring | nullrequired
- archivedone ofrequired
- createdAtstringrequired
- updatedAtstringrequired
- usedByCountnumber
Response example
{
"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
}
}Servershttps://api.embodiflow.io/v1