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

Workflow Templates - Task Templates API

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

Consider using the Task Template Relations API instead.

List all task templates of a workflow template with a specific ID.

GET /workflow_templates/:id/task_templates
Status: 200 OK
[
{
"created_at": "2016-03-14T03:13:46-06:00",
"category": "implementation",
"sourceID": null,
"updated_at": "2016-03-14T03:13:46-06:00",
"subject": "Inform Operations that events can be ignored",
"id": 40,
"impact": "none",
"disabled": false
},
{
"created_at": "2016-03-14T03:13:46-06:00",
"category": "approval",
"sourceID": null,
"updated_at": "2016-03-14T03:13:46-06:00",
"subject": "Windows Server service owner approval",
"id": 39,
"impact": null,
"disabled": false
},
"..."
]

The response contains these fields .

Add a link between a workflow template with a specific ID and a task template with a specific ID.

POST /workflow_templates/:id/task_templates?task_template_id=:id
POST /workflow_templates/:id/task_templates?task_template_id=:id&phase_name=:name
Status: 200 OK
{}

Remove the link between a workflow template with a specific ID and a task template with a specific ID.

DELETE /workflow_templates/:id/task_templates/:task_template_id
Status: 204 No Content

Remove all links between a workflow template with a specific ID and its task templates.

DELETE /workflow_templates/:id/task_templates
Status: 204 No Content