· 2 years ago · Jul 18, 2023, 04:05 PM
1 ],
2 "summary": "Update",
3 "requestBody": {
4 "description": "Update User Preferences for application",
5 "required": true,
6 "content": {
7 "application/json": {
8 "schema": {
9 "type": "object",
10 "properties": {
11 "user_id": {
12 "type": "string"
13 },
14 "proxy_user_id": {
15 "type": "string"
16 },
17 "notification_type": {
18 "type": "integer"
19 },
20 "buyer_approval": {
21 "type": "integer"
22 }
23 }
24 }
25 }
26 }
27 },
28 "responses": {
29 "201": {
30 "description": "Updated"
31 }
32 }
33 },
34 "components": {
35 "responses": null,
36 "UnauthorizedError": {
37 "description": "API key is missing or invalid",
38 "headers": {
39 "WWW_Authenticate": {
40 "schema": {
41 "type": "string"
42 }
43 }
44 }
45 }
46 }
47 },
48 "/users": {
49 "get": {
50 "tags": [
51 "users"
52 ],
53 "description": "Finds users",
54 "summary": "Find",
55 "parameters": [
56 {
57 "in": "query",
58 "name": "user_id",
59 "default": 18200,
60 "schema": {
61 "type": "number"
62 },
63 "description": "Filter on user_id"
64 },
65 {
66 "in": "query",
67 "name": "workday_id",
68 "default": null,
69 "schema": {
70 "type": "string"
71 },
72 "description": "Find user based on workday id"
73 },
74 {
75 "in": "query",
76 "name": "azure_id",
77 "default": "75725161-de4e-4f71-8729-ace0296260a1",
78 "schema": {
79 "type": "string"
80 },
81 "description": "Find user based on azure id"
82 },
83 {
84 "in": "query",
85 "name": "ldap_id",
86 "default": "lveres",
87 "schema": {
88 "type": "string"
89 },
90 "description": "Find user based on ldap id"
91 },
92 {
93 "in": "query",
94 "name": "email",
95 "default": "Lydia.Veres@burlington.com",
96 "schema": {
97 "type": "string"
98 },
99 "description": "Find user based on email"
100 },
101 {
102 "in": "query",
103 "name": "offset",
104 "default": null,
105 "schema": {
106 "type": "integer"
107 },
108 "description": "Offset this [integer] amount of records."
109 },
110 {
111 "in": "query",
112 "name": "limit",
113 "default": 10,
114 "schema": {
115 "type": "integer"
116 },
117 "description": "Return this [integer] amount of records."
118 }
119 ],
120 "responses": {
121 "200": {
122 "description": "A successful response"
123 }
124 }
125 },
126 "post": {
127 "tags": [
128 "users"
129 ],
130 "summary": "Create",
131 "requestBody": {
132 "description": "Create new user",
133 "required": true,
134 "content": {
135 "application/json": {
136 "schema": {
137 "type": "object",
138 "properties": {
139 "azure_id": {
140 "type": "string"
141 },
142 "email": {
143 "type": "string"
144 },
145 "ldap_id": {
146 "type": "string"
147 },
148 "workday_id": {
149 "type": "number"
150 }
151 }
152 }
153 }
154 }
155 },
156 "responses": {
157 "201": {
158 "description": "Updated"
159 }
160 }
161 },
162 "patch": {
163 "tags": [
164 "users"
165 ],
166 "summary": "Update",
167 "requestBody": {
168 "description": "Update users",
169 "required": true,
170 "content": {
171 "application/json": {
172 "schema": {
173 "type": "object",
174 "properties": {
175 "user_id": {
176 "type": "integer"
177 },
178 "azure_id": {
179 "type": "string"
180 },
181 "ldap_id": {
182 "type": "string"
183 },
184 "email": {
185 "type": "string"
186 },
187 "workday_id": {
188 "type": "string"
189 }
190 }
191 }
192 }
193 }
194 },
195 "responses": {
196 "201": {
197 "description": "Updated"
198 }
199 }
200 },
201 "components": {
202 "responses": null,
203 "UnauthorizedError": {
204 "description": "API key is missing or invalid",
205 "headers": {
206 "WWW_Authenticate": {
207 "schema": {
208 "type": "string"
209 }
210 }
211 }
212 }
213 }
214 }
215 },
216 "tags": []
217}