solarwinds-itsm-api-definitions 0.0.9 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/definitions/common/components.json +354 -124
- data/lib/definitions/common/examples/catalog_item.json +70 -0
- data/lib/definitions/common/examples/change.json +123 -0
- data/lib/definitions/common/examples/change_catalog.json +72 -0
- data/lib/definitions/common/examples/configuration_item.json +110 -0
- data/lib/definitions/common/examples/hardware.json +100 -0
- data/lib/definitions/common/examples/incident.json +129 -115
- data/lib/definitions/common/examples/problem.json +110 -0
- data/lib/definitions/common/examples/release.json +128 -0
- data/lib/definitions/common/examples/service_request.json +28 -0
- data/lib/definitions/common/examples/solution.json +44 -0
- data/lib/definitions/common/examples/user.json +76 -0
- data/lib/definitions/common/schemas/analytics/audit.json +28 -0
- data/lib/definitions/common/schemas/analytics/risk.json +28 -0
- data/lib/definitions/common/schemas/inventory/hardware.json +104 -0
- data/lib/definitions/common/schemas/inventory/mobile.json +73 -0
- data/lib/definitions/common/schemas/inventory/other_asset.json +74 -0
- data/lib/definitions/common/schemas/inventory/printer.json +41 -0
- data/lib/definitions/common/schemas/inventory/software.json +28 -0
- data/lib/definitions/common/schemas/inventory/warranty.json +40 -0
- data/lib/definitions/common/schemas/procurement/contract.json +67 -0
- data/lib/definitions/common/schemas/procurement/item.json +51 -0
- data/lib/definitions/common/schemas/procurement/purchase.json +57 -0
- data/lib/definitions/common/schemas/procurement/purchase_order.json +82 -0
- data/lib/definitions/common/schemas/procurement/vendor.json +67 -0
- data/lib/definitions/common/schemas/service_desk/catalog_item.json +71 -0
- data/lib/definitions/common/schemas/service_desk/change.json +88 -0
- data/lib/definitions/common/schemas/service_desk/change_catalog.json +77 -0
- data/lib/definitions/common/schemas/service_desk/comment.json +52 -0
- data/lib/definitions/common/schemas/service_desk/configuration_item.json +119 -0
- data/lib/definitions/common/schemas/service_desk/incident.json +89 -0
- data/lib/definitions/common/schemas/service_desk/problem.json +81 -0
- data/lib/definitions/common/schemas/service_desk/release.json +86 -0
- data/lib/definitions/common/schemas/service_desk/service_request.json +31 -0
- data/lib/definitions/common/schemas/service_desk/solution.json +61 -0
- data/lib/definitions/common/schemas/service_desk/time_track.json +37 -0
- data/lib/definitions/common/schemas/setup/category.json +54 -0
- data/lib/definitions/common/schemas/setup/department.json +48 -0
- data/lib/definitions/common/schemas/setup/group.json +65 -0
- data/lib/definitions/common/schemas/setup/role.json +51 -0
- data/lib/definitions/common/schemas/setup/site.json +64 -0
- data/lib/definitions/common/schemas/setup/user.json +67 -0
- data/lib/definitions/common/schemas/tasks/task.json +52 -0
- data/lib/definitions/openapi.json +96 -6
- data/lib/definitions/paths/attachments/attachments.json +12 -0
- data/lib/definitions/paths/audits/audits.json +35 -0
- data/lib/definitions/paths/audits/audits_by_id.json +37 -0
- data/lib/definitions/paths/catalog_items/catalog_item_by_id.json +83 -0
- data/lib/definitions/paths/catalog_items/catalog_items.json +69 -0
- data/lib/definitions/paths/categories/categories.json +62 -0
- data/lib/definitions/paths/categories/category_by_id.json +70 -0
- data/lib/definitions/paths/change_catalogs/change_catalog_by_id.json +83 -0
- data/lib/definitions/paths/change_catalogs/change_catalogs.json +69 -0
- data/lib/definitions/paths/changes/change_by_id.json +83 -0
- data/lib/definitions/paths/changes/changes.json +69 -0
- data/lib/definitions/paths/comments/comment_by_id.json +65 -0
- data/lib/definitions/paths/comments/comments.json +31 -0
- data/lib/definitions/paths/configuration_items/append_dependent_assets.json +24 -0
- data/lib/definitions/paths/configuration_items/configuration_item_by_id.json +83 -0
- data/lib/definitions/paths/configuration_items/configuration_items.json +69 -0
- data/lib/definitions/paths/configuration_items/delete_asset_link.json +24 -0
- data/lib/definitions/paths/contracts/contract_by_id.json +74 -0
- data/lib/definitions/paths/contracts/contracts.json +62 -0
- data/lib/definitions/paths/contracts/item_by_id.json +75 -0
- data/lib/definitions/paths/contracts/items.json +30 -0
- data/lib/definitions/paths/departments/department_by_id.json +70 -0
- data/lib/definitions/paths/departments/departments.json +62 -0
- data/lib/definitions/paths/groups/group_by_id.json +70 -0
- data/lib/definitions/paths/groups/groups.json +62 -0
- data/lib/definitions/paths/hardwares/hardware_by_id.json +83 -0
- data/lib/definitions/paths/hardwares/hardwares.json +69 -0
- data/lib/definitions/paths/hardwares/warranties.json +64 -0
- data/lib/definitions/paths/hardwares/warranty_by_id.json +75 -0
- data/lib/definitions/paths/incidents/incident_by_id.json +28 -10
- data/lib/definitions/paths/incidents/incidents.json +36 -8
- data/lib/definitions/paths/memberships/membership_by_id.json +20 -0
- data/lib/definitions/paths/memberships/memberships.json +29 -0
- data/lib/definitions/paths/mobiles/mobile_by_id.json +74 -0
- data/lib/definitions/paths/mobiles/mobiles.json +62 -0
- data/lib/definitions/paths/other_assets/other_asset_by_id.json +74 -0
- data/lib/definitions/paths/other_assets/other_assets.json +62 -0
- data/lib/definitions/paths/printers/printer_by_id.json +53 -0
- data/lib/definitions/paths/printers/printers.json +36 -0
- data/lib/definitions/paths/problems/problem_by_id.json +83 -0
- data/lib/definitions/paths/problems/problems.json +69 -0
- data/lib/definitions/paths/purchase_orders/purchase_order_by_id.json +74 -0
- data/lib/definitions/paths/purchase_orders/purchase_orders.json +62 -0
- data/lib/definitions/paths/purchases/purchase_by_id.json +65 -0
- data/lib/definitions/paths/purchases/purchases.json +31 -0
- data/lib/definitions/paths/releases/release_by_id.json +83 -0
- data/lib/definitions/paths/releases/releases.json +69 -0
- data/lib/definitions/paths/risks/risks.json +34 -0
- data/lib/definitions/paths/roles/role_by_id.json +70 -0
- data/lib/definitions/paths/roles/roles.json +62 -0
- data/lib/definitions/paths/service_requests/request_by_id.json +37 -0
- data/lib/definitions/paths/sites/site_by_id.json +74 -0
- data/lib/definitions/paths/sites/sites.json +62 -0
- data/lib/definitions/paths/softwares/software_by_id.json +24 -0
- data/lib/definitions/paths/softwares/softwares.json +36 -0
- data/lib/definitions/paths/solutions/solution_by_id.json +83 -0
- data/lib/definitions/paths/solutions/solutions.json +69 -0
- data/lib/definitions/paths/tasks/task_by_id.json +65 -0
- data/lib/definitions/paths/tasks/tasks.json +31 -0
- data/lib/definitions/paths/time_tracks/time_track_by_id.json +65 -0
- data/lib/definitions/paths/time_tracks/time_tracks.json +66 -0
- data/lib/definitions/paths/users/user_by_id.json +83 -0
- data/lib/definitions/paths/users/users.json +69 -0
- data/lib/definitions/paths/vendors/vendor_by_id.json +74 -0
- data/lib/definitions/paths/vendors/vendors.json +62 -0
- data/lib/resolved_schema/resolved_schema.json +1 -1
- metadata +106 -3
- data/lib/definitions/common/schemas/incident.json +0 -106
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 700321baa2a625ed3363bf49e1c3b0768acb7005fdae052fd026c22c12d86fd5
|
4
|
+
data.tar.gz: 32a50496f7ee3522926e8fdbe37fb9633dfa42cacb376d19dc6cf1e529437434
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ae6cd0e1366aa2deccfa53e7ae087854593ba98aff32dbe6b640fb95c092376f7edb567a03811a4b70a6db5faa929e9d1e686504f73cbe1ed2dbe8dba8d703e
|
7
|
+
data.tar.gz: 05ebb504e6cb025dc9f80a2f72a9e31528130c49b3a992a09e33596aebb8f65c8a15a266a9a1643828f6718c1010407b3f77538194b98dcd3b1cdf00f8299814
|
@@ -1,154 +1,384 @@
|
|
1
1
|
{
|
2
2
|
"components": {
|
3
|
-
"
|
4
|
-
"
|
5
|
-
"
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
"
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
3
|
+
"request": {
|
4
|
+
"parameters": {
|
5
|
+
"token_param": {
|
6
|
+
"name": "X-Samanage-Authorization",
|
7
|
+
"in": "header",
|
8
|
+
"schema": { "type": "string" },
|
9
|
+
"example": "Bearer TOKEN"
|
10
|
+
},
|
11
|
+
"id_param": {
|
12
|
+
"name": "id",
|
13
|
+
"in": "path",
|
14
|
+
"schema": { "type": "string" },
|
15
|
+
"required": true,
|
16
|
+
"description": "Numeric ID of the object to get or update"
|
17
|
+
},
|
18
|
+
"object_param": {
|
19
|
+
"name": "object_type",
|
20
|
+
"in": "path",
|
21
|
+
"schema": { "type": "string" },
|
22
|
+
"required": true,
|
23
|
+
"description": "Source object type",
|
24
|
+
"example": "incidents"
|
25
|
+
}
|
21
26
|
},
|
22
|
-
"
|
23
|
-
"
|
24
|
-
|
27
|
+
"schemas": {
|
28
|
+
"association_by_name": {
|
29
|
+
"type": "object",
|
30
|
+
"oneOf": [{
|
31
|
+
"type": "object",
|
32
|
+
"required": ["name"],
|
33
|
+
"properties": {
|
34
|
+
"name": { "type": "string", "example": "Object Name" }
|
35
|
+
}
|
36
|
+
},
|
37
|
+
{ "enum": ["nil", "", null] }]
|
38
|
+
},
|
39
|
+
"association_by_email": {
|
40
|
+
"type": "object",
|
41
|
+
"oneOf": [{
|
42
|
+
"type": "object",
|
43
|
+
"required": ["email"],
|
44
|
+
"properties": {
|
45
|
+
"email": {
|
46
|
+
"type": "string",
|
47
|
+
"format": "email",
|
48
|
+
"example": "john.doe@email.com"
|
49
|
+
}
|
50
|
+
}
|
51
|
+
},
|
52
|
+
{ "enum": ["nil", "", null] }]
|
53
|
+
},
|
54
|
+
"attachment_numbers": {
|
55
|
+
"anyOf": [
|
56
|
+
{ "$ref": "components.json#/components/request/schemas/numbers_array" },
|
57
|
+
{ "$ref": "components.json#/components/request/schemas/number_property" }
|
58
|
+
]
|
59
|
+
},
|
60
|
+
"number_property": {
|
61
|
+
"type": "object",
|
62
|
+
"properties": {
|
63
|
+
"number": { "anyOf": [ { "type": "string", "example": "1" }, { "type": "integer", "example": 1 }] }
|
64
|
+
}
|
65
|
+
},
|
66
|
+
"numbers_array": {
|
67
|
+
"type": "array",
|
68
|
+
"items": { "$ref": "components.json#/components/request/schemas/number_property" }
|
69
|
+
},
|
70
|
+
"custom_field": {
|
25
71
|
"type": "object",
|
26
72
|
"required": ["name"],
|
27
73
|
"properties": {
|
28
|
-
"name": { "type": "string" }
|
74
|
+
"name": { "type": "string", "example": "Name of custom text field" },
|
75
|
+
"value": { "type": "string", "example": "content" },
|
76
|
+
"user_value": { "$ref": "components.json#/components/request/schemas/association_by_email" }
|
29
77
|
}
|
30
78
|
},
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
79
|
+
"custom_fields_value": {
|
80
|
+
"anyOf": [
|
81
|
+
{ "type": "array", "items": { "$ref": "components.json#/components/request/schemas/custom_field" } },
|
82
|
+
{ "$ref": "components.json#/components/request/schemas/custom_field" }
|
83
|
+
]
|
84
|
+
},
|
85
|
+
"custom_fields_values": {
|
86
|
+
"type": "object",
|
87
|
+
"required": ["custom_fields_value"],
|
88
|
+
"properties": { "custom_fields_value": { "$ref": "components.json#/components/request/schemas/custom_fields_value" } }
|
89
|
+
},
|
90
|
+
"custom_field_by_id": {
|
36
91
|
"type": "object",
|
37
|
-
"required": ["email"],
|
38
92
|
"properties": {
|
39
|
-
"
|
93
|
+
"id": { "type": "string", "example": "1" },
|
94
|
+
"custom_field_id": { "type": "integer", "example": 1 },
|
95
|
+
"value": { "type": "string", "example": "content" } }
|
96
|
+
},
|
97
|
+
"custom_fields_values_attributes": {
|
98
|
+
"anyOf": [
|
99
|
+
{ "type": "array", "items": { "$ref": "components.json#/components/request/schemas/custom_field_by_id" } },
|
100
|
+
{ "type": "object", "items": { "$ref": "components.json#/components/request/schemas/custom_field_by_id" } }
|
101
|
+
]
|
102
|
+
},
|
103
|
+
"approval_levels_attributes": {
|
104
|
+
"anyOf": [
|
105
|
+
{ "type": "array", "items": { "$ref": "components.json#/components/request/schemas/approval_level" } },
|
106
|
+
{ "type": "object", "items": { "$ref": "components.json#/components/request/schemas/approval_level" } }
|
107
|
+
]
|
108
|
+
},
|
109
|
+
"approval_level": {
|
110
|
+
"type": "object",
|
111
|
+
"properties": {
|
112
|
+
"id": { "$ref": "components.json#/components/common/schemas/association_by_id" },
|
113
|
+
"approver_ids": { "type": "string", "example": "1, 2" },
|
114
|
+
"approval_condition": { "type": "string", "example": "1" }
|
40
115
|
}
|
41
116
|
},
|
42
|
-
|
43
|
-
},
|
44
|
-
"id": {
|
45
|
-
"readOnly": true,
|
46
|
-
"oneOf": [{ "type": "string" }, { "type": "integer" }]
|
47
|
-
},
|
48
|
-
"custom_field": {
|
49
|
-
"type": "object",
|
50
|
-
"oneOf": [{
|
117
|
+
"bio": {
|
51
118
|
"type": "object",
|
52
|
-
"required": ["name", "value"],
|
53
119
|
"properties": {
|
54
|
-
"
|
55
|
-
"
|
120
|
+
"manufacturer": { "type": "string", "example": "Dell" },
|
121
|
+
"ssn": { "anyOf": [{ "type": "string", "example": "1" },{ "type": "integer", "example": 1 }] },
|
122
|
+
"model": { "type": "string", "example": "model description" },
|
123
|
+
"version": { "anyOf": [{ "type": "string", "example": "1" },{ "type": "integer", "example": 1 }] },
|
124
|
+
"bios_date": { "type": "string", "example": "2020-01-01 00:00" }
|
56
125
|
}
|
57
|
-
}
|
58
|
-
|
59
|
-
"custom_field_value": {
|
60
|
-
"type": "array",
|
61
|
-
"items": {
|
62
|
-
"allOf": [{ "$ref": "components.json#/components/schemas/custom_field" }]
|
63
|
-
}
|
64
|
-
},
|
65
|
-
"custom_field_values": {
|
66
|
-
"type": "object",
|
67
|
-
"oneOf": [{
|
126
|
+
},
|
127
|
+
"variable": {
|
68
128
|
"type": "object",
|
69
|
-
"required": ["
|
129
|
+
"required": ["name"],
|
70
130
|
"properties": {
|
71
|
-
"
|
131
|
+
"name": { "type": "string", "example": "Variable name" },
|
132
|
+
"value": { "type": "string", "example": "Content" },
|
133
|
+
"user_value": { "$ref": "components.json#/components/request/schemas/association_by_email" }
|
72
134
|
}
|
73
|
-
}
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
"
|
79
|
-
|
80
|
-
|
81
|
-
"
|
82
|
-
|
135
|
+
},
|
136
|
+
"cc_array": {
|
137
|
+
"type": "array",
|
138
|
+
"items": { "type": "string", "format": "email", "example": "john.doe@email.com" },
|
139
|
+
"xml": { "wrapped": true },
|
140
|
+
"description": "for xml requests, please add: type=\"array\". for example: \"\\<cc type='array'\\> \\<cc\\>john.doe@email.com\\<\/cc\\> \\<\/cc\\>\""
|
141
|
+
},
|
142
|
+
"reports_to": {
|
143
|
+
"oneOf": [
|
144
|
+
{
|
145
|
+
"type": "object",
|
146
|
+
"required": ["id"],
|
147
|
+
"properties": { "id": { "$ref": "components.json#/components/common/schemas/association_by_id" } }
|
148
|
+
},
|
149
|
+
{ "$ref": "components.json#/components/request/schemas/association_by_email" }
|
150
|
+
]
|
83
151
|
}
|
84
|
-
}
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
"
|
90
|
-
"
|
91
|
-
|
92
|
-
|
93
|
-
|
152
|
+
}
|
153
|
+
},
|
154
|
+
"response": {
|
155
|
+
"schemas": {
|
156
|
+
"id": {
|
157
|
+
"readOnly": true,
|
158
|
+
"oneOf": [{ "type": "string", "example": "1" }, { "type": "integer", "example": 1 }]
|
159
|
+
},
|
160
|
+
"custom_field": {
|
161
|
+
"type": "object",
|
162
|
+
"properties": {
|
163
|
+
"id": { "$ref": "components.json#/components/response/schemas/id" },
|
164
|
+
"custom_field_id": { "$ref": "components.json#/components/response/schemas/id" },
|
165
|
+
"name": { "type": "string", "example": " Name of custom text field" },
|
166
|
+
"value": { "type": "string", "example": "content" },
|
167
|
+
"type_name": { "type": "string", "example": "Text" }
|
94
168
|
}
|
95
|
-
}
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
"is_user": { "oneOf": [{ "type": "string" }, { "type": "boolean" }] },
|
102
|
-
"id": { "$ref": "components.json#/components/schemas/id" },
|
103
|
-
"name": { "type": "string" },
|
104
|
-
"email": { "type": "string" },
|
105
|
-
"avatar": { "$ref": "components.json#/components/schemas/avatar" }
|
106
|
-
}
|
107
|
-
},
|
108
|
-
"site_response": {
|
109
|
-
"type": "object",
|
110
|
-
"properties": {
|
111
|
-
"id": { "$ref": "components.json#/components/schemas/id" },
|
112
|
-
"name": { "type": "string" },
|
113
|
-
"description": { "type": "string" },
|
114
|
-
"location": { "type": "string" },
|
115
|
-
"timezone": { "type": "string" }
|
116
|
-
}
|
117
|
-
},
|
118
|
-
"department_response": {
|
119
|
-
"type": "object",
|
120
|
-
"properties": {
|
121
|
-
"id": { "$ref": "components.json#/components/schemas/id" },
|
122
|
-
"name": { "type": "string" },
|
123
|
-
"description": { "type": "string" },
|
124
|
-
"default_assignee_id": { "$ref": "components.json#/components/schemas/id" }
|
125
|
-
}
|
126
|
-
},
|
127
|
-
"ids_array": {
|
128
|
-
"type": "array",
|
129
|
-
"items": {
|
130
|
-
"$ref": "components.json#/components/schemas/association_by_id"
|
131
|
-
}
|
132
|
-
},
|
133
|
-
"numbers_array": {
|
134
|
-
"type": "array",
|
135
|
-
"items": {
|
169
|
+
},
|
170
|
+
"custom_fields_values": {
|
171
|
+
"type": "array",
|
172
|
+
"items": { "$ref": "components.json#/components/response/schemas/custom_field" }
|
173
|
+
},
|
174
|
+
"category_subcategory": {
|
136
175
|
"type": "object",
|
137
176
|
"properties": {
|
138
|
-
"
|
139
|
-
|
177
|
+
"id": { "$ref": "components.json#/components/response/schemas/id" },
|
178
|
+
"name": { "type": "string", "example": "Category / Subcategory name" },
|
179
|
+
"default_tags": { "type": "string", "example": "tag1, tag2" },
|
180
|
+
"parent_id": { "$ref": "components.json#/components/response/schemas/id" },
|
181
|
+
"default_assignee_id": { "$ref": "components.json#/components/response/schemas/id" }
|
182
|
+
}
|
183
|
+
},
|
184
|
+
"avatar": {
|
185
|
+
"type": "object",
|
186
|
+
"properties": {
|
187
|
+
"type": { "type": "string", "example": "initials" },
|
188
|
+
"color": { "type": "string", "example": "#1000" },
|
189
|
+
"initials": {
|
190
|
+
"type": "string",
|
191
|
+
"minLength": 2,
|
192
|
+
"maxLength": 2,
|
193
|
+
"example": "JD"
|
140
194
|
}
|
141
195
|
}
|
142
|
-
}
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
196
|
+
},
|
197
|
+
"group_details": {
|
198
|
+
"type": "object",
|
199
|
+
"properties": {
|
200
|
+
"group_id": { "$ref": "components.json#/components/common/schemas/association_by_id" },
|
201
|
+
"is_user": { "oneOf": [{ "type": "string", "example": "true" }, { "type": "boolean" }] },
|
202
|
+
"id": { "$ref": "components.json#/components/response/schemas/id" },
|
203
|
+
"name": { "type": "string", "example": "John Doe" },
|
204
|
+
"email": { "type": "string", "example": "john.doe@email.com" },
|
205
|
+
"avatar": { "$ref": "components.json#/components/response/schemas/avatar" }
|
206
|
+
}
|
207
|
+
},
|
208
|
+
"user_details": {
|
209
|
+
"type": "object",
|
210
|
+
"properties": {
|
211
|
+
"id": { "$ref": "components.json#/components/response/schemas/id" },
|
212
|
+
"account_id": { "$ref": "components.json#/components/response/schemas/id" },
|
213
|
+
"user_id": { "$ref": "components.json#/components/response/schemas/id" },
|
214
|
+
"email": { "type": "string", "example": "john.doe@email.com" },
|
215
|
+
"name": { "type": "string", "example": "John Doe" },
|
216
|
+
"disabled": { "type": "boolean", "example": false },
|
217
|
+
"avatar": { "$ref": "components.json#/components/response/schemas/avatar" }
|
218
|
+
}
|
219
|
+
},
|
220
|
+
"site_response": {
|
221
|
+
"type": "object",
|
222
|
+
"properties": {
|
223
|
+
"id": { "$ref": "components.json#/components/response/schemas/id" },
|
224
|
+
"name": { "type": "string", "example": "Austin TX, USA" },
|
225
|
+
"description": { "type": "string", "example": "AUS" },
|
226
|
+
"location": { "type": "string", "example": "AUS" },
|
227
|
+
"timezone": { "type": "string", "example": "UTC-6h" }
|
228
|
+
}
|
229
|
+
},
|
230
|
+
"department_response": {
|
147
231
|
"type": "object",
|
148
232
|
"properties": {
|
149
|
-
"id": { "$ref": "components.json#/components/schemas/
|
150
|
-
"
|
233
|
+
"id": { "$ref": "components.json#/components/response/schemas/id" },
|
234
|
+
"name": { "type": "string", "example": "Support" },
|
235
|
+
"description": { "type": "string", "example": "Support Department" },
|
236
|
+
"default_assignee_id": { "$ref": "components.json#/components/response/schemas/id" }
|
237
|
+
}
|
238
|
+
},
|
239
|
+
"response_attachments": {
|
240
|
+
"type": "array",
|
241
|
+
"items": {
|
242
|
+
"type": "object",
|
243
|
+
"properties": {
|
244
|
+
"id": { "$ref": "components.json#/components/common/schemas/association_by_id" },
|
245
|
+
"href": { "type": "string", "example": "https://mydomain.com/object_type/1" }
|
246
|
+
}
|
151
247
|
}
|
248
|
+
},
|
249
|
+
"role": {
|
250
|
+
"type": "object",
|
251
|
+
"properties": {
|
252
|
+
"id": { "$ref": "components.json#/components/response/schemas/id" },
|
253
|
+
"name": { "type": "string", "example": "Requester" },
|
254
|
+
"description": { "type": "string", "example": "Requester role" },
|
255
|
+
"portal": { "type": "boolean", "example": true },
|
256
|
+
"show_my_tasks": { "type": "boolean", "example": true }
|
257
|
+
}
|
258
|
+
},
|
259
|
+
"tag": {
|
260
|
+
"type": "object",
|
261
|
+
"properties": {
|
262
|
+
"id": { "$ref": "components.json#/components/response/schemas/id" },
|
263
|
+
"name": { "type": "string", "example": "tag name" },
|
264
|
+
"taggings_count": { "type": "integer", "example": 1 }
|
265
|
+
}
|
266
|
+
},
|
267
|
+
"tags": {
|
268
|
+
"type": "array",
|
269
|
+
"items": { "$ref": "components.json#/components/response/schemas/tag" }
|
270
|
+
},
|
271
|
+
"approvers": {
|
272
|
+
"type": "array",
|
273
|
+
"items": { "$ref": "components.json#/components/response/schemas/group_details" }
|
274
|
+
},
|
275
|
+
"creator": {
|
276
|
+
"type": "object",
|
277
|
+
"properties": {
|
278
|
+
"id": { "$ref": "components.json#/components/response/schemas/id" },
|
279
|
+
"name": { "type": "string", "example": "tag name" },
|
280
|
+
"email": { "type": "string", "format": "email", "example": "john.doe@email.com" }
|
281
|
+
}
|
282
|
+
},
|
283
|
+
"ci_type": {
|
284
|
+
"type": "object",
|
285
|
+
"properties": {
|
286
|
+
"id": { "$ref": "components.json#/components/response/schemas/id" },
|
287
|
+
"name": { "type": "string", "example": "Building" },
|
288
|
+
"description": { "type": "string", "example": "Configuration Item - Building" },
|
289
|
+
"parent_id": { "$ref": "components.json#/components/response/schemas/id" },
|
290
|
+
"custom": { "type": "boolean", "example": false },
|
291
|
+
"icon_name": { "type": "string", "example": "BUILDING" },
|
292
|
+
"updated_at": { "type": "string", "example": "2025-01-01T00:00:00.000+01:00" }
|
293
|
+
}
|
294
|
+
},
|
295
|
+
"bioses": {
|
296
|
+
"type": "array",
|
297
|
+
"items": {
|
298
|
+
"type": "object",
|
299
|
+
"properties": {
|
300
|
+
"id": { "$ref": "components.json#/components/response/schemas/id" },
|
301
|
+
"manufacturer": { "type": "string", "example": "Dell" },
|
302
|
+
"ssn": { "type": "string", "example": "1" },
|
303
|
+
"model": { "type": "string", "example": "model description" },
|
304
|
+
"version": { "type": "string", "example": "1" },
|
305
|
+
"bios_date": { "type": "string", "example": "2020-01-01 00:00" },
|
306
|
+
"reported_at": { "type": "string", "example": "2020-01-01 00:00" }
|
307
|
+
}
|
308
|
+
}
|
309
|
+
},
|
310
|
+
"asset_type": {
|
311
|
+
"type": "object",
|
312
|
+
"properties": {
|
313
|
+
"id": { "$ref": "components.json#/components/response/schemas/id" },
|
314
|
+
"account_id": { "$ref": "components.json#/components/response/schemas/id" },
|
315
|
+
"parent_id": { "$ref": "components.json#/components/response/schemas/id" },
|
316
|
+
"name": { "type": "string", "example": "Asset Type" }
|
317
|
+
}
|
318
|
+
},
|
319
|
+
"vendor": {
|
320
|
+
"type": "object",
|
321
|
+
"properties": {
|
322
|
+
"id": { "$ref": "components.json#/components/response/schemas/id" },
|
323
|
+
"name": { "type": "string", "example": "Google" },
|
324
|
+
"address": { "type": "string", "example": "address description" },
|
325
|
+
"country": { "type": "string", "example": "US" },
|
326
|
+
"city": { "type": "string", "example": "Texas" },
|
327
|
+
"zip": { "type": "string", "example": "1" },
|
328
|
+
"tech_support": { "type": "string", "example": "+000000000", "description": "support phone number" },
|
329
|
+
"business_phone": { "type": "string", "example": "+000000000", "description": "business phone" },
|
330
|
+
"url": { "type": "string", "example": "www.google.com" },
|
331
|
+
"created_at": { "type": "string", "example": "2020-01-01T00:00:00.000+01:00" },
|
332
|
+
"updated_at": { "type": "string", "example": "2020-10-01T00:00:00.000+01:00" }
|
333
|
+
}
|
334
|
+
},
|
335
|
+
"procurement_items": {
|
336
|
+
"type": "array",
|
337
|
+
"items": {
|
338
|
+
"type": "object",
|
339
|
+
"properties": {
|
340
|
+
"name": { "type": "string", "example": "Item Name" },
|
341
|
+
"version": { "type": "string", "example": "0.0.0" },
|
342
|
+
"quantity": { "type": "string", "example": "1" },
|
343
|
+
"notes": { "type": "string", "example": "Item notes" },
|
344
|
+
"created_at": { "type": "string", "example": "2020-01-01T00:00:00.000+01:00" },
|
345
|
+
"updated_at": { "type": "string", "example": "2020-10-01T00:00:00.000+01:00" },
|
346
|
+
"tag": { "type": "string", "example": "example tag" }
|
347
|
+
}
|
348
|
+
}
|
349
|
+
},
|
350
|
+
"id_name_href": {
|
351
|
+
"type": "object",
|
352
|
+
"properties": {
|
353
|
+
"id": { "$ref": "components.json#/components/response/schemas/id" },
|
354
|
+
"name": { "type": "string", "example": "Object Name" },
|
355
|
+
"href": { "type": "string", "example": "/objects/1" }
|
356
|
+
}
|
357
|
+
},
|
358
|
+
"parent_object": {
|
359
|
+
"type": "object",
|
360
|
+
"properties": {
|
361
|
+
"id": { "$ref": "components.json#/components/response/schemas/id" },
|
362
|
+
"class": { "type": "string", "example": "Incident" }
|
363
|
+
}
|
364
|
+
}
|
365
|
+
}
|
366
|
+
},
|
367
|
+
"common": {
|
368
|
+
"schemas": {
|
369
|
+
"association_by_id": {
|
370
|
+
"anyOf": [{ "type": "string", "example": "1" }, { "type": "integer", "example": 1 }]
|
371
|
+
},
|
372
|
+
"ids_array": {
|
373
|
+
"type": "array",
|
374
|
+
"items": {
|
375
|
+
"$ref": "components.json#/components/common/schemas/association_by_id"
|
376
|
+
},
|
377
|
+
"xml": { "wrapped": true },
|
378
|
+
"description": "for xml requests, please add: type=\"array\", for example: <incident_ids type=\"array\"><incident_id>1</incident_id></incident_ids>"
|
379
|
+
},
|
380
|
+
"number_or_string": {
|
381
|
+
"anyOf": [{ "type": "string", "example": "1" }, { "type": "integer", "example": 1 }]
|
152
382
|
}
|
153
383
|
}
|
154
384
|
}
|