solarwinds-itsm-api-definitions 0.2.5 → 0.2.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Redocly/development.html +57 -23
- data/Redocly/index.html +55 -23
- data/Redocly/redoc/schema/resolved_schema.json +1 -1
- data/lib/definitions/common/components.json +293 -13
- data/lib/definitions/common/examples/associations/category.json +12 -0
- data/lib/definitions/common/examples/associations/department.json +9 -0
- data/lib/definitions/common/examples/associations/group_assignee.json +27 -0
- data/lib/definitions/common/examples/associations/site.json +11 -0
- data/lib/definitions/common/examples/associations/sub_category.json +11 -0
- data/lib/definitions/common/examples/catalog_item.json +6 -28
- data/lib/definitions/common/examples/change.json +233 -20
- data/lib/definitions/common/examples/change_catalog.json +5 -15
- data/lib/definitions/common/examples/change_request.json +2 -1
- data/lib/definitions/common/examples/configuration_item.json +17 -18
- data/lib/definitions/common/examples/contract.json +281 -0
- data/lib/definitions/common/examples/hardware.json +235 -71
- data/lib/definitions/common/examples/incident.json +397 -95
- data/lib/definitions/common/examples/other_asset.json +211 -0
- data/lib/definitions/common/examples/problem.json +212 -13
- data/lib/definitions/common/examples/release.json +26 -22
- data/lib/definitions/common/examples/service_request.json +10 -14
- data/lib/definitions/common/examples/solution.json +54 -0
- data/lib/definitions/common/examples/user.json +4 -15
- data/lib/definitions/common/schemas/inventory/mobile.json +2 -0
- data/lib/definitions/common/schemas/inventory/other_asset.json +2 -2
- data/lib/definitions/common/schemas/procurement/purchase_order.json +97 -1
- data/lib/definitions/common/schemas/service_desk/catalog_item.json +1 -0
- data/lib/definitions/common/schemas/service_desk/change.json +2 -0
- data/lib/definitions/common/schemas/service_desk/change_catalog.json +2 -0
- data/lib/definitions/common/schemas/service_desk/change_request.json +1 -0
- data/lib/definitions/common/schemas/service_desk/incident.json +72 -23
- data/lib/definitions/common/schemas/service_desk/problem.json +2 -0
- data/lib/definitions/common/schemas/service_desk/release.json +2 -0
- data/lib/definitions/common/schemas/service_desk/service_request.json +2 -6
- data/lib/definitions/common/schemas/setup/category.json +4 -2
- data/lib/definitions/common/schemas/setup/department.json +3 -1
- data/lib/definitions/common/schemas/setup/group.json +3 -2
- data/lib/definitions/common/schemas/setup/site.json +4 -1
- data/lib/definitions/openapi.json +4 -3
- data/lib/definitions/paths/changes/change_by_id.json +6 -2
- data/lib/definitions/paths/changes/changes.json +6 -2
- data/lib/definitions/paths/contracts/contract_by_id.json +9 -2
- data/lib/definitions/paths/contracts/contracts.json +6 -1
- data/lib/definitions/paths/hardwares/hardware_by_id.json +6 -2
- data/lib/definitions/paths/hardwares/hardwares.json +6 -2
- data/lib/definitions/paths/incidents/incident_by_id.json +6 -2
- data/lib/definitions/paths/incidents/incidents.json +6 -2
- data/lib/definitions/paths/other_assets/other_asset_by_id.json +9 -2
- data/lib/definitions/paths/other_assets/other_assets.json +6 -1
- data/lib/definitions/paths/problems/problem_by_id.json +6 -2
- data/lib/definitions/paths/problems/problems.json +6 -2
- data/lib/definitions/paths/purchase_orders/purchase_order_by_id.json +3 -2
- data/lib/definitions/paths/purchase_orders/purchase_orders.json +3 -2
- data/lib/definitions/paths/solutions/solution_by_id.json +6 -2
- data/lib/definitions/paths/solutions/solutions.json +6 -2
- metadata +15 -6
|
@@ -8,6 +8,13 @@
|
|
|
8
8
|
"schema": { "type": "string" },
|
|
9
9
|
"example": "Bearer TOKEN"
|
|
10
10
|
},
|
|
11
|
+
"edit_mode":{
|
|
12
|
+
"name": "edit_mode",
|
|
13
|
+
"in": "query",
|
|
14
|
+
"schema": { "type": "boolean" },
|
|
15
|
+
"description": "For creating multiple level of approvers you must set this parameter to true: {DOMAIN_NAME}/purchase_orders?edit_mode=true",
|
|
16
|
+
"example": "true"
|
|
17
|
+
},
|
|
11
18
|
"id_param": {
|
|
12
19
|
"name": "id",
|
|
13
20
|
"in": "path",
|
|
@@ -41,12 +48,166 @@
|
|
|
41
48
|
"value": { "": "{DOMAIN_NAME}/incidents?updated={Days}" }
|
|
42
49
|
}
|
|
43
50
|
}
|
|
51
|
+
},
|
|
52
|
+
"layout": {
|
|
53
|
+
"name": "layout",
|
|
54
|
+
"in": "query",
|
|
55
|
+
"description": "For detailed information and the complete set of data returned with each layout, please refer to the response samples",
|
|
56
|
+
"required": false,
|
|
57
|
+
"schema": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"default": "short"
|
|
60
|
+
},
|
|
61
|
+
"examples": {
|
|
62
|
+
"example1": {
|
|
63
|
+
"summary": "Retrieves general data about the incidents",
|
|
64
|
+
"value": {
|
|
65
|
+
"": "layout=short"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"example2": {
|
|
69
|
+
"summary": "Provides more detailed information, including properties such as comments, attachments, service statistics, and more",
|
|
70
|
+
"value": { "": "layout=long" }
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"layout_problems": {
|
|
75
|
+
"name": "layout",
|
|
76
|
+
"in": "query",
|
|
77
|
+
"description": "For detailed information and the complete set of data returned with each layout, please refer to the response samples",
|
|
78
|
+
"required": false,
|
|
79
|
+
"schema": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"default": "short"
|
|
82
|
+
},
|
|
83
|
+
"examples": {
|
|
84
|
+
"example1": {
|
|
85
|
+
"summary": "Retrieves general data about the problems",
|
|
86
|
+
"value": {
|
|
87
|
+
"": "layout=short"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"example2": {
|
|
91
|
+
"summary": "Provides more detailed information, including properties such as comments, attachments and more",
|
|
92
|
+
"value": { "": "layout=long" }
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"layout_changes": {
|
|
97
|
+
"name": "layout",
|
|
98
|
+
"in": "query",
|
|
99
|
+
"description": "For detailed information and the complete set of data returned with each layout, please refer to the response samples",
|
|
100
|
+
"required": false,
|
|
101
|
+
"schema": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"default": "short"
|
|
104
|
+
},
|
|
105
|
+
"examples": {
|
|
106
|
+
"example1": {
|
|
107
|
+
"summary": "Retrieves general data about the changes",
|
|
108
|
+
"value": {
|
|
109
|
+
"": "layout=short"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"example2": {
|
|
113
|
+
"summary": "Provides more detailed information, including properties such as comments, attachments and more",
|
|
114
|
+
"value": { "": "layout=long" }
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"layout_contracts": {
|
|
119
|
+
"name": "layout",
|
|
120
|
+
"in": "query",
|
|
121
|
+
"description": "For detailed information and the complete set of data returned with each layout, please refer to the response samples",
|
|
122
|
+
"required": false,
|
|
123
|
+
"schema": {
|
|
124
|
+
"type": "string",
|
|
125
|
+
"default": "short"
|
|
126
|
+
},
|
|
127
|
+
"examples": {
|
|
128
|
+
"example1": {
|
|
129
|
+
"summary": "Retrieves general data about the contracts",
|
|
130
|
+
"value": {
|
|
131
|
+
"": "layout=short"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"example2": {
|
|
135
|
+
"summary": "Provides more detailed information, including properties such as purchases, attachments and more",
|
|
136
|
+
"value": { "": "layout=long" }
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"layout_solutions": {
|
|
141
|
+
"name": "layout",
|
|
142
|
+
"in": "query",
|
|
143
|
+
"description": "For detailed information and the complete set of data returned with each layout, please refer to the response samples",
|
|
144
|
+
"required": false,
|
|
145
|
+
"schema": {
|
|
146
|
+
"type": "string",
|
|
147
|
+
"default": "short"
|
|
148
|
+
},
|
|
149
|
+
"examples": {
|
|
150
|
+
"example1": {
|
|
151
|
+
"summary": "Retrieves general data about the solutions",
|
|
152
|
+
"value": {
|
|
153
|
+
"": "layout=short"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"example2": {
|
|
157
|
+
"summary": "Includes the same properties as the short layout, with additional details such as comments and total time spent",
|
|
158
|
+
"value": { "": "layout=long" }
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"layout_hardwares": {
|
|
163
|
+
"name": "layout",
|
|
164
|
+
"in": "query",
|
|
165
|
+
"description": "For detailed information and the complete set of data returned with each layout, please refer to the response samples",
|
|
166
|
+
"required": false,
|
|
167
|
+
"schema": {
|
|
168
|
+
"type": "string",
|
|
169
|
+
"default": "short"
|
|
170
|
+
},
|
|
171
|
+
"examples": {
|
|
172
|
+
"example1": {
|
|
173
|
+
"summary": "Retrieves general data about the hardwares",
|
|
174
|
+
"value": {
|
|
175
|
+
"": "layout=short"
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"example2": {
|
|
179
|
+
"summary": "Provides more detailed information, including properties such as contract, purchase, attachments and more",
|
|
180
|
+
"value": { "": "layout=long" }
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"layout_other_assets": {
|
|
185
|
+
"name": "layout",
|
|
186
|
+
"in": "query",
|
|
187
|
+
"description": "For detailed information and the complete set of data returned with each layout, please refer to the response samples",
|
|
188
|
+
"required": false,
|
|
189
|
+
"schema": {
|
|
190
|
+
"type": "string",
|
|
191
|
+
"default": "short"
|
|
192
|
+
},
|
|
193
|
+
"examples": {
|
|
194
|
+
"example1": {
|
|
195
|
+
"summary": "Retrieves general data about the other assets",
|
|
196
|
+
"value": {
|
|
197
|
+
"": "layout=short"
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
"example2": {
|
|
201
|
+
"summary": "Provides more detailed information, including properties such as image url, attachments and more",
|
|
202
|
+
"value": { "": "layout=long" }
|
|
203
|
+
}
|
|
204
|
+
}
|
|
44
205
|
}
|
|
45
206
|
},
|
|
46
207
|
"schemas": {
|
|
47
208
|
"association_by_name": {
|
|
48
209
|
"type": "object",
|
|
49
|
-
"
|
|
210
|
+
"anyOf": [{
|
|
50
211
|
"type": "object",
|
|
51
212
|
"required": ["name"],
|
|
52
213
|
"properties": {
|
|
@@ -57,7 +218,7 @@
|
|
|
57
218
|
},
|
|
58
219
|
"association_by_email": {
|
|
59
220
|
"type": "object",
|
|
60
|
-
"
|
|
221
|
+
"anyOf": [{
|
|
61
222
|
"type": "object",
|
|
62
223
|
"required": ["email"],
|
|
63
224
|
"properties": {
|
|
@@ -127,12 +288,39 @@
|
|
|
127
288
|
]
|
|
128
289
|
},
|
|
129
290
|
"approval_levels_attributes": {
|
|
130
|
-
"
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
291
|
+
"type": "object",
|
|
292
|
+
"properties": {
|
|
293
|
+
"1": { "$ref": "components.json#/components/request/schemas/approval_level" },
|
|
294
|
+
"2": { "$ref": "components.json#/components/request/schemas/approval_level" }
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
"approval_levels_attributes_for_xml": {
|
|
298
|
+
"type": "object",
|
|
299
|
+
"properties": {
|
|
300
|
+
"approval_level": { "$ref": "components.json#/components/request/schemas/approval_level" }
|
|
301
|
+
}
|
|
134
302
|
},
|
|
135
303
|
"approval_level": {
|
|
304
|
+
"type": "object",
|
|
305
|
+
"properties": {
|
|
306
|
+
"approver_ids": { "type": "string", "example": "1, 2, 3" },
|
|
307
|
+
"approval_condition": { "type": "string", "example": "1" }
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
"update_approval_levels": {
|
|
311
|
+
"type": "object",
|
|
312
|
+
"properties": {
|
|
313
|
+
"1": { "$ref": "components.json#/components/request/schemas/update_approval_level" },
|
|
314
|
+
"2": { "$ref": "components.json#/components/request/schemas/update_approval_level" }
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
"update_approval_levels_for_xml": {
|
|
318
|
+
"type": "object",
|
|
319
|
+
"properties": {
|
|
320
|
+
"approval_level": { "$ref": "components.json#/components/request/schemas/update_approval_level" }
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
"update_approval_level": {
|
|
136
324
|
"type": "object",
|
|
137
325
|
"properties": {
|
|
138
326
|
"id": { "$ref": "components.json#/components/common/schemas/association_by_id" },
|
|
@@ -166,7 +354,7 @@
|
|
|
166
354
|
"description": "for xml requests, please add: type=\"array\". for example: \"\\<cc type='array'\\> \\<cc\\>john.doe@email.com\\<\/cc\\> \\<\/cc\\>\""
|
|
167
355
|
},
|
|
168
356
|
"reports_to": {
|
|
169
|
-
"
|
|
357
|
+
"anyOf": [
|
|
170
358
|
{
|
|
171
359
|
"type": "object",
|
|
172
360
|
"required": ["id"],
|
|
@@ -187,7 +375,7 @@
|
|
|
187
375
|
"description": "Required field for update operations"
|
|
188
376
|
},
|
|
189
377
|
"name": { "type": "string", "example": "Item Name" },
|
|
190
|
-
"description": { "type": "string", "example": "Item
|
|
378
|
+
"description": { "type": "string", "example": "Item Description" },
|
|
191
379
|
"serial_number": { "type": "string", "example": "XXXXX" },
|
|
192
380
|
"part_number": { "$ref": "components.json#/components/common/schemas/number_or_string" },
|
|
193
381
|
"price": { "$ref": "components.json#/components/common/schemas/number_or_string" },
|
|
@@ -195,6 +383,35 @@
|
|
|
195
383
|
"discount": { "$ref": "components.json#/components/common/schemas/number_or_string" },
|
|
196
384
|
"tax": { "$ref": "components.json#/components/common/schemas/number_or_string" }
|
|
197
385
|
}
|
|
386
|
+
},
|
|
387
|
+
"sla_violations": {
|
|
388
|
+
"type": "array",
|
|
389
|
+
"items": {
|
|
390
|
+
"type": "object",
|
|
391
|
+
"properties": {
|
|
392
|
+
"id": { "$ref": "components.json#/components/response/schemas/id" },
|
|
393
|
+
"name": { "type": "string", "example": "SLA001" },
|
|
394
|
+
"sla_id": { "type": "integer", "example": 1 },
|
|
395
|
+
"sla_type": { "type": "string", "example": "not_commented" },
|
|
396
|
+
"resolved": { "type": "boolean", "example": false },
|
|
397
|
+
"time_delay": { "type": "integer", "example": 1 },
|
|
398
|
+
"time_units": { "type": "string", "example": "minutes" },
|
|
399
|
+
"assignee": {
|
|
400
|
+
"type": "object",
|
|
401
|
+
"properties": {
|
|
402
|
+
"id": { "$ref": "components.json#/components/response/schemas/id" },
|
|
403
|
+
"name": { "type": "string", "example": "John Doe" }
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
"group_assignee": {
|
|
407
|
+
"type": "object",
|
|
408
|
+
"properties": {
|
|
409
|
+
"id": { "$ref": "components.json#/components/response/schemas/id" },
|
|
410
|
+
"name": { "type": "string", "example": "Network team" }
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
}
|
|
198
415
|
}
|
|
199
416
|
}
|
|
200
417
|
},
|
|
@@ -204,6 +421,7 @@
|
|
|
204
421
|
"readOnly": true,
|
|
205
422
|
"oneOf": [{ "type": "string", "example": "1" }, { "type": "integer", "example": 1 }]
|
|
206
423
|
},
|
|
424
|
+
"date_field": { "type": "string", "example": "2020-01-01T00:00:00.000+00:00"},
|
|
207
425
|
"custom_field": {
|
|
208
426
|
"type": "object",
|
|
209
427
|
"properties": {
|
|
@@ -218,6 +436,10 @@
|
|
|
218
436
|
"type": "array",
|
|
219
437
|
"items": { "$ref": "components.json#/components/response/schemas/custom_field" }
|
|
220
438
|
},
|
|
439
|
+
"description_field": {
|
|
440
|
+
"type": "string",
|
|
441
|
+
"example": "description"
|
|
442
|
+
},
|
|
221
443
|
"category_subcategory": {
|
|
222
444
|
"type": "object",
|
|
223
445
|
"properties": {
|
|
@@ -225,7 +447,9 @@
|
|
|
225
447
|
"name": { "type": "string", "example": "Category / Subcategory name" },
|
|
226
448
|
"default_tags": { "type": "string", "example": "tag1, tag2" },
|
|
227
449
|
"parent_id": { "$ref": "components.json#/components/response/schemas/id" },
|
|
228
|
-
"default_assignee_id": { "$ref": "components.json#/components/response/schemas/id" }
|
|
450
|
+
"default_assignee_id": { "$ref": "components.json#/components/response/schemas/id" },
|
|
451
|
+
"default_group_assignee_id": { "$ref": "components.json#/components/response/schemas/id" },
|
|
452
|
+
"deleted": { "type": "boolean", "example": false }
|
|
229
453
|
}
|
|
230
454
|
},
|
|
231
455
|
"avatar": {
|
|
@@ -246,12 +470,35 @@
|
|
|
246
470
|
"properties": {
|
|
247
471
|
"group_id": { "$ref": "components.json#/components/common/schemas/association_by_id" },
|
|
248
472
|
"is_user": { "oneOf": [{ "type": "string", "example": "true" }, { "type": "boolean" }] },
|
|
249
|
-
"id":
|
|
473
|
+
"id": { "$ref": "components.json#/components/response/schemas/id" },
|
|
250
474
|
"name": { "type": "string", "example": "John Doe" },
|
|
251
475
|
"email": { "type": "string", "example": "john.doe@email.com" },
|
|
252
476
|
"avatar": { "$ref": "components.json#/components/response/schemas/avatar" }
|
|
253
477
|
}
|
|
254
478
|
},
|
|
479
|
+
"group_assignee_details": {
|
|
480
|
+
"type": "object",
|
|
481
|
+
"properties": {
|
|
482
|
+
"group_id": { "$ref": "components.json#/components/common/schemas/association_by_id" },
|
|
483
|
+
"is_user": { "type": "string", "example": "false" },
|
|
484
|
+
"id": { "$ref": "components.json#/components/response/schemas/id" },
|
|
485
|
+
"name": { "type": "string", "example": "John Doe" },
|
|
486
|
+
"description": { "type": "string", "example": "John Doe" },
|
|
487
|
+
"avatar": { "$ref": "components.json#/components/response/schemas/avatar" },
|
|
488
|
+
"memberships": { "$ref": "components.json#/components/response/schemas/memberships" }
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
"memberships": {
|
|
492
|
+
"type": "array",
|
|
493
|
+
"items": {
|
|
494
|
+
"type": "object",
|
|
495
|
+
"properties": {
|
|
496
|
+
"id": { "type": "string", "example": "1" },
|
|
497
|
+
"user": { "type": "string", "example": "John Doe" },
|
|
498
|
+
"type": { "type": "string", "example": "User" }
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
},
|
|
255
502
|
"user_details": {
|
|
256
503
|
"type": "object",
|
|
257
504
|
"properties": {
|
|
@@ -267,7 +514,7 @@
|
|
|
267
514
|
"site_response": {
|
|
268
515
|
"type": "object",
|
|
269
516
|
"properties": {
|
|
270
|
-
"id":
|
|
517
|
+
"id": { "$ref": "components.json#/components/response/schemas/id" },
|
|
271
518
|
"name": { "type": "string", "example": "Austin TX, USA" },
|
|
272
519
|
"description": { "type": "string", "example": "AUS" },
|
|
273
520
|
"location": { "type": "string", "example": "AUS" },
|
|
@@ -280,7 +527,8 @@
|
|
|
280
527
|
"id": { "$ref": "components.json#/components/response/schemas/id" },
|
|
281
528
|
"name": { "type": "string", "example": "Support" },
|
|
282
529
|
"description": { "type": "string", "example": "Support Department" },
|
|
283
|
-
"default_assignee_id": { "$ref": "components.json#/components/response/schemas/id" }
|
|
530
|
+
"default_assignee_id": { "$ref": "components.json#/components/response/schemas/id" },
|
|
531
|
+
"default_group_assignee_id": { "$ref": "components.json#/components/response/schemas/id" }
|
|
284
532
|
}
|
|
285
533
|
},
|
|
286
534
|
"response_attachments": {
|
|
@@ -420,7 +668,7 @@
|
|
|
420
668
|
"updated_at": { "type": "string", "example": "2020-10-01T00:00:00.000+01:00" },
|
|
421
669
|
"id": { "$ref": "components.json#/components/common/schemas/association_by_id" },
|
|
422
670
|
"name": { "type": "string", "example": "Item Name" },
|
|
423
|
-
"description": { "type": "string", "example": "Item
|
|
671
|
+
"description": { "type": "string", "example": "Item Description" },
|
|
424
672
|
"serial_number": { "type": "string", "example": "XXXXX" },
|
|
425
673
|
"part_number": { "$ref": "components.json#/components/common/schemas/number_or_string" },
|
|
426
674
|
"price": { "$ref": "components.json#/components/common/schemas/number_or_string" },
|
|
@@ -428,6 +676,35 @@
|
|
|
428
676
|
"discount": { "$ref": "components.json#/components/common/schemas/number_or_string" },
|
|
429
677
|
"tax": { "$ref": "components.json#/components/common/schemas/number_or_string" }
|
|
430
678
|
}
|
|
679
|
+
},
|
|
680
|
+
"sla_violations": {
|
|
681
|
+
"type": "array",
|
|
682
|
+
"items": {
|
|
683
|
+
"type": "object",
|
|
684
|
+
"properties": {
|
|
685
|
+
"id": { "$ref": "components.json#/components/response/schemas/id" },
|
|
686
|
+
"name": { "type": "string", "example": "SLA001" },
|
|
687
|
+
"sla_id": { "type": "integer", "example": 1 },
|
|
688
|
+
"sla_type": { "type": "string", "example": "not_commented" },
|
|
689
|
+
"resolved": { "type": "boolean", "example": false },
|
|
690
|
+
"time_delay": { "type": "integer", "example": 1 },
|
|
691
|
+
"time_units": { "type": "string", "example": "minutes" },
|
|
692
|
+
"assignee": {
|
|
693
|
+
"type": "object",
|
|
694
|
+
"properties": {
|
|
695
|
+
"id": { "$ref": "components.json#/components/response/schemas/id" },
|
|
696
|
+
"name": { "type": "string", "example": "John Doe" }
|
|
697
|
+
}
|
|
698
|
+
},
|
|
699
|
+
"group_assignee": {
|
|
700
|
+
"type": "object",
|
|
701
|
+
"properties": {
|
|
702
|
+
"id": { "$ref": "components.json#/components/response/schemas/id" },
|
|
703
|
+
"name": { "type": "string", "example": "Network team" }
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
}
|
|
431
708
|
}
|
|
432
709
|
}
|
|
433
710
|
},
|
|
@@ -447,6 +724,9 @@
|
|
|
447
724
|
"number_or_string": {
|
|
448
725
|
"anyOf": [{ "type": "string", "example": "1" }, { "type": "integer", "example": 1 }]
|
|
449
726
|
},
|
|
727
|
+
"number_or_string_phone": {
|
|
728
|
+
"anyOf": [{ "type": "string", "example": "12345" }, { "type": "integer", "example": 12345 }]
|
|
729
|
+
},
|
|
450
730
|
"string_or_null": {
|
|
451
731
|
"type": "string",
|
|
452
732
|
"nullable": true,
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"group_assignee": {
|
|
3
|
+
"id": 1,
|
|
4
|
+
"name": "Helpdesk Team",
|
|
5
|
+
"disabled": false,
|
|
6
|
+
"is_user": false,
|
|
7
|
+
"avatar": {
|
|
8
|
+
"type": "group",
|
|
9
|
+
"color": "#2eabcf",
|
|
10
|
+
"klass": "RealGroup"
|
|
11
|
+
},
|
|
12
|
+
"reports_to": {
|
|
13
|
+
"id": 1,
|
|
14
|
+
"avatar": null,
|
|
15
|
+
"name": "Super Manager"
|
|
16
|
+
},
|
|
17
|
+
"type": "RealGroup",
|
|
18
|
+
"send_notifications": true,
|
|
19
|
+
"memberships": [
|
|
20
|
+
{
|
|
21
|
+
"id": 11,
|
|
22
|
+
"type": "User",
|
|
23
|
+
"user": "John Doe"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"description": "description",
|
|
10
10
|
"state": "Approved",
|
|
11
11
|
"default_assignee_id": "1",
|
|
12
|
+
"default_group_assignee_id": "1",
|
|
12
13
|
"category": { "name": "Facilities" },
|
|
13
14
|
"subcategory": { "name": "Equipment" },
|
|
14
15
|
"expected_delivery_time": "1 day",
|
|
@@ -29,33 +30,10 @@
|
|
|
29
30
|
"name": "CI Name",
|
|
30
31
|
"description": "description",
|
|
31
32
|
"created_at": "2025-01-01T00:00:00.000+01:00",
|
|
32
|
-
"site": {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"description": "",
|
|
37
|
-
"time_zone": ""
|
|
38
|
-
},
|
|
39
|
-
"department": {
|
|
40
|
-
"id": "1",
|
|
41
|
-
"name": "Support",
|
|
42
|
-
"description": "",
|
|
43
|
-
"default_assignee_id": "1"
|
|
44
|
-
},
|
|
45
|
-
"category": {
|
|
46
|
-
"id": "10000",
|
|
47
|
-
"name": "Facilities",
|
|
48
|
-
"default_tags": "tagA, tagB",
|
|
49
|
-
"parent_id": "null",
|
|
50
|
-
"default_assignee_id": "1"
|
|
51
|
-
},
|
|
52
|
-
"subcategory": {
|
|
53
|
-
"id": "1000",
|
|
54
|
-
"name": "Equipment",
|
|
55
|
-
"default_tags": "",
|
|
56
|
-
"parent_id": "10000",
|
|
57
|
-
"default_assignee_id": "1"
|
|
58
|
-
},
|
|
33
|
+
"site": { "$ref": "./associations/site.json#/site" },
|
|
34
|
+
"department": { "$ref": "./associations/department.json#/department" },
|
|
35
|
+
"category": { "$ref": "associations/category.json#/category" },
|
|
36
|
+
"sub_category": { "$ref": "associations/sub_category.json#/sub_category" },
|
|
59
37
|
"expected_delivery_time": "1 day",
|
|
60
38
|
"currency": "USD",
|
|
61
39
|
"price": "1",
|
|
@@ -67,4 +45,4 @@
|
|
|
67
45
|
}
|
|
68
46
|
}
|
|
69
47
|
}
|
|
70
|
-
}
|
|
48
|
+
}
|