İçeriğe geç
R-Service R-Service
Документация Р-Сервис

Projects - Workflows API

Bu içerik henüz dilinizde mevcut değil.

List all workflows of a project with a specific ID.

GET /projects/:id/workflows
Status: 200 OK
[
{
"completed_at": null,
"created_at": "2016-03-10T12:32:00-06:00",
"category": "standard",
"sourceID": null,
"updated_at": "2016-03-14T03:14:17-06:00",
"service": {
"id": 21,
"name": "Email",
"localized_name": "Email",
"provider": {
"name": "Widget Data Center, External IT",
"id": 44,
"account": {
"id": "pro-product",
"name": "Widget International"
}
}
},
"manager": {
"id": 37,
"name": "Barney Turban",
"account": {
"id": "pro-product",
"name": "Widget International"
}
},
"subject": "Upgrade Email servers to Exchange Server 2007 SP2",
"id": 1686,
"impact": "top",
"status": "risk_and_impact",
"completion_target_at": "2016-03-15T16:33:00-06:00"
},
"..."
]

The response contains these fields by default.

Add a link between a project with a specific ID and a workflow with a specific ID.

POST /projects/:id/workflows/:workflow_id
Status: 200 OK
{}

Remove the link between a project with a specific ID and a workflow with a specific ID.

DELETE /projects/:id/workflows/:workflow_id
Status: 204 No Content

Remove all links between a project with a specific ID and its workflows.

DELETE /projects/:id/workflows
Status: 204 No Content