This page was automatically generated from tracezilla’s Swagger API documentation 2026-07-17
GET /tasks-and-controls/tasks/{taskId}
Get single Task
Description
Returns signle Task
Parameters (path)
| Name | Required | Description | Values |
|---|---|---|---|
| taskId | required | Target Task. |
Responses
200
successful operation
406
not acceptable
500
internal server error
PUT /tasks-and-controls/tasks/{taskId}
Update existing Task
Description
Update the specified resource in storage.
Parameters (path)
| Name | Required | Description | Values |
|---|---|---|---|
| taskId | required | Target Task. |
Request body
Description
Target Task.
Required
This parameter is required.
Request body JSON schema
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
{
"required": [
"name",
"trigger",
"assignment_rule",
"first_date"
],
"properties": {
"id": {
"description": "Id of the record",
"type": "string",
"format": "uuid",
"readOnly": true,
"example": "be3233c4-c0a2-4f47-a62a-303492c20ba6"
},
"available_for_collection": {
"description": "Collection where this task should be added. Only for tasks where the *trigger* is *manual*",
"type": "string",
"format": "string",
"enum": [
"Order",
"Lot",
"Sku",
"Partner",
"Recipe",
"Expense"
],
"example": "Order"
},
"assigned_to_id": {
"description": "Id of user that this task should be assigned to by default",
"type": "integer",
"format": "int32",
"example": 1234
},
"assignment_rule": {
"description": "The rule of how this task should be assigned",
"type": "string",
"format": "string",
"enum": [
"order_owner",
"specified_user",
"creator",
"none",
"role_admin",
"role_bookkeeper",
"role_production",
"role_controller",
"role_seller",
"role_purchaser",
"role_quality",
"role_logistics",
"role_warehouse",
"role_client"
],
"example": "role_admin"
},
"block_completion_rule": {
"description": "Rule of how and when an uncompleted task should block the completion of an operation, \nsuch as receive order, approve recipe",
"type": "string",
"format": "string",
"default": "deviation_without_comment",
"enum": [
"deviation_without_comment",
"deviation",
"always",
"never"
],
"example": "deviation_without_comment"
},
"created_by_id": {
"description": "Id of the user that created the task",
"type": "integer",
"format": "int32",
"example": 1234
},
"days_after_parent": {
"description": "How many days after parent task should this task be considered",
"format": "int8",
"example": 12
},
"days_before_occurrence": {
"description": "For recurring tasks. How many days there should be since the last occurrence has happened",
"format": "int8",
"example": 12
},
"duration": {
"description": "Expected duration in minutes",
"type": "integer",
"format": "int32",
"example": 1234
},
"duration_expr": {
"description": "Currently not used",
"type": "string",
"format": "string",
"example": ""
},
"first_date": {
"description": "From when this task should be triggered",
"type": "string",
"format": "date",
"example": "2019-01-01"
},
"hours_per_day": {
"description": "Number of work hours on a work day for all day events",
"type": "number",
"format": "double",
"example": "8.0"
},
"last_date": {
"description": "When this task is no longer relevant",
"type": "string",
"format": "date",
"example": "2019-01-01"
},
"manager_id": {
"description": "Id of the user that is the manager of the task",
"type": "integer",
"format": "int32",
"example": 1234
},
"name": {
"description": "Name of the task",
"type": "string",
"format": "string",
"example": "Receipt control"
},
"documentation_url": {
"description": "Url of external documentation",
"type": "string",
"format": "string",
"example": "https://mywebpage.com/doc.html"
},
"ext_entry_rule": {
"description": "Rule for if an by who task completion by external party should be enabled\nLeave empty to not have external completion enabled",
"type": "string",
"format": "string",
"enum": [
"primary_partner",
"deliver_to",
"pickup_from",
"forwarder"
],
"example": "primary_partner"
},
"parent_id": {
"description": "Id of optional parent task",
"type": "string",
"format": "uuid",
"example": "be3233c4-c0a2-4f47-a62a-303492c20ba6"
},
"ref": {
"description": "Reference code of the task",
"type": "string",
"format": "string",
"example": "A string"
},
"resource_id": {
"description": "Id of related resource used in this task",
"type": "string",
"format": "uuid",
"example": "be3233c4-c0a2-4f47-a62a-303492c20ba6"
},
"sequence": {
"description": "The seqeunce in which this task should appear for trigger-based tasks",
"type": "string",
"format": "string",
"example": "A01"
},
"start_time": {
"description": "The default start time of the day",
"type": "string",
"format": "string",
"example": "08:00"
},
"trigger": {
"description": "What the trigger should be for this task",
"type": "string",
"format": "string",
"enum": [
"manual",
"recurring",
"parent_start",
"parent_end",
"order_inbound_confirm",
"order_inbound_confirm",
"order_inbound_dispatch",
"order_inbound_receipt",
"order_lot_inbound_receipt",
"order_outbound_confirm",
"order_outbound_dispatch",
"order_outbound_receipt",
"order_case_complete",
"order_sales_service_added",
"invoice_booked",
"expense_approval",
"partner_created",
"partner_recurring",
"order_recipe_added",
"recipe_approval",
"sku_approval",
"supplier_approval",
"customer_approval",
"forwarder_approval",
"producer_approval"
],
"example": "manual"
},
"block_operation": {
"description": "Boolean indicating if the trigger operation should be blocked untill task has been completed",
"type": "boolean",
"format": "boolean",
"example": true
},
"active": {
"description": "Boolean indicating if the record is active and could be referenced from other entities",
"type": "boolean",
"format": "boolean",
"example": true
},
"all_day": {
"description": "If this is an all day activity",
"type": "boolean",
"format": "boolean",
"example": true
},
"created_at": {
"description": "The time when the record was created in UTC date & time (Iso8601 ZuluString)",
"type": "string",
"format": "date-time",
"readOnly": true,
"example": "2019-01-01T13:25:32.312Z"
},
"updated_at": {
"description": "The time when the record was updated in UTC date & time (Iso8601 ZuluString)",
"type": "string",
"format": "date-time",
"readOnly": true,
"example": "2019-01-01T13:25:32.312Z"
}
},
"type": "object"
}
Responses
403
Unauthorized request
406
not acceptable
500
Internal server error
DELETE /tasks-and-controls/tasks/{taskId}
Delete Tasks
Description
Remove the specified resource from storage.
Parameters (path)
| Name | Required | Description | Values |
|---|---|---|---|
| taskId | required | Target Task. |
Responses
403
Unauthorized request
406
not acceptable
500
Internal server error