Автоматизации — процессы
Управление workflow-процессами.
Список workflows
В: header
Параметры запроса
Фильтр по статусу процесса
Фильтр по ответственному
Тело ответа
application/json
curl -X GET "https://loading/api/v1/workflows"[
{
"assignedTo": "string",
"createdAt": "string",
"createdBy": "string",
"documentId": "string",
"dueDate": "string",
"id": "string",
"name": "string",
"status": "string",
"steps": [
{
"property1": null,
"property2": null
}
],
"type": "string",
"property1": null,
"property2": null
}
]Создать workflow
В: header
Тело запроса
application/json
TypeScript-определения
Используйте тип request body в TypeScript.
Тело ответа
application/json
curl -X POST "https://loading/api/v1/workflows" \ -H "Content-Type: application/json" \ -d '{ "documentId": "string", "name": "string", "steps": [ { "id": "string", "type": "string" } ] }'{
"assignedTo": "string",
"createdAt": "string",
"createdBy": "string",
"documentId": "string",
"dueDate": "string",
"id": "string",
"name": "string",
"status": "string",
"steps": [
{
"property1": null,
"property2": null
}
],
"type": "string",
"property1": null,
"property2": null
}curl -X GET "https://loading/api/v1/workflows/active"[
{
"assignedTo": "string",
"createdAt": "string",
"createdBy": "string",
"documentId": "string",
"dueDate": "string",
"id": "string",
"name": "string",
"status": "string",
"steps": [
{
"property1": null,
"property2": null
}
],
"type": "string",
"property1": null,
"property2": null
}
]Workflows связанные с документом
В: header
Параметры пути
Идентификатор документа
Тело ответа
application/json
curl -X GET "https://loading/api/v1/workflows/document/string"[
{
"assignedTo": "string",
"createdAt": "string",
"createdBy": "string",
"documentId": "string",
"dueDate": "string",
"id": "string",
"name": "string",
"status": "string",
"steps": [
{
"property1": null,
"property2": null
}
],
"type": "string",
"property1": null,
"property2": null
}
]curl -X GET "https://loading/api/v1/workflows/overdue"[
{
"assignedTo": "string",
"createdAt": "string",
"createdBy": "string",
"documentId": "string",
"dueDate": "string",
"id": "string",
"name": "string",
"status": "string",
"steps": [
{
"property1": null,
"property2": null
}
],
"type": "string",
"property1": null,
"property2": null
}
]curl -X GET "https://loading/api/v1/workflows/templates/available"[
{
"description": "string",
"name": "string",
"property1": null,
"property2": null
}
]Создать workflow из шаблона
В: header
Параметры пути
Имя шаблона (см. GET /templates/available)
Тело запроса
application/json
TypeScript-определения
Используйте тип request body в TypeScript.
Тело ответа
application/json
application/problem+json
curl -X POST "https://loading/api/v1/workflows/templates/string" \ -H "Content-Type: application/json" \ -d '{ "documentId": "string" }'{
"assignedTo": "string",
"createdAt": "string",
"createdBy": "string",
"documentId": "string",
"dueDate": "string",
"id": "string",
"name": "string",
"status": "string",
"steps": [
{
"property1": null,
"property2": null
}
],
"type": "string",
"property1": null,
"property2": null
}{
"code": "string",
"detail": "string",
"errors": [
{
"name": "string",
"pointer": "string",
"reason": "string",
"rule": "string"
}
],
"instance": "string",
"request_id": "string",
"status": 0,
"title": "string",
"trace_id": "string",
"type": "http://example.com",
"property1": null,
"property2": null
}Получить workflow
В: header
Параметры пути
Идентификатор процесса
Тело ответа
application/json
curl -X GET "https://loading/api/v1/workflows/string"{
"assignedTo": "string",
"createdAt": "string",
"createdBy": "string",
"documentId": "string",
"dueDate": "string",
"id": "string",
"name": "string",
"status": "string",
"steps": [
{
"property1": null,
"property2": null
}
],
"type": "string",
"property1": null,
"property2": null
}Удалить workflow
В: header
Параметры пути
Идентификатор процесса
Тело ответа
application/json
curl -X DELETE "https://loading/api/v1/workflows/string"{
"message": "string"
}Обновить workflow
В: header
Параметры пути
Идентификатор процесса
Тело запроса
application/json
TypeScript-определения
Используйте тип request body в TypeScript.
Тело ответа
application/json
curl -X PUT "https://loading/api/v1/workflows/string" \ -H "Content-Type: application/json" \ -d '{}'{
"assignedTo": "string",
"createdAt": "string",
"createdBy": "string",
"documentId": "string",
"dueDate": "string",
"id": "string",
"name": "string",
"status": "string",
"steps": [
{
"property1": null,
"property2": null
}
],
"type": "string",
"property1": null,
"property2": null
}Отменить workflow
В: header
Параметры пути
Идентификатор процесса
Тело запроса
application/json
TypeScript-определения
Используйте тип request body в TypeScript.
Причина отмены
Тело ответа
application/json
curl -X POST "https://loading/api/v1/workflows/string/cancel" \ -H "Content-Type: application/json" \ -d '{}'{
"message": "string"
}Приостановить workflow
В: header
Параметры пути
Идентификатор процесса
Тело запроса
application/json
TypeScript-определения
Используйте тип request body в TypeScript.
Причина паузы
Тело ответа
application/json
curl -X POST "https://loading/api/v1/workflows/string/pause" \ -H "Content-Type: application/json" \ -d '{}'{
"message": "string"
}Возобновить workflow
В: header
Параметры пути
Идентификатор процесса
Тело ответа
application/json
curl -X POST "https://loading/api/v1/workflows/string/resume"{
"message": "string"
}Запустить workflow
В: header
Параметры пути
Идентификатор процесса
Тело ответа
application/json
curl -X POST "https://loading/api/v1/workflows/string/start"{
"assignedTo": "string",
"createdAt": "string",
"createdBy": "string",
"documentId": "string",
"dueDate": "string",
"id": "string",
"name": "string",
"status": "string",
"steps": [
{
"property1": null,
"property2": null
}
],
"type": "string",
"property1": null,
"property2": null
}