solarwinds-itsm-api-definitions 0.2.7 → 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.
- checksums.yaml +4 -4
- data/Redocly/development.html +23 -17
- data/Redocly/index.html +55 -23
- data/Redocly/redoc/schema/resolved_schema.json +1 -1
- data/lib/definitions/common/components.json +290 -10
- 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 +222 -16
- 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 +5 -16
- 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 +389 -90
- data/lib/definitions/common/examples/other_asset.json +211 -0
- data/lib/definitions/common/examples/problem.json +200 -12
- data/lib/definitions/common/examples/release.json +12 -20
- 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 +1 -1
- 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 +10 -3
|
@@ -10,12 +10,13 @@
|
|
|
10
10
|
"description": "description",
|
|
11
11
|
"state_id": 1,
|
|
12
12
|
"assignee": { "email": "john.doe@email.com" },
|
|
13
|
+
"group_assignee": { "name": "Helpdesk Team" },
|
|
13
14
|
"requester": { "email": "john.doe@email.com" },
|
|
14
15
|
"priority": "High",
|
|
15
16
|
"change_plan": "change plan",
|
|
16
17
|
"rollback_plan": "rollback plan",
|
|
17
|
-
"test_plan": "test plan"
|
|
18
|
-
"planned_start_at": "2025-01-01 00:00"
|
|
18
|
+
"test_plan": "test plan",
|
|
19
|
+
"planned_start_at": "2025-01-01 00:00",
|
|
19
20
|
"planned_end_at": "2025-01-01 05:00",
|
|
20
21
|
"add_to_tag_list": "tag1, tag2",
|
|
21
22
|
"remove_from_tag_list": "tag3",
|
|
@@ -49,24 +50,92 @@
|
|
|
49
50
|
"name": "Change Name",
|
|
50
51
|
"description": "description",
|
|
51
52
|
"state": "New",
|
|
52
|
-
"site": {
|
|
53
|
+
"site": { "$ref": "./associations/site.json#/site" },
|
|
54
|
+
"department": { "$ref": "./associations/department.json#/department" },
|
|
55
|
+
"priority": "High",
|
|
56
|
+
"assignee": {
|
|
57
|
+
"group_id": "1",
|
|
58
|
+
"is_user": "true",
|
|
53
59
|
"id": "1",
|
|
54
|
-
"name": "
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
|
|
60
|
+
"name": "John Doe",
|
|
61
|
+
"email": "john.doe@email.com",
|
|
62
|
+
"avatar": {
|
|
63
|
+
"type": "initials",
|
|
64
|
+
"color": "#fd4165",
|
|
65
|
+
"initials": "JD"
|
|
66
|
+
}
|
|
58
67
|
},
|
|
59
|
-
"
|
|
68
|
+
"group_assignee": { "$ref": "./associations/group_assignee.json#/group_assignee" },
|
|
69
|
+
"requester": {
|
|
60
70
|
"id": "1",
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
71
|
+
"account_id": "1",
|
|
72
|
+
"user_id": "1",
|
|
73
|
+
"email": "john.doe@email.com",
|
|
74
|
+
"name": "John Doe",
|
|
75
|
+
"disabled": false,
|
|
76
|
+
"avatar": {
|
|
77
|
+
"type": "initials",
|
|
78
|
+
"color": "#fd4165",
|
|
79
|
+
"initials": "JD"
|
|
80
|
+
}
|
|
64
81
|
},
|
|
82
|
+
"custom_fields_values": [
|
|
83
|
+
{
|
|
84
|
+
"id": "10",
|
|
85
|
+
"custom_field_id": "1",
|
|
86
|
+
"name": "Text custom field",
|
|
87
|
+
"value": "content",
|
|
88
|
+
"options": "",
|
|
89
|
+
"type_name": "Text"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"id": "100",
|
|
93
|
+
"custom_field_id": "2",
|
|
94
|
+
"name": "User custom field",
|
|
95
|
+
"value": "1",
|
|
96
|
+
"options": "",
|
|
97
|
+
"type_name": "User",
|
|
98
|
+
"user": {
|
|
99
|
+
"group_id": 1,
|
|
100
|
+
"is_user": true,
|
|
101
|
+
"id": 1,
|
|
102
|
+
"name": "John Doe",
|
|
103
|
+
"email": "john.doe@email.com"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
"change_plan": "change plan",
|
|
108
|
+
"rollback_plan": "rollback plan",
|
|
109
|
+
"test_plan": "test plan",
|
|
110
|
+
"planned_start_at": "2025-01-01T00:00:00.000+01:00",
|
|
111
|
+
"planned_end_at": "2025-01-01T05:00:00.000+01:00",
|
|
112
|
+
"origin": "api",
|
|
113
|
+
"created_at": "2025-01-01T00:00:00.000+01:00",
|
|
114
|
+
"incidents": [{ "id": "100", "href": "https://mydomain.com/incidents/100"}],
|
|
115
|
+
"problems": [{ "id": "100", "href": "https://mydomain.com/problems/100"}],
|
|
116
|
+
"changes": [{ "id": "100", "href": "https://mydomain.com/changes/100"}],
|
|
117
|
+
"solutions": [{ "id": "100", "href": "https://mydomain.com/solutions/100"}],
|
|
118
|
+
"releases": [{ "id": "100", "href": "https://mydomain.com/releases/100"}],
|
|
119
|
+
"configuration_items": [{ "id": "100", "href": "https://mydomain.com/configuration_items/100"}],
|
|
120
|
+
"purchase_orders": [{ "id": "100", "href": "https://mydomain.com/purchase_orders/100"}]
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"response_long": {
|
|
125
|
+
"json": {
|
|
126
|
+
"change": {
|
|
127
|
+
"id": "10000",
|
|
128
|
+
"number": "1000",
|
|
129
|
+
"name": "Change Name",
|
|
130
|
+
"description": "description",
|
|
131
|
+
"state": "New",
|
|
132
|
+
"site": { "$ref": "./associations/site.json#/site" },
|
|
133
|
+
"department": { "$ref": "./associations/department.json#/department" },
|
|
65
134
|
"priority": "High",
|
|
66
135
|
"assignee": {
|
|
67
136
|
"group_id": "1",
|
|
68
137
|
"is_user": "true",
|
|
69
|
-
"id":
|
|
138
|
+
"id": "1",
|
|
70
139
|
"name": "John Doe",
|
|
71
140
|
"email": "john.doe@email.com",
|
|
72
141
|
"avatar": {
|
|
@@ -75,6 +144,7 @@
|
|
|
75
144
|
"initials": "JD"
|
|
76
145
|
}
|
|
77
146
|
},
|
|
147
|
+
"group_assignee": { "$ref": "./associations/group_assignee.json#/group_assignee" },
|
|
78
148
|
"requester": {
|
|
79
149
|
"id": "1",
|
|
80
150
|
"account_id": "1",
|
|
@@ -115,8 +185,8 @@
|
|
|
115
185
|
],
|
|
116
186
|
"change_plan": "change plan",
|
|
117
187
|
"rollback_plan": "rollback plan",
|
|
118
|
-
"test_plan": "test plan"
|
|
119
|
-
"planned_start_at": "2025-01-01T00:00:00.000+01:00"
|
|
188
|
+
"test_plan": "test plan",
|
|
189
|
+
"planned_start_at": "2025-01-01T00:00:00.000+01:00",
|
|
120
190
|
"planned_end_at": "2025-01-01T05:00:00.000+01:00",
|
|
121
191
|
"origin": "api",
|
|
122
192
|
"created_at": "2025-01-01T00:00:00.000+01:00",
|
|
@@ -126,9 +196,145 @@
|
|
|
126
196
|
"solutions": [{ "id": "100", "href": "https://mydomain.com/solutions/100"}],
|
|
127
197
|
"releases": [{ "id": "100", "href": "https://mydomain.com/releases/100"}],
|
|
128
198
|
"configuration_items": [{ "id": "100", "href": "https://mydomain.com/configuration_items/100"}],
|
|
129
|
-
"purchase_orders": [{ "id": "100", "href": "https://mydomain.com/purchase_orders/100"}]
|
|
199
|
+
"purchase_orders": [{ "id": "100", "href": "https://mydomain.com/purchase_orders/100"}],
|
|
200
|
+
"attachments": [
|
|
201
|
+
{
|
|
202
|
+
"id": 212598157,
|
|
203
|
+
"content_type": "application/json",
|
|
204
|
+
"size": 583,
|
|
205
|
+
"filename": "myjson.json",
|
|
206
|
+
"url": "https://mydomain.com/attachments/c4d6df03448d80c4d9c1/myjson",
|
|
207
|
+
"shared_attachment": false,
|
|
208
|
+
"attachable_id": 753657,
|
|
209
|
+
"attachable_type": "Problem",
|
|
210
|
+
"attachment_type": "attachment",
|
|
211
|
+
"thumb_url": "/attachments/c4d6df03448d80c4d9c1/myjson.json?thumb=true",
|
|
212
|
+
"secure_url": "/attachments/c4d6df03448d80c4d9c1/myjson.json",
|
|
213
|
+
"link_uuid_url": "/attachments/c4d6df03448d80c4d9c1",
|
|
214
|
+
"uuid": "c4d6df03448d80c4d9c1"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"id": 212598158,
|
|
218
|
+
"content_type": "text/plain",
|
|
219
|
+
"size": 251,
|
|
220
|
+
"filename": "notpersonal.txt",
|
|
221
|
+
"url": "https://mydomain.com/attachments/c4d6df03448d80c4d9c1/myjson",
|
|
222
|
+
"shared_attachment": false,
|
|
223
|
+
"attachable_id": 753657,
|
|
224
|
+
"attachable_type": "Problem",
|
|
225
|
+
"attachment_type": "attachment",
|
|
226
|
+
"thumb_url": "/attachments/9d2e6444a7773cacab39/notpersonal-txt.plain?thumb=true",
|
|
227
|
+
"secure_url": "/attachments/9d2e6444a7773cacab39/notpersonal-txt.plain",
|
|
228
|
+
"link_uuid_url": "/attachments/9d2e6444a7773cacab39",
|
|
229
|
+
"uuid": "9d2e6444a7773cacab39"
|
|
230
|
+
}
|
|
231
|
+
],
|
|
232
|
+
"statistics": [
|
|
233
|
+
{
|
|
234
|
+
"statistic_type": "last_state_change",
|
|
235
|
+
"time": null,
|
|
236
|
+
"time_elapsed": null,
|
|
237
|
+
"business_time_elapsed": null,
|
|
238
|
+
"value": "{\"last_updated\":\"2024-12-21T23:39:47+02:00\",\"history\":[{\"id\":347869,\"title\":\"\",\"startTime\":\"2024-09-15T14:49:09.000-07:00\",\"endTime\":\"2024-12-21T17:11:08.629+00:00\",\"timeSpent\":8364120,\"timeSpentBH\":1976400,\"timeSinceCreation\":0,\"timeSinceCreationBH\":0,\"isCurrent\":false,\"isDeleted\":false}],\"summary\":{\"347869\":8364119.83482472},\"bh_summary\":{\"347869\":1976400}}"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"statistic_type": "to_assignment",
|
|
242
|
+
"time": "2323:09",
|
|
243
|
+
"time_elapsed": "2323:09",
|
|
244
|
+
"business_time_elapsed": "549:00",
|
|
245
|
+
"value": "2024-12-21 16:57:12 UTC"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"statistic_type": "last_reassigned",
|
|
249
|
+
"time": null,
|
|
250
|
+
"time_elapsed": null,
|
|
251
|
+
"business_time_elapsed": null,
|
|
252
|
+
"value": "{\"last_updated\":\"2024-12-21T19:36:33+02:00\",\"history\":[{\"id\":12034043,\"title\":\"Abhilash\",\"startTime\":\"2024-12-21T18:57:12.000+02:00\",\"endTime\":\"2024-12-21T17:03:27.449+00:00\",\"timeSpent\":375,\"timeSpentBH\":0,\"timeSinceCreation\":8363283,\"timeSinceCreationBH\":1976400,\"isCurrent\":false,\"isDeleted\":false}],\"summary\":{\"12034043\":375.687147794},\"bh_summary\":{\"12034043\":0}}"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"statistic_type": "to_approval",
|
|
256
|
+
"time": "2327:50",
|
|
257
|
+
"time_elapsed": "2327:50",
|
|
258
|
+
"business_time_elapsed": "549:00",
|
|
259
|
+
"value": "2024-12-21 21:38:59 UTC"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"statistic_type": "to_decline",
|
|
263
|
+
"time": "2323:31",
|
|
264
|
+
"time_elapsed": "2323:31",
|
|
265
|
+
"business_time_elapsed": "549:00",
|
|
266
|
+
"value": "2024-12-21 17:19:37 UTC"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"statistic_type": "to_closed_completed",
|
|
270
|
+
"time": "2327:51",
|
|
271
|
+
"time_elapsed": "2327:51",
|
|
272
|
+
"business_time_elapsed": "549:00",
|
|
273
|
+
"value": "2024-12-21 21:39:47 UTC"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"statistic_type": "to_closed_incomplete",
|
|
277
|
+
"time": "2323:32",
|
|
278
|
+
"time_elapsed": "2323:32",
|
|
279
|
+
"business_time_elapsed": "549:00",
|
|
280
|
+
"value": "2024-12-21 17:20:59 UTC"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"statistic_type": "to_first_response",
|
|
284
|
+
"time": "2326:47",
|
|
285
|
+
"time_elapsed": "2326:47",
|
|
286
|
+
"business_time_elapsed": "549:00",
|
|
287
|
+
"value": "2024-12-21 20:35:16 UTC"
|
|
288
|
+
}],
|
|
289
|
+
"shared_attachments": [{
|
|
290
|
+
"id": 212598158,
|
|
291
|
+
"content_type": "application/json",
|
|
292
|
+
"size": 583,
|
|
293
|
+
"filename": "myjson.json",
|
|
294
|
+
"url": "https://mydomain.com/attachments/c4d6df03448d80c4d9c1/myjson",
|
|
295
|
+
"shared_attachment": true,
|
|
296
|
+
"attachable_id": 753657,
|
|
297
|
+
"attachable_type": "Problem",
|
|
298
|
+
"attachment_type": "attachment",
|
|
299
|
+
"thumb_url": "/attachments/c4d6df03448d80c4d9c1/myjson.json?thumb=true",
|
|
300
|
+
"secure_url": "/attachments/c4d6df03448d80c4d9c1/myjson.json",
|
|
301
|
+
"link_uuid_url": "/attachments/c4d6df03448d80c4d9c1",
|
|
302
|
+
"uuid": "c4d6df03448d80c4d9c1"
|
|
303
|
+
}],
|
|
304
|
+
"comments": [
|
|
305
|
+
{
|
|
306
|
+
"id": 10,
|
|
307
|
+
"body": "everybody",
|
|
308
|
+
"user": {
|
|
309
|
+
"id": 4713,
|
|
310
|
+
"name": "Simmy",
|
|
311
|
+
"email": "simmy.dian@mydomain.com",
|
|
312
|
+
"avatar": {
|
|
313
|
+
"type": "image",
|
|
314
|
+
"image_class": "gravatar_image",
|
|
315
|
+
"sso_image_class": "",
|
|
316
|
+
"avatar_url": "https://secure.gravatar.com/avatar/8f6284"
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
"created_at": "2024-08-18T22:40:42.000-07:00",
|
|
320
|
+
"updated_at": "2024-08-18T22:40:42.000-07:00",
|
|
321
|
+
"attachments": [],
|
|
322
|
+
"inline_attachments": [],
|
|
323
|
+
"shared_attachments": [],
|
|
324
|
+
"is_private": false,
|
|
325
|
+
"seen_by": [8610546],
|
|
326
|
+
"isTask": false,
|
|
327
|
+
"task_info": {},
|
|
328
|
+
"requester": null,
|
|
329
|
+
"commenter_id": 139207697,
|
|
330
|
+
"commenter_type": "Incident",
|
|
331
|
+
"origin": 0
|
|
332
|
+
}
|
|
333
|
+
],
|
|
334
|
+
"number_of_comments": 1,
|
|
335
|
+
"user_saw_all_comments": true
|
|
130
336
|
}
|
|
131
337
|
}
|
|
132
338
|
}
|
|
133
339
|
}
|
|
134
|
-
}
|
|
340
|
+
}
|
|
@@ -10,10 +10,11 @@
|
|
|
10
10
|
"description": "description",
|
|
11
11
|
"state_id": 1,
|
|
12
12
|
"default_assignee_id": 1,
|
|
13
|
+
"default_group_assignee_id": 1,
|
|
13
14
|
"priority": "High",
|
|
14
15
|
"change_plan": "change plan",
|
|
15
16
|
"rollback_plan": "rollback plan",
|
|
16
|
-
"test_plan": "test plan"
|
|
17
|
+
"test_plan": "test plan",
|
|
17
18
|
"add_to_tag_list": "tag1, tag2",
|
|
18
19
|
"remove_from_tag_list": "tag3",
|
|
19
20
|
"tag_list": "tag1, tag2",
|
|
@@ -39,19 +40,8 @@
|
|
|
39
40
|
"name": "Change Catalog Name",
|
|
40
41
|
"description": "description",
|
|
41
42
|
"state": "Approved",
|
|
42
|
-
"site": {
|
|
43
|
-
|
|
44
|
-
"name": "Austin TX, USA",
|
|
45
|
-
"location": "AUS",
|
|
46
|
-
"description": "",
|
|
47
|
-
"time_zone": ""
|
|
48
|
-
},
|
|
49
|
-
"department": {
|
|
50
|
-
"id": "1",
|
|
51
|
-
"name": "Support",
|
|
52
|
-
"description": "",
|
|
53
|
-
"default_assignee_id": "1"
|
|
54
|
-
},
|
|
43
|
+
"site": { "$ref": "./associations/site.json#/site" },
|
|
44
|
+
"department": { "$ref": "./associations/department.json#/department" },
|
|
55
45
|
"priority": "High",
|
|
56
46
|
"default_assignee_id": 1,
|
|
57
47
|
"custom_fields_values": [
|
|
@@ -89,4 +79,4 @@
|
|
|
89
79
|
}
|
|
90
80
|
}
|
|
91
81
|
}
|
|
92
|
-
}
|
|
82
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"priority": "Low",
|
|
10
10
|
"change_type": "None",
|
|
11
11
|
"assignee": { "email": "john.doe@email.com" },
|
|
12
|
+
"group_assignee": { "name": "Network Team" },
|
|
12
13
|
"site": { "name":"Site name" },
|
|
13
14
|
"department": { "name":"Department name" },
|
|
14
15
|
"request_variables_attributes": [
|
|
@@ -21,7 +22,7 @@
|
|
|
21
22
|
"user_value": { "email": "john.doe@email.com" }
|
|
22
23
|
},
|
|
23
24
|
{
|
|
24
|
-
"name": "
|
|
25
|
+
"name": "MultiPickList variable",
|
|
25
26
|
"value": "option1#dlmtr#option2"
|
|
26
27
|
}
|
|
27
28
|
]}
|
|
@@ -54,23 +54,12 @@
|
|
|
54
54
|
},
|
|
55
55
|
"type_id": 1,
|
|
56
56
|
"state": "Active",
|
|
57
|
-
"site": {
|
|
58
|
-
|
|
59
|
-
"name": "Austin TX, USA",
|
|
60
|
-
"location": "AUS",
|
|
61
|
-
"description": "",
|
|
62
|
-
"time_zone": ""
|
|
63
|
-
},
|
|
64
|
-
"department": {
|
|
65
|
-
"id": "1",
|
|
66
|
-
"name": "Support",
|
|
67
|
-
"description": "",
|
|
68
|
-
"default_assignee_id": "1"
|
|
69
|
-
},
|
|
57
|
+
"site": { "$ref": "./associations/site.json#/site" },
|
|
58
|
+
"department": { "$ref": "./associations/department.json#/department" },
|
|
70
59
|
"manager_id": {
|
|
71
60
|
"group_id": "1",
|
|
72
61
|
"is_user": "true",
|
|
73
|
-
"id":
|
|
62
|
+
"id": "1",
|
|
74
63
|
"name": "John Doe",
|
|
75
64
|
"email": "john.doe@email.com",
|
|
76
65
|
"avatar": {
|
|
@@ -82,7 +71,7 @@
|
|
|
82
71
|
"user_id": {
|
|
83
72
|
"group_id": "1",
|
|
84
73
|
"is_user": "true",
|
|
85
|
-
"id":
|
|
74
|
+
"id": "1",
|
|
86
75
|
"name": "Jane Doe",
|
|
87
76
|
"email": "jane.doe@email.com",
|
|
88
77
|
"avatar": {
|
|
@@ -115,4 +104,4 @@
|
|
|
115
104
|
}
|
|
116
105
|
}
|
|
117
106
|
}
|
|
118
|
-
}
|
|
107
|
+
}
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
{
|
|
2
|
+
"examples": {
|
|
3
|
+
"response": {
|
|
4
|
+
"json": {
|
|
5
|
+
"contract": {
|
|
6
|
+
"id": "1",
|
|
7
|
+
"name": "Contract Name",
|
|
8
|
+
"type": "Software License",
|
|
9
|
+
"manufacturer_name": "Apple",
|
|
10
|
+
"start_date": "2020-01-01T00:00:00-00:00",
|
|
11
|
+
"end_date": "2030-01-01T00:00:00-00:00",
|
|
12
|
+
"created_at": "2024-08-25T07:32:16.000-07:00",
|
|
13
|
+
"updated_at": "2024-08-25T07:32:17.000-07:00",
|
|
14
|
+
"note": "Contract Note",
|
|
15
|
+
"site": { "$ref": "./associations/site.json#/site" },
|
|
16
|
+
"department": { "$ref": "./associations/department.json#/department" },
|
|
17
|
+
"items": [
|
|
18
|
+
{
|
|
19
|
+
"name": "appendix",
|
|
20
|
+
"version": "1.23",
|
|
21
|
+
"quantity": 1,
|
|
22
|
+
"language": null,
|
|
23
|
+
"date": null,
|
|
24
|
+
"rate": null,
|
|
25
|
+
"notes": null,
|
|
26
|
+
"created_at": "2024-08-25T07:29:17.000-07:00",
|
|
27
|
+
"updated_at": "2024-08-25T07:32:17.000-07:00",
|
|
28
|
+
"tag": "dag",
|
|
29
|
+
"manufacturer": null,
|
|
30
|
+
"contract": null,
|
|
31
|
+
"inventory": null,
|
|
32
|
+
"variance": null
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"status": "Active",
|
|
36
|
+
"custom_fields_values": [
|
|
37
|
+
{
|
|
38
|
+
"id": "1",
|
|
39
|
+
"custom_field_id": "1",
|
|
40
|
+
"name": "Name of custom text field",
|
|
41
|
+
"value": "content",
|
|
42
|
+
"type_name": "Text"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"response_long": {
|
|
50
|
+
"json": {
|
|
51
|
+
"contract": {
|
|
52
|
+
"id": "1",
|
|
53
|
+
"name": "Contract Name",
|
|
54
|
+
"type": "Software License",
|
|
55
|
+
"manufacturer_name": "Apple",
|
|
56
|
+
"start_date": "2020-01-01T00:00:00-00:00",
|
|
57
|
+
"end_date": "2030-01-01T00:00:00-00:00",
|
|
58
|
+
"created_at": "2024-08-25T07:32:16.000-07:00",
|
|
59
|
+
"updated_at": "2024-08-25T07:32:17.000-07:00",
|
|
60
|
+
"note": "Contract Note",
|
|
61
|
+
"site": { "$ref": "./associations/site.json#/site" },
|
|
62
|
+
"department": { "$ref": "./associations/department.json#/department" },
|
|
63
|
+
"items": [
|
|
64
|
+
{
|
|
65
|
+
"name": "appendix",
|
|
66
|
+
"version": "1.23",
|
|
67
|
+
"quantity": 1,
|
|
68
|
+
"language": null,
|
|
69
|
+
"date": null,
|
|
70
|
+
"rate": null,
|
|
71
|
+
"notes": null,
|
|
72
|
+
"created_at": "2024-08-25T07:29:17.000-07:00",
|
|
73
|
+
"updated_at": "2024-08-25T07:32:17.000-07:00",
|
|
74
|
+
"tag": "dag",
|
|
75
|
+
"manufacturer": null,
|
|
76
|
+
"contract": null,
|
|
77
|
+
"inventory": null,
|
|
78
|
+
"variance": null
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"status": "Active",
|
|
82
|
+
"custom_fields_values": [
|
|
83
|
+
{
|
|
84
|
+
"id": "1",
|
|
85
|
+
"custom_field_id": "1",
|
|
86
|
+
"name": "Name of custom text field",
|
|
87
|
+
"value": "content",
|
|
88
|
+
"type_name": "Text"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"purchases": [
|
|
92
|
+
{
|
|
93
|
+
"id": 266602,
|
|
94
|
+
"date": "2024-08-21T00:00:00.000-07:00",
|
|
95
|
+
"number": "11",
|
|
96
|
+
"notes": "a",
|
|
97
|
+
"total_cost": "83727400.0",
|
|
98
|
+
"currency": "USD",
|
|
99
|
+
"recurrence": "One_Time",
|
|
100
|
+
"created_at": "2024-08-25T07:29:49.000-07:00",
|
|
101
|
+
"updated_at": "2024-08-25T07:32:17.000-07:00",
|
|
102
|
+
"vendor": {
|
|
103
|
+
"id": 153707,
|
|
104
|
+
"href": "https://api.samanage.com/vendors/153707-amazon",
|
|
105
|
+
"name": "Amazon",
|
|
106
|
+
"url": "",
|
|
107
|
+
"contact_name": "",
|
|
108
|
+
"contact_email": "",
|
|
109
|
+
"contact_phone": "",
|
|
110
|
+
"note": "",
|
|
111
|
+
"address": "",
|
|
112
|
+
"city": "",
|
|
113
|
+
"state": "",
|
|
114
|
+
"zip": "",
|
|
115
|
+
"telephone": "",
|
|
116
|
+
"vendor_type": {
|
|
117
|
+
"id": 50,
|
|
118
|
+
"name": "Computer Hardware Vendor"
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
"total_financial_value": "USD 83,727,400.00",
|
|
124
|
+
"attachments": [
|
|
125
|
+
{
|
|
126
|
+
"id": 212598157,
|
|
127
|
+
"content_type": "application/json",
|
|
128
|
+
"size": 583,
|
|
129
|
+
"filename": "myjson.json",
|
|
130
|
+
"url": "https://mydomain.com/attachments/c4d6df03448d80c4d9c1/myjson",
|
|
131
|
+
"shared_attachment": false,
|
|
132
|
+
"attachable_id": 753657,
|
|
133
|
+
"attachable_type": "Problem",
|
|
134
|
+
"attachment_type": "attachment",
|
|
135
|
+
"thumb_url": "/attachments/c4d6df03448d80c4d9c1/myjson.json?thumb=true",
|
|
136
|
+
"secure_url": "/attachments/c4d6df03448d80c4d9c1/myjson.json",
|
|
137
|
+
"link_uuid_url": "/attachments/c4d6df03448d80c4d9c1",
|
|
138
|
+
"uuid": "c4d6df03448d80c4d9c1"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"id": 212598158,
|
|
142
|
+
"content_type": "text/plain",
|
|
143
|
+
"size": 251,
|
|
144
|
+
"filename": "notpersonal.txt",
|
|
145
|
+
"url": "https://mydomain.com/attachments/c4d6df03448d80c4d9c1/myjson",
|
|
146
|
+
"shared_attachment": false,
|
|
147
|
+
"attachable_id": 753657,
|
|
148
|
+
"attachable_type": "Problem",
|
|
149
|
+
"attachment_type": "attachment",
|
|
150
|
+
"thumb_url": "/attachments/9d2e6444a7773cacab39/notpersonal-txt.plain?thumb=true",
|
|
151
|
+
"secure_url": "/attachments/9d2e6444a7773cacab39/notpersonal-txt.plain",
|
|
152
|
+
"link_uuid_url": "/attachments/9d2e6444a7773cacab39",
|
|
153
|
+
"uuid": "9d2e6444a7773cacab39"
|
|
154
|
+
}
|
|
155
|
+
],
|
|
156
|
+
"owner": {
|
|
157
|
+
"group_id": 9302435,
|
|
158
|
+
"is_user": true,
|
|
159
|
+
"id": 8614513,
|
|
160
|
+
"name": "Elad Kaufman",
|
|
161
|
+
"disabled": false,
|
|
162
|
+
"title": "Sir",
|
|
163
|
+
"email": "elad.kaufman@solarwinds.com",
|
|
164
|
+
"created_at": "2022-08-16T04:54:17.000-07:00",
|
|
165
|
+
"updated_at": "2024-08-21T00:24:46.000-07:00",
|
|
166
|
+
"last_login": "2024-08-21T00:24:46.000-07:00",
|
|
167
|
+
"phone": "",
|
|
168
|
+
"mobile_phone": "",
|
|
169
|
+
"role": {
|
|
170
|
+
"id": 90,
|
|
171
|
+
"name": "Administrator",
|
|
172
|
+
"description": "This is the all powerful administrator user!",
|
|
173
|
+
"portal": false,
|
|
174
|
+
"show_my_tasks": false
|
|
175
|
+
},
|
|
176
|
+
"group_ids": [
|
|
177
|
+
9302435,
|
|
178
|
+
10067404,
|
|
179
|
+
11826868,
|
|
180
|
+
11827076
|
|
181
|
+
],
|
|
182
|
+
"available_for_assignment": false,
|
|
183
|
+
"can_be_available_for_assignment": false,
|
|
184
|
+
"provider": "SolarWinds",
|
|
185
|
+
"custom_fields_values": [],
|
|
186
|
+
"site": null,
|
|
187
|
+
"department": null,
|
|
188
|
+
"avatar": {
|
|
189
|
+
"type": "initials",
|
|
190
|
+
"initials": "EK",
|
|
191
|
+
"color": "#0089c9"
|
|
192
|
+
},
|
|
193
|
+
"reports_to": null
|
|
194
|
+
},
|
|
195
|
+
"technical_owner": {
|
|
196
|
+
"group_id": 10128208,
|
|
197
|
+
"is_user": true,
|
|
198
|
+
"id": 9355701,
|
|
199
|
+
"name": "elad2",
|
|
200
|
+
"disabled": false,
|
|
201
|
+
"title": "",
|
|
202
|
+
"email": "elad.kaufman+2@solarwinds.com",
|
|
203
|
+
"created_at": "2023-04-03T00:51:46.000-07:00",
|
|
204
|
+
"updated_at": "2023-05-21T05:34:27.000-07:00",
|
|
205
|
+
"last_login": "2023-04-03T00:53:25.000-07:00",
|
|
206
|
+
"phone": "",
|
|
207
|
+
"mobile_phone": "",
|
|
208
|
+
"role": {
|
|
209
|
+
"id": 90,
|
|
210
|
+
"name": "Administrator",
|
|
211
|
+
"description": "This is the all powerful administrator user!",
|
|
212
|
+
"portal": false,
|
|
213
|
+
"show_my_tasks": false
|
|
214
|
+
},
|
|
215
|
+
"group_ids": [
|
|
216
|
+
10128208
|
|
217
|
+
],
|
|
218
|
+
"available_for_assignment": false,
|
|
219
|
+
"can_be_available_for_assignment": false,
|
|
220
|
+
"provider": "SolarWinds",
|
|
221
|
+
"custom_fields_values": [],
|
|
222
|
+
"site": null,
|
|
223
|
+
"department": null,
|
|
224
|
+
"avatar": {
|
|
225
|
+
"type": "initials",
|
|
226
|
+
"initials": "EL",
|
|
227
|
+
"color": "#fd4165"
|
|
228
|
+
},
|
|
229
|
+
"reports_to": null
|
|
230
|
+
},
|
|
231
|
+
"purchasing_owner": {
|
|
232
|
+
"group_id": 10128208,
|
|
233
|
+
"is_user": true,
|
|
234
|
+
"id": 9355701,
|
|
235
|
+
"name": "elad2",
|
|
236
|
+
"disabled": false,
|
|
237
|
+
"title": "",
|
|
238
|
+
"email": "elad.kaufman+2@solarwinds.com",
|
|
239
|
+
"created_at": "2023-04-03T00:51:46.000-07:00",
|
|
240
|
+
"updated_at": "2023-05-21T05:34:27.000-07:00",
|
|
241
|
+
"last_login": "2023-04-03T00:53:25.000-07:00",
|
|
242
|
+
"phone": "",
|
|
243
|
+
"mobile_phone": "",
|
|
244
|
+
"role": {
|
|
245
|
+
"id": 90,
|
|
246
|
+
"name": "Administrator",
|
|
247
|
+
"description": "This is the all powerful administrator user!",
|
|
248
|
+
"portal": false,
|
|
249
|
+
"show_my_tasks": false
|
|
250
|
+
},
|
|
251
|
+
"group_ids": [
|
|
252
|
+
10128208
|
|
253
|
+
],
|
|
254
|
+
"available_for_assignment": false,
|
|
255
|
+
"can_be_available_for_assignment": false,
|
|
256
|
+
"provider": "SolarWinds",
|
|
257
|
+
"custom_fields_values": [],
|
|
258
|
+
"site": null,
|
|
259
|
+
"department": null,
|
|
260
|
+
"avatar": {
|
|
261
|
+
"type": "initials",
|
|
262
|
+
"initials": "EL",
|
|
263
|
+
"color": "#fd4165"
|
|
264
|
+
},
|
|
265
|
+
"reports_to": null
|
|
266
|
+
},
|
|
267
|
+
"license_type": "Enterprise",
|
|
268
|
+
"tag_list": [ "tag name" ],
|
|
269
|
+
"parent_contracts": null,
|
|
270
|
+
"child_contracts": null,
|
|
271
|
+
"associated_contracts": [
|
|
272
|
+
{
|
|
273
|
+
"id": 782243,
|
|
274
|
+
"href": "https://api.samanage.com/contracts/782243"
|
|
275
|
+
}
|
|
276
|
+
]
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|