solarwinds-itsm-api-definitions 0.2.7 → 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.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/Redocly/development.html +23 -17
  3. data/Redocly/index.html +55 -23
  4. data/Redocly/redoc/schema/resolved_schema.json +1 -1
  5. data/lib/definitions/common/components.json +290 -10
  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 +222 -16
  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 +5 -16
  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 +389 -90
  19. data/lib/definitions/common/examples/other_asset.json +211 -0
  20. data/lib/definitions/common/examples/problem.json +200 -12
  21. data/lib/definitions/common/examples/release.json +12 -20
  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 +1 -1
  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 +10 -3
@@ -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",
@@ -51,19 +52,97 @@
51
52
  "root_cause": "Root cause description",
52
53
  "symptoms": "Symptoms description",
53
54
  "workaround": "workaround description",
54
- "site": {
55
+ "site": { "$ref": "./associations/site.json#/site" },
56
+ "department": { "$ref": "./associations/department.json#/department" },
57
+ "priority": "High",
58
+ "created_by": {
55
59
  "id": "1",
56
- "name": "Austin TX, USA",
57
- "location": "AUS",
58
- "description": "",
59
- "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
+ }
60
70
  },
61
- "department": {
71
+ "assignee": {
72
+ "group_id": "1",
73
+ "is_user": "true",
74
+ "id": "1",
75
+ "name": "John Doe",
76
+ "email": "john.doe@email.com",
77
+ "avatar": {
78
+ "type": "initials",
79
+ "color": "#fd4165",
80
+ "initials": "JD"
81
+ }
82
+ },
83
+ "group_assignee": { "$ref": "./associations/group_assignee.json#/group_assignee" },
84
+ "requester": {
62
85
  "id": "1",
63
- "name": "Support",
64
- "description": "",
65
- "default_assignee_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
+ }
66
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" },
67
146
  "priority": "High",
68
147
  "created_by": {
69
148
  "id": "1",
@@ -81,7 +160,7 @@
81
160
  "assignee": {
82
161
  "group_id": "1",
83
162
  "is_user": "true",
84
- "id": "1",
163
+ "id": "1",
85
164
  "name": "John Doe",
86
165
  "email": "john.doe@email.com",
87
166
  "avatar": {
@@ -90,6 +169,7 @@
90
169
  "initials": "JD"
91
170
  }
92
171
  },
172
+ "group_assignee": { "$ref": "./associations/group_assignee.json#/group_assignee" },
93
173
  "requester": {
94
174
  "id": "1",
95
175
  "account_id": "1",
@@ -135,9 +215,117 @@
135
215
  "problems": [{ "id": "100", "href": "https://mydomain.com/problems/100"}],
136
216
  "releases": [{ "id": "100", "href": "https://mydomain.com/releases/100"}],
137
217
  "solutions": [{ "id": "100", "href": "https://mydomain.com/solutions/100"}],
138
- "purchase_orders": [{ "id": "100", "href": "https://mydomain.com/purchase_orders/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
139
327
  }
140
328
  }
141
329
  }
142
330
  }
143
- }
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",
@@ -52,23 +53,13 @@
52
53
  "name": "Release Name",
53
54
  "description": "description",
54
55
  "state": "New",
55
- "plan": "plan description" ,
56
+ "plan": "plan description",
56
57
  "build": "build description",
57
58
  "deploy": "deploy description",
58
59
  "planned_start_at": "2025-01-01T00:00:00.000+01:00",
59
- "planned_end_at": "2025-01-01T05:00:00.000+01:00" ,
60
- "site": {
61
- "id": "1",
62
- "name": "Austin TX, USA",
63
- "location": "AUS",
64
- "description": "Austin TX, USA"
65
- },
66
- "department": {
67
- "id": "1",
68
- "name": "Support",
69
- "description": "Support Department",
70
- "default_assignee_id": "1"
71
- },
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" },
72
63
  "priority": "High",
73
64
  "created_by": {
74
65
  "id": "1",
@@ -82,11 +73,11 @@
82
73
  "color": "#fd4165",
83
74
  "initials": "JD"
84
75
  }
85
- },
76
+ },
86
77
  "assignee": {
87
78
  "group_id": "1",
88
79
  "is_user": "true",
89
- "id": "1",
80
+ "id": "1",
90
81
  "name": "John Doe",
91
82
  "email": "john.doe@email.com",
92
83
  "avatar": {
@@ -95,6 +86,7 @@
95
86
  "initials": "JD"
96
87
  }
97
88
  },
89
+ "group_assignee": { "$ref": "./associations/group_assignee.json#/group_assignee" },
98
90
  "requester": {
99
91
  "id": "1",
100
92
  "account_id": "1",
@@ -138,7 +130,7 @@
138
130
  {
139
131
  "group_id": "1",
140
132
  "is_user": "true",
141
- "id": "1",
133
+ "id": "1",
142
134
  "name": "John Doe",
143
135
  "email": "john.doe@email.com",
144
136
  "avatar": {
@@ -159,4 +151,4 @@
159
151
  }
160
152
  }
161
153
  }
162
- }
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
  }
@@ -71,6 +71,60 @@
71
71
  "shared_attachments": []
72
72
  }
73
73
  }
74
+ },
75
+ "response_long": {
76
+ "json": {
77
+ "solution": {
78
+ "id": "10000",
79
+ "name": "Solution Name",
80
+ "href": "/solutions/10000.json",
81
+ "number": "1000",
82
+ "description": "description",
83
+ "description_no_html": "description_no_html.",
84
+ "creator": {
85
+ "id": "1",
86
+ "name": "John Doe",
87
+ "email": "john.doe@email.com"
88
+ },
89
+ "created_at": "2025-01-01T00:00:00.000+01:00",
90
+ "isAllowToVote": true,
91
+ "number_of_attachments": 0,
92
+ "attachments": [],
93
+ "number_of_shared_attachments": 0,
94
+ "shared_attachments": [],
95
+ "comments": [
96
+ {
97
+ "id": 10,
98
+ "body": "everybody",
99
+ "user": {
100
+ "id": 4713,
101
+ "name": "Simmy",
102
+ "email": "simmy.dian@mydomain.com",
103
+ "avatar": {
104
+ "type": "image",
105
+ "image_class": "gravatar_image",
106
+ "sso_image_class": "",
107
+ "avatar_url": "https://secure.gravatar.com/avatar/8f6284"
108
+ }
109
+ },
110
+ "created_at": "2024-08-18T22:40:42.000-07:00",
111
+ "updated_at": "2024-08-18T22:40:42.000-07:00",
112
+ "attachments": [],
113
+ "inline_attachments": [],
114
+ "shared_attachments": [],
115
+ "is_private": false,
116
+ "seen_by": [8610546],
117
+ "isTask": false,
118
+ "task_info": {},
119
+ "requester": null,
120
+ "commenter_id": 139207697,
121
+ "commenter_type": "Incident",
122
+ "origin": 0
123
+ }
124
+ ],
125
+ "total_time_spent": 10
126
+ }
127
+ }
74
128
  }
75
129
  }
76
130
  }
@@ -36,19 +36,8 @@
36
36
  "created_at": "2030-01-01T00:00:00.000+00:00",
37
37
  "phone": "+10000000",
38
38
  "mobile_phone": "+10000000",
39
- "site": {
40
- "id": "1",
41
- "name": "Austin TX, USA",
42
- "location": "AUS",
43
- "description": "",
44
- "time_zone": ""
45
- },
46
- "department": {
47
- "id": "1",
48
- "name": "Support",
49
- "description": "",
50
- "default_assignee_id": "1"
51
- },
39
+ "site": { "$ref": "./associations/site.json#/site" },
40
+ "department": { "$ref": "./associations/department.json#/department" },
52
41
  "role": {
53
42
  "id": 1,
54
43
  "name": "Requester",
@@ -65,7 +54,7 @@
65
54
  "reports_to": {
66
55
  "group_id": "1",
67
56
  "is_user": "true",
68
- "id": "100",
57
+ "id": "100",
69
58
  "name": "Jane Doe",
70
59
  "email": "jane.doe@email.com",
71
60
  "avatar": {
@@ -103,4 +92,4 @@
103
92
  }
104
93
  }
105
94
  }
106
- }
95
+ }