solarwinds-itsm-api-definitions 0.2.5 → 0.2.8

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.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/Redocly/development.html +57 -23
  3. data/Redocly/index.html +55 -23
  4. data/Redocly/redoc/schema/resolved_schema.json +1 -1
  5. data/lib/definitions/common/components.json +293 -13
  6. data/lib/definitions/common/examples/associations/category.json +12 -0
  7. data/lib/definitions/common/examples/associations/department.json +9 -0
  8. data/lib/definitions/common/examples/associations/group_assignee.json +27 -0
  9. data/lib/definitions/common/examples/associations/site.json +11 -0
  10. data/lib/definitions/common/examples/associations/sub_category.json +11 -0
  11. data/lib/definitions/common/examples/catalog_item.json +6 -28
  12. data/lib/definitions/common/examples/change.json +233 -20
  13. data/lib/definitions/common/examples/change_catalog.json +5 -15
  14. data/lib/definitions/common/examples/change_request.json +2 -1
  15. data/lib/definitions/common/examples/configuration_item.json +17 -18
  16. data/lib/definitions/common/examples/contract.json +281 -0
  17. data/lib/definitions/common/examples/hardware.json +235 -71
  18. data/lib/definitions/common/examples/incident.json +397 -95
  19. data/lib/definitions/common/examples/other_asset.json +211 -0
  20. data/lib/definitions/common/examples/problem.json +212 -13
  21. data/lib/definitions/common/examples/release.json +26 -22
  22. data/lib/definitions/common/examples/service_request.json +10 -14
  23. data/lib/definitions/common/examples/solution.json +54 -0
  24. data/lib/definitions/common/examples/user.json +4 -15
  25. data/lib/definitions/common/schemas/inventory/mobile.json +2 -0
  26. data/lib/definitions/common/schemas/inventory/other_asset.json +2 -2
  27. data/lib/definitions/common/schemas/procurement/purchase_order.json +97 -1
  28. data/lib/definitions/common/schemas/service_desk/catalog_item.json +1 -0
  29. data/lib/definitions/common/schemas/service_desk/change.json +2 -0
  30. data/lib/definitions/common/schemas/service_desk/change_catalog.json +2 -0
  31. data/lib/definitions/common/schemas/service_desk/change_request.json +1 -0
  32. data/lib/definitions/common/schemas/service_desk/incident.json +72 -23
  33. data/lib/definitions/common/schemas/service_desk/problem.json +2 -0
  34. data/lib/definitions/common/schemas/service_desk/release.json +2 -0
  35. data/lib/definitions/common/schemas/service_desk/service_request.json +2 -6
  36. data/lib/definitions/common/schemas/setup/category.json +4 -2
  37. data/lib/definitions/common/schemas/setup/department.json +3 -1
  38. data/lib/definitions/common/schemas/setup/group.json +3 -2
  39. data/lib/definitions/common/schemas/setup/site.json +4 -1
  40. data/lib/definitions/openapi.json +4 -3
  41. data/lib/definitions/paths/changes/change_by_id.json +6 -2
  42. data/lib/definitions/paths/changes/changes.json +6 -2
  43. data/lib/definitions/paths/contracts/contract_by_id.json +9 -2
  44. data/lib/definitions/paths/contracts/contracts.json +6 -1
  45. data/lib/definitions/paths/hardwares/hardware_by_id.json +6 -2
  46. data/lib/definitions/paths/hardwares/hardwares.json +6 -2
  47. data/lib/definitions/paths/incidents/incident_by_id.json +6 -2
  48. data/lib/definitions/paths/incidents/incidents.json +6 -2
  49. data/lib/definitions/paths/other_assets/other_asset_by_id.json +9 -2
  50. data/lib/definitions/paths/other_assets/other_assets.json +6 -1
  51. data/lib/definitions/paths/problems/problem_by_id.json +6 -2
  52. data/lib/definitions/paths/problems/problems.json +6 -2
  53. data/lib/definitions/paths/purchase_orders/purchase_order_by_id.json +3 -2
  54. data/lib/definitions/paths/purchase_orders/purchase_orders.json +3 -2
  55. data/lib/definitions/paths/solutions/solution_by_id.json +6 -2
  56. data/lib/definitions/paths/solutions/solutions.json +6 -2
  57. metadata +15 -6
@@ -0,0 +1,211 @@
1
+ {
2
+ "examples": {
3
+ "response": {
4
+ "json": {
5
+ "other_asset": {
6
+ "custom": null,
7
+ "id": "1",
8
+ "name": "Apple 1",
9
+ "owner": {
10
+ "group_id": "1",
11
+ "is_user": "true",
12
+ "id": "1",
13
+ "name": "John Doe",
14
+ "email": "john.doe@email.com",
15
+ "avatar": {
16
+ "type": "initials",
17
+ "color": "#1000",
18
+ "initials": "JD"
19
+ }
20
+ },
21
+ "user": {
22
+ "group_id": "1",
23
+ "is_user": "true",
24
+ "id": "1",
25
+ "name": "John Doe",
26
+ "email": "john.doe@email.com",
27
+ "avatar": {
28
+ "type": "initials",
29
+ "color": "#1000",
30
+ "initials": "JD"
31
+ }
32
+ },
33
+ "description": "description",
34
+ "asset_id": "1",
35
+ "site": { "$ref": "./associations/site.json#/site" },
36
+ "department": { "$ref": "./associations/department.json#/department" },
37
+ "asset_type": {
38
+ "id": 161656,
39
+ "account_id": 5,
40
+ "parent_id": 0,
41
+ "name": "Charger"
42
+ },
43
+ "category": { "$ref": "associations/category.json#/category" },
44
+ "ip_address": "0.0.0.0",
45
+ "manufacturer": "Apple",
46
+ "model": "1",
47
+ "serial_number": "1",
48
+ "created_at": "2024-08-27T03:46:18.000-07:00",
49
+ "updated_at": "2024-08-27T03:46:18.000-07:00",
50
+ "address": null,
51
+ "tasks": [],
52
+ "maintenance_contract": null,
53
+ "lease_contract": null,
54
+ "incidents": [],
55
+ "purchase": null,
56
+ "purchase_orders": [],
57
+ "tags": [],
58
+ "hardware_dates": [
59
+ {
60
+ "id": 163900753,
61
+ "date": "2024-08-27",
62
+ "date_type": "Assigned",
63
+ "username": "John Doe",
64
+ "notes": "[Automatic] Technical contact changed to John Doe",
65
+ "user_type": null
66
+ }
67
+ ],
68
+ "latitude": null,
69
+ "longitude": null,
70
+ "custom_fields_values": [
71
+ {
72
+ "id": "1",
73
+ "custom_field_id": "1",
74
+ "name": "Name of custom text field",
75
+ "value": "content",
76
+ "type_name": "Text"
77
+ }
78
+ ]
79
+
80
+ }
81
+ }
82
+ },
83
+ "response_long": {
84
+ "json": {
85
+ "other_asset": {
86
+ "custom": null,
87
+ "id": "1",
88
+ "name": "Apple 1",
89
+ "owner": {
90
+ "group_id": "1",
91
+ "is_user": "true",
92
+ "id": "1",
93
+ "name": "John Doe",
94
+ "email": "john.doe@email.com",
95
+ "avatar": {
96
+ "type": "initials",
97
+ "color": "#1000",
98
+ "initials": "JD"
99
+ }
100
+ },
101
+ "user": {
102
+ "group_id": "1",
103
+ "is_user": "true",
104
+ "id": "1",
105
+ "name": "John Doe",
106
+ "email": "john.doe@email.com",
107
+ "avatar": {
108
+ "type": "initials",
109
+ "color": "#1000",
110
+ "initials": "JD"
111
+ }
112
+ },
113
+ "description": "description",
114
+ "asset_id": "1",
115
+ "site": { "$ref": "./associations/site.json#/site" },
116
+ "department": { "$ref": "./associations/department.json#/department" },
117
+ "asset_type": {
118
+ "id": 161656,
119
+ "account_id": 5,
120
+ "parent_id": 0,
121
+ "name": "Charger"
122
+ },
123
+ "category": { "$ref": "associations/category.json#/category" },
124
+ "status": {
125
+ "id": 1507926,
126
+ "name": "Operational"
127
+ },
128
+ "ip_address": "0.0.0.0",
129
+ "manufacturer": "Apple",
130
+ "model": "1",
131
+ "serial_number": "1",
132
+ "created_at": "2024-08-27T03:46:18.000-07:00",
133
+ "updated_at": "2024-08-27T03:46:18.000-07:00",
134
+ "address": null,
135
+ "tasks": [],
136
+ "maintenance_contract": null,
137
+ "lease_contract": null,
138
+ "incidents": [],
139
+ "purchase": null,
140
+ "purchase_orders": [],
141
+ "tags": [],
142
+ "hardware_dates": [
143
+ {
144
+ "id": 163900753,
145
+ "date": "2024-08-27",
146
+ "date_type": "Assigned",
147
+ "username": "John Doe",
148
+ "notes": "[Automatic] Technical contact changed to John Doe",
149
+ "user_type": null
150
+ }
151
+ ],
152
+ "latitude": null,
153
+ "longitude": null,
154
+ "custom_fields_values": [
155
+ {
156
+ "id": "1",
157
+ "custom_field_id": "1",
158
+ "name": "Name of custom text field",
159
+ "value": "content",
160
+ "type_name": "Text"
161
+ }
162
+ ],
163
+ "attachments": [
164
+ {
165
+ "id": 212598157,
166
+ "content_type": "application/json",
167
+ "size": 583,
168
+ "filename": "myjson.json",
169
+ "url": "https://mydomain.com/attachments/c4d6df03448d80c4d9c1/myjson",
170
+ "shared_attachment": true,
171
+ "attachable_id": 753657,
172
+ "attachable_type": "Problem",
173
+ "attachment_type": "attachment",
174
+ "thumb_url": "/attachments/c4d6df03448d80c4d9c1/myjson.json?thumb=true",
175
+ "secure_url": "/attachments/c4d6df03448d80c4d9c1/myjson.json",
176
+ "link_uuid_url": "/attachments/c4d6df03448d80c4d9c1",
177
+ "uuid": "c4d6df03448d80c4d9c1"
178
+ },
179
+ {
180
+ "id": 212598158,
181
+ "content_type": "text/plain",
182
+ "size": 251,
183
+ "filename": "notpersonal.txt",
184
+ "url": "https://mydomain.com/attachments/c4d6df03448d80c4d9c1/myjson",
185
+ "shared_attachment": false,
186
+ "attachable_id": 753657,
187
+ "attachable_type": "Problem",
188
+ "attachment_type": "attachment",
189
+ "thumb_url": "/attachments/9d2e6444a7773cacab39/notpersonal-txt.plain?thumb=true",
190
+ "secure_url": "/attachments/9d2e6444a7773cacab39/notpersonal-txt.plain",
191
+ "link_uuid_url": "/attachments/9d2e6444a7773cacab39",
192
+ "uuid": "9d2e6444a7773cacab39"
193
+ }
194
+ ],
195
+ "shared_attachments": [
196
+ {
197
+ "id": 212598157,
198
+ "content_type": "application/json",
199
+ "size": 583,
200
+ "filename": "myjson.json",
201
+ "url": "https://mydomain.com/attachments/c4d6df03448d80c4d9c1/myjson",
202
+ "attachable_id": 753657,
203
+ "attachable_type": "Problem"
204
+ }
205
+ ],
206
+ "image_url": "https://mydomain.com/production.main.customer.data/images/959edaa5"
207
+ }
208
+ }
209
+ }
210
+ }
211
+ }
@@ -12,6 +12,7 @@
12
12
  "symptoms": "Symptoms description",
13
13
  "workaround": "workaround description",
14
14
  "assignee": { "email": "john.doe@email.com" },
15
+ "group_assignee": { "name": "Network Team" },
15
16
  "requester": { "email": "john.doe@email.com" },
16
17
  "priority": "High",
17
18
  "add_to_tag_list": "tag1",
@@ -29,7 +30,14 @@
29
30
  },
30
31
  "incident_ids": [100],
31
32
  "itsm_change_ids": [100],
32
- "configuration_item_ids":[100]
33
+ "configuration_item_ids":[100],
34
+ "incidents": [{ "number": 100}],
35
+ "problems": [{ "number": 100}],
36
+ "changes": [{ "number": 100}],
37
+ "solutions": [{ "number": 100}],
38
+ "releases": [{ "number": 100}],
39
+ "purchase_orders": [{ "number": 100}],
40
+ "configuration_items": [{ "name": "Item name" }]
33
41
  }
34
42
  }
35
43
  },
@@ -44,19 +52,97 @@
44
52
  "root_cause": "Root cause description",
45
53
  "symptoms": "Symptoms description",
46
54
  "workaround": "workaround description",
47
- "site": {
55
+ "site": { "$ref": "./associations/site.json#/site" },
56
+ "department": { "$ref": "./associations/department.json#/department" },
57
+ "priority": "High",
58
+ "created_by": {
48
59
  "id": "1",
49
- "name": "Austin TX, USA",
50
- "location": "AUS",
51
- "description": "",
52
- "time_zone": ""
60
+ "account_id": "1",
61
+ "user_id": "1",
62
+ "email": "john.doe@email.com",
63
+ "name": "John Doe",
64
+ "disabled": false,
65
+ "avatar": {
66
+ "type": "initials",
67
+ "color": "#fd4165",
68
+ "initials": "JD"
69
+ }
53
70
  },
54
- "department": {
71
+ "assignee": {
72
+ "group_id": "1",
73
+ "is_user": "true",
55
74
  "id": "1",
56
- "name": "Support",
57
- "description": "",
58
- "default_assignee_id": "1"
75
+ "name": "John Doe",
76
+ "email": "john.doe@email.com",
77
+ "avatar": {
78
+ "type": "initials",
79
+ "color": "#fd4165",
80
+ "initials": "JD"
81
+ }
59
82
  },
83
+ "group_assignee": { "$ref": "./associations/group_assignee.json#/group_assignee" },
84
+ "requester": {
85
+ "id": "1",
86
+ "account_id": "1",
87
+ "user_id": "1",
88
+ "email": "john.doe@email.com",
89
+ "name": "John Doe",
90
+ "disabled": false,
91
+ "avatar": {
92
+ "type": "initials",
93
+ "color": "#fd4165",
94
+ "initials": "JD"
95
+ }
96
+ },
97
+ "custom_fields_values": [
98
+ {
99
+ "id": "10",
100
+ "custom_field_id": "1",
101
+ "name": "Text custom field",
102
+ "value": "content",
103
+ "options": "",
104
+ "type_name": "Text"
105
+ },
106
+ {
107
+ "id": "100",
108
+ "custom_field_id": "2",
109
+ "name": "User custom field",
110
+ "value": "1",
111
+ "options": "",
112
+ "type_name": "User",
113
+ "user": {
114
+ "group_id": 1,
115
+ "is_user": true,
116
+ "id": 1,
117
+ "name": "John Doe",
118
+ "email": "john.doe@email.com"
119
+ }
120
+ }
121
+ ],
122
+ "tags": [{ "id": 1, "name": "tag1", "taggings_count": 1 }],
123
+ "incidents": [{ "id": "100", "href": "https://mydomain.com/incidents/100"}],
124
+ "changes": [{ "id": "100", "href": "https://mydomain.com/changes/100"}],
125
+ "configuration_items": [{ "id": "100", "href": "https://mydomain.com/configuration_items/100"}],
126
+ "problems": [{ "id": "100", "href": "https://mydomain.com/problems/100"}],
127
+ "releases": [{ "id": "100", "href": "https://mydomain.com/releases/100"}],
128
+ "solutions": [{ "id": "100", "href": "https://mydomain.com/solutions/100"}],
129
+ "purchase_orders": [{ "id": "100", "href": "https://mydomain.com/purchase_orders/100"}]
130
+ }
131
+ }
132
+ },
133
+ "response_long": {
134
+ "json": {
135
+ "problem": {
136
+ "id": "10000",
137
+ "number": "1000",
138
+ "name": "Problem Name",
139
+ "description": "description",
140
+ "state": "New",
141
+ "root_cause": "Root cause description",
142
+ "symptoms": "Symptoms description",
143
+ "workaround": "workaround description",
144
+ "site": { "$ref": "./associations/site.json#/site" },
145
+ "department": { "$ref": "./associations/department.json#/department" },
60
146
  "priority": "High",
61
147
  "created_by": {
62
148
  "id": "1",
@@ -74,7 +160,7 @@
74
160
  "assignee": {
75
161
  "group_id": "1",
76
162
  "is_user": "true",
77
- "id": "1",
163
+ "id": "1",
78
164
  "name": "John Doe",
79
165
  "email": "john.doe@email.com",
80
166
  "avatar": {
@@ -83,6 +169,7 @@
83
169
  "initials": "JD"
84
170
  }
85
171
  },
172
+ "group_assignee": { "$ref": "./associations/group_assignee.json#/group_assignee" },
86
173
  "requester": {
87
174
  "id": "1",
88
175
  "account_id": "1",
@@ -124,9 +211,121 @@
124
211
  "tags": [{ "id": 1, "name": "tag1", "taggings_count": 1 }],
125
212
  "incidents": [{ "id": "100", "href": "https://mydomain.com/incidents/100"}],
126
213
  "changes": [{ "id": "100", "href": "https://mydomain.com/changes/100"}],
127
- "configuration_items": [{ "id": "100", "href": "https://mydomain.com/configuration_items/100"}]
214
+ "configuration_items": [{ "id": "100", "href": "https://mydomain.com/configuration_items/100"}],
215
+ "problems": [{ "id": "100", "href": "https://mydomain.com/problems/100"}],
216
+ "releases": [{ "id": "100", "href": "https://mydomain.com/releases/100"}],
217
+ "solutions": [{ "id": "100", "href": "https://mydomain.com/solutions/100"}],
218
+ "purchase_orders": [{ "id": "100", "href": "https://mydomain.com/purchase_orders/100"}],
219
+ "comments": [
220
+ {
221
+ "id": 10,
222
+ "body": "everybody",
223
+ "user": {
224
+ "id": 4713,
225
+ "name": "Simmy",
226
+ "email": "simmy.dian@mydomain.com",
227
+ "avatar": {
228
+ "type": "image",
229
+ "image_class": "gravatar_image",
230
+ "sso_image_class": "",
231
+ "avatar_url": "https://secure.gravatar.com/avatar/8f6284"
232
+ }
233
+ },
234
+ "created_at": "2024-08-18T22:40:42.000-07:00",
235
+ "updated_at": "2024-08-18T22:40:42.000-07:00",
236
+ "attachments": [],
237
+ "inline_attachments": [],
238
+ "shared_attachments": [],
239
+ "is_private": false,
240
+ "seen_by": [8610546],
241
+ "isTask": false,
242
+ "task_info": {},
243
+ "requester": null,
244
+ "commenter_id": 139207697,
245
+ "commenter_type": "Incident",
246
+ "origin": 0
247
+ }
248
+ ],
249
+ "statistics": [
250
+ {
251
+ "statistic_type": "State Changed",
252
+ "time": "00:01",
253
+ "time_elapsed": "00:01",
254
+ "business_time_elapsed": "00:00",
255
+ "value": "2024-08-20 07:59:20 UTC"
256
+ },
257
+ {
258
+ "statistic_type": "sla_state_changed",
259
+ "time": "00:00",
260
+ "time_elapsed": "00:00",
261
+ "business_time_elapsed": "00:00",
262
+ "value": "2024-08-20 07:58:48 UTC"
263
+ },
264
+ {
265
+ "statistic_type": "to_resolve",
266
+ "time": "00:01",
267
+ "time_elapsed": "00:01",
268
+ "business_time_elapsed": "00:00",
269
+ "value": "2024-08-20 07:59:20 UTC"
270
+ },
271
+ {
272
+ "statistic_type": "to_close",
273
+ "time": "00:02",
274
+ "time_elapsed": "00:02",
275
+ "business_time_elapsed": "00:00",
276
+ "value": "2024-08-18 13:41:58 UTC"
277
+ }
278
+ ],
279
+ "attachments": [
280
+ {
281
+ "id": 212598157,
282
+ "content_type": "application/json",
283
+ "size": 583,
284
+ "filename": "myjson.json",
285
+ "url": "https://mydomain.com/attachments/c4d6df03448d80c4d9c1/myjson",
286
+ "shared_attachment": false,
287
+ "attachable_id": 753657,
288
+ "attachable_type": "Problem",
289
+ "attachment_type": "attachment",
290
+ "thumb_url": "/attachments/c4d6df03448d80c4d9c1/myjson.json?thumb=true",
291
+ "secure_url": "/attachments/c4d6df03448d80c4d9c1/myjson.json",
292
+ "link_uuid_url": "/attachments/c4d6df03448d80c4d9c1",
293
+ "uuid": "c4d6df03448d80c4d9c1"
294
+ },
295
+ {
296
+ "id": 212598158,
297
+ "content_type": "text/plain",
298
+ "size": 251,
299
+ "filename": "notpersonal.txt",
300
+ "url": "https://mydomain.com/attachments/c4d6df03448d80c4d9c1/myjson",
301
+ "shared_attachment": false,
302
+ "attachable_id": 753657,
303
+ "attachable_type": "Problem",
304
+ "attachment_type": "attachment",
305
+ "thumb_url": "/attachments/9d2e6444a7773cacab39/notpersonal-txt.plain?thumb=true",
306
+ "secure_url": "/attachments/9d2e6444a7773cacab39/notpersonal-txt.plain",
307
+ "link_uuid_url": "/attachments/9d2e6444a7773cacab39",
308
+ "uuid": "9d2e6444a7773cacab39"
309
+ }
310
+ ],
311
+ "shared_attachments": [{
312
+ "id": 212598158,
313
+ "content_type": "application/json",
314
+ "size": 583,
315
+ "filename": "myjson.json",
316
+ "url": "https://mydomain.com/attachments/c4d6df03448d80c4d9c1/myjson",
317
+ "shared_attachment": true,
318
+ "attachable_id": 753657,
319
+ "attachable_type": "Problem",
320
+ "attachment_type": "attachment",
321
+ "thumb_url": "/attachments/c4d6df03448d80c4d9c1/myjson.json?thumb=true",
322
+ "secure_url": "/attachments/c4d6df03448d80c4d9c1/myjson.json",
323
+ "link_uuid_url": "/attachments/c4d6df03448d80c4d9c1",
324
+ "uuid": "c4d6df03448d80c4d9c1"
325
+ }],
326
+ "total_time_spent": 10
128
327
  }
129
328
  }
130
329
  }
131
330
  }
132
- }
331
+ }
@@ -8,12 +8,13 @@
8
8
  "department_id": 1,
9
9
  "description": "description",
10
10
  "state": 1,
11
- "plan": "plan description" ,
11
+ "plan": "plan description",
12
12
  "build": "build description",
13
13
  "deploy": "deploy description",
14
14
  "planned_start_at": "2025-01-01 00:00",
15
- "planned_end_at": "2025-01-01 05:00" ,
15
+ "planned_end_at": "2025-01-01 05:00",
16
16
  "assignee": { "email": "john.doe@email.com" },
17
+ "group_assignee": { "name": "Network Team" },
17
18
  "requester": { "email": "john.doe@email.com" },
18
19
  "priority": "High",
19
20
  "add_to_tag_list": "tag1",
@@ -33,7 +34,14 @@
33
34
  { "id": "1", "approver_ids": "1", "approval_condition": "1" }
34
35
  ],
35
36
  "itsm_change_ids": [100],
36
- "configuration_item_ids":[100]
37
+ "configuration_item_ids":[100],
38
+ "incidents": [{ "number": 100}],
39
+ "problems": [{ "number": 100}],
40
+ "changes": [{ "number": 100}],
41
+ "solutions": [{ "number": 100}],
42
+ "releases": [{ "number": 100}],
43
+ "purchase_orders": [{ "number": 100}],
44
+ "configuration_items": [{ "name": "Item name" }]
37
45
  }
38
46
  }
39
47
  },
@@ -45,23 +53,13 @@
45
53
  "name": "Release Name",
46
54
  "description": "description",
47
55
  "state": "New",
48
- "plan": "plan description" ,
56
+ "plan": "plan description",
49
57
  "build": "build description",
50
58
  "deploy": "deploy description",
51
59
  "planned_start_at": "2025-01-01T00:00:00.000+01:00",
52
- "planned_end_at": "2025-01-01T05:00:00.000+01:00" ,
53
- "site": {
54
- "id": "1",
55
- "name": "Austin TX, USA",
56
- "location": "AUS",
57
- "description": "Austin TX, USA"
58
- },
59
- "department": {
60
- "id": "1",
61
- "name": "Support",
62
- "description": "Support Department",
63
- "default_assignee_id": "1"
64
- },
60
+ "planned_end_at": "2025-01-01T05:00:00.000+01:00",
61
+ "site": { "$ref": "./associations/site.json#/site" },
62
+ "department": { "$ref": "./associations/department.json#/department" },
65
63
  "priority": "High",
66
64
  "created_by": {
67
65
  "id": "1",
@@ -75,11 +73,11 @@
75
73
  "color": "#fd4165",
76
74
  "initials": "JD"
77
75
  }
78
- },
76
+ },
79
77
  "assignee": {
80
78
  "group_id": "1",
81
79
  "is_user": "true",
82
- "id": "1",
80
+ "id": "1",
83
81
  "name": "John Doe",
84
82
  "email": "john.doe@email.com",
85
83
  "avatar": {
@@ -88,6 +86,7 @@
88
86
  "initials": "JD"
89
87
  }
90
88
  },
89
+ "group_assignee": { "$ref": "./associations/group_assignee.json#/group_assignee" },
91
90
  "requester": {
92
91
  "id": "1",
93
92
  "account_id": "1",
@@ -131,7 +130,7 @@
131
130
  {
132
131
  "group_id": "1",
133
132
  "is_user": "true",
134
- "id": "1",
133
+ "id": "1",
135
134
  "name": "John Doe",
136
135
  "email": "john.doe@email.com",
137
136
  "avatar": {
@@ -142,9 +141,14 @@
142
141
  }
143
142
  ],
144
143
  "changes": [{ "id": "100", "href": "https://mydomain.com/changes/100"}],
145
- "configuration_items": [{ "id": "100", "href": "https://mydomain.com/configuration_items/100"}]
144
+ "configuration_items": [{ "id": "100", "href": "https://mydomain.com/configuration_items/100"}],
145
+ "incidents": [{ "id": "100", "href": "https://mydomain.com/incidents/100"}],
146
+ "problems": [{ "id": "100", "href": "https://mydomain.com/problems/100"}],
147
+ "releases": [{ "id": "100", "href": "https://mydomain.com/releases/100"}],
148
+ "solutions": [{ "id": "100", "href": "https://mydomain.com/solutions/100"}],
149
+ "purchase_orders": [{ "id": "100", "href": "https://mydomain.com/purchase_orders/100"}]
146
150
  }
147
151
  }
148
152
  }
149
153
  }
150
- }
154
+ }
@@ -9,20 +9,16 @@
9
9
  "add_to_tag_list": "tag1, tag2",
10
10
  "remove_from_tag_list": "tag3",
11
11
  "tag_list": "tag1, tag2",
12
- "request_variables_attributes": [
13
- {
14
- "name": "Variable name",
15
- "value": "Content"
16
- },
17
- {
18
- "name": "User Variable",
19
- "user_value": { "email": "john.doe@email.com" }
20
- },
21
- {
22
- "name": "MultyPickList variable",
23
- "value": "option1#dlmtr#option2"
24
- }
25
- ]
12
+ "custom_fields_values_attributes": [
13
+ { "id": 10, "custom_field_id": 1, "value": "content" },
14
+ { "id": 100, "custom_field_id": 2, "value": "1" }
15
+ ],
16
+ "custom_fields_values": {
17
+ "custom_fields_value": [
18
+ { "name": "Text custom field", "value": "content" },
19
+ { "name": "User custom field", "user_value": { "email": "john.doe@email.com" } }
20
+ ]
21
+ }
26
22
  }
27
23
  }
28
24
  }