solarwinds-itsm-api-definitions 0.1.1 → 0.1.6
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 +298 -49
- data/lib/definitions/common/examples/catalog_item.json +70 -0
- data/lib/definitions/common/examples/change.json +127 -0
- data/lib/definitions/common/examples/change_catalog.json +92 -0
- data/lib/definitions/common/examples/configuration_item.json +108 -0
- data/lib/definitions/common/examples/hardware.json +125 -0
- data/lib/definitions/common/examples/incident.json +134 -109
- data/lib/definitions/common/examples/problem.json +132 -0
- data/lib/definitions/common/examples/release.json +150 -0
- data/lib/definitions/common/examples/service_request.json +28 -0
- data/lib/definitions/common/examples/solution.json +49 -0
- data/lib/definitions/common/examples/user.json +106 -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 +85 -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 +117 -0
- data/lib/definitions/common/schemas/service_desk/incident.json +99 -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 +105 -10
- 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 +7 -7
- data/lib/definitions/paths/incidents/incidents.json +11 -11
- 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/solarwinds/itsm/api/definitions.rb +52 -3
- metadata +106 -4
- data/lib/definitions/common/schemas/incident.json +0 -78
- data/lib/resolved_schema/resolved_schema.json +0 -1
@@ -1,115 +1,140 @@
|
|
1
1
|
{
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
2
|
+
"examples": {
|
3
|
+
"request": {
|
4
|
+
"json": {
|
5
|
+
"incident": {
|
6
|
+
"name": "Incident Name",
|
7
|
+
"site_id": 1,
|
8
|
+
"department_id": 1,
|
9
|
+
"description": "description",
|
10
|
+
"state_id": 1,
|
11
|
+
"assignee": { "email": "john.doe@email.com" },
|
12
|
+
"requester": { "email": "john.doe@email.com" },
|
13
|
+
"priority": "High",
|
14
|
+
"category": { "name": "Facilities" },
|
15
|
+
"subcategory": { "name": "Equipment" },
|
16
|
+
"due_at": "Jan 01,2025",
|
17
|
+
"add_to_tag_list": "tag1, tag2",
|
18
|
+
"remove_from_tag_list": "tag3",
|
19
|
+
"tag_list": "tag1, tag2",
|
20
|
+
"custom_fields_values_attributes": [
|
21
|
+
{ "id": 10, "custom_field_id": 1, "value": "content" },
|
22
|
+
{ "id": 100, "custom_field_id": 2, "value": "1" }
|
23
|
+
],
|
24
|
+
"custom_fields_values": {
|
25
|
+
"custom_fields_value": [
|
26
|
+
{ "name": "Text custom field", "value": "content" },
|
27
|
+
{ "name": "User custom field", "user_value": { "email": "john.doe@email.com" } }
|
28
|
+
]
|
29
|
+
},
|
30
|
+
"incidents": [{ "number": "100" }],
|
31
|
+
"problems": [{ "number": "100" }],
|
32
|
+
"changes": [{ "number": "100" }],
|
33
|
+
"solutions": [{ "number" :"100" }],
|
34
|
+
"releases": [{ "number": "100" }],
|
35
|
+
"configuration_item_ids":["100"],
|
36
|
+
"cc": ["jane.doe@email.com"]
|
37
|
+
}
|
38
|
+
}
|
39
|
+
},
|
40
|
+
"response": {
|
41
|
+
"json": {
|
42
|
+
"incident": {
|
43
|
+
"id": "10000",
|
44
|
+
"number": "1000",
|
45
|
+
"name": "Incident Name",
|
46
|
+
"description": "description",
|
47
|
+
"state": "New",
|
48
|
+
"site": {
|
49
|
+
"id": "1",
|
50
|
+
"name": "Austin TX, USA",
|
51
|
+
"location": "AUS",
|
52
|
+
"description": "",
|
53
|
+
"time_zone": ""
|
54
|
+
},
|
55
|
+
"department": {
|
56
|
+
"id": "1",
|
57
|
+
"name": "Support",
|
58
|
+
"description": "",
|
59
|
+
"default_assignee_id": "1"
|
60
|
+
},
|
61
|
+
"category": {
|
62
|
+
"id": "10000",
|
63
|
+
"name": "Facilities",
|
64
|
+
"default_tags": "tagA, tagB",
|
65
|
+
"parent_id": "null",
|
66
|
+
"default_assignee_id": "1"
|
67
|
+
},
|
68
|
+
"subcategory": {
|
69
|
+
"id": "1000",
|
70
|
+
"name": "Equipment",
|
71
|
+
"default_tags": "",
|
72
|
+
"parent_id": "10000",
|
73
|
+
"default_assignee_id": "1"
|
74
|
+
},
|
75
|
+
"priority": "High",
|
76
|
+
"assignee": {
|
77
|
+
"group_id": "1",
|
78
|
+
"is_user": "true",
|
79
|
+
"id": "1",
|
80
|
+
"name": "John Doe",
|
81
|
+
"email": "john.doe@email.com",
|
82
|
+
"avatar": {
|
83
|
+
"type": "initials",
|
84
|
+
"color": "#fd4165",
|
85
|
+
"initials": "JD"
|
86
|
+
}
|
87
|
+
},
|
88
|
+
"requester": {
|
89
|
+
"id": "1",
|
90
|
+
"account_id": "1",
|
91
|
+
"user_id": "1",
|
92
|
+
"email": "john.doe@email.com",
|
93
|
+
"name": "John Doe",
|
94
|
+
"disabled": false,
|
95
|
+
"avatar": {
|
96
|
+
"type": "initials",
|
97
|
+
"color": "#fd4165",
|
98
|
+
"initials": "JD"
|
30
99
|
}
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
"name": "Facilities",
|
56
|
-
"default_tags": "tagA, tagB",
|
57
|
-
"parent_id": "null",
|
58
|
-
"default_assignee_id": "1"
|
59
|
-
},
|
60
|
-
"subcategory": {
|
61
|
-
"id": "1000",
|
62
|
-
"name": "Equipment",
|
63
|
-
"default_tags": "",
|
64
|
-
"parent_id": "10000",
|
65
|
-
"default_assignee_id": "1"
|
66
|
-
},
|
67
|
-
"priority": "High",
|
68
|
-
"assignee": {
|
69
|
-
"group_id": "1",
|
70
|
-
"is_user": "true",
|
71
|
-
"id": "1",
|
72
|
-
"name": "Jogn Doe",
|
73
|
-
"email": "john.doe@email.com",
|
74
|
-
"avatar": {
|
75
|
-
"type": "initials",
|
76
|
-
"color": "#fd4165",
|
77
|
-
"initials": "JD"
|
78
|
-
}
|
79
|
-
},
|
80
|
-
"requester": {
|
81
|
-
"id": "1",
|
82
|
-
"account_id": "1",
|
83
|
-
"user_id": "1",
|
84
|
-
"email": "john.doe@email.com",
|
85
|
-
"name": "John Doe",
|
86
|
-
"disabled": false,
|
87
|
-
"avatar": {
|
88
|
-
"type": "initials",
|
89
|
-
"color": "#fd4165",
|
90
|
-
"initials": "JD"
|
91
|
-
}
|
92
|
-
},
|
93
|
-
"custom_fields_values": [
|
94
|
-
{
|
95
|
-
"id": "1000",
|
96
|
-
"custom_field_id": "1",
|
97
|
-
"name": "field name",
|
98
|
-
"value": "content",
|
99
|
-
"options": "",
|
100
|
-
"type_name": "Text"
|
101
|
-
}
|
102
|
-
],
|
103
|
-
"due_at": "2025-01-01T00:00:00.000+01:00",
|
104
|
-
"origin": "api",
|
105
|
-
"incidents": [{ "id": "100", "href": "https://mydomain.com/incidents/123"}],
|
106
|
-
"problems": [{ "id": "100", "href": "https://mydomain.com/problems/123"}],
|
107
|
-
"changes": [{ "id": "100", "href": "https://mydomain.com/changes/123"}],
|
108
|
-
"solutions": [{ "id": "100", "href": "https://mydomain.com/solutions/123"}],
|
109
|
-
"releases": [{ "id": "100", "href": "https://mydomain.com/releases/123"}],
|
110
|
-
"configuration_items": [{ "id": "100", "href": "https://mydomain.com/configuration_items/123"}]
|
111
|
-
}
|
100
|
+
},
|
101
|
+
"custom_fields_values": [
|
102
|
+
{
|
103
|
+
"id": "10",
|
104
|
+
"custom_field_id": "1",
|
105
|
+
"name": "Text custom field",
|
106
|
+
"value": "content",
|
107
|
+
"options": "",
|
108
|
+
"type_name": "Text"
|
109
|
+
},
|
110
|
+
{
|
111
|
+
"id": "100",
|
112
|
+
"custom_field_id": "2",
|
113
|
+
"name": "User custom field",
|
114
|
+
"value": "1",
|
115
|
+
"options": "",
|
116
|
+
"type_name": "User",
|
117
|
+
"user": {
|
118
|
+
"group_id": 1,
|
119
|
+
"is_user": true,
|
120
|
+
"id": 1,
|
121
|
+
"name": "John Doe",
|
122
|
+
"email": "john.doe@email.com"
|
123
|
+
}
|
112
124
|
}
|
125
|
+
],
|
126
|
+
"due_at": "2025-01-01T00:00:00.000+01:00",
|
127
|
+
"origin": "api",
|
128
|
+
"incidents": [{ "id": "100", "href": "https://mydomain.com/incidents/100"}],
|
129
|
+
"problems": [{ "id": "100", "href": "https://mydomain.com/problems/100"}],
|
130
|
+
"changes": [{ "id": "100", "href": "https://mydomain.com/changes/100"}],
|
131
|
+
"solutions": [{ "id": "100", "href": "https://mydomain.com/solutions/100"}],
|
132
|
+
"releases": [{ "id": "100", "href": "https://mydomain.com/releases/100"}],
|
133
|
+
"configuration_items": [{ "id": "100", "href": "https://mydomain.com/configuration_items/100"}],
|
134
|
+
"is_service_request": false,
|
135
|
+
"cc": ["jane.doe@email.com"]
|
113
136
|
}
|
137
|
+
}
|
114
138
|
}
|
139
|
+
}
|
115
140
|
}
|
@@ -0,0 +1,132 @@
|
|
1
|
+
{
|
2
|
+
"examples": {
|
3
|
+
"request": {
|
4
|
+
"json": {
|
5
|
+
"problem": {
|
6
|
+
"name": "Problem Name",
|
7
|
+
"site_id": 1,
|
8
|
+
"department_id": 1,
|
9
|
+
"description": "description",
|
10
|
+
"state": 1,
|
11
|
+
"root_cause": "Root cause description",
|
12
|
+
"symptoms": "Symptoms description",
|
13
|
+
"workaround": "workaround description",
|
14
|
+
"assignee": { "email": "john.doe@email.com" },
|
15
|
+
"requester": { "email": "john.doe@email.com" },
|
16
|
+
"priority": "High",
|
17
|
+
"add_to_tag_list": "tag1",
|
18
|
+
"remove_from_tag_list": "tag2",
|
19
|
+
"tag_list": "tag1",
|
20
|
+
"custom_fields_values_attributes": [
|
21
|
+
{ "id": 10, "custom_field_id": 1, "value": "content" },
|
22
|
+
{ "id": 100, "custom_field_id": 2, "value": "1" }
|
23
|
+
],
|
24
|
+
"custom_fields_values": {
|
25
|
+
"custom_fields_value": [
|
26
|
+
{ "name": "Text custom field", "value": "content" },
|
27
|
+
{ "name": "User custom field", "user_value": { "email": "john.doe@email.com" } }
|
28
|
+
]
|
29
|
+
},
|
30
|
+
"incident_ids": [100],
|
31
|
+
"itsm_change_ids": [100],
|
32
|
+
"configuration_item_ids":[100]
|
33
|
+
}
|
34
|
+
}
|
35
|
+
},
|
36
|
+
"response": {
|
37
|
+
"json": {
|
38
|
+
"problem": {
|
39
|
+
"id": "10000",
|
40
|
+
"number": "1000",
|
41
|
+
"name": "Problem Name",
|
42
|
+
"description": "description",
|
43
|
+
"state": "New",
|
44
|
+
"root_cause": "Root cause description",
|
45
|
+
"symptoms": "Symptoms description",
|
46
|
+
"workaround": "workaround description",
|
47
|
+
"site": {
|
48
|
+
"id": "1",
|
49
|
+
"name": "Austin TX, USA",
|
50
|
+
"location": "AUS",
|
51
|
+
"description": "",
|
52
|
+
"time_zone": ""
|
53
|
+
},
|
54
|
+
"department": {
|
55
|
+
"id": "1",
|
56
|
+
"name": "Support",
|
57
|
+
"description": "",
|
58
|
+
"default_assignee_id": "1"
|
59
|
+
},
|
60
|
+
"priority": "High",
|
61
|
+
"created_by": {
|
62
|
+
"id": "1",
|
63
|
+
"account_id": "1",
|
64
|
+
"user_id": "1",
|
65
|
+
"email": "john.doe@email.com",
|
66
|
+
"name": "John Doe",
|
67
|
+
"disabled": false,
|
68
|
+
"avatar": {
|
69
|
+
"type": "initials",
|
70
|
+
"color": "#fd4165",
|
71
|
+
"initials": "JD"
|
72
|
+
}
|
73
|
+
},
|
74
|
+
"assignee": {
|
75
|
+
"group_id": "1",
|
76
|
+
"is_user": "true",
|
77
|
+
"id": "1",
|
78
|
+
"name": "John Doe",
|
79
|
+
"email": "john.doe@email.com",
|
80
|
+
"avatar": {
|
81
|
+
"type": "initials",
|
82
|
+
"color": "#fd4165",
|
83
|
+
"initials": "JD"
|
84
|
+
}
|
85
|
+
},
|
86
|
+
"requester": {
|
87
|
+
"id": "1",
|
88
|
+
"account_id": "1",
|
89
|
+
"user_id": "1",
|
90
|
+
"email": "john.doe@email.com",
|
91
|
+
"name": "John Doe",
|
92
|
+
"disabled": false,
|
93
|
+
"avatar": {
|
94
|
+
"type": "initials",
|
95
|
+
"color": "#fd4165",
|
96
|
+
"initials": "JD"
|
97
|
+
}
|
98
|
+
},
|
99
|
+
"custom_fields_values": [
|
100
|
+
{
|
101
|
+
"id": "10",
|
102
|
+
"custom_field_id": "1",
|
103
|
+
"name": "Text custom field",
|
104
|
+
"value": "content",
|
105
|
+
"options": "",
|
106
|
+
"type_name": "Text"
|
107
|
+
},
|
108
|
+
{
|
109
|
+
"id": "100",
|
110
|
+
"custom_field_id": "2",
|
111
|
+
"name": "User custom field",
|
112
|
+
"value": "1",
|
113
|
+
"options": "",
|
114
|
+
"type_name": "User",
|
115
|
+
"user": {
|
116
|
+
"group_id": 1,
|
117
|
+
"is_user": true,
|
118
|
+
"id": 1,
|
119
|
+
"name": "John Doe",
|
120
|
+
"email": "john.doe@email.com"
|
121
|
+
}
|
122
|
+
}
|
123
|
+
],
|
124
|
+
"tags": [{ "id": 1, "name": "tag1", "taggings_count": 1 }],
|
125
|
+
"incidents": [{ "id": "100", "href": "https://mydomain.com/incidents/100"}],
|
126
|
+
"changes": [{ "id": "100", "href": "https://mydomain.com/changes/100"}],
|
127
|
+
"configuration_items": [{ "id": "100", "href": "https://mydomain.com/configuration_items/100"}]
|
128
|
+
}
|
129
|
+
}
|
130
|
+
}
|
131
|
+
}
|
132
|
+
}
|
@@ -0,0 +1,150 @@
|
|
1
|
+
{
|
2
|
+
"examples": {
|
3
|
+
"request": {
|
4
|
+
"json": {
|
5
|
+
"release": {
|
6
|
+
"name": "Release Name",
|
7
|
+
"site_id": 1,
|
8
|
+
"department_id": 1,
|
9
|
+
"description": "description",
|
10
|
+
"state": 1,
|
11
|
+
"plan": "plan description" ,
|
12
|
+
"build": "build description",
|
13
|
+
"deploy": "deploy description",
|
14
|
+
"planned_start_at": "2025-01-01 00:00",
|
15
|
+
"planned_end_at": "2025-01-01 05:00" ,
|
16
|
+
"assignee": { "email": "john.doe@email.com" },
|
17
|
+
"requester": { "email": "john.doe@email.com" },
|
18
|
+
"priority": "High",
|
19
|
+
"add_to_tag_list": "tag1",
|
20
|
+
"remove_from_tag_list": "tag2",
|
21
|
+
"tag_list": "tag1",
|
22
|
+
"custom_fields_values_attributes": [
|
23
|
+
{ "id": 10, "custom_field_id": 1, "value": "content" },
|
24
|
+
{ "id": 100, "custom_field_id": 2, "value": "1" }
|
25
|
+
],
|
26
|
+
"custom_fields_values": {
|
27
|
+
"custom_fields_value": [
|
28
|
+
{ "name": "Text custom field", "value": "content" },
|
29
|
+
{ "name": "User custom field", "user_value": { "email": "john.doe@email.com" } }
|
30
|
+
]
|
31
|
+
},
|
32
|
+
"approval_levels_attributes": [
|
33
|
+
{ "id": "1", "approver_ids": "1", "approval_condition": "1" }
|
34
|
+
],
|
35
|
+
"itsm_change_ids": [100],
|
36
|
+
"configuration_item_ids":[100]
|
37
|
+
}
|
38
|
+
}
|
39
|
+
},
|
40
|
+
"response": {
|
41
|
+
"json": {
|
42
|
+
"release": {
|
43
|
+
"id": "10000",
|
44
|
+
"number": "1000",
|
45
|
+
"name": "Release Name",
|
46
|
+
"description": "description",
|
47
|
+
"state": "New",
|
48
|
+
"plan": "plan description" ,
|
49
|
+
"build": "build description",
|
50
|
+
"deploy": "deploy description",
|
51
|
+
"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
|
+
},
|
65
|
+
"priority": "High",
|
66
|
+
"created_by": {
|
67
|
+
"id": "1",
|
68
|
+
"account_id": "1",
|
69
|
+
"user_id": "1",
|
70
|
+
"email": "john.doe@email.com",
|
71
|
+
"name": "John Doe",
|
72
|
+
"disabled": false,
|
73
|
+
"avatar": {
|
74
|
+
"type": "initials",
|
75
|
+
"color": "#fd4165",
|
76
|
+
"initials": "JD"
|
77
|
+
}
|
78
|
+
},
|
79
|
+
"assignee": {
|
80
|
+
"group_id": "1",
|
81
|
+
"is_user": "true",
|
82
|
+
"id": "1",
|
83
|
+
"name": "John Doe",
|
84
|
+
"email": "john.doe@email.com",
|
85
|
+
"avatar": {
|
86
|
+
"type": "initials",
|
87
|
+
"color": "#fd4165",
|
88
|
+
"initials": "JD"
|
89
|
+
}
|
90
|
+
},
|
91
|
+
"requester": {
|
92
|
+
"id": "1",
|
93
|
+
"account_id": "1",
|
94
|
+
"user_id": "1",
|
95
|
+
"email": "john.doe@email.com",
|
96
|
+
"name": "John Doe",
|
97
|
+
"disabled": false,
|
98
|
+
"avatar": {
|
99
|
+
"type": "initials",
|
100
|
+
"color": "#fd4165",
|
101
|
+
"initials": "JD"
|
102
|
+
}
|
103
|
+
},
|
104
|
+
"custom_fields_values": [
|
105
|
+
{
|
106
|
+
"id": "10",
|
107
|
+
"custom_field_id": "1",
|
108
|
+
"name": "Text custom field",
|
109
|
+
"value": "content",
|
110
|
+
"options": "",
|
111
|
+
"type_name": "Text"
|
112
|
+
},
|
113
|
+
{
|
114
|
+
"id": "100",
|
115
|
+
"custom_field_id": "2",
|
116
|
+
"name": "User custom field",
|
117
|
+
"value": "1",
|
118
|
+
"options": "",
|
119
|
+
"type_name": "User",
|
120
|
+
"user": {
|
121
|
+
"group_id": 1,
|
122
|
+
"is_user": true,
|
123
|
+
"id": 1,
|
124
|
+
"name": "John Doe",
|
125
|
+
"email": "john.doe@email.com"
|
126
|
+
}
|
127
|
+
}
|
128
|
+
],
|
129
|
+
"tags": [{ "id": 1, "name": "tag1", "taggings_count": 1 }],
|
130
|
+
"approvers": [
|
131
|
+
{
|
132
|
+
"group_id": "1",
|
133
|
+
"is_user": "true",
|
134
|
+
"id": "1",
|
135
|
+
"name": "John Doe",
|
136
|
+
"email": "john.doe@email.com",
|
137
|
+
"avatar": {
|
138
|
+
"type": "initials",
|
139
|
+
"color": "#fd4165",
|
140
|
+
"initials": "JD"
|
141
|
+
}
|
142
|
+
}
|
143
|
+
],
|
144
|
+
"changes": [{ "id": "100", "href": "https://mydomain.com/changes/100"}],
|
145
|
+
"configuration_items": [{ "id": "100", "href": "https://mydomain.com/configuration_items/100"}]
|
146
|
+
}
|
147
|
+
}
|
148
|
+
}
|
149
|
+
}
|
150
|
+
}
|