e6688c18f908d2d06b55049548c3832b82f4a827
[motion2.git] / apidoc / api_data.js
1 define({ "api": [
2   {
3     "type": "post",
4     "url": "/api/cm/hopper/timezone",
5     "title": "Gets a single TZ data",
6     "examples": [
7       {
8         "title": "Example usage:",
9         "content": "curl https://{domain}/api/cm/hopper/timezone -d '{\"timezone\": [1]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X GET",
10         "type": "json"
11       }
12     ],
13     "name": "getTimezone",
14     "version": "0.0.0",
15     "filename": "server/api/cmHopper/index.js",
16     "group": "/var/opt/motion2/server/api/cmHopper/index.js",
17     "groupTitle": "/var/opt/motion2/server/api/cmHopper/index.js"
18   },
19   {
20     "type": "delete",
21     "url": "/api/square/projects/{id}/users",
22     "title": "Removes user permissions from a Project",
23     "examples": [
24       {
25         "title": "Example usage:",
26         "content": "curl https://{domain}/api/square/projects/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
27         "type": "json"
28       }
29     ],
30     "version": "0.0.0",
31     "filename": "server/api/squareProject/index.js",
32     "group": "/var/opt/motion2/server/api/squareProject/index.js",
33     "groupTitle": "/var/opt/motion2/server/api/squareProject/index.js",
34     "name": "DeleteApiSquareProjectsIdUsers"
35   },
36   {
37     "type": "get",
38     "url": "/api/square/projects/{id}/users",
39     "title": "Gets users permissions from Project",
40     "examples": [
41       {
42         "title": "Example usage:",
43         "content": "curl https://{domain}/api/square/projects/{id}/users -v -u {name}:{password} -X GET",
44         "type": "json"
45       }
46     ],
47     "version": "0.0.0",
48     "filename": "server/api/squareProject/index.js",
49     "group": "/var/opt/motion2/server/api/squareProject/index.js",
50     "groupTitle": "/var/opt/motion2/server/api/squareProject/index.js",
51     "name": "GetApiSquareProjectsIdUsers"
52   },
53   {
54     "type": "post",
55     "url": "/api/square/projects/{id}/users",
56     "title": "Adds user permissions to a Project",
57     "examples": [
58       {
59         "title": "Example usage:",
60         "content": "curl https://{domain}/api/square/projects/{id}/users -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
61         "type": "json"
62       }
63     ],
64     "version": "0.0.0",
65     "filename": "server/api/squareProject/index.js",
66     "group": "/var/opt/motion2/server/api/squareProject/index.js",
67     "groupTitle": "/var/opt/motion2/server/api/squareProject/index.js",
68     "name": "PostApiSquareProjectsIdUsers"
69   },
70   {
71     "type": "delete",
72     "url": "/api/actions/{id}",
73     "title": "Deletes a Action",
74     "examples": [
75       {
76         "title": "Example usage:",
77         "content": "curl https://{domain}/api/actions/{id} -v -u {name}:{password} -X DELETE",
78         "type": "json"
79       }
80     ],
81     "name": "DeleteActions",
82     "group": "Actions",
83     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
84     "version": "0.0.0",
85     "filename": "server/api/action/index.js",
86     "groupTitle": "Actions"
87   },
88   {
89     "type": "put",
90     "url": "/api/actions/{id}",
91     "title": "Update an existing Action",
92     "examples": [
93       {
94         "title": "Example usage:",
95         "content": "curl https://{domain}/api/actions/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
96         "type": "json"
97       }
98     ],
99     "name": "updateActions",
100     "group": "Actions",
101     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
102     "version": "0.0.0",
103     "filename": "server/api/action/index.js",
104     "groupTitle": "Actions"
105   },
106   {
107     "type": "post",
108     "url": "/api/analytics/custom_reports",
109     "title": "Creates a new Analytic Custom Report",
110     "examples": [
111       {
112         "title": "Example usage:",
113         "content": "curl https://{domain}/api/analytics/custom_reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
114         "type": "json"
115       }
116     ],
117     "name": "CreateAnalytic_Custom_Reports",
118     "group": "Analytic_Custom_Reports",
119     "parameter": {
120       "fields": {
121         "Body": [
122           {
123             "group": "Body",
124             "type": "String",
125             "optional": false,
126             "field": "name",
127             "description": ""
128           },
129           {
130             "group": "Body",
131             "type": "String",
132             "optional": true,
133             "field": "description",
134             "description": ""
135           },
136           {
137             "group": "Body",
138             "type": "String",
139             "optional": true,
140             "field": "parent",
141             "description": ""
142           },
143           {
144             "group": "Body",
145             "type": "String",
146             "optional": true,
147             "field": "table",
148             "description": ""
149           },
150           {
151             "group": "Body",
152             "type": "Text",
153             "optional": true,
154             "field": "conditions",
155             "description": ""
156           },
157           {
158             "group": "Body",
159             "type": "Text",
160             "optional": true,
161             "field": "joins",
162             "description": ""
163           }
164         ]
165       }
166     },
167     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
168     "version": "0.0.0",
169     "filename": "server/api/analyticCustomReport/index.js",
170     "groupTitle": "Analytic_Custom_Reports"
171   },
172   {
173     "type": "delete",
174     "url": "/api/analytics/custom_reports/{id}",
175     "title": "Deletes a Analytic Custom Report",
176     "examples": [
177       {
178         "title": "Example usage:",
179         "content": "curl https://{domain}/api/analytics/custom_reports/{id} -v -u {name}:{password} -X DELETE",
180         "type": "json"
181       }
182     ],
183     "name": "DeleteAnalytic_Custom_Reports",
184     "group": "Analytic_Custom_Reports",
185     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
186     "version": "0.0.0",
187     "filename": "server/api/analyticCustomReport/index.js",
188     "groupTitle": "Analytic_Custom_Reports"
189   },
190   {
191     "type": "get",
192     "url": "/api/analytics/custom_reports",
193     "title": "Gets a list of Analytic Custom Reports",
194     "examples": [
195       {
196         "title": "Example usage:",
197         "content": "curl https://{domain}/api/analytics/custom_reports -v -u {name}:{password}",
198         "type": "json"
199       }
200     ],
201     "name": "GetAnalytic_Custom_Reports",
202     "group": "Analytic_Custom_Reports",
203     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/analytics/custom_reports?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/analytics/custom_reports?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/analytics/custom_reports?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/analytics/custom_reports?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/analytics/custom_reports?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
204     "version": "0.0.0",
205     "filename": "server/api/analyticCustomReport/index.js",
206     "groupTitle": "Analytic_Custom_Reports"
207   },
208   {
209     "type": "get",
210     "url": "/api/analytics/custom_reports/{id}",
211     "title": "Gets a single Analytic Custom Report",
212     "examples": [
213       {
214         "title": "Example usage:",
215         "content": "curl https://{domain}/api/analytics/custom_reports/{id} -v -u {name}:{password}",
216         "type": "json"
217       }
218     ],
219     "name": "ShowAnalytic_Custom_Reports",
220     "group": "Analytic_Custom_Reports",
221     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
222     "version": "0.0.0",
223     "filename": "server/api/analyticCustomReport/index.js",
224     "groupTitle": "Analytic_Custom_Reports"
225   },
226   {
227     "type": "get",
228     "url": "/api/analytics/custom_reports/{id}/preview",
229     "title": "Report Preview",
230     "examples": [
231       {
232         "title": "Example usage:",
233         "content": "curl https://{domain}/api/analytics/custom_reports/{id}/preview -v -u {name}:{password} -X GET",
234         "type": "json"
235       }
236     ],
237     "name": "preview",
238     "group": "Analytic_Custom_Reports",
239     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
240     "version": "0.0.0",
241     "filename": "server/api/analyticCustomReport/index.js",
242     "groupTitle": "Analytic_Custom_Reports"
243   },
244   {
245     "type": "get",
246     "url": "/api/analytics/custom_reports/{id}/query",
247     "title": "Report Query SQL",
248     "examples": [
249       {
250         "title": "Example usage:",
251         "content": "curl https://{domain}/api/analytics/custom_reports/{id}/query -v -u {name}:{password} -X GET",
252         "type": "json"
253       }
254     ],
255     "name": "query",
256     "group": "Analytic_Custom_Reports",
257     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
258     "version": "0.0.0",
259     "filename": "server/api/analyticCustomReport/index.js",
260     "groupTitle": "Analytic_Custom_Reports"
261   },
262   {
263     "type": "get",
264     "url": "/api/analytics/custom_reports/{id}/run",
265     "title": "Report Run",
266     "examples": [
267       {
268         "title": "Example usage:",
269         "content": "curl https://{domain}/api/analytics/custom_reports/{id}/run -v -u {name}:{password} -X GET",
270         "type": "json"
271       }
272     ],
273     "name": "run",
274     "group": "Analytic_Custom_Reports",
275     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
276     "version": "0.0.0",
277     "filename": "server/api/analyticCustomReport/index.js",
278     "groupTitle": "Analytic_Custom_Reports"
279   },
280   {
281     "type": "put",
282     "url": "/api/analytics/custom_reports/{id}",
283     "title": "Update an existing Analytic Custom Report",
284     "examples": [
285       {
286         "title": "Example usage:",
287         "content": "curl https://{domain}/api/analytics/custom_reports/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
288         "type": "json"
289       }
290     ],
291     "name": "updateAnalytic_Custom_Reports",
292     "group": "Analytic_Custom_Reports",
293     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
294     "version": "0.0.0",
295     "filename": "server/api/analyticCustomReport/index.js",
296     "groupTitle": "Analytic_Custom_Reports"
297   },
298   {
299     "type": "post",
300     "url": "/api/analytics/default_reports",
301     "title": "Creates a new Analytic Default Report",
302     "examples": [
303       {
304         "title": "Example usage:",
305         "content": "curl https://{domain}/api/analytics/default_reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
306         "type": "json"
307       }
308     ],
309     "name": "CreateAnalytic_Default_Reports",
310     "group": "Analytic_Default_Reports",
311     "parameter": {
312       "fields": {
313         "Body": [
314           {
315             "group": "Body",
316             "type": "String",
317             "optional": false,
318             "field": "name",
319             "description": ""
320           },
321           {
322             "group": "Body",
323             "type": "String",
324             "optional": true,
325             "field": "description",
326             "description": ""
327           },
328           {
329             "group": "Body",
330             "type": "String",
331             "optional": true,
332             "field": "parent",
333             "description": ""
334           },
335           {
336             "group": "Body",
337             "type": "String",
338             "optional": true,
339             "field": "table",
340             "description": ""
341           },
342           {
343             "group": "Body",
344             "type": "Text",
345             "optional": true,
346             "field": "conditions",
347             "description": ""
348           },
349           {
350             "group": "Body",
351             "type": "Text",
352             "optional": true,
353             "field": "joins",
354             "description": ""
355           }
356         ]
357       }
358     },
359     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
360     "version": "0.0.0",
361     "filename": "server/api/analyticDefaultReport/index.js",
362     "groupTitle": "Analytic_Default_Reports"
363   },
364   {
365     "type": "delete",
366     "url": "/api/analytics/default_reports/{id}",
367     "title": "Deletes a Analytic Default Report",
368     "examples": [
369       {
370         "title": "Example usage:",
371         "content": "curl https://{domain}/api/analytics/default_reports/{id} -v -u {name}:{password} -X DELETE",
372         "type": "json"
373       }
374     ],
375     "name": "DeleteAnalytic_Default_Reports",
376     "group": "Analytic_Default_Reports",
377     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
378     "version": "0.0.0",
379     "filename": "server/api/analyticDefaultReport/index.js",
380     "groupTitle": "Analytic_Default_Reports"
381   },
382   {
383     "type": "get",
384     "url": "/api/analytics/default_reports",
385     "title": "Gets a list of Analytic Default Reports",
386     "examples": [
387       {
388         "title": "Example usage:",
389         "content": "curl https://{domain}/api/analytics/default_reports -v -u {name}:{password}",
390         "type": "json"
391       }
392     ],
393     "name": "GetAnalytic_Default_Reports",
394     "group": "Analytic_Default_Reports",
395     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/analytics/default_reports?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/analytics/default_reports?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/analytics/default_reports?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/analytics/default_reports?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/analytics/default_reports?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
396     "version": "0.0.0",
397     "filename": "server/api/analyticDefaultReport/index.js",
398     "groupTitle": "Analytic_Default_Reports"
399   },
400   {
401     "type": "get",
402     "url": "/api/analytics/default_reports/{id}",
403     "title": "Gets a single Analytic Default Report",
404     "examples": [
405       {
406         "title": "Example usage:",
407         "content": "curl https://{domain}/api/analytics/default_reports/{id} -v -u {name}:{password}",
408         "type": "json"
409       }
410     ],
411     "name": "ShowAnalytic_Default_Reports",
412     "group": "Analytic_Default_Reports",
413     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
414     "version": "0.0.0",
415     "filename": "server/api/analyticDefaultReport/index.js",
416     "groupTitle": "Analytic_Default_Reports"
417   },
418   {
419     "type": "get",
420     "url": "/api/analytics/default_reports/{id}/preview",
421     "title": "Report Preview",
422     "examples": [
423       {
424         "title": "Example usage:",
425         "content": "curl https://{domain}/api/analytics/default_reports/{id}/preview -v -u {name}:{password} -X GET",
426         "type": "json"
427       }
428     ],
429     "name": "preview",
430     "group": "Analytic_Default_Reports",
431     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
432     "version": "0.0.0",
433     "filename": "server/api/analyticDefaultReport/index.js",
434     "groupTitle": "Analytic_Default_Reports"
435   },
436   {
437     "type": "get",
438     "url": "/api/analytics/default_reports/{id}/query",
439     "title": "Report Query SQL",
440     "examples": [
441       {
442         "title": "Example usage:",
443         "content": "curl https://{domain}/api/analytics/default_reports/{id}/query -v -u {name}:{password} -X GET",
444         "type": "json"
445       }
446     ],
447     "name": "query",
448     "group": "Analytic_Default_Reports",
449     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
450     "version": "0.0.0",
451     "filename": "server/api/analyticDefaultReport/index.js",
452     "groupTitle": "Analytic_Default_Reports"
453   },
454   {
455     "type": "get",
456     "url": "/api/analytics/default_reports/{id}/run",
457     "title": "Report Run",
458     "examples": [
459       {
460         "title": "Example usage:",
461         "content": "curl https://{domain}/api/analytics/default_reports/{id}/run -v -u {name}:{password} -X GET",
462         "type": "json"
463       }
464     ],
465     "name": "run",
466     "group": "Analytic_Default_Reports",
467     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
468     "version": "0.0.0",
469     "filename": "server/api/analyticDefaultReport/index.js",
470     "groupTitle": "Analytic_Default_Reports"
471   },
472   {
473     "type": "put",
474     "url": "/api/analytics/default_reports/{id}",
475     "title": "Update an existing Analytic Default Report",
476     "examples": [
477       {
478         "title": "Example usage:",
479         "content": "curl https://{domain}/api/analytics/default_reports/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
480         "type": "json"
481       }
482     ],
483     "name": "updateAnalytic_Default_Reports",
484     "group": "Analytic_Default_Reports",
485     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
486     "version": "0.0.0",
487     "filename": "server/api/analyticDefaultReport/index.js",
488     "groupTitle": "Analytic_Default_Reports"
489   },
490   {
491     "type": "post",
492     "url": "/api/analytics/extracted_reports",
493     "title": "Creates a new Analytic Extracted Report",
494     "examples": [
495       {
496         "title": "Example usage:",
497         "content": "curl https://{domain}/api/analytics/extracted_reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
498         "type": "json"
499       }
500     ],
501     "name": "CreateAnalytic_Extacted_Reports",
502     "group": "Analytic_Extracted_Reports",
503     "parameter": {
504       "fields": {
505         "Body": [
506           {
507             "group": "Body",
508             "type": "String",
509             "optional": false,
510             "field": "name",
511             "description": ""
512           },
513           {
514             "group": "Body",
515             "type": "String",
516             "optional": false,
517             "field": "basename",
518             "description": ""
519           },
520           {
521             "group": "Body",
522             "type": "String",
523             "allowedValues": [
524               "\"csv\"",
525               "\"pdf\"",
526               "\"xlsx\""
527             ],
528             "optional": false,
529             "field": "output",
530             "description": ""
531           },
532           {
533             "group": "Body",
534             "type": "String",
535             "optional": false,
536             "field": "savename",
537             "description": ""
538           },
539           {
540             "group": "Body",
541             "type": "String",
542             "optional": true,
543             "field": "startDate",
544             "description": ""
545           },
546           {
547             "group": "Body",
548             "type": "String",
549             "optional": true,
550             "field": "endDate",
551             "description": ""
552           },
553           {
554             "group": "Body",
555             "type": "String",
556             "optional": true,
557             "field": "status",
558             "description": ""
559           },
560           {
561             "group": "Body",
562             "type": "String",
563             "allowedValues": [
564               "\"manual\"",
565               "\"scheduled\""
566             ],
567             "optional": false,
568             "field": "type",
569             "description": ""
570           },
571           {
572             "group": "Body",
573             "type": "Integer",
574             "optional": true,
575             "field": "reportId",
576             "description": ""
577           },
578           {
579             "group": "Body",
580             "type": "String",
581             "optional": true,
582             "field": "reportType",
583             "description": ""
584           }
585         ]
586       }
587     },
588     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
589     "version": "0.0.0",
590     "filename": "server/api/analyticExtractedReport/index.js",
591     "groupTitle": "Analytic_Extracted_Reports"
592   },
593   {
594     "type": "delete",
595     "url": "/api/analytics/extracted_reports/{id}",
596     "title": "Deletes a Analytic Extracted Report",
597     "examples": [
598       {
599         "title": "Example usage:",
600         "content": "curl https://{domain}/api/analytics/extracted_reports/{id} -v -u {name}:{password} -X DELETE",
601         "type": "json"
602       }
603     ],
604     "name": "DeleteAnalytic_Extacted_Reports",
605     "group": "Analytic_Extracted_Reports",
606     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
607     "version": "0.0.0",
608     "filename": "server/api/analyticExtractedReport/index.js",
609     "groupTitle": "Analytic_Extracted_Reports"
610   },
611   {
612     "type": "get",
613     "url": "/api/analytics/extracted_reports",
614     "title": "Gets a list of Analytic Extacted Reports",
615     "examples": [
616       {
617         "title": "Example usage:",
618         "content": "curl https://{domain}/api/analytics/extracted_reports -v -u {name}:{password}",
619         "type": "json"
620       }
621     ],
622     "name": "GetAnalytic_Extacted_Reports",
623     "group": "Analytic_Extracted_Reports",
624     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/analytics/extracted_reports?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/analytics/extracted_reports?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/analytics/extracted_reports?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/analytics/extracted_reports?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/analytics/extracted_reports?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
625     "version": "0.0.0",
626     "filename": "server/api/analyticExtractedReport/index.js",
627     "groupTitle": "Analytic_Extracted_Reports"
628   },
629   {
630     "type": "get",
631     "url": "/api/analytics/extracted_reports/{id}",
632     "title": "Gets a single Analytic Extracted Report",
633     "examples": [
634       {
635         "title": "Example usage:",
636         "content": "curl https://{domain}/api/analytics/extracted_reports/{id} -v -u {name}:{password}",
637         "type": "json"
638       }
639     ],
640     "name": "ShowAnalytic_Extacted_Reports",
641     "group": "Analytic_Extracted_Reports",
642     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
643     "version": "0.0.0",
644     "filename": "server/api/analyticExtractedReport/index.js",
645     "groupTitle": "Analytic_Extracted_Reports"
646   },
647   {
648     "type": "get",
649     "url": "/api/analytics/extracted_reports/{id}/download",
650     "title": "Download Extracted Report",
651     "examples": [
652       {
653         "title": "Example usage:",
654         "content": "curl https://{domain}/api/analytics/extracted_reports/{id}/download -v -u {name}:{password} -X GET",
655         "type": "json"
656       }
657     ],
658     "name": "download",
659     "group": "Analytic_Extracted_Reports",
660     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
661     "version": "0.0.0",
662     "filename": "server/api/analyticExtractedReport/index.js",
663     "groupTitle": "Analytic_Extracted_Reports"
664   },
665   {
666     "type": "put",
667     "url": "/api/analytics/extracted_reports/{id}",
668     "title": "Update an existing Analytic Extracted Report",
669     "examples": [
670       {
671         "title": "Example usage:",
672         "content": "curl https://{domain}/api/analytics/extracted_reports/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
673         "type": "json"
674       }
675     ],
676     "name": "updateAnalytic_Extacted_Reports",
677     "group": "Analytic_Extracted_Reports",
678     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
679     "version": "0.0.0",
680     "filename": "server/api/analyticExtractedReport/index.js",
681     "groupTitle": "Analytic_Extracted_Reports"
682   },
683   {
684     "type": "post",
685     "url": "/api/analytics/field_reports/create_many",
686     "title": "Creates many Analytic Field Reports",
687     "examples": [
688       {
689         "title": "Example usage:",
690         "content": "curl https://{domain}/api/analytics/field_reports/create_many -d '[{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}]' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
691         "type": "json"
692       }
693     ],
694     "name": "BulkCreateAnalytic_Field_Reports",
695     "group": "Analytic_Field_Reports",
696     "parameter": {
697       "fields": {
698         "Body": [
699           {
700             "group": "Body",
701             "type": "Text",
702             "optional": true,
703             "field": "field",
704             "description": ""
705           },
706           {
707             "group": "Body",
708             "type": "String",
709             "optional": true,
710             "field": "alias",
711             "description": ""
712           },
713           {
714             "group": "Body",
715             "type": "String",
716             "optional": true,
717             "field": "function",
718             "description": ""
719           },
720           {
721             "group": "Body",
722             "type": "String",
723             "optional": true,
724             "field": "format",
725             "description": ""
726           },
727           {
728             "group": "Body",
729             "type": "Boolean",
730             "optional": true,
731             "field": "groupBy",
732             "description": ""
733           },
734           {
735             "group": "Body",
736             "type": "String",
737             "optional": true,
738             "field": "orderBy",
739             "description": ""
740           },
741           {
742             "group": "Body",
743             "type": "Boolean",
744             "optional": true,
745             "field": "custom",
746             "description": ""
747           }
748         ]
749       }
750     },
751     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
752     "version": "0.0.0",
753     "filename": "server/api/analyticFieldReport/index.js",
754     "groupTitle": "Analytic_Field_Reports"
755   },
756   {
757     "type": "delete",
758     "url": "/api/analytics/field_reports/destroy_many?ids={ids}",
759     "title": "Deletes many Analytic Field Reports",
760     "examples": [
761       {
762         "title": "Example usage:",
763         "content": "curl https://{domain}/api/analytics/field_reports/destroy_many?ids=1&ids=2&ids=3 -v -u {name}:{password} -X DELETE",
764         "type": "json"
765       }
766     ],
767     "name": "BulkDeleteAnalytic_Field_Reports",
768     "group": "Analytic_Field_Reports",
769     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
770     "version": "0.0.0",
771     "filename": "server/api/analyticFieldReport/index.js",
772     "groupTitle": "Analytic_Field_Reports"
773   },
774   {
775     "type": "post",
776     "url": "/api/analytics/field_reports",
777     "title": "Creates a new Analytic Field Report",
778     "examples": [
779       {
780         "title": "Example usage:",
781         "content": "curl https://{domain}/api/analytics/field_reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
782         "type": "json"
783       }
784     ],
785     "name": "CreateAnalytic_Field_Reports",
786     "group": "Analytic_Field_Reports",
787     "parameter": {
788       "fields": {
789         "Body": [
790           {
791             "group": "Body",
792             "type": "Text",
793             "optional": true,
794             "field": "field",
795             "description": ""
796           },
797           {
798             "group": "Body",
799             "type": "String",
800             "optional": true,
801             "field": "alias",
802             "description": ""
803           },
804           {
805             "group": "Body",
806             "type": "String",
807             "optional": true,
808             "field": "function",
809             "description": ""
810           },
811           {
812             "group": "Body",
813             "type": "String",
814             "optional": true,
815             "field": "format",
816             "description": ""
817           },
818           {
819             "group": "Body",
820             "type": "Boolean",
821             "optional": true,
822             "field": "groupBy",
823             "description": ""
824           },
825           {
826             "group": "Body",
827             "type": "String",
828             "optional": true,
829             "field": "orderBy",
830             "description": ""
831           },
832           {
833             "group": "Body",
834             "type": "Boolean",
835             "optional": true,
836             "field": "custom",
837             "description": ""
838           }
839         ]
840       }
841     },
842     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
843     "version": "0.0.0",
844     "filename": "server/api/analyticFieldReport/index.js",
845     "groupTitle": "Analytic_Field_Reports"
846   },
847   {
848     "type": "delete",
849     "url": "/api/analytics/field_reports/{id}",
850     "title": "Deletes a Analytic Field Report",
851     "examples": [
852       {
853         "title": "Example usage:",
854         "content": "curl https://{domain}/api/analytics/field_reports/{id} -v -u {name}:{password} -X DELETE",
855         "type": "json"
856       }
857     ],
858     "name": "DeleteAnalytic_Field_Reports",
859     "group": "Analytic_Field_Reports",
860     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
861     "version": "0.0.0",
862     "filename": "server/api/analyticFieldReport/index.js",
863     "groupTitle": "Analytic_Field_Reports"
864   },
865   {
866     "type": "get",
867     "url": "/api/analytics/field_reports",
868     "title": "Gets a list of Analytic Field Reports",
869     "examples": [
870       {
871         "title": "Example usage:",
872         "content": "curl https://{domain}/api/analytics/field_reports -v -u {name}:{password}",
873         "type": "json"
874       }
875     ],
876     "name": "GetAnalytic_Field_Reports",
877     "group": "Analytic_Field_Reports",
878     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/analytics/field_reports?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/analytics/field_reports?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/analytics/field_reports?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/analytics/field_reports?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/analytics/field_reports?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
879     "version": "0.0.0",
880     "filename": "server/api/analyticFieldReport/index.js",
881     "groupTitle": "Analytic_Field_Reports"
882   },
883   {
884     "type": "get",
885     "url": "/api/analytics/field_reports/{id}",
886     "title": "Gets a single Analytic Field Report",
887     "examples": [
888       {
889         "title": "Example usage:",
890         "content": "curl https://{domain}/api/analytics/field_reports/{id} -v -u {name}:{password}",
891         "type": "json"
892       }
893     ],
894     "name": "ShowAnalytic_Field_Reports",
895     "group": "Analytic_Field_Reports",
896     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
897     "version": "0.0.0",
898     "filename": "server/api/analyticFieldReport/index.js",
899     "groupTitle": "Analytic_Field_Reports"
900   },
901   {
902     "type": "post",
903     "url": "/api/analytics/field_reports/{id}/create_many",
904     "title": "Rewrite fields set",
905     "examples": [
906       {
907         "title": "Example usage:",
908         "content": "curl https://{domain}/api/analytics/field_reports/{id}/create_many -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
909         "type": "json"
910       }
911     ],
912     "name": "addFields",
913     "group": "Analytic_Field_Reports",
914     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
915     "version": "0.0.0",
916     "filename": "server/api/analyticFieldReport/index.js",
917     "groupTitle": "Analytic_Field_Reports"
918   },
919   {
920     "type": "put",
921     "url": "/api/analytics/field_reports/{id}",
922     "title": "Update an existing Analytic Field Report",
923     "examples": [
924       {
925         "title": "Example usage:",
926         "content": "curl https://{domain}/api/analytics/field_reports/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
927         "type": "json"
928       }
929     ],
930     "name": "updateAnalytic_Field_Reports",
931     "group": "Analytic_Field_Reports",
932     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
933     "version": "0.0.0",
934     "filename": "server/api/analyticFieldReport/index.js",
935     "groupTitle": "Analytic_Field_Reports"
936   },
937   {
938     "type": "post",
939     "url": "/api/analytics/metrics",
940     "title": "Creates a new Analytic Metrics",
941     "examples": [
942       {
943         "title": "Example usage:",
944         "content": "curl https://{domain}/api/analytics/metrics -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
945         "type": "json"
946       }
947     ],
948     "name": "CreateAnalytic_Metric",
949     "group": "Analytic_Metrics",
950     "parameter": {
951       "fields": {
952         "Body": [
953           {
954             "group": "Body",
955             "type": "String",
956             "optional": false,
957             "field": "name",
958             "description": ""
959           },
960           {
961             "group": "Body",
962             "type": "String",
963             "optional": true,
964             "field": "table",
965             "description": ""
966           },
967           {
968             "group": "Body",
969             "type": "Text",
970             "optional": true,
971             "field": "metric",
972             "description": ""
973           },
974           {
975             "group": "Body",
976             "type": "String",
977             "optional": true,
978             "field": "description",
979             "description": ""
980           }
981         ]
982       }
983     },
984     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
985     "version": "0.0.0",
986     "filename": "server/api/analyticMetric/index.js",
987     "groupTitle": "Analytic_Metrics"
988   },
989   {
990     "type": "delete",
991     "url": "/api/analytics/metrics/{id}",
992     "title": "Deletes a Analytic Metrics",
993     "examples": [
994       {
995         "title": "Example usage:",
996         "content": "curl https://{domain}/api/analytics/metrics/{id} -v -u {name}:{password} -X DELETE",
997         "type": "json"
998       }
999     ],
1000     "name": "DeleteAnalytic_Metric",
1001     "group": "Analytic_Metrics",
1002     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1003     "version": "0.0.0",
1004     "filename": "server/api/analyticMetric/index.js",
1005     "groupTitle": "Analytic_Metrics"
1006   },
1007   {
1008     "type": "get",
1009     "url": "/api/analytics/metrics",
1010     "title": "Gets a list of Analytic Metric",
1011     "examples": [
1012       {
1013         "title": "Example usage:",
1014         "content": "curl https://{domain}/api/analytics/metrics -v -u {name}:{password}",
1015         "type": "json"
1016       }
1017     ],
1018     "name": "GetAnalytic_Metric",
1019     "group": "Analytic_Metrics",
1020     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/analytics/metrics?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/analytics/metrics?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/analytics/metrics?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/analytics/metrics?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/analytics/metrics?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
1021     "version": "0.0.0",
1022     "filename": "server/api/analyticMetric/index.js",
1023     "groupTitle": "Analytic_Metrics"
1024   },
1025   {
1026     "type": "get",
1027     "url": "/api/analytics/metrics/{id}",
1028     "title": "Gets a single Analytic Metrics",
1029     "examples": [
1030       {
1031         "title": "Example usage:",
1032         "content": "curl https://{domain}/api/analytics/metrics/{id} -v -u {name}:{password}",
1033         "type": "json"
1034       }
1035     ],
1036     "name": "ShowAnalytic_Metric",
1037     "group": "Analytic_Metrics",
1038     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1039     "version": "0.0.0",
1040     "filename": "server/api/analyticMetric/index.js",
1041     "groupTitle": "Analytic_Metrics"
1042   },
1043   {
1044     "type": "put",
1045     "url": "/api/analytics/metrics/{id}",
1046     "title": "Update an existing Analytic Metrics",
1047     "examples": [
1048       {
1049         "title": "Example usage:",
1050         "content": "curl https://{domain}/api/analytics/metrics/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
1051         "type": "json"
1052       }
1053     ],
1054     "name": "updateAnalytic_Metric",
1055     "group": "Analytic_Metrics",
1056     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1057     "version": "0.0.0",
1058     "filename": "server/api/analyticMetric/index.js",
1059     "groupTitle": "Analytic_Metrics"
1060   },
1061   {
1062     "type": "post",
1063     "url": "/api/analytics/tree_reports",
1064     "title": "Creates a new Analytic Tree Report",
1065     "examples": [
1066       {
1067         "title": "Example usage:",
1068         "content": "curl https://{domain}/api/analytics/tree_reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
1069         "type": "json"
1070       }
1071     ],
1072     "name": "CreateAnalytic_Tree_Reports",
1073     "group": "Analytic_Tree_Reports",
1074     "parameter": {
1075       "fields": {
1076         "Body": [
1077           {
1078             "group": "Body",
1079             "type": "Text",
1080             "optional": false,
1081             "field": "tree",
1082             "description": ""
1083           }
1084         ]
1085       }
1086     },
1087     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1088     "version": "0.0.0",
1089     "filename": "server/api/analyticTreeReport/index.js",
1090     "groupTitle": "Analytic_Tree_Reports"
1091   },
1092   {
1093     "type": "delete",
1094     "url": "/api/analytics/tree_reports/{id}",
1095     "title": "Deletes a Analytic Tree Report",
1096     "examples": [
1097       {
1098         "title": "Example usage:",
1099         "content": "curl https://{domain}/api/analytics/tree_reports/{id} -v -u {name}:{password} -X DELETE",
1100         "type": "json"
1101       }
1102     ],
1103     "name": "DeleteAnalytic_Tree_Reports",
1104     "group": "Analytic_Tree_Reports",
1105     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1106     "version": "0.0.0",
1107     "filename": "server/api/analyticTreeReport/index.js",
1108     "groupTitle": "Analytic_Tree_Reports"
1109   },
1110   {
1111     "type": "get",
1112     "url": "/api/analytics/tree_reports",
1113     "title": "Gets a list of Analytic Tree Reports",
1114     "examples": [
1115       {
1116         "title": "Example usage:",
1117         "content": "curl https://{domain}/api/analytics/tree_reports -v -u {name}:{password}",
1118         "type": "json"
1119       }
1120     ],
1121     "name": "GetAnalytic_Tree_Reports",
1122     "group": "Analytic_Tree_Reports",
1123     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/analytics/tree_reports?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/analytics/tree_reports?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/analytics/tree_reports?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/analytics/tree_reports?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/analytics/tree_reports?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
1124     "version": "0.0.0",
1125     "filename": "server/api/analyticTreeReport/index.js",
1126     "groupTitle": "Analytic_Tree_Reports"
1127   },
1128   {
1129     "type": "get",
1130     "url": "/api/analytics/tree_reports/{id}",
1131     "title": "Gets a single Analytic Tree Report",
1132     "examples": [
1133       {
1134         "title": "Example usage:",
1135         "content": "curl https://{domain}/api/analytics/tree_reports/{id} -v -u {name}:{password}",
1136         "type": "json"
1137       }
1138     ],
1139     "name": "ShowAnalytic_Tree_Reports",
1140     "group": "Analytic_Tree_Reports",
1141     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1142     "version": "0.0.0",
1143     "filename": "server/api/analyticTreeReport/index.js",
1144     "groupTitle": "Analytic_Tree_Reports"
1145   },
1146   {
1147     "type": "put",
1148     "url": "/api/analytics/tree_reports/{id}",
1149     "title": "Update an existing Analytic Tree Report",
1150     "examples": [
1151       {
1152         "title": "Example usage:",
1153         "content": "curl https://{domain}/api/analytics/tree_reports/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
1154         "type": "json"
1155       }
1156     ],
1157     "name": "updateAnalytic_Tree_Reports",
1158     "group": "Analytic_Tree_Reports",
1159     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1160     "version": "0.0.0",
1161     "filename": "server/api/analyticTreeReport/index.js",
1162     "groupTitle": "Analytic_Tree_Reports"
1163   },
1164   {
1165     "type": "post",
1166     "url": "/api/attachments/clone",
1167     "title": "Clone an existing Attachment",
1168     "examples": [
1169       {
1170         "title": "Example usage:",
1171         "content": "curl https://{domain}/api/attachments/clone -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
1172         "type": "json"
1173       }
1174     ],
1175     "name": "CloneAttachments",
1176     "group": "Attachments",
1177     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1178     "version": "0.0.0",
1179     "filename": "server/api/attachment/index.js",
1180     "groupTitle": "Attachments"
1181   },
1182   {
1183     "type": "delete",
1184     "url": "/api/attachments/{id}",
1185     "title": "Deletes a Attachment",
1186     "examples": [
1187       {
1188         "title": "Example usage:",
1189         "content": "curl https://{domain}/api/attachments/{id} -v -u {name}:{password} -X DELETE",
1190         "type": "json"
1191       }
1192     ],
1193     "name": "DeleteAttachments",
1194     "group": "Attachments",
1195     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1196     "version": "0.0.0",
1197     "filename": "server/api/attachment/index.js",
1198     "groupTitle": "Attachments"
1199   },
1200   {
1201     "type": "get",
1202     "url": "/api/attachments",
1203     "title": "Gets a list of Attachments",
1204     "examples": [
1205       {
1206         "title": "Example usage:",
1207         "content": "curl https://{domain}/api/attachments -v -u {name}:{password}",
1208         "type": "json"
1209       }
1210     ],
1211     "name": "GetAttachments",
1212     "group": "Attachments",
1213     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/attachments?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/attachments?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/attachments?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/attachments?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/attachments?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
1214     "version": "0.0.0",
1215     "filename": "server/api/attachment/index.js",
1216     "groupTitle": "Attachments"
1217   },
1218   {
1219     "type": "get",
1220     "url": "/api/attachments/{id}",
1221     "title": "Gets a single Attachment",
1222     "examples": [
1223       {
1224         "title": "Example usage:",
1225         "content": "curl https://{domain}/api/attachments/{id} -v -u {name}:{password}",
1226         "type": "json"
1227       }
1228     ],
1229     "name": "ShowAttachments",
1230     "group": "Attachments",
1231     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1232     "version": "0.0.0",
1233     "filename": "server/api/attachment/index.js",
1234     "groupTitle": "Attachments"
1235   },
1236   {
1237     "type": "post",
1238     "url": "/api/attachments",
1239     "title": "Add attachment",
1240     "examples": [
1241       {
1242         "title": "Example usage:",
1243         "content": "curl https://{domain}/api/attachments -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
1244         "type": "json"
1245       }
1246     ],
1247     "name": "create",
1248     "group": "Attachments",
1249     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1250     "version": "0.0.0",
1251     "filename": "server/api/attachment/index.js",
1252     "groupTitle": "Attachments"
1253   },
1254   {
1255     "type": "get",
1256     "url": "/api/attachments/:id/download",
1257     "title": "Download attachment",
1258     "examples": [
1259       {
1260         "title": "Example usage:",
1261         "content": "curl https://{domain}/api/attachments/:id/download -v -u {name}:{password} -X GET",
1262         "type": "json"
1263       }
1264     ],
1265     "name": "download",
1266     "group": "Attachments",
1267     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1268     "version": "0.0.0",
1269     "filename": "server/api/attachment/index.js",
1270     "groupTitle": "Attachments"
1271   },
1272   {
1273     "type": "get",
1274     "url": "/api/chat/interactions/{id}/attachment_download",
1275     "title": "Download attachment",
1276     "examples": [
1277       {
1278         "title": "Example usage:",
1279         "content": "curl https://{domain}/api/chat/interactions/{id}/attachment_download -v -u {name}:{password} -X GET",
1280         "type": "json"
1281       }
1282     ],
1283     "name": "show",
1284     "group": "Attachments",
1285     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1286     "version": "0.0.0",
1287     "filename": "server/api/chatInteraction/index.js",
1288     "groupTitle": "Attachments"
1289   },
1290   {
1291     "type": "put",
1292     "url": "/api/attachments/{id}",
1293     "title": "Update an existing Attachment",
1294     "examples": [
1295       {
1296         "title": "Example usage:",
1297         "content": "curl https://{domain}/api/attachments/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
1298         "type": "json"
1299       }
1300     ],
1301     "name": "updateAttachments",
1302     "group": "Attachments",
1303     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1304     "version": "0.0.0",
1305     "filename": "server/api/attachment/index.js",
1306     "groupTitle": "Attachments"
1307   },
1308   {
1309     "type": "post",
1310     "url": "/api/auth/local/forgot",
1311     "title": "Creates a new password reset token",
1312     "examples": [
1313       {
1314         "title": "Example usage:",
1315         "content": "curl https://{domain}/api/auth/local/forgot -d '{\"email\": \"john.doe@xcally.com\"}' \\\n -H \"Content-Type: application/json\" -X POST",
1316         "type": "json"
1317       }
1318     ],
1319     "name": "Local_Forgot_Password",
1320     "group": "Authentication",
1321     "parameter": {
1322       "fields": {
1323         "Body": [
1324           {
1325             "group": "Body",
1326             "type": "String",
1327             "optional": false,
1328             "field": "email",
1329             "description": ""
1330           }
1331         ]
1332       }
1333     },
1334     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1335     "version": "0.0.0",
1336     "filename": "server/api/authLocal/index.js",
1337     "groupTitle": "Authentication"
1338   },
1339   {
1340     "type": "post",
1341     "url": "/api/auth/local/reset/:token",
1342     "title": "Reset user password",
1343     "examples": [
1344       {
1345         "title": "Example usage:",
1346         "content": "curl https://{domain}/api/auth/local/reset/94b422c1fkdjhg766a198da6997yu6gcc963641d -d '{\"password\": \"My_newP@ssw0rd\"}' \\\n -H \"Content-Type: application/json\" -X POST",
1347         "type": "json"
1348       }
1349     ],
1350     "name": "Local_Reset_Password",
1351     "group": "Authentication",
1352     "parameter": {
1353       "fields": {
1354         "Body": [
1355           {
1356             "group": "Body",
1357             "type": "String",
1358             "optional": false,
1359             "field": "password",
1360             "description": ""
1361           }
1362         ]
1363       }
1364     },
1365     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1366     "version": "0.0.0",
1367     "filename": "server/api/authLocal/index.js",
1368     "groupTitle": "Authentication"
1369   },
1370   {
1371     "type": "post",
1372     "url": "/api/auth/google",
1373     "title": "Creates a new User token",
1374     "examples": [
1375       {
1376         "title": "Example usage:",
1377         "content": "curl https://{domain}/api/auth/google -d '{\"name\": \"john.doe\", \"password\": \"password\"}' \\\n -H \"Content-Type: application/json\" -X POST",
1378         "type": "json"
1379       }
1380     ],
1381     "name": "Local_login",
1382     "group": "Authentication",
1383     "parameter": {
1384       "fields": {
1385         "Body": [
1386           {
1387             "group": "Body",
1388             "type": "String",
1389             "optional": false,
1390             "field": "name",
1391             "description": ""
1392           },
1393           {
1394             "group": "Body",
1395             "type": "String",
1396             "optional": false,
1397             "field": "password",
1398             "description": ""
1399           }
1400         ]
1401       }
1402     },
1403     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1404     "version": "0.0.0",
1405     "filename": "server/api/authGoogle/index.js",
1406     "groupTitle": "Authentication"
1407   },
1408   {
1409     "type": "post",
1410     "url": "/api/auth/local",
1411     "title": "Creates a new User token",
1412     "examples": [
1413       {
1414         "title": "Example usage:",
1415         "content": "curl https://{domain}/api/auth/local -d '{\"name\": \"john.doe\", \"password\": \"password\"}' \\\n -H \"Content-Type: application/json\" -X POST",
1416         "type": "json"
1417       }
1418     ],
1419     "name": "Local_login",
1420     "group": "Authentication",
1421     "parameter": {
1422       "fields": {
1423         "Body": [
1424           {
1425             "group": "Body",
1426             "type": "String",
1427             "optional": false,
1428             "field": "name",
1429             "description": ""
1430           },
1431           {
1432             "group": "Body",
1433             "type": "String",
1434             "optional": false,
1435             "field": "password",
1436             "description": ""
1437           }
1438         ]
1439       }
1440     },
1441     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1442     "version": "0.0.0",
1443     "filename": "server/api/authLocal/index.js",
1444     "groupTitle": "Authentication"
1445   },
1446   {
1447     "type": "post",
1448     "url": "/api/auth/activedirectory",
1449     "title": "Creates a new User token",
1450     "examples": [
1451       {
1452         "title": "Example usage:",
1453         "content": "curl https://{domain}/api/auth/activedirectory -d '{\"name\": \"john.doe\", \"password\": \"password\"}' \\\n -H \"Content-Type: application/json\" -X POST",
1454         "type": "json"
1455       }
1456     ],
1457     "name": "Local_login",
1458     "group": "Authentication",
1459     "parameter": {
1460       "fields": {
1461         "Body": [
1462           {
1463             "group": "Body",
1464             "type": "String",
1465             "optional": false,
1466             "field": "name",
1467             "description": ""
1468           },
1469           {
1470             "group": "Body",
1471             "type": "String",
1472             "optional": false,
1473             "field": "password",
1474             "description": ""
1475           }
1476         ]
1477       }
1478     },
1479     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1480     "version": "0.0.0",
1481     "filename": "server/api/authActiveDirectory/index.js",
1482     "groupTitle": "Authentication"
1483   },
1484   {
1485     "type": "post",
1486     "url": "/api/automations",
1487     "title": "Creates a new Automation",
1488     "examples": [
1489       {
1490         "title": "Example usage:",
1491         "content": "curl https://{domain}/api/automations -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
1492         "type": "json"
1493       }
1494     ],
1495     "name": "CreateAutomations",
1496     "group": "Automations",
1497     "parameter": {
1498       "fields": {
1499         "Body": [
1500           {
1501             "group": "Body",
1502             "type": "String",
1503             "optional": false,
1504             "field": "name",
1505             "description": ""
1506           },
1507           {
1508             "group": "Body",
1509             "type": "String",
1510             "optional": true,
1511             "field": "channel",
1512             "description": ""
1513           },
1514           {
1515             "group": "Body",
1516             "type": "String",
1517             "optional": true,
1518             "field": "description",
1519             "description": ""
1520           },
1521           {
1522             "group": "Body",
1523             "type": "Boolean",
1524             "optional": true,
1525             "field": "status",
1526             "description": ""
1527           },
1528           {
1529             "group": "Body",
1530             "type": "Integer",
1531             "optional": true,
1532             "field": "timeout",
1533             "description": ""
1534           }
1535         ]
1536       }
1537     },
1538     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1539     "version": "0.0.0",
1540     "filename": "server/api/automation/index.js",
1541     "groupTitle": "Automations"
1542   },
1543   {
1544     "type": "delete",
1545     "url": "/api/automations/{id}",
1546     "title": "Deletes a Automation",
1547     "examples": [
1548       {
1549         "title": "Example usage:",
1550         "content": "curl https://{domain}/api/automations/{id} -v -u {name}:{password} -X DELETE",
1551         "type": "json"
1552       }
1553     ],
1554     "name": "DeleteAutomations",
1555     "group": "Automations",
1556     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1557     "version": "0.0.0",
1558     "filename": "server/api/automation/index.js",
1559     "groupTitle": "Automations"
1560   },
1561   {
1562     "type": "get",
1563     "url": "/api/automations",
1564     "title": "Gets a list of Automations",
1565     "examples": [
1566       {
1567         "title": "Example usage:",
1568         "content": "curl https://{domain}/api/automations -v -u {name}:{password}",
1569         "type": "json"
1570       }
1571     ],
1572     "name": "GetAutomations",
1573     "group": "Automations",
1574     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/automations?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/automations?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/automations?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/automations?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/automations?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
1575     "version": "0.0.0",
1576     "filename": "server/api/automation/index.js",
1577     "groupTitle": "Automations"
1578   },
1579   {
1580     "type": "get",
1581     "url": "/api/automations/{id}",
1582     "title": "Gets a single Automation",
1583     "examples": [
1584       {
1585         "title": "Example usage:",
1586         "content": "curl https://{domain}/api/automations/{id} -v -u {name}:{password}",
1587         "type": "json"
1588       }
1589     ],
1590     "name": "ShowAutomations",
1591     "group": "Automations",
1592     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1593     "version": "0.0.0",
1594     "filename": "server/api/automation/index.js",
1595     "groupTitle": "Automations"
1596   },
1597   {
1598     "type": "post",
1599     "url": "/api/automations/{id}/actions",
1600     "title": "Creates new actions",
1601     "examples": [
1602       {
1603         "title": "Example usage:",
1604         "content": "curl https://{domain}/api/automations/{id}/actions -d '[{\"firstName\": \"John Doe\", \"email\": \"john.doe@xcally.com\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
1605         "type": "json"
1606       }
1607     ],
1608     "name": "addActions",
1609     "group": "Automations",
1610     "parameter": {
1611       "fields": {
1612         "Body": [
1613           {
1614             "group": "Body",
1615             "type": "Virtual",
1616             "optional": true,
1617             "field": "name",
1618             "description": ""
1619           },
1620           {
1621             "group": "Body",
1622             "type": "String",
1623             "optional": false,
1624             "field": "action",
1625             "description": "<p>Allowed values: contactManager, integration, motionbar, jscripty, urlForward, browser, bot, script</p>"
1626           },
1627           {
1628             "group": "Body",
1629             "type": "String",
1630             "optional": true,
1631             "field": "data1",
1632             "description": "<p>contactManager[ListId], integration[intName(zendesk)], motionbar[Popup(0),URL(1),WinApp(2)], urlForward[GET,POST], browser[TemplateId(0),URL(1)]</p>"
1633           },
1634           {
1635             "group": "Body",
1636             "type": "String",
1637             "optional": true,
1638             "field": "data2",
1639             "description": "<p>integration[AccountId], motionbar[TemplateId,URL,WinAppPath], urlForward[URL]</p>"
1640           },
1641           {
1642             "group": "Body",
1643             "type": "String",
1644             "optional": true,
1645             "field": "data3",
1646             "description": "<p>motionbar[NULL,NULL,WinAppArguments]</p>"
1647           },
1648           {
1649             "group": "Body",
1650             "type": "String",
1651             "optional": true,
1652             "field": "data4",
1653             "description": ""
1654           },
1655           {
1656             "group": "Body",
1657             "type": "String",
1658             "optional": true,
1659             "field": "data5",
1660             "description": ""
1661           },
1662           {
1663             "group": "Body",
1664             "type": "String",
1665             "optional": true,
1666             "field": "data6",
1667             "description": ""
1668           },
1669           {
1670             "group": "Body",
1671             "type": "Text",
1672             "optional": true,
1673             "field": "data7",
1674             "description": ""
1675           }
1676         ]
1677       }
1678     },
1679     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1680     "version": "0.0.0",
1681     "filename": "server/api/automation/index.js",
1682     "groupTitle": "Automations"
1683   },
1684   {
1685     "type": "post",
1686     "url": "/api/automations/{id}/conditions",
1687     "title": "Creates new conditions",
1688     "examples": [
1689       {
1690         "title": "Example usage:",
1691         "content": "curl https://{domain}/api/automations/{id}/conditions -d '[{\"firstName\": \"John Doe\", \"email\": \"john.doe@xcally.com\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
1692         "type": "json"
1693       }
1694     ],
1695     "name": "addConditions",
1696     "group": "Automations",
1697     "parameter": {
1698       "fields": {
1699         "Body": [
1700           {
1701             "group": "Body",
1702             "type": "Virtual",
1703             "optional": true,
1704             "field": "name",
1705             "description": ""
1706           },
1707           {
1708             "group": "Body",
1709             "type": "String",
1710             "optional": false,
1711             "field": "field",
1712             "description": ""
1713           },
1714           {
1715             "group": "Body",
1716             "type": "String",
1717             "optional": false,
1718             "field": "operator",
1719             "description": ""
1720           },
1721           {
1722             "group": "Body",
1723             "type": "String",
1724             "optional": false,
1725             "field": "value",
1726             "description": ""
1727           }
1728         ]
1729       }
1730     },
1731     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1732     "version": "0.0.0",
1733     "filename": "server/api/automation/index.js",
1734     "groupTitle": "Automations"
1735   },
1736   {
1737     "type": "get",
1738     "url": "/api/automations/{id}/actions",
1739     "title": "Gets Automation Actions",
1740     "examples": [
1741       {
1742         "title": "Example usage:",
1743         "content": "curl https://{domain}/api/automations/{id}/actions -v -u {name}:{password} -X GET",
1744         "type": "json"
1745       }
1746     ],
1747     "name": "getActions",
1748     "group": "Automations",
1749     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1750     "version": "0.0.0",
1751     "filename": "server/api/automation/index.js",
1752     "groupTitle": "Automations"
1753   },
1754   {
1755     "type": "get",
1756     "url": "/api/automations/{id}/conditions",
1757     "title": "Gets Automation Conditions",
1758     "examples": [
1759       {
1760         "title": "Example usage:",
1761         "content": "curl https://{domain}/api/automations/{id}/conditions -v -u {name}:{password} -X GET",
1762         "type": "json"
1763       }
1764     ],
1765     "name": "getConditions",
1766     "group": "Automations",
1767     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1768     "version": "0.0.0",
1769     "filename": "server/api/automation/index.js",
1770     "groupTitle": "Automations"
1771   },
1772   {
1773     "type": "put",
1774     "url": "/api/automations/{id}",
1775     "title": "Update an existing Automation",
1776     "examples": [
1777       {
1778         "title": "Example usage:",
1779         "content": "curl https://{domain}/api/automations/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
1780         "type": "json"
1781       }
1782     ],
1783     "name": "updateAutomations",
1784     "group": "Automations",
1785     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1786     "version": "0.0.0",
1787     "filename": "server/api/automation/index.js",
1788     "groupTitle": "Automations"
1789   },
1790   {
1791     "type": "post",
1792     "url": "/api/canned_answers",
1793     "title": "Create a new canned answer",
1794     "examples": [
1795       {
1796         "title": "Example usage:",
1797         "content": "curl https://{domain}/api/canned_answers -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
1798         "type": "json"
1799       }
1800     ],
1801     "name": "Create",
1802     "group": "Canned_Answers",
1803     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1804     "version": "0.0.0",
1805     "filename": "server/api/cannedAnswer/index.js",
1806     "groupTitle": "Canned_Answers"
1807   },
1808   {
1809     "type": "delete",
1810     "url": "/api/canned_answers/{id}",
1811     "title": "Deletes a Canned Answer",
1812     "examples": [
1813       {
1814         "title": "Example usage:",
1815         "content": "curl https://{domain}/api/canned_answers/{id} -v -u {name}:{password} -X DELETE",
1816         "type": "json"
1817       }
1818     ],
1819     "name": "DeleteCanned_Answers",
1820     "group": "Canned_Answers",
1821     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1822     "version": "0.0.0",
1823     "filename": "server/api/cannedAnswer/index.js",
1824     "groupTitle": "Canned_Answers"
1825   },
1826   {
1827     "type": "get",
1828     "url": "/api/canned_answers",
1829     "title": "Gets a list of Canned Answers",
1830     "examples": [
1831       {
1832         "title": "Example usage:",
1833         "content": "curl https://{domain}/api/canned_answers -v -u {name}:{password}",
1834         "type": "json"
1835       }
1836     ],
1837     "name": "GetCanned_Answers",
1838     "group": "Canned_Answers",
1839     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/canned_answers?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/canned_answers?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/canned_answers?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/canned_answers?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/canned_answers?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
1840     "version": "0.0.0",
1841     "filename": "server/api/cannedAnswer/index.js",
1842     "groupTitle": "Canned_Answers"
1843   },
1844   {
1845     "type": "get",
1846     "url": "/api/canned_answers/{id}",
1847     "title": "Gets a single Canned Answer",
1848     "examples": [
1849       {
1850         "title": "Example usage:",
1851         "content": "curl https://{domain}/api/canned_answers/{id} -v -u {name}:{password}",
1852         "type": "json"
1853       }
1854     ],
1855     "name": "ShowCanned_Answers",
1856     "group": "Canned_Answers",
1857     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1858     "version": "0.0.0",
1859     "filename": "server/api/cannedAnswer/index.js",
1860     "groupTitle": "Canned_Answers"
1861   },
1862   {
1863     "type": "put",
1864     "url": "/api/canned_answers/{id}",
1865     "title": "Update an existing Canned Answer",
1866     "examples": [
1867       {
1868         "title": "Example usage:",
1869         "content": "curl https://{domain}/api/canned_answers/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
1870         "type": "json"
1871       }
1872     ],
1873     "name": "updateCanned_Answers",
1874     "group": "Canned_Answers",
1875     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1876     "version": "0.0.0",
1877     "filename": "server/api/cannedAnswer/index.js",
1878     "groupTitle": "Canned_Answers"
1879   },
1880   {
1881     "type": "get",
1882     "url": "/chat/internal/users",
1883     "title": "Gets Users Last Messages",
1884     "examples": [
1885       {
1886         "title": "Example usage:",
1887         "content": "curl https://{domain}/chat/internal/users -v -u {name}:{password}  -X GET",
1888         "type": "json"
1889       }
1890     ],
1891     "name": "getLastUsersMessages",
1892     "group": "ChatInternalMessage",
1893     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1894     "version": "0.0.0",
1895     "filename": "server/api/chatInternalMessage/index.js",
1896     "groupTitle": "ChatInternalMessage"
1897   },
1898   {
1899     "type": "delete",
1900     "url": "/api/chat/applications/{id}",
1901     "title": "Deletes a Application",
1902     "examples": [
1903       {
1904         "title": "Example usage:",
1905         "content": "curl https://{domain}/api/chat/applications/{id} -v -u {name}:{password} -X DELETE",
1906         "type": "json"
1907       }
1908     ],
1909     "name": "DeleteApplications",
1910     "group": "Chat_Applications",
1911     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1912     "version": "0.0.0",
1913     "filename": "server/api/chatApplication/index.js",
1914     "groupTitle": "Chat_Applications"
1915   },
1916   {
1917     "type": "get",
1918     "url": "/api/chat/applications/{id}",
1919     "title": "Gets a single Application",
1920     "examples": [
1921       {
1922         "title": "Example usage:",
1923         "content": "curl https://{domain}/api/chat/applications/{id} -v -u {name}:{password}",
1924         "type": "json"
1925       }
1926     ],
1927     "name": "ShowApplications",
1928     "group": "Chat_Applications",
1929     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1930     "version": "0.0.0",
1931     "filename": "server/api/chatApplication/index.js",
1932     "groupTitle": "Chat_Applications"
1933   },
1934   {
1935     "type": "put",
1936     "url": "/api/chat/applications/{id}",
1937     "title": "Update an existing Application",
1938     "examples": [
1939       {
1940         "title": "Example usage:",
1941         "content": "curl https://{domain}/api/chat/applications/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
1942         "type": "json"
1943       }
1944     ],
1945     "name": "updateApplications",
1946     "group": "Chat_Applications",
1947     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1948     "version": "0.0.0",
1949     "filename": "server/api/chatApplication/index.js",
1950     "groupTitle": "Chat_Applications"
1951   },
1952   {
1953     "type": "post",
1954     "url": "/api/chat/groups",
1955     "title": "Creates a new Group",
1956     "examples": [
1957       {
1958         "title": "Example usage:",
1959         "content": "curl https://{domain}/api/chat/groups -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
1960         "type": "json"
1961       }
1962     ],
1963     "name": "CreateGroups",
1964     "group": "Chat_Groups",
1965     "parameter": {
1966       "fields": {
1967         "Body": [
1968           {
1969             "group": "Body",
1970             "type": "String",
1971             "optional": false,
1972             "field": "name",
1973             "description": ""
1974           },
1975           {
1976             "group": "Body",
1977             "type": "String",
1978             "optional": true,
1979             "field": "description",
1980             "description": ""
1981           },
1982           {
1983             "group": "Body",
1984             "type": "Boolean",
1985             "optional": true,
1986             "field": "write",
1987             "description": ""
1988           }
1989         ]
1990       }
1991     },
1992     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1993     "version": "0.0.0",
1994     "filename": "server/api/chatGroup/index.js",
1995     "groupTitle": "Chat_Groups"
1996   },
1997   {
1998     "type": "delete",
1999     "url": "/api/chat/groups/{id}",
2000     "title": "Deletes a Group",
2001     "examples": [
2002       {
2003         "title": "Example usage:",
2004         "content": "curl https://{domain}/api/chat/groups/{id} -v -u {name}:{password} -X DELETE",
2005         "type": "json"
2006       }
2007     ],
2008     "name": "DeleteGroups",
2009     "group": "Chat_Groups",
2010     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2011     "version": "0.0.0",
2012     "filename": "server/api/chatGroup/index.js",
2013     "groupTitle": "Chat_Groups"
2014   },
2015   {
2016     "type": "get",
2017     "url": "/api/chat/groups/describe",
2018     "title": "Gets table info about Groups",
2019     "examples": [
2020       {
2021         "title": "Example usage:",
2022         "content": "curl https://{domain}/api/chat/groups/describe -v -u {name}:{password}",
2023         "type": "json"
2024       }
2025     ],
2026     "name": "DescribeGroups",
2027     "group": "Chat_Groups",
2028     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2029     "version": "0.0.0",
2030     "filename": "server/api/chatGroup/index.js",
2031     "groupTitle": "Chat_Groups"
2032   },
2033   {
2034     "type": "get",
2035     "url": "/api/chat/groups",
2036     "title": "Gets a list of Groups",
2037     "examples": [
2038       {
2039         "title": "Example usage:",
2040         "content": "curl https://{domain}/api/chat/groups -v -u {name}:{password}",
2041         "type": "json"
2042       }
2043     ],
2044     "name": "GetGroups",
2045     "group": "Chat_Groups",
2046     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/chat/groups?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/chat/groups?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/chat/groups?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/chat/groups?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/chat/groups?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
2047     "version": "0.0.0",
2048     "filename": "server/api/chatGroup/index.js",
2049     "groupTitle": "Chat_Groups"
2050   },
2051   {
2052     "type": "delete",
2053     "url": "/api/chat/groups/{id}/members",
2054     "title": "Removes members from a group",
2055     "examples": [
2056       {
2057         "title": "Example usage:",
2058         "content": "curl https://{domain}/api/chat/groups/{id}/members?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
2059         "type": "json"
2060       }
2061     ],
2062     "name": "RemoveMembers",
2063     "group": "Chat_Groups",
2064     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2065     "version": "0.0.0",
2066     "filename": "server/api/chatGroup/index.js",
2067     "groupTitle": "Chat_Groups"
2068   },
2069   {
2070     "type": "get",
2071     "url": "/api/chat/groups/{id}",
2072     "title": "Gets a single Group",
2073     "examples": [
2074       {
2075         "title": "Example usage:",
2076         "content": "curl https://{domain}/api/chat/groups/{id} -v -u {name}:{password}",
2077         "type": "json"
2078       }
2079     ],
2080     "name": "ShowGroups",
2081     "group": "Chat_Groups",
2082     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2083     "version": "0.0.0",
2084     "filename": "server/api/chatGroup/index.js",
2085     "groupTitle": "Chat_Groups"
2086   },
2087   {
2088     "type": "post",
2089     "url": "/api/chat/groups/{id}/members",
2090     "title": "Add members to chat group",
2091     "examples": [
2092       {
2093         "title": "Example usage:",
2094         "content": "curl https://{domain}/api/chat/groups/{id}/members -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
2095         "type": "json"
2096       }
2097     ],
2098     "name": "addMembers",
2099     "group": "Chat_Groups",
2100     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2101     "version": "0.0.0",
2102     "filename": "server/api/chatGroup/index.js",
2103     "groupTitle": "Chat_Groups"
2104   },
2105   {
2106     "type": "post",
2107     "url": "/api/chat/groups/{id}/messages",
2108     "title": "Creates a new group message",
2109     "examples": [
2110       {
2111         "title": "Example usage:",
2112         "content": "curl https://{domain}/api/chat/groups/{id}/messages -d '{\"body\": \"Hi operator!\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
2113         "type": "json"
2114       }
2115     ],
2116     "name": "addMessage",
2117     "group": "Chat_Groups",
2118     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2119     "version": "0.0.0",
2120     "filename": "server/api/chatGroup/index.js",
2121     "groupTitle": "Chat_Groups"
2122   },
2123   {
2124     "type": "get",
2125     "url": "/api/chat/groups/{id}/members",
2126     "title": "Gets Members",
2127     "examples": [
2128       {
2129         "title": "Example usage:",
2130         "content": "curl https://{domain}/api/chat/groups/{id}/members -v -u {name}:{password} -X GET",
2131         "type": "json"
2132       }
2133     ],
2134     "name": "getMembers",
2135     "group": "Chat_Groups",
2136     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2137     "version": "0.0.0",
2138     "filename": "server/api/chatGroup/index.js",
2139     "groupTitle": "Chat_Groups"
2140   },
2141   {
2142     "type": "get",
2143     "url": "/api/chat/groups/{id}/messages",
2144     "title": "Gets Messages",
2145     "examples": [
2146       {
2147         "title": "Example usage:",
2148         "content": "curl https://{domain}/api/chat/groups/{id}/messages -v -u {name}:{password} -X GET",
2149         "type": "json"
2150       }
2151     ],
2152     "name": "getMessages",
2153     "group": "Chat_Groups",
2154     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2155     "version": "0.0.0",
2156     "filename": "server/api/chatGroup/index.js",
2157     "groupTitle": "Chat_Groups"
2158   },
2159   {
2160     "type": "get",
2161     "url": "/api/chat/groups/{id}/unread",
2162     "title": "Get unread chat group messages",
2163     "examples": [
2164       {
2165         "title": "Example usage:",
2166         "content": "curl https://{domain}/api/chat/groups/{id}/unread -H 'Content-Type: application/json' -v -u {name}:{password} -X GET",
2167         "type": "json"
2168       }
2169     ],
2170     "name": "getUread",
2171     "group": "Chat_Groups",
2172     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2173     "version": "0.0.0",
2174     "filename": "server/api/chatGroup/index.js",
2175     "groupTitle": "Chat_Groups"
2176   },
2177   {
2178     "type": "put",
2179     "url": "/api/chat/groups/{id}",
2180     "title": "Update an existing Group",
2181     "examples": [
2182       {
2183         "title": "Example usage:",
2184         "content": "curl https://{domain}/api/chat/groups/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
2185         "type": "json"
2186       }
2187     ],
2188     "name": "updateGroups",
2189     "group": "Chat_Groups",
2190     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2191     "version": "0.0.0",
2192     "filename": "server/api/chatGroup/index.js",
2193     "groupTitle": "Chat_Groups"
2194   },
2195   {
2196     "type": "post",
2197     "url": "/api/chat/interactions/{id}/tags",
2198     "title": "Add tags to the interaction",
2199     "examples": [
2200       {
2201         "title": "Example usage:",
2202         "content": "curl https://{domain}/api/chat/interaction/{id}/tags -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
2203         "type": "json"
2204       }
2205     ],
2206     "name": "AddTags",
2207     "group": "Chat_Interactions",
2208     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2209     "version": "0.0.0",
2210     "filename": "server/api/chatInteraction/index.js",
2211     "groupTitle": "Chat_Interactions"
2212   },
2213   {
2214     "type": "post",
2215     "url": "/api/chat/interactions",
2216     "title": "Creates a new Interaction",
2217     "examples": [
2218       {
2219         "title": "Example usage:",
2220         "content": "curl https://{domain}/api/chat/interactions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
2221         "type": "json"
2222       }
2223     ],
2224     "name": "CreateInteractions",
2225     "group": "Chat_Interactions",
2226     "parameter": {
2227       "fields": {
2228         "Body": [
2229           {
2230             "group": "Body",
2231             "type": "Boolean",
2232             "optional": true,
2233             "field": "closed",
2234             "description": ""
2235           },
2236           {
2237             "group": "Body",
2238             "type": "Integer",
2239             "optional": true,
2240             "field": "ratingValue",
2241             "description": ""
2242           },
2243           {
2244             "group": "Body",
2245             "type": "String",
2246             "allowedValues": [
2247               "\"star\"",
2248               "\"thumb\""
2249             ],
2250             "optional": true,
2251             "field": "ratingType",
2252             "description": ""
2253           },
2254           {
2255             "group": "Body",
2256             "type": "Text",
2257             "optional": true,
2258             "field": "ratingMessage",
2259             "description": ""
2260           },
2261           {
2262             "group": "Body",
2263             "type": "Text",
2264             "optional": true,
2265             "field": "pathTranscript",
2266             "description": ""
2267           },
2268           {
2269             "group": "Body",
2270             "type": "String",
2271             "optional": true,
2272             "field": "mailTranscript",
2273             "description": ""
2274           },
2275           {
2276             "group": "Body",
2277             "type": "String",
2278             "optional": true,
2279             "field": "closedAt",
2280             "description": ""
2281           },
2282           {
2283             "group": "Body",
2284             "type": "String",
2285             "optional": true,
2286             "field": "disposition",
2287             "description": ""
2288           },
2289           {
2290             "group": "Body",
2291             "type": "String",
2292             "optional": true,
2293             "field": "secondDisposition",
2294             "description": ""
2295           },
2296           {
2297             "group": "Body",
2298             "type": "String",
2299             "optional": true,
2300             "field": "thirdDisposition",
2301             "description": ""
2302           },
2303           {
2304             "group": "Body",
2305             "type": "String",
2306             "optional": true,
2307             "field": "note",
2308             "description": ""
2309           },
2310           {
2311             "group": "Body",
2312             "type": "String",
2313             "optional": true,
2314             "field": "browserName",
2315             "description": ""
2316           },
2317           {
2318             "group": "Body",
2319             "type": "String",
2320             "optional": true,
2321             "field": "browserVersion",
2322             "description": ""
2323           },
2324           {
2325             "group": "Body",
2326             "type": "String",
2327             "optional": true,
2328             "field": "osName",
2329             "description": ""
2330           },
2331           {
2332             "group": "Body",
2333             "type": "String",
2334             "optional": true,
2335             "field": "osVersion",
2336             "description": ""
2337           },
2338           {
2339             "group": "Body",
2340             "type": "String",
2341             "optional": true,
2342             "field": "deviceModel",
2343             "description": ""
2344           },
2345           {
2346             "group": "Body",
2347             "type": "String",
2348             "optional": true,
2349             "field": "deviceVendor",
2350             "description": ""
2351           },
2352           {
2353             "group": "Body",
2354             "type": "String",
2355             "optional": true,
2356             "field": "deviceType",
2357             "description": ""
2358           },
2359           {
2360             "group": "Body",
2361             "type": "Text",
2362             "optional": true,
2363             "field": "referer",
2364             "description": ""
2365           },
2366           {
2367             "group": "Body",
2368             "type": "String",
2369             "optional": true,
2370             "field": "customerIp",
2371             "description": ""
2372           },
2373           {
2374             "group": "Body",
2375             "type": "Text",
2376             "optional": true,
2377             "field": "formData",
2378             "description": ""
2379           },
2380           {
2381             "group": "Body",
2382             "type": "String",
2383             "optional": true,
2384             "field": "read1stAt",
2385             "description": ""
2386           },
2387           {
2388             "group": "Body",
2389             "type": "String",
2390             "optional": true,
2391             "field": "lastMsgAt",
2392             "description": ""
2393           },
2394           {
2395             "group": "Body",
2396             "type": "String",
2397             "allowedValues": [
2398               "\"in\"",
2399               "\"out\""
2400             ],
2401             "optional": false,
2402             "field": "lastMsgDirection",
2403             "description": ""
2404           },
2405           {
2406             "group": "Body",
2407             "type": "String",
2408             "optional": true,
2409             "field": "closeReason",
2410             "description": ""
2411           },
2412           {
2413             "group": "Body",
2414             "type": "String",
2415             "optional": true,
2416             "field": "customerPort",
2417             "description": ""
2418           },
2419           {
2420             "group": "Body",
2421             "type": "Text",
2422             "optional": true,
2423             "field": "vidaooSessionId",
2424             "description": ""
2425           },
2426           {
2427             "group": "Body",
2428             "type": "Boolean",
2429             "optional": true,
2430             "field": "autoreplyExecuted",
2431             "description": ""
2432           }
2433         ]
2434       }
2435     },
2436     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2437     "version": "0.0.0",
2438     "filename": "server/api/chatInteraction/index.js",
2439     "groupTitle": "Chat_Interactions"
2440   },
2441   {
2442     "type": "delete",
2443     "url": "/api/chat/interactions/{id}",
2444     "title": "Deletes a Interaction",
2445     "examples": [
2446       {
2447         "title": "Example usage:",
2448         "content": "curl https://{domain}/api/chat/interactions/{id} -v -u {name}:{password} -X DELETE",
2449         "type": "json"
2450       }
2451     ],
2452     "name": "DeleteInteractions",
2453     "group": "Chat_Interactions",
2454     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2455     "version": "0.0.0",
2456     "filename": "server/api/chatInteraction/index.js",
2457     "groupTitle": "Chat_Interactions"
2458   },
2459   {
2460     "type": "get",
2461     "url": "/api/chat/interactions/describe",
2462     "title": "Gets table info about Interactions",
2463     "examples": [
2464       {
2465         "title": "Example usage:",
2466         "content": "curl https://{domain}/api/chat/interactions/describe -v -u {name}:{password}",
2467         "type": "json"
2468       }
2469     ],
2470     "name": "DescribeInteractions",
2471     "group": "Chat_Interactions",
2472     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2473     "version": "0.0.0",
2474     "filename": "server/api/chatInteraction/index.js",
2475     "groupTitle": "Chat_Interactions"
2476   },
2477   {
2478     "type": "get",
2479     "url": "/api/chat/interactions",
2480     "title": "Gets a list of Interactions",
2481     "examples": [
2482       {
2483         "title": "Example usage:",
2484         "content": "curl https://{domain}/api/chat/interactions -v -u {name}:{password}",
2485         "type": "json"
2486       }
2487     ],
2488     "name": "GetInteractions",
2489     "group": "Chat_Interactions",
2490     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/chat/interactions?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/chat/interactions?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/chat/interactions?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/chat/interactions?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/chat/interactions?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
2491     "version": "0.0.0",
2492     "filename": "server/api/chatInteraction/index.js",
2493     "groupTitle": "Chat_Interactions"
2494   },
2495   {
2496     "type": "delete",
2497     "url": "/api/chat/interactions/{id}/tags",
2498     "title": "Removes tags from interaction",
2499     "examples": [
2500       {
2501         "title": "Example usage:",
2502         "content": "curl https://{domain}/api/chat/interactions/{id}/tags?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
2503         "type": "json"
2504       }
2505     ],
2506     "name": "RemoveTags",
2507     "group": "Chat_Interactions",
2508     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2509     "version": "0.0.0",
2510     "filename": "server/api/chatInteraction/index.js",
2511     "groupTitle": "Chat_Interactions"
2512   },
2513   {
2514     "type": "get",
2515     "url": "/api/chat/interactions/{id}",
2516     "title": "Gets a single Interaction",
2517     "examples": [
2518       {
2519         "title": "Example usage:",
2520         "content": "curl https://{domain}/api/chat/interactions/{id} -v -u {name}:{password}",
2521         "type": "json"
2522       }
2523     ],
2524     "name": "ShowInteractions",
2525     "group": "Chat_Interactions",
2526     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2527     "version": "0.0.0",
2528     "filename": "server/api/chatInteraction/index.js",
2529     "groupTitle": "Chat_Interactions"
2530   },
2531   {
2532     "type": "put",
2533     "url": "/api/chat/interactions/{id}/abandon",
2534     "title": "Abandon interaction",
2535     "examples": [
2536       {
2537         "title": "Example usage:",
2538         "content": "curl https://{domain}/api/chat/interactions/{id}/abandon -d '{\"channel\": \"chat\", \"...\": \"...\"}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
2539         "type": "json"
2540       }
2541     ],
2542     "name": "abandon",
2543     "group": "Chat_Interactions",
2544     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <p>This API is used to set as abandon an interaction and stop the routing.</p>",
2545     "version": "0.0.0",
2546     "filename": "server/api/chatInteraction/index.js",
2547     "groupTitle": "Chat_Interactions"
2548   },
2549   {
2550     "type": "post",
2551     "url": "/api/chat/interactions/{id}/messages",
2552     "title": "Creates new messages",
2553     "examples": [
2554       {
2555         "title": "Example usage:",
2556         "content": "curl https://{domain}/api/chat/interactions/{id}/messages -d '[{\"to\": \"+3901119886500\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
2557         "type": "json"
2558       }
2559     ],
2560     "name": "addMessage",
2561     "group": "Chat_Interactions",
2562     "parameter": {
2563       "fields": {
2564         "Body": [
2565           {
2566             "group": "Body",
2567             "type": "Text",
2568             "optional": false,
2569             "field": "body",
2570             "description": ""
2571           },
2572           {
2573             "group": "Body",
2574             "type": "Boolean",
2575             "optional": true,
2576             "field": "read",
2577             "description": ""
2578           },
2579           {
2580             "group": "Body",
2581             "type": "Boolean",
2582             "optional": true,
2583             "field": "secret",
2584             "description": ""
2585           },
2586           {
2587             "group": "Body",
2588             "type": "String",
2589             "allowedValues": [
2590               "\"in\"",
2591               "\"out\""
2592             ],
2593             "optional": false,
2594             "field": "direction",
2595             "description": ""
2596           },
2597           {
2598             "group": "Body",
2599             "type": "String",
2600             "optional": true,
2601             "field": "readAt",
2602             "description": ""
2603           },
2604           {
2605             "group": "Body",
2606             "type": "String",
2607             "optional": true,
2608             "field": "providerName",
2609             "description": ""
2610           },
2611           {
2612             "group": "Body",
2613             "type": "Text",
2614             "optional": true,
2615             "field": "providerResponse",
2616             "description": ""
2617           }
2618         ]
2619       }
2620     },
2621     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2622     "version": "0.0.0",
2623     "filename": "server/api/chatInteraction/index.js",
2624     "groupTitle": "Chat_Interactions"
2625   },
2626   {
2627     "type": "put",
2628     "url": "/api/chat/interactions/{id}/close",
2629     "title": "Close Interaction",
2630     "examples": [
2631       {
2632         "title": "Example usage:",
2633         "content": "curl https://{domain}/api/chat/interactions/{id}/close -d '[{\"to\": \"+3901119886500\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
2634         "type": "json"
2635       }
2636     ],
2637     "name": "addMessage",
2638     "group": "Chat_Interactions",
2639     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2640     "version": "0.0.0",
2641     "filename": "server/api/chatInteraction/index.js",
2642     "groupTitle": "Chat_Interactions"
2643   },
2644   {
2645     "type": "post",
2646     "url": "/api/chat/interactions/{id}/attachment_upload",
2647     "title": "Add attachment",
2648     "examples": [
2649       {
2650         "title": "Example usage:",
2651         "content": "curl https://{domain}/api/chat/interactions/{id}/attachment_upload -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
2652         "type": "json"
2653       }
2654     ],
2655     "name": "attachmentUpload",
2656     "group": "Chat_Interactions",
2657     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2658     "version": "0.0.0",
2659     "filename": "server/api/chatInteraction/index.js",
2660     "groupTitle": "Chat_Interactions"
2661   },
2662   {
2663     "type": "post",
2664     "url": "/api/chat/interactions/{id}/vidaoo",
2665     "title": "Create Vidaoo Session",
2666     "examples": [
2667       {
2668         "title": "Example usage:",
2669         "content": "curl https://{domain}/api/chat/interactions/{id}/vidaoo  -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
2670         "type": "json"
2671       }
2672     ],
2673     "name": "createVidaooSession",
2674     "group": "Chat_Interactions",
2675     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2676     "version": "0.0.0",
2677     "filename": "server/api/chatInteraction/index.js",
2678     "groupTitle": "Chat_Interactions"
2679   },
2680   {
2681     "type": "put",
2682     "url": "/api/chat/interactions/{id}/custom_update",
2683     "title": "Update interaction",
2684     "examples": [
2685       {
2686         "title": "Example usage:",
2687         "content": "curl https://{domain}/api/chat/interactions/{id}/custom_update -d '{\"channel\": \"chat\", \"...\": \"...\"}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
2688         "type": "json"
2689       }
2690     ],
2691     "name": "customUpdate",
2692     "group": "Chat_Interactions",
2693     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <p>This API is used to update an interaction.</p>",
2694     "version": "0.0.0",
2695     "filename": "server/api/chatInteraction/index.js",
2696     "groupTitle": "Chat_Interactions"
2697   },
2698   {
2699     "type": "get",
2700     "url": "/api/chat/interactions/{id}/download",
2701     "title": "Gets interaction",
2702     "examples": [
2703       {
2704         "title": "Example usage:",
2705         "content": "curl https://{domain}/api/chat/interactions/{id}/download -v -u {name}:{password} -X GET",
2706         "type": "json"
2707       }
2708     ],
2709     "name": "download",
2710     "group": "Chat_Interactions",
2711     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2712     "version": "0.0.0",
2713     "filename": "server/api/chatInteraction/index.js",
2714     "groupTitle": "Chat_Interactions"
2715   },
2716   {
2717     "type": "get",
2718     "url": "/api/chat/interactions/{id}/messages",
2719     "title": "Gets interaction messages",
2720     "examples": [
2721       {
2722         "title": "Example usage:",
2723         "content": "curl https://{domain}/api/chat/interactions/{id}/messages -v -u {name}:{password} -X GET",
2724         "type": "json"
2725       }
2726     ],
2727     "name": "getMessages",
2728     "group": "Chat_Interactions",
2729     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2730     "version": "0.0.0",
2731     "filename": "server/api/chatInteraction/index.js",
2732     "groupTitle": "Chat_Interactions"
2733   },
2734   {
2735     "type": "get",
2736     "url": "/api/chat/interactions/{id}/my_messages",
2737     "title": "Gets interaction messages",
2738     "examples": [
2739       {
2740         "title": "Example usage:",
2741         "content": "curl https://{domain}/api/chat/interactions/{id}/my_messages -v -u {name}:{password} -X GET",
2742         "type": "json"
2743       }
2744     ],
2745     "name": "getMyMessages",
2746     "group": "Chat_Interactions",
2747     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2748     "version": "0.0.0",
2749     "filename": "server/api/chatInteraction/index.js",
2750     "groupTitle": "Chat_Interactions"
2751   },
2752   {
2753     "type": "put",
2754     "url": "/api/chat/interactions/{id}",
2755     "title": "Update an existing Interaction",
2756     "examples": [
2757       {
2758         "title": "Example usage:",
2759         "content": "curl https://{domain}/api/chat/interactions/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
2760         "type": "json"
2761       }
2762     ],
2763     "name": "updateInteractions",
2764     "group": "Chat_Interactions",
2765     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2766     "version": "0.0.0",
2767     "filename": "server/api/chatInteraction/index.js",
2768     "groupTitle": "Chat_Interactions"
2769   },
2770   {
2771     "type": "post",
2772     "url": "/api/chat/internal/messages",
2773     "title": "Creates a new Message",
2774     "examples": [
2775       {
2776         "title": "Example usage:",
2777         "content": "curl https://{domain}/api/chat/internal/messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
2778         "type": "json"
2779       }
2780     ],
2781     "name": "CreateMessages",
2782     "group": "Chat_Internal_Messages",
2783     "parameter": {
2784       "fields": {
2785         "Body": [
2786           {
2787             "group": "Body",
2788             "type": "Text",
2789             "optional": false,
2790             "field": "body",
2791             "description": ""
2792           },
2793           {
2794             "group": "Body",
2795             "type": "Boolean",
2796             "optional": true,
2797             "field": "read",
2798             "description": ""
2799           },
2800           {
2801             "group": "Body",
2802             "type": "Integer",
2803             "optional": true,
2804             "field": "ChatInternalMessageId",
2805             "description": ""
2806           }
2807         ]
2808       }
2809     },
2810     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2811     "version": "0.0.0",
2812     "filename": "server/api/chatInternalMessage/index.js",
2813     "groupTitle": "Chat_Internal_Messages"
2814   },
2815   {
2816     "type": "delete",
2817     "url": "/api/chat/internal/messages/{id}",
2818     "title": "Deletes a Message",
2819     "examples": [
2820       {
2821         "title": "Example usage:",
2822         "content": "curl https://{domain}/api/chat/internal/messages/{id} -v -u {name}:{password} -X DELETE",
2823         "type": "json"
2824       }
2825     ],
2826     "name": "DeleteMessages",
2827     "group": "Chat_Internal_Messages",
2828     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2829     "version": "0.0.0",
2830     "filename": "server/api/chatInternalMessage/index.js",
2831     "groupTitle": "Chat_Internal_Messages"
2832   },
2833   {
2834     "type": "get",
2835     "url": "/api/chat/internal/messages/describe",
2836     "title": "Gets table info about Messages",
2837     "examples": [
2838       {
2839         "title": "Example usage:",
2840         "content": "curl https://{domain}/api/chat/internal/messages/describe -v -u {name}:{password}",
2841         "type": "json"
2842       }
2843     ],
2844     "name": "DescribeMessages",
2845     "group": "Chat_Internal_Messages",
2846     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2847     "version": "0.0.0",
2848     "filename": "server/api/chatInternalMessage/index.js",
2849     "groupTitle": "Chat_Internal_Messages"
2850   },
2851   {
2852     "type": "get",
2853     "url": "/api/chat/internal/messages",
2854     "title": "Gets a list of Messages",
2855     "examples": [
2856       {
2857         "title": "Example usage:",
2858         "content": "curl https://{domain}/api/chat/internal/messages -v -u {name}:{password}",
2859         "type": "json"
2860       }
2861     ],
2862     "name": "GetMessages",
2863     "group": "Chat_Internal_Messages",
2864     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/chat/internal/messages?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/chat/internal/messages?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/chat/internal/messages?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/chat/internal/messages?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/chat/internal/messages?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
2865     "version": "0.0.0",
2866     "filename": "server/api/chatInternalMessage/index.js",
2867     "groupTitle": "Chat_Internal_Messages"
2868   },
2869   {
2870     "type": "get",
2871     "url": "/api/chat/internal/messages/{id}",
2872     "title": "Gets a single Message",
2873     "examples": [
2874       {
2875         "title": "Example usage:",
2876         "content": "curl https://{domain}/api/chat/internal/messages/{id} -v -u {name}:{password}",
2877         "type": "json"
2878       }
2879     ],
2880     "name": "ShowMessages",
2881     "group": "Chat_Internal_Messages",
2882     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2883     "version": "0.0.0",
2884     "filename": "server/api/chatInternalMessage/index.js",
2885     "groupTitle": "Chat_Internal_Messages"
2886   },
2887   {
2888     "type": "put",
2889     "url": "/api/chat/internal/messages/{id}",
2890     "title": "Update an existing Message",
2891     "examples": [
2892       {
2893         "title": "Example usage:",
2894         "content": "curl https://{domain}/api/chat/internal/messages/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
2895         "type": "json"
2896       }
2897     ],
2898     "name": "updateMessages",
2899     "group": "Chat_Internal_Messages",
2900     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2901     "version": "0.0.0",
2902     "filename": "server/api/chatInternalMessage/index.js",
2903     "groupTitle": "Chat_Internal_Messages"
2904   },
2905   {
2906     "type": "post",
2907     "url": "/api/chat/messages",
2908     "title": "Creates a new Message",
2909     "examples": [
2910       {
2911         "title": "Example usage:",
2912         "content": "curl https://{domain}/api/chat/messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
2913         "type": "json"
2914       }
2915     ],
2916     "name": "CreateMessages",
2917     "group": "Chat_Messages",
2918     "parameter": {
2919       "fields": {
2920         "Body": [
2921           {
2922             "group": "Body",
2923             "type": "Text",
2924             "optional": false,
2925             "field": "body",
2926             "description": ""
2927           },
2928           {
2929             "group": "Body",
2930             "type": "Boolean",
2931             "optional": true,
2932             "field": "read",
2933             "description": ""
2934           },
2935           {
2936             "group": "Body",
2937             "type": "Boolean",
2938             "optional": true,
2939             "field": "secret",
2940             "description": ""
2941           },
2942           {
2943             "group": "Body",
2944             "type": "String",
2945             "allowedValues": [
2946               "\"in\"",
2947               "\"out\""
2948             ],
2949             "optional": false,
2950             "field": "direction",
2951             "description": ""
2952           },
2953           {
2954             "group": "Body",
2955             "type": "String",
2956             "optional": true,
2957             "field": "readAt",
2958             "description": ""
2959           },
2960           {
2961             "group": "Body",
2962             "type": "String",
2963             "optional": true,
2964             "field": "providerName",
2965             "description": ""
2966           },
2967           {
2968             "group": "Body",
2969             "type": "Text",
2970             "optional": true,
2971             "field": "providerResponse",
2972             "description": ""
2973           }
2974         ]
2975       }
2976     },
2977     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2978     "version": "0.0.0",
2979     "filename": "server/api/chatMessage/index.js",
2980     "groupTitle": "Chat_Messages"
2981   },
2982   {
2983     "type": "delete",
2984     "url": "/api/chat/messages/{id}",
2985     "title": "Deletes a Message",
2986     "examples": [
2987       {
2988         "title": "Example usage:",
2989         "content": "curl https://{domain}/api/chat/messages/{id} -v -u {name}:{password} -X DELETE",
2990         "type": "json"
2991       }
2992     ],
2993     "name": "DeleteMessages",
2994     "group": "Chat_Messages",
2995     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2996     "version": "0.0.0",
2997     "filename": "server/api/chatMessage/index.js",
2998     "groupTitle": "Chat_Messages"
2999   },
3000   {
3001     "type": "get",
3002     "url": "/api/chat/messages/describe",
3003     "title": "Gets table info about Messages",
3004     "examples": [
3005       {
3006         "title": "Example usage:",
3007         "content": "curl https://{domain}/api/chat/messages/describe -v -u {name}:{password}",
3008         "type": "json"
3009       }
3010     ],
3011     "name": "DescribeMessages",
3012     "group": "Chat_Messages",
3013     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3014     "version": "0.0.0",
3015     "filename": "server/api/chatMessage/index.js",
3016     "groupTitle": "Chat_Messages"
3017   },
3018   {
3019     "type": "get",
3020     "url": "/api/chat/messages",
3021     "title": "Gets a list of Messages",
3022     "examples": [
3023       {
3024         "title": "Example usage:",
3025         "content": "curl https://{domain}/api/chat/messages -v -u {name}:{password}",
3026         "type": "json"
3027       }
3028     ],
3029     "name": "GetMessages",
3030     "group": "Chat_Messages",
3031     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/chat/messages?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/chat/messages?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/chat/messages?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/chat/messages?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/chat/messages?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
3032     "version": "0.0.0",
3033     "filename": "server/api/chatMessage/index.js",
3034     "groupTitle": "Chat_Messages"
3035   },
3036   {
3037     "type": "get",
3038     "url": "/api/chat/messages/{id}",
3039     "title": "Gets a single Message",
3040     "examples": [
3041       {
3042         "title": "Example usage:",
3043         "content": "curl https://{domain}/api/chat/messages/{id} -v -u {name}:{password}",
3044         "type": "json"
3045       }
3046     ],
3047     "name": "ShowMessages",
3048     "group": "Chat_Messages",
3049     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3050     "version": "0.0.0",
3051     "filename": "server/api/chatMessage/index.js",
3052     "groupTitle": "Chat_Messages"
3053   },
3054   {
3055     "type": "put",
3056     "url": "/api/chat/messages/{id}",
3057     "title": "Update an existing Message",
3058     "examples": [
3059       {
3060         "title": "Example usage:",
3061         "content": "curl https://{domain}/api/chat/messages/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
3062         "type": "json"
3063       }
3064     ],
3065     "name": "updateMessages",
3066     "group": "Chat_Messages",
3067     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3068     "version": "0.0.0",
3069     "filename": "server/api/chatMessage/index.js",
3070     "groupTitle": "Chat_Messages"
3071   },
3072   {
3073     "type": "post",
3074     "url": "/api/chat/offline_messages",
3075     "title": "Creates a new OfflineMessage",
3076     "examples": [
3077       {
3078         "title": "Example usage:",
3079         "content": "curl https://{domain}/api/chat/offline_messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
3080         "type": "json"
3081       }
3082     ],
3083     "name": "CreateOfflineMessages",
3084     "group": "Chat_Offline_Messages",
3085     "parameter": {
3086       "fields": {
3087         "Body": [
3088           {
3089             "group": "Body",
3090             "type": "Text",
3091             "optional": false,
3092             "field": "body",
3093             "description": ""
3094           }
3095         ]
3096       }
3097     },
3098     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3099     "version": "0.0.0",
3100     "filename": "server/api/chatOfflineMessage/index.js",
3101     "groupTitle": "Chat_Offline_Messages"
3102   },
3103   {
3104     "type": "delete",
3105     "url": "/api/chat/offline_messages/{id}",
3106     "title": "Deletes a OfflineMessage",
3107     "examples": [
3108       {
3109         "title": "Example usage:",
3110         "content": "curl https://{domain}/api/chat/offline_messages/{id} -v -u {name}:{password} -X DELETE",
3111         "type": "json"
3112       }
3113     ],
3114     "name": "DeleteOfflineMessages",
3115     "group": "Chat_Offline_Messages",
3116     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3117     "version": "0.0.0",
3118     "filename": "server/api/chatOfflineMessage/index.js",
3119     "groupTitle": "Chat_Offline_Messages"
3120   },
3121   {
3122     "type": "get",
3123     "url": "/api/chat/offline_messages/describe",
3124     "title": "Gets table info about OfflineMessages",
3125     "examples": [
3126       {
3127         "title": "Example usage:",
3128         "content": "curl https://{domain}/api/chat/offline_messages/describe -v -u {name}:{password}",
3129         "type": "json"
3130       }
3131     ],
3132     "name": "DescribeOfflineMessages",
3133     "group": "Chat_Offline_Messages",
3134     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3135     "version": "0.0.0",
3136     "filename": "server/api/chatOfflineMessage/index.js",
3137     "groupTitle": "Chat_Offline_Messages"
3138   },
3139   {
3140     "type": "get",
3141     "url": "/api/chat/offline_messages",
3142     "title": "Gets a list of OfflineMessages",
3143     "examples": [
3144       {
3145         "title": "Example usage:",
3146         "content": "curl https://{domain}/api/chat/offline_messages -v -u {name}:{password}",
3147         "type": "json"
3148       }
3149     ],
3150     "name": "GetOfflineMessages",
3151     "group": "Chat_Offline_Messages",
3152     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/chat/offline_messages?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/chat/offline_messages?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/chat/offline_messages?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/chat/offline_messages?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/chat/offline_messages?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
3153     "version": "0.0.0",
3154     "filename": "server/api/chatOfflineMessage/index.js",
3155     "groupTitle": "Chat_Offline_Messages"
3156   },
3157   {
3158     "type": "get",
3159     "url": "/api/chat/offline_messages/{id}",
3160     "title": "Gets a single OfflineMessage",
3161     "examples": [
3162       {
3163         "title": "Example usage:",
3164         "content": "curl https://{domain}/api/chat/offline_messages/{id} -v -u {name}:{password}",
3165         "type": "json"
3166       }
3167     ],
3168     "name": "ShowOfflineMessages",
3169     "group": "Chat_Offline_Messages",
3170     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3171     "version": "0.0.0",
3172     "filename": "server/api/chatOfflineMessage/index.js",
3173     "groupTitle": "Chat_Offline_Messages"
3174   },
3175   {
3176     "type": "put",
3177     "url": "/api/chat/offline_messages/{id}",
3178     "title": "Update an existing OfflineMessage",
3179     "examples": [
3180       {
3181         "title": "Example usage:",
3182         "content": "curl https://{domain}/api/chat/offline_messages/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
3183         "type": "json"
3184       }
3185     ],
3186     "name": "updateOfflineMessages",
3187     "group": "Chat_Offline_Messages",
3188     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3189     "version": "0.0.0",
3190     "filename": "server/api/chatOfflineMessage/index.js",
3191     "groupTitle": "Chat_Offline_Messages"
3192   },
3193   {
3194     "type": "post",
3195     "url": "/api/chat/proactive_actions",
3196     "title": "Creates a new Proactive Action",
3197     "examples": [
3198       {
3199         "title": "Example usage:",
3200         "content": "curl https://{domain}/api/chat/proactive_actions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
3201         "type": "json"
3202       }
3203     ],
3204     "name": "CreateProactive_Actions",
3205     "group": "Chat_Proactive_Actions",
3206     "parameter": {
3207       "fields": {
3208         "Body": [
3209           {
3210             "group": "Body",
3211             "type": "String",
3212             "optional": false,
3213             "field": "name",
3214             "description": ""
3215           },
3216           {
3217             "group": "Body",
3218             "type": "String",
3219             "allowedValues": [
3220               "\"mouseOver\"",
3221               "\"timeout\""
3222             ],
3223             "optional": true,
3224             "field": "type",
3225             "description": ""
3226           },
3227           {
3228             "group": "Body",
3229             "type": "String",
3230             "optional": true,
3231             "field": "selector",
3232             "description": ""
3233           },
3234           {
3235             "group": "Body",
3236             "type": "Integer",
3237             "optional": true,
3238             "field": "timeout",
3239             "description": ""
3240           }
3241         ]
3242       }
3243     },
3244     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3245     "version": "0.0.0",
3246     "filename": "server/api/chatProactiveAction/index.js",
3247     "groupTitle": "Chat_Proactive_Actions"
3248   },
3249   {
3250     "type": "delete",
3251     "url": "/api/chat/proactive_actions/{id}",
3252     "title": "Deletes a Proactive Action",
3253     "examples": [
3254       {
3255         "title": "Example usage:",
3256         "content": "curl https://{domain}/api/chat/proactive_actions/{id} -v -u {name}:{password} -X DELETE",
3257         "type": "json"
3258       }
3259     ],
3260     "name": "DeleteProactive_Actions",
3261     "group": "Chat_Proactive_Actions",
3262     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3263     "version": "0.0.0",
3264     "filename": "server/api/chatProactiveAction/index.js",
3265     "groupTitle": "Chat_Proactive_Actions"
3266   },
3267   {
3268     "type": "get",
3269     "url": "/api/chat/proactive_actions/{id}",
3270     "title": "Gets a single Proactive Action",
3271     "examples": [
3272       {
3273         "title": "Example usage:",
3274         "content": "curl https://{domain}/api/chat/proactive_actions/{id} -v -u {name}:{password}",
3275         "type": "json"
3276       }
3277     ],
3278     "name": "ShowProactive_Actions",
3279     "group": "Chat_Proactive_Actions",
3280     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3281     "version": "0.0.0",
3282     "filename": "server/api/chatProactiveAction/index.js",
3283     "groupTitle": "Chat_Proactive_Actions"
3284   },
3285   {
3286     "type": "put",
3287     "url": "/api/chat/proactive_actions/{id}",
3288     "title": "Update an existing Proactive Action",
3289     "examples": [
3290       {
3291         "title": "Example usage:",
3292         "content": "curl https://{domain}/api/chat/proactive_actions/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
3293         "type": "json"
3294       }
3295     ],
3296     "name": "updateProactive_Actions",
3297     "group": "Chat_Proactive_Actions",
3298     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3299     "version": "0.0.0",
3300     "filename": "server/api/chatProactiveAction/index.js",
3301     "groupTitle": "Chat_Proactive_Actions"
3302   },
3303   {
3304     "type": "post",
3305     "url": "/api/chat/reports/queue",
3306     "title": "Creates a new Chat Queue Report",
3307     "examples": [
3308       {
3309         "title": "Example usage:",
3310         "content": "curl https://{domain}/api/chat/reports/queue -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
3311         "type": "json"
3312       }
3313     ],
3314     "name": "CreateChat_Queue_Reports",
3315     "group": "Chat_Queue_Reports",
3316     "parameter": {
3317       "fields": {
3318         "Body": [
3319           {
3320             "group": "Body",
3321             "type": "String",
3322             "optional": false,
3323             "field": "uniqueid",
3324             "description": ""
3325           },
3326           {
3327             "group": "Body",
3328             "type": "String",
3329             "optional": true,
3330             "field": "from",
3331             "description": ""
3332           },
3333           {
3334             "group": "Body",
3335             "type": "String",
3336             "optional": true,
3337             "field": "joinAt",
3338             "description": ""
3339           },
3340           {
3341             "group": "Body",
3342             "type": "String",
3343             "optional": true,
3344             "field": "leaveAt",
3345             "description": ""
3346           },
3347           {
3348             "group": "Body",
3349             "type": "String",
3350             "optional": true,
3351             "field": "acceptAt",
3352             "description": ""
3353           },
3354           {
3355             "group": "Body",
3356             "type": "String",
3357             "optional": true,
3358             "field": "exitAt",
3359             "description": ""
3360           },
3361           {
3362             "group": "Body",
3363             "type": "String",
3364             "optional": true,
3365             "field": "reason",
3366             "description": ""
3367           }
3368         ]
3369       }
3370     },
3371     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3372     "version": "0.0.0",
3373     "filename": "server/api/chatQueueReport/index.js",
3374     "groupTitle": "Chat_Queue_Reports"
3375   },
3376   {
3377     "type": "delete",
3378     "url": "/api/chat/reports/queue/{id}",
3379     "title": "Deletes a Chat Queue Report",
3380     "examples": [
3381       {
3382         "title": "Example usage:",
3383         "content": "curl https://{domain}/api/chat/reports/queue/{id} -v -u {name}:{password} -X DELETE",
3384         "type": "json"
3385       }
3386     ],
3387     "name": "DeleteChat_Queue_Reports",
3388     "group": "Chat_Queue_Reports",
3389     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3390     "version": "0.0.0",
3391     "filename": "server/api/chatQueueReport/index.js",
3392     "groupTitle": "Chat_Queue_Reports"
3393   },
3394   {
3395     "type": "get",
3396     "url": "/api/chat/reports/queue/describe",
3397     "title": "Gets table info about Chat Queue Reports",
3398     "examples": [
3399       {
3400         "title": "Example usage:",
3401         "content": "curl https://{domain}/api/chat/reports/queue/describe -v -u {name}:{password}",
3402         "type": "json"
3403       }
3404     ],
3405     "name": "DescribeChat_Queue_Reports",
3406     "group": "Chat_Queue_Reports",
3407     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3408     "version": "0.0.0",
3409     "filename": "server/api/chatQueueReport/index.js",
3410     "groupTitle": "Chat_Queue_Reports"
3411   },
3412   {
3413     "type": "get",
3414     "url": "/api/chat/reports/queue",
3415     "title": "Gets a list of Chat Queue Reports",
3416     "examples": [
3417       {
3418         "title": "Example usage:",
3419         "content": "curl https://{domain}/api/chat/reports/queue -v -u {name}:{password}",
3420         "type": "json"
3421       }
3422     ],
3423     "name": "GetChat_Queue_Reports",
3424     "group": "Chat_Queue_Reports",
3425     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/chat/reports/queue?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/chat/reports/queue?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/chat/reports/queue?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/chat/reports/queue?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/chat/reports/queue?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
3426     "version": "0.0.0",
3427     "filename": "server/api/chatQueueReport/index.js",
3428     "groupTitle": "Chat_Queue_Reports"
3429   },
3430   {
3431     "type": "get",
3432     "url": "/api/chat/reports/queue/{id}",
3433     "title": "Gets a single Chat Queue Report",
3434     "examples": [
3435       {
3436         "title": "Example usage:",
3437         "content": "curl https://{domain}/api/chat/reports/queue/{id} -v -u {name}:{password}",
3438         "type": "json"
3439       }
3440     ],
3441     "name": "ShowChat_Queue_Reports",
3442     "group": "Chat_Queue_Reports",
3443     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3444     "version": "0.0.0",
3445     "filename": "server/api/chatQueueReport/index.js",
3446     "groupTitle": "Chat_Queue_Reports"
3447   },
3448   {
3449     "type": "put",
3450     "url": "/api/chat/reports/queue/{id}",
3451     "title": "Update an existing Chat Queue Report",
3452     "examples": [
3453       {
3454         "title": "Example usage:",
3455         "content": "curl https://{domain}/api/chat/reports/queue/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
3456         "type": "json"
3457       }
3458     ],
3459     "name": "updateChat_Queue_Reports",
3460     "group": "Chat_Queue_Reports",
3461     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3462     "version": "0.0.0",
3463     "filename": "server/api/chatQueueReport/index.js",
3464     "groupTitle": "Chat_Queue_Reports"
3465   },
3466   {
3467     "type": "post",
3468     "url": "/api/chat/queues/{id}/users",
3469     "title": "Add agents to a queue",
3470     "examples": [
3471       {
3472         "title": "Example usage:",
3473         "content": "curl https://{domain}/api/chat/queues/{id}/users -d '{\"ids\": [1,2], \"penalty\": 2}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
3474         "type": "json"
3475       }
3476     ],
3477     "name": "AddAgents",
3478     "group": "Chat_Queues",
3479     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3480     "version": "0.0.0",
3481     "filename": "server/api/chatQueue/index.js",
3482     "groupTitle": "Chat_Queues"
3483   },
3484   {
3485     "type": "post",
3486     "url": "/api/chat/queues/{id}/teams",
3487     "title": "Add teams to a queue",
3488     "examples": [
3489       {
3490         "title": "Example usage:",
3491         "content": "curl https://{domain}/api/chat/queues/{id}/teams -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
3492         "type": "json"
3493       }
3494     ],
3495     "name": "AddTeams",
3496     "group": "Chat_Queues",
3497     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3498     "version": "0.0.0",
3499     "filename": "server/api/chatQueue/index.js",
3500     "groupTitle": "Chat_Queues"
3501   },
3502   {
3503     "type": "post",
3504     "url": "/api/chat/queues",
3505     "title": "Creates a new Queue",
3506     "examples": [
3507       {
3508         "title": "Example usage:",
3509         "content": "curl https://{domain}/api/chat/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
3510         "type": "json"
3511       }
3512     ],
3513     "name": "CreateQueues",
3514     "group": "Chat_Queues",
3515     "parameter": {
3516       "fields": {
3517         "Body": [
3518           {
3519             "group": "Body",
3520             "type": "String",
3521             "optional": false,
3522             "field": "name",
3523             "description": ""
3524           },
3525           {
3526             "group": "Body",
3527             "type": "String",
3528             "optional": true,
3529             "field": "description",
3530             "description": ""
3531           },
3532           {
3533             "group": "Body",
3534             "type": "Integer",
3535             "optional": true,
3536             "field": "timeout",
3537             "description": ""
3538           },
3539           {
3540             "group": "Body",
3541             "type": "String",
3542             "allowedValues": [
3543               "\"rrmemory\"",
3544               "\"beepall\"",
3545               "\"roundrobin\""
3546             ],
3547             "optional": true,
3548             "field": "strategy",
3549             "description": ""
3550           }
3551         ]
3552       }
3553     },
3554     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3555     "version": "0.0.0",
3556     "filename": "server/api/chatQueue/index.js",
3557     "groupTitle": "Chat_Queues"
3558   },
3559   {
3560     "type": "delete",
3561     "url": "/api/chat/queues/{id}",
3562     "title": "Deletes a Queue",
3563     "examples": [
3564       {
3565         "title": "Example usage:",
3566         "content": "curl https://{domain}/api/chat/queues/{id} -v -u {name}:{password} -X DELETE",
3567         "type": "json"
3568       }
3569     ],
3570     "name": "DeleteQueues",
3571     "group": "Chat_Queues",
3572     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3573     "version": "0.0.0",
3574     "filename": "server/api/chatQueue/index.js",
3575     "groupTitle": "Chat_Queues"
3576   },
3577   {
3578     "type": "get",
3579     "url": "/api/chat/queues/describe",
3580     "title": "Gets table info about Queues",
3581     "examples": [
3582       {
3583         "title": "Example usage:",
3584         "content": "curl https://{domain}/api/chat/queues/describe -v -u {name}:{password}",
3585         "type": "json"
3586       }
3587     ],
3588     "name": "DescribeQueues",
3589     "group": "Chat_Queues",
3590     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3591     "version": "0.0.0",
3592     "filename": "server/api/chatQueue/index.js",
3593     "groupTitle": "Chat_Queues"
3594   },
3595   {
3596     "type": "get",
3597     "url": "/api/chat/queues/{id}/users",
3598     "title": "Gets queue agents",
3599     "examples": [
3600       {
3601         "title": "Example usage:",
3602         "content": "curl https://{domain}/api/chat/queues/{id}/users -v -u {name}:{password} -X POST",
3603         "type": "json"
3604       }
3605     ],
3606     "name": "GetAgents",
3607     "group": "Chat_Queues",
3608     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3609     "version": "0.0.0",
3610     "filename": "server/api/chatQueue/index.js",
3611     "groupTitle": "Chat_Queues"
3612   },
3613   {
3614     "type": "get",
3615     "url": "/api/chat/queues/{id}/members",
3616     "title": "GetMembers",
3617     "examples": [
3618       {
3619         "title": "Example usage:",
3620         "content": "curl https://{domain}/api/chat/queues/{id}/members  -v -u {name}:{password}",
3621         "type": "json"
3622       }
3623     ],
3624     "name": "GetMembers",
3625     "group": "Chat_Queues",
3626     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3627     "version": "0.0.0",
3628     "filename": "server/api/chatQueue/index.js",
3629     "groupTitle": "Chat_Queues"
3630   },
3631   {
3632     "type": "get",
3633     "url": "/api/chat/queues",
3634     "title": "Gets a list of Queues",
3635     "examples": [
3636       {
3637         "title": "Example usage:",
3638         "content": "curl https://{domain}/api/chat/queues -v -u {name}:{password}",
3639         "type": "json"
3640       }
3641     ],
3642     "name": "GetQueues",
3643     "group": "Chat_Queues",
3644     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/chat/queues?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/chat/queues?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/chat/queues?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/chat/queues?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/chat/queues?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
3645     "version": "0.0.0",
3646     "filename": "server/api/chatQueue/index.js",
3647     "groupTitle": "Chat_Queues"
3648   },
3649   {
3650     "type": "get",
3651     "url": "/api/chat/queues/{id}/teams",
3652     "title": "Gets queues list",
3653     "examples": [
3654       {
3655         "title": "Example usage:",
3656         "content": "curl https://{domain}/api/chat/queues/{id}/teams -v -u {name}:{password}",
3657         "type": "json"
3658       }
3659     ],
3660     "name": "GetTeams",
3661     "group": "Chat_Queues",
3662     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3663     "version": "0.0.0",
3664     "filename": "server/api/chatQueue/index.js",
3665     "groupTitle": "Chat_Queues"
3666   },
3667   {
3668     "type": "delete",
3669     "url": "/api/chat/queues/{id}/users",
3670     "title": "Removes agents from a queue",
3671     "examples": [
3672       {
3673         "title": "Example usage:",
3674         "content": "curl https://{domain}/api/chat/queues/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
3675         "type": "json"
3676       }
3677     ],
3678     "name": "RemoveAgents",
3679     "group": "Chat_Queues",
3680     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3681     "version": "0.0.0",
3682     "filename": "server/api/chatQueue/index.js",
3683     "groupTitle": "Chat_Queues"
3684   },
3685   {
3686     "type": "get",
3687     "url": "/api/chat/queues/{id}",
3688     "title": "Gets a single Queue",
3689     "examples": [
3690       {
3691         "title": "Example usage:",
3692         "content": "curl https://{domain}/api/chat/queues/{id} -v -u {name}:{password}",
3693         "type": "json"
3694       }
3695     ],
3696     "name": "ShowQueues",
3697     "group": "Chat_Queues",
3698     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3699     "version": "0.0.0",
3700     "filename": "server/api/chatQueue/index.js",
3701     "groupTitle": "Chat_Queues"
3702   },
3703   {
3704     "type": "put",
3705     "url": "/api/chat/queues/{id}",
3706     "title": "Update an existing Queue",
3707     "examples": [
3708       {
3709         "title": "Example usage:",
3710         "content": "curl https://{domain}/api/chat/queues/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
3711         "type": "json"
3712       }
3713     ],
3714     "name": "updateQueues",
3715     "group": "Chat_Queues",
3716     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3717     "version": "0.0.0",
3718     "filename": "server/api/chatQueue/index.js",
3719     "groupTitle": "Chat_Queues"
3720   },
3721   {
3722     "type": "post",
3723     "url": "/api/chat/reports/transfer",
3724     "title": "Creates a new Chat Transfer Report",
3725     "examples": [
3726       {
3727         "title": "Example usage:",
3728         "content": "curl https://{domain}/api/chat/reports/transfer -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
3729         "type": "json"
3730       }
3731     ],
3732     "name": "CreateChat_Transfer_Reports",
3733     "group": "Chat_Transfer_Reports",
3734     "parameter": {
3735       "fields": {
3736         "Body": [
3737           {
3738             "group": "Body",
3739             "type": "String",
3740             "optional": false,
3741             "field": "uniqueid",
3742             "description": ""
3743           },
3744           {
3745             "group": "Body",
3746             "type": "String",
3747             "allowedValues": [
3748               "\"account\"",
3749               "\"agent\"",
3750               "\"queue\""
3751             ],
3752             "optional": false,
3753             "field": "type",
3754             "description": ""
3755           },
3756           {
3757             "group": "Body",
3758             "type": "String",
3759             "optional": false,
3760             "field": "transferredAt",
3761             "description": ""
3762           }
3763         ]
3764       }
3765     },
3766     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3767     "version": "0.0.0",
3768     "filename": "server/api/chatTransferReport/index.js",
3769     "groupTitle": "Chat_Transfer_Reports"
3770   },
3771   {
3772     "type": "delete",
3773     "url": "/api/chat/reports/transfer/{id}",
3774     "title": "Deletes a Chat Transfer Report",
3775     "examples": [
3776       {
3777         "title": "Example usage:",
3778         "content": "curl https://{domain}/api/chat/reports/transfer/{id} -v -u {name}:{password} -X DELETE",
3779         "type": "json"
3780       }
3781     ],
3782     "name": "DeleteChat_Transfer_Reports",
3783     "group": "Chat_Transfer_Reports",
3784     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3785     "version": "0.0.0",
3786     "filename": "server/api/chatTransferReport/index.js",
3787     "groupTitle": "Chat_Transfer_Reports"
3788   },
3789   {
3790     "type": "get",
3791     "url": "/api/chat/reports/transfer/describe",
3792     "title": "Gets table info about Chat Transfer Reports",
3793     "examples": [
3794       {
3795         "title": "Example usage:",
3796         "content": "curl https://{domain}/api/chat/reports/transfer/describe -v -u {name}:{password}",
3797         "type": "json"
3798       }
3799     ],
3800     "name": "DescribeChat_Transfer_Reports",
3801     "group": "Chat_Transfer_Reports",
3802     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3803     "version": "0.0.0",
3804     "filename": "server/api/chatTransferReport/index.js",
3805     "groupTitle": "Chat_Transfer_Reports"
3806   },
3807   {
3808     "type": "get",
3809     "url": "/api/chat/reports/transfer",
3810     "title": "Gets a list of Chat Transfer Reports",
3811     "examples": [
3812       {
3813         "title": "Example usage:",
3814         "content": "curl https://{domain}/api/chat/reports/transfer -v -u {name}:{password}",
3815         "type": "json"
3816       }
3817     ],
3818     "name": "GetChat_Transfer_Reports",
3819     "group": "Chat_Transfer_Reports",
3820     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/chat/reports/transfer?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/chat/reports/transfer?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/chat/reports/transfer?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/chat/reports/transfer?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/chat/reports/transfer?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
3821     "version": "0.0.0",
3822     "filename": "server/api/chatTransferReport/index.js",
3823     "groupTitle": "Chat_Transfer_Reports"
3824   },
3825   {
3826     "type": "get",
3827     "url": "/api/chat/reports/transfer/{id}",
3828     "title": "Gets a single Chat Transfer Report",
3829     "examples": [
3830       {
3831         "title": "Example usage:",
3832         "content": "curl https://{domain}/api/chat/reports/transfer/{id} -v -u {name}:{password}",
3833         "type": "json"
3834       }
3835     ],
3836     "name": "ShowChat_Transfer_Reports",
3837     "group": "Chat_Transfer_Reports",
3838     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3839     "version": "0.0.0",
3840     "filename": "server/api/chatTransferReport/index.js",
3841     "groupTitle": "Chat_Transfer_Reports"
3842   },
3843   {
3844     "type": "put",
3845     "url": "/api/chat/reports/transfer/{id}",
3846     "title": "Update an existing Chat Transfer Report",
3847     "examples": [
3848       {
3849         "title": "Example usage:",
3850         "content": "curl https://{domain}/api/chat/reports/transfer/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
3851         "type": "json"
3852       }
3853     ],
3854     "name": "updateChat_Transfer_Reports",
3855     "group": "Chat_Transfer_Reports",
3856     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3857     "version": "0.0.0",
3858     "filename": "server/api/chatTransferReport/index.js",
3859     "groupTitle": "Chat_Transfer_Reports"
3860   },
3861   {
3862     "type": "post",
3863     "url": "/api/chat/websites/{id}/users",
3864     "title": "Add agents to a website",
3865     "examples": [
3866       {
3867         "title": "Example usage:",
3868         "content": "curl https://{domain}/api/chat/websites/{id}/users -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
3869         "type": "json"
3870       }
3871     ],
3872     "name": "AddAgents",
3873     "group": "Chat_Websites",
3874     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3875     "version": "0.0.0",
3876     "filename": "server/api/chatWebsite/index.js",
3877     "groupTitle": "Chat_Websites"
3878   },
3879   {
3880     "type": "post",
3881     "url": "/api/chat/websites",
3882     "title": "Creates a new Website",
3883     "examples": [
3884       {
3885         "title": "Example usage:",
3886         "content": "curl https://{domain}/api/chat/websites -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
3887         "type": "json"
3888       }
3889     ],
3890     "name": "CreateWebsites",
3891     "group": "Chat_Websites",
3892     "parameter": {
3893       "fields": {
3894         "Body": [
3895           {
3896             "group": "Body",
3897             "type": "String",
3898             "optional": false,
3899             "field": "name",
3900             "description": ""
3901           },
3902           {
3903             "group": "Body",
3904             "type": "String",
3905             "optional": false,
3906             "field": "address",
3907             "description": ""
3908           },
3909           {
3910             "group": "Body",
3911             "type": "String",
3912             "optional": true,
3913             "field": "description",
3914             "description": ""
3915           },
3916           {
3917             "group": "Body",
3918             "type": "String",
3919             "optional": true,
3920             "field": "mapKey",
3921             "description": ""
3922           },
3923           {
3924             "group": "Body",
3925             "type": "String",
3926             "optional": true,
3927             "field": "mapKeyOffline",
3928             "description": ""
3929           },
3930           {
3931             "group": "Body",
3932             "type": "String",
3933             "optional": false,
3934             "field": "key",
3935             "description": ""
3936           },
3937           {
3938             "group": "Body",
3939             "type": "String",
3940             "optional": true,
3941             "field": "agentAlias",
3942             "description": ""
3943           },
3944           {
3945             "group": "Body",
3946             "type": "String",
3947             "optional": true,
3948             "field": "customerAlias",
3949             "description": ""
3950           },
3951           {
3952             "group": "Body",
3953             "type": "String",
3954             "optional": false,
3955             "field": "color",
3956             "description": ""
3957           },
3958           {
3959             "group": "Body",
3960             "type": "String",
3961             "optional": false,
3962             "field": "color_button",
3963             "description": ""
3964           },
3965           {
3966             "group": "Body",
3967             "type": "String",
3968             "optional": false,
3969             "field": "textColor",
3970             "description": ""
3971           },
3972           {
3973             "group": "Body",
3974             "type": "Integer",
3975             "optional": true,
3976             "field": "fontSize",
3977             "description": ""
3978           },
3979           {
3980             "group": "Body",
3981             "type": "String",
3982             "optional": true,
3983             "field": "remote",
3984             "description": ""
3985           },
3986           {
3987             "group": "Body",
3988             "type": "Boolean",
3989             "optional": true,
3990             "field": "animation",
3991             "description": ""
3992           },
3993           {
3994             "group": "Body",
3995             "type": "String",
3996             "allowedValues": [
3997               "\"rounded\"",
3998               "\"squared\""
3999             ],
4000             "optional": true,
4001             "field": "header_shape",
4002             "description": ""
4003           },
4004           {
4005             "group": "Body",
4006             "type": "String",
4007             "optional": true,
4008             "field": "header_online",
4009             "description": ""
4010           },
4011           {
4012             "group": "Body",
4013             "type": "String",
4014             "optional": true,
4015             "field": "start_chat_button",
4016             "description": ""
4017           },
4018           {
4019             "group": "Body",
4020             "type": "String",
4021             "optional": true,
4022             "field": "offline_chat_button",
4023             "description": ""
4024           },
4025           {
4026             "group": "Body",
4027             "type": "String",
4028             "optional": true,
4029             "field": "header_offline",
4030             "description": ""
4031           },
4032           {
4033             "group": "Body",
4034             "type": "Boolean",
4035             "optional": true,
4036             "field": "download_transcript",
4037             "description": ""
4038           },
4039           {
4040             "group": "Body",
4041             "type": "Integer",
4042             "optional": true,
4043             "field": "timeout",
4044             "description": ""
4045           },
4046           {
4047             "group": "Body",
4048             "type": "String",
4049             "optional": true,
4050             "field": "whiteLabel",
4051             "description": ""
4052           },
4053           {
4054             "group": "Body",
4055             "type": "Boolean",
4056             "optional": true,
4057             "field": "defaultWhiteLabel",
4058             "description": ""
4059           },
4060           {
4061             "group": "Body",
4062             "type": "Text",
4063             "optional": true,
4064             "field": "sitepic",
4065             "description": ""
4066           },
4067           {
4068             "group": "Body",
4069             "type": "String",
4070             "optional": true,
4071             "field": "closingQuestion",
4072             "description": ""
4073           },
4074           {
4075             "group": "Body",
4076             "type": "String",
4077             "optional": true,
4078             "field": "formSubmitSuccessMessage",
4079             "description": ""
4080           },
4081           {
4082             "group": "Body",
4083             "type": "String",
4084             "optional": true,
4085             "field": "formSubmitFailureMessage",
4086             "description": ""
4087           },
4088           {
4089             "group": "Body",
4090             "type": "String",
4091             "optional": true,
4092             "field": "noteTitle",
4093             "description": ""
4094           },
4095           {
4096             "group": "Body",
4097             "type": "String",
4098             "optional": true,
4099             "field": "placeholderMessage",
4100             "description": ""
4101           },
4102           {
4103             "group": "Body",
4104             "type": "String",
4105             "optional": true,
4106             "field": "closingMessage",
4107             "description": ""
4108           },
4109           {
4110             "group": "Body",
4111             "type": "String",
4112             "optional": true,
4113             "field": "closingMessageButton",
4114             "description": ""
4115           },
4116           {
4117             "group": "Body",
4118             "type": "String",
4119             "optional": true,
4120             "field": "skipMessageButton",
4121             "description": ""
4122           },
4123           {
4124             "group": "Body",
4125             "type": "Boolean",
4126             "optional": true,
4127             "field": "conditionAgreement",
4128             "description": ""
4129           },
4130           {
4131             "group": "Body",
4132             "type": "Boolean",
4133             "optional": true,
4134             "field": "enableRating",
4135             "description": ""
4136           },
4137           {
4138             "group": "Body",
4139             "type": "Boolean",
4140             "optional": true,
4141             "field": "enableFeedback",
4142             "description": ""
4143           },
4144           {
4145             "group": "Body",
4146             "type": "Boolean",
4147             "optional": true,
4148             "field": "enableSendButton",
4149             "description": ""
4150           },
4151           {
4152             "group": "Body",
4153             "type": "String",
4154             "optional": true,
4155             "field": "feedbackTitle",
4156             "description": ""
4157           },
4158           {
4159             "group": "Body",
4160             "type": "String",
4161             "allowedValues": [
4162               "\"star\"",
4163               "\"thumb\""
4164             ],
4165             "optional": true,
4166             "field": "ratingType",
4167             "description": ""
4168           },
4169           {
4170             "group": "Body",
4171             "type": "Integer",
4172             "optional": true,
4173             "field": "ratingStarsNumber",
4174             "description": ""
4175           },
4176           {
4177             "group": "Body",
4178             "type": "Text",
4179             "optional": true,
4180             "field": "onlineForm",
4181             "description": ""
4182           },
4183           {
4184             "group": "Body",
4185             "type": "Text",
4186             "optional": true,
4187             "field": "offlineForm",
4188             "description": ""
4189           },
4190           {
4191             "group": "Body",
4192             "type": "String",
4193             "optional": true,
4194             "field": "token",
4195             "description": ""
4196           },
4197           {
4198             "group": "Body",
4199             "type": "Boolean",
4200             "optional": true,
4201             "field": "autoclose",
4202             "description": ""
4203           },
4204           {
4205             "group": "Body",
4206             "type": "Boolean",
4207             "optional": true,
4208             "field": "enableCustomerWriting",
4209             "description": ""
4210           },
4211           {
4212             "group": "Body",
4213             "type": "Boolean",
4214             "optional": true,
4215             "field": "forwardTranscript",
4216             "description": ""
4217           },
4218           {
4219             "group": "Body",
4220             "type": "String",
4221             "optional": true,
4222             "field": "forwardTranscriptMessage",
4223             "description": ""
4224           },
4225           {
4226             "group": "Body",
4227             "type": "Boolean",
4228             "optional": true,
4229             "field": "forwardOffline",
4230             "description": ""
4231           },
4232           {
4233             "group": "Body",
4234             "type": "String",
4235             "optional": true,
4236             "field": "forwardOfflineAddress",
4237             "description": ""
4238           },
4239           {
4240             "group": "Body",
4241             "type": "String",
4242             "optional": true,
4243             "field": "waitingTitle",
4244             "description": ""
4245           },
4246           {
4247             "group": "Body",
4248             "type": "String",
4249             "optional": true,
4250             "field": "waitingMessage",
4251             "description": ""
4252           },
4253           {
4254             "group": "Body",
4255             "type": "String",
4256             "optional": true,
4257             "field": "offlineMessageSubject",
4258             "description": ""
4259           },
4260           {
4261             "group": "Body",
4262             "type": "String",
4263             "optional": true,
4264             "field": "offlineMessageBody",
4265             "description": ""
4266           },
4267           {
4268             "group": "Body",
4269             "type": "Boolean",
4270             "optional": true,
4271             "field": "enableUnmanagedNote",
4272             "description": ""
4273           },
4274           {
4275             "group": "Body",
4276             "type": "String",
4277             "optional": true,
4278             "field": "unmanagedMessage",
4279             "description": ""
4280           },
4281           {
4282             "group": "Body",
4283             "type": "String",
4284             "optional": true,
4285             "field": "skipUnmanaged",
4286             "description": ""
4287           },
4288           {
4289             "group": "Body",
4290             "type": "String",
4291             "optional": true,
4292             "field": "sendUnmanaged",
4293             "description": ""
4294           },
4295           {
4296             "group": "Body",
4297             "type": "Boolean",
4298             "optional": true,
4299             "field": "enableCustomerAttachment",
4300             "description": ""
4301           },
4302           {
4303             "group": "Body",
4304             "type": "Boolean",
4305             "optional": true,
4306             "field": "enableCustomerCheckmarks",
4307             "description": ""
4308           },
4309           {
4310             "group": "Body",
4311             "type": "Text",
4312             "optional": true,
4313             "field": "agentAvatar",
4314             "description": ""
4315           },
4316           {
4317             "group": "Body",
4318             "type": "Boolean",
4319             "optional": true,
4320             "field": "showAgentAvatar",
4321             "description": ""
4322           },
4323           {
4324             "group": "Body",
4325             "type": "String",
4326             "optional": true,
4327             "field": "timezone",
4328             "description": ""
4329           },
4330           {
4331             "group": "Body",
4332             "type": "Text",
4333             "optional": true,
4334             "field": "notificationTemplate",
4335             "description": ""
4336           },
4337           {
4338             "group": "Body",
4339             "type": "Boolean",
4340             "optional": true,
4341             "field": "notificationSound",
4342             "description": ""
4343           },
4344           {
4345             "group": "Body",
4346             "type": "Boolean",
4347             "optional": true,
4348             "field": "notificationShake",
4349             "description": ""
4350           },
4351           {
4352             "group": "Body",
4353             "type": "Boolean",
4354             "optional": true,
4355             "field": "hideWhenOffline",
4356             "description": ""
4357           },
4358           {
4359             "group": "Body",
4360             "type": "String",
4361             "optional": true,
4362             "field": "agentIdentifier",
4363             "description": ""
4364           },
4365           {
4366             "group": "Body",
4367             "type": "Integer",
4368             "optional": true,
4369             "field": "waitForTheAssignedAgent",
4370             "description": ""
4371           },
4372           {
4373             "group": "Body",
4374             "type": "Integer",
4375             "optional": true,
4376             "field": "waitForTheAssignedQueue",
4377             "description": ""
4378           },
4379           {
4380             "group": "Body",
4381             "type": "String",
4382             "optional": true,
4383             "field": "alignment",
4384             "description": ""
4385           },
4386           {
4387             "group": "Body",
4388             "type": "Integer",
4389             "optional": true,
4390             "field": "verticalAlignment",
4391             "description": ""
4392           },
4393           {
4394             "group": "Body",
4395             "type": "String",
4396             "optional": true,
4397             "field": "labelText",
4398             "description": ""
4399           },
4400           {
4401             "group": "Body",
4402             "type": "String",
4403             "optional": true,
4404             "field": "messagesAlignment",
4405             "description": ""
4406           },
4407           {
4408             "group": "Body",
4409             "type": "String",
4410             "optional": true,
4411             "field": "defaultTitle",
4412             "description": ""
4413           },
4414           {
4415             "group": "Body",
4416             "type": "Text",
4417             "optional": true,
4418             "field": "customerAvatar",
4419             "description": ""
4420           },
4421           {
4422             "group": "Body",
4423             "type": "Boolean",
4424             "optional": true,
4425             "field": "showCustomerAvatar",
4426             "description": ""
4427           },
4428           {
4429             "group": "Body",
4430             "type": "Integer",
4431             "optional": true,
4432             "field": "messageFontSize",
4433             "description": ""
4434           },
4435           {
4436             "group": "Body",
4437             "type": "String",
4438             "optional": false,
4439             "field": "backgroundColor",
4440             "description": ""
4441           },
4442           {
4443             "group": "Body",
4444             "type": "Boolean",
4445             "optional": true,
4446             "field": "queueTransfer",
4447             "description": ""
4448           },
4449           {
4450             "group": "Body",
4451             "type": "Integer",
4452             "optional": true,
4453             "field": "queueTransferTimeout",
4454             "description": ""
4455           },
4456           {
4457             "group": "Body",
4458             "type": "Boolean",
4459             "optional": true,
4460             "field": "agentTransfer",
4461             "description": ""
4462           },
4463           {
4464             "group": "Body",
4465             "type": "Integer",
4466             "optional": true,
4467             "field": "agentTransferTimeout",
4468             "description": ""
4469           },
4470           {
4471             "group": "Body",
4472             "type": "String",
4473             "optional": true,
4474             "field": "systemAlias",
4475             "description": ""
4476           },
4477           {
4478             "group": "Body",
4479             "type": "Text",
4480             "optional": true,
4481             "field": "systemAvatar",
4482             "description": ""
4483           },
4484           {
4485             "group": "Body",
4486             "type": "Integer",
4487             "optional": true,
4488             "field": "mandatoryDispositionPauseId",
4489             "description": "<p>Status to put when mandatory disposition is enabled</p>"
4490           },
4491           {
4492             "group": "Body",
4493             "type": "Boolean",
4494             "optional": true,
4495             "field": "mandatoryDisposition",
4496             "description": "<p>Enabled/disables mandatory dispo on a queue</p>"
4497           },
4498           {
4499             "group": "Body",
4500             "type": "Boolean",
4501             "optional": true,
4502             "field": "vidaooEscalation",
4503             "description": ""
4504           },
4505           {
4506             "group": "Body",
4507             "type": "String",
4508             "optional": true,
4509             "field": "vidaooApiKey",
4510             "description": ""
4511           },
4512           {
4513             "group": "Body",
4514             "type": "String",
4515             "optional": false,
4516             "field": "vidaooTopic",
4517             "description": ""
4518           },
4519           {
4520             "group": "Body",
4521             "type": "String",
4522             "optional": true,
4523             "field": "vidaooNote",
4524             "description": ""
4525           },
4526           {
4527             "group": "Body",
4528             "type": "Text",
4529             "optional": true,
4530             "field": "vidaooMetadata",
4531             "description": ""
4532           },
4533           {
4534             "group": "Body",
4535             "type": "Boolean",
4536             "optional": true,
4537             "field": "openNewInteraction",
4538             "description": ""
4539           },
4540           {
4541             "group": "Body",
4542             "type": "Text",
4543             "optional": true,
4544             "field": "subjectOffline",
4545             "description": ""
4546           }
4547         ]
4548       }
4549     },
4550     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4551     "version": "0.0.0",
4552     "filename": "server/api/chatWebsite/index.js",
4553     "groupTitle": "Chat_Websites"
4554   },
4555   {
4556     "type": "delete",
4557     "url": "/api/chat/websites/{id}",
4558     "title": "Deletes a Website",
4559     "examples": [
4560       {
4561         "title": "Example usage:",
4562         "content": "curl https://{domain}/api/chat/websites/{id} -v -u {name}:{password} -X DELETE",
4563         "type": "json"
4564       }
4565     ],
4566     "name": "DeleteWebsites",
4567     "group": "Chat_Websites",
4568     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4569     "version": "0.0.0",
4570     "filename": "server/api/chatWebsite/index.js",
4571     "groupTitle": "Chat_Websites"
4572   },
4573   {
4574     "type": "get",
4575     "url": "/api/chat/websites/describe",
4576     "title": "Gets table info about Websites",
4577     "examples": [
4578       {
4579         "title": "Example usage:",
4580         "content": "curl https://{domain}/api/chat/websites/describe -v -u {name}:{password}",
4581         "type": "json"
4582       }
4583     ],
4584     "name": "DescribeWebsites",
4585     "group": "Chat_Websites",
4586     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4587     "version": "0.0.0",
4588     "filename": "server/api/chatWebsite/index.js",
4589     "groupTitle": "Chat_Websites"
4590   },
4591   {
4592     "type": "get",
4593     "url": "/api/chat/websites/{id}/users",
4594     "title": "Gets agents from website",
4595     "examples": [
4596       {
4597         "title": "Example usage:",
4598         "content": "curl https://{domain}/api/chat/websites/{id}/users -v -u {name}:{password} -X GET",
4599         "type": "json"
4600       }
4601     ],
4602     "name": "GetAgents",
4603     "group": "Chat_Websites",
4604     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4605     "version": "0.0.0",
4606     "filename": "server/api/chatWebsite/index.js",
4607     "groupTitle": "Chat_Websites"
4608   },
4609   {
4610     "type": "get",
4611     "url": "/api/chat/websites",
4612     "title": "Gets a list of Websites",
4613     "examples": [
4614       {
4615         "title": "Example usage:",
4616         "content": "curl https://{domain}/api/chat/websites -v -u {name}:{password}",
4617         "type": "json"
4618       }
4619     ],
4620     "name": "GetWebsites",
4621     "group": "Chat_Websites",
4622     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/chat/websites?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/chat/websites?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/chat/websites?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/chat/websites?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/chat/websites?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
4623     "version": "0.0.0",
4624     "filename": "server/api/chatWebsite/index.js",
4625     "groupTitle": "Chat_Websites"
4626   },
4627   {
4628     "type": "delete",
4629     "url": "/api/chat/websites/{id}/users",
4630     "title": "Removes agents from a website",
4631     "examples": [
4632       {
4633         "title": "Example usage:",
4634         "content": "curl https://{domain}/api/chat/websites/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
4635         "type": "json"
4636       }
4637     ],
4638     "name": "RemoveAgents",
4639     "group": "Chat_Websites",
4640     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4641     "version": "0.0.0",
4642     "filename": "server/api/chatWebsite/index.js",
4643     "groupTitle": "Chat_Websites"
4644   },
4645   {
4646     "type": "delete",
4647     "url": "/api/chat/websites/{id}/canned_answers",
4648     "title": "Removes canned answers from account",
4649     "examples": [
4650       {
4651         "title": "Example usage:",
4652         "content": "curl https://{domain}/api/chat/websites/{id}/canned_answers?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
4653         "type": "json"
4654       }
4655     ],
4656     "name": "RemoveAnswers",
4657     "group": "Chat_Websites",
4658     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4659     "version": "0.0.0",
4660     "filename": "server/api/chatWebsite/index.js",
4661     "groupTitle": "Chat_Websites"
4662   },
4663   {
4664     "type": "delete",
4665     "url": "/api/chat/websites/{id}/dispositions",
4666     "title": "Removes canned answers from account",
4667     "examples": [
4668       {
4669         "title": "Example usage:",
4670         "content": "curl https://{domain}/api/chat/websites/{id}/dispositions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
4671         "type": "json"
4672       }
4673     ],
4674     "name": "RemoveDispositions",
4675     "group": "Chat_Websites",
4676     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4677     "version": "0.0.0",
4678     "filename": "server/api/chatWebsite/index.js",
4679     "groupTitle": "Chat_Websites"
4680   },
4681   {
4682     "type": "get",
4683     "url": "/api/chat/websites/{id}",
4684     "title": "Gets a single Website",
4685     "examples": [
4686       {
4687         "title": "Example usage:",
4688         "content": "curl https://{domain}/api/chat/websites/{id} -v -u {name}:{password}",
4689         "type": "json"
4690       }
4691     ],
4692     "name": "ShowWebsites",
4693     "group": "Chat_Websites",
4694     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4695     "version": "0.0.0",
4696     "filename": "server/api/chatWebsite/index.js",
4697     "groupTitle": "Chat_Websites"
4698   },
4699   {
4700     "type": "put",
4701     "url": "/api/chat/messages/{id}/accept",
4702     "title": "Accepts message",
4703     "examples": [
4704       {
4705         "title": "Example usage:",
4706         "content": "curl https://{domain}/api/chat/messages/{id}/accept \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
4707         "type": "json"
4708       }
4709     ],
4710     "name": "acceptMessage",
4711     "group": "Chat_Websites",
4712     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4713     "version": "0.0.0",
4714     "filename": "server/api/chatMessage/index.js",
4715     "groupTitle": "Chat_Websites"
4716   },
4717   {
4718     "type": "post",
4719     "url": "/api/chat/websites/{id}/canned_answers",
4720     "title": "Creates new canned answer",
4721     "examples": [
4722       {
4723         "title": "Example usage:",
4724         "content": "curl https://{domain}/api/chat/websites/{id}/canned_answers -d '{\"name\": \"vip\"}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
4725         "type": "json"
4726       }
4727     ],
4728     "name": "addAnswer",
4729     "group": "Chat_Websites",
4730     "parameter": {
4731       "fields": {
4732         "Body": [
4733           {
4734             "group": "Body",
4735             "type": "String",
4736             "optional": false,
4737             "field": "key",
4738             "description": ""
4739           },
4740           {
4741             "group": "Body",
4742             "type": "Text",
4743             "optional": false,
4744             "field": "value",
4745             "description": ""
4746           },
4747           {
4748             "group": "Body",
4749             "type": "String",
4750             "optional": true,
4751             "field": "description",
4752             "description": ""
4753           },
4754           {
4755             "group": "Body",
4756             "type": "Virtual",
4757             "optional": true,
4758             "field": "name",
4759             "description": ""
4760           }
4761         ]
4762       }
4763     },
4764     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4765     "version": "0.0.0",
4766     "filename": "server/api/chatWebsite/index.js",
4767     "groupTitle": "Chat_Websites"
4768   },
4769   {
4770     "type": "post",
4771     "url": "/api/chat/websites/{id}/applications",
4772     "title": "Creates new applications",
4773     "examples": [
4774       {
4775         "title": "Example usage:",
4776         "content": "curl https://{domain}/api/chat/websites/{id}/applications -d '[{\"app\": \"queue\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
4777         "type": "json"
4778       }
4779     ],
4780     "name": "addApplications",
4781     "group": "Chat_Websites",
4782     "parameter": {
4783       "fields": {
4784         "Body": [
4785           {
4786             "group": "Body",
4787             "type": "Integer",
4788             "optional": false,
4789             "field": "priority",
4790             "description": ""
4791           },
4792           {
4793             "group": "Body",
4794             "type": "String",
4795             "optional": false,
4796             "field": "app",
4797             "description": ""
4798           },
4799           {
4800             "group": "Body",
4801             "type": "Text",
4802             "optional": true,
4803             "field": "appdata",
4804             "description": ""
4805           },
4806           {
4807             "group": "Body",
4808             "type": "String",
4809             "optional": true,
4810             "field": "description",
4811             "description": ""
4812           },
4813           {
4814             "group": "Body",
4815             "type": "String",
4816             "optional": true,
4817             "field": "interval",
4818             "description": ""
4819           }
4820         ]
4821       }
4822     },
4823     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4824     "version": "0.0.0",
4825     "filename": "server/api/chatWebsite/index.js",
4826     "groupTitle": "Chat_Websites"
4827   },
4828   {
4829     "type": "post",
4830     "url": "/api/chat/websites/{id}/avatar",
4831     "title": "Add avatar",
4832     "examples": [
4833       {
4834         "title": "Example usage:",
4835         "content": "curl https://{domain}/api/chat/websites/{id}/avatar -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
4836         "type": "json"
4837       }
4838     ],
4839     "name": "addAvatar",
4840     "group": "Chat_Websites",
4841     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4842     "version": "0.0.0",
4843     "filename": "server/api/chatWebsite/index.js",
4844     "groupTitle": "Chat_Websites"
4845   },
4846   {
4847     "type": "post",
4848     "url": "/api/chat/websites/{id}/customer_avatar",
4849     "title": "Add customer avatar",
4850     "examples": [
4851       {
4852         "title": "Example usage:",
4853         "content": "curl https://{domain}/api/chat/websites/{id}/customer_avatar -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
4854         "type": "json"
4855       }
4856     ],
4857     "name": "addCustomerAvatar",
4858     "group": "Chat_Websites",
4859     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4860     "version": "0.0.0",
4861     "filename": "server/api/chatWebsite/index.js",
4862     "groupTitle": "Chat_Websites"
4863   },
4864   {
4865     "type": "post",
4866     "url": "/api/chat/websites/{id}/dispositions",
4867     "title": "Creates new disposition",
4868     "examples": [
4869       {
4870         "title": "Example usage:",
4871         "content": "curl https://{domain}/api/chat/websites/{id}/dispositions -d '{\"name\": \"vip\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
4872         "type": "json"
4873       }
4874     ],
4875     "name": "addDisposition",
4876     "group": "Chat_Websites",
4877     "parameter": {
4878       "fields": {
4879         "Body": [
4880           {
4881             "group": "Body",
4882             "type": "String",
4883             "optional": false,
4884             "field": "name",
4885             "description": ""
4886           },
4887           {
4888             "group": "Body",
4889             "type": "String",
4890             "allowedValues": [
4891               "\"first\"",
4892               "\"second\"",
4893               "\"third\""
4894             ],
4895             "optional": false,
4896             "field": "level",
4897             "description": ""
4898           },
4899           {
4900             "group": "Body",
4901             "type": "String",
4902             "optional": true,
4903             "field": "description",
4904             "description": ""
4905           }
4906         ]
4907       }
4908     },
4909     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4910     "version": "0.0.0",
4911     "filename": "server/api/chatWebsite/index.js",
4912     "groupTitle": "Chat_Websites"
4913   },
4914   {
4915     "type": "post",
4916     "url": "/api/chat/accounts/{id}/interactions",
4917     "title": "Creates new interactions",
4918     "examples": [
4919       {
4920         "title": "Example usage:",
4921         "content": "curl https://{domain}/api/chat/websites/{id}/interactions -d '{\"host\": \"host\", \"username\": \"username\", \"password\": \"password\", \"...\": \"...\"}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
4922         "type": "json"
4923       }
4924     ],
4925     "name": "addInteraction",
4926     "group": "Chat_Websites",
4927     "parameter": {
4928       "fields": {
4929         "Body": [
4930           {
4931             "group": "Body",
4932             "type": "Boolean",
4933             "optional": true,
4934             "field": "closed",
4935             "description": ""
4936           },
4937           {
4938             "group": "Body",
4939             "type": "Integer",
4940             "optional": true,
4941             "field": "ratingValue",
4942             "description": ""
4943           },
4944           {
4945             "group": "Body",
4946             "type": "String",
4947             "allowedValues": [
4948               "\"star\"",
4949               "\"thumb\""
4950             ],
4951             "optional": true,
4952             "field": "ratingType",
4953             "description": ""
4954           },
4955           {
4956             "group": "Body",
4957             "type": "Text",
4958             "optional": true,
4959             "field": "ratingMessage",
4960             "description": ""
4961           },
4962           {
4963             "group": "Body",
4964             "type": "Text",
4965             "optional": true,
4966             "field": "pathTranscript",
4967             "description": ""
4968           },
4969           {
4970             "group": "Body",
4971             "type": "String",
4972             "optional": true,
4973             "field": "mailTranscript",
4974             "description": ""
4975           },
4976           {
4977             "group": "Body",
4978             "type": "String",
4979             "optional": true,
4980             "field": "closedAt",
4981             "description": ""
4982           },
4983           {
4984             "group": "Body",
4985             "type": "String",
4986             "optional": true,
4987             "field": "disposition",
4988             "description": ""
4989           },
4990           {
4991             "group": "Body",
4992             "type": "String",
4993             "optional": true,
4994             "field": "secondDisposition",
4995             "description": ""
4996           },
4997           {
4998             "group": "Body",
4999             "type": "String",
5000             "optional": true,
5001             "field": "thirdDisposition",
5002             "description": ""
5003           },
5004           {
5005             "group": "Body",
5006             "type": "String",
5007             "optional": true,
5008             "field": "note",
5009             "description": ""
5010           },
5011           {
5012             "group": "Body",
5013             "type": "String",
5014             "optional": true,
5015             "field": "browserName",
5016             "description": ""
5017           },
5018           {
5019             "group": "Body",
5020             "type": "String",
5021             "optional": true,
5022             "field": "browserVersion",
5023             "description": ""
5024           },
5025           {
5026             "group": "Body",
5027             "type": "String",
5028             "optional": true,
5029             "field": "osName",
5030             "description": ""
5031           },
5032           {
5033             "group": "Body",
5034             "type": "String",
5035             "optional": true,
5036             "field": "osVersion",
5037             "description": ""
5038           },
5039           {
5040             "group": "Body",
5041             "type": "String",
5042             "optional": true,
5043             "field": "deviceModel",
5044             "description": ""
5045           },
5046           {
5047             "group": "Body",
5048             "type": "String",
5049             "optional": true,
5050             "field": "deviceVendor",
5051             "description": ""
5052           },
5053           {
5054             "group": "Body",
5055             "type": "String",
5056             "optional": true,
5057             "field": "deviceType",
5058             "description": ""
5059           },
5060           {
5061             "group": "Body",
5062             "type": "Text",
5063             "optional": true,
5064             "field": "referer",
5065             "description": ""
5066           },
5067           {
5068             "group": "Body",
5069             "type": "String",
5070             "optional": true,
5071             "field": "customerIp",
5072             "description": ""
5073           },
5074           {
5075             "group": "Body",
5076             "type": "Text",
5077             "optional": true,
5078             "field": "formData",
5079             "description": ""
5080           },
5081           {
5082             "group": "Body",
5083             "type": "String",
5084             "optional": true,
5085             "field": "read1stAt",
5086             "description": ""
5087           },
5088           {
5089             "group": "Body",
5090             "type": "String",
5091             "optional": true,
5092             "field": "lastMsgAt",
5093             "description": ""
5094           },
5095           {
5096             "group": "Body",
5097             "type": "String",
5098             "allowedValues": [
5099               "\"in\"",
5100               "\"out\""
5101             ],
5102             "optional": false,
5103             "field": "lastMsgDirection",
5104             "description": ""
5105           },
5106           {
5107             "group": "Body",
5108             "type": "String",
5109             "optional": true,
5110             "field": "closeReason",
5111             "description": ""
5112           },
5113           {
5114             "group": "Body",
5115             "type": "String",
5116             "optional": true,
5117             "field": "customerPort",
5118             "description": ""
5119           },
5120           {
5121             "group": "Body",
5122             "type": "Text",
5123             "optional": true,
5124             "field": "vidaooSessionId",
5125             "description": ""
5126           },
5127           {
5128             "group": "Body",
5129             "type": "Boolean",
5130             "optional": true,
5131             "field": "autoreplyExecuted",
5132             "description": ""
5133           }
5134         ]
5135       }
5136     },
5137     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5138     "version": "0.0.0",
5139     "filename": "server/api/chatWebsite/index.js",
5140     "groupTitle": "Chat_Websites"
5141   },
5142   {
5143     "type": "post",
5144     "url": "/api/chat/websites/{id}/logo",
5145     "title": "Add logo",
5146     "examples": [
5147       {
5148         "title": "Example usage:",
5149         "content": "curl https://{domain}/api/chat/websites/{id}/logo -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
5150         "type": "json"
5151       }
5152     ],
5153     "name": "addLogo",
5154     "group": "Chat_Websites",
5155     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5156     "version": "0.0.0",
5157     "filename": "server/api/chatWebsite/index.js",
5158     "groupTitle": "Chat_Websites"
5159   },
5160   {
5161     "type": "post",
5162     "url": "/api/chat/websites/{id}/proactive_actions",
5163     "title": "Creates new Proactive Actions",
5164     "examples": [
5165       {
5166         "title": "Example usage:",
5167         "content": "curl https://{domain}/api/chat/websites/{id}/proactive_actions -d '[{\"name\": \"Satisfied\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
5168         "type": "json"
5169       }
5170     ],
5171     "name": "addProactiveActions",
5172     "group": "Chat_Websites",
5173     "parameter": {
5174       "fields": {
5175         "Body": [
5176           {
5177             "group": "Body",
5178             "type": "String",
5179             "optional": false,
5180             "field": "name",
5181             "description": ""
5182           },
5183           {
5184             "group": "Body",
5185             "type": "String",
5186             "allowedValues": [
5187               "\"mouseOver\"",
5188               "\"timeout\""
5189             ],
5190             "optional": true,
5191             "field": "type",
5192             "description": ""
5193           },
5194           {
5195             "group": "Body",
5196             "type": "String",
5197             "optional": true,
5198             "field": "selector",
5199             "description": ""
5200           },
5201           {
5202             "group": "Body",
5203             "type": "Integer",
5204             "optional": true,
5205             "field": "timeout",
5206             "description": ""
5207           }
5208         ]
5209       }
5210     },
5211     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5212     "version": "0.0.0",
5213     "filename": "server/api/chatWebsite/index.js",
5214     "groupTitle": "Chat_Websites"
5215   },
5216   {
5217     "type": "post",
5218     "url": "/api/chat/websites/{id}/system_avatar",
5219     "title": "Add system avatar",
5220     "examples": [
5221       {
5222         "title": "Example usage:",
5223         "content": "curl https://{domain}/api/chat/websites/{id}/system_avatar -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
5224         "type": "json"
5225       }
5226     ],
5227     "name": "addSystemAvatar",
5228     "group": "Chat_Websites",
5229     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5230     "version": "0.0.0",
5231     "filename": "server/api/chatWebsite/index.js",
5232     "groupTitle": "Chat_Websites"
5233   },
5234   {
5235     "type": "get",
5236     "url": "/api/chat/websites/{id}/canned_answers",
5237     "title": "Gets account canned answers",
5238     "examples": [
5239       {
5240         "title": "Example usage:",
5241         "content": "curl https://{domain}/api/chat/websites/{id}/canned_answers -v -u {name}:{password} -X GET",
5242         "type": "json"
5243       }
5244     ],
5245     "name": "getAnswers",
5246     "group": "Chat_Websites",
5247     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5248     "version": "0.0.0",
5249     "filename": "server/api/chatWebsite/index.js",
5250     "groupTitle": "Chat_Websites"
5251   },
5252   {
5253     "type": "get",
5254     "url": "/api/chat/websites/{id}/applications",
5255     "title": "Gets Website Applications",
5256     "examples": [
5257       {
5258         "title": "Example usage:",
5259         "content": "curl https://{domain}/api/chat/websites/{id}/applications -v -u {name}:{password} -X GET",
5260         "type": "json"
5261       }
5262     ],
5263     "name": "getApplications",
5264     "group": "Chat_Websites",
5265     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5266     "version": "0.0.0",
5267     "filename": "server/api/chatWebsite/index.js",
5268     "groupTitle": "Chat_Websites"
5269   },
5270   {
5271     "type": "get",
5272     "url": "/api/chat/websites/{id}/avatar",
5273     "title": "Get avatar",
5274     "examples": [
5275       {
5276         "title": "Example usage:",
5277         "content": "curl https://{domain}/api/chat/websites/{id}/avatar -v -u {name}:{password} -X GET",
5278         "type": "json"
5279       }
5280     ],
5281     "name": "getAvatar",
5282     "group": "Chat_Websites",
5283     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5284     "version": "0.0.0",
5285     "filename": "server/api/chatWebsite/index.js",
5286     "groupTitle": "Chat_Websites"
5287   },
5288   {
5289     "type": "get",
5290     "url": "/api/chat/websites/{id}/customer_avatar",
5291     "title": "Get Customer Avatar",
5292     "examples": [
5293       {
5294         "title": "Example usage:",
5295         "content": "curl https://{domain}/api/chat/websites/{id}/customer_avatar -v -u {name}:{password} -X GET",
5296         "type": "json"
5297       }
5298     ],
5299     "name": "getCustomerAvatar",
5300     "group": "Chat_Websites",
5301     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5302     "version": "0.0.0",
5303     "filename": "server/api/chatWebsite/index.js",
5304     "groupTitle": "Chat_Websites"
5305   },
5306   {
5307     "type": "get",
5308     "url": "/api/chat/websites/{id}/dispositions",
5309     "title": "Gets account dispositions",
5310     "examples": [
5311       {
5312         "title": "Example usage:",
5313         "content": "curl https://{domain}/api/chat/websites/{id}/dispositions -v -u {name}:{password} -X GET",
5314         "type": "json"
5315       }
5316     ],
5317     "name": "getDispositions",
5318     "group": "Chat_Websites",
5319     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5320     "version": "0.0.0",
5321     "filename": "server/api/chatWebsite/index.js",
5322     "groupTitle": "Chat_Websites"
5323   },
5324   {
5325     "type": "get",
5326     "url": "/api/chat/websites/{id}/fields",
5327     "title": "Gets Website Fields",
5328     "examples": [
5329       {
5330         "title": "Example usage:",
5331         "content": "curl https://{domain}/api/chat/websites/{id}/fields -v -u {name}:{password} -X GET",
5332         "type": "json"
5333       }
5334     ],
5335     "name": "getFields",
5336     "group": "Chat_Websites",
5337     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5338     "version": "0.0.0",
5339     "filename": "server/api/chatWebsite/index.js",
5340     "groupTitle": "Chat_Websites"
5341   },
5342   {
5343     "type": "get",
5344     "url": "/api/chat/websites/{id}/interactions",
5345     "title": "Gets Website Interactions",
5346     "examples": [
5347       {
5348         "title": "Example usage:",
5349         "content": "curl https://{domain}/api/chat/websites/{id}/interactions -v -u {name}:{password} -X GET",
5350         "type": "json"
5351       }
5352     ],
5353     "name": "getInteraction",
5354     "group": "Chat_Websites",
5355     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5356     "version": "0.0.0",
5357     "filename": "server/api/chatWebsite/index.js",
5358     "groupTitle": "Chat_Websites"
5359   },
5360   {
5361     "type": "get",
5362     "url": "/api/chat/websites/{id}/logo",
5363     "title": "Get logo",
5364     "examples": [
5365       {
5366         "title": "Example usage:",
5367         "content": "curl https://{domain}/api/chat/websites/{id}/logo -v -u {name}:{password} -X GET",
5368         "type": "json"
5369       }
5370     ],
5371     "name": "getLogo",
5372     "group": "Chat_Websites",
5373     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5374     "version": "0.0.0",
5375     "filename": "server/api/chatWebsite/index.js",
5376     "groupTitle": "Chat_Websites"
5377   },
5378   {
5379     "type": "get",
5380     "url": "/api/chat/websites/{id}/offline_messages",
5381     "title": "Gets Website Offline Messages",
5382     "examples": [
5383       {
5384         "title": "Example usage:",
5385         "content": "curl https://{domain}/api/chat/websites/{id}/offline_messages -v -u {name}:{password} -X GET",
5386         "type": "json"
5387       }
5388     ],
5389     "name": "getOfflineMessages",
5390     "group": "Chat_Websites",
5391     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5392     "version": "0.0.0",
5393     "filename": "server/api/chatWebsite/index.js",
5394     "groupTitle": "Chat_Websites"
5395   },
5396   {
5397     "type": "get",
5398     "url": "/api/chat/websites/{id}/proactive_actions",
5399     "title": "Gets Website Proactive Actions",
5400     "examples": [
5401       {
5402         "title": "Example usage:",
5403         "content": "curl https://{domain}/api/chat/websites/{id}/proactive_actions -v -u {name}:{password} -X GET",
5404         "type": "json"
5405       }
5406     ],
5407     "name": "getProactiveActions",
5408     "group": "Chat_Websites",
5409     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5410     "version": "0.0.0",
5411     "filename": "server/api/chatWebsite/index.js",
5412     "groupTitle": "Chat_Websites"
5413   },
5414   {
5415     "type": "get",
5416     "url": "/api/chat/websites/{id}/snippet",
5417     "title": "Gets Website Snippet",
5418     "examples": [
5419       {
5420         "title": "Example usage:",
5421         "content": "curl https://{domain}/api/chat/websites/{id}/snippet -v -u {name}:{password} -X GET",
5422         "type": "json"
5423       }
5424     ],
5425     "name": "getSnippet",
5426     "group": "Chat_Websites",
5427     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5428     "version": "0.0.0",
5429     "filename": "server/api/chatWebsite/index.js",
5430     "groupTitle": "Chat_Websites"
5431   },
5432   {
5433     "type": "get",
5434     "url": "/api/chat/websites/{id}/system_avatar",
5435     "title": "Get System Avatar",
5436     "examples": [
5437       {
5438         "title": "Example usage:",
5439         "content": "curl https://{domain}/api/chat/websites/{id}/system_avatar -v -u {name}:{password} -X GET",
5440         "type": "json"
5441       }
5442     ],
5443     "name": "getSystemAvatar",
5444     "group": "Chat_Websites",
5445     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5446     "version": "0.0.0",
5447     "filename": "server/api/chatWebsite/index.js",
5448     "groupTitle": "Chat_Websites"
5449   },
5450   {
5451     "type": "post",
5452     "url": "/api/chat/websites/{id}/notify",
5453     "title": "Notify new message",
5454     "examples": [
5455       {
5456         "title": "Example usage:",
5457         "content": "curl https://{domain}/api/chat/websites/{id}/notify -d '{\"body\": \"hello world\", \"...\": \"...\"}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
5458         "type": "json"
5459       }
5460     ],
5461     "name": "notify",
5462     "group": "Chat_Websites",
5463     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <p>This API is used to create a new chat message to be sent to the system.</p>",
5464     "version": "0.0.0",
5465     "filename": "server/api/chatWebsite/index.js",
5466     "groupTitle": "Chat_Websites"
5467   },
5468   {
5469     "type": "post",
5470     "url": "/api/chat/websites/{id}/offline",
5471     "title": "Offline message",
5472     "examples": [
5473       {
5474         "title": "Example usage:",
5475         "content": "curl https://{domain}/api/chat/websites/{id}/offline -d '{\"body\": \"hello world\", \"...\": \"...\"}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
5476         "type": "json"
5477       }
5478     ],
5479     "name": "offline",
5480     "group": "Chat_Websites",
5481     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5482     "version": "0.0.0",
5483     "filename": "server/api/chatWebsite/index.js",
5484     "groupTitle": "Chat_Websites"
5485   },
5486   {
5487     "type": "put",
5488     "url": "/api/chat/messages/{id}/reject",
5489     "title": "Rejects message",
5490     "examples": [
5491       {
5492         "title": "Example usage:",
5493         "content": "curl https://{domain}/api/chat/messages/{id}/reject \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
5494         "type": "json"
5495       }
5496     ],
5497     "name": "rejectMessage",
5498     "group": "Chat_Websites",
5499     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5500     "version": "0.0.0",
5501     "filename": "server/api/chatMessage/index.js",
5502     "groupTitle": "Chat_Websites"
5503   },
5504   {
5505     "type": "put",
5506     "url": "/api/chat/websites/{id}",
5507     "title": "Update an existing Website",
5508     "examples": [
5509       {
5510         "title": "Example usage:",
5511         "content": "curl https://{domain}/api/chat/websites/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
5512         "type": "json"
5513       }
5514     ],
5515     "name": "updateWebsites",
5516     "group": "Chat_Websites",
5517     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5518     "version": "0.0.0",
5519     "filename": "server/api/chatWebsite/index.js",
5520     "groupTitle": "Chat_Websites"
5521   },
5522   {
5523     "type": "post",
5524     "url": "/api/cloudProviders",
5525     "title": "Creates a new CloudProvider",
5526     "examples": [
5527       {
5528         "title": "Example usage:",
5529         "content": "curl https://{domain}/api/cloudProviders -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
5530         "type": "json"
5531       }
5532     ],
5533     "name": "CreateCloudProviders",
5534     "group": "CloudProviders",
5535     "parameter": {
5536       "fields": {
5537         "Body": [
5538           {
5539             "group": "Body",
5540             "type": "String",
5541             "optional": false,
5542             "field": "name",
5543             "description": ""
5544           },
5545           {
5546             "group": "Body",
5547             "type": "String",
5548             "allowedValues": [
5549               "\"AmazonAWS\"",
5550               "\"Google\""
5551             ],
5552             "optional": false,
5553             "field": "service",
5554             "description": ""
5555           },
5556           {
5557             "group": "Body",
5558             "type": "String",
5559             "optional": true,
5560             "field": "data1",
5561             "description": ""
5562           },
5563           {
5564             "group": "Body",
5565             "type": "String",
5566             "optional": true,
5567             "field": "data2",
5568             "description": ""
5569           }
5570         ]
5571       }
5572     },
5573     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5574     "version": "0.0.0",
5575     "filename": "server/api/cloudProvider/index.js",
5576     "groupTitle": "CloudProviders"
5577   },
5578   {
5579     "type": "delete",
5580     "url": "/api/cloudProviders/{id}",
5581     "title": "Deletes a CloudProvider",
5582     "examples": [
5583       {
5584         "title": "Example usage:",
5585         "content": "curl https://{domain}/api/cloudProviders/{id} -v -u {name}:{password} -X DELETE",
5586         "type": "json"
5587       }
5588     ],
5589     "name": "DeleteCloudProviders",
5590     "group": "CloudProviders",
5591     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5592     "version": "0.0.0",
5593     "filename": "server/api/cloudProvider/index.js",
5594     "groupTitle": "CloudProviders"
5595   },
5596   {
5597     "type": "get",
5598     "url": "/api/cloudProviders",
5599     "title": "Gets a list of CloudProviders",
5600     "examples": [
5601       {
5602         "title": "Example usage:",
5603         "content": "curl https://{domain}/api/cloudProviders -v -u {name}:{password}",
5604         "type": "json"
5605       }
5606     ],
5607     "name": "GetCloudProviders",
5608     "group": "CloudProviders",
5609     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/cloudProviders?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/cloudProviders?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/cloudProviders?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/cloudProviders?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/cloudProviders?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
5610     "version": "0.0.0",
5611     "filename": "server/api/cloudProvider/index.js",
5612     "groupTitle": "CloudProviders"
5613   },
5614   {
5615     "type": "get",
5616     "url": "/api/cloudProviders/oauth2/microsoft/authorize/{id}",
5617     "title": "Generates the Microsoft Identity platform authorization url",
5618     "examples": [
5619       {
5620         "title": "Example usage:",
5621         "content": "curl https://{domain}/api/cloudProviders/oauth2/microsoft/authorize/{id} -v -u {name}:{password}",
5622         "type": "json"
5623       }
5624     ],
5625     "name": "Oauth2MicrosoftAuthorize",
5626     "group": "CloudProviders",
5627     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5628     "version": "0.0.0",
5629     "filename": "server/api/cloudProvider/index.js",
5630     "groupTitle": "CloudProviders"
5631   },
5632   {
5633     "type": "post",
5634     "url": "/api/cloudProviders/oauth2/microsoft/callback",
5635     "title": "Receives an authorization code from Microsoft Identity platform",
5636     "name": "Oauth2MicrosoftCallback",
5637     "group": "CloudProviders",
5638     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5639     "version": "0.0.0",
5640     "filename": "server/api/cloudProvider/index.js",
5641     "groupTitle": "CloudProviders"
5642   },
5643   {
5644     "type": "get",
5645     "url": "/api/cloudProviders/{id}",
5646     "title": "Gets a single CloudProvider",
5647     "examples": [
5648       {
5649         "title": "Example usage:",
5650         "content": "curl https://{domain}/api/cloudProviders/{id} -v -u {name}:{password}",
5651         "type": "json"
5652       }
5653     ],
5654     "name": "ShowCloudProviders",
5655     "group": "CloudProviders",
5656     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5657     "version": "0.0.0",
5658     "filename": "server/api/cloudProvider/index.js",
5659     "groupTitle": "CloudProviders"
5660   },
5661   {
5662     "type": "put",
5663     "url": "/api/cloudProviders/{id}",
5664     "title": "Update an existing CloudProvider",
5665     "examples": [
5666       {
5667         "title": "Example usage:",
5668         "content": "curl https://{domain}/api/cloudProviders/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
5669         "type": "json"
5670       }
5671     ],
5672     "name": "updateCloudProviders",
5673     "group": "CloudProviders",
5674     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5675     "version": "0.0.0",
5676     "filename": "server/api/cloudProvider/index.js",
5677     "groupTitle": "CloudProviders"
5678   },
5679   {
5680     "type": "post",
5681     "url": "/api/cm_contact_has_items",
5682     "title": "Creates a new CmContactHasItem",
5683     "examples": [
5684       {
5685         "title": "Example usage:",
5686         "content": "curl https://{domain}/api/cm_contact_has_items -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
5687         "type": "json"
5688       }
5689     ],
5690     "name": "CreateCmContactHasItems",
5691     "group": "CmContactHasItems",
5692     "parameter": {
5693       "fields": {
5694         "Body": [
5695           {
5696             "group": "Body",
5697             "type": "Integer",
5698             "optional": true,
5699             "field": "CmContactId",
5700             "description": ""
5701           },
5702           {
5703             "group": "Body",
5704             "type": "String",
5705             "optional": true,
5706             "field": "item",
5707             "description": ""
5708           },
5709           {
5710             "group": "Body",
5711             "type": "Integer",
5712             "optional": true,
5713             "field": "ItemTypeId",
5714             "description": ""
5715           },
5716           {
5717             "group": "Body",
5718             "type": "String",
5719             "optional": true,
5720             "field": "ItemClass",
5721             "description": ""
5722           },
5723           {
5724             "group": "Body",
5725             "type": "Integer",
5726             "optional": true,
5727             "field": "OrderBy",
5728             "description": ""
5729           },
5730           {
5731             "group": "Body",
5732             "type": "String",
5733             "optional": true,
5734             "field": "description",
5735             "description": ""
5736           }
5737         ]
5738       }
5739     },
5740     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5741     "version": "0.0.0",
5742     "filename": "server/api/cmContactHasItem/index.js",
5743     "groupTitle": "CmContactHasItems"
5744   },
5745   {
5746     "type": "delete",
5747     "url": "/api/cm_contact_has_items/{id}",
5748     "title": "Deletes a CmContactHasItem",
5749     "examples": [
5750       {
5751         "title": "Example usage:",
5752         "content": "curl https://{domain}/api/cm_contact_has_items/{id} -v -u {name}:{password} -X DELETE",
5753         "type": "json"
5754       }
5755     ],
5756     "name": "DeleteCmContactHasItems",
5757     "group": "CmContactHasItems",
5758     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5759     "version": "0.0.0",
5760     "filename": "server/api/cmContactHasItem/index.js",
5761     "groupTitle": "CmContactHasItems"
5762   },
5763   {
5764     "type": "get",
5765     "url": "/api/cm_contact_has_items",
5766     "title": "Gets a list of CmContactHasItems",
5767     "examples": [
5768       {
5769         "title": "Example usage:",
5770         "content": "curl https://{domain}/api/cm_contact_has_items -v -u {name}:{password}",
5771         "type": "json"
5772       }
5773     ],
5774     "name": "GetCmContactHasItems",
5775     "group": "CmContactHasItems",
5776     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/cm_contact_has_items?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/cm_contact_has_items?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/cm_contact_has_items?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/cm_contact_has_items?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/cm_contact_has_items?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
5777     "version": "0.0.0",
5778     "filename": "server/api/cmContactHasItem/index.js",
5779     "groupTitle": "CmContactHasItems"
5780   },
5781   {
5782     "type": "get",
5783     "url": "/api/cm_contact_has_items/{id}",
5784     "title": "Gets a single CmContactHasItem",
5785     "examples": [
5786       {
5787         "title": "Example usage:",
5788         "content": "curl https://{domain}/api/cm_contact_has_items/{id} -v -u {name}:{password}",
5789         "type": "json"
5790       }
5791     ],
5792     "name": "ShowCmContactHasItems",
5793     "group": "CmContactHasItems",
5794     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5795     "version": "0.0.0",
5796     "filename": "server/api/cmContactHasItem/index.js",
5797     "groupTitle": "CmContactHasItems"
5798   },
5799   {
5800     "type": "put",
5801     "url": "/api/cm_contact_has_items/{id}",
5802     "title": "Update an existing CmContactHasItem",
5803     "examples": [
5804       {
5805         "title": "Example usage:",
5806         "content": "curl https://{domain}/api/cm_contact_has_items/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
5807         "type": "json"
5808       }
5809     ],
5810     "name": "updateCmContactHasItems",
5811     "group": "CmContactHasItems",
5812     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5813     "version": "0.0.0",
5814     "filename": "server/api/cmContactHasItem/index.js",
5815     "groupTitle": "CmContactHasItems"
5816   },
5817   {
5818     "type": "post",
5819     "url": "/api/cm_hopper_additional_phones",
5820     "title": "Creates a new CmHopperAdditionalPhone",
5821     "examples": [
5822       {
5823         "title": "Example usage:",
5824         "content": "curl https://{domain}/api/cm_hopper_additional_phones -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
5825         "type": "json"
5826       }
5827     ],
5828     "name": "CreateCmHopperAdditionalPhones",
5829     "group": "CmHopperAdditionalPhones",
5830     "parameter": {
5831       "fields": {
5832         "Body": [
5833           {
5834             "group": "Body",
5835             "type": "Integer",
5836             "optional": true,
5837             "field": "CmHopperId",
5838             "description": ""
5839           },
5840           {
5841             "group": "Body",
5842             "type": "String",
5843             "optional": false,
5844             "field": "phone",
5845             "description": ""
5846           },
5847           {
5848             "group": "Body",
5849             "type": "Integer",
5850             "optional": true,
5851             "field": "OrderBy",
5852             "description": ""
5853           },
5854           {
5855             "group": "Body",
5856             "type": "String",
5857             "optional": true,
5858             "field": "scheduledat",
5859             "description": ""
5860           },
5861           {
5862             "group": "Body",
5863             "type": "Integer",
5864             "optional": true,
5865             "field": "countbusyretry",
5866             "description": ""
5867           },
5868           {
5869             "group": "Body",
5870             "type": "Integer",
5871             "optional": true,
5872             "field": "countcongestionretry",
5873             "description": ""
5874           },
5875           {
5876             "group": "Body",
5877             "type": "Integer",
5878             "optional": true,
5879             "field": "countnoanswerretry",
5880             "description": ""
5881           },
5882           {
5883             "group": "Body",
5884             "type": "Integer",
5885             "optional": true,
5886             "field": "countnosuchnumberretry",
5887             "description": ""
5888           },
5889           {
5890             "group": "Body",
5891             "type": "Integer",
5892             "optional": true,
5893             "field": "countdropretry",
5894             "description": ""
5895           },
5896           {
5897             "group": "Body",
5898             "type": "Integer",
5899             "optional": true,
5900             "field": "countabandonedretry",
5901             "description": ""
5902           },
5903           {
5904             "group": "Body",
5905             "type": "Integer",
5906             "optional": true,
5907             "field": "countmachineretry",
5908             "description": ""
5909           },
5910           {
5911             "group": "Body",
5912             "type": "Integer",
5913             "optional": true,
5914             "field": "countagentrejectretry",
5915             "description": ""
5916           }
5917         ]
5918       }
5919     },
5920     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5921     "version": "0.0.0",
5922     "filename": "server/api/cmHopperAdditionalPhone/index.js",
5923     "groupTitle": "CmHopperAdditionalPhones"
5924   },
5925   {
5926     "type": "delete",
5927     "url": "/api/cm_hopper_additional_phones/{id}",
5928     "title": "Deletes a CmHopperAdditionalPhone",
5929     "examples": [
5930       {
5931         "title": "Example usage:",
5932         "content": "curl https://{domain}/api/cm_hopper_additional_phones/{id} -v -u {name}:{password} -X DELETE",
5933         "type": "json"
5934       }
5935     ],
5936     "name": "DeleteCmHopperAdditionalPhones",
5937     "group": "CmHopperAdditionalPhones",
5938     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5939     "version": "0.0.0",
5940     "filename": "server/api/cmHopperAdditionalPhone/index.js",
5941     "groupTitle": "CmHopperAdditionalPhones"
5942   },
5943   {
5944     "type": "get",
5945     "url": "/api/cm_hopper_additional_phones",
5946     "title": "Gets a list of CmHopperAdditionalPhones",
5947     "examples": [
5948       {
5949         "title": "Example usage:",
5950         "content": "curl https://{domain}/api/cm_hopper_additional_phones -v -u {name}:{password}",
5951         "type": "json"
5952       }
5953     ],
5954     "name": "GetCmHopperAdditionalPhones",
5955     "group": "CmHopperAdditionalPhones",
5956     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/cm_hopper_additional_phones?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/cm_hopper_additional_phones?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/cm_hopper_additional_phones?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/cm_hopper_additional_phones?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/cm_hopper_additional_phones?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
5957     "version": "0.0.0",
5958     "filename": "server/api/cmHopperAdditionalPhone/index.js",
5959     "groupTitle": "CmHopperAdditionalPhones"
5960   },
5961   {
5962     "type": "get",
5963     "url": "/api/cm_hopper_additional_phones/{id}",
5964     "title": "Gets a single CmHopperAdditionalPhone",
5965     "examples": [
5966       {
5967         "title": "Example usage:",
5968         "content": "curl https://{domain}/api/cm_hopper_additional_phones/{id} -v -u {name}:{password}",
5969         "type": "json"
5970       }
5971     ],
5972     "name": "ShowCmHopperAdditionalPhones",
5973     "group": "CmHopperAdditionalPhones",
5974     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5975     "version": "0.0.0",
5976     "filename": "server/api/cmHopperAdditionalPhone/index.js",
5977     "groupTitle": "CmHopperAdditionalPhones"
5978   },
5979   {
5980     "type": "put",
5981     "url": "/api/cm_hopper_additional_phones/{id}",
5982     "title": "Update an existing CmHopperAdditionalPhone",
5983     "examples": [
5984       {
5985         "title": "Example usage:",
5986         "content": "curl https://{domain}/api/cm_hopper_additional_phones/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
5987         "type": "json"
5988       }
5989     ],
5990     "name": "updateCmHopperAdditionalPhones",
5991     "group": "CmHopperAdditionalPhones",
5992     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5993     "version": "0.0.0",
5994     "filename": "server/api/cmHopperAdditionalPhone/index.js",
5995     "groupTitle": "CmHopperAdditionalPhones"
5996   },
5997   {
5998     "type": "post",
5999     "url": "/api/cm/companies",
6000     "title": "Creates a new Company",
6001     "examples": [
6002       {
6003         "title": "Example usage:",
6004         "content": "curl https://{domain}/api/cm/companies -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
6005         "type": "json"
6006       }
6007     ],
6008     "name": "CreateCompanies",
6009     "group": "Cm_Companies",
6010     "parameter": {
6011       "fields": {
6012         "Body": [
6013           {
6014             "group": "Body",
6015             "type": "String",
6016             "optional": false,
6017             "field": "name",
6018             "description": ""
6019           },
6020           {
6021             "group": "Body",
6022             "type": "String",
6023             "optional": true,
6024             "field": "vat",
6025             "description": ""
6026           },
6027           {
6028             "group": "Body",
6029             "type": "String",
6030             "optional": true,
6031             "field": "companyId",
6032             "description": ""
6033           },
6034           {
6035             "group": "Body",
6036             "type": "String",
6037             "optional": true,
6038             "field": "website",
6039             "description": ""
6040           },
6041           {
6042             "group": "Body",
6043             "type": "String",
6044             "optional": true,
6045             "field": "phone",
6046             "description": ""
6047           },
6048           {
6049             "group": "Body",
6050             "type": "String",
6051             "optional": true,
6052             "field": "fax",
6053             "description": ""
6054           },
6055           {
6056             "group": "Body",
6057             "type": "String",
6058             "optional": true,
6059             "field": "type",
6060             "description": ""
6061           },
6062           {
6063             "group": "Body",
6064             "type": "String",
6065             "optional": true,
6066             "field": "street",
6067             "description": ""
6068           },
6069           {
6070             "group": "Body",
6071             "type": "String",
6072             "optional": true,
6073             "field": "postalCode",
6074             "description": ""
6075           },
6076           {
6077             "group": "Body",
6078             "type": "String",
6079             "optional": true,
6080             "field": "city",
6081             "description": ""
6082           },
6083           {
6084             "group": "Body",
6085             "type": "String",
6086             "optional": true,
6087             "field": "country",
6088             "description": ""
6089           },
6090           {
6091             "group": "Body",
6092             "type": "String",
6093             "optional": true,
6094             "field": "email",
6095             "description": ""
6096           },
6097           {
6098             "group": "Body",
6099             "type": "String",
6100             "optional": true,
6101             "field": "emailDomain",
6102             "description": ""
6103           },
6104           {
6105             "group": "Body",
6106             "type": "String",
6107             "optional": true,
6108             "field": "sStreet",
6109             "description": ""
6110           },
6111           {
6112             "group": "Body",
6113             "type": "String",
6114             "optional": true,
6115             "field": "sPostalCode",
6116             "description": ""
6117           },
6118           {
6119             "group": "Body",
6120             "type": "String",
6121             "optional": true,
6122             "field": "sCity",
6123             "description": ""
6124           },
6125           {
6126             "group": "Body",
6127             "type": "String",
6128             "optional": true,
6129             "field": "sCountry",
6130             "description": ""
6131           },
6132           {
6133             "group": "Body",
6134             "type": "String",
6135             "optional": true,
6136             "field": "description",
6137             "description": ""
6138           }
6139         ]
6140       }
6141     },
6142     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6143     "version": "0.0.0",
6144     "filename": "server/api/cmCompany/index.js",
6145     "groupTitle": "Cm_Companies"
6146   },
6147   {
6148     "type": "delete",
6149     "url": "/api/cm/companies/{id}",
6150     "title": "Deletes a Company",
6151     "examples": [
6152       {
6153         "title": "Example usage:",
6154         "content": "curl https://{domain}/api/cm/companies/{id} -v -u {name}:{password} -X DELETE",
6155         "type": "json"
6156       }
6157     ],
6158     "name": "DeleteCompanies",
6159     "group": "Cm_Companies",
6160     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6161     "version": "0.0.0",
6162     "filename": "server/api/cmCompany/index.js",
6163     "groupTitle": "Cm_Companies"
6164   },
6165   {
6166     "type": "get",
6167     "url": "/api/cm/companies/describe",
6168     "title": "Gets table info about Companies",
6169     "examples": [
6170       {
6171         "title": "Example usage:",
6172         "content": "curl https://{domain}/api/cm/companies/describe -v -u {name}:{password}",
6173         "type": "json"
6174       }
6175     ],
6176     "name": "DescribeCompanies",
6177     "group": "Cm_Companies",
6178     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6179     "version": "0.0.0",
6180     "filename": "server/api/cmCompany/index.js",
6181     "groupTitle": "Cm_Companies"
6182   },
6183   {
6184     "type": "get",
6185     "url": "/api/cm/companies",
6186     "title": "Gets a list of Companies",
6187     "examples": [
6188       {
6189         "title": "Example usage:",
6190         "content": "curl https://{domain}/api/cm/companies -v -u {name}:{password}",
6191         "type": "json"
6192       }
6193     ],
6194     "name": "GetCompanies",
6195     "group": "Cm_Companies",
6196     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/cm/companies?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/cm/companies?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/cm/companies?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/cm/companies?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/cm/companies?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
6197     "version": "0.0.0",
6198     "filename": "server/api/cmCompany/index.js",
6199     "groupTitle": "Cm_Companies"
6200   },
6201   {
6202     "type": "get",
6203     "url": "/api/cm/companies/{id}",
6204     "title": "Gets a single Company",
6205     "examples": [
6206       {
6207         "title": "Example usage:",
6208         "content": "curl https://{domain}/api/cm/companies/{id} -v -u {name}:{password}",
6209         "type": "json"
6210       }
6211     ],
6212     "name": "ShowCompanies",
6213     "group": "Cm_Companies",
6214     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6215     "version": "0.0.0",
6216     "filename": "server/api/cmCompany/index.js",
6217     "groupTitle": "Cm_Companies"
6218   },
6219   {
6220     "type": "post",
6221     "url": "/api/cm/companies/{id}/contacts",
6222     "title": "Creates new contacts",
6223     "examples": [
6224       {
6225         "title": "Example usage:",
6226         "content": "curl https://{domain}/api/cm/companies/{id}/contacts -d '[{\"firstName\": \"John Doe\", \"email\": \"john.doe@xcally.com\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
6227         "type": "json"
6228       }
6229     ],
6230     "name": "addContacts",
6231     "group": "Cm_Companies",
6232     "parameter": {
6233       "fields": {
6234         "Body": [
6235           {
6236             "group": "Body",
6237             "type": "String",
6238             "optional": false,
6239             "field": "firstName",
6240             "description": ""
6241           },
6242           {
6243             "group": "Body",
6244             "type": "String",
6245             "optional": true,
6246             "field": "lastName",
6247             "description": ""
6248           },
6249           {
6250             "group": "Body",
6251             "type": "String",
6252             "optional": true,
6253             "field": "street",
6254             "description": ""
6255           },
6256           {
6257             "group": "Body",
6258             "type": "String",
6259             "optional": true,
6260             "field": "postalCode",
6261             "description": ""
6262           },
6263           {
6264             "group": "Body",
6265             "type": "String",
6266             "optional": true,
6267             "field": "city",
6268             "description": ""
6269           },
6270           {
6271             "group": "Body",
6272             "type": "String",
6273             "optional": true,
6274             "field": "country",
6275             "description": ""
6276           },
6277           {
6278             "group": "Body",
6279             "type": "String",
6280             "optional": true,
6281             "field": "dateOfBirth",
6282             "description": ""
6283           },
6284           {
6285             "group": "Body",
6286             "type": "Text",
6287             "optional": true,
6288             "field": "description",
6289             "description": ""
6290           },
6291           {
6292             "group": "Body",
6293             "type": "String",
6294             "optional": true,
6295             "field": "phone",
6296             "description": ""
6297           },
6298           {
6299             "group": "Body",
6300             "type": "String",
6301             "optional": true,
6302             "field": "mobile",
6303             "description": ""
6304           },
6305           {
6306             "group": "Body",
6307             "type": "String",
6308             "optional": true,
6309             "field": "fax",
6310             "description": ""
6311           },
6312           {
6313             "group": "Body",
6314             "type": "String",
6315             "optional": true,
6316             "field": "email",
6317             "description": ""
6318           },
6319           {
6320             "group": "Body",
6321             "type": "String",
6322             "optional": true,
6323             "field": "url",
6324             "description": ""
6325           },
6326           {
6327             "group": "Body",
6328             "type": "String",
6329             "optional": true,
6330             "field": "facebook",
6331             "description": ""
6332           },
6333           {
6334             "group": "Body",
6335             "type": "String",
6336             "optional": true,
6337             "field": "fb_data",
6338             "description": ""
6339           },
6340           {
6341             "group": "Body",
6342             "type": "String",
6343             "optional": true,
6344             "field": "twitter",
6345             "description": ""
6346           },
6347           {
6348             "group": "Body",
6349             "type": "String",
6350             "optional": true,
6351             "field": "skype",
6352             "description": ""
6353           },
6354           {
6355             "group": "Body",
6356             "type": "String",
6357             "optional": true,
6358             "field": "teams",
6359             "description": ""
6360           },
6361           {
6362             "group": "Body",
6363             "type": "String",
6364             "optional": true,
6365             "field": "viber",
6366             "description": ""
6367           },
6368           {
6369             "group": "Body",
6370             "type": "String",
6371             "optional": true,
6372             "field": "line",
6373             "description": ""
6374           },
6375           {
6376             "group": "Body",
6377             "type": "String",
6378             "optional": true,
6379             "field": "wechat",
6380             "description": ""
6381           },
6382           {
6383             "group": "Body",
6384             "type": "String",
6385             "optional": true,
6386             "field": "telegram",
6387             "description": ""
6388           },
6389           {
6390             "group": "Body",
6391             "type": "Integer",
6392             "optional": true,
6393             "field": "UserId",
6394             "description": ""
6395           },
6396           {
6397             "group": "Body",
6398             "type": "Integer",
6399             "optional": true,
6400             "field": "priority",
6401             "description": ""
6402           },
6403           {
6404             "group": "Body",
6405             "type": "String",
6406             "optional": true,
6407             "field": "scheduledat",
6408             "description": ""
6409           }
6410         ]
6411       }
6412     },
6413     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6414     "version": "0.0.0",
6415     "filename": "server/api/cmCompany/index.js",
6416     "groupTitle": "Cm_Companies"
6417   },
6418   {
6419     "type": "get",
6420     "url": "/api/cm/companies/{id}/contacts",
6421     "title": "Gets List Contacts",
6422     "examples": [
6423       {
6424         "title": "Example usage:",
6425         "content": "curl https://{domain}/api/fax/companies/{id}/contacts -v -u {name}:{password} -X GET",
6426         "type": "json"
6427       }
6428     ],
6429     "name": "getContacts",
6430     "group": "Cm_Companies",
6431     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6432     "version": "0.0.0",
6433     "filename": "server/api/cmCompany/index.js",
6434     "groupTitle": "Cm_Companies"
6435   },
6436   {
6437     "type": "put",
6438     "url": "/api/cm/companies/{id}",
6439     "title": "Update an existing Company",
6440     "examples": [
6441       {
6442         "title": "Example usage:",
6443         "content": "curl https://{domain}/api/cm/companies/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
6444         "type": "json"
6445       }
6446     ],
6447     "name": "updateCompanies",
6448     "group": "Cm_Companies",
6449     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6450     "version": "0.0.0",
6451     "filename": "server/api/cmCompany/index.js",
6452     "groupTitle": "Cm_Companies"
6453   },
6454   {
6455     "type": "delete",
6456     "url": "/api/cm/contacts/{id}",
6457     "title": "Deletes a Contact",
6458     "examples": [
6459       {
6460         "title": "Example usage:",
6461         "content": "curl https://{domain}/api/cm/contacts/{id} -v -u {name}:{password} -X DELETE",
6462         "type": "json"
6463       }
6464     ],
6465     "name": "DeleteContacts",
6466     "group": "Cm_Contacts",
6467     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6468     "version": "0.0.0",
6469     "filename": "server/api/cmContact/index.js",
6470     "groupTitle": "Cm_Contacts"
6471   },
6472   {
6473     "type": "get",
6474     "url": "/api/cm/contacts/describe",
6475     "title": "Gets table info about Contacts",
6476     "examples": [
6477       {
6478         "title": "Example usage:",
6479         "content": "curl https://{domain}/api/cm/contacts/describe -v -u {name}:{password}",
6480         "type": "json"
6481       }
6482     ],
6483     "name": "DescribeContacts",
6484     "group": "Cm_Contacts",
6485     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6486     "version": "0.0.0",
6487     "filename": "server/api/cmContact/index.js",
6488     "groupTitle": "Cm_Contacts"
6489   },
6490   {
6491     "type": "get",
6492     "url": "/api/cm/contacts",
6493     "title": "Gets a list of Contacts",
6494     "examples": [
6495       {
6496         "title": "Example usage:",
6497         "content": "curl https://{domain}/api/cm/contacts -v -u {name}:{password}",
6498         "type": "json"
6499       }
6500     ],
6501     "name": "GetContacts",
6502     "group": "Cm_Contacts",
6503     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/cm/contacts?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/cm/contacts?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/cm/contacts?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/cm/contacts?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/cm/contacts?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
6504     "version": "0.0.0",
6505     "filename": "server/api/cmContact/index.js",
6506     "groupTitle": "Cm_Contacts"
6507   },
6508   {
6509     "type": "get",
6510     "url": "/api/cm/contacts/{id}/finals",
6511     "title": "Gets contact hopper finals",
6512     "examples": [
6513       {
6514         "title": "Example usage:",
6515         "content": "curl https://{domain}/api/cm/contacts/{id}/hopper_finals -v -u {name}:{password}  -X GET",
6516         "type": "json"
6517       }
6518     ],
6519     "name": "GetHopperFinals",
6520     "group": "Cm_Contacts",
6521     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6522     "version": "0.0.0",
6523     "filename": "server/api/cmContact/index.js",
6524     "groupTitle": "Cm_Contacts"
6525   },
6526   {
6527     "type": "get",
6528     "url": "/api/cm/contacts/{id}/hopper_histories",
6529     "title": "Gets contact hopper histories",
6530     "examples": [
6531       {
6532         "title": "Example usage:",
6533         "content": "curl https://{domain}/api/cm/contacts/{id}/hopper_histories -v -u {name}:{password} -X GET",
6534         "type": "json"
6535       }
6536     ],
6537     "name": "GetHopperHistories",
6538     "group": "Cm_Contacts",
6539     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6540     "version": "0.0.0",
6541     "filename": "server/api/cmContact/index.js",
6542     "groupTitle": "Cm_Contacts"
6543   },
6544   {
6545     "type": "get",
6546     "url": "/api/cm/contacts/{id}/hoppers",
6547     "title": "Gets contact hoppers",
6548     "examples": [
6549       {
6550         "title": "Example usage:",
6551         "content": "curl https://{domain}/api/cm/contacts/{id}/hoppers -v -u {name}:{password} -X GET",
6552         "type": "json"
6553       }
6554     ],
6555     "name": "GetHoppers",
6556     "group": "Cm_Contacts",
6557     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6558     "version": "0.0.0",
6559     "filename": "server/api/cmContact/index.js",
6560     "groupTitle": "Cm_Contacts"
6561   },
6562   {
6563     "type": "post",
6564     "url": "/api/cm/contacts/create_many",
6565     "title": "Create Contacts",
6566     "examples": [
6567       {
6568         "title": "Example usage:",
6569         "content": "curl https://{domain}/api/cm/contacts/create_many -d '[{\"firstName\": \"John\", \"lastName\": \"doe\", \"...\": \"...\"}]' -v -u {name}:{password} -X POST",
6570         "type": "json"
6571       }
6572     ],
6573     "name": "bulkCreate",
6574     "group": "Cm_Contacts",
6575     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6576     "version": "0.0.0",
6577     "filename": "server/api/cmContact/index.js",
6578     "groupTitle": "Cm_Contacts"
6579   },
6580   {
6581     "type": "post",
6582     "url": "/api/cm/contacts",
6583     "title": "Create Contact",
6584     "examples": [
6585       {
6586         "title": "Example usage:",
6587         "content": "curl https://{domain}/api/cm/contacts -d '{\"firstName\": \"John\", \"lastName\": \"doe\", \"...\": \"...\"}' -v -u {name}:{password} -X POST",
6588         "type": "json"
6589       }
6590     ],
6591     "name": "create",
6592     "group": "Cm_Contacts",
6593     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6594     "version": "0.0.0",
6595     "filename": "server/api/cmContact/index.js",
6596     "groupTitle": "Cm_Contacts"
6597   },
6598   {
6599     "type": "post",
6600     "url": "/api/cm/contacts/{id}/duplicatePhones",
6601     "title": "Sets new contact additional phones",
6602     "examples": [
6603       {
6604         "title": "Example usage:",
6605         "content": "curl https://{domain}/api/cm/contacts/{id}/duplicateAdditionalPhones -d '{\"phones\": [p1,p2]}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
6606         "type": "json"
6607       }
6608     ],
6609     "name": "duplicateAdditionalPhones",
6610     "group": "Cm_Contacts",
6611     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6612     "version": "0.0.0",
6613     "filename": "server/api/cmContact/index.js",
6614     "groupTitle": "Cm_Contacts"
6615   },
6616   {
6617     "type": "get",
6618     "url": "/api/cm/contacts/{id}/phones",
6619     "title": "Gets contact phones",
6620     "examples": [
6621       {
6622         "title": "Example usage:",
6623         "content": "curl https://{domain}/api/cm/contacts/{id}/phones -v -u {name}:{password} -X GET",
6624         "type": "json"
6625       }
6626     ],
6627     "name": "getAdditionalPhones",
6628     "group": "Cm_Contacts",
6629     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6630     "version": "0.0.0",
6631     "filename": "server/api/cmContact/index.js",
6632     "groupTitle": "Cm_Contacts"
6633   },
6634   {
6635     "type": "get",
6636     "url": "/api/cm/contacts/{id}/journey",
6637     "title": "Gets customer journey",
6638     "examples": [
6639       {
6640         "title": "Example usage:",
6641         "content": "curl https://{domain}/api/cm/contacts/{id}/journey -v -u {name}:{password}  -X GET",
6642         "type": "json"
6643       }
6644     ],
6645     "name": "getJourney",
6646     "group": "Cm_Contacts",
6647     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6648     "version": "0.0.0",
6649     "filename": "server/api/cmContact/index.js",
6650     "groupTitle": "Cm_Contacts"
6651   },
6652   {
6653     "type": "get",
6654     "url": "/api/cm/contacts/{id}/jscripty_sessions",
6655     "title": "Gets contact hopper blacks",
6656     "examples": [
6657       {
6658         "title": "Example usage:",
6659         "content": "curl https://{domain}/api/cm/contacts/{id}/hopper_black -v -u {name}:{password}  -X GET",
6660         "type": "json"
6661       }
6662     ],
6663     "name": "getJscriptySessions",
6664     "group": "Cm_Contacts",
6665     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6666     "version": "0.0.0",
6667     "filename": "server/api/cmContact/index.js",
6668     "groupTitle": "Cm_Contacts"
6669   },
6670   {
6671     "type": "get",
6672     "url": "/api/cm/contacts/{id}/tags",
6673     "title": "Gets configurations tags",
6674     "examples": [
6675       {
6676         "title": "Example usage:",
6677         "content": "curl https://{domain}/api/cm/contacts/{id}/tags -v -u {name}:{password} -X GET",
6678         "type": "json"
6679       }
6680     ],
6681     "name": "getTags",
6682     "group": "Cm_Contacts",
6683     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6684     "version": "0.0.0",
6685     "filename": "server/api/cmContact/index.js",
6686     "groupTitle": "Cm_Contacts"
6687   },
6688   {
6689     "type": "post",
6690     "url": "/api/cm/contacts/merge",
6691     "title": "Merge Contact",
6692     "examples": [
6693       {
6694         "title": "Example usage:",
6695         "content": "curl https://{domain}/api/cm/contacts/merge -d '{\"from\": 1, \"to\": 2}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
6696         "type": "json"
6697       }
6698     ],
6699     "name": "merge",
6700     "group": "Cm_Contacts",
6701     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6702     "version": "0.0.0",
6703     "filename": "server/api/cmContact/index.js",
6704     "groupTitle": "Cm_Contacts"
6705   },
6706   {
6707     "type": "post",
6708     "url": "/api/cm/contacts/{id}/rescheduleAdditionalPhones",
6709     "title": "Sets new contact additional phones",
6710     "examples": [
6711       {
6712         "title": "Example usage:",
6713         "content": "curl https://{domain}/api/cm/contacts/{id}/rescheduleAdditionalPhones -d '{\"phones\": [p1,p2]}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
6714         "type": "json"
6715       }
6716     ],
6717     "name": "rescheduleAdditionalPhones",
6718     "group": "Cm_Contacts",
6719     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6720     "version": "0.0.0",
6721     "filename": "server/api/cmContact/index.js",
6722     "groupTitle": "Cm_Contacts"
6723   },
6724   {
6725     "type": "post",
6726     "url": "/api/cm/contacts/{id}/phones",
6727     "title": "Sets new contact phones",
6728     "examples": [
6729       {
6730         "title": "Example usage:",
6731         "content": "curl https://{domain}/api/cm/contacts/{id}/phones -d '{\"phones\": [p1,p2]}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
6732         "type": "json"
6733       }
6734     ],
6735     "name": "setAdditionalPhones",
6736     "group": "Cm_Contacts",
6737     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6738     "version": "0.0.0",
6739     "filename": "server/api/cmContact/index.js",
6740     "groupTitle": "Cm_Contacts"
6741   },
6742   {
6743     "type": "post",
6744     "url": "/api/cm/contacts/{id}/tags",
6745     "title": "Sets new tags",
6746     "examples": [
6747       {
6748         "title": "Example usage:",
6749         "content": "curl https://{domain}/api/cm/contacts/{id}/tags -d '{\"ids\": [1,12]}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
6750         "type": "json"
6751       }
6752     ],
6753     "name": "setTags",
6754     "group": "Cm_Contacts",
6755     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6756     "version": "0.0.0",
6757     "filename": "server/api/cmContact/index.js",
6758     "groupTitle": "Cm_Contacts"
6759   },
6760   {
6761     "type": "get",
6762     "url": "/api/cm/contacts/{id}",
6763     "title": "Gets a single Contact",
6764     "examples": [
6765       {
6766         "title": "Example usage:",
6767         "content": "curl https://{domain}/api/cm/contacts/{id} -v -u {name}:{password} -X GET",
6768         "type": "json"
6769       }
6770     ],
6771     "name": "show",
6772     "group": "Cm_Contacts",
6773     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6774     "version": "0.0.0",
6775     "filename": "server/api/cmContact/index.js",
6776     "groupTitle": "Cm_Contacts"
6777   },
6778   {
6779     "type": "put",
6780     "url": "/api/cm/contacts/{id}",
6781     "title": "Update a single Contact",
6782     "examples": [
6783       {
6784         "title": "Example usage:",
6785         "content": "curl https://{domain}/api/cm/contacts/{id} -d '{\"firstName\": \"John\", \"lastName\": \"Doe\"}' -v -u {name}:{password} -X PUT",
6786         "type": "json"
6787       }
6788     ],
6789     "name": "update",
6790     "group": "Cm_Contacts",
6791     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6792     "version": "0.0.0",
6793     "filename": "server/api/cmContact/index.js",
6794     "groupTitle": "Cm_Contacts"
6795   },
6796   {
6797     "type": "delete",
6798     "url": "/api/cm/custom_fields/{id}",
6799     "title": "Deletes a Custom Field",
6800     "examples": [
6801       {
6802         "title": "Example usage:",
6803         "content": "curl https://{domain}/api/cm/custom_fields/{id} -v -u {name}:{password} -X DELETE",
6804         "type": "json"
6805       }
6806     ],
6807     "name": "DeleteCustom_Fields",
6808     "group": "Cm_Custom_Fields",
6809     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6810     "version": "0.0.0",
6811     "filename": "server/api/cmCustomField/index.js",
6812     "groupTitle": "Cm_Custom_Fields"
6813   },
6814   {
6815     "type": "get",
6816     "url": "/api/cm/custom_fields",
6817     "title": "Gets a list of Custom Fields",
6818     "examples": [
6819       {
6820         "title": "Example usage:",
6821         "content": "curl https://{domain}/api/cm/custom_fields -v -u {name}:{password}",
6822         "type": "json"
6823       }
6824     ],
6825     "name": "GetCustom_Fields",
6826     "group": "Cm_Custom_Fields",
6827     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/cm/custom_fields?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/cm/custom_fields?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/cm/custom_fields?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/cm/custom_fields?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/cm/custom_fields?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
6828     "version": "0.0.0",
6829     "filename": "server/api/cmCustomField/index.js",
6830     "groupTitle": "Cm_Custom_Fields"
6831   },
6832   {
6833     "type": "get",
6834     "url": "/api/cm/custom_fields/{id}",
6835     "title": "Gets a single Custom Field",
6836     "examples": [
6837       {
6838         "title": "Example usage:",
6839         "content": "curl https://{domain}/api/cm/custom_fields/{id} -v -u {name}:{password}",
6840         "type": "json"
6841       }
6842     ],
6843     "name": "ShowCustom_Fields",
6844     "group": "Cm_Custom_Fields",
6845     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6846     "version": "0.0.0",
6847     "filename": "server/api/cmCustomField/index.js",
6848     "groupTitle": "Cm_Custom_Fields"
6849   },
6850   {
6851     "type": "put",
6852     "url": "/api/cm/custom_fields/{id}",
6853     "title": "Update an existing Custom Field",
6854     "examples": [
6855       {
6856         "title": "Example usage:",
6857         "content": "curl https://{domain}/api/cm/custom_fields/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
6858         "type": "json"
6859       }
6860     ],
6861     "name": "updateCustom_Fields",
6862     "group": "Cm_Custom_Fields",
6863     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6864     "version": "0.0.0",
6865     "filename": "server/api/cmCustomField/index.js",
6866     "groupTitle": "Cm_Custom_Fields"
6867   },
6868   {
6869     "type": "post",
6870     "url": "/api/cm/hopper",
6871     "title": "Creates a new Hopper",
6872     "examples": [
6873       {
6874         "title": "Example usage:",
6875         "content": "curl https://{domain}/api/cm/hopper -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
6876         "type": "json"
6877       }
6878     ],
6879     "name": "CreateHopper",
6880     "group": "Cm_Hopper",
6881     "parameter": {
6882       "fields": {
6883         "Body": [
6884           {
6885             "group": "Body",
6886             "type": "String",
6887             "optional": false,
6888             "field": "phone",
6889             "description": ""
6890           },
6891           {
6892             "group": "Body",
6893             "type": "Boolean",
6894             "optional": true,
6895             "field": "active",
6896             "description": ""
6897           },
6898           {
6899             "group": "Body",
6900             "type": "String",
6901             "optional": true,
6902             "field": "scheduledat",
6903             "description": ""
6904           },
6905           {
6906             "group": "Body",
6907             "type": "Integer",
6908             "optional": true,
6909             "field": "countbusyretry",
6910             "description": ""
6911           },
6912           {
6913             "group": "Body",
6914             "type": "Integer",
6915             "optional": true,
6916             "field": "countcongestionretry",
6917             "description": ""
6918           },
6919           {
6920             "group": "Body",
6921             "type": "Integer",
6922             "optional": true,
6923             "field": "countnoanswerretry",
6924             "description": ""
6925           },
6926           {
6927             "group": "Body",
6928             "type": "Boolean",
6929             "optional": true,
6930             "field": "callback",
6931             "description": ""
6932           },
6933           {
6934             "group": "Body",
6935             "type": "String",
6936             "optional": true,
6937             "field": "callbackuniqueid",
6938             "description": ""
6939           },
6940           {
6941             "group": "Body",
6942             "type": "String",
6943             "optional": true,
6944             "field": "callbackat",
6945             "description": ""
6946           },
6947           {
6948             "group": "Body",
6949             "type": "Integer",
6950             "optional": true,
6951             "field": "priority",
6952             "description": ""
6953           },
6954           {
6955             "group": "Body",
6956             "type": "Boolean",
6957             "optional": true,
6958             "field": "recallme",
6959             "description": ""
6960           },
6961           {
6962             "group": "Body",
6963             "type": "Integer",
6964             "optional": true,
6965             "field": "ContactId",
6966             "description": ""
6967           },
6968           {
6969             "group": "Body",
6970             "type": "Integer",
6971             "optional": true,
6972             "field": "ListId",
6973             "description": ""
6974           },
6975           {
6976             "group": "Body",
6977             "type": "Integer",
6978             "optional": true,
6979             "field": "UserId",
6980             "description": ""
6981           },
6982           {
6983             "group": "Body",
6984             "type": "Integer",
6985             "optional": true,
6986             "field": "VoiceQueueId",
6987             "description": ""
6988           },
6989           {
6990             "group": "Body",
6991             "type": "Integer",
6992             "optional": true,
6993             "field": "CampaignId",
6994             "description": ""
6995           },
6996           {
6997             "group": "Body",
6998             "type": "Integer",
6999             "optional": true,
7000             "field": "countnosuchnumberretry",
7001             "description": ""
7002           },
7003           {
7004             "group": "Body",
7005             "type": "Integer",
7006             "optional": true,
7007             "field": "countdropretry",
7008             "description": ""
7009           },
7010           {
7011             "group": "Body",
7012             "type": "Integer",
7013             "optional": true,
7014             "field": "countabandonedretry",
7015             "description": ""
7016           },
7017           {
7018             "group": "Body",
7019             "type": "Integer",
7020             "optional": true,
7021             "field": "countmachineretry",
7022             "description": ""
7023           },
7024           {
7025             "group": "Body",
7026             "type": "Integer",
7027             "optional": true,
7028             "field": "countagentrejectretry",
7029             "description": ""
7030           },
7031           {
7032             "group": "Body",
7033             "type": "Integer",
7034             "optional": true,
7035             "field": "OrderBy",
7036             "description": ""
7037           },
7038           {
7039             "group": "Body",
7040             "type": "String",
7041             "optional": true,
7042             "field": "dialTimezone",
7043             "description": ""
7044           }
7045         ]
7046       }
7047     },
7048     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7049     "version": "0.0.0",
7050     "filename": "server/api/cmHopper/index.js",
7051     "groupTitle": "Cm_Hopper"
7052   },
7053   {
7054     "type": "get",
7055     "url": "/api/cm/hopper/describe",
7056     "title": "Gets table info about Hopper",
7057     "examples": [
7058       {
7059         "title": "Example usage:",
7060         "content": "curl https://{domain}/api/cm/hopper/describe -v -u {name}:{password}",
7061         "type": "json"
7062       }
7063     ],
7064     "name": "DescribeHopper",
7065     "group": "Cm_Hopper",
7066     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7067     "version": "0.0.0",
7068     "filename": "server/api/cmHopper/index.js",
7069     "groupTitle": "Cm_Hopper"
7070   },
7071   {
7072     "type": "get",
7073     "url": "/api/cm/hopper",
7074     "title": "Gets a list of Hopper",
7075     "examples": [
7076       {
7077         "title": "Example usage:",
7078         "content": "curl https://{domain}/api/cm/hopper -v -u {name}:{password}",
7079         "type": "json"
7080       }
7081     ],
7082     "name": "GetHopper",
7083     "group": "Cm_Hopper",
7084     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/cm/hopper?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/cm/hopper?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/cm/hopper?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/cm/hopper?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/cm/hopper?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
7085     "version": "0.0.0",
7086     "filename": "server/api/cmHopper/index.js",
7087     "groupTitle": "Cm_Hopper"
7088   },
7089   {
7090     "type": "get",
7091     "url": "/api/cm/hopper/{id}",
7092     "title": "Gets a single Hopper",
7093     "examples": [
7094       {
7095         "title": "Example usage:",
7096         "content": "curl https://{domain}/api/cm/hopper/{id} -v -u {name}:{password}",
7097         "type": "json"
7098       }
7099     ],
7100     "name": "ShowHopper",
7101     "group": "Cm_Hopper",
7102     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7103     "version": "0.0.0",
7104     "filename": "server/api/cmHopper/index.js",
7105     "groupTitle": "Cm_Hopper"
7106   },
7107   {
7108     "type": "delete",
7109     "url": "/api/cm/hopper_black/{id}",
7110     "title": "Deletes a Hopper Black",
7111     "examples": [
7112       {
7113         "title": "Example usage:",
7114         "content": "curl https://{domain}/api/cm/hopper_black/{id} -v -u {name}:{password} -X DELETE",
7115         "type": "json"
7116       }
7117     ],
7118     "name": "DeleteHopper_Black",
7119     "group": "Cm_Hopper_Black",
7120     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7121     "version": "0.0.0",
7122     "filename": "server/api/cmHopperBlack/index.js",
7123     "groupTitle": "Cm_Hopper_Black"
7124   },
7125   {
7126     "type": "get",
7127     "url": "/api/cm/hopper_black/describe",
7128     "title": "Gets table info about Hopper Black",
7129     "examples": [
7130       {
7131         "title": "Example usage:",
7132         "content": "curl https://{domain}/api/cm/hopper_black/describe -v -u {name}:{password}",
7133         "type": "json"
7134       }
7135     ],
7136     "name": "DescribeHopper_Black",
7137     "group": "Cm_Hopper_Black",
7138     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7139     "version": "0.0.0",
7140     "filename": "server/api/cmHopperBlack/index.js",
7141     "groupTitle": "Cm_Hopper_Black"
7142   },
7143   {
7144     "type": "get",
7145     "url": "/api/cm/hopper_black",
7146     "title": "Gets a list of Hopper Black",
7147     "examples": [
7148       {
7149         "title": "Example usage:",
7150         "content": "curl https://{domain}/api/cm/hopper_black -v -u {name}:{password}",
7151         "type": "json"
7152       }
7153     ],
7154     "name": "GetHopper_Black",
7155     "group": "Cm_Hopper_Black",
7156     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/cm/hopper_black?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/cm/hopper_black?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/cm/hopper_black?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/cm/hopper_black?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/cm/hopper_black?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
7157     "version": "0.0.0",
7158     "filename": "server/api/cmHopperBlack/index.js",
7159     "groupTitle": "Cm_Hopper_Black"
7160   },
7161   {
7162     "type": "get",
7163     "url": "/api/cm/hopper_black/{id}",
7164     "title": "Gets a single Hopper Black",
7165     "examples": [
7166       {
7167         "title": "Example usage:",
7168         "content": "curl https://{domain}/api/cm/hopper_black/{id} -v -u {name}:{password}",
7169         "type": "json"
7170       }
7171     ],
7172     "name": "ShowHopper_Black",
7173     "group": "Cm_Hopper_Black",
7174     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7175     "version": "0.0.0",
7176     "filename": "server/api/cmHopperBlack/index.js",
7177     "groupTitle": "Cm_Hopper_Black"
7178   },
7179   {
7180     "type": "put",
7181     "url": "/api/cm/hopper_black/{id}",
7182     "title": "Update an existing Hopper Black",
7183     "examples": [
7184       {
7185         "title": "Example usage:",
7186         "content": "curl https://{domain}/api/cm/hopper_black/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
7187         "type": "json"
7188       }
7189     ],
7190     "name": "updateHopper_Black",
7191     "group": "Cm_Hopper_Black",
7192     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7193     "version": "0.0.0",
7194     "filename": "server/api/cmHopperBlack/index.js",
7195     "groupTitle": "Cm_Hopper_Black"
7196   },
7197   {
7198     "type": "post",
7199     "url": "/api/cm/hopper_final/checkContactHopper",
7200     "title": "Check if contact is in hopper",
7201     "examples": [
7202       {
7203         "title": "Example usage:",
7204         "content": "curl https://{domain}/api/hopper_final/checkContactHopper -d '{\"VoiceQueueId\": \"VoiceQueueId\", \"CampaignId\": \"CampaignId\", \"ContactId\": \"ContactId\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
7205         "type": "json"
7206       }
7207     ],
7208     "name": "/checkContactHopper",
7209     "group": "Cm_Hopper_Final",
7210     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7211     "version": "0.0.0",
7212     "filename": "server/api/cmHopperFinal/index.js",
7213     "groupTitle": "Cm_Hopper_Final"
7214   },
7215   {
7216     "type": "get",
7217     "url": "/api/cm/hopper_final/describe",
7218     "title": "Gets table info about HopperFinal",
7219     "examples": [
7220       {
7221         "title": "Example usage:",
7222         "content": "curl https://{domain}/api/cm/hopper_final/describe -v -u {name}:{password}",
7223         "type": "json"
7224       }
7225     ],
7226     "name": "DescribeHopperFinal",
7227     "group": "Cm_Hopper_Final",
7228     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7229     "version": "0.0.0",
7230     "filename": "server/api/cmHopperFinal/index.js",
7231     "groupTitle": "Cm_Hopper_Final"
7232   },
7233   {
7234     "type": "get",
7235     "url": "/api/cm/hopper_final",
7236     "title": "Gets a list of HopperFinal",
7237     "examples": [
7238       {
7239         "title": "Example usage:",
7240         "content": "curl https://{domain}/api/cm/hopper_final -v -u {name}:{password}",
7241         "type": "json"
7242       }
7243     ],
7244     "name": "GetHopperFinal",
7245     "group": "Cm_Hopper_Final",
7246     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/cm/hopper_final?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/cm/hopper_final?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/cm/hopper_final?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/cm/hopper_final?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/cm/hopper_final?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
7247     "version": "0.0.0",
7248     "filename": "server/api/cmHopperFinal/index.js",
7249     "groupTitle": "Cm_Hopper_Final"
7250   },
7251   {
7252     "type": "get",
7253     "url": "/api/cm/hopper_final/{id}",
7254     "title": "Gets a single HopperFinal",
7255     "examples": [
7256       {
7257         "title": "Example usage:",
7258         "content": "curl https://{domain}/api/cm/hopper_final/{id} -v -u {name}:{password}",
7259         "type": "json"
7260       }
7261     ],
7262     "name": "ShowHopperFinal",
7263     "group": "Cm_Hopper_Final",
7264     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7265     "version": "0.0.0",
7266     "filename": "server/api/cmHopperFinal/index.js",
7267     "groupTitle": "Cm_Hopper_Final"
7268   },
7269   {
7270     "type": "get",
7271     "url": "/api/cm/hopper_final/campaign/countAttributes/{id}",
7272     "title": "Return number contacts for attributes",
7273     "examples": [
7274       {
7275         "title": "Example usage:",
7276         "content": "curl https://{domain}/api/hopper_final/campaign/countAttributes/{id} -d '{\"disposition\": \"OK\"}' -v -u {name}:{password} -X GET",
7277         "type": "json"
7278       }
7279     ],
7280     "name": "countContactsIvrCampaignHopperFinal",
7281     "group": "Cm_Hopper_Final",
7282     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7283     "version": "0.0.0",
7284     "filename": "server/api/cmHopperFinal/index.js",
7285     "groupTitle": "Cm_Hopper_Final"
7286   },
7287   {
7288     "type": "get",
7289     "url": "/api/cm/hopper_final/voice/queue/countAttributes/{id}",
7290     "title": "Return number contacts for attributes",
7291     "examples": [
7292       {
7293         "title": "Example usage:",
7294         "content": "curl https://{domain}/api/hopper_final/voice/queue/countAttributes/{id} -d '{\"disposition\": \"OK\"}' -v -u {name}:{password} -X GET",
7295         "type": "json"
7296       }
7297     ],
7298     "name": "countContactsQueueCampaignHopperFinal",
7299     "group": "Cm_Hopper_Final",
7300     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7301     "version": "0.0.0",
7302     "filename": "server/api/cmHopperFinal/index.js",
7303     "groupTitle": "Cm_Hopper_Final"
7304   },
7305   {
7306     "type": "post",
7307     "url": "/api/cm/hopper_final/campaign/{id}",
7308     "title": "Move contacts in hopper",
7309     "examples": [
7310       {
7311         "title": "Example usage:",
7312         "content": "curl https://{domain}/api/hopper_final/campaign/moveContacts/{id} -d '{\"state\": \"state\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
7313         "type": "json"
7314       }
7315     ],
7316     "name": "moveContactsIvrCampaignHopperFinal",
7317     "group": "Cm_Hopper_Final",
7318     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7319     "version": "0.0.0",
7320     "filename": "server/api/cmHopperFinal/index.js",
7321     "groupTitle": "Cm_Hopper_Final"
7322   },
7323   {
7324     "type": "post",
7325     "url": "/api/cm/hopper_final/voice/queue/{id}",
7326     "title": "Move contacts in hopper",
7327     "examples": [
7328       {
7329         "title": "Example usage:",
7330         "content": "curl https://{domain}/api/hopper_final/voice/queue/moveContacts/{id} -d '{\"state\": \"state\"}' -H 'Content-Type: application/json' -v -u {name}:{password}",
7331         "type": "json"
7332       }
7333     ],
7334     "name": "moveContactsQueueCampaignHopperFinal",
7335     "group": "Cm_Hopper_Final",
7336     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7337     "version": "0.0.0",
7338     "filename": "server/api/cmHopperFinal/index.js",
7339     "groupTitle": "Cm_Hopper_Final"
7340   },
7341   {
7342     "type": "put",
7343     "url": "/api/cm/hopper_final/{id}",
7344     "title": "Update a single hopper final",
7345     "examples": [
7346       {
7347         "title": "Example usage:",
7348         "content": "curl https://{domain}/api/hopper_final/{id} -d '{\"disposition\": \"OK\"}' -v -u {name}:{password} -X PUT",
7349         "type": "json"
7350       }
7351     ],
7352     "name": "update",
7353     "group": "Cm_Hopper_Final",
7354     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7355     "version": "0.0.0",
7356     "filename": "server/api/cmHopperFinal/index.js",
7357     "groupTitle": "Cm_Hopper_Final"
7358   },
7359   {
7360     "type": "post",
7361     "url": "/api/cm/hopper_history",
7362     "title": "Creates a new HopperHistory",
7363     "examples": [
7364       {
7365         "title": "Example usage:",
7366         "content": "curl https://{domain}/api/cm/hopper_history -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
7367         "type": "json"
7368       }
7369     ],
7370     "name": "CreateHopperHistory",
7371     "group": "Cm_Hopper_History",
7372     "parameter": {
7373       "fields": {
7374         "Body": [
7375           {
7376             "group": "Body",
7377             "type": "Integer",
7378             "optional": true,
7379             "field": "state",
7380             "description": ""
7381           },
7382           {
7383             "group": "Body",
7384             "type": "String",
7385             "optional": true,
7386             "field": "statedesc",
7387             "description": ""
7388           },
7389           {
7390             "group": "Body",
7391             "type": "String",
7392             "optional": true,
7393             "field": "scheduledat",
7394             "description": ""
7395           },
7396           {
7397             "group": "Body",
7398             "type": "Integer",
7399             "optional": true,
7400             "field": "countbusyretry",
7401             "description": ""
7402           },
7403           {
7404             "group": "Body",
7405             "type": "Integer",
7406             "optional": true,
7407             "field": "countcongestionretry",
7408             "description": ""
7409           },
7410           {
7411             "group": "Body",
7412             "type": "Integer",
7413             "optional": true,
7414             "field": "countnoanswerretry",
7415             "description": ""
7416           },
7417           {
7418             "group": "Body",
7419             "type": "Integer",
7420             "optional": true,
7421             "field": "countglobal",
7422             "description": ""
7423           },
7424           {
7425             "group": "Body",
7426             "type": "String",
7427             "optional": true,
7428             "field": "uniqueid",
7429             "description": ""
7430           },
7431           {
7432             "group": "Body",
7433             "type": "String",
7434             "optional": true,
7435             "field": "originatecalleridnum",
7436             "description": ""
7437           },
7438           {
7439             "group": "Body",
7440             "type": "String",
7441             "optional": true,
7442             "field": "originatecalleridname",
7443             "description": ""
7444           },
7445           {
7446             "group": "Body",
7447             "type": "String",
7448             "optional": true,
7449             "field": "calleridnum",
7450             "description": ""
7451           },
7452           {
7453             "group": "Body",
7454             "type": "String",
7455             "optional": true,
7456             "field": "calleridname",
7457             "description": ""
7458           },
7459           {
7460             "group": "Body",
7461             "type": "String",
7462             "optional": true,
7463             "field": "starttime",
7464             "description": ""
7465           },
7466           {
7467             "group": "Body",
7468             "type": "String",
7469             "optional": true,
7470             "field": "responsetime",
7471             "description": ""
7472           },
7473           {
7474             "group": "Body",
7475             "type": "String",
7476             "optional": true,
7477             "field": "answertime",
7478             "description": ""
7479           },
7480           {
7481             "group": "Body",
7482             "type": "String",
7483             "optional": true,
7484             "field": "droptime",
7485             "description": ""
7486           },
7487           {
7488             "group": "Body",
7489             "type": "String",
7490             "optional": true,
7491             "field": "endtime",
7492             "description": ""
7493           },
7494           {
7495             "group": "Body",
7496             "type": "Integer",
7497             "optional": true,
7498             "field": "ringtime",
7499             "description": ""
7500           },
7501           {
7502             "group": "Body",
7503             "type": "Integer",
7504             "optional": true,
7505             "field": "holdtime",
7506             "description": ""
7507           },
7508           {
7509             "group": "Body",
7510             "type": "Integer",
7511             "optional": true,
7512             "field": "talktime",
7513             "description": ""
7514           },
7515           {
7516             "group": "Body",
7517             "type": "Integer",
7518             "optional": true,
7519             "field": "followuptime",
7520             "description": ""
7521           },
7522           {
7523             "group": "Body",
7524             "type": "String",
7525             "optional": true,
7526             "field": "dropreason",
7527             "description": ""
7528           },
7529           {
7530             "group": "Body",
7531             "type": "String",
7532             "optional": true,
7533             "field": "campaign",
7534             "description": ""
7535           },
7536           {
7537             "group": "Body",
7538             "type": "String",
7539             "optional": true,
7540             "field": "campaigntype",
7541             "description": ""
7542           },
7543           {
7544             "group": "Body",
7545             "type": "String",
7546             "optional": true,
7547             "field": "membername",
7548             "description": ""
7549           },
7550           {
7551             "group": "Body",
7552             "type": "String",
7553             "optional": true,
7554             "field": "reason",
7555             "description": ""
7556           },
7557           {
7558             "group": "Body",
7559             "type": "Boolean",
7560             "optional": true,
7561             "field": "amd",
7562             "description": ""
7563           },
7564           {
7565             "group": "Body",
7566             "type": "Boolean",
7567             "optional": true,
7568             "field": "fax",
7569             "description": ""
7570           },
7571           {
7572             "group": "Body",
7573             "type": "Boolean",
7574             "optional": true,
7575             "field": "callback",
7576             "description": ""
7577           },
7578           {
7579             "group": "Body",
7580             "type": "String",
7581             "optional": true,
7582             "field": "callbackuniqueid",
7583             "description": ""
7584           },
7585           {
7586             "group": "Body",
7587             "type": "String",
7588             "optional": true,
7589             "field": "callbackat",
7590             "description": ""
7591           },
7592           {
7593             "group": "Body",
7594             "type": "Boolean",
7595             "optional": true,
7596             "field": "recallme",
7597             "description": ""
7598           },
7599           {
7600             "group": "Body",
7601             "type": "String",
7602             "optional": true,
7603             "field": "editedat",
7604             "description": ""
7605           },
7606           {
7607             "group": "Body",
7608             "type": "Boolean",
7609             "optional": true,
7610             "field": "edited",
7611             "description": ""
7612           },
7613           {
7614             "group": "Body",
7615             "type": "Integer",
7616             "optional": true,
7617             "field": "countnosuchnumberretry",
7618             "description": ""
7619           },
7620           {
7621             "group": "Body",
7622             "type": "Integer",
7623             "optional": true,
7624             "field": "countdropretry",
7625             "description": ""
7626           },
7627           {
7628             "group": "Body",
7629             "type": "Integer",
7630             "optional": true,
7631             "field": "countabandonedretry",
7632             "description": ""
7633           },
7634           {
7635             "group": "Body",
7636             "type": "Integer",
7637             "optional": true,
7638             "field": "countmachineretry",
7639             "description": ""
7640           },
7641           {
7642             "group": "Body",
7643             "type": "Integer",
7644             "optional": true,
7645             "field": "countagentrejectretry",
7646             "description": ""
7647           }
7648         ]
7649       }
7650     },
7651     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7652     "version": "0.0.0",
7653     "filename": "server/api/cmHopperHistory/index.js",
7654     "groupTitle": "Cm_Hopper_History"
7655   },
7656   {
7657     "type": "get",
7658     "url": "/api/cm/hopper_history/describe",
7659     "title": "Gets table info about HopperHistory",
7660     "examples": [
7661       {
7662         "title": "Example usage:",
7663         "content": "curl https://{domain}/api/cm/hopper_history/describe -v -u {name}:{password}",
7664         "type": "json"
7665       }
7666     ],
7667     "name": "DescribeHopperHistory",
7668     "group": "Cm_Hopper_History",
7669     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7670     "version": "0.0.0",
7671     "filename": "server/api/cmHopperHistory/index.js",
7672     "groupTitle": "Cm_Hopper_History"
7673   },
7674   {
7675     "type": "get",
7676     "url": "/api/cm/hopper_history",
7677     "title": "Gets a list of HopperHistory",
7678     "examples": [
7679       {
7680         "title": "Example usage:",
7681         "content": "curl https://{domain}/api/cm/hopper_history -v -u {name}:{password}",
7682         "type": "json"
7683       }
7684     ],
7685     "name": "GetHopperHistory",
7686     "group": "Cm_Hopper_History",
7687     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/cm/hopper_history?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/cm/hopper_history?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/cm/hopper_history?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/cm/hopper_history?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/cm/hopper_history?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
7688     "version": "0.0.0",
7689     "filename": "server/api/cmHopperHistory/index.js",
7690     "groupTitle": "Cm_Hopper_History"
7691   },
7692   {
7693     "type": "get",
7694     "url": "/api/cm/hopper_history/{id}",
7695     "title": "Gets a single HopperHistory",
7696     "examples": [
7697       {
7698         "title": "Example usage:",
7699         "content": "curl https://{domain}/api/cm/hopper_history/{id} -v -u {name}:{password}",
7700         "type": "json"
7701       }
7702     ],
7703     "name": "ShowHopperHistory",
7704     "group": "Cm_Hopper_History",
7705     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7706     "version": "0.0.0",
7707     "filename": "server/api/cmHopperHistory/index.js",
7708     "groupTitle": "Cm_Hopper_History"
7709   },
7710   {
7711     "type": "put",
7712     "url": "/api/cm/hopper_history/{id}",
7713     "title": "Update a single hopper history",
7714     "examples": [
7715       {
7716         "title": "Example usage:",
7717         "content": "curl https://{domain}/api/hopper_history/{id} -d '{\"disposition\": \"OK\"}' -v -u {name}:{password} -X PUT",
7718         "type": "json"
7719       }
7720     ],
7721     "name": "update",
7722     "group": "Cm_Hopper_History",
7723     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7724     "version": "0.0.0",
7725     "filename": "server/api/cmHopperHistory/index.js",
7726     "groupTitle": "Cm_Hopper_History"
7727   },
7728   {
7729     "type": "delete",
7730     "url": "/api/cm/hopper/{id}",
7731     "title": "Delete Hopper",
7732     "examples": [
7733       {
7734         "title": "Example usage:",
7735         "content": "curl https://{domain}/api/cm/hopper/{id} -v -u {name}:{password} -X DELETE",
7736         "type": "json"
7737       }
7738     ],
7739     "name": "destroy",
7740     "group": "Cm_Hopper",
7741     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7742     "version": "0.0.0",
7743     "filename": "server/api/cmHopper/index.js",
7744     "groupTitle": "Cm_Hopper"
7745   },
7746   {
7747     "type": "get",
7748     "url": "/api/cm/hopper/opencontacts",
7749     "title": "Gets Open Contacts",
7750     "examples": [
7751       {
7752         "title": "Example usage:",
7753         "content": "curl https://{domain}/api/cm/hopper/opencontacts -v -u {name}:{password} -X GET",
7754         "type": "json"
7755       }
7756     ],
7757     "name": "getOpenContacts",
7758     "group": "Cm_Hopper",
7759     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7760     "version": "0.0.0",
7761     "filename": "server/api/cmHopper/index.js",
7762     "groupTitle": "Cm_Hopper"
7763   },
7764   {
7765     "type": "post",
7766     "url": "/api/cm/hopper/preview",
7767     "title": "Gets Preview Dialer Contacts",
7768     "examples": [
7769       {
7770         "title": "Example usage:",
7771         "content": "curl https://{domain}/api/cm/hopper/preview -d '{\"hopperIds\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X GET",
7772         "type": "json"
7773       }
7774     ],
7775     "name": "getPreview",
7776     "group": "Cm_Hopper",
7777     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7778     "version": "0.0.0",
7779     "filename": "server/api/cmHopper/index.js",
7780     "groupTitle": "Cm_Hopper"
7781   },
7782   {
7783     "type": "get",
7784     "url": "/api/cm/hopper/{id}/previewrecall",
7785     "title": "Gets Preview Dialer Contacts for Recall",
7786     "examples": [
7787       {
7788         "title": "Example usage:",
7789         "content": "curl https://{domain}/api/cm/hopper/{id}/previewrecall \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X GET",
7790         "type": "json"
7791       }
7792     ],
7793     "name": "getPreviewRecall",
7794     "group": "Cm_Hopper",
7795     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7796     "version": "0.0.0",
7797     "filename": "server/api/cmHopper/index.js",
7798     "groupTitle": "Cm_Hopper"
7799   },
7800   {
7801     "type": "get",
7802     "url": "/api/cm/hopper/timezones",
7803     "title": "Gets TZs list",
7804     "examples": [
7805       {
7806         "title": "Example usage:",
7807         "content": "curl https://{domain}/api/cm/hopper/timezones -v -u {name}:{password} -X GET",
7808         "type": "json"
7809       }
7810     ],
7811     "name": "getTimezones",
7812     "group": "Cm_Hopper",
7813     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7814     "version": "0.0.0",
7815     "filename": "server/api/cmHopper/index.js",
7816     "groupTitle": "Cm_Hopper"
7817   },
7818   {
7819     "type": "put",
7820     "url": "/api/cm/hopper/{id}",
7821     "title": "Update an existing Hopper",
7822     "examples": [
7823       {
7824         "title": "Example usage:",
7825         "content": "curl https://{domain}/api/cm/hopper/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
7826         "type": "json"
7827       }
7828     ],
7829     "name": "updateHopper",
7830     "group": "Cm_Hopper",
7831     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7832     "version": "0.0.0",
7833     "filename": "server/api/cmHopper/index.js",
7834     "groupTitle": "Cm_Hopper"
7835   },
7836   {
7837     "type": "post",
7838     "url": "/api/cm/lists",
7839     "title": "Creates a new List",
7840     "examples": [
7841       {
7842         "title": "Example usage:",
7843         "content": "curl https://{domain}/api/cm/lists -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
7844         "type": "json"
7845       }
7846     ],
7847     "name": "CreateLists",
7848     "group": "Cm_Lists",
7849     "parameter": {
7850       "fields": {
7851         "Body": [
7852           {
7853             "group": "Body",
7854             "type": "String",
7855             "optional": false,
7856             "field": "name",
7857             "description": ""
7858           },
7859           {
7860             "group": "Body",
7861             "type": "String",
7862             "optional": true,
7863             "field": "description",
7864             "description": ""
7865           },
7866           {
7867             "group": "Body",
7868             "type": "String",
7869             "optional": true,
7870             "field": "dialPrefix",
7871             "description": ""
7872           }
7873         ]
7874       }
7875     },
7876     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7877     "version": "0.0.0",
7878     "filename": "server/api/cmList/index.js",
7879     "groupTitle": "Cm_Lists"
7880   },
7881   {
7882     "type": "delete",
7883     "url": "/api/cm/lists/{id}",
7884     "title": "Deletes a List",
7885     "examples": [
7886       {
7887         "title": "Example usage:",
7888         "content": "curl https://{domain}/api/cm/lists/{id} -v -u {name}:{password} -X DELETE",
7889         "type": "json"
7890       }
7891     ],
7892     "name": "DeleteLists",
7893     "group": "Cm_Lists",
7894     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7895     "version": "0.0.0",
7896     "filename": "server/api/cmList/index.js",
7897     "groupTitle": "Cm_Lists"
7898   },
7899   {
7900     "type": "get",
7901     "url": "/api/cm/lists/describe",
7902     "title": "Gets table info about Lists",
7903     "examples": [
7904       {
7905         "title": "Example usage:",
7906         "content": "curl https://{domain}/api/cm/lists/describe -v -u {name}:{password}",
7907         "type": "json"
7908       }
7909     ],
7910     "name": "DescribeLists",
7911     "group": "Cm_Lists",
7912     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7913     "version": "0.0.0",
7914     "filename": "server/api/cmList/index.js",
7915     "groupTitle": "Cm_Lists"
7916   },
7917   {
7918     "type": "get",
7919     "url": "/api/cm/lists/{id}/users",
7920     "title": "Gets agents from list",
7921     "examples": [
7922       {
7923         "title": "Example usage:",
7924         "content": "curl https://{domain}/api/cm/lists/{id}/users -v -u {name}:{password} -X GET",
7925         "type": "json"
7926       }
7927     ],
7928     "name": "GetAgents",
7929     "group": "Cm_Lists",
7930     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7931     "version": "0.0.0",
7932     "filename": "server/api/cmList/index.js",
7933     "groupTitle": "Cm_Lists"
7934   },
7935   {
7936     "type": "get",
7937     "url": "/api/cm/lists",
7938     "title": "Gets a list of Lists",
7939     "examples": [
7940       {
7941         "title": "Example usage:",
7942         "content": "curl https://{domain}/api/cm/lists -v -u {name}:{password}",
7943         "type": "json"
7944       }
7945     ],
7946     "name": "GetLists",
7947     "group": "Cm_Lists",
7948     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/cm/lists?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/cm/lists?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/cm/lists?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/cm/lists?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/cm/lists?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
7949     "version": "0.0.0",
7950     "filename": "server/api/cmList/index.js",
7951     "groupTitle": "Cm_Lists"
7952   },
7953   {
7954     "type": "delete",
7955     "url": "/api/cm/lists/{id}/users",
7956     "title": "Removes agents from a list",
7957     "examples": [
7958       {
7959         "title": "Example usage:",
7960         "content": "curl https://{domain}/api/cm/lists/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
7961         "type": "json"
7962       }
7963     ],
7964     "name": "RemoveAgents",
7965     "group": "Cm_Lists",
7966     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7967     "version": "0.0.0",
7968     "filename": "server/api/cmList/index.js",
7969     "groupTitle": "Cm_Lists"
7970   },
7971   {
7972     "type": "delete",
7973     "url": "/api/cm/lists/{id}/dispositions",
7974     "title": "Removes dispositions from account",
7975     "examples": [
7976       {
7977         "title": "Example usage:",
7978         "content": "curl https://{domain}/api/cm/lists/{id}/dispositions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
7979         "type": "json"
7980       }
7981     ],
7982     "name": "RemoveDispositions",
7983     "group": "Cm_Lists",
7984     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7985     "version": "0.0.0",
7986     "filename": "server/api/cmList/index.js",
7987     "groupTitle": "Cm_Lists"
7988   },
7989   {
7990     "type": "get",
7991     "url": "/api/cm/lists/{id}",
7992     "title": "Gets a single List",
7993     "examples": [
7994       {
7995         "title": "Example usage:",
7996         "content": "curl https://{domain}/api/cm/lists/{id} -v -u {name}:{password}",
7997         "type": "json"
7998       }
7999     ],
8000     "name": "ShowLists",
8001     "group": "Cm_Lists",
8002     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8003     "version": "0.0.0",
8004     "filename": "server/api/cmList/index.js",
8005     "groupTitle": "Cm_Lists"
8006   },
8007   {
8008     "type": "post",
8009     "url": "/api/cm/lists/{id}/users",
8010     "title": "Adds agents to a list",
8011     "examples": [
8012       {
8013         "title": "Example usage:",
8014         "content": "curl https://{domain}/api/cm/lists/{id}/users -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
8015         "type": "json"
8016       }
8017     ],
8018     "name": "addAgents",
8019     "group": "Cm_Lists",
8020     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8021     "version": "0.0.0",
8022     "filename": "server/api/cmList/index.js",
8023     "groupTitle": "Cm_Lists"
8024   },
8025   {
8026     "type": "post",
8027     "url": "/api/cm/lists/{id}/contacts",
8028     "title": "Creates new contacts",
8029     "examples": [
8030       {
8031         "title": "Example usage:",
8032         "content": "curl https://{domain}/api/cm/lists/{id}/contacts -d '[{\"firstName\": \"John Doe\", \"email\": \"john.doe@xcally.com\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
8033         "type": "json"
8034       }
8035     ],
8036     "name": "addContacts",
8037     "group": "Cm_Lists",
8038     "parameter": {
8039       "fields": {
8040         "Body": [
8041           {
8042             "group": "Body",
8043             "type": "String",
8044             "optional": false,
8045             "field": "firstName",
8046             "description": ""
8047           },
8048           {
8049             "group": "Body",
8050             "type": "String",
8051             "optional": true,
8052             "field": "lastName",
8053             "description": ""
8054           },
8055           {
8056             "group": "Body",
8057             "type": "String",
8058             "optional": true,
8059             "field": "street",
8060             "description": ""
8061           },
8062           {
8063             "group": "Body",
8064             "type": "String",
8065             "optional": true,
8066             "field": "postalCode",
8067             "description": ""
8068           },
8069           {
8070             "group": "Body",
8071             "type": "String",
8072             "optional": true,
8073             "field": "city",
8074             "description": ""
8075           },
8076           {
8077             "group": "Body",
8078             "type": "String",
8079             "optional": true,
8080             "field": "country",
8081             "description": ""
8082           },
8083           {
8084             "group": "Body",
8085             "type": "String",
8086             "optional": true,
8087             "field": "dateOfBirth",
8088             "description": ""
8089           },
8090           {
8091             "group": "Body",
8092             "type": "Text",
8093             "optional": true,
8094             "field": "description",
8095             "description": ""
8096           },
8097           {
8098             "group": "Body",
8099             "type": "String",
8100             "optional": true,
8101             "field": "phone",
8102             "description": ""
8103           },
8104           {
8105             "group": "Body",
8106             "type": "String",
8107             "optional": true,
8108             "field": "mobile",
8109             "description": ""
8110           },
8111           {
8112             "group": "Body",
8113             "type": "String",
8114             "optional": true,
8115             "field": "fax",
8116             "description": ""
8117           },
8118           {
8119             "group": "Body",
8120             "type": "String",
8121             "optional": true,
8122             "field": "email",
8123             "description": ""
8124           },
8125           {
8126             "group": "Body",
8127             "type": "String",
8128             "optional": true,
8129             "field": "url",
8130             "description": ""
8131           },
8132           {
8133             "group": "Body",
8134             "type": "String",
8135             "optional": true,
8136             "field": "facebook",
8137             "description": ""
8138           },
8139           {
8140             "group": "Body",
8141             "type": "String",
8142             "optional": true,
8143             "field": "fb_data",
8144             "description": ""
8145           },
8146           {
8147             "group": "Body",
8148             "type": "String",
8149             "optional": true,
8150             "field": "twitter",
8151             "description": ""
8152           },
8153           {
8154             "group": "Body",
8155             "type": "String",
8156             "optional": true,
8157             "field": "skype",
8158             "description": ""
8159           },
8160           {
8161             "group": "Body",
8162             "type": "String",
8163             "optional": true,
8164             "field": "teams",
8165             "description": ""
8166           },
8167           {
8168             "group": "Body",
8169             "type": "String",
8170             "optional": true,
8171             "field": "viber",
8172             "description": ""
8173           },
8174           {
8175             "group": "Body",
8176             "type": "String",
8177             "optional": true,
8178             "field": "line",
8179             "description": ""
8180           },
8181           {
8182             "group": "Body",
8183             "type": "String",
8184             "optional": true,
8185             "field": "wechat",
8186             "description": ""
8187           },
8188           {
8189             "group": "Body",
8190             "type": "String",
8191             "optional": true,
8192             "field": "telegram",
8193             "description": ""
8194           },
8195           {
8196             "group": "Body",
8197             "type": "Integer",
8198             "optional": true,
8199             "field": "UserId",
8200             "description": ""
8201           },
8202           {
8203             "group": "Body",
8204             "type": "Integer",
8205             "optional": true,
8206             "field": "priority",
8207             "description": ""
8208           },
8209           {
8210             "group": "Body",
8211             "type": "String",
8212             "optional": true,
8213             "field": "scheduledat",
8214             "description": ""
8215           }
8216         ]
8217       }
8218     },
8219     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8220     "version": "0.0.0",
8221     "filename": "server/api/cmList/index.js",
8222     "groupTitle": "Cm_Lists"
8223   },
8224   {
8225     "type": "post",
8226     "url": "/api/cm/lists/{id}/fields",
8227     "title": "Creates a new custom field",
8228     "examples": [
8229       {
8230         "title": "Example usage:",
8231         "content": "curl https://{domain}/api/cm/lists/{id}/fields -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
8232         "type": "json"
8233       }
8234     ],
8235     "name": "addCustomField",
8236     "group": "Cm_Lists",
8237     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8238     "version": "0.0.0",
8239     "filename": "server/api/cmList/index.js",
8240     "groupTitle": "Cm_Lists"
8241   },
8242   {
8243     "type": "post",
8244     "url": "/api/cm/lists/{id}/dispositions",
8245     "title": "Creates new disposition",
8246     "examples": [
8247       {
8248         "title": "Example usage:",
8249         "content": "curl https://{domain}/api/cm/lists/{id}/dispositions -d '{\"name\": \"vip\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
8250         "type": "json"
8251       }
8252     ],
8253     "name": "addDisposition",
8254     "group": "Cm_Lists",
8255     "parameter": {
8256       "fields": {
8257         "Body": [
8258           {
8259             "group": "Body",
8260             "type": "String",
8261             "optional": false,
8262             "field": "name",
8263             "description": ""
8264           },
8265           {
8266             "group": "Body",
8267             "type": "String",
8268             "allowedValues": [
8269               "\"first\"",
8270               "\"second\"",
8271               "\"third\""
8272             ],
8273             "optional": false,
8274             "field": "level",
8275             "description": ""
8276           },
8277           {
8278             "group": "Body",
8279             "type": "String",
8280             "optional": true,
8281             "field": "description",
8282             "description": ""
8283           }
8284         ]
8285       }
8286     },
8287     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8288     "version": "0.0.0",
8289     "filename": "server/api/cmList/index.js",
8290     "groupTitle": "Cm_Lists"
8291   },
8292   {
8293     "type": "get",
8294     "url": "/api/cm/lists/{id}/contacts",
8295     "title": "Gets List Contacts",
8296     "examples": [
8297       {
8298         "title": "Example usage:",
8299         "content": "curl https://{domain}/api/cm/lists/{id}/contacts -v -u {name}:{password} -X GET",
8300         "type": "json"
8301       }
8302     ],
8303     "name": "getContacts",
8304     "group": "Cm_Lists",
8305     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8306     "version": "0.0.0",
8307     "filename": "server/api/cmList/index.js",
8308     "groupTitle": "Cm_Lists"
8309   },
8310   {
8311     "type": "get",
8312     "url": "/api/cm/lists/{id}/fields",
8313     "title": "Gets Custom Fields",
8314     "examples": [
8315       {
8316         "title": "Example usage:",
8317         "content": "curl https://{domain}/api/cm/lists/{id}/fields -v -u {name}:{password} -X GET",
8318         "type": "json"
8319       }
8320     ],
8321     "name": "getCustomFields",
8322     "group": "Cm_Lists",
8323     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8324     "version": "0.0.0",
8325     "filename": "server/api/cmList/index.js",
8326     "groupTitle": "Cm_Lists"
8327   },
8328   {
8329     "type": "get",
8330     "url": "/api/cm/lists/{id}/dispositions",
8331     "title": "Gets list dispositions",
8332     "examples": [
8333       {
8334         "title": "Example usage:",
8335         "content": "curl https://{domain}/api/cm/lists/{id}/dispositions -v -u {name}:{password} -X GET",
8336         "type": "json"
8337       }
8338     ],
8339     "name": "getDispositions",
8340     "group": "Cm_Lists",
8341     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8342     "version": "0.0.0",
8343     "filename": "server/api/cmList/index.js",
8344     "groupTitle": "Cm_Lists"
8345   },
8346   {
8347     "type": "get",
8348     "url": "/api/cm/lists/global_fields",
8349     "title": "Gets GLOBAL Custom Fields",
8350     "examples": [
8351       {
8352         "title": "Example usage:",
8353         "content": "curl https://{domain}/api/cm/lists/global_fields -v -u {name}:{password} -X GET",
8354         "type": "json"
8355       }
8356     ],
8357     "name": "getGlobalCustomFields",
8358     "group": "Cm_Lists",
8359     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8360     "version": "0.0.0",
8361     "filename": "server/api/cmList/index.js",
8362     "groupTitle": "Cm_Lists"
8363   },
8364   {
8365     "type": "get",
8366     "url": "/api/cm/lists/{id}/contacts/csv",
8367     "title": "Gets CSV List Contacts",
8368     "examples": [
8369       {
8370         "title": "Example usage:",
8371         "content": "curl https://{domain}/api/cm/lists/{id}/contacts/csv -v -u {name}:{password} -X GET",
8372         "type": "json"
8373       }
8374     ],
8375     "name": "grunt",
8376     "group": "Cm_Lists",
8377     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8378     "version": "0.0.0",
8379     "filename": "server/api/cmList/index.js",
8380     "groupTitle": "Cm_Lists"
8381   },
8382   {
8383     "type": "put",
8384     "url": "/api/cm/lists/{id}",
8385     "title": "Update an existing List",
8386     "examples": [
8387       {
8388         "title": "Example usage:",
8389         "content": "curl https://{domain}/api/cm/lists/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
8390         "type": "json"
8391       }
8392     ],
8393     "name": "updateLists",
8394     "group": "Cm_Lists",
8395     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8396     "version": "0.0.0",
8397     "filename": "server/api/cmList/index.js",
8398     "groupTitle": "Cm_Lists"
8399   },
8400   {
8401     "type": "post",
8402     "url": "/api/cm/contacts/upload/:id",
8403     "title": "Import new contacts by csv",
8404     "examples": [
8405       {
8406         "title": "Example usage:",
8407         "content": "curl https://{domain}/api/cm/contacts/upload/:id -v -u {name}:{password} -X POST",
8408         "type": "json"
8409       }
8410     ],
8411     "name": "import",
8412     "group": "Cm_contacts",
8413     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8414     "version": "0.0.0",
8415     "filename": "server/api/cmContact/index.js",
8416     "groupTitle": "Cm_contacts"
8417   },
8418   {
8419     "type": "post",
8420     "url": "/api/cm/contacts/uploadUpdates/:id",
8421     "title": "Import existing contacts by csv",
8422     "examples": [
8423       {
8424         "title": "Example usage:",
8425         "content": "curl https://{domain}/api/cm/contacts/uploadUpdates/:id -v -u {name}:{password} -X POST",
8426         "type": "json"
8427       }
8428     ],
8429     "name": "importUpdates",
8430     "group": "Cm_contacts",
8431     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8432     "version": "0.0.0",
8433     "filename": "server/api/cmContact/index.js",
8434     "groupTitle": "Cm_contacts"
8435   },
8436   {
8437     "type": "post",
8438     "url": "/api/cm/contacts/upload",
8439     "title": "Upload csv",
8440     "examples": [
8441       {
8442         "title": "Example usage:",
8443         "content": "curl https://{domain}/api/cm/contacts/upload -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
8444         "type": "json"
8445       }
8446     ],
8447     "name": "upload",
8448     "group": "Cm_contacts",
8449     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8450     "version": "0.0.0",
8451     "filename": "server/api/cmContact/index.js",
8452     "groupTitle": "Cm_contacts"
8453   },
8454   {
8455     "type": "post",
8456     "url": "/api/cm/contacts/csv",
8457     "title": "Create new contacts by csv",
8458     "examples": [
8459       {
8460         "title": "Example usage:",
8461         "content": "curl https://{domain}/api/cm/contacts/csv -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
8462         "type": "json"
8463       }
8464     ],
8465     "name": "uploadCsv",
8466     "group": "Cm_contacts",
8467     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8468     "version": "0.0.0",
8469     "filename": "server/api/cmContact/index.js",
8470     "groupTitle": "Cm_contacts"
8471   },
8472   {
8473     "type": "delete",
8474     "url": "/api/conditions/{id}",
8475     "title": "Deletes a Condition",
8476     "examples": [
8477       {
8478         "title": "Example usage:",
8479         "content": "curl https://{domain}/api/conditions/{id} -v -u {name}:{password} -X DELETE",
8480         "type": "json"
8481       }
8482     ],
8483     "name": "DeleteConditions",
8484     "group": "Conditions",
8485     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8486     "version": "0.0.0",
8487     "filename": "server/api/condition/index.js",
8488     "groupTitle": "Conditions"
8489   },
8490   {
8491     "type": "put",
8492     "url": "/api/conditions/{id}",
8493     "title": "Update an existing Condition",
8494     "examples": [
8495       {
8496         "title": "Example usage:",
8497         "content": "curl https://{domain}/api/conditions/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
8498         "type": "json"
8499       }
8500     ],
8501     "name": "updateConditions",
8502     "group": "Conditions",
8503     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8504     "version": "0.0.0",
8505     "filename": "server/api/condition/index.js",
8506     "groupTitle": "Conditions"
8507   },
8508   {
8509     "type": "post",
8510     "url": "/api/contact_item_types",
8511     "title": "Creates a new ContactItemType",
8512     "examples": [
8513       {
8514         "title": "Example usage:",
8515         "content": "curl https://{domain}/api/contact_item_types -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
8516         "type": "json"
8517       }
8518     ],
8519     "name": "CreateContactItemTypes",
8520     "group": "ContactItemType",
8521     "parameter": {
8522       "fields": {
8523         "Body": [
8524           {
8525             "group": "Body",
8526             "type": "String",
8527             "optional": false,
8528             "field": "name",
8529             "description": ""
8530           },
8531           {
8532             "group": "Body",
8533             "type": "Integer",
8534             "optional": true,
8535             "field": "OrderBy",
8536             "description": ""
8537           },
8538           {
8539             "group": "Body",
8540             "type": "String",
8541             "optional": true,
8542             "field": "rgbBackgroundColor",
8543             "description": ""
8544           }
8545         ]
8546       }
8547     },
8548     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8549     "version": "0.0.0",
8550     "filename": "server/api/contactItemType/index.js",
8551     "groupTitle": "ContactItemType"
8552   },
8553   {
8554     "type": "delete",
8555     "url": "/api/contact_item_types/{id}",
8556     "title": "Deletes a ContactItemType",
8557     "examples": [
8558       {
8559         "title": "Example usage:",
8560         "content": "curl https://{domain}/api/contact_item_types/{id} -v -u {name}:{password} -X DELETE",
8561         "type": "json"
8562       }
8563     ],
8564     "name": "DeleteContactItemTypes",
8565     "group": "ContactItemType",
8566     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8567     "version": "0.0.0",
8568     "filename": "server/api/contactItemType/index.js",
8569     "groupTitle": "ContactItemType"
8570   },
8571   {
8572     "type": "get",
8573     "url": "/api/contact_item_types",
8574     "title": "Gets a list of ContactItemTypes",
8575     "examples": [
8576       {
8577         "title": "Example usage:",
8578         "content": "curl https://{domain}/api/contact_item_types -v -u {name}:{password}",
8579         "type": "json"
8580       }
8581     ],
8582     "name": "GetContactItemTypes",
8583     "group": "ContactItemType",
8584     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/contact_item_types?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/contact_item_types?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/contact_item_types?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/contact_item_types?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/contact_item_types?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
8585     "version": "0.0.0",
8586     "filename": "server/api/contactItemType/index.js",
8587     "groupTitle": "ContactItemType"
8588   },
8589   {
8590     "type": "get",
8591     "url": "/api/contact_item_types/{id}",
8592     "title": "Gets a single ContactItemType",
8593     "examples": [
8594       {
8595         "title": "Example usage:",
8596         "content": "curl https://{domain}/api/contact_item_types/{id} -v -u {name}:{password}",
8597         "type": "json"
8598       }
8599     ],
8600     "name": "ShowContactItemTypes",
8601     "group": "ContactItemType",
8602     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8603     "version": "0.0.0",
8604     "filename": "server/api/contactItemType/index.js",
8605     "groupTitle": "ContactItemType"
8606   },
8607   {
8608     "type": "put",
8609     "url": "/api/contact_item_types/{id}",
8610     "title": "Update an existing ContactItemType",
8611     "examples": [
8612       {
8613         "title": "Example usage:",
8614         "content": "curl https://{domain}/api/contact_item_types/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
8615         "type": "json"
8616       }
8617     ],
8618     "name": "updateContactItemTypes",
8619     "group": "ContactItemType",
8620     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8621     "version": "0.0.0",
8622     "filename": "server/api/contactItemType/index.js",
8623     "groupTitle": "ContactItemType"
8624   },
8625   {
8626     "type": "post",
8627     "url": "/api/cm/custom_field",
8628     "title": "Create a new custom field",
8629     "examples": [
8630       {
8631         "title": "Example usage:",
8632         "content": "curl https://{domain}/api/cm/custom_field  -d '{\"name\": \"mycf\", \"type\": \"text\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
8633         "type": "json"
8634       }
8635     ],
8636     "name": "CreateCustomField",
8637     "group": "Custom_Fields",
8638     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8639     "version": "0.0.0",
8640     "filename": "server/api/cmCustomField/index.js",
8641     "groupTitle": "Custom_Fields"
8642   },
8643   {
8644     "type": "post",
8645     "url": "/api/dashboards/items",
8646     "title": "Create dasboard item",
8647     "examples": [
8648       {
8649         "title": "Example usage:",
8650         "content": "curl https://{domain}/api/dashboards/items \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
8651         "type": "json"
8652       }
8653     ],
8654     "name": "Create",
8655     "group": "Dashboard_Items",
8656     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8657     "version": "0.0.0",
8658     "filename": "server/api/dashboardItem/index.js",
8659     "groupTitle": "Dashboard_Items"
8660   },
8661   {
8662     "type": "delete",
8663     "url": "/api/dashboards/items/{id}",
8664     "title": "Deletes a Dashboard Item",
8665     "examples": [
8666       {
8667         "title": "Example usage:",
8668         "content": "curl https://{domain}/api/dashboards/items/{id} -v -u {name}:{password} -X DELETE",
8669         "type": "json"
8670       }
8671     ],
8672     "name": "DeleteDashboard_Items",
8673     "group": "Dashboard_Items",
8674     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8675     "version": "0.0.0",
8676     "filename": "server/api/dashboardItem/index.js",
8677     "groupTitle": "Dashboard_Items"
8678   },
8679   {
8680     "type": "get",
8681     "url": "/api/dashboards/items/{id}",
8682     "title": "Gets a single Dashboard Item",
8683     "examples": [
8684       {
8685         "title": "Example usage:",
8686         "content": "curl https://{domain}/api/dashboards/items/{id} -v -u {name}:{password}",
8687         "type": "json"
8688       }
8689     ],
8690     "name": "ShowDashboard_Items",
8691     "group": "Dashboard_Items",
8692     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8693     "version": "0.0.0",
8694     "filename": "server/api/dashboardItem/index.js",
8695     "groupTitle": "Dashboard_Items"
8696   },
8697   {
8698     "type": "put",
8699     "url": "/api/dashboards/items/{id}",
8700     "title": "Update an existing item",
8701     "examples": [
8702       {
8703         "title": "Example usage:",
8704         "content": "curl https://{domain}/api/dashboards/items/{id} -v -u {name}:{password} -X PUT",
8705         "type": "json"
8706       }
8707     ],
8708     "name": "Update",
8709     "group": "Dashboard_Items",
8710     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8711     "version": "0.0.0",
8712     "filename": "server/api/dashboardItem/index.js",
8713     "groupTitle": "Dashboard_Items"
8714   },
8715   {
8716     "type": "post",
8717     "url": "/api/dashboards/clone",
8718     "title": "Clone an existing Dashboard",
8719     "examples": [
8720       {
8721         "title": "Example usage:",
8722         "content": "curl https://{domain}/api/dashboards/clone -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
8723         "type": "json"
8724       }
8725     ],
8726     "name": "CloneDashboards",
8727     "group": "Dashboards",
8728     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8729     "version": "0.0.0",
8730     "filename": "server/api/dashboard/index.js",
8731     "groupTitle": "Dashboards"
8732   },
8733   {
8734     "type": "post",
8735     "url": "/api/dashboards",
8736     "title": "Creates a new Dashboard",
8737     "examples": [
8738       {
8739         "title": "Example usage:",
8740         "content": "curl https://{domain}/api/dashboards -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
8741         "type": "json"
8742       }
8743     ],
8744     "name": "CreateDashboards",
8745     "group": "Dashboards",
8746     "parameter": {
8747       "fields": {
8748         "Body": [
8749           {
8750             "group": "Body",
8751             "type": "String",
8752             "optional": false,
8753             "field": "name",
8754             "description": ""
8755           },
8756           {
8757             "group": "Body",
8758             "type": "String",
8759             "optional": true,
8760             "field": "description",
8761             "description": ""
8762           }
8763         ]
8764       }
8765     },
8766     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8767     "version": "0.0.0",
8768     "filename": "server/api/dashboard/index.js",
8769     "groupTitle": "Dashboards"
8770   },
8771   {
8772     "type": "delete",
8773     "url": "/api/dashboards/{id}",
8774     "title": "Deletes a Dashboard",
8775     "examples": [
8776       {
8777         "title": "Example usage:",
8778         "content": "curl https://{domain}/api/dashboards/{id} -v -u {name}:{password} -X DELETE",
8779         "type": "json"
8780       }
8781     ],
8782     "name": "DeleteDashboards",
8783     "group": "Dashboards",
8784     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8785     "version": "0.0.0",
8786     "filename": "server/api/dashboard/index.js",
8787     "groupTitle": "Dashboards"
8788   },
8789   {
8790     "type": "get",
8791     "url": "/api/dashboards",
8792     "title": "Gets a list of Dashboards",
8793     "examples": [
8794       {
8795         "title": "Example usage:",
8796         "content": "curl https://{domain}/api/dashboards -v -u {name}:{password}",
8797         "type": "json"
8798       }
8799     ],
8800     "name": "GetDashboards",
8801     "group": "Dashboards",
8802     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/dashboards?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/dashboards?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/dashboards?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/dashboards?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/dashboards?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
8803     "version": "0.0.0",
8804     "filename": "server/api/dashboard/index.js",
8805     "groupTitle": "Dashboards"
8806   },
8807   {
8808     "type": "get",
8809     "url": "/api/dashboards/{id}",
8810     "title": "Gets a single Dashboard",
8811     "examples": [
8812       {
8813         "title": "Example usage:",
8814         "content": "curl https://{domain}/api/dashboards/{id} -v -u {name}:{password}",
8815         "type": "json"
8816       }
8817     ],
8818     "name": "ShowDashboards",
8819     "group": "Dashboards",
8820     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8821     "version": "0.0.0",
8822     "filename": "server/api/dashboard/index.js",
8823     "groupTitle": "Dashboards"
8824   },
8825   {
8826     "type": "post",
8827     "url": "/api/dashboards/{id}/items",
8828     "title": "Creates new item",
8829     "examples": [
8830       {
8831         "title": "Example usage:",
8832         "content": "curl https://{domain}/api/dashboards/{id}/items -d '{\"type\": \"counter\", \"...\": \"...\"}]' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
8833         "type": "json"
8834       }
8835     ],
8836     "name": "addItem",
8837     "group": "Dashboards",
8838     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8839     "version": "0.0.0",
8840     "filename": "server/api/dashboard/index.js",
8841     "groupTitle": "Dashboards"
8842   },
8843   {
8844     "type": "get",
8845     "url": "/api/dashboards/{id}/items",
8846     "title": "Gets items",
8847     "examples": [
8848       {
8849         "title": "Example usage:",
8850         "content": "curl https://{domain}/api/dashboards/{id}/items -v -u {name}:{password} -X GET",
8851         "type": "json"
8852       }
8853     ],
8854     "name": "getItems",
8855     "group": "Dashboards",
8856     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8857     "version": "0.0.0",
8858     "filename": "server/api/dashboard/index.js",
8859     "groupTitle": "Dashboards"
8860   },
8861   {
8862     "type": "put",
8863     "url": "/api/dashboards/{id}",
8864     "title": "Update an existing Dashboard",
8865     "examples": [
8866       {
8867         "title": "Example usage:",
8868         "content": "curl https://{domain}/api/dashboards/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
8869         "type": "json"
8870       }
8871     ],
8872     "name": "updateDashboards",
8873     "group": "Dashboards",
8874     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8875     "version": "0.0.0",
8876     "filename": "server/api/dashboard/index.js",
8877     "groupTitle": "Dashboards"
8878   },
8879   {
8880     "type": "post",
8881     "url": "/api/integrations/desk/accounts",
8882     "title": "Creates a new Desk Account",
8883     "examples": [
8884       {
8885         "title": "Example usage:",
8886         "content": "curl https://{domain}/api/integrations/desk/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
8887         "type": "json"
8888       }
8889     ],
8890     "name": "CreateDesk_Accounts",
8891     "group": "Desk_Accounts",
8892     "parameter": {
8893       "fields": {
8894         "Body": [
8895           {
8896             "group": "Body",
8897             "type": "String",
8898             "optional": true,
8899             "field": "name",
8900             "description": ""
8901           },
8902           {
8903             "group": "Body",
8904             "type": "String",
8905             "optional": true,
8906             "field": "description",
8907             "description": ""
8908           },
8909           {
8910             "group": "Body",
8911             "type": "String",
8912             "optional": true,
8913             "field": "username",
8914             "description": ""
8915           },
8916           {
8917             "group": "Body",
8918             "type": "String",
8919             "optional": true,
8920             "field": "remoteUri",
8921             "description": ""
8922           },
8923           {
8924             "group": "Body",
8925             "type": "String",
8926             "allowedValues": [
8927               "\"basic\""
8928             ],
8929             "optional": true,
8930             "field": "authType",
8931             "description": ""
8932           },
8933           {
8934             "group": "Body",
8935             "type": "String",
8936             "optional": true,
8937             "field": "password",
8938             "description": ""
8939           },
8940           {
8941             "group": "Body",
8942             "type": "String",
8943             "optional": true,
8944             "field": "consumerKey",
8945             "description": ""
8946           },
8947           {
8948             "group": "Body",
8949             "type": "String",
8950             "optional": true,
8951             "field": "consumerSecret",
8952             "description": ""
8953           },
8954           {
8955             "group": "Body",
8956             "type": "String",
8957             "optional": true,
8958             "field": "token",
8959             "description": ""
8960           },
8961           {
8962             "group": "Body",
8963             "type": "String",
8964             "optional": true,
8965             "field": "tokenSecret",
8966             "description": ""
8967           },
8968           {
8969             "group": "Body",
8970             "type": "String",
8971             "optional": false,
8972             "field": "serverUrl",
8973             "description": ""
8974           },
8975           {
8976             "group": "Body",
8977             "type": "String",
8978             "allowedValues": [
8979               "\"integrationTab\"",
8980               "\"newTab\""
8981             ],
8982             "optional": true,
8983             "field": "type",
8984             "description": ""
8985           }
8986         ]
8987       }
8988     },
8989     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8990     "version": "0.0.0",
8991     "filename": "server/api/intDeskAccount/index.js",
8992     "groupTitle": "Desk_Accounts"
8993   },
8994   {
8995     "type": "delete",
8996     "url": "/api/integrations/desk/accounts/{id}",
8997     "title": "Deletes a Desk Account",
8998     "examples": [
8999       {
9000         "title": "Example usage:",
9001         "content": "curl https://{domain}/api/integrations/desk/accounts/{id} -v -u {name}:{password} -X DELETE",
9002         "type": "json"
9003       }
9004     ],
9005     "name": "DeleteDesk_Accounts",
9006     "group": "Desk_Accounts",
9007     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9008     "version": "0.0.0",
9009     "filename": "server/api/intDeskAccount/index.js",
9010     "groupTitle": "Desk_Accounts"
9011   },
9012   {
9013     "type": "get",
9014     "url": "/api/integrations/desk/accounts",
9015     "title": "Gets a list of Desk Accounts",
9016     "examples": [
9017       {
9018         "title": "Example usage:",
9019         "content": "curl https://{domain}/api/integrations/desk/accounts -v -u {name}:{password}",
9020         "type": "json"
9021       }
9022     ],
9023     "name": "GetDesk_Accounts",
9024     "group": "Desk_Accounts",
9025     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/integrations/desk/accounts?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/integrations/desk/accounts?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/integrations/desk/accounts?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/integrations/desk/accounts?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/integrations/desk/accounts?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
9026     "version": "0.0.0",
9027     "filename": "server/api/intDeskAccount/index.js",
9028     "groupTitle": "Desk_Accounts"
9029   },
9030   {
9031     "type": "get",
9032     "url": "/api/integrations/desk/accounts/{id}",
9033     "title": "Gets a single Desk Account",
9034     "examples": [
9035       {
9036         "title": "Example usage:",
9037         "content": "curl https://{domain}/api/integrations/desk/accounts/{id} -v -u {name}:{password}",
9038         "type": "json"
9039       }
9040     ],
9041     "name": "ShowDesk_Accounts",
9042     "group": "Desk_Accounts",
9043     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9044     "version": "0.0.0",
9045     "filename": "server/api/intDeskAccount/index.js",
9046     "groupTitle": "Desk_Accounts"
9047   },
9048   {
9049     "type": "post",
9050     "url": "/api/integrations/desk/accounts/{id}/configurations",
9051     "title": "Creates new configuration",
9052     "examples": [
9053       {
9054         "title": "Example usage:",
9055         "content": "curl https://{domain}/api/integrations/desk/accounts/{id}/configurations -d '{\"name\": \"conf1\"}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
9056         "type": "json"
9057       }
9058     ],
9059     "name": "addConfiguration",
9060     "group": "Desk_Accounts",
9061     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9062     "version": "0.0.0",
9063     "filename": "server/api/intDeskAccount/index.js",
9064     "groupTitle": "Desk_Accounts"
9065   },
9066   {
9067     "type": "get",
9068     "url": "/api/integrations/desk/accounts/{id}/configurations",
9069     "title": "Gets account configurations",
9070     "examples": [
9071       {
9072         "title": "Example usage:",
9073         "content": "curl https://{domain}/api/integrations/desk/accounts/{id}/configurations -v -u {name}:{password} -X GET",
9074         "type": "json"
9075       }
9076     ],
9077     "name": "getConfigurations",
9078     "group": "Desk_Accounts",
9079     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9080     "version": "0.0.0",
9081     "filename": "server/api/intDeskAccount/index.js",
9082     "groupTitle": "Desk_Accounts"
9083   },
9084   {
9085     "type": "get",
9086     "url": "/api/integrations/desk/accounts/{id}/fields",
9087     "title": "Gets account fields",
9088     "examples": [
9089       {
9090         "title": "Example usage:",
9091         "content": "curl https://{domain}/api/integrations/desk/accounts/{id}/fields -v -u {name}:{password} -X GET",
9092         "type": "json"
9093       }
9094     ],
9095     "name": "getFields",
9096     "group": "Desk_Accounts",
9097     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9098     "version": "0.0.0",
9099     "filename": "server/api/intDeskAccount/index.js",
9100     "groupTitle": "Desk_Accounts"
9101   },
9102   {
9103     "type": "put",
9104     "url": "/api/integrations/desk/accounts/{id}",
9105     "title": "Update an existing Desk Account",
9106     "examples": [
9107       {
9108         "title": "Example usage:",
9109         "content": "curl https://{domain}/api/integrations/desk/accounts/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
9110         "type": "json"
9111       }
9112     ],
9113     "name": "updateDesk_Accounts",
9114     "group": "Desk_Accounts",
9115     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9116     "version": "0.0.0",
9117     "filename": "server/api/intDeskAccount/index.js",
9118     "groupTitle": "Desk_Accounts"
9119   },
9120   {
9121     "type": "post",
9122     "url": "/api/integrations/desk/configurations",
9123     "title": "Creates a new Desk Configuration",
9124     "examples": [
9125       {
9126         "title": "Example usage:",
9127         "content": "curl https://{domain}/api/integrations/desk/configurations -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
9128         "type": "json"
9129       }
9130     ],
9131     "name": "CreateDesk_Configurations",
9132     "group": "Desk_Configurations",
9133     "parameter": {
9134       "fields": {
9135         "Body": [
9136           {
9137             "group": "Body",
9138             "type": "String",
9139             "optional": true,
9140             "field": "name",
9141             "description": ""
9142           },
9143           {
9144             "group": "Body",
9145             "type": "String",
9146             "optional": true,
9147             "field": "description",
9148             "description": ""
9149           }
9150         ]
9151       }
9152     },
9153     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9154     "version": "0.0.0",
9155     "filename": "server/api/intDeskConfiguration/index.js",
9156     "groupTitle": "Desk_Configurations"
9157   },
9158   {
9159     "type": "delete",
9160     "url": "/api/integrations/desk/configurations/{id}",
9161     "title": "Deletes a Desk Configuration",
9162     "examples": [
9163       {
9164         "title": "Example usage:",
9165         "content": "curl https://{domain}/api/integrations/desk/configurations/{id} -v -u {name}:{password} -X DELETE",
9166         "type": "json"
9167       }
9168     ],
9169     "name": "DeleteDesk_Configurations",
9170     "group": "Desk_Configurations",
9171     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9172     "version": "0.0.0",
9173     "filename": "server/api/intDeskConfiguration/index.js",
9174     "groupTitle": "Desk_Configurations"
9175   },
9176   {
9177     "type": "get",
9178     "url": "/api/integrations/desk/configurations",
9179     "title": "Gets a list of Desk Configurations",
9180     "examples": [
9181       {
9182         "title": "Example usage:",
9183         "content": "curl https://{domain}/api/integrations/desk/configurations -v -u {name}:{password}",
9184         "type": "json"
9185       }
9186     ],
9187     "name": "GetDesk_Configurations",
9188     "group": "Desk_Configurations",
9189     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/integrations/desk/configurations?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/integrations/desk/configurations?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/integrations/desk/configurations?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/integrations/desk/configurations?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/integrations/desk/configurations?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
9190     "version": "0.0.0",
9191     "filename": "server/api/intDeskConfiguration/index.js",
9192     "groupTitle": "Desk_Configurations"
9193   },
9194   {
9195     "type": "get",
9196     "url": "/api/integrations/desk/configurations/{id}",
9197     "title": "Gets a single Desk Configuration",
9198     "examples": [
9199       {
9200         "title": "Example usage:",
9201         "content": "curl https://{domain}/api/integrations/desk/configurations/{id} -v -u {name}:{password}",
9202         "type": "json"
9203       }
9204     ],
9205     "name": "ShowDesk_Configurations",
9206     "group": "Desk_Configurations",
9207     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9208     "version": "0.0.0",
9209     "filename": "server/api/intDeskConfiguration/index.js",
9210     "groupTitle": "Desk_Configurations"
9211   },
9212   {
9213     "type": "get",
9214     "url": "/api/integrations/desk/configurations/{id}/descriptions",
9215     "title": "Gets configurations descriptions",
9216     "examples": [
9217       {
9218         "title": "Example usage:",
9219         "content": "curl https://{domain}/api/integrations/desk/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
9220         "type": "json"
9221       }
9222     ],
9223     "name": "getDescriptions",
9224     "group": "Desk_Configurations",
9225     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9226     "version": "0.0.0",
9227     "filename": "server/api/intDeskConfiguration/index.js",
9228     "groupTitle": "Desk_Configurations"
9229   },
9230   {
9231     "type": "get",
9232     "url": "/api/integrations/desk/configurations/{id}/fields",
9233     "title": "Gets configurations fields",
9234     "examples": [
9235       {
9236         "title": "Example usage:",
9237         "content": "curl https://{domain}/api/integrations/desk/configurations/{id}/fields -v -u {name}:{password} -X GET",
9238         "type": "json"
9239       }
9240     ],
9241     "name": "getFields",
9242     "group": "Desk_Configurations",
9243     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9244     "version": "0.0.0",
9245     "filename": "server/api/intDeskConfiguration/index.js",
9246     "groupTitle": "Desk_Configurations"
9247   },
9248   {
9249     "type": "get",
9250     "url": "/api/integrations/desk/configurations/{id}/subjects",
9251     "title": "Gets configurations subjects",
9252     "examples": [
9253       {
9254         "title": "Example usage:",
9255         "content": "curl https://{domain}/api/integrations/desk/configurations/{id}/subjects -v -u {name}:{password} -X GET",
9256         "type": "json"
9257       }
9258     ],
9259     "name": "getSubjects",
9260     "group": "Desk_Configurations",
9261     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9262     "version": "0.0.0",
9263     "filename": "server/api/intDeskConfiguration/index.js",
9264     "groupTitle": "Desk_Configurations"
9265   },
9266   {
9267     "type": "get",
9268     "url": "/api/integrations/desk/configurations/{id}/tags",
9269     "title": "Gets configurations tags",
9270     "examples": [
9271       {
9272         "title": "Example usage:",
9273         "content": "curl https://{domain}/api/integrations/desk/configurations/{id}/tags -v -u {name}:{password} -X GET",
9274         "type": "json"
9275       }
9276     ],
9277     "name": "getTags",
9278     "group": "Desk_Configurations",
9279     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9280     "version": "0.0.0",
9281     "filename": "server/api/intDeskConfiguration/index.js",
9282     "groupTitle": "Desk_Configurations"
9283   },
9284   {
9285     "type": "post",
9286     "url": "/api/integrations/desk/configurations/{id}/tags",
9287     "title": "Sets new tags",
9288     "examples": [
9289       {
9290         "title": "Example usage:",
9291         "content": "curl https://{domain}/api/integrations/desk/configurations/{id}/tags -d '{\"ids\": [1,12]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
9292         "type": "json"
9293       }
9294     ],
9295     "name": "setTags",
9296     "group": "Desk_Configurations",
9297     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9298     "version": "0.0.0",
9299     "filename": "server/api/intDeskConfiguration/index.js",
9300     "groupTitle": "Desk_Configurations"
9301   },
9302   {
9303     "type": "put",
9304     "url": "/api/integrations/desk/configurations/{id}",
9305     "title": "Update an existing Desk Configuration",
9306     "examples": [
9307       {
9308         "title": "Example usage:",
9309         "content": "curl https://{domain}/api/integrations/desk/configurations/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
9310         "type": "json"
9311       }
9312     ],
9313     "name": "updateDesk_Configurations",
9314     "group": "Desk_Configurations",
9315     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9316     "version": "0.0.0",
9317     "filename": "server/api/intDeskConfiguration/index.js",
9318     "groupTitle": "Desk_Configurations"
9319   },
9320   {
9321     "type": "post",
9322     "url": "/api/integrations/desk/fields",
9323     "title": "Creates a new Desk Field",
9324     "examples": [
9325       {
9326         "title": "Example usage:",
9327         "content": "curl https://{domain}/api/integrations/desk/fields -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
9328         "type": "json"
9329       }
9330     ],
9331     "name": "CreateDesk_Fields",
9332     "group": "Desk_Fields",
9333     "parameter": {
9334       "fields": {
9335         "Body": [
9336           {
9337             "group": "Body",
9338             "type": "String",
9339             "allowedValues": [
9340               "\"string\"",
9341               "\"variable\"",
9342               "\"customVariable\"",
9343               "\"keyValue\"",
9344               "\"picklist\""
9345             ],
9346             "optional": true,
9347             "field": "type",
9348             "description": ""
9349           },
9350           {
9351             "group": "Body",
9352             "type": "String",
9353             "optional": true,
9354             "field": "content",
9355             "description": ""
9356           },
9357           {
9358             "group": "Body",
9359             "type": "String",
9360             "optional": true,
9361             "field": "key",
9362             "description": ""
9363           },
9364           {
9365             "group": "Body",
9366             "type": "String",
9367             "allowedValues": [
9368               "\"string\"",
9369               "\"variable\"",
9370               "\"customVariable\""
9371             ],
9372             "optional": true,
9373             "field": "keyType",
9374             "description": ""
9375           },
9376           {
9377             "group": "Body",
9378             "type": "String",
9379             "optional": true,
9380             "field": "keyContent",
9381             "description": ""
9382           },
9383           {
9384             "group": "Body",
9385             "type": "String",
9386             "optional": true,
9387             "field": "idField",
9388             "description": ""
9389           },
9390           {
9391             "group": "Body",
9392             "type": "String",
9393             "optional": true,
9394             "field": "nameField",
9395             "description": ""
9396           },
9397           {
9398             "group": "Body",
9399             "type": "Boolean",
9400             "optional": true,
9401             "field": "customField",
9402             "description": ""
9403           },
9404           {
9405             "group": "Body",
9406             "type": "String",
9407             "optional": true,
9408             "field": "variableName",
9409             "description": ""
9410           }
9411         ]
9412       }
9413     },
9414     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9415     "version": "0.0.0",
9416     "filename": "server/api/intDeskField/index.js",
9417     "groupTitle": "Desk_Fields"
9418   },
9419   {
9420     "type": "delete",
9421     "url": "/api/integrations/desk/fields/{id}",
9422     "title": "Deletes a Desk Field",
9423     "examples": [
9424       {
9425         "title": "Example usage:",
9426         "content": "curl https://{domain}/api/integrations/desk/fields/{id} -v -u {name}:{password} -X DELETE",
9427         "type": "json"
9428       }
9429     ],
9430     "name": "DeleteDesk_Fields",
9431     "group": "Desk_Fields",
9432     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9433     "version": "0.0.0",
9434     "filename": "server/api/intDeskField/index.js",
9435     "groupTitle": "Desk_Fields"
9436   },
9437   {
9438     "type": "get",
9439     "url": "/api/integrations/desk/fields",
9440     "title": "Gets a list of Desk Fields",
9441     "examples": [
9442       {
9443         "title": "Example usage:",
9444         "content": "curl https://{domain}/api/integrations/desk/fields -v -u {name}:{password}",
9445         "type": "json"
9446       }
9447     ],
9448     "name": "GetDesk_Fields",
9449     "group": "Desk_Fields",
9450     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/integrations/desk/fields?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/integrations/desk/fields?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/integrations/desk/fields?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/integrations/desk/fields?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/integrations/desk/fields?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
9451     "version": "0.0.0",
9452     "filename": "server/api/intDeskField/index.js",
9453     "groupTitle": "Desk_Fields"
9454   },
9455   {
9456     "type": "get",
9457     "url": "/api/integrations/desk/fields/{id}",
9458     "title": "Gets a single Desk Field",
9459     "examples": [
9460       {
9461         "title": "Example usage:",
9462         "content": "curl https://{domain}/api/integrations/desk/fields/{id} -v -u {name}:{password}",
9463         "type": "json"
9464       }
9465     ],
9466     "name": "ShowDesk_Fields",
9467     "group": "Desk_Fields",
9468     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9469     "version": "0.0.0",
9470     "filename": "server/api/intDeskField/index.js",
9471     "groupTitle": "Desk_Fields"
9472   },
9473   {
9474     "type": "put",
9475     "url": "/api/integrations/desk/fields/{id}",
9476     "title": "Update an existing Desk Field",
9477     "examples": [
9478       {
9479         "title": "Example usage:",
9480         "content": "curl https://{domain}/api/integrations/desk/fields/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
9481         "type": "json"
9482       }
9483     ],
9484     "name": "updateDesk_Fields",
9485     "group": "Desk_Fields",
9486     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9487     "version": "0.0.0",
9488     "filename": "server/api/intDeskField/index.js",
9489     "groupTitle": "Desk_Fields"
9490   },
9491   {
9492     "type": "post",
9493     "url": "/api/dispositions",
9494     "title": "Creates a new Disposition",
9495     "examples": [
9496       {
9497         "title": "Example usage:",
9498         "content": "curl https://{domain}/api/dispositions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
9499         "type": "json"
9500       }
9501     ],
9502     "name": "CreateDispositions",
9503     "group": "Dispositions",
9504     "parameter": {
9505       "fields": {
9506         "Body": [
9507           {
9508             "group": "Body",
9509             "type": "String",
9510             "optional": false,
9511             "field": "name",
9512             "description": ""
9513           },
9514           {
9515             "group": "Body",
9516             "type": "String",
9517             "allowedValues": [
9518               "\"first\"",
9519               "\"second\"",
9520               "\"third\""
9521             ],
9522             "optional": false,
9523             "field": "level",
9524             "description": ""
9525           },
9526           {
9527             "group": "Body",
9528             "type": "String",
9529             "optional": true,
9530             "field": "description",
9531             "description": ""
9532           }
9533         ]
9534       }
9535     },
9536     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9537     "version": "0.0.0",
9538     "filename": "server/api/disposition/index.js",
9539     "groupTitle": "Dispositions"
9540   },
9541   {
9542     "type": "delete",
9543     "url": "/api/dispositions/{id}",
9544     "title": "Deletes a Disposition",
9545     "examples": [
9546       {
9547         "title": "Example usage:",
9548         "content": "curl https://{domain}/api/dispositions/{id} -v -u {name}:{password} -X DELETE",
9549         "type": "json"
9550       }
9551     ],
9552     "name": "DeleteDispositions",
9553     "group": "Dispositions",
9554     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9555     "version": "0.0.0",
9556     "filename": "server/api/disposition/index.js",
9557     "groupTitle": "Dispositions"
9558   },
9559   {
9560     "type": "get",
9561     "url": "/api/dispositions",
9562     "title": "Gets a list of Dispositions",
9563     "examples": [
9564       {
9565         "title": "Example usage:",
9566         "content": "curl https://{domain}/api/dispositions -v -u {name}:{password}",
9567         "type": "json"
9568       }
9569     ],
9570     "name": "GetDispositions",
9571     "group": "Dispositions",
9572     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/dispositions?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/dispositions?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/dispositions?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/dispositions?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/dispositions?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
9573     "version": "0.0.0",
9574     "filename": "server/api/disposition/index.js",
9575     "groupTitle": "Dispositions"
9576   },
9577   {
9578     "type": "get",
9579     "url": "/api/dispositions/{id}",
9580     "title": "Gets a single Disposition",
9581     "examples": [
9582       {
9583         "title": "Example usage:",
9584         "content": "curl https://{domain}/api/dispositions/{id} -v -u {name}:{password}",
9585         "type": "json"
9586       }
9587     ],
9588     "name": "ShowDispositions",
9589     "group": "Dispositions",
9590     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9591     "version": "0.0.0",
9592     "filename": "server/api/disposition/index.js",
9593     "groupTitle": "Dispositions"
9594   },
9595   {
9596     "type": "put",
9597     "url": "/api/dispositions/{id}",
9598     "title": "Update an existing Disposition",
9599     "examples": [
9600       {
9601         "title": "Example usage:",
9602         "content": "curl https://{domain}/api/dispositions/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
9603         "type": "json"
9604       }
9605     ],
9606     "name": "updateDispositions",
9607     "group": "Dispositions",
9608     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9609     "version": "0.0.0",
9610     "filename": "server/api/disposition/index.js",
9611     "groupTitle": "Dispositions"
9612   },
9613   {
9614     "type": "post",
9615     "url": "/api/integrations/dynamics365/accounts",
9616     "title": "Creates a new Dynamics365 Account",
9617     "examples": [
9618       {
9619         "title": "Example usage:",
9620         "content": "curl https://{domain}/api/integrations/dynamics365/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
9621         "type": "json"
9622       }
9623     ],
9624     "name": "CreateDynamics365_Accounts",
9625     "group": "Dynamics365_Accounts",
9626     "parameter": {
9627       "fields": {
9628         "Body": [
9629           {
9630             "group": "Body",
9631             "type": "String",
9632             "optional": true,
9633             "field": "name",
9634             "description": ""
9635           },
9636           {
9637             "group": "Body",
9638             "type": "String",
9639             "optional": true,
9640             "field": "username",
9641             "description": ""
9642           },
9643           {
9644             "group": "Body",
9645             "type": "String",
9646             "optional": true,
9647             "field": "password",
9648             "description": ""
9649           },
9650           {
9651             "group": "Body",
9652             "type": "String",
9653             "optional": true,
9654             "field": "remoteUri",
9655             "description": ""
9656           },
9657           {
9658             "group": "Body",
9659             "type": "String",
9660             "optional": true,
9661             "field": "tenantId",
9662             "description": ""
9663           },
9664           {
9665             "group": "Body",
9666             "type": "String",
9667             "optional": true,
9668             "field": "clientId",
9669             "description": ""
9670           },
9671           {
9672             "group": "Body",
9673             "type": "String",
9674             "optional": true,
9675             "field": "clientSecret",
9676             "description": ""
9677           },
9678           {
9679             "group": "Body",
9680             "type": "String",
9681             "optional": false,
9682             "field": "serverUrl",
9683             "description": ""
9684           },
9685           {
9686             "group": "Body",
9687             "type": "String",
9688             "optional": true,
9689             "field": "description",
9690             "description": ""
9691           }
9692         ]
9693       }
9694     },
9695     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9696     "version": "0.0.0",
9697     "filename": "server/api/intDynamics365Account/index.js",
9698     "groupTitle": "Dynamics365_Accounts"
9699   },
9700   {
9701     "type": "delete",
9702     "url": "/api/integrations/dynamics365/accounts/{id}",
9703     "title": "Deletes a Dynamics365 Account",
9704     "examples": [
9705       {
9706         "title": "Example usage:",
9707         "content": "curl https://{domain}/api/integrations/dynamics365/accounts/{id} -v -u {name}:{password} -X DELETE",
9708         "type": "json"
9709       }
9710     ],
9711     "name": "DeleteDynamics365_Accounts",
9712     "group": "Dynamics365_Accounts",
9713     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9714     "version": "0.0.0",
9715     "filename": "server/api/intDynamics365Account/index.js",
9716     "groupTitle": "Dynamics365_Accounts"
9717   },
9718   {
9719     "type": "get",
9720     "url": "/api/integrations/dynamics365/accounts",
9721     "title": "Gets a list of Dynamics365 Accounts",
9722     "examples": [
9723       {
9724         "title": "Example usage:",
9725         "content": "curl https://{domain}/api/integrations/dynamics365/accounts -v -u {name}:{password}",
9726         "type": "json"
9727       }
9728     ],
9729     "name": "GetDynamics365_Accounts",
9730     "group": "Dynamics365_Accounts",
9731     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/integrations/dynamics365/accounts?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/integrations/dynamics365/accounts?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/integrations/dynamics365/accounts?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/integrations/dynamics365/accounts?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/integrations/dynamics365/accounts?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
9732     "version": "0.0.0",
9733     "filename": "server/api/intDynamics365Account/index.js",
9734     "groupTitle": "Dynamics365_Accounts"
9735   },
9736   {
9737     "type": "get",
9738     "url": "/api/integrations/dynamics365/accounts/{id}",
9739     "title": "Gets a single Dynamics365 Account",
9740     "examples": [
9741       {
9742         "title": "Example usage:",
9743         "content": "curl https://{domain}/api/integrations/dynamics365/accounts/{id} -v -u {name}:{password}",
9744         "type": "json"
9745       }
9746     ],
9747     "name": "ShowDynamics365_Accounts",
9748     "group": "Dynamics365_Accounts",
9749     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9750     "version": "0.0.0",
9751     "filename": "server/api/intDynamics365Account/index.js",
9752     "groupTitle": "Dynamics365_Accounts"
9753   },
9754   {
9755     "type": "post",
9756     "url": "/api/integrations/dynamics365/accounts/{id}/configurations",
9757     "title": "Creates new configuration",
9758     "examples": [
9759       {
9760         "title": "Example usage:",
9761         "content": "curl https://{domain}/api/integrations/dynamics365/accounts/{id}/configurations -d '{\"name\": \"conf1\"}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
9762         "type": "json"
9763       }
9764     ],
9765     "name": "addConfiguration",
9766     "group": "Dynamics365_Accounts",
9767     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9768     "version": "0.0.0",
9769     "filename": "server/api/intDynamics365Account/index.js",
9770     "groupTitle": "Dynamics365_Accounts"
9771   },
9772   {
9773     "type": "get",
9774     "url": "/api/integrations/dynamics365/accounts/{id}/configurations",
9775     "title": "Gets account configurations",
9776     "examples": [
9777       {
9778         "title": "Example usage:",
9779         "content": "curl https://{domain}/api/integrations/dynamics365/accounts/{id}/configurations -v -u {name}:{password} -X GET",
9780         "type": "json"
9781       }
9782     ],
9783     "name": "getConfigurations",
9784     "group": "Dynamics365_Accounts",
9785     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9786     "version": "0.0.0",
9787     "filename": "server/api/intDynamics365Account/index.js",
9788     "groupTitle": "Dynamics365_Accounts"
9789   },
9790   {
9791     "type": "get",
9792     "url": "/api/integrations/dynamics365/accounts/{id}/fields",
9793     "title": "Gets account fields",
9794     "examples": [
9795       {
9796         "title": "Example usage:",
9797         "content": "curl https://{domain}/api/integrations/dynamics365/accounts/{id}/fields -v -u {name}:{password} -X GET",
9798         "type": "json"
9799       }
9800     ],
9801     "name": "getFields",
9802     "group": "Dynamics365_Accounts",
9803     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9804     "version": "0.0.0",
9805     "filename": "server/api/intDynamics365Account/index.js",
9806     "groupTitle": "Dynamics365_Accounts"
9807   },
9808   {
9809     "type": "put",
9810     "url": "/api/integrations/dynamics365/accounts/{id}",
9811     "title": "Update an existing Dynamics365 Account",
9812     "examples": [
9813       {
9814         "title": "Example usage:",
9815         "content": "curl https://{domain}/api/integrations/dynamics365/accounts/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
9816         "type": "json"
9817       }
9818     ],
9819     "name": "updateDynamics365_Accounts",
9820     "group": "Dynamics365_Accounts",
9821     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9822     "version": "0.0.0",
9823     "filename": "server/api/intDynamics365Account/index.js",
9824     "groupTitle": "Dynamics365_Accounts"
9825   },
9826   {
9827     "type": "post",
9828     "url": "/api/integrations/dynamics365/configurations",
9829     "title": "Creates a new Dynamics365 Configuration",
9830     "examples": [
9831       {
9832         "title": "Example usage:",
9833         "content": "curl https://{domain}/api/integrations/dynamics365/configurations -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
9834         "type": "json"
9835       }
9836     ],
9837     "name": "CreateDynamics365_Configurations",
9838     "group": "Dynamics365_Configurations",
9839     "parameter": {
9840       "fields": {
9841         "Body": [
9842           {
9843             "group": "Body",
9844             "type": "String",
9845             "optional": true,
9846             "field": "name",
9847             "description": ""
9848           },
9849           {
9850             "group": "Body",
9851             "type": "String",
9852             "optional": true,
9853             "field": "description",
9854             "description": ""
9855           },
9856           {
9857             "group": "Body",
9858             "type": "String",
9859             "allowedValues": [
9860               "\"incident\"",
9861               "\"phonecall\""
9862             ],
9863             "optional": true,
9864             "field": "ticketType",
9865             "description": ""
9866           }
9867         ]
9868       }
9869     },
9870     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9871     "version": "0.0.0",
9872     "filename": "server/api/intDynamics365Configuration/index.js",
9873     "groupTitle": "Dynamics365_Configurations"
9874   },
9875   {
9876     "type": "delete",
9877     "url": "/api/integrations/dynamics365/configurations/{id}",
9878     "title": "Deletes a Dynamics365 Configuration",
9879     "examples": [
9880       {
9881         "title": "Example usage:",
9882         "content": "curl https://{domain}/api/integrations/dynamics365/configurations/{id} -v -u {name}:{password} -X DELETE",
9883         "type": "json"
9884       }
9885     ],
9886     "name": "DeleteDynamics365_Configurations",
9887     "group": "Dynamics365_Configurations",
9888     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9889     "version": "0.0.0",
9890     "filename": "server/api/intDynamics365Configuration/index.js",
9891     "groupTitle": "Dynamics365_Configurations"
9892   },
9893   {
9894     "type": "get",
9895     "url": "/api/integrations/dynamics365/configurations",
9896     "title": "Gets a list of Dynamics365 Configurations",
9897     "examples": [
9898       {
9899         "title": "Example usage:",
9900         "content": "curl https://{domain}/api/integrations/dynamics365/configurations -v -u {name}:{password}",
9901         "type": "json"
9902       }
9903     ],
9904     "name": "GetDynamics365_Configurations",
9905     "group": "Dynamics365_Configurations",
9906     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/integrations/dynamics365/configurations?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/integrations/dynamics365/configurations?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/integrations/dynamics365/configurations?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/integrations/dynamics365/configurations?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/integrations/dynamics365/configurations?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
9907     "version": "0.0.0",
9908     "filename": "server/api/intDynamics365Configuration/index.js",
9909     "groupTitle": "Dynamics365_Configurations"
9910   },
9911   {
9912     "type": "get",
9913     "url": "/api/integrations/dynamics365/configurations/{id}",
9914     "title": "Gets a single Dynamics365 Configuration",
9915     "examples": [
9916       {
9917         "title": "Example usage:",
9918         "content": "curl https://{domain}/api/integrations/dynamics365/configurations/{id} -v -u {name}:{password}",
9919         "type": "json"
9920       }
9921     ],
9922     "name": "ShowDynamics365_Configurations",
9923     "group": "Dynamics365_Configurations",
9924     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9925     "version": "0.0.0",
9926     "filename": "server/api/intDynamics365Configuration/index.js",
9927     "groupTitle": "Dynamics365_Configurations"
9928   },
9929   {
9930     "type": "get",
9931     "url": "/api/integrations/dynamics365/configurations/{id}/descriptions",
9932     "title": "Gets configurations descriptions",
9933     "examples": [
9934       {
9935         "title": "Example usage:",
9936         "content": "curl https://{domain}/api/integrations/dynamics365/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
9937         "type": "json"
9938       }
9939     ],
9940     "name": "getDescriptions",
9941     "group": "Dynamics365_Configurations",
9942     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9943     "version": "0.0.0",
9944     "filename": "server/api/intDynamics365Configuration/index.js",
9945     "groupTitle": "Dynamics365_Configurations"
9946   },
9947   {
9948     "type": "get",
9949     "url": "/api/integrations/dynamics365/configurations/{id}/fields",
9950     "title": "Gets configurations fields",
9951     "examples": [
9952       {
9953         "title": "Example usage:",
9954         "content": "curl https://{domain}/api/integrations/zoho/configurations/{id}/fields -v -u {name}:{password} -X GET",
9955         "type": "json"
9956       }
9957     ],
9958     "name": "getFields",
9959     "group": "Dynamics365_Configurations",
9960     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9961     "version": "0.0.0",
9962     "filename": "server/api/intDynamics365Configuration/index.js",
9963     "groupTitle": "Dynamics365_Configurations"
9964   },
9965   {
9966     "type": "get",
9967     "url": "/api/integrations/zoho/configurations/{id}/subjects",
9968     "title": "Gets configurations subjects",
9969     "examples": [
9970       {
9971         "title": "Example usage:",
9972         "content": "curl https://{domain}/api/integrations/dynamics365/configurations/{id}/subjects -v -u {name}:{password} -X GET",
9973         "type": "json"
9974       }
9975     ],
9976     "name": "getSubjects",
9977     "group": "Dynamics365_Configurations",
9978     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9979     "version": "0.0.0",
9980     "filename": "server/api/intDynamics365Configuration/index.js",
9981     "groupTitle": "Dynamics365_Configurations"
9982   },
9983   {
9984     "type": "put",
9985     "url": "/api/integrations/dynamics365/configurations/{id}",
9986     "title": "Update an existing Dynamics365 Configuration",
9987     "examples": [
9988       {
9989         "title": "Example usage:",
9990         "content": "curl https://{domain}/api/integrations/dynamics365/configurations/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
9991         "type": "json"
9992       }
9993     ],
9994     "name": "updateDynamics365_Configurations",
9995     "group": "Dynamics365_Configurations",
9996     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9997     "version": "0.0.0",
9998     "filename": "server/api/intDynamics365Configuration/index.js",
9999     "groupTitle": "Dynamics365_Configurations"
10000   },
10001   {
10002     "type": "post",
10003     "url": "/api/integrations/dynamics365/fields",
10004     "title": "Creates a new Dynamics365 Field",
10005     "examples": [
10006       {
10007         "title": "Example usage:",
10008         "content": "curl https://{domain}/api/integrations/dynamics365/fields -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
10009         "type": "json"
10010       }
10011     ],
10012     "name": "CreateDynamics365_Fields",
10013     "group": "Dynamics365_Fields",
10014     "parameter": {
10015       "fields": {
10016         "Body": [
10017           {
10018             "group": "Body",
10019             "type": "String",
10020             "allowedValues": [
10021               "\"string\"",
10022               "\"variable\"",
10023               "\"customVariable\"",
10024               "\"keyValue\"",
10025               "\"picklist\""
10026             ],
10027             "optional": true,
10028             "field": "type",
10029             "description": ""
10030           },
10031           {
10032             "group": "Body",
10033             "type": "String",
10034             "optional": true,
10035             "field": "content",
10036             "description": ""
10037           },
10038           {
10039             "group": "Body",
10040             "type": "String",
10041             "optional": true,
10042             "field": "key",
10043             "description": ""
10044           },
10045           {
10046             "group": "Body",
10047             "type": "String",
10048             "allowedValues": [
10049               "\"string\"",
10050               "\"variable\"",
10051               "\"customVariable\""
10052             ],
10053             "optional": true,
10054             "field": "keyType",
10055             "description": ""
10056           },
10057           {
10058             "group": "Body",
10059             "type": "String",
10060             "optional": true,
10061             "field": "keyContent",
10062             "description": ""
10063           },
10064           {
10065             "group": "Body",
10066             "type": "String",
10067             "optional": true,
10068             "field": "idField",
10069             "description": ""
10070           },
10071           {
10072             "group": "Body",
10073             "type": "String",
10074             "optional": true,
10075             "field": "nameField",
10076             "description": ""
10077           },
10078           {
10079             "group": "Body",
10080             "type": "Boolean",
10081             "optional": true,
10082             "field": "customField",
10083             "description": ""
10084           },
10085           {
10086             "group": "Body",
10087             "type": "String",
10088             "optional": true,
10089             "field": "variableName",
10090             "description": ""
10091           }
10092         ]
10093       }
10094     },
10095     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10096     "version": "0.0.0",
10097     "filename": "server/api/intDynamics365Field/index.js",
10098     "groupTitle": "Dynamics365_Fields"
10099   },
10100   {
10101     "type": "delete",
10102     "url": "/api/integrations/dynamics365/fields/{id}",
10103     "title": "Deletes a Dynamics365 Field",
10104     "examples": [
10105       {
10106         "title": "Example usage:",
10107         "content": "curl https://{domain}/api/integrations/dynamics365/fields/{id} -v -u {name}:{password} -X DELETE",
10108         "type": "json"
10109       }
10110     ],
10111     "name": "DeleteDynamics365_Fields",
10112     "group": "Dynamics365_Fields",
10113     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10114     "version": "0.0.0",
10115     "filename": "server/api/intDynamics365Field/index.js",
10116     "groupTitle": "Dynamics365_Fields"
10117   },
10118   {
10119     "type": "get",
10120     "url": "/api/integrations/dynamics365/fields",
10121     "title": "Gets a list of Dynamics365 Fields",
10122     "examples": [
10123       {
10124         "title": "Example usage:",
10125         "content": "curl https://{domain}/api/integrations/dynamics365/fields -v -u {name}:{password}",
10126         "type": "json"
10127       }
10128     ],
10129     "name": "GetDynamics365_Fields",
10130     "group": "Dynamics365_Fields",
10131     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/integrations/dynamics365/fields?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/integrations/dynamics365/fields?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/integrations/dynamics365/fields?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/integrations/dynamics365/fields?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/integrations/dynamics365/fields?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
10132     "version": "0.0.0",
10133     "filename": "server/api/intDynamics365Field/index.js",
10134     "groupTitle": "Dynamics365_Fields"
10135   },
10136   {
10137     "type": "get",
10138     "url": "/api/integrations/dynamics365/fields/{id}",
10139     "title": "Gets a single Dynamics365 Field",
10140     "examples": [
10141       {
10142         "title": "Example usage:",
10143         "content": "curl https://{domain}/api/integrations/dynamics365/fields/{id} -v -u {name}:{password}",
10144         "type": "json"
10145       }
10146     ],
10147     "name": "ShowDynamics365_Fields",
10148     "group": "Dynamics365_Fields",
10149     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10150     "version": "0.0.0",
10151     "filename": "server/api/intDynamics365Field/index.js",
10152     "groupTitle": "Dynamics365_Fields"
10153   },
10154   {
10155     "type": "put",
10156     "url": "/api/integrations/dynamics365/fields/{id}",
10157     "title": "Update an existing Dynamics365 Field",
10158     "examples": [
10159       {
10160         "title": "Example usage:",
10161         "content": "curl https://{domain}/api/integrations/dynamics365/fields/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
10162         "type": "json"
10163       }
10164     ],
10165     "name": "updateDynamics365_Fields",
10166     "group": "Dynamics365_Fields",
10167     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10168     "version": "0.0.0",
10169     "filename": "server/api/intDynamics365Field/index.js",
10170     "groupTitle": "Dynamics365_Fields"
10171   },
10172   {
10173     "type": "post",
10174     "url": "/api/fax/accounts/{id}/users",
10175     "title": "Add agents to a fax account",
10176     "examples": [
10177       {
10178         "title": "Example usage:",
10179         "content": "curl https://{domain}/api/fax/accounts/{id}/users -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
10180         "type": "json"
10181       }
10182     ],
10183     "name": "AddAgents",
10184     "group": "Fax_Accounts",
10185     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10186     "version": "0.0.0",
10187     "filename": "server/api/faxAccount/index.js",
10188     "groupTitle": "Fax_Accounts"
10189   },
10190   {
10191     "type": "post",
10192     "url": "/api/fax/accounts",
10193     "title": "Creates a new Account",
10194     "examples": [
10195       {
10196         "title": "Example usage:",
10197         "content": "curl https://{domain}/api/fax/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
10198         "type": "json"
10199       }
10200     ],
10201     "name": "CreateAccounts",
10202     "group": "Fax_Accounts",
10203     "parameter": {
10204       "fields": {
10205         "Body": [
10206           {
10207             "group": "Body",
10208             "type": "String",
10209             "optional": false,
10210             "field": "name",
10211             "description": ""
10212           },
10213           {
10214             "group": "Body",
10215             "type": "String",
10216             "optional": true,
10217             "field": "description",
10218             "description": ""
10219           },
10220           {
10221             "group": "Body",
10222             "type": "String",
10223             "allowedValues": [
10224               "\"yes\"",
10225               "\"no\""
10226             ],
10227             "optional": true,
10228             "field": "ecm",
10229             "description": ""
10230           },
10231           {
10232             "group": "Body",
10233             "type": "String",
10234             "optional": true,
10235             "field": "headerinfo",
10236             "description": ""
10237           },
10238           {
10239             "group": "Body",
10240             "type": "String",
10241             "optional": true,
10242             "field": "localstationid",
10243             "description": ""
10244           },
10245           {
10246             "group": "Body",
10247             "type": "String",
10248             "allowedValues": [
10249               "\"2400\"",
10250               "\"4800\"",
10251               "\"7200\"",
10252               "\"9600\"",
10253               "\"12000\"",
10254               "\"14400\""
10255             ],
10256             "optional": true,
10257             "field": "minrate",
10258             "description": ""
10259           },
10260           {
10261             "group": "Body",
10262             "type": "String",
10263             "allowedValues": [
10264               "\"2400\"",
10265               "\"4800\"",
10266               "\"7200\"",
10267               "\"9600\"",
10268               "\"12000\"",
10269               "\"14400\""
10270             ],
10271             "optional": true,
10272             "field": "maxrate",
10273             "description": ""
10274           },
10275           {
10276             "group": "Body",
10277             "type": "String",
10278             "optional": true,
10279             "field": "modem",
10280             "description": ""
10281           },
10282           {
10283             "group": "Body",
10284             "type": "String",
10285             "optional": true,
10286             "field": "gateway",
10287             "description": ""
10288           },
10289           {
10290             "group": "Body",
10291             "type": "String",
10292             "optional": true,
10293             "field": "faxdetect",
10294             "description": ""
10295           },
10296           {
10297             "group": "Body",
10298             "type": "Integer",
10299             "optional": true,
10300             "field": "t38timeout",
10301             "description": ""
10302           },
10303           {
10304             "group": "Body",
10305             "type": "String",
10306             "allowedValues": [
10307               "\"SIP\"",
10308               "\"IAX\"",
10309               "\"DADHI\"",
10310               "\"KHOMP\""
10311             ],
10312             "optional": true,
10313             "field": "tech",
10314             "description": ""
10315           },
10316           {
10317             "group": "Body",
10318             "type": "String",
10319             "optional": false,
10320             "field": "key",
10321             "description": ""
10322           },
10323           {
10324             "group": "Body",
10325             "type": "Text",
10326             "optional": true,
10327             "field": "notificationTemplate",
10328             "description": ""
10329           },
10330           {
10331             "group": "Body",
10332             "type": "Boolean",
10333             "optional": true,
10334             "field": "notificationSound",
10335             "description": ""
10336           },
10337           {
10338             "group": "Body",
10339             "type": "Boolean",
10340             "optional": true,
10341             "field": "notificationShake",
10342             "description": ""
10343           },
10344           {
10345             "group": "Body",
10346             "type": "Integer",
10347             "optional": true,
10348             "field": "waitForTheAssignedAgent",
10349             "description": ""
10350           },
10351           {
10352             "group": "Body",
10353             "type": "Integer",
10354             "optional": true,
10355             "field": "waitForTheAssignedQueue",
10356             "description": ""
10357           },
10358           {
10359             "group": "Body",
10360             "type": "Boolean",
10361             "optional": true,
10362             "field": "queueTransfer",
10363             "description": ""
10364           },
10365           {
10366             "group": "Body",
10367             "type": "Integer",
10368             "optional": true,
10369             "field": "queueTransferTimeout",
10370             "description": ""
10371           },
10372           {
10373             "group": "Body",
10374             "type": "Boolean",
10375             "optional": true,
10376             "field": "agentTransfer",
10377             "description": ""
10378           },
10379           {
10380             "group": "Body",
10381             "type": "Integer",
10382             "optional": true,
10383             "field": "agentTransferTimeout",
10384             "description": ""
10385           },
10386           {
10387             "group": "Body",
10388             "type": "Integer",
10389             "optional": true,
10390             "field": "mandatoryDispositionPauseId",
10391             "description": "<p>Status to put when mandatory disposition is enabled</p>"
10392           },
10393           {
10394             "group": "Body",
10395             "type": "Boolean",
10396             "optional": true,
10397             "field": "mandatoryDisposition",
10398             "description": "<p>Enabled/disables mandatory dispo on a queue</p>"
10399           }
10400         ]
10401       }
10402     },
10403     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10404     "version": "0.0.0",
10405     "filename": "server/api/faxAccount/index.js",
10406     "groupTitle": "Fax_Accounts"
10407   },
10408   {
10409     "type": "delete",
10410     "url": "/api/fax/accounts/{id}",
10411     "title": "Deletes a Account",
10412     "examples": [
10413       {
10414         "title": "Example usage:",
10415         "content": "curl https://{domain}/api/fax/accounts/{id} -v -u {name}:{password} -X DELETE",
10416         "type": "json"
10417       }
10418     ],
10419     "name": "DeleteAccounts",
10420     "group": "Fax_Accounts",
10421     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10422     "version": "0.0.0",
10423     "filename": "server/api/faxAccount/index.js",
10424     "groupTitle": "Fax_Accounts"
10425   },
10426   {
10427     "type": "get",
10428     "url": "/api/fax/accounts/describe",
10429     "title": "Gets table info about Accounts",
10430     "examples": [
10431       {
10432         "title": "Example usage:",
10433         "content": "curl https://{domain}/api/fax/accounts/describe -v -u {name}:{password}",
10434         "type": "json"
10435       }
10436     ],
10437     "name": "DescribeAccounts",
10438     "group": "Fax_Accounts",
10439     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10440     "version": "0.0.0",
10441     "filename": "server/api/faxAccount/index.js",
10442     "groupTitle": "Fax_Accounts"
10443   },
10444   {
10445     "type": "get",
10446     "url": "/api/fax/accounts",
10447     "title": "Gets a list of Accounts",
10448     "examples": [
10449       {
10450         "title": "Example usage:",
10451         "content": "curl https://{domain}/api/fax/accounts -v -u {name}:{password}",
10452         "type": "json"
10453       }
10454     ],
10455     "name": "GetAccounts",
10456     "group": "Fax_Accounts",
10457     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/fax/accounts?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/fax/accounts?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/fax/accounts?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/fax/accounts?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/fax/accounts?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
10458     "version": "0.0.0",
10459     "filename": "server/api/faxAccount/index.js",
10460     "groupTitle": "Fax_Accounts"
10461   },
10462   {
10463     "type": "get",
10464     "url": "/api/fax/accounts/{id}/users",
10465     "title": "Gets agents from fax account",
10466     "examples": [
10467       {
10468         "title": "Example usage:",
10469         "content": "curl https://{domain}/api/fax/accounts/{id}/users -v -u {name}:{password} -X GET",
10470         "type": "json"
10471       }
10472     ],
10473     "name": "GetAgents",
10474     "group": "Fax_Accounts",
10475     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10476     "version": "0.0.0",
10477     "filename": "server/api/faxAccount/index.js",
10478     "groupTitle": "Fax_Accounts"
10479   },
10480   {
10481     "type": "delete",
10482     "url": "/api/fax/accounts/{id}/users",
10483     "title": "Removes agents from a fax account",
10484     "examples": [
10485       {
10486         "title": "Example usage:",
10487         "content": "curl https://{domain}/api/fax/accounts/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
10488         "type": "json"
10489       }
10490     ],
10491     "name": "RemoveAgents",
10492     "group": "Fax_Accounts",
10493     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10494     "version": "0.0.0",
10495     "filename": "server/api/faxAccount/index.js",
10496     "groupTitle": "Fax_Accounts"
10497   },
10498   {
10499     "type": "delete",
10500     "url": "/api/fax/accounts/{id}/canned_answers",
10501     "title": "Removes canned answers from account",
10502     "examples": [
10503       {
10504         "title": "Example usage:",
10505         "content": "curl https://{domain}/api/fax/accounts/{id}/canned_answers?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
10506         "type": "json"
10507       }
10508     ],
10509     "name": "RemoveAnswers",
10510     "group": "Fax_Accounts",
10511     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10512     "version": "0.0.0",
10513     "filename": "server/api/faxAccount/index.js",
10514     "groupTitle": "Fax_Accounts"
10515   },
10516   {
10517     "type": "delete",
10518     "url": "/api/fax/accounts/{id}/dispositions",
10519     "title": "Removes dispositions from account",
10520     "examples": [
10521       {
10522         "title": "Example usage:",
10523         "content": "curl https://{domain}/api/fax/accounts/{id}/dispositions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
10524         "type": "json"
10525       }
10526     ],
10527     "name": "RemoveDispositions",
10528     "group": "Fax_Accounts",
10529     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10530     "version": "0.0.0",
10531     "filename": "server/api/faxAccount/index.js",
10532     "groupTitle": "Fax_Accounts"
10533   },
10534   {
10535     "type": "get",
10536     "url": "/api/fax/accounts/{id}",
10537     "title": "Gets a single Account",
10538     "examples": [
10539       {
10540         "title": "Example usage:",
10541         "content": "curl https://{domain}/api/fax/accounts/{id} -v -u {name}:{password}",
10542         "type": "json"
10543       }
10544     ],
10545     "name": "ShowAccounts",
10546     "group": "Fax_Accounts",
10547     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10548     "version": "0.0.0",
10549     "filename": "server/api/faxAccount/index.js",
10550     "groupTitle": "Fax_Accounts"
10551   },
10552   {
10553     "type": "post",
10554     "url": "/api/fax/accounts/{id}/canned_answers",
10555     "title": "Creates new canned answer",
10556     "examples": [
10557       {
10558         "title": "Example usage:",
10559         "content": "curl https://{domain}/api/fax/accounts/{id}/canned_answers -d '{\"name\": \"vip\"}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
10560         "type": "json"
10561       }
10562     ],
10563     "name": "addAnswer",
10564     "group": "Fax_Accounts",
10565     "parameter": {
10566       "fields": {
10567         "Body": [
10568           {
10569             "group": "Body",
10570             "type": "String",
10571             "optional": false,
10572             "field": "key",
10573             "description": ""
10574           },
10575           {
10576             "group": "Body",
10577             "type": "Text",
10578             "optional": false,
10579             "field": "value",
10580             "description": ""
10581           },
10582           {
10583             "group": "Body",
10584             "type": "String",
10585             "optional": true,
10586             "field": "description",
10587             "description": ""
10588           },
10589           {
10590             "group": "Body",
10591             "type": "Virtual",
10592             "optional": true,
10593             "field": "name",
10594             "description": ""
10595           }
10596         ]
10597       }
10598     },
10599     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10600     "version": "0.0.0",
10601     "filename": "server/api/faxAccount/index.js",
10602     "groupTitle": "Fax_Accounts"
10603   },
10604   {
10605     "type": "post",
10606     "url": "/api/fax/accounts/addaccountapplications",
10607     "title": "Creates new account and applications",
10608     "examples": [
10609       {
10610         "title": "Example usage:",
10611         "content": "curl https://{domain}/api/fax/accounts/addaccountapplications -d '[{\"name\": \"name\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
10612         "type": "json"
10613       }
10614     ],
10615     "name": "addApplications",
10616     "group": "Fax_Accounts",
10617     "parameter": {
10618       "fields": {
10619         "Body": [
10620           {
10621             "group": "Body",
10622             "type": "Integer",
10623             "optional": false,
10624             "field": "priority",
10625             "description": ""
10626           },
10627           {
10628             "group": "Body",
10629             "type": "String",
10630             "optional": false,
10631             "field": "app",
10632             "description": ""
10633           },
10634           {
10635             "group": "Body",
10636             "type": "Text",
10637             "optional": true,
10638             "field": "appdata",
10639             "description": ""
10640           },
10641           {
10642             "group": "Body",
10643             "type": "String",
10644             "optional": true,
10645             "field": "description",
10646             "description": ""
10647           },
10648           {
10649             "group": "Body",
10650             "type": "String",
10651             "optional": true,
10652             "field": "interval",
10653             "description": ""
10654           }
10655         ]
10656       }
10657     },
10658     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10659     "version": "0.0.0",
10660     "filename": "server/api/faxAccount/index.js",
10661     "groupTitle": "Fax_Accounts"
10662   },
10663   {
10664     "type": "post",
10665     "url": "/api/fax/accounts/{id}/applications",
10666     "title": "Creates new applications",
10667     "examples": [
10668       {
10669         "title": "Example usage:",
10670         "content": "curl https://{domain}/api/fax/accounts/{id}/applications -d '[{\"app\": \"queue\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
10671         "type": "json"
10672       }
10673     ],
10674     "name": "addApplications",
10675     "group": "Fax_Accounts",
10676     "parameter": {
10677       "fields": {
10678         "Body": [
10679           {
10680             "group": "Body",
10681             "type": "Integer",
10682             "optional": false,
10683             "field": "priority",
10684             "description": ""
10685           },
10686           {
10687             "group": "Body",
10688             "type": "String",
10689             "optional": false,
10690             "field": "app",
10691             "description": ""
10692           },
10693           {
10694             "group": "Body",
10695             "type": "Text",
10696             "optional": true,
10697             "field": "appdata",
10698             "description": ""
10699           },
10700           {
10701             "group": "Body",
10702             "type": "String",
10703             "optional": true,
10704             "field": "description",
10705             "description": ""
10706           },
10707           {
10708             "group": "Body",
10709             "type": "String",
10710             "optional": true,
10711             "field": "interval",
10712             "description": ""
10713           }
10714         ]
10715       }
10716     },
10717     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10718     "version": "0.0.0",
10719     "filename": "server/api/faxAccount/index.js",
10720     "groupTitle": "Fax_Accounts"
10721   },
10722   {
10723     "type": "post",
10724     "url": "/api/fax/accounts/{id}/dispositions",
10725     "title": "Creates new disposition",
10726     "examples": [
10727       {
10728         "title": "Example usage:",
10729         "content": "curl https://{domain}/api/fax/accounts/{id}/dispositions -d '{\"name\": \"vip\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
10730         "type": "json"
10731       }
10732     ],
10733     "name": "addDisposition",
10734     "group": "Fax_Accounts",
10735     "parameter": {
10736       "fields": {
10737         "Body": [
10738           {
10739             "group": "Body",
10740             "type": "String",
10741             "optional": false,
10742             "field": "name",
10743             "description": ""
10744           },
10745           {
10746             "group": "Body",
10747             "type": "String",
10748             "allowedValues": [
10749               "\"first\"",
10750               "\"second\"",
10751               "\"third\""
10752             ],
10753             "optional": false,
10754             "field": "level",
10755             "description": ""
10756           },
10757           {
10758             "group": "Body",
10759             "type": "String",
10760             "optional": true,
10761             "field": "description",
10762             "description": ""
10763           }
10764         ]
10765       }
10766     },
10767     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10768     "version": "0.0.0",
10769     "filename": "server/api/faxAccount/index.js",
10770     "groupTitle": "Fax_Accounts"
10771   },
10772   {
10773     "type": "post",
10774     "url": "/api/fax/accounts/{id}/interactions",
10775     "title": "Creates new interactions",
10776     "examples": [
10777       {
10778         "title": "Example usage:",
10779         "content": "curl https://{domain}/api/fax/accounts/{id}/interactions -d '[{\"host\": \"host\", \"username\": \"username\", \"password\": \"password\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
10780         "type": "json"
10781       }
10782     ],
10783     "name": "addInteraction",
10784     "group": "Fax_Accounts",
10785     "parameter": {
10786       "fields": {
10787         "Body": [
10788           {
10789             "group": "Body",
10790             "type": "Boolean",
10791             "optional": true,
10792             "field": "closed",
10793             "description": ""
10794           },
10795           {
10796             "group": "Body",
10797             "type": "String",
10798             "optional": true,
10799             "field": "closedAt",
10800             "description": ""
10801           },
10802           {
10803             "group": "Body",
10804             "type": "String",
10805             "optional": true,
10806             "field": "disposition",
10807             "description": ""
10808           },
10809           {
10810             "group": "Body",
10811             "type": "String",
10812             "optional": true,
10813             "field": "secondDisposition",
10814             "description": ""
10815           },
10816           {
10817             "group": "Body",
10818             "type": "String",
10819             "optional": true,
10820             "field": "thirdDisposition",
10821             "description": ""
10822           },
10823           {
10824             "group": "Body",
10825             "type": "String",
10826             "optional": true,
10827             "field": "note",
10828             "description": ""
10829           },
10830           {
10831             "group": "Body",
10832             "type": "String",
10833             "optional": true,
10834             "field": "read1stAt",
10835             "description": ""
10836           },
10837           {
10838             "group": "Body",
10839             "type": "String",
10840             "optional": true,
10841             "field": "fax",
10842             "description": ""
10843           },
10844           {
10845             "group": "Body",
10846             "type": "String",
10847             "allowedValues": [
10848               "\"in\"",
10849               "\"out\""
10850             ],
10851             "optional": false,
10852             "field": "firstMsgDirection",
10853             "description": ""
10854           },
10855           {
10856             "group": "Body",
10857             "type": "String",
10858             "optional": true,
10859             "field": "lastMsgAt",
10860             "description": ""
10861           },
10862           {
10863             "group": "Body",
10864             "type": "String",
10865             "allowedValues": [
10866               "\"in\"",
10867               "\"out\""
10868             ],
10869             "optional": false,
10870             "field": "lastMsgDirection",
10871             "description": ""
10872           }
10873         ]
10874       }
10875     },
10876     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10877     "version": "0.0.0",
10878     "filename": "server/api/faxAccount/index.js",
10879     "groupTitle": "Fax_Accounts"
10880   },
10881   {
10882     "type": "get",
10883     "url": "/api/fax/accounts/{id}/canned_answers",
10884     "title": "Gets account canned answers",
10885     "examples": [
10886       {
10887         "title": "Example usage:",
10888         "content": "curl https://{domain}/api/fax/accounts/{id}/canned_answers -v -u {name}:{password} -X GET",
10889         "type": "json"
10890       }
10891     ],
10892     "name": "getAnswers",
10893     "group": "Fax_Accounts",
10894     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10895     "version": "0.0.0",
10896     "filename": "server/api/faxAccount/index.js",
10897     "groupTitle": "Fax_Accounts"
10898   },
10899   {
10900     "type": "get",
10901     "url": "/api/fax/accounts/{id}/applications",
10902     "title": "Gets account pplications",
10903     "examples": [
10904       {
10905         "title": "Example usage:",
10906         "content": "curl https://{domain}/api/fax/accounts/{id}/applications -v -u {name}:{password} -X GET",
10907         "type": "json"
10908       }
10909     ],
10910     "name": "getApplications",
10911     "group": "Fax_Accounts",
10912     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10913     "version": "0.0.0",
10914     "filename": "server/api/faxAccount/index.js",
10915     "groupTitle": "Fax_Accounts"
10916   },
10917   {
10918     "type": "get",
10919     "url": "/api/fax/accounts/{id}/dispositions",
10920     "title": "Gets account dispositions",
10921     "examples": [
10922       {
10923         "title": "Example usage:",
10924         "content": "curl https://{domain}/api/fax/accounts/{id}/dispositions -v -u {name}:{password} -X GET",
10925         "type": "json"
10926       }
10927     ],
10928     "name": "getDispositions",
10929     "group": "Fax_Accounts",
10930     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10931     "version": "0.0.0",
10932     "filename": "server/api/faxAccount/index.js",
10933     "groupTitle": "Fax_Accounts"
10934   },
10935   {
10936     "type": "get",
10937     "url": "/api/fax/accounts/{id}/interactions",
10938     "title": "Gets account interactions",
10939     "examples": [
10940       {
10941         "title": "Example usage:",
10942         "content": "curl https://{domain}/api/fax/accounts/{id}/interactions -v -u {name}:{password} -X GET",
10943         "type": "json"
10944       }
10945     ],
10946     "name": "getInteraction",
10947     "group": "Fax_Accounts",
10948     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10949     "version": "0.0.0",
10950     "filename": "server/api/faxAccount/index.js",
10951     "groupTitle": "Fax_Accounts"
10952   },
10953   {
10954     "type": "get",
10955     "url": "/api/fax/accounts/{id}/messages",
10956     "title": "Gets account messages",
10957     "examples": [
10958       {
10959         "title": "Example usage:",
10960         "content": "curl https://{domain}/api/fax/accounts/{id}/messages -v -u {name}:{password} -X GET",
10961         "type": "json"
10962       }
10963     ],
10964     "name": "getMessages",
10965     "group": "Fax_Accounts",
10966     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10967     "version": "0.0.0",
10968     "filename": "server/api/faxAccount/index.js",
10969     "groupTitle": "Fax_Accounts"
10970   },
10971   {
10972     "type": "post",
10973     "url": "/api/fax/accounts/{id}/send",
10974     "title": "Send new fax",
10975     "examples": [
10976       {
10977         "title": "Example usage:",
10978         "content": "curl https://{domain}/api/fax/accounts/{id}/send -d '{from: '\"John Doe\" <123456>'}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
10979         "type": "json"
10980       }
10981     ],
10982     "name": "sendFax",
10983     "group": "Fax_Accounts",
10984     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10985     "version": "0.0.0",
10986     "filename": "server/api/faxAccount/index.js",
10987     "groupTitle": "Fax_Accounts"
10988   },
10989   {
10990     "type": "put",
10991     "url": "/api/fax/accounts/{id}",
10992     "title": "Update an existing Account",
10993     "examples": [
10994       {
10995         "title": "Example usage:",
10996         "content": "curl https://{domain}/api/fax/accounts/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
10997         "type": "json"
10998       }
10999     ],
11000     "name": "updateAccounts",
11001     "group": "Fax_Accounts",
11002     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11003     "version": "0.0.0",
11004     "filename": "server/api/faxAccount/index.js",
11005     "groupTitle": "Fax_Accounts"
11006   },
11007   {
11008     "type": "post",
11009     "url": "/api/fax/accounts/updateaccountapplications",
11010     "title": "Update account and applications",
11011     "examples": [
11012       {
11013         "title": "Example usage:",
11014         "content": "curl https://{domain}/api/fax/accounts/updateaccountapplications -d '[{\"name\": \"name\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
11015         "type": "json"
11016       }
11017     ],
11018     "name": "updateApplications",
11019     "group": "Fax_Accounts",
11020     "parameter": {
11021       "fields": {
11022         "Body": [
11023           {
11024             "group": "Body",
11025             "type": "Integer",
11026             "optional": false,
11027             "field": "priority",
11028             "description": ""
11029           },
11030           {
11031             "group": "Body",
11032             "type": "String",
11033             "optional": false,
11034             "field": "app",
11035             "description": ""
11036           },
11037           {
11038             "group": "Body",
11039             "type": "Text",
11040             "optional": true,
11041             "field": "appdata",
11042             "description": ""
11043           },
11044           {
11045             "group": "Body",
11046             "type": "String",
11047             "optional": true,
11048             "field": "description",
11049             "description": ""
11050           },
11051           {
11052             "group": "Body",
11053             "type": "String",
11054             "optional": true,
11055             "field": "interval",
11056             "description": ""
11057           }
11058         ]
11059       }
11060     },
11061     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11062     "version": "0.0.0",
11063     "filename": "server/api/faxAccount/index.js",
11064     "groupTitle": "Fax_Accounts"
11065   },
11066   {
11067     "type": "post",
11068     "url": "/api/fax/applications",
11069     "title": "Creates a new Application",
11070     "examples": [
11071       {
11072         "title": "Example usage:",
11073         "content": "curl https://{domain}/api/fax/applications -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
11074         "type": "json"
11075       }
11076     ],
11077     "name": "CreateApplications",
11078     "group": "Fax_Applications",
11079     "parameter": {
11080       "fields": {
11081         "Body": [
11082           {
11083             "group": "Body",
11084             "type": "Integer",
11085             "optional": false,
11086             "field": "priority",
11087             "description": ""
11088           },
11089           {
11090             "group": "Body",
11091             "type": "String",
11092             "optional": false,
11093             "field": "app",
11094             "description": ""
11095           },
11096           {
11097             "group": "Body",
11098             "type": "Text",
11099             "optional": true,
11100             "field": "appdata",
11101             "description": ""
11102           },
11103           {
11104             "group": "Body",
11105             "type": "String",
11106             "optional": true,
11107             "field": "description",
11108             "description": ""
11109           },
11110           {
11111             "group": "Body",
11112             "type": "String",
11113             "optional": true,
11114             "field": "interval",
11115             "description": ""
11116           }
11117         ]
11118       }
11119     },
11120     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11121     "version": "0.0.0",
11122     "filename": "server/api/faxApplication/index.js",
11123     "groupTitle": "Fax_Applications"
11124   },
11125   {
11126     "type": "delete",
11127     "url": "/api/fax/applications/{id}",
11128     "title": "Deletes a Application",
11129     "examples": [
11130       {
11131         "title": "Example usage:",
11132         "content": "curl https://{domain}/api/fax/applications/{id} -v -u {name}:{password} -X DELETE",
11133         "type": "json"
11134       }
11135     ],
11136     "name": "DeleteApplications",
11137     "group": "Fax_Applications",
11138     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11139     "version": "0.0.0",
11140     "filename": "server/api/faxApplication/index.js",
11141     "groupTitle": "Fax_Applications"
11142   },
11143   {
11144     "type": "get",
11145     "url": "/api/fax/applications",
11146     "title": "Gets a list of Applications",
11147     "examples": [
11148       {
11149         "title": "Example usage:",
11150         "content": "curl https://{domain}/api/fax/applications -v -u {name}:{password}",
11151         "type": "json"
11152       }
11153     ],
11154     "name": "GetApplications",
11155     "group": "Fax_Applications",
11156     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/fax/applications?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/fax/applications?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/fax/applications?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/fax/applications?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/fax/applications?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
11157     "version": "0.0.0",
11158     "filename": "server/api/faxApplication/index.js",
11159     "groupTitle": "Fax_Applications"
11160   },
11161   {
11162     "type": "get",
11163     "url": "/api/fax/applications/{id}",
11164     "title": "Gets a single Application",
11165     "examples": [
11166       {
11167         "title": "Example usage:",
11168         "content": "curl https://{domain}/api/fax/applications/{id} -v -u {name}:{password}",
11169         "type": "json"
11170       }
11171     ],
11172     "name": "ShowApplications",
11173     "group": "Fax_Applications",
11174     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11175     "version": "0.0.0",
11176     "filename": "server/api/faxApplication/index.js",
11177     "groupTitle": "Fax_Applications"
11178   },
11179   {
11180     "type": "put",
11181     "url": "/api/fax/applications/{id}",
11182     "title": "Update an existing Application",
11183     "examples": [
11184       {
11185         "title": "Example usage:",
11186         "content": "curl https://{domain}/api/fax/applications/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
11187         "type": "json"
11188       }
11189     ],
11190     "name": "updateApplications",
11191     "group": "Fax_Applications",
11192     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11193     "version": "0.0.0",
11194     "filename": "server/api/faxApplication/index.js",
11195     "groupTitle": "Fax_Applications"
11196   },
11197   {
11198     "type": "post",
11199     "url": "/api/fax/interactions/{id}/tags",
11200     "title": "Add tags to the interaction",
11201     "examples": [
11202       {
11203         "title": "Example usage:",
11204         "content": "curl https://{domain}/api/fax/interaction/{id}/tags -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
11205         "type": "json"
11206       }
11207     ],
11208     "name": "AddTags",
11209     "group": "Fax_Interactions",
11210     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11211     "version": "0.0.0",
11212     "filename": "server/api/faxInteraction/index.js",
11213     "groupTitle": "Fax_Interactions"
11214   },
11215   {
11216     "type": "post",
11217     "url": "/api/fax/interactions",
11218     "title": "Creates a new Interaction",
11219     "examples": [
11220       {
11221         "title": "Example usage:",
11222         "content": "curl https://{domain}/api/fax/interactions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
11223         "type": "json"
11224       }
11225     ],
11226     "name": "CreateInteractions",
11227     "group": "Fax_Interactions",
11228     "parameter": {
11229       "fields": {
11230         "Body": [
11231           {
11232             "group": "Body",
11233             "type": "Boolean",
11234             "optional": true,
11235             "field": "closed",
11236             "description": ""
11237           },
11238           {
11239             "group": "Body",
11240             "type": "String",
11241             "optional": true,
11242             "field": "closedAt",
11243             "description": ""
11244           },
11245           {
11246             "group": "Body",
11247             "type": "String",
11248             "optional": true,
11249             "field": "disposition",
11250             "description": ""
11251           },
11252           {
11253             "group": "Body",
11254             "type": "String",
11255             "optional": true,
11256             "field": "secondDisposition",
11257             "description": ""
11258           },
11259           {
11260             "group": "Body",
11261             "type": "String",
11262             "optional": true,
11263             "field": "thirdDisposition",
11264             "description": ""
11265           },
11266           {
11267             "group": "Body",
11268             "type": "String",
11269             "optional": true,
11270             "field": "note",
11271             "description": ""
11272           },
11273           {
11274             "group": "Body",
11275             "type": "String",
11276             "optional": true,
11277             "field": "read1stAt",
11278             "description": ""
11279           },
11280           {
11281             "group": "Body",
11282             "type": "String",
11283             "optional": true,
11284             "field": "fax",
11285             "description": ""
11286           },
11287           {
11288             "group": "Body",
11289             "type": "String",
11290             "allowedValues": [
11291               "\"in\"",
11292               "\"out\""
11293             ],
11294             "optional": false,
11295             "field": "firstMsgDirection",
11296             "description": ""
11297           },
11298           {
11299             "group": "Body",
11300             "type": "String",
11301             "optional": true,
11302             "field": "lastMsgAt",
11303             "description": ""
11304           },
11305           {
11306             "group": "Body",
11307             "type": "String",
11308             "allowedValues": [
11309               "\"in\"",
11310               "\"out\""
11311             ],
11312             "optional": false,
11313             "field": "lastMsgDirection",
11314             "description": ""
11315           }
11316         ]
11317       }
11318     },
11319     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11320     "version": "0.0.0",
11321     "filename": "server/api/faxInteraction/index.js",
11322     "groupTitle": "Fax_Interactions"
11323   },
11324   {
11325     "type": "delete",
11326     "url": "/api/fax/interactions/{id}",
11327     "title": "Deletes a Interaction",
11328     "examples": [
11329       {
11330         "title": "Example usage:",
11331         "content": "curl https://{domain}/api/fax/interactions/{id} -v -u {name}:{password} -X DELETE",
11332         "type": "json"
11333       }
11334     ],
11335     "name": "DeleteInteractions",
11336     "group": "Fax_Interactions",
11337     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11338     "version": "0.0.0",
11339     "filename": "server/api/faxInteraction/index.js",
11340     "groupTitle": "Fax_Interactions"
11341   },
11342   {
11343     "type": "get",
11344     "url": "/api/fax/interactions/describe",
11345     "title": "Gets table info about Interactions",
11346     "examples": [
11347       {
11348         "title": "Example usage:",
11349         "content": "curl https://{domain}/api/fax/interactions/describe -v -u {name}:{password}",
11350         "type": "json"
11351       }
11352     ],
11353     "name": "DescribeInteractions",
11354     "group": "Fax_Interactions",
11355     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11356     "version": "0.0.0",
11357     "filename": "server/api/faxInteraction/index.js",
11358     "groupTitle": "Fax_Interactions"
11359   },
11360   {
11361     "type": "get",
11362     "url": "/api/fax/interactions",
11363     "title": "Gets a list of Interactions",
11364     "examples": [
11365       {
11366         "title": "Example usage:",
11367         "content": "curl https://{domain}/api/fax/interactions -v -u {name}:{password}",
11368         "type": "json"
11369       }
11370     ],
11371     "name": "GetInteractions",
11372     "group": "Fax_Interactions",
11373     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/fax/interactions?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/fax/interactions?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/fax/interactions?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/fax/interactions?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/fax/interactions?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
11374     "version": "0.0.0",
11375     "filename": "server/api/faxInteraction/index.js",
11376     "groupTitle": "Fax_Interactions"
11377   },
11378   {
11379     "type": "delete",
11380     "url": "/api/fax/interactions/{id}/tags",
11381     "title": "Removes tags from interaction",
11382     "examples": [
11383       {
11384         "title": "Example usage:",
11385         "content": "curl https://{domain}/api/fax/interactions/{id}/tags?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
11386         "type": "json"
11387       }
11388     ],
11389     "name": "RemoveTags",
11390     "group": "Fax_Interactions",
11391     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11392     "version": "0.0.0",
11393     "filename": "server/api/faxInteraction/index.js",
11394     "groupTitle": "Fax_Interactions"
11395   },
11396   {
11397     "type": "get",
11398     "url": "/api/fax/interactions/{id}",
11399     "title": "Gets a single Interaction",
11400     "examples": [
11401       {
11402         "title": "Example usage:",
11403         "content": "curl https://{domain}/api/fax/interactions/{id} -v -u {name}:{password}",
11404         "type": "json"
11405       }
11406     ],
11407     "name": "ShowInteractions",
11408     "group": "Fax_Interactions",
11409     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11410     "version": "0.0.0",
11411     "filename": "server/api/faxInteraction/index.js",
11412     "groupTitle": "Fax_Interactions"
11413   },
11414   {
11415     "type": "post",
11416     "url": "/api/fax/interactions/{id}/messages",
11417     "title": "Creates new messages",
11418     "examples": [
11419       {
11420         "title": "Example usage:",
11421         "content": "curl https://{domain}/api/fax/interactions/{id}/messages -d '[{\"to\": \"+3901119886500\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
11422         "type": "json"
11423       }
11424     ],
11425     "name": "addMessage",
11426     "group": "Fax_Interactions",
11427     "parameter": {
11428       "fields": {
11429         "Body": [
11430           {
11431             "group": "Body",
11432             "type": "Text",
11433             "optional": false,
11434             "field": "body",
11435             "description": ""
11436           },
11437           {
11438             "group": "Body",
11439             "type": "Boolean",
11440             "optional": true,
11441             "field": "read",
11442             "description": ""
11443           },
11444           {
11445             "group": "Body",
11446             "type": "String",
11447             "allowedValues": [
11448               "\"in\"",
11449               "\"out\""
11450             ],
11451             "optional": false,
11452             "field": "direction",
11453             "description": ""
11454           },
11455           {
11456             "group": "Body",
11457             "type": "Text",
11458             "optional": true,
11459             "field": "failMessage",
11460             "description": ""
11461           },
11462           {
11463             "group": "Body",
11464             "type": "String",
11465             "optional": true,
11466             "field": "readAt",
11467             "description": ""
11468           }
11469         ]
11470       }
11471     },
11472     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11473     "version": "0.0.0",
11474     "filename": "server/api/faxInteraction/index.js",
11475     "groupTitle": "Fax_Interactions"
11476   },
11477   {
11478     "type": "get",
11479     "url": "/api/fax/interactions/{id}/download",
11480     "title": "Get interactions",
11481     "examples": [
11482       {
11483         "title": "Example usage:",
11484         "content": "curl https://{domain}/api/fax/interactions/{id}/download -v -u {name}:{password} -X GET",
11485         "type": "json"
11486       }
11487     ],
11488     "name": "download",
11489     "group": "Fax_Interactions",
11490     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11491     "version": "0.0.0",
11492     "filename": "server/api/faxInteraction/index.js",
11493     "groupTitle": "Fax_Interactions"
11494   },
11495   {
11496     "type": "get",
11497     "url": "/api/fax/interactions/{id}/messages",
11498     "title": "Gets interaction messages",
11499     "examples": [
11500       {
11501         "title": "Example usage:",
11502         "content": "curl https://{domain}/api/fax/interactions/{id}/messages -v -u {name}:{password} -X GET",
11503         "type": "json"
11504       }
11505     ],
11506     "name": "getMessages",
11507     "group": "Fax_Interactions",
11508     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11509     "version": "0.0.0",
11510     "filename": "server/api/faxInteraction/index.js",
11511     "groupTitle": "Fax_Interactions"
11512   },
11513   {
11514     "type": "put",
11515     "url": "/api/fax/interactions/{id}",
11516     "title": "Update an existing Interaction",
11517     "examples": [
11518       {
11519         "title": "Example usage:",
11520         "content": "curl https://{domain}/api/fax/interactions/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
11521         "type": "json"
11522       }
11523     ],
11524     "name": "updateInteractions",
11525     "group": "Fax_Interactions",
11526     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11527     "version": "0.0.0",
11528     "filename": "server/api/faxInteraction/index.js",
11529     "groupTitle": "Fax_Interactions"
11530   },
11531   {
11532     "type": "get",
11533     "url": "/api/fax/messages/{id}/download",
11534     "title": "Get message",
11535     "examples": [
11536       {
11537         "title": "Example usage:",
11538         "content": "curl https://{domain}/api/fax/messages/{id}/download -v -u {name}:{password} -X GET",
11539         "type": "json"
11540       }
11541     ],
11542     "name": "download",
11543     "group": "Fax_Message",
11544     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11545     "version": "0.0.0",
11546     "filename": "server/api/faxMessage/index.js",
11547     "groupTitle": "Fax_Message"
11548   },
11549   {
11550     "type": "delete",
11551     "url": "/api/fax/messages/{id}",
11552     "title": "Deletes a Message",
11553     "examples": [
11554       {
11555         "title": "Example usage:",
11556         "content": "curl https://{domain}/api/fax/messages/{id} -v -u {name}:{password} -X DELETE",
11557         "type": "json"
11558       }
11559     ],
11560     "name": "DeleteMessages",
11561     "group": "Fax_Messages",
11562     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11563     "version": "0.0.0",
11564     "filename": "server/api/faxMessage/index.js",
11565     "groupTitle": "Fax_Messages"
11566   },
11567   {
11568     "type": "get",
11569     "url": "/api/fax/messages/describe",
11570     "title": "Gets table info about Messages",
11571     "examples": [
11572       {
11573         "title": "Example usage:",
11574         "content": "curl https://{domain}/api/fax/messages/describe -v -u {name}:{password}",
11575         "type": "json"
11576       }
11577     ],
11578     "name": "DescribeMessages",
11579     "group": "Fax_Messages",
11580     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11581     "version": "0.0.0",
11582     "filename": "server/api/faxMessage/index.js",
11583     "groupTitle": "Fax_Messages"
11584   },
11585   {
11586     "type": "get",
11587     "url": "/api/fax/messages",
11588     "title": "Gets a list of Messages",
11589     "examples": [
11590       {
11591         "title": "Example usage:",
11592         "content": "curl https://{domain}/api/fax/messages -v -u {name}:{password}",
11593         "type": "json"
11594       }
11595     ],
11596     "name": "GetMessages",
11597     "group": "Fax_Messages",
11598     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/fax/messages?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/fax/messages?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/fax/messages?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/fax/messages?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/fax/messages?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
11599     "version": "0.0.0",
11600     "filename": "server/api/faxMessage/index.js",
11601     "groupTitle": "Fax_Messages"
11602   },
11603   {
11604     "type": "get",
11605     "url": "/api/fax/messages/{id}",
11606     "title": "Gets a single Message",
11607     "examples": [
11608       {
11609         "title": "Example usage:",
11610         "content": "curl https://{domain}/api/fax/messages/{id} -v -u {name}:{password}",
11611         "type": "json"
11612       }
11613     ],
11614     "name": "ShowMessages",
11615     "group": "Fax_Messages",
11616     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11617     "version": "0.0.0",
11618     "filename": "server/api/faxMessage/index.js",
11619     "groupTitle": "Fax_Messages"
11620   },
11621   {
11622     "type": "put",
11623     "url": "/api/fax/messages/{id}/accept",
11624     "title": "Accepts message",
11625     "examples": [
11626       {
11627         "title": "Example usage:",
11628         "content": "curl https://{domain}/api/fax/messages/{id}/accept \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
11629         "type": "json"
11630       }
11631     ],
11632     "name": "acceptMessage",
11633     "group": "Fax_Messages",
11634     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11635     "version": "0.0.0",
11636     "filename": "server/api/faxMessage/index.js",
11637     "groupTitle": "Fax_Messages"
11638   },
11639   {
11640     "type": "put",
11641     "url": "/api/fax/messages/{id}/reject",
11642     "title": "Rejects message",
11643     "examples": [
11644       {
11645         "title": "Example usage:",
11646         "content": "curl https://{domain}/api/fax/messages/{id}/reject \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
11647         "type": "json"
11648       }
11649     ],
11650     "name": "rejectMessage",
11651     "group": "Fax_Messages",
11652     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11653     "version": "0.0.0",
11654     "filename": "server/api/faxMessage/index.js",
11655     "groupTitle": "Fax_Messages"
11656   },
11657   {
11658     "type": "post",
11659     "url": "/api/fax/messages",
11660     "title": "Create message and send Fax",
11661     "examples": [
11662       {
11663         "title": "Example usage:",
11664         "content": "curl https://{domain}/api/fax/messages/{id}/reject \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
11665         "type": "json"
11666       }
11667     ],
11668     "name": "rejectMessage",
11669     "group": "Fax_Messages",
11670     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11671     "version": "0.0.0",
11672     "filename": "server/api/faxMessage/index.js",
11673     "groupTitle": "Fax_Messages"
11674   },
11675   {
11676     "type": "put",
11677     "url": "/api/fax/messages/{id}",
11678     "title": "Update an existing Message",
11679     "examples": [
11680       {
11681         "title": "Example usage:",
11682         "content": "curl https://{domain}/api/fax/messages/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
11683         "type": "json"
11684       }
11685     ],
11686     "name": "updateMessages",
11687     "group": "Fax_Messages",
11688     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11689     "version": "0.0.0",
11690     "filename": "server/api/faxMessage/index.js",
11691     "groupTitle": "Fax_Messages"
11692   },
11693   {
11694     "type": "post",
11695     "url": "/api/fax/reports/queue",
11696     "title": "Creates a new Fax Queue Report",
11697     "examples": [
11698       {
11699         "title": "Example usage:",
11700         "content": "curl https://{domain}/api/fax/reports/queue -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
11701         "type": "json"
11702       }
11703     ],
11704     "name": "CreateFax_Queue_Reports",
11705     "group": "Fax_Queue_Reports",
11706     "parameter": {
11707       "fields": {
11708         "Body": [
11709           {
11710             "group": "Body",
11711             "type": "String",
11712             "optional": false,
11713             "field": "uniqueid",
11714             "description": ""
11715           },
11716           {
11717             "group": "Body",
11718             "type": "String",
11719             "optional": true,
11720             "field": "from",
11721             "description": ""
11722           },
11723           {
11724             "group": "Body",
11725             "type": "String",
11726             "optional": true,
11727             "field": "joinAt",
11728             "description": ""
11729           },
11730           {
11731             "group": "Body",
11732             "type": "String",
11733             "optional": true,
11734             "field": "leaveAt",
11735             "description": ""
11736           },
11737           {
11738             "group": "Body",
11739             "type": "String",
11740             "optional": true,
11741             "field": "acceptAt",
11742             "description": ""
11743           },
11744           {
11745             "group": "Body",
11746             "type": "String",
11747             "optional": true,
11748             "field": "exitAt",
11749             "description": ""
11750           },
11751           {
11752             "group": "Body",
11753             "type": "String",
11754             "optional": true,
11755             "field": "reason",
11756             "description": ""
11757           }
11758         ]
11759       }
11760     },
11761     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11762     "version": "0.0.0",
11763     "filename": "server/api/faxQueueReport/index.js",
11764     "groupTitle": "Fax_Queue_Reports"
11765   },
11766   {
11767     "type": "delete",
11768     "url": "/api/fax/reports/queue/{id}",
11769     "title": "Deletes a Fax Queue Report",
11770     "examples": [
11771       {
11772         "title": "Example usage:",
11773         "content": "curl https://{domain}/api/fax/reports/queue/{id} -v -u {name}:{password} -X DELETE",
11774         "type": "json"
11775       }
11776     ],
11777     "name": "DeleteFax_Queue_Reports",
11778     "group": "Fax_Queue_Reports",
11779     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11780     "version": "0.0.0",
11781     "filename": "server/api/faxQueueReport/index.js",
11782     "groupTitle": "Fax_Queue_Reports"
11783   },
11784   {
11785     "type": "get",
11786     "url": "/api/fax/reports/queue/describe",
11787     "title": "Gets table info about Fax Queue Reports",
11788     "examples": [
11789       {
11790         "title": "Example usage:",
11791         "content": "curl https://{domain}/api/fax/reports/queue/describe -v -u {name}:{password}",
11792         "type": "json"
11793       }
11794     ],
11795     "name": "DescribeFax_Queue_Reports",
11796     "group": "Fax_Queue_Reports",
11797     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11798     "version": "0.0.0",
11799     "filename": "server/api/faxQueueReport/index.js",
11800     "groupTitle": "Fax_Queue_Reports"
11801   },
11802   {
11803     "type": "get",
11804     "url": "/api/fax/reports/queue",
11805     "title": "Gets a list of Fax Queue Reports",
11806     "examples": [
11807       {
11808         "title": "Example usage:",
11809         "content": "curl https://{domain}/api/fax/reports/queue -v -u {name}:{password}",
11810         "type": "json"
11811       }
11812     ],
11813     "name": "GetFax_Queue_Reports",
11814     "group": "Fax_Queue_Reports",
11815     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/fax/reports/queue?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/fax/reports/queue?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/fax/reports/queue?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/fax/reports/queue?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/fax/reports/queue?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
11816     "version": "0.0.0",
11817     "filename": "server/api/faxQueueReport/index.js",
11818     "groupTitle": "Fax_Queue_Reports"
11819   },
11820   {
11821     "type": "get",
11822     "url": "/api/fax/reports/queue/{id}",
11823     "title": "Gets a single Fax Queue Report",
11824     "examples": [
11825       {
11826         "title": "Example usage:",
11827         "content": "curl https://{domain}/api/fax/reports/queue/{id} -v -u {name}:{password}",
11828         "type": "json"
11829       }
11830     ],
11831     "name": "ShowFax_Queue_Reports",
11832     "group": "Fax_Queue_Reports",
11833     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11834     "version": "0.0.0",
11835     "filename": "server/api/faxQueueReport/index.js",
11836     "groupTitle": "Fax_Queue_Reports"
11837   },
11838   {
11839     "type": "put",
11840     "url": "/api/fax/reports/queue/{id}",
11841     "title": "Update an existing Fax Queue Report",
11842     "examples": [
11843       {
11844         "title": "Example usage:",
11845         "content": "curl https://{domain}/api/fax/reports/queue/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
11846         "type": "json"
11847       }
11848     ],
11849     "name": "updateFax_Queue_Reports",
11850     "group": "Fax_Queue_Reports",
11851     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11852     "version": "0.0.0",
11853     "filename": "server/api/faxQueueReport/index.js",
11854     "groupTitle": "Fax_Queue_Reports"
11855   },
11856   {
11857     "type": "post",
11858     "url": "/api/fax/queues/{id}/users",
11859     "title": "Add agents to a queue",
11860     "examples": [
11861       {
11862         "title": "Example usage:",
11863         "content": "curl https://{domain}/api/fax/queues/{id}/users -d '{\"ids\": [1,2], \"penalty\": 2}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
11864         "type": "json"
11865       }
11866     ],
11867     "name": "AddAgents",
11868     "group": "Fax_Queues",
11869     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11870     "version": "0.0.0",
11871     "filename": "server/api/faxQueue/index.js",
11872     "groupTitle": "Fax_Queues"
11873   },
11874   {
11875     "type": "post",
11876     "url": "/api/fax/queues/{id}/teams",
11877     "title": "Add teams to a queue",
11878     "examples": [
11879       {
11880         "title": "Example usage:",
11881         "content": "curl https://{domain}/api/fax/queues/{id}/teams -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
11882         "type": "json"
11883       }
11884     ],
11885     "name": "AddTeams",
11886     "group": "Fax_Queues",
11887     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11888     "version": "0.0.0",
11889     "filename": "server/api/faxQueue/index.js",
11890     "groupTitle": "Fax_Queues"
11891   },
11892   {
11893     "type": "post",
11894     "url": "/api/fax/queues",
11895     "title": "Creates a new Queue",
11896     "examples": [
11897       {
11898         "title": "Example usage:",
11899         "content": "curl https://{domain}/api/fax/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
11900         "type": "json"
11901       }
11902     ],
11903     "name": "CreateQueues",
11904     "group": "Fax_Queues",
11905     "parameter": {
11906       "fields": {
11907         "Body": [
11908           {
11909             "group": "Body",
11910             "type": "String",
11911             "optional": false,
11912             "field": "name",
11913             "description": ""
11914           },
11915           {
11916             "group": "Body",
11917             "type": "String",
11918             "optional": true,
11919             "field": "description",
11920             "description": ""
11921           },
11922           {
11923             "group": "Body",
11924             "type": "Integer",
11925             "optional": false,
11926             "field": "timeout",
11927             "description": ""
11928           },
11929           {
11930             "group": "Body",
11931             "type": "String",
11932             "allowedValues": [
11933               "\"rrmemory\"",
11934               "\"beepall\"",
11935               "\"roundrobin\""
11936             ],
11937             "optional": false,
11938             "field": "strategy",
11939             "description": ""
11940           },
11941           {
11942             "group": "Body",
11943             "type": "Integer",
11944             "optional": true,
11945             "field": "lastAgent",
11946             "description": ""
11947           }
11948         ]
11949       }
11950     },
11951     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11952     "version": "0.0.0",
11953     "filename": "server/api/faxQueue/index.js",
11954     "groupTitle": "Fax_Queues"
11955   },
11956   {
11957     "type": "delete",
11958     "url": "/api/fax/queues/{id}",
11959     "title": "Deletes a Queue",
11960     "examples": [
11961       {
11962         "title": "Example usage:",
11963         "content": "curl https://{domain}/api/fax/queues/{id} -v -u {name}:{password} -X DELETE",
11964         "type": "json"
11965       }
11966     ],
11967     "name": "DeleteQueues",
11968     "group": "Fax_Queues",
11969     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11970     "version": "0.0.0",
11971     "filename": "server/api/faxQueue/index.js",
11972     "groupTitle": "Fax_Queues"
11973   },
11974   {
11975     "type": "get",
11976     "url": "/api/fax/queues/describe",
11977     "title": "Gets table info about Queues",
11978     "examples": [
11979       {
11980         "title": "Example usage:",
11981         "content": "curl https://{domain}/api/fax/queues/describe -v -u {name}:{password}",
11982         "type": "json"
11983       }
11984     ],
11985     "name": "DescribeQueues",
11986     "group": "Fax_Queues",
11987     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11988     "version": "0.0.0",
11989     "filename": "server/api/faxQueue/index.js",
11990     "groupTitle": "Fax_Queues"
11991   },
11992   {
11993     "type": "get",
11994     "url": "/api/fax/queues/{id}/users",
11995     "title": "Gets queue agents",
11996     "examples": [
11997       {
11998         "title": "Example usage:",
11999         "content": "curl https://{domain}/api/fax/queues/{id}/users -v -u {name}:{password} -X POST",
12000         "type": "json"
12001       }
12002     ],
12003     "name": "GetAgents",
12004     "group": "Fax_Queues",
12005     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12006     "version": "0.0.0",
12007     "filename": "server/api/faxQueue/index.js",
12008     "groupTitle": "Fax_Queues"
12009   },
12010   {
12011     "type": "get",
12012     "url": "/api/fax/queues/{id}/members",
12013     "title": "GetMembers",
12014     "examples": [
12015       {
12016         "title": "Example usage:",
12017         "content": "curl https://{domain}/api/fax/queues/{id}/members  -v -u {name}:{password}",
12018         "type": "json"
12019       }
12020     ],
12021     "name": "GetMembers",
12022     "group": "Fax_Queues",
12023     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12024     "version": "0.0.0",
12025     "filename": "server/api/faxQueue/index.js",
12026     "groupTitle": "Fax_Queues"
12027   },
12028   {
12029     "type": "get",
12030     "url": "/api/fax/queues",
12031     "title": "Gets a list of Queues",
12032     "examples": [
12033       {
12034         "title": "Example usage:",
12035         "content": "curl https://{domain}/api/fax/queues -v -u {name}:{password}",
12036         "type": "json"
12037       }
12038     ],
12039     "name": "GetQueues",
12040     "group": "Fax_Queues",
12041     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/fax/queues?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/fax/queues?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/fax/queues?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/fax/queues?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/fax/queues?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
12042     "version": "0.0.0",
12043     "filename": "server/api/faxQueue/index.js",
12044     "groupTitle": "Fax_Queues"
12045   },
12046   {
12047     "type": "get",
12048     "url": "/api/fax/queues/{id}/teams",
12049     "title": "Gets queues list",
12050     "examples": [
12051       {
12052         "title": "Example usage:",
12053         "content": "curl https://{domain}/api/fax/queues/{id}/teams -v -u {name}:{password}",
12054         "type": "json"
12055       }
12056     ],
12057     "name": "GetTeams",
12058     "group": "Fax_Queues",
12059     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12060     "version": "0.0.0",
12061     "filename": "server/api/faxQueue/index.js",
12062     "groupTitle": "Fax_Queues"
12063   },
12064   {
12065     "type": "delete",
12066     "url": "/api/fax/queues/{id}/users",
12067     "title": "Removes agents from a queue",
12068     "examples": [
12069       {
12070         "title": "Example usage:",
12071         "content": "curl https://{domain}/api/fax/queues/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
12072         "type": "json"
12073       }
12074     ],
12075     "name": "RemoveAgents",
12076     "group": "Fax_Queues",
12077     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12078     "version": "0.0.0",
12079     "filename": "server/api/faxQueue/index.js",
12080     "groupTitle": "Fax_Queues"
12081   },
12082   {
12083     "type": "get",
12084     "url": "/api/fax/queues/{id}",
12085     "title": "Gets a single Queue",
12086     "examples": [
12087       {
12088         "title": "Example usage:",
12089         "content": "curl https://{domain}/api/fax/queues/{id} -v -u {name}:{password}",
12090         "type": "json"
12091       }
12092     ],
12093     "name": "ShowQueues",
12094     "group": "Fax_Queues",
12095     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12096     "version": "0.0.0",
12097     "filename": "server/api/faxQueue/index.js",
12098     "groupTitle": "Fax_Queues"
12099   },
12100   {
12101     "type": "put",
12102     "url": "/api/fax/queues/{id}",
12103     "title": "Update an existing Queue",
12104     "examples": [
12105       {
12106         "title": "Example usage:",
12107         "content": "curl https://{domain}/api/fax/queues/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
12108         "type": "json"
12109       }
12110     ],
12111     "name": "updateQueues",
12112     "group": "Fax_Queues",
12113     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12114     "version": "0.0.0",
12115     "filename": "server/api/faxQueue/index.js",
12116     "groupTitle": "Fax_Queues"
12117   },
12118   {
12119     "type": "post",
12120     "url": "/api/fax/reports/transfer",
12121     "title": "Creates a new Fax Transfer Report",
12122     "examples": [
12123       {
12124         "title": "Example usage:",
12125         "content": "curl https://{domain}/api/fax/reports/transfer -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
12126         "type": "json"
12127       }
12128     ],
12129     "name": "CreateFax_Transfer_Reports",
12130     "group": "Fax_Transfer_Reports",
12131     "parameter": {
12132       "fields": {
12133         "Body": [
12134           {
12135             "group": "Body",
12136             "type": "String",
12137             "optional": false,
12138             "field": "uniqueid",
12139             "description": ""
12140           },
12141           {
12142             "group": "Body",
12143             "type": "String",
12144             "allowedValues": [
12145               "\"account\"",
12146               "\"agent\"",
12147               "\"queue\""
12148             ],
12149             "optional": false,
12150             "field": "type",
12151             "description": ""
12152           },
12153           {
12154             "group": "Body",
12155             "type": "String",
12156             "optional": false,
12157             "field": "transferredAt",
12158             "description": ""
12159           }
12160         ]
12161       }
12162     },
12163     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12164     "version": "0.0.0",
12165     "filename": "server/api/faxTransferReport/index.js",
12166     "groupTitle": "Fax_Transfer_Reports"
12167   },
12168   {
12169     "type": "delete",
12170     "url": "/api/fax/reports/transfer/{id}",
12171     "title": "Deletes a Fax Transfer Report",
12172     "examples": [
12173       {
12174         "title": "Example usage:",
12175         "content": "curl https://{domain}/api/fax/reports/transfer/{id} -v -u {name}:{password} -X DELETE",
12176         "type": "json"
12177       }
12178     ],
12179     "name": "DeleteFax_Transfer_Reports",
12180     "group": "Fax_Transfer_Reports",
12181     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12182     "version": "0.0.0",
12183     "filename": "server/api/faxTransferReport/index.js",
12184     "groupTitle": "Fax_Transfer_Reports"
12185   },
12186   {
12187     "type": "get",
12188     "url": "/api/fax/reports/transfer/describe",
12189     "title": "Gets table info about Fax Transfer Reports",
12190     "examples": [
12191       {
12192         "title": "Example usage:",
12193         "content": "curl https://{domain}/api/fax/reports/transfer/describe -v -u {name}:{password}",
12194         "type": "json"
12195       }
12196     ],
12197     "name": "DescribeFax_Transfer_Reports",
12198     "group": "Fax_Transfer_Reports",
12199     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12200     "version": "0.0.0",
12201     "filename": "server/api/faxTransferReport/index.js",
12202     "groupTitle": "Fax_Transfer_Reports"
12203   },
12204   {
12205     "type": "get",
12206     "url": "/api/fax/reports/transfer",
12207     "title": "Gets a list of Fax Transfer Reports",
12208     "examples": [
12209       {
12210         "title": "Example usage:",
12211         "content": "curl https://{domain}/api/fax/reports/transfer -v -u {name}:{password}",
12212         "type": "json"
12213       }
12214     ],
12215     "name": "GetFax_Transfer_Reports",
12216     "group": "Fax_Transfer_Reports",
12217     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/fax/reports/transfer?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/fax/reports/transfer?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/fax/reports/transfer?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/fax/reports/transfer?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/fax/reports/transfer?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
12218     "version": "0.0.0",
12219     "filename": "server/api/faxTransferReport/index.js",
12220     "groupTitle": "Fax_Transfer_Reports"
12221   },
12222   {
12223     "type": "get",
12224     "url": "/api/fax/reports/transfer/{id}",
12225     "title": "Gets a single Fax Transfer Report",
12226     "examples": [
12227       {
12228         "title": "Example usage:",
12229         "content": "curl https://{domain}/api/fax/reports/transfer/{id} -v -u {name}:{password}",
12230         "type": "json"
12231       }
12232     ],
12233     "name": "ShowFax_Transfer_Reports",
12234     "group": "Fax_Transfer_Reports",
12235     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12236     "version": "0.0.0",
12237     "filename": "server/api/faxTransferReport/index.js",
12238     "groupTitle": "Fax_Transfer_Reports"
12239   },
12240   {
12241     "type": "put",
12242     "url": "/api/fax/reports/transfer/{id}",
12243     "title": "Update an existing Fax Transfer Report",
12244     "examples": [
12245       {
12246         "title": "Example usage:",
12247         "content": "curl https://{domain}/api/fax/reports/transfer/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
12248         "type": "json"
12249       }
12250     ],
12251     "name": "updateFax_Transfer_Reports",
12252     "group": "Fax_Transfer_Reports",
12253     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12254     "version": "0.0.0",
12255     "filename": "server/api/faxTransferReport/index.js",
12256     "groupTitle": "Fax_Transfer_Reports"
12257   },
12258   {
12259     "type": "post",
12260     "url": "/api/integrations/freshdesk/accounts",
12261     "title": "Creates a new Freshdesk Account",
12262     "examples": [
12263       {
12264         "title": "Example usage:",
12265         "content": "curl https://{domain}/api/integrations/freshdesk/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
12266         "type": "json"
12267       }
12268     ],
12269     "name": "CreateFreshdesk_Accounts",
12270     "group": "Freshdesk_Accounts",
12271     "parameter": {
12272       "fields": {
12273         "Body": [
12274           {
12275             "group": "Body",
12276             "type": "String",
12277             "optional": true,
12278             "field": "name",
12279             "description": ""
12280           },
12281           {
12282             "group": "Body",
12283             "type": "String",
12284             "optional": true,
12285             "field": "description",
12286             "description": ""
12287           },
12288           {
12289             "group": "Body",
12290             "type": "String",
12291             "optional": true,
12292             "field": "username",
12293             "description": ""
12294           },
12295           {
12296             "group": "Body",
12297             "type": "String",
12298             "optional": true,
12299             "field": "apiKey",
12300             "description": ""
12301           },
12302           {
12303             "group": "Body",
12304             "type": "String",
12305             "optional": true,
12306             "field": "remoteUri",
12307             "description": ""
12308           },
12309           {
12310             "group": "Body",
12311             "type": "String",
12312             "optional": false,
12313             "field": "serverUrl",
12314             "description": ""
12315           }
12316         ]
12317       }
12318     },
12319     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12320     "version": "0.0.0",
12321     "filename": "server/api/intFreshdeskAccount/index.js",
12322     "groupTitle": "Freshdesk_Accounts"
12323   },
12324   {
12325     "type": "delete",
12326     "url": "/api/integrations/freshdesk/accounts/{id}",
12327     "title": "Deletes a Freshdesk Account",
12328     "examples": [
12329       {
12330         "title": "Example usage:",
12331         "content": "curl https://{domain}/api/integrations/freshdesk/accounts/{id} -v -u {name}:{password} -X DELETE",
12332         "type": "json"
12333       }
12334     ],
12335     "name": "DeleteFreshdesk_Accounts",
12336     "group": "Freshdesk_Accounts",
12337     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12338     "version": "0.0.0",
12339     "filename": "server/api/intFreshdeskAccount/index.js",
12340     "groupTitle": "Freshdesk_Accounts"
12341   },
12342   {
12343     "type": "get",
12344     "url": "/api/integrations/freshdesk/accounts",
12345     "title": "Gets a list of Freshdesk Accounts",
12346     "examples": [
12347       {
12348         "title": "Example usage:",
12349         "content": "curl https://{domain}/api/integrations/freshdesk/accounts -v -u {name}:{password}",
12350         "type": "json"
12351       }
12352     ],
12353     "name": "GetFreshdesk_Accounts",
12354     "group": "Freshdesk_Accounts",
12355     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/integrations/freshdesk/accounts?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/integrations/freshdesk/accounts?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/integrations/freshdesk/accounts?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/integrations/freshdesk/accounts?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/integrations/freshdesk/accounts?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
12356     "version": "0.0.0",
12357     "filename": "server/api/intFreshdeskAccount/index.js",
12358     "groupTitle": "Freshdesk_Accounts"
12359   },
12360   {
12361     "type": "get",
12362     "url": "/api/integrations/freshdesk/accounts/{id}",
12363     "title": "Gets a single Freshdesk Account",
12364     "examples": [
12365       {
12366         "title": "Example usage:",
12367         "content": "curl https://{domain}/api/integrations/freshdesk/accounts/{id} -v -u {name}:{password}",
12368         "type": "json"
12369       }
12370     ],
12371     "name": "ShowFreshdesk_Accounts",
12372     "group": "Freshdesk_Accounts",
12373     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12374     "version": "0.0.0",
12375     "filename": "server/api/intFreshdeskAccount/index.js",
12376     "groupTitle": "Freshdesk_Accounts"
12377   },
12378   {
12379     "type": "post",
12380     "url": "/api/integrations/freshdesk/accounts/{id}/configurations",
12381     "title": "Creates new configuration",
12382     "examples": [
12383       {
12384         "title": "Example usage:",
12385         "content": "curl https://{domain}/api/integrations/freshdesk/accounts/{id}/configurations -d '{\"name\": \"conf1\"}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
12386         "type": "json"
12387       }
12388     ],
12389     "name": "addConfiguration",
12390     "group": "Freshdesk_Accounts",
12391     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12392     "version": "0.0.0",
12393     "filename": "server/api/intFreshdeskAccount/index.js",
12394     "groupTitle": "Freshdesk_Accounts"
12395   },
12396   {
12397     "type": "get",
12398     "url": "/api/integrations/freshdesk/accounts/{id}/configurations",
12399     "title": "Gets account configurations",
12400     "examples": [
12401       {
12402         "title": "Example usage:",
12403         "content": "curl https://{domain}/api/integrations/freshdesk/accounts/{id}/configurations -v -u {name}:{password} -X GET",
12404         "type": "json"
12405       }
12406     ],
12407     "name": "getConfigurations",
12408     "group": "Freshdesk_Accounts",
12409     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12410     "version": "0.0.0",
12411     "filename": "server/api/intFreshdeskAccount/index.js",
12412     "groupTitle": "Freshdesk_Accounts"
12413   },
12414   {
12415     "type": "get",
12416     "url": "/api/integrations/freshdesk/accounts/{id}/fields",
12417     "title": "Gets account fields",
12418     "examples": [
12419       {
12420         "title": "Example usage:",
12421         "content": "curl https://{domain}/api/integrations/freshdesk/accounts/{id}/fields -v -u {name}:{password} -X GET",
12422         "type": "json"
12423       }
12424     ],
12425     "name": "getFields",
12426     "group": "Freshdesk_Accounts",
12427     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12428     "version": "0.0.0",
12429     "filename": "server/api/intFreshdeskAccount/index.js",
12430     "groupTitle": "Freshdesk_Accounts"
12431   },
12432   {
12433     "type": "put",
12434     "url": "/api/integrations/freshdesk/accounts/{id}",
12435     "title": "Update an existing Freshdesk Account",
12436     "examples": [
12437       {
12438         "title": "Example usage:",
12439         "content": "curl https://{domain}/api/integrations/freshdesk/accounts/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
12440         "type": "json"
12441       }
12442     ],
12443     "name": "updateFreshdesk_Accounts",
12444     "group": "Freshdesk_Accounts",
12445     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12446     "version": "0.0.0",
12447     "filename": "server/api/intFreshdeskAccount/index.js",
12448     "groupTitle": "Freshdesk_Accounts"
12449   },
12450   {
12451     "type": "post",
12452     "url": "/api/integrations/freshdesk/configurations",
12453     "title": "Creates a new Freshdesk Configuration",
12454     "examples": [
12455       {
12456         "title": "Example usage:",
12457         "content": "curl https://{domain}/api/integrations/freshdesk/configurations -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
12458         "type": "json"
12459       }
12460     ],
12461     "name": "CreateFreshdesk_Configurations",
12462     "group": "Freshdesk_Configurations",
12463     "parameter": {
12464       "fields": {
12465         "Body": [
12466           {
12467             "group": "Body",
12468             "type": "String",
12469             "optional": true,
12470             "field": "name",
12471             "description": ""
12472           },
12473           {
12474             "group": "Body",
12475             "type": "String",
12476             "optional": true,
12477             "field": "description",
12478             "description": ""
12479           }
12480         ]
12481       }
12482     },
12483     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12484     "version": "0.0.0",
12485     "filename": "server/api/intFreshdeskConfiguration/index.js",
12486     "groupTitle": "Freshdesk_Configurations"
12487   },
12488   {
12489     "type": "delete",
12490     "url": "/api/integrations/freshdesk/configurations/{id}",
12491     "title": "Deletes a Freshdesk Configuration",
12492     "examples": [
12493       {
12494         "title": "Example usage:",
12495         "content": "curl https://{domain}/api/integrations/freshdesk/configurations/{id} -v -u {name}:{password} -X DELETE",
12496         "type": "json"
12497       }
12498     ],
12499     "name": "DeleteFreshdesk_Configurations",
12500     "group": "Freshdesk_Configurations",
12501     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12502     "version": "0.0.0",
12503     "filename": "server/api/intFreshdeskConfiguration/index.js",
12504     "groupTitle": "Freshdesk_Configurations"
12505   },
12506   {
12507     "type": "get",
12508     "url": "/api/integrations/freshdesk/configurations",
12509     "title": "Gets a list of Freshdesk Configurations",
12510     "examples": [
12511       {
12512         "title": "Example usage:",
12513         "content": "curl https://{domain}/api/integrations/freshdesk/configurations -v -u {name}:{password}",
12514         "type": "json"
12515       }
12516     ],
12517     "name": "GetFreshdesk_Configurations",
12518     "group": "Freshdesk_Configurations",
12519     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/integrations/freshdesk/configurations?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/integrations/freshdesk/configurations?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/integrations/freshdesk/configurations?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/integrations/freshdesk/configurations?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/integrations/freshdesk/configurations?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
12520     "version": "0.0.0",
12521     "filename": "server/api/intFreshdeskConfiguration/index.js",
12522     "groupTitle": "Freshdesk_Configurations"
12523   },
12524   {
12525     "type": "get",
12526     "url": "/api/integrations/freshdesk/configurations/{id}",
12527     "title": "Gets a single Freshdesk Configuration",
12528     "examples": [
12529       {
12530         "title": "Example usage:",
12531         "content": "curl https://{domain}/api/integrations/freshdesk/configurations/{id} -v -u {name}:{password}",
12532         "type": "json"
12533       }
12534     ],
12535     "name": "ShowFreshdesk_Configurations",
12536     "group": "Freshdesk_Configurations",
12537     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12538     "version": "0.0.0",
12539     "filename": "server/api/intFreshdeskConfiguration/index.js",
12540     "groupTitle": "Freshdesk_Configurations"
12541   },
12542   {
12543     "type": "get",
12544     "url": "/api/integrations/freshdesk/configurations/{id}/descriptions",
12545     "title": "Gets configurations descriptions",
12546     "examples": [
12547       {
12548         "title": "Example usage:",
12549         "content": "curl https://{domain}/api/integrations/freshdesk/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
12550         "type": "json"
12551       }
12552     ],
12553     "name": "getDescriptions",
12554     "group": "Freshdesk_Configurations",
12555     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12556     "version": "0.0.0",
12557     "filename": "server/api/intFreshdeskConfiguration/index.js",
12558     "groupTitle": "Freshdesk_Configurations"
12559   },
12560   {
12561     "type": "get",
12562     "url": "/api/integrations/freshdesk/configurations/{id}/fields",
12563     "title": "Gets configurations fields",
12564     "examples": [
12565       {
12566         "title": "Example usage:",
12567         "content": "curl https://{domain}/api/integrations/freshdesk/configurations/{id}/fields -v -u {name}:{password} -X GET",
12568         "type": "json"
12569       }
12570     ],
12571     "name": "getFields",
12572     "group": "Freshdesk_Configurations",
12573     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12574     "version": "0.0.0",
12575     "filename": "server/api/intFreshdeskConfiguration/index.js",
12576     "groupTitle": "Freshdesk_Configurations"
12577   },
12578   {
12579     "type": "get",
12580     "url": "/api/integrations/freshdesk/configurations/{id}/subjects",
12581     "title": "Gets configurations subjects",
12582     "examples": [
12583       {
12584         "title": "Example usage:",
12585         "content": "curl https://{domain}/api/integrations/freshdesk/configurations/{id}/subjects -v -u {name}:{password} -X GET",
12586         "type": "json"
12587       }
12588     ],
12589     "name": "getSubjects",
12590     "group": "Freshdesk_Configurations",
12591     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12592     "version": "0.0.0",
12593     "filename": "server/api/intFreshdeskConfiguration/index.js",
12594     "groupTitle": "Freshdesk_Configurations"
12595   },
12596   {
12597     "type": "get",
12598     "url": "/api/integrations/freshdesk/configurations/{id}/tags",
12599     "title": "Gets configurations tags",
12600     "examples": [
12601       {
12602         "title": "Example usage:",
12603         "content": "curl https://{domain}/api/integrations/freshdesk/configurations/{id}/tags -v -u {name}:{password} -X GET",
12604         "type": "json"
12605       }
12606     ],
12607     "name": "getTags",
12608     "group": "Freshdesk_Configurations",
12609     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12610     "version": "0.0.0",
12611     "filename": "server/api/intFreshdeskConfiguration/index.js",
12612     "groupTitle": "Freshdesk_Configurations"
12613   },
12614   {
12615     "type": "post",
12616     "url": "/api/integrations/freshdesk/configurations/{id}/tags",
12617     "title": "Sets new tags",
12618     "examples": [
12619       {
12620         "title": "Example usage:",
12621         "content": "curl https://{domain}/api/integrations/freshdesk/configurations/{id}/tags -d '{\"ids\": [1,12]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
12622         "type": "json"
12623       }
12624     ],
12625     "name": "setTags",
12626     "group": "Freshdesk_Configurations",
12627     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12628     "version": "0.0.0",
12629     "filename": "server/api/intFreshdeskConfiguration/index.js",
12630     "groupTitle": "Freshdesk_Configurations"
12631   },
12632   {
12633     "type": "put",
12634     "url": "/api/integrations/freshdesk/configurations/{id}",
12635     "title": "Update an existing Freshdesk Configuration",
12636     "examples": [
12637       {
12638         "title": "Example usage:",
12639         "content": "curl https://{domain}/api/integrations/freshdesk/configurations/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
12640         "type": "json"
12641       }
12642     ],
12643     "name": "updateFreshdesk_Configurations",
12644     "group": "Freshdesk_Configurations",
12645     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12646     "version": "0.0.0",
12647     "filename": "server/api/intFreshdeskConfiguration/index.js",
12648     "groupTitle": "Freshdesk_Configurations"
12649   },
12650   {
12651     "type": "post",
12652     "url": "/api/integrations/freshdesk/fields",
12653     "title": "Creates a new Freshdesk Field",
12654     "examples": [
12655       {
12656         "title": "Example usage:",
12657         "content": "curl https://{domain}/api/integrations/freshdesk/fields -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
12658         "type": "json"
12659       }
12660     ],
12661     "name": "CreateFreshdesk_Fields",
12662     "group": "Freshdesk_Fields",
12663     "parameter": {
12664       "fields": {
12665         "Body": [
12666           {
12667             "group": "Body",
12668             "type": "String",
12669             "allowedValues": [
12670               "\"string\"",
12671               "\"variable\"",
12672               "\"customVariable\"",
12673               "\"keyValue\"",
12674               "\"picklist\""
12675             ],
12676             "optional": true,
12677             "field": "type",
12678             "description": ""
12679           },
12680           {
12681             "group": "Body",
12682             "type": "String",
12683             "optional": true,
12684             "field": "content",
12685             "description": ""
12686           },
12687           {
12688             "group": "Body",
12689             "type": "String",
12690             "optional": true,
12691             "field": "key",
12692             "description": ""
12693           },
12694           {
12695             "group": "Body",
12696             "type": "String",
12697             "allowedValues": [
12698               "\"string\"",
12699               "\"variable\"",
12700               "\"customVariable\""
12701             ],
12702             "optional": true,
12703             "field": "keyType",
12704             "description": ""
12705           },
12706           {
12707             "group": "Body",
12708             "type": "String",
12709             "optional": true,
12710             "field": "keyContent",
12711             "description": ""
12712           },
12713           {
12714             "group": "Body",
12715             "type": "String",
12716             "optional": true,
12717             "field": "idField",
12718             "description": ""
12719           },
12720           {
12721             "group": "Body",
12722             "type": "String",
12723             "optional": true,
12724             "field": "nameField",
12725             "description": ""
12726           },
12727           {
12728             "group": "Body",
12729             "type": "Boolean",
12730             "optional": true,
12731             "field": "customField",
12732             "description": ""
12733           },
12734           {
12735             "group": "Body",
12736             "type": "String",
12737             "optional": true,
12738             "field": "variableName",
12739             "description": ""
12740           }
12741         ]
12742       }
12743     },
12744     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12745     "version": "0.0.0",
12746     "filename": "server/api/intFreshdeskField/index.js",
12747     "groupTitle": "Freshdesk_Fields"
12748   },
12749   {
12750     "type": "delete",
12751     "url": "/api/integrations/freshdesk/fields/{id}",
12752     "title": "Deletes a Freshdesk Field",
12753     "examples": [
12754       {
12755         "title": "Example usage:",
12756         "content": "curl https://{domain}/api/integrations/freshdesk/fields/{id} -v -u {name}:{password} -X DELETE",
12757         "type": "json"
12758       }
12759     ],
12760     "name": "DeleteFreshdesk_Fields",
12761     "group": "Freshdesk_Fields",
12762     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12763     "version": "0.0.0",
12764     "filename": "server/api/intFreshdeskField/index.js",
12765     "groupTitle": "Freshdesk_Fields"
12766   },
12767   {
12768     "type": "get",
12769     "url": "/api/integrations/freshdesk/fields",
12770     "title": "Gets a list of Freshdesk Fields",
12771     "examples": [
12772       {
12773         "title": "Example usage:",
12774         "content": "curl https://{domain}/api/integrations/freshdesk/fields -v -u {name}:{password}",
12775         "type": "json"
12776       }
12777     ],
12778     "name": "GetFreshdesk_Fields",
12779     "group": "Freshdesk_Fields",
12780     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/integrations/freshdesk/fields?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/integrations/freshdesk/fields?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/integrations/freshdesk/fields?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/integrations/freshdesk/fields?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/integrations/freshdesk/fields?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
12781     "version": "0.0.0",
12782     "filename": "server/api/intFreshdeskField/index.js",
12783     "groupTitle": "Freshdesk_Fields"
12784   },
12785   {
12786     "type": "get",
12787     "url": "/api/integrations/freshdesk/fields/{id}",
12788     "title": "Gets a single Freshdesk Field",
12789     "examples": [
12790       {
12791         "title": "Example usage:",
12792         "content": "curl https://{domain}/api/integrations/freshdesk/fields/{id} -v -u {name}:{password}",
12793         "type": "json"
12794       }
12795     ],
12796     "name": "ShowFreshdesk_Fields",
12797     "group": "Freshdesk_Fields",
12798     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12799     "version": "0.0.0",
12800     "filename": "server/api/intFreshdeskField/index.js",
12801     "groupTitle": "Freshdesk_Fields"
12802   },
12803   {
12804     "type": "put",
12805     "url": "/api/integrations/freshdesk/fields/{id}",
12806     "title": "Update an existing Freshdesk Field",
12807     "examples": [
12808       {
12809         "title": "Example usage:",
12810         "content": "curl https://{domain}/api/integrations/freshdesk/fields/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
12811         "type": "json"
12812       }
12813     ],
12814     "name": "updateFreshdesk_Fields",
12815     "group": "Freshdesk_Fields",
12816     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12817     "version": "0.0.0",
12818     "filename": "server/api/intFreshdeskField/index.js",
12819     "groupTitle": "Freshdesk_Fields"
12820   },
12821   {
12822     "type": "post",
12823     "url": "/api/integrations/freshsales/accounts",
12824     "title": "Creates a new Freshsales Account",
12825     "examples": [
12826       {
12827         "title": "Example usage:",
12828         "content": "curl https://{domain}/api/integrations/freshsales/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
12829         "type": "json"
12830       }
12831     ],
12832     "name": "CreateFreshsales_Accounts",
12833     "group": "Freshsales_Accounts",
12834     "parameter": {
12835       "fields": {
12836         "Body": [
12837           {
12838             "group": "Body",
12839             "type": "String",
12840             "optional": true,
12841             "field": "name",
12842             "description": ""
12843           },
12844           {
12845             "group": "Body",
12846             "type": "String",
12847             "optional": true,
12848             "field": "description",
12849             "description": ""
12850           },
12851           {
12852             "group": "Body",
12853             "type": "String",
12854             "optional": true,
12855             "field": "username",
12856             "description": ""
12857           },
12858           {
12859             "group": "Body",
12860             "type": "String",
12861             "optional": true,
12862             "field": "apiKey",
12863             "description": ""
12864           },
12865           {
12866             "group": "Body",
12867             "type": "String",
12868             "optional": true,
12869             "field": "remoteUri",
12870             "description": ""
12871           },
12872           {
12873             "group": "Body",
12874             "type": "String",
12875             "optional": false,
12876             "field": "serverUrl",
12877             "description": ""
12878           }
12879         ]
12880       }
12881     },
12882     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12883     "version": "0.0.0",
12884     "filename": "server/api/intFreshsalesAccount/index.js",
12885     "groupTitle": "Freshsales_Accounts"
12886   },
12887   {
12888     "type": "delete",
12889     "url": "/api/integrations/freshsales/accounts/{id}",
12890     "title": "Deletes a Freshsales Account",
12891     "examples": [
12892       {
12893         "title": "Example usage:",
12894         "content": "curl https://{domain}/api/integrations/freshsales/accounts/{id} -v -u {name}:{password} -X DELETE",
12895         "type": "json"
12896       }
12897     ],
12898     "name": "DeleteFreshsales_Accounts",
12899     "group": "Freshsales_Accounts",
12900     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12901     "version": "0.0.0",
12902     "filename": "server/api/intFreshsalesAccount/index.js",
12903     "groupTitle": "Freshsales_Accounts"
12904   },
12905   {
12906     "type": "get",
12907     "url": "/api/integrations/freshsales/accounts",
12908     "title": "Gets a list of Freshsales Accounts",
12909     "examples": [
12910       {
12911         "title": "Example usage:",
12912         "content": "curl https://{domain}/api/integrations/freshsales/accounts -v -u {name}:{password}",
12913         "type": "json"
12914       }
12915     ],
12916     "name": "GetFreshsales_Accounts",
12917     "group": "Freshsales_Accounts",
12918     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/integrations/freshsales/accounts?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/integrations/freshsales/accounts?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/integrations/freshsales/accounts?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/integrations/freshsales/accounts?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/integrations/freshsales/accounts?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
12919     "version": "0.0.0",
12920     "filename": "server/api/intFreshsalesAccount/index.js",
12921     "groupTitle": "Freshsales_Accounts"
12922   },
12923   {
12924     "type": "get",
12925     "url": "/api/integrations/freshsales/accounts/{id}",
12926     "title": "Gets a single Freshsales Account",
12927     "examples": [
12928       {
12929         "title": "Example usage:",
12930         "content": "curl https://{domain}/api/integrations/freshsales/accounts/{id} -v -u {name}:{password}",
12931         "type": "json"
12932       }
12933     ],
12934     "name": "ShowFreshsales_Accounts",
12935     "group": "Freshsales_Accounts",
12936     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12937     "version": "0.0.0",
12938     "filename": "server/api/intFreshsalesAccount/index.js",
12939     "groupTitle": "Freshsales_Accounts"
12940   },
12941   {
12942     "type": "post",
12943     "url": "/api/integrations/freshsales/accounts/{id}/configurations",
12944     "title": "Creates new configuration",
12945     "examples": [
12946       {
12947         "title": "Example usage:",
12948         "content": "curl https://{domain}/api/integrations/freshsales/accounts/{id}/configurations -d '{\"name\": \"conf1\"}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
12949         "type": "json"
12950       }
12951     ],
12952     "name": "addConfiguration",
12953     "group": "Freshsales_Accounts",
12954     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12955     "version": "0.0.0",
12956     "filename": "server/api/intFreshsalesAccount/index.js",
12957     "groupTitle": "Freshsales_Accounts"
12958   },
12959   {
12960     "type": "get",
12961     "url": "/api/integrations/freshsales/accounts/{id}/configurations",
12962     "title": "Gets account configurations",
12963     "examples": [
12964       {
12965         "title": "Example usage:",
12966         "content": "curl https://{domain}/api/integrations/freshsales/accounts/{id}/configurations -v -u {name}:{password} -X GET",
12967         "type": "json"
12968       }
12969     ],
12970     "name": "getConfigurations",
12971     "group": "Freshsales_Accounts",
12972     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12973     "version": "0.0.0",
12974     "filename": "server/api/intFreshsalesAccount/index.js",
12975     "groupTitle": "Freshsales_Accounts"
12976   },
12977   {
12978     "type": "get",
12979     "url": "/api/integrations/freshsales/accounts/{id}/fields",
12980     "title": "Gets account fields",
12981     "examples": [
12982       {
12983         "title": "Example usage:",
12984         "content": "curl https://{domain}/api/integrations/freshsales/accounts/{id}/fields -v -u {name}:{password} -X GET",
12985         "type": "json"
12986       }
12987     ],
12988     "name": "getFields",
12989     "group": "Freshsales_Accounts",
12990     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12991     "version": "0.0.0",
12992     "filename": "server/api/intFreshsalesAccount/index.js",
12993     "groupTitle": "Freshsales_Accounts"
12994   },
12995   {
12996     "type": "put",
12997     "url": "/api/integrations/freshsales/accounts/{id}",
12998     "title": "Update an existing Freshsales Account",
12999     "examples": [
13000       {
13001         "title": "Example usage:",
13002         "content": "curl https://{domain}/api/integrations/freshsales/accounts/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
13003         "type": "json"
13004       }
13005     ],
13006     "name": "updateFreshsales_Accounts",
13007     "group": "Freshsales_Accounts",
13008     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13009     "version": "0.0.0",
13010     "filename": "server/api/intFreshsalesAccount/index.js",
13011     "groupTitle": "Freshsales_Accounts"
13012   },
13013   {
13014     "type": "post",
13015     "url": "/api/integrations/freshsales/configurations",
13016     "title": "Creates a new Freshsales Configuration",
13017     "examples": [
13018       {
13019         "title": "Example usage:",
13020         "content": "curl https://{domain}/api/integrations/freshsales/configurations -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
13021         "type": "json"
13022       }
13023     ],
13024     "name": "CreateFreshsales_Configurations",
13025     "group": "Freshsales_Configurations",
13026     "parameter": {
13027       "fields": {
13028         "Body": [
13029           {
13030             "group": "Body",
13031             "type": "String",
13032             "optional": true,
13033             "field": "name",
13034             "description": ""
13035           },
13036           {
13037             "group": "Body",
13038             "type": "String",
13039             "optional": true,
13040             "field": "description",
13041             "description": ""
13042           }
13043         ]
13044       }
13045     },
13046     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13047     "version": "0.0.0",
13048     "filename": "server/api/intFreshsalesConfiguration/index.js",
13049     "groupTitle": "Freshsales_Configurations"
13050   },
13051   {
13052     "type": "delete",
13053     "url": "/api/integrations/freshsales/configurations/{id}",
13054     "title": "Deletes a Freshsales Configuration",
13055     "examples": [
13056       {
13057         "title": "Example usage:",
13058         "content": "curl https://{domain}/api/integrations/freshsales/configurations/{id} -v -u {name}:{password} -X DELETE",
13059         "type": "json"
13060       }
13061     ],
13062     "name": "DeleteFreshsales_Configurations",
13063     "group": "Freshsales_Configurations",
13064     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13065     "version": "0.0.0",
13066     "filename": "server/api/intFreshsalesConfiguration/index.js",
13067     "groupTitle": "Freshsales_Configurations"
13068   },
13069   {
13070     "type": "get",
13071     "url": "/api/integrations/freshsales/configurations",
13072     "title": "Gets a list of Freshsales Configurations",
13073     "examples": [
13074       {
13075         "title": "Example usage:",
13076         "content": "curl https://{domain}/api/integrations/freshsales/configurations -v -u {name}:{password}",
13077         "type": "json"
13078       }
13079     ],
13080     "name": "GetFreshsales_Configurations",
13081     "group": "Freshsales_Configurations",
13082     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/integrations/freshsales/configurations?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/integrations/freshsales/configurations?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/integrations/freshsales/configurations?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/integrations/freshsales/configurations?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/integrations/freshsales/configurations?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
13083     "version": "0.0.0",
13084     "filename": "server/api/intFreshsalesConfiguration/index.js",
13085     "groupTitle": "Freshsales_Configurations"
13086   },
13087   {
13088     "type": "get",
13089     "url": "/api/integrations/freshsales/configurations/{id}",
13090     "title": "Gets a single Freshsales Configuration",
13091     "examples": [
13092       {
13093         "title": "Example usage:",
13094         "content": "curl https://{domain}/api/integrations/freshsales/configurations/{id} -v -u {name}:{password}",
13095         "type": "json"
13096       }
13097     ],
13098     "name": "ShowFreshsales_Configurations",
13099     "group": "Freshsales_Configurations",
13100     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13101     "version": "0.0.0",
13102     "filename": "server/api/intFreshsalesConfiguration/index.js",
13103     "groupTitle": "Freshsales_Configurations"
13104   },
13105   {
13106     "type": "get",
13107     "url": "/api/integrations/freshsales/configurations/{id}/descriptions",
13108     "title": "Gets configurations descriptions",
13109     "examples": [
13110       {
13111         "title": "Example usage:",
13112         "content": "curl https://{domain}/api/integrations/freshsales/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
13113         "type": "json"
13114       }
13115     ],
13116     "name": "getDescriptions",
13117     "group": "Freshsales_Configurations",
13118     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13119     "version": "0.0.0",
13120     "filename": "server/api/intFreshsalesConfiguration/index.js",
13121     "groupTitle": "Freshsales_Configurations"
13122   },
13123   {
13124     "type": "get",
13125     "url": "/api/integrations/freshsales/configurations/{id}/fields",
13126     "title": "Gets configurations fields",
13127     "examples": [
13128       {
13129         "title": "Example usage:",
13130         "content": "curl https://{domain}/api/integrations/freshsales/configurations/{id}/fields -v -u {name}:{password} -X GET",
13131         "type": "json"
13132       }
13133     ],
13134     "name": "getFields",
13135     "group": "Freshsales_Configurations",
13136     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13137     "version": "0.0.0",
13138     "filename": "server/api/intFreshsalesConfiguration/index.js",
13139     "groupTitle": "Freshsales_Configurations"
13140   },
13141   {
13142     "type": "get",
13143     "url": "/api/integrations/freshsales/configurations/{id}/subjects",
13144     "title": "Gets configurations subjects",
13145     "examples": [
13146       {
13147         "title": "Example usage:",
13148         "content": "curl https://{domain}/api/integrations/freshsales/configurations/{id}/subjects -v -u {name}:{password} -X GET",
13149         "type": "json"
13150       }
13151     ],
13152     "name": "getSubjects",
13153     "group": "Freshsales_Configurations",
13154     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13155     "version": "0.0.0",
13156     "filename": "server/api/intFreshsalesConfiguration/index.js",
13157     "groupTitle": "Freshsales_Configurations"
13158   },
13159   {
13160     "type": "put",
13161     "url": "/api/integrations/freshsales/configurations/{id}",
13162     "title": "Update an existing Freshsales Configuration",
13163     "examples": [
13164       {
13165         "title": "Example usage:",
13166         "content": "curl https://{domain}/api/integrations/freshsales/configurations/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
13167         "type": "json"
13168       }
13169     ],
13170     "name": "updateFreshsales_Configurations",
13171     "group": "Freshsales_Configurations",
13172     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13173     "version": "0.0.0",
13174     "filename": "server/api/intFreshsalesConfiguration/index.js",
13175     "groupTitle": "Freshsales_Configurations"
13176   },
13177   {
13178     "type": "post",
13179     "url": "/api/integrations/freshsales/fields",
13180     "title": "Creates a new Freshsales Field",
13181     "examples": [
13182       {
13183         "title": "Example usage:",
13184         "content": "curl https://{domain}/api/integrations/freshsales/fields -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
13185         "type": "json"
13186       }
13187     ],
13188     "name": "CreateFreshsales_Fields",
13189     "group": "Freshsales_Fields",
13190     "parameter": {
13191       "fields": {
13192         "Body": [
13193           {
13194             "group": "Body",
13195             "type": "String",
13196             "allowedValues": [
13197               "\"string\"",
13198               "\"variable\"",
13199               "\"customVariable\"",
13200               "\"keyValue\"",
13201               "\"picklist\""
13202             ],
13203             "optional": true,
13204             "field": "type",
13205             "description": ""
13206           },
13207           {
13208             "group": "Body",
13209             "type": "String",
13210             "optional": true,
13211             "field": "content",
13212             "description": ""
13213           },
13214           {
13215             "group": "Body",
13216             "type": "String",
13217             "optional": true,
13218             "field": "key",
13219             "description": ""
13220           },
13221           {
13222             "group": "Body",
13223             "type": "String",
13224             "allowedValues": [
13225               "\"string\"",
13226               "\"variable\"",
13227               "\"customVariable\""
13228             ],
13229             "optional": true,
13230             "field": "keyType",
13231             "description": ""
13232           },
13233           {
13234             "group": "Body",
13235             "type": "String",
13236             "optional": true,
13237             "field": "keyContent",
13238             "description": ""
13239           },
13240           {
13241             "group": "Body",
13242             "type": "String",
13243             "optional": true,
13244             "field": "idField",
13245             "description": ""
13246           },
13247           {
13248             "group": "Body",
13249             "type": "String",
13250             "optional": true,
13251             "field": "nameField",
13252             "description": ""
13253           },
13254           {
13255             "group": "Body",
13256             "type": "Boolean",
13257             "optional": true,
13258             "field": "customField",
13259             "description": ""
13260           },
13261           {
13262             "group": "Body",
13263             "type": "String",
13264             "optional": true,
13265             "field": "variableName",
13266             "description": ""
13267           }
13268         ]
13269       }
13270     },
13271     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13272     "version": "0.0.0",
13273     "filename": "server/api/intFreshsalesField/index.js",
13274     "groupTitle": "Freshsales_Fields"
13275   },
13276   {
13277     "type": "delete",
13278     "url": "/api/integrations/freshsales/fields/{id}",
13279     "title": "Deletes a Freshsales Field",
13280     "examples": [
13281       {
13282         "title": "Example usage:",
13283         "content": "curl https://{domain}/api/integrations/freshsales/fields/{id} -v -u {name}:{password} -X DELETE",
13284         "type": "json"
13285       }
13286     ],
13287     "name": "DeleteFreshsales_Fields",
13288     "group": "Freshsales_Fields",
13289     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13290     "version": "0.0.0",
13291     "filename": "server/api/intFreshsalesField/index.js",
13292     "groupTitle": "Freshsales_Fields"
13293   },
13294   {
13295     "type": "get",
13296     "url": "/api/integrations/freshsales/fields",
13297     "title": "Gets a list of Freshsales Fields",
13298     "examples": [
13299       {
13300         "title": "Example usage:",
13301         "content": "curl https://{domain}/api/integrations/freshsales/fields -v -u {name}:{password}",
13302         "type": "json"
13303       }
13304     ],
13305     "name": "GetFreshsales_Fields",
13306     "group": "Freshsales_Fields",
13307     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/integrations/freshsales/fields?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/integrations/freshsales/fields?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/integrations/freshsales/fields?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/integrations/freshsales/fields?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/integrations/freshsales/fields?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
13308     "version": "0.0.0",
13309     "filename": "server/api/intFreshsalesField/index.js",
13310     "groupTitle": "Freshsales_Fields"
13311   },
13312   {
13313     "type": "get",
13314     "url": "/api/integrations/freshsales/fields/{id}",
13315     "title": "Gets a single Freshsales Field",
13316     "examples": [
13317       {
13318         "title": "Example usage:",
13319         "content": "curl https://{domain}/api/integrations/freshsales/fields/{id} -v -u {name}:{password}",
13320         "type": "json"
13321       }
13322     ],
13323     "name": "ShowFreshsales_Fields",
13324     "group": "Freshsales_Fields",
13325     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13326     "version": "0.0.0",
13327     "filename": "server/api/intFreshsalesField/index.js",
13328     "groupTitle": "Freshsales_Fields"
13329   },
13330   {
13331     "type": "put",
13332     "url": "/api/integrations/freshsales/fields/{id}",
13333     "title": "Update an existing Freshsales Field",
13334     "examples": [
13335       {
13336         "title": "Example usage:",
13337         "content": "curl https://{domain}/api/integrations/freshsales/fields/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
13338         "type": "json"
13339       }
13340     ],
13341     "name": "updateFreshsales_Fields",
13342     "group": "Freshsales_Fields",
13343     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13344     "version": "0.0.0",
13345     "filename": "server/api/intFreshsalesField/index.js",
13346     "groupTitle": "Freshsales_Fields"
13347   },
13348   {
13349     "type": "post",
13350     "url": "/api/campaigns/{id}/blacklists",
13351     "title": "Add blacklists to an IVR campaign",
13352     "examples": [
13353       {
13354         "title": "Example usage:",
13355         "content": "curl https://{domain}/api/campaigns/{id}/blacklists -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
13356         "type": "json"
13357       }
13358     ],
13359     "name": "AddBlackLists",
13360     "group": "IVR_Campaigns",
13361     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13362     "version": "0.0.0",
13363     "filename": "server/api/campaign/index.js",
13364     "groupTitle": "IVR_Campaigns"
13365   },
13366   {
13367     "type": "post",
13368     "url": "/api/campaigns/{id}/lists",
13369     "title": "Add lists to an IVR campaign",
13370     "examples": [
13371       {
13372         "title": "Example usage:",
13373         "content": "curl https://{domain}/api/campaigns/{id}/lists -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
13374         "type": "json"
13375       }
13376     ],
13377     "name": "AddLists",
13378     "group": "IVR_Campaigns",
13379     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13380     "version": "0.0.0",
13381     "filename": "server/api/campaign/index.js",
13382     "groupTitle": "IVR_Campaigns"
13383   },
13384   {
13385     "type": "post",
13386     "url": "/api/campaigns/clone",
13387     "title": "Clone an existing IVR Campaign",
13388     "examples": [
13389       {
13390         "title": "Example usage:",
13391         "content": "curl https://{domain}/api/campaigns/clone -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
13392         "type": "json"
13393       }
13394     ],
13395     "name": "CloneIVR_Campaigns",
13396     "group": "IVR_Campaigns",
13397     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13398     "version": "0.0.0",
13399     "filename": "server/api/campaign/index.js",
13400     "groupTitle": "IVR_Campaigns"
13401   },
13402   {
13403     "type": "post",
13404     "url": "/api/campaigns",
13405     "title": "Creates a new IVR Campaign",
13406     "examples": [
13407       {
13408         "title": "Example usage:",
13409         "content": "curl https://{domain}/api/campaigns -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
13410         "type": "json"
13411       }
13412     ],
13413     "name": "CreateIVR_Campaigns",
13414     "group": "IVR_Campaigns",
13415     "parameter": {
13416       "fields": {
13417         "Body": [
13418           {
13419             "group": "Body",
13420             "type": "String",
13421             "optional": false,
13422             "field": "name",
13423             "description": ""
13424           },
13425           {
13426             "group": "Body",
13427             "type": "String",
13428             "allowedValues": [
13429               "\"ivr\""
13430             ],
13431             "optional": false,
13432             "field": "type",
13433             "description": ""
13434           },
13435           {
13436             "group": "Body",
13437             "type": "String",
13438             "optional": true,
13439             "field": "description",
13440             "description": ""
13441           },
13442           {
13443             "group": "Body",
13444             "type": "Boolean",
13445             "optional": true,
13446             "field": "active",
13447             "description": "<p>Active/Disactive Campaign</p>"
13448           },
13449           {
13450             "group": "Body",
13451             "type": "Integer",
13452             "optional": true,
13453             "field": "limitCalls",
13454             "description": "<p>Max 200 calls.</p>"
13455           },
13456           {
13457             "group": "Body",
13458             "type": "String",
13459             "optional": true,
13460             "field": "dialOriginateCallerIdName",
13461             "description": ""
13462           },
13463           {
13464             "group": "Body",
13465             "type": "String",
13466             "optional": true,
13467             "field": "dialOriginateCallerIdNumber",
13468             "description": ""
13469           },
13470           {
13471             "group": "Body",
13472             "type": "Integer",
13473             "optional": true,
13474             "field": "dialOriginateTimeout",
13475             "description": "<p>Originate Timeout Seconds (min:1, max:999)</p>"
13476           },
13477           {
13478             "group": "Body",
13479             "type": "Integer",
13480             "optional": true,
13481             "field": "dialCongestionMaxRetry",
13482             "description": "<p>#Congestion Retry (min:1, max:999)</p>"
13483           },
13484           {
13485             "group": "Body",
13486             "type": "Integer",
13487             "optional": true,
13488             "field": "dialCongestionRetryFrequency",
13489             "description": "<p>Congestion Retry Frequency Minutes (min:1, max:99999)</p>"
13490           },
13491           {
13492             "group": "Body",
13493             "type": "Integer",
13494             "optional": true,
13495             "field": "dialBusyMaxRetry",
13496             "description": "<p>#Busy Retry (min:1, max:999)</p>"
13497           },
13498           {
13499             "group": "Body",
13500             "type": "Integer",
13501             "optional": true,
13502             "field": "dialBusyRetryFrequency",
13503             "description": "<p>Busy Retry Frequency Minutes (min:1, max:99999)</p>"
13504           },
13505           {
13506             "group": "Body",
13507             "type": "Integer",
13508             "optional": true,
13509             "field": "dialNoAnswerMaxRetry",
13510             "description": "<p>#NoAnswer Retry (min:1, max:999)</p>"
13511           },
13512           {
13513             "group": "Body",
13514             "type": "Integer",
13515             "optional": true,
13516             "field": "dialNoAnswerRetryFrequency",
13517             "description": "<p>NoAnswer Retry Frequency Minutes (min:1, max:99999)</p>"
13518           },
13519           {
13520             "group": "Body",
13521             "type": "Integer",
13522             "optional": true,
13523             "field": "dialGlobalMaxRetry",
13524             "description": "<p>#Global Max Retry (min:1, max:999)</p>"
13525           },
13526           {
13527             "group": "Body",
13528             "type": "String",
13529             "optional": true,
13530             "field": "dialTimezone",
13531             "description": ""
13532           },
13533           {
13534             "group": "Body",
13535             "type": "String",
13536             "optional": true,
13537             "field": "dialGlobalInterval",
13538             "description": ""
13539           },
13540           {
13541             "group": "Body",
13542             "type": "String",
13543             "allowedValues": [
13544               "\"always\"",
13545               "\"never\"",
13546               "\"onlyIfOpen\""
13547             ],
13548             "optional": true,
13549             "field": "dialCheckDuplicateType",
13550             "description": ""
13551           },
13552           {
13553             "group": "Body",
13554             "type": "Boolean",
13555             "optional": true,
13556             "field": "dialAMDActive",
13557             "description": "<p>Active/Disactive AMD</p>"
13558           },
13559           {
13560             "group": "Body",
13561             "type": "Integer",
13562             "optional": true,
13563             "field": "dialAMDInitialSilence",
13564             "description": "<p>#AMD Initial Silence</p>"
13565           },
13566           {
13567             "group": "Body",
13568             "type": "Integer",
13569             "optional": true,
13570             "field": "dialAMDGreeting",
13571             "description": "<p>#AMD Greeting</p>"
13572           },
13573           {
13574             "group": "Body",
13575             "type": "Integer",
13576             "optional": true,
13577             "field": "dialAMDAfterGreetingSilence",
13578             "description": "<p>#AMD After Greeting Silence</p>"
13579           },
13580           {
13581             "group": "Body",
13582             "type": "Integer",
13583             "optional": true,
13584             "field": "dialAMDTotalAnalysisTime",
13585             "description": "<p>#AMD Total Analysis Time</p>"
13586           },
13587           {
13588             "group": "Body",
13589             "type": "Integer",
13590             "optional": true,
13591             "field": "dialAMDMinWordLength",
13592             "description": "<p>#AMD Min Word Length</p>"
13593           },
13594           {
13595             "group": "Body",
13596             "type": "Integer",
13597             "optional": true,
13598             "field": "dialAMDBetweenWordsSilence",
13599             "description": "<p>#AMD Between Words Silence</p>"
13600           },
13601           {
13602             "group": "Body",
13603             "type": "Integer",
13604             "optional": true,
13605             "field": "dialAMDMaximumNumberOfWords",
13606             "description": "<p>#AMD Maximum Number Of Words</p>"
13607           },
13608           {
13609             "group": "Body",
13610             "type": "Integer",
13611             "optional": true,
13612             "field": "dialAMDSilenceThreshold",
13613             "description": "<p>#AMD Silence Threshold (min:0, max:32767)</p>"
13614           },
13615           {
13616             "group": "Body",
13617             "type": "Integer",
13618             "optional": true,
13619             "field": "dialAMDMaximumWordLength",
13620             "description": "<p>#AMD Maximum Word Length</p>"
13621           },
13622           {
13623             "group": "Body",
13624             "type": "String",
13625             "allowedValues": [
13626               "\"DESC\"",
13627               "\"ASC\""
13628             ],
13629             "optional": true,
13630             "field": "dialOrderByScheduledAt",
13631             "description": ""
13632           },
13633           {
13634             "group": "Body",
13635             "type": "String",
13636             "optional": true,
13637             "field": "dialPrefix",
13638             "description": ""
13639           },
13640           {
13641             "group": "Body",
13642             "type": "Integer",
13643             "optional": true,
13644             "field": "dialRandomLastDigitCallerIdNumber",
13645             "description": "<p>Random Last Digit (min:1, max:15)</p>"
13646           },
13647           {
13648             "group": "Body",
13649             "type": "Integer",
13650             "optional": true,
13651             "field": "dialCutDigit",
13652             "description": "<p>Cut Digit (min:1, max:15)</p>"
13653           },
13654           {
13655             "group": "Body",
13656             "type": "Integer",
13657             "optional": true,
13658             "field": "dialNoSuchNumberMaxRetry",
13659             "description": "<p>#NoSuchNumber Retry (min:1, max:999)</p>"
13660           },
13661           {
13662             "group": "Body",
13663             "type": "Integer",
13664             "optional": true,
13665             "field": "dialNoSuchNumberRetryFrequency",
13666             "description": "<p>NoSuchNumber Retry Frequency Minutes (min:1, max:99999)</p>"
13667           },
13668           {
13669             "group": "Body",
13670             "type": "Integer",
13671             "optional": true,
13672             "field": "dialDropMaxRetry",
13673             "description": "<p>#Drop Retry (min:1, max:999)</p>"
13674           },
13675           {
13676             "group": "Body",
13677             "type": "Integer",
13678             "optional": true,
13679             "field": "dialDropRetryFrequency",
13680             "description": "<p>Drop Retry Frequency Minutes (min:1, max:99999)</p>"
13681           },
13682           {
13683             "group": "Body",
13684             "type": "Integer",
13685             "optional": true,
13686             "field": "dialAbandonedMaxRetry",
13687             "description": "<p>#Abandoned Retry (min:1, max:999)</p>"
13688           },
13689           {
13690             "group": "Body",
13691             "type": "Integer",
13692             "optional": true,
13693             "field": "dialAbandonedRetryFrequency",
13694             "description": "<p>Abandoned Retry Frequency Minutes (min:1, max:99999)</p>"
13695           },
13696           {
13697             "group": "Body",
13698             "type": "Integer",
13699             "optional": true,
13700             "field": "dialMachineMaxRetry",
13701             "description": "<p>#Machine Retry (min:1, max:999)</p>"
13702           },
13703           {
13704             "group": "Body",
13705             "type": "Integer",
13706             "optional": true,
13707             "field": "dialMachineRetryFrequency",
13708             "description": "<p>Machine Retry Frequency Minutes (min:1, max:99999)</p>"
13709           },
13710           {
13711             "group": "Body",
13712             "type": "Integer",
13713             "optional": true,
13714             "field": "dialAgentRejectMaxRetry",
13715             "description": "<p>#AgentReject Retry (min:1, max:999)</p>"
13716           },
13717           {
13718             "group": "Body",
13719             "type": "Integer",
13720             "optional": true,
13721             "field": "dialAgentRejectRetryFrequency",
13722             "description": "<p>AgentReject Retry Frequency Minutes (min:1, max:99999)</p>"
13723           }
13724         ]
13725       }
13726     },
13727     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13728     "version": "0.0.0",
13729     "filename": "server/api/campaign/index.js",
13730     "groupTitle": "IVR_Campaigns"
13731   },
13732   {
13733     "type": "delete",
13734     "url": "/api/campaigns/{id}",
13735     "title": "Deletes a IVR Campaign",
13736     "examples": [
13737       {
13738         "title": "Example usage:",
13739         "content": "curl https://{domain}/api/campaigns/{id} -v -u {name}:{password} -X DELETE",
13740         "type": "json"
13741       }
13742     ],
13743     "name": "DeleteIVR_Campaigns",
13744     "group": "IVR_Campaigns",
13745     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13746     "version": "0.0.0",
13747     "filename": "server/api/campaign/index.js",
13748     "groupTitle": "IVR_Campaigns"
13749   },
13750   {
13751     "type": "get",
13752     "url": "/api/campaigns/{id}/blacklists",
13753     "title": "Get IVR campaign blacklists",
13754     "examples": [
13755       {
13756         "title": "Example usage:",
13757         "content": "curl https://{domain}/api/campaigns/{id}/blacklists -v -u {name}:{password} -X GET",
13758         "type": "json"
13759       }
13760     ],
13761     "name": "GetBlackLists",
13762     "group": "IVR_Campaigns",
13763     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13764     "version": "0.0.0",
13765     "filename": "server/api/campaign/index.js",
13766     "groupTitle": "IVR_Campaigns"
13767   },
13768   {
13769     "type": "get",
13770     "url": "/api/campaigns/{id}/finals",
13771     "title": "Gets IVR campaign hopper finals",
13772     "examples": [
13773       {
13774         "title": "Example usage:",
13775         "content": "curl https://{domain}/api/campaigns/{id}/hopper_finals -v -u {name}:{password}  -X GET",
13776         "type": "json"
13777       }
13778     ],
13779     "name": "GetHopperFinals",
13780     "group": "IVR_Campaigns",
13781     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13782     "version": "0.0.0",
13783     "filename": "server/api/campaign/index.js",
13784     "groupTitle": "IVR_Campaigns"
13785   },
13786   {
13787     "type": "get",
13788     "url": "/api/campaigns/{id}/hopper_histories",
13789     "title": "Gets IVR campaign hopper histories",
13790     "examples": [
13791       {
13792         "title": "Example usage:",
13793         "content": "curl https://{domain}/api/campaigns/{id}/hopper_histories -v -u {name}:{password} -X GET",
13794         "type": "json"
13795       }
13796     ],
13797     "name": "GetHopperHistories",
13798     "group": "IVR_Campaigns",
13799     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13800     "version": "0.0.0",
13801     "filename": "server/api/campaign/index.js",
13802     "groupTitle": "IVR_Campaigns"
13803   },
13804   {
13805     "type": "get",
13806     "url": "/api/campaigns/{id}/hoppers",
13807     "title": "Gets IVR campaign hoppers",
13808     "examples": [
13809       {
13810         "title": "Example usage:",
13811         "content": "curl https://{domain}/api/campaigns/{id}/hoppers -v -u {name}:{password} -X GET",
13812         "type": "json"
13813       }
13814     ],
13815     "name": "GetHoppers",
13816     "group": "IVR_Campaigns",
13817     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13818     "version": "0.0.0",
13819     "filename": "server/api/campaign/index.js",
13820     "groupTitle": "IVR_Campaigns"
13821   },
13822   {
13823     "type": "get",
13824     "url": "/api/campaigns",
13825     "title": "Gets a list of IVR Campaigns",
13826     "examples": [
13827       {
13828         "title": "Example usage:",
13829         "content": "curl https://{domain}/api/campaigns -v -u {name}:{password}",
13830         "type": "json"
13831       }
13832     ],
13833     "name": "GetIVR_Campaigns",
13834     "group": "IVR_Campaigns",
13835     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/campaigns?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/campaigns?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/campaigns?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/campaigns?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/campaigns?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
13836     "version": "0.0.0",
13837     "filename": "server/api/campaign/index.js",
13838     "groupTitle": "IVR_Campaigns"
13839   },
13840   {
13841     "type": "get",
13842     "url": "/api/campaigns/{id}/lists",
13843     "title": "Get IVR campaign lists",
13844     "examples": [
13845       {
13846         "title": "Example usage:",
13847         "content": "curl https://{domain}/api/campaigns/{id}/lists -v -u {name}:{password} -X GET",
13848         "type": "json"
13849       }
13850     ],
13851     "name": "GetLists",
13852     "group": "IVR_Campaigns",
13853     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13854     "version": "0.0.0",
13855     "filename": "server/api/campaign/index.js",
13856     "groupTitle": "IVR_Campaigns"
13857   },
13858   {
13859     "type": "delete",
13860     "url": "/api/campaigns/{id}/blacklists",
13861     "title": "Remove blacklists from an IVR Campaign",
13862     "examples": [
13863       {
13864         "title": "Example usage:",
13865         "content": "curl https://{domain}/api/campaigns/{id}/blacklists?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
13866         "type": "json"
13867       }
13868     ],
13869     "name": "RemoveBlackLists",
13870     "group": "IVR_Campaigns",
13871     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13872     "version": "0.0.0",
13873     "filename": "server/api/campaign/index.js",
13874     "groupTitle": "IVR_Campaigns"
13875   },
13876   {
13877     "type": "delete",
13878     "url": "/api/campaigns/{id}/lists",
13879     "title": "Remove lists from an IVR Campaign",
13880     "examples": [
13881       {
13882         "title": "Example usage:",
13883         "content": "curl https://{domain}/api/campaigns/{id}/lists?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
13884         "type": "json"
13885       }
13886     ],
13887     "name": "RemoveLists",
13888     "group": "IVR_Campaigns",
13889     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13890     "version": "0.0.0",
13891     "filename": "server/api/campaign/index.js",
13892     "groupTitle": "IVR_Campaigns"
13893   },
13894   {
13895     "type": "get",
13896     "url": "/api/campaigns/{id}",
13897     "title": "Gets a single IVR Campaign",
13898     "examples": [
13899       {
13900         "title": "Example usage:",
13901         "content": "curl https://{domain}/api/campaigns/{id} -v -u {name}:{password}",
13902         "type": "json"
13903       }
13904     ],
13905     "name": "ShowIVR_Campaigns",
13906     "group": "IVR_Campaigns",
13907     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13908     "version": "0.0.0",
13909     "filename": "server/api/campaign/index.js",
13910     "groupTitle": "IVR_Campaigns"
13911   },
13912   {
13913     "type": "get",
13914     "url": "/api/campaigns/{id}/blacks",
13915     "title": "Gets IVR campaign hopper blacks",
13916     "examples": [
13917       {
13918         "title": "Example usage:",
13919         "content": "curl https://{domain}/api/campaigns/{id}/hopper_black -v -u {name}:{password}  -X GET",
13920         "type": "json"
13921       }
13922     ],
13923     "name": "getHopperBlacks",
13924     "group": "IVR_Campaigns",
13925     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13926     "version": "0.0.0",
13927     "filename": "server/api/campaign/index.js",
13928     "groupTitle": "IVR_Campaigns"
13929   },
13930   {
13931     "type": "put",
13932     "url": "/api/campaigns/{id}",
13933     "title": "Update an existing IVR Campaign",
13934     "examples": [
13935       {
13936         "title": "Example usage:",
13937         "content": "curl https://{domain}/api/campaigns/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
13938         "type": "json"
13939       }
13940     ],
13941     "name": "updateIVR_Campaigns",
13942     "group": "IVR_Campaigns",
13943     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13944     "version": "0.0.0",
13945     "filename": "server/api/campaign/index.js",
13946     "groupTitle": "IVR_Campaigns"
13947   },
13948   {
13949     "type": "post",
13950     "url": "/api/integrations/reports",
13951     "title": "Creates a new Integration Report",
13952     "examples": [
13953       {
13954         "title": "Example usage:",
13955         "content": "curl https://{domain}/api/integrations/reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
13956         "type": "json"
13957       }
13958     ],
13959     "name": "CreateIntegration_Reports",
13960     "group": "Integration_Reports",
13961     "parameter": {
13962       "fields": {
13963         "Body": [
13964           {
13965             "group": "Body",
13966             "type": "String",
13967             "optional": true,
13968             "field": "integration",
13969             "description": ""
13970           },
13971           {
13972             "group": "Body",
13973             "type": "String",
13974             "optional": true,
13975             "field": "eventChannel",
13976             "description": ""
13977           },
13978           {
13979             "group": "Body",
13980             "type": "String",
13981             "optional": true,
13982             "field": "exitStatus",
13983             "description": ""
13984           },
13985           {
13986             "group": "Body",
13987             "type": "String",
13988             "optional": true,
13989             "field": "ticketId",
13990             "description": ""
13991           },
13992           {
13993             "group": "Body",
13994             "type": "Integer",
13995             "optional": true,
13996             "field": "integrationId",
13997             "description": ""
13998           },
13999           {
14000             "group": "Body",
14001             "type": "String",
14002             "optional": true,
14003             "field": "contacts",
14004             "description": ""
14005           },
14006           {
14007             "group": "Body",
14008             "type": "String",
14009             "optional": true,
14010             "field": "uniqueid",
14011             "description": ""
14012           },
14013           {
14014             "group": "Body",
14015             "type": "String",
14016             "optional": true,
14017             "field": "calleridnum",
14018             "description": ""
14019           },
14020           {
14021             "group": "Body",
14022             "type": "String",
14023             "optional": true,
14024             "field": "calleridname",
14025             "description": ""
14026           },
14027           {
14028             "group": "Body",
14029             "type": "String",
14030             "optional": true,
14031             "field": "queue",
14032             "description": ""
14033           },
14034           {
14035             "group": "Body",
14036             "type": "String",
14037             "optional": true,
14038             "field": "interface",
14039             "description": ""
14040           },
14041           {
14042             "group": "Body",
14043             "type": "String",
14044             "optional": true,
14045             "field": "membername",
14046             "description": ""
14047           },
14048           {
14049             "group": "Body",
14050             "type": "String",
14051             "optional": true,
14052             "field": "agentcalledAt",
14053             "description": ""
14054           },
14055           {
14056             "group": "Body",
14057             "type": "String",
14058             "optional": true,
14059             "field": "agentconnectAt",
14060             "description": ""
14061           },
14062           {
14063             "group": "Body",
14064             "type": "Integer",
14065             "optional": true,
14066             "field": "holdtime",
14067             "description": ""
14068           },
14069           {
14070             "group": "Body",
14071             "type": "Boolean",
14072             "optional": true,
14073             "field": "agentcomplete",
14074             "description": ""
14075           },
14076           {
14077             "group": "Body",
14078             "type": "String",
14079             "optional": true,
14080             "field": "agentcompleteAt",
14081             "description": ""
14082           },
14083           {
14084             "group": "Body",
14085             "type": "Integer",
14086             "optional": true,
14087             "field": "talktime",
14088             "description": ""
14089           },
14090           {
14091             "group": "Body",
14092             "type": "Boolean",
14093             "optional": true,
14094             "field": "agentacw",
14095             "description": ""
14096           },
14097           {
14098             "group": "Body",
14099             "type": "Integer",
14100             "optional": true,
14101             "field": "acwtime",
14102             "description": ""
14103           },
14104           {
14105             "group": "Body",
14106             "type": "String",
14107             "optional": true,
14108             "field": "reason",
14109             "description": ""
14110           },
14111           {
14112             "group": "Body",
14113             "type": "Boolean",
14114             "optional": true,
14115             "field": "agentringnoanswer",
14116             "description": ""
14117           },
14118           {
14119             "group": "Body",
14120             "type": "String",
14121             "optional": true,
14122             "field": "agentringnoanswerAt",
14123             "description": ""
14124           },
14125           {
14126             "group": "Body",
14127             "type": "Boolean",
14128             "optional": true,
14129             "field": "agentdump",
14130             "description": ""
14131           },
14132           {
14133             "group": "Body",
14134             "type": "String",
14135             "optional": true,
14136             "field": "agentdumpAt",
14137             "description": ""
14138           },
14139           {
14140             "group": "Body",
14141             "type": "String",
14142             "optional": true,
14143             "field": "lastevent",
14144             "description": ""
14145           },
14146           {
14147             "group": "Body",
14148             "type": "String",
14149             "optional": true,
14150             "field": "channel",
14151             "description": ""
14152           },
14153           {
14154             "group": "Body",
14155             "type": "Integer",
14156             "optional": true,
14157             "field": "channelstate",
14158             "description": ""
14159           },
14160           {
14161             "group": "Body",
14162             "type": "String",
14163             "optional": true,
14164             "field": "channelstatedesc",
14165             "description": ""
14166           },
14167           {
14168             "group": "Body",
14169             "type": "String",
14170             "optional": true,
14171             "field": "connectedlinenum",
14172             "description": ""
14173           },
14174           {
14175             "group": "Body",
14176             "type": "String",
14177             "optional": true,
14178             "field": "connectedlinename",
14179             "description": ""
14180           },
14181           {
14182             "group": "Body",
14183             "type": "String",
14184             "optional": true,
14185             "field": "language",
14186             "description": ""
14187           },
14188           {
14189             "group": "Body",
14190             "type": "String",
14191             "optional": true,
14192             "field": "accountcode",
14193             "description": ""
14194           },
14195           {
14196             "group": "Body",
14197             "type": "String",
14198             "optional": true,
14199             "field": "context",
14200             "description": ""
14201           },
14202           {
14203             "group": "Body",
14204             "type": "String",
14205             "optional": true,
14206             "field": "exten",
14207             "description": ""
14208           },
14209           {
14210             "group": "Body",
14211             "type": "String",
14212             "optional": true,
14213             "field": "priority",
14214             "description": ""
14215           },
14216           {
14217             "group": "Body",
14218             "type": "String",
14219             "optional": true,
14220             "field": "destchannel",
14221             "description": ""
14222           },
14223           {
14224             "group": "Body",
14225             "type": "Integer",
14226             "optional": true,
14227             "field": "destchannelstate",
14228             "description": ""
14229           },
14230           {
14231             "group": "Body",
14232             "type": "String",
14233             "optional": true,
14234             "field": "destchannelstatedesc",
14235             "description": ""
14236           },
14237           {
14238             "group": "Body",
14239             "type": "String",
14240             "optional": true,
14241             "field": "destcalleridnum",
14242             "description": ""
14243           },
14244           {
14245             "group": "Body",
14246             "type": "String",
14247             "optional": true,
14248             "field": "destcalleridname",
14249             "description": ""
14250           },
14251           {
14252             "group": "Body",
14253             "type": "String",
14254             "optional": true,
14255             "field": "destconnectedlinenum",
14256             "description": ""
14257           },
14258           {
14259             "group": "Body",
14260             "type": "String",
14261             "optional": true,
14262             "field": "destconnectedlinename",
14263             "description": ""
14264           },
14265           {
14266             "group": "Body",
14267             "type": "String",
14268             "optional": true,
14269             "field": "destlanguage",
14270             "description": ""
14271           },
14272           {
14273             "group": "Body",
14274             "type": "String",
14275             "optional": true,
14276             "field": "destaccountcode",
14277             "description": ""
14278           },
14279           {
14280             "group": "Body",
14281             "type": "String",
14282             "optional": true,
14283             "field": "destcontext",
14284             "description": ""
14285           },
14286           {
14287             "group": "Body",
14288             "type": "String",
14289             "optional": true,
14290             "field": "destexten",
14291             "description": ""
14292           },
14293           {
14294             "group": "Body",
14295             "type": "String",
14296             "optional": true,
14297             "field": "destpriority",
14298             "description": ""
14299           },
14300           {
14301             "group": "Body",
14302             "type": "String",
14303             "optional": true,
14304             "field": "destuniqueid",
14305             "description": ""
14306           },
14307           {
14308             "group": "Body",
14309             "type": "String",
14310             "optional": true,
14311             "field": "messageId",
14312             "description": ""
14313           },
14314           {
14315             "group": "Body",
14316             "type": "String",
14317             "optional": true,
14318             "field": "inReplyTo",
14319             "description": ""
14320           },
14321           {
14322             "group": "Body",
14323             "type": "String",
14324             "optional": true,
14325             "field": "subject",
14326             "description": ""
14327           },
14328           {
14329             "group": "Body",
14330             "type": "String",
14331             "optional": true,
14332             "field": "from",
14333             "description": ""
14334           },
14335           {
14336             "group": "Body",
14337             "type": "String",
14338             "optional": true,
14339             "field": "to",
14340             "description": ""
14341           },
14342           {
14343             "group": "Body",
14344             "type": "String",
14345             "optional": true,
14346             "field": "cc",
14347             "description": ""
14348           },
14349           {
14350             "group": "Body",
14351             "type": "Text",
14352             "optional": true,
14353             "field": "attachment",
14354             "description": ""
14355           },
14356           {
14357             "group": "Body",
14358             "type": "Text",
14359             "optional": true,
14360             "field": "html",
14361             "description": ""
14362           },
14363           {
14364             "group": "Body",
14365             "type": "Text",
14366             "optional": true,
14367             "field": "text",
14368             "description": ""
14369           },
14370           {
14371             "group": "Body",
14372             "type": "String",
14373             "allowedValues": [
14374               "\"SENT\"",
14375               "\"SENDING\"",
14376               "\"RECEIVED\"",
14377               "\"FAILED\""
14378             ],
14379             "optional": true,
14380             "field": "status",
14381             "description": ""
14382           },
14383           {
14384             "group": "Body",
14385             "type": "String",
14386             "optional": true,
14387             "field": "url",
14388             "description": ""
14389           },
14390           {
14391             "group": "Body",
14392             "type": "String",
14393             "optional": true,
14394             "field": "app",
14395             "description": ""
14396           },
14397           {
14398             "group": "Body",
14399             "type": "String",
14400             "optional": true,
14401             "field": "appdata",
14402             "description": ""
14403           },
14404           {
14405             "group": "Body",
14406             "type": "Integer",
14407             "optional": true,
14408             "field": "projectId",
14409             "description": ""
14410           }
14411         ]
14412       }
14413     },
14414     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14415     "version": "0.0.0",
14416     "filename": "server/api/integrationReport/index.js",
14417     "groupTitle": "Integration_Reports"
14418   },
14419   {
14420     "type": "delete",
14421     "url": "/api/integrations/reports/{id}",
14422     "title": "Deletes a Integration Report",
14423     "examples": [
14424       {
14425         "title": "Example usage:",
14426         "content": "curl https://{domain}/api/integrations/reports/{id} -v -u {name}:{password} -X DELETE",
14427         "type": "json"
14428       }
14429     ],
14430     "name": "DeleteIntegration_Reports",
14431     "group": "Integration_Reports",
14432     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14433     "version": "0.0.0",
14434     "filename": "server/api/integrationReport/index.js",
14435     "groupTitle": "Integration_Reports"
14436   },
14437   {
14438     "type": "get",
14439     "url": "/api/integrations/reports/describe",
14440     "title": "Gets table info about Integration Reports",
14441     "examples": [
14442       {
14443         "title": "Example usage:",
14444         "content": "curl https://{domain}/api/integrations/reports/describe -v -u {name}:{password}",
14445         "type": "json"
14446       }
14447     ],
14448     "name": "DescribeIntegration_Reports",
14449     "group": "Integration_Reports",
14450     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14451     "version": "0.0.0",
14452     "filename": "server/api/integrationReport/index.js",
14453     "groupTitle": "Integration_Reports"
14454   },
14455   {
14456     "type": "get",
14457     "url": "/api/integrations/reports",
14458     "title": "Gets a list of Integration Reports",
14459     "examples": [
14460       {
14461         "title": "Example usage:",
14462         "content": "curl https://{domain}/api/integrations/reports -v -u {name}:{password}",
14463         "type": "json"
14464       }
14465     ],
14466     "name": "GetIntegration_Reports",
14467     "group": "Integration_Reports",
14468     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/integrations/reports?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/integrations/reports?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/integrations/reports?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/integrations/reports?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/integrations/reports?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
14469     "version": "0.0.0",
14470     "filename": "server/api/integrationReport/index.js",
14471     "groupTitle": "Integration_Reports"
14472   },
14473   {
14474     "type": "get",
14475     "url": "/api/integrations/reports/{id}",
14476     "title": "Gets a single Integration Report",
14477     "examples": [
14478       {
14479         "title": "Example usage:",
14480         "content": "curl https://{domain}/api/integrations/reports/{id} -v -u {name}:{password}",
14481         "type": "json"
14482       }
14483     ],
14484     "name": "ShowIntegration_Reports",
14485     "group": "Integration_Reports",
14486     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14487     "version": "0.0.0",
14488     "filename": "server/api/integrationReport/index.js",
14489     "groupTitle": "Integration_Reports"
14490   },
14491   {
14492     "type": "put",
14493     "url": "/api/integrations/reports/{id}",
14494     "title": "Update an existing Integration Report",
14495     "examples": [
14496       {
14497         "title": "Example usage:",
14498         "content": "curl https://{domain}/api/integrations/reports/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
14499         "type": "json"
14500       }
14501     ],
14502     "name": "updateIntegration_Reports",
14503     "group": "Integration_Reports",
14504     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14505     "version": "0.0.0",
14506     "filename": "server/api/integrationReport/index.js",
14507     "groupTitle": "Integration_Reports"
14508   },
14509   {
14510     "type": "post",
14511     "url": "/api/intervals",
14512     "title": "Creates a new Interval",
14513     "examples": [
14514       {
14515         "title": "Example usage:",
14516         "content": "curl https://{domain}/api/intervals -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
14517         "type": "json"
14518       }
14519     ],
14520     "name": "CreateIntervals",
14521     "group": "Intervals",
14522     "parameter": {
14523       "fields": {
14524         "Body": [
14525           {
14526             "group": "Body",
14527             "type": "String",
14528             "optional": true,
14529             "field": "name",
14530             "description": ""
14531           },
14532           {
14533             "group": "Body",
14534             "type": "String",
14535             "optional": true,
14536             "field": "description",
14537             "description": ""
14538           },
14539           {
14540             "group": "Body",
14541             "type": "String",
14542             "optional": true,
14543             "field": "interval",
14544             "description": ""
14545           }
14546         ]
14547       }
14548     },
14549     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14550     "version": "0.0.0",
14551     "filename": "server/api/interval/index.js",
14552     "groupTitle": "Intervals"
14553   },
14554   {
14555     "type": "delete",
14556     "url": "/api/intervals/{id}",
14557     "title": "Deletes a Interval",
14558     "examples": [
14559       {
14560         "title": "Example usage:",
14561         "content": "curl https://{domain}/api/intervals/{id} -v -u {name}:{password} -X DELETE",
14562         "type": "json"
14563       }
14564     ],
14565     "name": "DeleteIntervals",
14566     "group": "Intervals",
14567     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14568     "version": "0.0.0",
14569     "filename": "server/api/interval/index.js",
14570     "groupTitle": "Intervals"
14571   },
14572   {
14573     "type": "get",
14574     "url": "/api/intervals",
14575     "title": "Gets a list of Intervals",
14576     "examples": [
14577       {
14578         "title": "Example usage:",
14579         "content": "curl https://{domain}/api/intervals -v -u {name}:{password}",
14580         "type": "json"
14581       }
14582     ],
14583     "name": "GetIntervals",
14584     "group": "Intervals",
14585     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/intervals?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/intervals?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/intervals?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/intervals?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/intervals?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
14586     "version": "0.0.0",
14587     "filename": "server/api/interval/index.js",
14588     "groupTitle": "Intervals"
14589   },
14590   {
14591     "type": "get",
14592     "url": "/api/intervals/{id}",
14593     "title": "Gets a single Interval",
14594     "examples": [
14595       {
14596         "title": "Example usage:",
14597         "content": "curl https://{domain}/api/intervals/{id} -v -u {name}:{password}",
14598         "type": "json"
14599       }
14600     ],
14601     "name": "ShowIntervals",
14602     "group": "Intervals",
14603     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14604     "version": "0.0.0",
14605     "filename": "server/api/interval/index.js",
14606     "groupTitle": "Intervals"
14607   },
14608   {
14609     "type": "post",
14610     "url": "/api/intervals/{id}/sub_intervals",
14611     "title": "Creates a new sub interval",
14612     "examples": [
14613       {
14614         "title": "Example usage:",
14615         "content": "curl https://{domain}/api/intervals/{id}/sub_intervals -d '{\"interval\": \"00:00-08:30,mon-fri,*,*\"}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
14616         "type": "json"
14617       }
14618     ],
14619     "name": "addInterval",
14620     "group": "Intervals",
14621     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14622     "version": "0.0.0",
14623     "filename": "server/api/interval/index.js",
14624     "groupTitle": "Intervals"
14625   },
14626   {
14627     "type": "post",
14628     "url": "/api/intervals/{id}/sub_intervals/create_many",
14629     "title": "Create new sub intervals set",
14630     "examples": [
14631       {
14632         "title": "Example usage:",
14633         "content": "curl https://{domain}/api/intervals/{id}/sub_intervals -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
14634         "type": "json"
14635       }
14636     ],
14637     "name": "addIntervals",
14638     "group": "Intervals",
14639     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14640     "version": "0.0.0",
14641     "filename": "server/api/interval/index.js",
14642     "groupTitle": "Intervals"
14643   },
14644   {
14645     "type": "get",
14646     "url": "/api/intervals/{id}/sub_intervals",
14647     "title": "Get sub intervals set",
14648     "examples": [
14649       {
14650         "title": "Example usage:",
14651         "content": "curl https://{domain}/api/intervals/{id}/sub_intervals -v -u {name}:{password} -X GET",
14652         "type": "json"
14653       }
14654     ],
14655     "name": "getIntervals",
14656     "group": "Intervals",
14657     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14658     "version": "0.0.0",
14659     "filename": "server/api/interval/index.js",
14660     "groupTitle": "Intervals"
14661   },
14662   {
14663     "type": "put",
14664     "url": "/api/intervals/{id}",
14665     "title": "Update an existing Interval",
14666     "examples": [
14667       {
14668         "title": "Example usage:",
14669         "content": "curl https://{domain}/api/intervals/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
14670         "type": "json"
14671       }
14672     ],
14673     "name": "updateIntervals",
14674     "group": "Intervals",
14675     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14676     "version": "0.0.0",
14677     "filename": "server/api/interval/index.js",
14678     "groupTitle": "Intervals"
14679   },
14680   {
14681     "type": "post",
14682     "url": "/api/jira",
14683     "title": "Creates a new issue",
14684     "examples": [
14685       {
14686         "title": "Example usage:",
14687         "content": "curl https://{domain}/api/jira -d '{\"key\": \"Bug\", \"description\": \"I can't do it!\"}' \\\n -H \"Content-Type: application/json\" -X POST -v -u {name}:{password}",
14688         "type": "json"
14689       }
14690     ],
14691     "name": "Creates_Issue",
14692     "group": "Issue",
14693     "parameter": {
14694       "fields": {
14695         "Body": [
14696           {
14697             "group": "Body",
14698             "type": "String",
14699             "allowedValues": [
14700               "\"Bug\""
14701             ],
14702             "optional": true,
14703             "field": "issuetype",
14704             "description": ""
14705           },
14706           {
14707             "group": "Body",
14708             "type": "String",
14709             "optional": false,
14710             "field": "summary",
14711             "description": ""
14712           },
14713           {
14714             "group": "Body",
14715             "type": "String",
14716             "optional": false,
14717             "field": "description",
14718             "description": ""
14719           }
14720         ]
14721       }
14722     },
14723     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14724     "version": "0.0.0",
14725     "filename": "server/api/jira/index.js",
14726     "groupTitle": "Issue"
14727   },
14728   {
14729     "type": "post",
14730     "url": "/api/jscripty/answers/reports",
14731     "title": "Creates a new Report",
14732     "examples": [
14733       {
14734         "title": "Example usage:",
14735         "content": "curl https://{domain}/api/jscripty/answers/reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
14736         "type": "json"
14737       }
14738     ],
14739     "name": "CreateReports",
14740     "group": "JscriptyAnswerReport",
14741     "parameter": {
14742       "fields": {
14743         "Body": [
14744           {
14745             "group": "Body",
14746             "type": "Text",
14747             "optional": true,
14748             "field": "question",
14749             "description": ""
14750           },
14751           {
14752             "group": "Body",
14753             "type": "Text",
14754             "optional": true,
14755             "field": "answer",
14756             "description": ""
14757           },
14758           {
14759             "group": "Body",
14760             "type": "String",
14761             "optional": true,
14762             "field": "membername",
14763             "description": ""
14764           },
14765           {
14766             "group": "Body",
14767             "type": "String",
14768             "optional": true,
14769             "field": "projectname",
14770             "description": ""
14771           },
14772           {
14773             "group": "Body",
14774             "type": "String",
14775             "optional": true,
14776             "field": "queue",
14777             "description": ""
14778           },
14779           {
14780             "group": "Body",
14781             "type": "String",
14782             "optional": true,
14783             "field": "uniqueid",
14784             "description": ""
14785           },
14786           {
14787             "group": "Body",
14788             "type": "String",
14789             "optional": true,
14790             "field": "calleridname",
14791             "description": ""
14792           },
14793           {
14794             "group": "Body",
14795             "type": "String",
14796             "optional": true,
14797             "field": "calleridnum",
14798             "description": ""
14799           },
14800           {
14801             "group": "Body",
14802             "type": "String",
14803             "optional": true,
14804             "field": "questionId",
14805             "description": ""
14806           }
14807         ]
14808       }
14809     },
14810     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14811     "version": "0.0.0",
14812     "filename": "server/api/jscriptyAnswerReport/index.js",
14813     "groupTitle": "JscriptyAnswerReport"
14814   },
14815   {
14816     "type": "delete",
14817     "url": "/api/jscripty/answers/reports/{id}",
14818     "title": "Deletes a Report",
14819     "examples": [
14820       {
14821         "title": "Example usage:",
14822         "content": "curl https://{domain}/api/jscripty/answers/reports/{id} -v -u {name}:{password} -X DELETE",
14823         "type": "json"
14824       }
14825     ],
14826     "name": "DeleteReports",
14827     "group": "JscriptyAnswerReport",
14828     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14829     "version": "0.0.0",
14830     "filename": "server/api/jscriptyAnswerReport/index.js",
14831     "groupTitle": "JscriptyAnswerReport"
14832   },
14833   {
14834     "type": "get",
14835     "url": "/api/jscripty/answers/reports/describe",
14836     "title": "Gets table info about Reports",
14837     "examples": [
14838       {
14839         "title": "Example usage:",
14840         "content": "curl https://{domain}/api/jscripty/answers/reports/describe -v -u {name}:{password}",
14841         "type": "json"
14842       }
14843     ],
14844     "name": "DescribeReports",
14845     "group": "JscriptyAnswerReport",
14846     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14847     "version": "0.0.0",
14848     "filename": "server/api/jscriptyAnswerReport/index.js",
14849     "groupTitle": "JscriptyAnswerReport"
14850   },
14851   {
14852     "type": "get",
14853     "url": "/api/jscripty/answers/reports",
14854     "title": "Gets a list of Reports",
14855     "examples": [
14856       {
14857         "title": "Example usage:",
14858         "content": "curl https://{domain}/api/jscripty/answers/reports -v -u {name}:{password}",
14859         "type": "json"
14860       }
14861     ],
14862     "name": "GetReports",
14863     "group": "JscriptyAnswerReport",
14864     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/jscripty/answers/reports?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/jscripty/answers/reports?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/jscripty/answers/reports?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/jscripty/answers/reports?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/jscripty/answers/reports?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
14865     "version": "0.0.0",
14866     "filename": "server/api/jscriptyAnswerReport/index.js",
14867     "groupTitle": "JscriptyAnswerReport"
14868   },
14869   {
14870     "type": "get",
14871     "url": "/api/jscripty/answers/reports/{id}",
14872     "title": "Gets a single Report",
14873     "examples": [
14874       {
14875         "title": "Example usage:",
14876         "content": "curl https://{domain}/api/jscripty/answers/reports/{id} -v -u {name}:{password}",
14877         "type": "json"
14878       }
14879     ],
14880     "name": "ShowReports",
14881     "group": "JscriptyAnswerReport",
14882     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14883     "version": "0.0.0",
14884     "filename": "server/api/jscriptyAnswerReport/index.js",
14885     "groupTitle": "JscriptyAnswerReport"
14886   },
14887   {
14888     "type": "put",
14889     "url": "/api/jscripty/answers/reports/{id}",
14890     "title": "Update an existing Report",
14891     "examples": [
14892       {
14893         "title": "Example usage:",
14894         "content": "curl https://{domain}/api/jscripty/answers/reports/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
14895         "type": "json"
14896       }
14897     ],
14898     "name": "updateReports",
14899     "group": "JscriptyAnswerReport",
14900     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14901     "version": "0.0.0",
14902     "filename": "server/api/jscriptyAnswerReport/index.js",
14903     "groupTitle": "JscriptyAnswerReport"
14904   },
14905   {
14906     "type": "post",
14907     "url": "/api/jscripty/questions/reports",
14908     "title": "Creates a new Report",
14909     "examples": [
14910       {
14911         "title": "Example usage:",
14912         "content": "curl https://{domain}/api/jscripty/questions/reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
14913         "type": "json"
14914       }
14915     ],
14916     "name": "CreateReports",
14917     "group": "JscriptyQuestionReport",
14918     "parameter": {
14919       "fields": {
14920         "Body": [
14921           {
14922             "group": "Body",
14923             "type": "Text",
14924             "optional": true,
14925             "field": "question",
14926             "description": ""
14927           },
14928           {
14929             "group": "Body",
14930             "type": "Text",
14931             "optional": true,
14932             "field": "answer",
14933             "description": ""
14934           },
14935           {
14936             "group": "Body",
14937             "type": "String",
14938             "optional": true,
14939             "field": "membername",
14940             "description": ""
14941           },
14942           {
14943             "group": "Body",
14944             "type": "String",
14945             "optional": true,
14946             "field": "projectname",
14947             "description": ""
14948           },
14949           {
14950             "group": "Body",
14951             "type": "String",
14952             "optional": true,
14953             "field": "queue",
14954             "description": ""
14955           },
14956           {
14957             "group": "Body",
14958             "type": "String",
14959             "optional": true,
14960             "field": "uniqueid",
14961             "description": ""
14962           },
14963           {
14964             "group": "Body",
14965             "type": "String",
14966             "optional": true,
14967             "field": "calleridname",
14968             "description": ""
14969           },
14970           {
14971             "group": "Body",
14972             "type": "String",
14973             "optional": true,
14974             "field": "calleridnum",
14975             "description": ""
14976           },
14977           {
14978             "group": "Body",
14979             "type": "String",
14980             "optional": true,
14981             "field": "questionId",
14982             "description": ""
14983           }
14984         ]
14985       }
14986     },
14987     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14988     "version": "0.0.0",
14989     "filename": "server/api/jscriptyQuestionReport/index.js",
14990     "groupTitle": "JscriptyQuestionReport"
14991   },
14992   {
14993     "type": "delete",
14994     "url": "/api/jscripty/questions/reports/{id}",
14995     "title": "Deletes a Report",
14996     "examples": [
14997       {
14998         "title": "Example usage:",
14999         "content": "curl https://{domain}/api/jscripty/questions/reports/{id} -v -u {name}:{password} -X DELETE",
15000         "type": "json"
15001       }
15002     ],
15003     "name": "DeleteReports",
15004     "group": "JscriptyQuestionReport",
15005     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15006     "version": "0.0.0",
15007     "filename": "server/api/jscriptyQuestionReport/index.js",
15008     "groupTitle": "JscriptyQuestionReport"
15009   },
15010   {
15011     "type": "get",
15012     "url": "/api/jscripty/questions/reports/describe",
15013     "title": "Gets table info about Reports",
15014     "examples": [
15015       {
15016         "title": "Example usage:",
15017         "content": "curl https://{domain}/api/jscripty/questions/reports/describe -v -u {name}:{password}",
15018         "type": "json"
15019       }
15020     ],
15021     "name": "DescribeReports",
15022     "group": "JscriptyQuestionReport",
15023     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15024     "version": "0.0.0",
15025     "filename": "server/api/jscriptyQuestionReport/index.js",
15026     "groupTitle": "JscriptyQuestionReport"
15027   },
15028   {
15029     "type": "get",
15030     "url": "/api/jscripty/questions/reports",
15031     "title": "Gets a list of Reports",
15032     "examples": [
15033       {
15034         "title": "Example usage:",
15035         "content": "curl https://{domain}/api/jscripty/questions/reports -v -u {name}:{password}",
15036         "type": "json"
15037       }
15038     ],
15039     "name": "GetReports",
15040     "group": "JscriptyQuestionReport",
15041     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/jscripty/questions/reports?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/jscripty/questions/reports?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/jscripty/questions/reports?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/jscripty/questions/reports?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/jscripty/questions/reports?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
15042     "version": "0.0.0",
15043     "filename": "server/api/jscriptyQuestionReport/index.js",
15044     "groupTitle": "JscriptyQuestionReport"
15045   },
15046   {
15047     "type": "get",
15048     "url": "/api/jscripty/questions/reports/{id}",
15049     "title": "Gets a single Report",
15050     "examples": [
15051       {
15052         "title": "Example usage:",
15053         "content": "curl https://{domain}/api/jscripty/questions/reports/{id} -v -u {name}:{password}",
15054         "type": "json"
15055       }
15056     ],
15057     "name": "ShowReports",
15058     "group": "JscriptyQuestionReport",
15059     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15060     "version": "0.0.0",
15061     "filename": "server/api/jscriptyQuestionReport/index.js",
15062     "groupTitle": "JscriptyQuestionReport"
15063   },
15064   {
15065     "type": "put",
15066     "url": "/api/jscripty/questions/reports/{id}",
15067     "title": "Update an existing Report",
15068     "examples": [
15069       {
15070         "title": "Example usage:",
15071         "content": "curl https://{domain}/api/jscripty/questions/reports/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
15072         "type": "json"
15073       }
15074     ],
15075     "name": "updateReports",
15076     "group": "JscriptyQuestionReport",
15077     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15078     "version": "0.0.0",
15079     "filename": "server/api/jscriptyQuestionReport/index.js",
15080     "groupTitle": "JscriptyQuestionReport"
15081   },
15082   {
15083     "type": "post",
15084     "url": "/api/jscripty/sessions/reports",
15085     "title": "Creates a new Report",
15086     "examples": [
15087       {
15088         "title": "Example usage:",
15089         "content": "curl https://{domain}/api/jscripty/sessions/reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
15090         "type": "json"
15091       }
15092     ],
15093     "name": "CreateReports",
15094     "group": "JscriptySessionReport",
15095     "parameter": {
15096       "fields": {
15097         "Body": [
15098           {
15099             "group": "Body",
15100             "type": "String",
15101             "optional": true,
15102             "field": "starttime",
15103             "description": ""
15104           },
15105           {
15106             "group": "Body",
15107             "type": "String",
15108             "optional": true,
15109             "field": "endtime",
15110             "description": ""
15111           },
15112           {
15113             "group": "Body",
15114             "type": "String",
15115             "optional": true,
15116             "field": "membername",
15117             "description": ""
15118           },
15119           {
15120             "group": "Body",
15121             "type": "String",
15122             "optional": true,
15123             "field": "projectname",
15124             "description": ""
15125           },
15126           {
15127             "group": "Body",
15128             "type": "String",
15129             "optional": true,
15130             "field": "queue",
15131             "description": ""
15132           },
15133           {
15134             "group": "Body",
15135             "type": "String",
15136             "optional": true,
15137             "field": "uniqueid",
15138             "description": ""
15139           },
15140           {
15141             "group": "Body",
15142             "type": "String",
15143             "optional": true,
15144             "field": "calleridname",
15145             "description": ""
15146           },
15147           {
15148             "group": "Body",
15149             "type": "String",
15150             "optional": true,
15151             "field": "calleridnum",
15152             "description": ""
15153           },
15154           {
15155             "group": "Body",
15156             "type": "Boolean",
15157             "optional": true,
15158             "field": "completed",
15159             "description": ""
15160           }
15161         ]
15162       }
15163     },
15164     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15165     "version": "0.0.0",
15166     "filename": "server/api/jscriptySessionReport/index.js",
15167     "groupTitle": "JscriptySessionReport"
15168   },
15169   {
15170     "type": "delete",
15171     "url": "/api/jscripty/sessions/reports/{id}",
15172     "title": "Deletes a Report",
15173     "examples": [
15174       {
15175         "title": "Example usage:",
15176         "content": "curl https://{domain}/api/jscripty/sessions/reports/{id} -v -u {name}:{password} -X DELETE",
15177         "type": "json"
15178       }
15179     ],
15180     "name": "DeleteReports",
15181     "group": "JscriptySessionReport",
15182     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15183     "version": "0.0.0",
15184     "filename": "server/api/jscriptySessionReport/index.js",
15185     "groupTitle": "JscriptySessionReport"
15186   },
15187   {
15188     "type": "get",
15189     "url": "/api/jscripty/sessions/reports/describe",
15190     "title": "Gets table info about Reports",
15191     "examples": [
15192       {
15193         "title": "Example usage:",
15194         "content": "curl https://{domain}/api/jscripty/sessions/reports/describe -v -u {name}:{password}",
15195         "type": "json"
15196       }
15197     ],
15198     "name": "DescribeReports",
15199     "group": "JscriptySessionReport",
15200     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15201     "version": "0.0.0",
15202     "filename": "server/api/jscriptySessionReport/index.js",
15203     "groupTitle": "JscriptySessionReport"
15204   },
15205   {
15206     "type": "get",
15207     "url": "/api/jscripty/sessions/reports",
15208     "title": "Gets a list of Reports",
15209     "examples": [
15210       {
15211         "title": "Example usage:",
15212         "content": "curl https://{domain}/api/jscripty/sessions/reports -v -u {name}:{password}",
15213         "type": "json"
15214       }
15215     ],
15216     "name": "GetReports",
15217     "group": "JscriptySessionReport",
15218     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/jscripty/sessions/reports?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/jscripty/sessions/reports?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/jscripty/sessions/reports?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/jscripty/sessions/reports?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/jscripty/sessions/reports?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
15219     "version": "0.0.0",
15220     "filename": "server/api/jscriptySessionReport/index.js",
15221     "groupTitle": "JscriptySessionReport"
15222   },
15223   {
15224     "type": "get",
15225     "url": "/api/jscripty/sessions/reports/{id}",
15226     "title": "Gets a single Report",
15227     "examples": [
15228       {
15229         "title": "Example usage:",
15230         "content": "curl https://{domain}/api/jscripty/sessions/reports/{id} -v -u {name}:{password}",
15231         "type": "json"
15232       }
15233     ],
15234     "name": "ShowReports",
15235     "group": "JscriptySessionReport",
15236     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15237     "version": "0.0.0",
15238     "filename": "server/api/jscriptySessionReport/index.js",
15239     "groupTitle": "JscriptySessionReport"
15240   },
15241   {
15242     "type": "get",
15243     "url": "/api/jscripty/sessions/reports/{id}/questions",
15244     "title": "Gets Jscripty Session questions",
15245     "examples": [
15246       {
15247         "title": "Example usage:",
15248         "content": "curl https://{domain}/api/jscripty/sessions/reports/{id}/questions -v -u {name}:{password}  -X GET",
15249         "type": "json"
15250       }
15251     ],
15252     "name": "getQuestions",
15253     "group": "JscriptySessionReport",
15254     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15255     "version": "0.0.0",
15256     "filename": "server/api/jscriptySessionReport/index.js",
15257     "groupTitle": "JscriptySessionReport"
15258   },
15259   {
15260     "type": "put",
15261     "url": "/api/jscripty/sessions/reports/{id}",
15262     "title": "Update an existing Report",
15263     "examples": [
15264       {
15265         "title": "Example usage:",
15266         "content": "curl https://{domain}/api/jscripty/sessions/reports/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
15267         "type": "json"
15268       }
15269     ],
15270     "name": "updateReports",
15271     "group": "JscriptySessionReport",
15272     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15273     "version": "0.0.0",
15274     "filename": "server/api/jscriptySessionReport/index.js",
15275     "groupTitle": "JscriptySessionReport"
15276   },
15277   {
15278     "type": "post",
15279     "url": "/api/jscripty/projects/clone",
15280     "title": "Clone an existing Project",
15281     "examples": [
15282       {
15283         "title": "Example usage:",
15284         "content": "curl https://{domain}/api/jscripty/projects/clone -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
15285         "type": "json"
15286       }
15287     ],
15288     "name": "CloneProjects",
15289     "group": "Jscripty_Projects",
15290     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15291     "version": "0.0.0",
15292     "filename": "server/api/jscriptyProject/index.js",
15293     "groupTitle": "Jscripty_Projects"
15294   },
15295   {
15296     "type": "post",
15297     "url": "/api/jscripty/projects",
15298     "title": "Creates a new Project",
15299     "examples": [
15300       {
15301         "title": "Example usage:",
15302         "content": "curl https://{domain}/api/jscripty/projects -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
15303         "type": "json"
15304       }
15305     ],
15306     "name": "CreateProjects",
15307     "group": "Jscripty_Projects",
15308     "parameter": {
15309       "fields": {
15310         "Body": [
15311           {
15312             "group": "Body",
15313             "type": "String",
15314             "optional": true,
15315             "field": "name",
15316             "description": ""
15317           },
15318           {
15319             "group": "Body",
15320             "type": "String",
15321             "optional": true,
15322             "field": "description",
15323             "description": ""
15324           },
15325           {
15326             "group": "Body",
15327             "type": "Text",
15328             "optional": true,
15329             "field": "formData",
15330             "description": ""
15331           },
15332           {
15333             "group": "Body",
15334             "type": "Boolean",
15335             "optional": true,
15336             "field": "enableUncompleteSave",
15337             "description": ""
15338           },
15339           {
15340             "group": "Body",
15341             "type": "Boolean",
15342             "optional": true,
15343             "field": "sendUnpauseOnSubmit",
15344             "description": ""
15345           }
15346         ]
15347       }
15348     },
15349     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15350     "version": "0.0.0",
15351     "filename": "server/api/jscriptyProject/index.js",
15352     "groupTitle": "Jscripty_Projects"
15353   },
15354   {
15355     "type": "delete",
15356     "url": "/api/jscripty/projects/{id}",
15357     "title": "Deletes a Project",
15358     "examples": [
15359       {
15360         "title": "Example usage:",
15361         "content": "curl https://{domain}/api/jscripty/projects/{id} -v -u {name}:{password} -X DELETE",
15362         "type": "json"
15363       }
15364     ],
15365     "name": "DeleteProjects",
15366     "group": "Jscripty_Projects",
15367     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15368     "version": "0.0.0",
15369     "filename": "server/api/jscriptyProject/index.js",
15370     "groupTitle": "Jscripty_Projects"
15371   },
15372   {
15373     "type": "get",
15374     "url": "/api/jscripty/projects",
15375     "title": "Gets a list of Projects",
15376     "examples": [
15377       {
15378         "title": "Example usage:",
15379         "content": "curl https://{domain}/api/jscripty/projects -v -u {name}:{password}",
15380         "type": "json"
15381       }
15382     ],
15383     "name": "GetProjects",
15384     "group": "Jscripty_Projects",
15385     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/jscripty/projects?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/jscripty/projects?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/jscripty/projects?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/jscripty/projects?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/jscripty/projects?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
15386     "version": "0.0.0",
15387     "filename": "server/api/jscriptyProject/index.js",
15388     "groupTitle": "Jscripty_Projects"
15389   },
15390   {
15391     "type": "get",
15392     "url": "/api/jscripty/projects/{id}",
15393     "title": "Gets a single Project",
15394     "examples": [
15395       {
15396         "title": "Example usage:",
15397         "content": "curl https://{domain}/api/jscripty/projects/{id} -v -u {name}:{password}",
15398         "type": "json"
15399       }
15400     ],
15401     "name": "ShowProjects",
15402     "group": "Jscripty_Projects",
15403     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15404     "version": "0.0.0",
15405     "filename": "server/api/jscriptyProject/index.js",
15406     "groupTitle": "Jscripty_Projects"
15407   },
15408   {
15409     "type": "get",
15410     "url": "/api/jscripty/projects/{id}/answers",
15411     "title": "Gets jscripty project answers",
15412     "examples": [
15413       {
15414         "title": "Example usage:",
15415         "content": "curl https://{domain}/api/jscripty/projects/{id}/answers -v -u {name}:{password}  -X GET",
15416         "type": "json"
15417       }
15418     ],
15419     "name": "getAnswers",
15420     "group": "Jscripty_Projects",
15421     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15422     "version": "0.0.0",
15423     "filename": "server/api/jscriptyProject/index.js",
15424     "groupTitle": "Jscripty_Projects"
15425   },
15426   {
15427     "type": "get",
15428     "url": "/api/jscripty/projects/{id}/sessions",
15429     "title": "Gets jscripty project sessions",
15430     "examples": [
15431       {
15432         "title": "Example usage:",
15433         "content": "curl https://{domain}/api/jscripty/projects/{id}/sessions -v -u {name}:{password}  -X GET",
15434         "type": "json"
15435       }
15436     ],
15437     "name": "getSessions",
15438     "group": "Jscripty_Projects",
15439     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15440     "version": "0.0.0",
15441     "filename": "server/api/jscriptyProject/index.js",
15442     "groupTitle": "Jscripty_Projects"
15443   },
15444   {
15445     "type": "get",
15446     "url": "/api/jscripty/projects/{id}/summary",
15447     "title": "Gets jscripty project summary",
15448     "examples": [
15449       {
15450         "title": "Example usage:",
15451         "content": "curl https://{domain}/api/jscripty/projects/{id}/summary -v -u {name}:{password}  -X GET",
15452         "type": "json"
15453       }
15454     ],
15455     "name": "getSummary",
15456     "group": "Jscripty_Projects",
15457     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15458     "version": "0.0.0",
15459     "filename": "server/api/jscriptyProject/index.js",
15460     "groupTitle": "Jscripty_Projects"
15461   },
15462   {
15463     "type": "put",
15464     "url": "/api/jscripty/projects/{id}",
15465     "title": "Update an existing Project",
15466     "examples": [
15467       {
15468         "title": "Example usage:",
15469         "content": "curl https://{domain}/api/jscripty/projects/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
15470         "type": "json"
15471       }
15472     ],
15473     "name": "updateProjects",
15474     "group": "Jscripty_Projects",
15475     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15476     "version": "0.0.0",
15477     "filename": "server/api/jscriptyProject/index.js",
15478     "groupTitle": "Jscripty_Projects"
15479   },
15480   {
15481     "type": "get",
15482     "url": "/api/license",
15483     "title": "Gets License Info",
15484     "examples": [
15485       {
15486         "title": "Example usage:",
15487         "content": "curl https://{domain}/api/license -v -u {name}:{password} -X GET",
15488         "type": "json"
15489       }
15490     ],
15491     "name": "index",
15492     "group": "License",
15493     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15494     "version": "0.0.0",
15495     "filename": "server/api/license/index.js",
15496     "groupTitle": "License"
15497   },
15498   {
15499     "type": "put",
15500     "url": "/api/license/{id}",
15501     "title": "Update License Info",
15502     "examples": [
15503       {
15504         "title": "Example usage:",
15505         "content": "curl https://{domain}/api/license/{id} -v -u {name}:{password} -X PUT",
15506         "type": "json"
15507       }
15508     ],
15509     "name": "update",
15510     "group": "License",
15511     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15512     "version": "0.0.0",
15513     "filename": "server/api/license/index.js",
15514     "groupTitle": "License"
15515   },
15516   {
15517     "type": "post",
15518     "url": "/api/mail/accounts/{id}/users",
15519     "title": "Add agents to a mail account",
15520     "examples": [
15521       {
15522         "title": "Example usage:",
15523         "content": "curl https://{domain}/api/mail/accounts/{id}/users -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
15524         "type": "json"
15525       }
15526     ],
15527     "name": "AddAgents",
15528     "group": "Mail_Accounts",
15529     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15530     "version": "0.0.0",
15531     "filename": "server/api/mailAccount/index.js",
15532     "groupTitle": "Mail_Accounts"
15533   },
15534   {
15535     "type": "post",
15536     "url": "/api/mail/accounts/{id}/in_servers",
15537     "title": "Creates a new IMAP server",
15538     "examples": [
15539       {
15540         "title": "Example usage:",
15541         "content": "curl https://{domain}/api/mail/accounts/{id}/in_servers -d '{\"host\": \"host\", \"username\": \"username\", \"password\": \"password\", \"...\": \"...\"}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
15542         "type": "json"
15543       }
15544     ],
15545     "name": "AddImap",
15546     "group": "Mail_Accounts",
15547     "parameter": {
15548       "fields": {
15549         "Body": [
15550           {
15551             "group": "Body",
15552             "type": "String",
15553             "optional": true,
15554             "field": "description",
15555             "description": ""
15556           },
15557           {
15558             "group": "Body",
15559             "type": "String",
15560             "optional": true,
15561             "field": "host",
15562             "description": ""
15563           },
15564           {
15565             "group": "Body",
15566             "type": "Boolean",
15567             "optional": true,
15568             "field": "authentication",
15569             "description": ""
15570           },
15571           {
15572             "group": "Body",
15573             "type": "String",
15574             "optional": true,
15575             "field": "user",
15576             "description": ""
15577           },
15578           {
15579             "group": "Body",
15580             "type": "String",
15581             "optional": true,
15582             "field": "password",
15583             "description": ""
15584           },
15585           {
15586             "group": "Body",
15587             "type": "Integer",
15588             "optional": true,
15589             "field": "port",
15590             "description": ""
15591           },
15592           {
15593             "group": "Body",
15594             "type": "Boolean",
15595             "optional": true,
15596             "field": "tls",
15597             "description": ""
15598           },
15599           {
15600             "group": "Body",
15601             "type": "String",
15602             "optional": true,
15603             "field": "mailbox",
15604             "description": ""
15605           },
15606           {
15607             "group": "Body",
15608             "type": "Integer",
15609             "optional": true,
15610             "field": "connTimeout",
15611             "description": ""
15612           },
15613           {
15614             "group": "Body",
15615             "type": "Integer",
15616             "optional": true,
15617             "field": "authTimeout",
15618             "description": ""
15619           },
15620           {
15621             "group": "Body",
15622             "type": "String",
15623             "optional": true,
15624             "field": "service",
15625             "description": ""
15626           }
15627         ]
15628       }
15629     },
15630     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15631     "version": "0.0.0",
15632     "filename": "server/api/mailAccount/index.js",
15633     "groupTitle": "Mail_Accounts"
15634   },
15635   {
15636     "type": "post",
15637     "url": "/api/mail/accounts/{id}/out_servers",
15638     "title": "Creates a new SMTP server",
15639     "examples": [
15640       {
15641         "title": "Example usage:",
15642         "content": "curl https://{domain}/api/mail/accounts/{id}/out_servers -d '{\"host\": \"host\", \"username\": \"username\", \"password\": \"password\", \"...\": \"...\"}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
15643         "type": "json"
15644       }
15645     ],
15646     "name": "AddSmtp",
15647     "group": "Mail_Accounts",
15648     "parameter": {
15649       "fields": {
15650         "Body": [
15651           {
15652             "group": "Body",
15653             "type": "String",
15654             "optional": true,
15655             "field": "description",
15656             "description": ""
15657           },
15658           {
15659             "group": "Body",
15660             "type": "String",
15661             "optional": true,
15662             "field": "host",
15663             "description": ""
15664           },
15665           {
15666             "group": "Body",
15667             "type": "String",
15668             "optional": true,
15669             "field": "user",
15670             "description": ""
15671           },
15672           {
15673             "group": "Body",
15674             "type": "String",
15675             "optional": true,
15676             "field": "pass",
15677             "description": ""
15678           },
15679           {
15680             "group": "Body",
15681             "type": "Integer",
15682             "optional": true,
15683             "field": "port",
15684             "description": ""
15685           },
15686           {
15687             "group": "Body",
15688             "type": "Boolean",
15689             "optional": true,
15690             "field": "secure",
15691             "description": ""
15692           },
15693           {
15694             "group": "Body",
15695             "type": "String",
15696             "optional": true,
15697             "field": "service",
15698             "description": ""
15699           },
15700           {
15701             "group": "Body",
15702             "type": "Boolean",
15703             "optional": true,
15704             "field": "authentication",
15705             "description": ""
15706           }
15707         ]
15708       }
15709     },
15710     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15711     "version": "0.0.0",
15712     "filename": "server/api/mailAccount/index.js",
15713     "groupTitle": "Mail_Accounts"
15714   },
15715   {
15716     "type": "delete",
15717     "url": "/api/mail/accounts/{id}",
15718     "title": "Deletes a mail account",
15719     "examples": [
15720       {
15721         "title": "Example usage:",
15722         "content": "curl https://{domain}/api/mail/accounts/{id} -v -u {name}:{password} -X DELETE",
15723         "type": "json"
15724       }
15725     ],
15726     "name": "DeleteMailAccounts",
15727     "group": "Mail_Accounts",
15728     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15729     "version": "0.0.0",
15730     "filename": "server/api/mailAccount/index.js",
15731     "groupTitle": "Mail_Accounts"
15732   },
15733   {
15734     "type": "get",
15735     "url": "/api/mail/accounts/describe",
15736     "title": "Gets table info about Accounts",
15737     "examples": [
15738       {
15739         "title": "Example usage:",
15740         "content": "curl https://{domain}/api/mail/accounts/describe -v -u {name}:{password}",
15741         "type": "json"
15742       }
15743     ],
15744     "name": "DescribeAccounts",
15745     "group": "Mail_Accounts",
15746     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15747     "version": "0.0.0",
15748     "filename": "server/api/mailAccount/index.js",
15749     "groupTitle": "Mail_Accounts"
15750   },
15751   {
15752     "type": "get",
15753     "url": "/api/mail/accounts",
15754     "title": "Gets a list of Accounts",
15755     "examples": [
15756       {
15757         "title": "Example usage:",
15758         "content": "curl https://{domain}/api/mail/accounts -v -u {name}:{password}",
15759         "type": "json"
15760       }
15761     ],
15762     "name": "GetAccounts",
15763     "group": "Mail_Accounts",
15764     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/mail/accounts?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/mail/accounts?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/mail/accounts?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/mail/accounts?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/mail/accounts?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
15765     "version": "0.0.0",
15766     "filename": "server/api/mailAccount/index.js",
15767     "groupTitle": "Mail_Accounts"
15768   },
15769   {
15770     "type": "get",
15771     "url": "/api/mail/accounts/{id}/users",
15772     "title": "Gets agents from mail account",
15773     "examples": [
15774       {
15775         "title": "Example usage:",
15776         "content": "curl https://{domain}/api/mail/accounts/{id}/users -v -u {name}:{password} -X GET",
15777         "type": "json"
15778       }
15779     ],
15780     "name": "GetAgents",
15781     "group": "Mail_Accounts",
15782     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15783     "version": "0.0.0",
15784     "filename": "server/api/mailAccount/index.js",
15785     "groupTitle": "Mail_Accounts"
15786   },
15787   {
15788     "type": "get",
15789     "url": "/api/mail/accounts/{id}/in_servers",
15790     "title": "Gets account IMAP server",
15791     "examples": [
15792       {
15793         "title": "Example usage:",
15794         "content": "curl https://{domain}/api/mail/accounts/{id}/in_servers -v -u {name}:{password} -X GET",
15795         "type": "json"
15796       }
15797     ],
15798     "name": "GetImap",
15799     "group": "Mail_Accounts",
15800     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15801     "version": "0.0.0",
15802     "filename": "server/api/mailAccount/index.js",
15803     "groupTitle": "Mail_Accounts"
15804   },
15805   {
15806     "type": "get",
15807     "url": "/api/mail/accounts/{id}/out_servers",
15808     "title": "Gets account SMTP server",
15809     "examples": [
15810       {
15811         "title": "Example usage:",
15812         "content": "curl https://{domain}/api/mail/accounts/{id}/out_servers -v -u {name}:{password} -X GET",
15813         "type": "json"
15814       }
15815     ],
15816     "name": "GetSmtp",
15817     "group": "Mail_Accounts",
15818     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15819     "version": "0.0.0",
15820     "filename": "server/api/mailAccount/index.js",
15821     "groupTitle": "Mail_Accounts"
15822   },
15823   {
15824     "type": "delete",
15825     "url": "/api/mail/accounts/{id}/users",
15826     "title": "Removes agents from a mail account",
15827     "examples": [
15828       {
15829         "title": "Example usage:",
15830         "content": "curl https://{domain}/api/mail/accounts/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
15831         "type": "json"
15832       }
15833     ],
15834     "name": "RemoveAgents",
15835     "group": "Mail_Accounts",
15836     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15837     "version": "0.0.0",
15838     "filename": "server/api/mailAccount/index.js",
15839     "groupTitle": "Mail_Accounts"
15840   },
15841   {
15842     "type": "delete",
15843     "url": "/api/mail/accounts/{id}/canned_answers",
15844     "title": "Removes canned answers from account",
15845     "examples": [
15846       {
15847         "title": "Example usage:",
15848         "content": "curl https://{domain}/api/mail/accounts/{id}/canned_answers?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
15849         "type": "json"
15850       }
15851     ],
15852     "name": "RemoveAnswers",
15853     "group": "Mail_Accounts",
15854     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15855     "version": "0.0.0",
15856     "filename": "server/api/mailAccount/index.js",
15857     "groupTitle": "Mail_Accounts"
15858   },
15859   {
15860     "type": "delete",
15861     "url": "/api/mail/accounts/{id}/dispositions",
15862     "title": "Removes dispositions from account",
15863     "examples": [
15864       {
15865         "title": "Example usage:",
15866         "content": "curl https://{domain}/api/mail/accounts/{id}/dispositions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
15867         "type": "json"
15868       }
15869     ],
15870     "name": "RemoveDispositions",
15871     "group": "Mail_Accounts",
15872     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15873     "version": "0.0.0",
15874     "filename": "server/api/mailAccount/index.js",
15875     "groupTitle": "Mail_Accounts"
15876   },
15877   {
15878     "type": "delete",
15879     "url": "/api/mail/accounts/{id}/in_servers",
15880     "title": "Removes IMAP server from an account",
15881     "examples": [
15882       {
15883         "title": "Example usage:",
15884         "content": "curl https://{domain}/api/mail/accounts/{id}/in_servers -v -u {name}:{password} -X DELETE",
15885         "type": "json"
15886       }
15887     ],
15888     "name": "RemoveImmap",
15889     "group": "Mail_Accounts",
15890     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15891     "version": "0.0.0",
15892     "filename": "server/api/mailAccount/index.js",
15893     "groupTitle": "Mail_Accounts"
15894   },
15895   {
15896     "type": "delete",
15897     "url": "/api/mail/accounts/{id}/out_servers",
15898     "title": "Removes SMTP server from an account",
15899     "examples": [
15900       {
15901         "title": "Example usage:",
15902         "content": "curl https://{domain}/api/mail/accounts/{id}/out_servers -v -u {name}:{password} -X DELETE",
15903         "type": "json"
15904       }
15905     ],
15906     "name": "RemoveSmtp",
15907     "group": "Mail_Accounts",
15908     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15909     "version": "0.0.0",
15910     "filename": "server/api/mailAccount/index.js",
15911     "groupTitle": "Mail_Accounts"
15912   },
15913   {
15914     "type": "get",
15915     "url": "/api/mail/accounts/{id}",
15916     "title": "Gets a single Account",
15917     "examples": [
15918       {
15919         "title": "Example usage:",
15920         "content": "curl https://{domain}/api/mail/accounts/{id} -v -u {name}:{password}",
15921         "type": "json"
15922       }
15923     ],
15924     "name": "ShowAccounts",
15925     "group": "Mail_Accounts",
15926     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15927     "version": "0.0.0",
15928     "filename": "server/api/mailAccount/index.js",
15929     "groupTitle": "Mail_Accounts"
15930   },
15931   {
15932     "type": "post",
15933     "url": "/api/mail/accounts/{id}/canned_answers",
15934     "title": "Creates new canned answer",
15935     "examples": [
15936       {
15937         "title": "Example usage:",
15938         "content": "curl https://{domain}/api/mail/accounts/{id}/canned_answers -d '{\"name\": \"vip\"}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
15939         "type": "json"
15940       }
15941     ],
15942     "name": "addAnswer",
15943     "group": "Mail_Accounts",
15944     "parameter": {
15945       "fields": {
15946         "Body": [
15947           {
15948             "group": "Body",
15949             "type": "String",
15950             "optional": false,
15951             "field": "key",
15952             "description": ""
15953           },
15954           {
15955             "group": "Body",
15956             "type": "Text",
15957             "optional": false,
15958             "field": "value",
15959             "description": ""
15960           },
15961           {
15962             "group": "Body",
15963             "type": "String",
15964             "optional": true,
15965             "field": "description",
15966             "description": ""
15967           },
15968           {
15969             "group": "Body",
15970             "type": "Virtual",
15971             "optional": true,
15972             "field": "name",
15973             "description": ""
15974           }
15975         ]
15976       }
15977     },
15978     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15979     "version": "0.0.0",
15980     "filename": "server/api/mailAccount/index.js",
15981     "groupTitle": "Mail_Accounts"
15982   },
15983   {
15984     "type": "post",
15985     "url": "/api/mail/accounts/{id}/applications",
15986     "title": "Creates new applications",
15987     "examples": [
15988       {
15989         "title": "Example usage:",
15990         "content": "curl https://{domain}/api/mail/accounts/{id}/applications -d '[{\"app\": \"queue\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
15991         "type": "json"
15992       }
15993     ],
15994     "name": "addApplications",
15995     "group": "Mail_Accounts",
15996     "parameter": {
15997       "fields": {
15998         "Body": [
15999           {
16000             "group": "Body",
16001             "type": "Integer",
16002             "optional": false,
16003             "field": "priority",
16004             "description": ""
16005           },
16006           {
16007             "group": "Body",
16008             "type": "String",
16009             "optional": false,
16010             "field": "app",
16011             "description": ""
16012           },
16013           {
16014             "group": "Body",
16015             "type": "Text",
16016             "optional": true,
16017             "field": "appdata",
16018             "description": ""
16019           },
16020           {
16021             "group": "Body",
16022             "type": "String",
16023             "optional": true,
16024             "field": "description",
16025             "description": ""
16026           },
16027           {
16028             "group": "Body",
16029             "type": "String",
16030             "optional": true,
16031             "field": "interval",
16032             "description": ""
16033           }
16034         ]
16035       }
16036     },
16037     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16038     "version": "0.0.0",
16039     "filename": "server/api/mailAccount/index.js",
16040     "groupTitle": "Mail_Accounts"
16041   },
16042   {
16043     "type": "post",
16044     "url": "/api/mail/accounts/{id}/dispositions",
16045     "title": "Creates new disposition",
16046     "examples": [
16047       {
16048         "title": "Example usage:",
16049         "content": "curl https://{domain}/api/mail/accounts/{id}/dispositions -d '{\"name\": \"vip\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
16050         "type": "json"
16051       }
16052     ],
16053     "name": "addDisposition",
16054     "group": "Mail_Accounts",
16055     "parameter": {
16056       "fields": {
16057         "Body": [
16058           {
16059             "group": "Body",
16060             "type": "String",
16061             "optional": false,
16062             "field": "name",
16063             "description": ""
16064           },
16065           {
16066             "group": "Body",
16067             "type": "String",
16068             "allowedValues": [
16069               "\"first\"",
16070               "\"second\"",
16071               "\"third\""
16072             ],
16073             "optional": false,
16074             "field": "level",
16075             "description": ""
16076           },
16077           {
16078             "group": "Body",
16079             "type": "String",
16080             "optional": true,
16081             "field": "description",
16082             "description": ""
16083           }
16084         ]
16085       }
16086     },
16087     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16088     "version": "0.0.0",
16089     "filename": "server/api/mailAccount/index.js",
16090     "groupTitle": "Mail_Accounts"
16091   },
16092   {
16093     "type": "post",
16094     "url": "/api/mail/accounts/{id}/interactions",
16095     "title": "Creates new interactions",
16096     "examples": [
16097       {
16098         "title": "Example usage:",
16099         "content": "curl https://{domain}/api/mail/accounts/{id}/interactions -d '[{\"subject\": \"My printer is on fire!\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
16100         "type": "json"
16101       }
16102     ],
16103     "name": "addInteraction",
16104     "group": "Mail_Accounts",
16105     "parameter": {
16106       "fields": {
16107         "Body": [
16108           {
16109             "group": "Body",
16110             "type": "Boolean",
16111             "optional": true,
16112             "field": "closed",
16113             "description": ""
16114           },
16115           {
16116             "group": "Body",
16117             "type": "String",
16118             "optional": true,
16119             "field": "closedAt",
16120             "description": ""
16121           },
16122           {
16123             "group": "Body",
16124             "type": "String",
16125             "optional": true,
16126             "field": "disposition",
16127             "description": ""
16128           },
16129           {
16130             "group": "Body",
16131             "type": "String",
16132             "optional": true,
16133             "field": "secondDisposition",
16134             "description": ""
16135           },
16136           {
16137             "group": "Body",
16138             "type": "String",
16139             "optional": true,
16140             "field": "thirdDisposition",
16141             "description": ""
16142           },
16143           {
16144             "group": "Body",
16145             "type": "String",
16146             "optional": true,
16147             "field": "note",
16148             "description": ""
16149           },
16150           {
16151             "group": "Body",
16152             "type": "String",
16153             "optional": true,
16154             "field": "inReplyTo",
16155             "description": ""
16156           },
16157           {
16158             "group": "Body",
16159             "type": "String",
16160             "optional": true,
16161             "field": "to",
16162             "description": ""
16163           },
16164           {
16165             "group": "Body",
16166             "type": "Text",
16167             "optional": true,
16168             "field": "cc",
16169             "description": ""
16170           },
16171           {
16172             "group": "Body",
16173             "type": "Text",
16174             "optional": true,
16175             "field": "subject",
16176             "description": ""
16177           },
16178           {
16179             "group": "Body",
16180             "type": "Boolean",
16181             "optional": true,
16182             "field": "attach",
16183             "description": ""
16184           },
16185           {
16186             "group": "Body",
16187             "type": "String",
16188             "optional": true,
16189             "field": "read1stAt",
16190             "description": ""
16191           },
16192           {
16193             "group": "Body",
16194             "type": "String",
16195             "optional": true,
16196             "field": "substatus",
16197             "description": ""
16198           },
16199           {
16200             "group": "Body",
16201             "type": "String",
16202             "optional": true,
16203             "field": "substatusAt",
16204             "description": ""
16205           },
16206           {
16207             "group": "Body",
16208             "type": "String",
16209             "allowedValues": [
16210               "\"in\"",
16211               "\"out\""
16212             ],
16213             "optional": false,
16214             "field": "firstMsgDirection",
16215             "description": ""
16216           },
16217           {
16218             "group": "Body",
16219             "type": "String",
16220             "optional": true,
16221             "field": "lastMsgAt",
16222             "description": ""
16223           },
16224           {
16225             "group": "Body",
16226             "type": "String",
16227             "allowedValues": [
16228               "\"in\"",
16229               "\"out\""
16230             ],
16231             "optional": false,
16232             "field": "lastMsgDirection",
16233             "description": ""
16234           },
16235           {
16236             "group": "Body",
16237             "type": "Boolean",
16238             "optional": true,
16239             "field": "autoreplyExecuted",
16240             "description": ""
16241           }
16242         ]
16243       }
16244     },
16245     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16246     "version": "0.0.0",
16247     "filename": "server/api/mailAccount/index.js",
16248     "groupTitle": "Mail_Accounts"
16249   },
16250   {
16251     "type": "post",
16252     "url": "/api/mail/accounts",
16253     "title": "Create a mail account",
16254     "examples": [
16255       {
16256         "title": "Example usage:",
16257         "content": "curl https://{domain}/api/mail/accounts \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
16258         "type": "json"
16259       }
16260     ],
16261     "name": "create",
16262     "group": "Mail_Accounts",
16263     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16264     "version": "0.0.0",
16265     "filename": "server/api/mailAccount/index.js",
16266     "groupTitle": "Mail_Accounts"
16267   },
16268   {
16269     "type": "get",
16270     "url": "/api/mail/accounts/{id}/canned_answers",
16271     "title": "Gets account canned answers",
16272     "examples": [
16273       {
16274         "title": "Example usage:",
16275         "content": "curl https://{domain}/api/mail/accounts/{id}/canned_answers -v -u {name}:{password} -X GET",
16276         "type": "json"
16277       }
16278     ],
16279     "name": "getAnswers",
16280     "group": "Mail_Accounts",
16281     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16282     "version": "0.0.0",
16283     "filename": "server/api/mailAccount/index.js",
16284     "groupTitle": "Mail_Accounts"
16285   },
16286   {
16287     "type": "get",
16288     "url": "/api/mail/accounts/{id}/applications",
16289     "title": "Gets account applications",
16290     "examples": [
16291       {
16292         "title": "Example usage:",
16293         "content": "curl https://{domain}/api/mail/accounts/{id}/applications -v -u {name}:{password} -X GET",
16294         "type": "json"
16295       }
16296     ],
16297     "name": "getApplications",
16298     "group": "Mail_Accounts",
16299     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16300     "version": "0.0.0",
16301     "filename": "server/api/mailAccount/index.js",
16302     "groupTitle": "Mail_Accounts"
16303   },
16304   {
16305     "type": "get",
16306     "url": "/api/mail/accounts/{id}/dispositions",
16307     "title": "Gets account dispositions",
16308     "examples": [
16309       {
16310         "title": "Example usage:",
16311         "content": "curl https://{domain}/api/mail/accounts/{id}/dispositions -v -u {name}:{password} -X GET",
16312         "type": "json"
16313       }
16314     ],
16315     "name": "getDispositions",
16316     "group": "Mail_Accounts",
16317     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16318     "version": "0.0.0",
16319     "filename": "server/api/mailAccount/index.js",
16320     "groupTitle": "Mail_Accounts"
16321   },
16322   {
16323     "type": "get",
16324     "url": "/api/mail/accounts/{id}/interactions",
16325     "title": "Gets account interactions",
16326     "examples": [
16327       {
16328         "title": "Example usage:",
16329         "content": "curl https://{domain}/api/mail/accounts/{id}/interactions -v -u {name}:{password} -X GET",
16330         "type": "json"
16331       }
16332     ],
16333     "name": "getInteraction",
16334     "group": "Mail_Accounts",
16335     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16336     "version": "0.0.0",
16337     "filename": "server/api/mailAccount/index.js",
16338     "groupTitle": "Mail_Accounts"
16339   },
16340   {
16341     "type": "get",
16342     "url": "/api/mail/accounts/{id}/messages",
16343     "title": "Gets account messages",
16344     "examples": [
16345       {
16346         "title": "Example usage:",
16347         "content": "curl https://{domain}/api/mail/accounts/{id}/messages -v -u {name}:{password} -X GET",
16348         "type": "json"
16349       }
16350     ],
16351     "name": "getMessages",
16352     "group": "Mail_Accounts",
16353     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16354     "version": "0.0.0",
16355     "filename": "server/api/mailAccount/index.js",
16356     "groupTitle": "Mail_Accounts"
16357   },
16358   {
16359     "type": "post",
16360     "url": "/api/mail/accounts/{id}/send",
16361     "title": "Send new mail",
16362     "examples": [
16363       {
16364         "title": "Example usage:",
16365         "content": "curl https://{domain}/api/mail/accounts/{id}/send -d '{from: '\"John Doe\" <john.doe@xcally.com>'}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
16366         "type": "json"
16367       }
16368     ],
16369     "name": "sendMail",
16370     "group": "Mail_Accounts",
16371     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16372     "version": "0.0.0",
16373     "filename": "server/api/mailAccount/index.js",
16374     "groupTitle": "Mail_Accounts"
16375   },
16376   {
16377     "type": "put",
16378     "url": "/api/mail/accounts/{id}",
16379     "title": "Update an existing Account",
16380     "examples": [
16381       {
16382         "title": "Example usage:",
16383         "content": "curl https://{domain}/api/mail/accounts/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
16384         "type": "json"
16385       }
16386     ],
16387     "name": "updateAccounts",
16388     "group": "Mail_Accounts",
16389     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16390     "version": "0.0.0",
16391     "filename": "server/api/mailAccount/index.js",
16392     "groupTitle": "Mail_Accounts"
16393   },
16394   {
16395     "type": "get",
16396     "url": "/api/mail/accounts/{id}/verify",
16397     "title": "Verify mail account",
16398     "examples": [
16399       {
16400         "title": "Example usage:",
16401         "content": "curl https://{domain}/api/mail/accounts/{id}/verify -v -u {name}:{password} -X GET",
16402         "type": "json"
16403       }
16404     ],
16405     "name": "verifySmtp",
16406     "group": "Mail_Accounts",
16407     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16408     "version": "0.0.0",
16409     "filename": "server/api/mailAccount/index.js",
16410     "groupTitle": "Mail_Accounts"
16411   },
16412   {
16413     "type": "delete",
16414     "url": "/api/mail/applications/{id}",
16415     "title": "Deletes a Application",
16416     "examples": [
16417       {
16418         "title": "Example usage:",
16419         "content": "curl https://{domain}/api/mail/applications/{id} -v -u {name}:{password} -X DELETE",
16420         "type": "json"
16421       }
16422     ],
16423     "name": "DeleteApplications",
16424     "group": "Mail_Applications",
16425     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16426     "version": "0.0.0",
16427     "filename": "server/api/mailApplication/index.js",
16428     "groupTitle": "Mail_Applications"
16429   },
16430   {
16431     "type": "get",
16432     "url": "/api/mail/applications/{id}",
16433     "title": "Gets a single Application",
16434     "examples": [
16435       {
16436         "title": "Example usage:",
16437         "content": "curl https://{domain}/api/mail/applications/{id} -v -u {name}:{password}",
16438         "type": "json"
16439       }
16440     ],
16441     "name": "ShowApplications",
16442     "group": "Mail_Applications",
16443     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16444     "version": "0.0.0",
16445     "filename": "server/api/mailApplication/index.js",
16446     "groupTitle": "Mail_Applications"
16447   },
16448   {
16449     "type": "put",
16450     "url": "/api/mail/applications/{id}",
16451     "title": "Update an existing Application",
16452     "examples": [
16453       {
16454         "title": "Example usage:",
16455         "content": "curl https://{domain}/api/mail/applications/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
16456         "type": "json"
16457       }
16458     ],
16459     "name": "updateApplications",
16460     "group": "Mail_Applications",
16461     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16462     "version": "0.0.0",
16463     "filename": "server/api/mailApplication/index.js",
16464     "groupTitle": "Mail_Applications"
16465   },
16466   {
16467     "type": "post",
16468     "url": "/api/mail/interactions/{id}/tags",
16469     "title": "Add tags to the interaction",
16470     "examples": [
16471       {
16472         "title": "Example usage:",
16473         "content": "curl https://{domain}/api/mail/interaction/{id}/tags -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
16474         "type": "json"
16475       }
16476     ],
16477     "name": "AddTags",
16478     "group": "Mail_Interactions",
16479     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16480     "version": "0.0.0",
16481     "filename": "server/api/mailInteraction/index.js",
16482     "groupTitle": "Mail_Interactions"
16483   },
16484   {
16485     "type": "post",
16486     "url": "/api/mail/interactions",
16487     "title": "Creates a new Interaction",
16488     "examples": [
16489       {
16490         "title": "Example usage:",
16491         "content": "curl https://{domain}/api/mail/interactions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
16492         "type": "json"
16493       }
16494     ],
16495     "name": "CreateInteractions",
16496     "group": "Mail_Interactions",
16497     "parameter": {
16498       "fields": {
16499         "Body": [
16500           {
16501             "group": "Body",
16502             "type": "Boolean",
16503             "optional": true,
16504             "field": "closed",
16505             "description": ""
16506           },
16507           {
16508             "group": "Body",
16509             "type": "String",
16510             "optional": true,
16511             "field": "closedAt",
16512             "description": ""
16513           },
16514           {
16515             "group": "Body",
16516             "type": "String",
16517             "optional": true,
16518             "field": "disposition",
16519             "description": ""
16520           },
16521           {
16522             "group": "Body",
16523             "type": "String",
16524             "optional": true,
16525             "field": "secondDisposition",
16526             "description": ""
16527           },
16528           {
16529             "group": "Body",
16530             "type": "String",
16531             "optional": true,
16532             "field": "thirdDisposition",
16533             "description": ""
16534           },
16535           {
16536             "group": "Body",
16537             "type": "String",
16538             "optional": true,
16539             "field": "note",
16540             "description": ""
16541           },
16542           {
16543             "group": "Body",
16544             "type": "String",
16545             "optional": true,
16546             "field": "inReplyTo",
16547             "description": ""
16548           },
16549           {
16550             "group": "Body",
16551             "type": "String",
16552             "optional": true,
16553             "field": "to",
16554             "description": ""
16555           },
16556           {
16557             "group": "Body",
16558             "type": "Text",
16559             "optional": true,
16560             "field": "cc",
16561             "description": ""
16562           },
16563           {
16564             "group": "Body",
16565             "type": "Text",
16566             "optional": true,
16567             "field": "subject",
16568             "description": ""
16569           },
16570           {
16571             "group": "Body",
16572             "type": "Boolean",
16573             "optional": true,
16574             "field": "attach",
16575             "description": ""
16576           },
16577           {
16578             "group": "Body",
16579             "type": "String",
16580             "optional": true,
16581             "field": "read1stAt",
16582             "description": ""
16583           },
16584           {
16585             "group": "Body",
16586             "type": "String",
16587             "optional": true,
16588             "field": "substatus",
16589             "description": ""
16590           },
16591           {
16592             "group": "Body",
16593             "type": "String",
16594             "optional": true,
16595             "field": "substatusAt",
16596             "description": ""
16597           },
16598           {
16599             "group": "Body",
16600             "type": "String",
16601             "allowedValues": [
16602               "\"in\"",
16603               "\"out\""
16604             ],
16605             "optional": false,
16606             "field": "firstMsgDirection",
16607             "description": ""
16608           },
16609           {
16610             "group": "Body",
16611             "type": "String",
16612             "optional": true,
16613             "field": "lastMsgAt",
16614             "description": ""
16615           },
16616           {
16617             "group": "Body",
16618             "type": "String",
16619             "allowedValues": [
16620               "\"in\"",
16621               "\"out\""
16622             ],
16623             "optional": false,
16624             "field": "lastMsgDirection",
16625             "description": ""
16626           },
16627           {
16628             "group": "Body",
16629             "type": "Boolean",
16630             "optional": true,
16631             "field": "autoreplyExecuted",
16632             "description": ""
16633           }
16634         ]
16635       }
16636     },
16637     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16638     "version": "0.0.0",
16639     "filename": "server/api/mailInteraction/index.js",
16640     "groupTitle": "Mail_Interactions"
16641   },
16642   {
16643     "type": "delete",
16644     "url": "/api/mail/interactions/{id}",
16645     "title": "Deletes a Interaction",
16646     "examples": [
16647       {
16648         "title": "Example usage:",
16649         "content": "curl https://{domain}/api/mail/interactions/{id} -v -u {name}:{password} -X DELETE",
16650         "type": "json"
16651       }
16652     ],
16653     "name": "DeleteInteractions",
16654     "group": "Mail_Interactions",
16655     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16656     "version": "0.0.0",
16657     "filename": "server/api/mailInteraction/index.js",
16658     "groupTitle": "Mail_Interactions"
16659   },
16660   {
16661     "type": "get",
16662     "url": "/api/mail/interactions/describe",
16663     "title": "Gets table info about Interactions",
16664     "examples": [
16665       {
16666         "title": "Example usage:",
16667         "content": "curl https://{domain}/api/mail/interactions/describe -v -u {name}:{password}",
16668         "type": "json"
16669       }
16670     ],
16671     "name": "DescribeInteractions",
16672     "group": "Mail_Interactions",
16673     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16674     "version": "0.0.0",
16675     "filename": "server/api/mailInteraction/index.js",
16676     "groupTitle": "Mail_Interactions"
16677   },
16678   {
16679     "type": "get",
16680     "url": "/api/mail/interactions",
16681     "title": "Gets a list of Interactions",
16682     "examples": [
16683       {
16684         "title": "Example usage:",
16685         "content": "curl https://{domain}/api/mail/interactions -v -u {name}:{password}",
16686         "type": "json"
16687       }
16688     ],
16689     "name": "GetInteractions",
16690     "group": "Mail_Interactions",
16691     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/mail/interactions?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/mail/interactions?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/mail/interactions?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/mail/interactions?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/mail/interactions?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
16692     "version": "0.0.0",
16693     "filename": "server/api/mailInteraction/index.js",
16694     "groupTitle": "Mail_Interactions"
16695   },
16696   {
16697     "type": "delete",
16698     "url": "/api/mail/interactions/{id}/tags",
16699     "title": "Removes tags from interaction",
16700     "examples": [
16701       {
16702         "title": "Example usage:",
16703         "content": "curl https://{domain}/api/mail/interactions/{id}/tags?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
16704         "type": "json"
16705       }
16706     ],
16707     "name": "RemoveTags",
16708     "group": "Mail_Interactions",
16709     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16710     "version": "0.0.0",
16711     "filename": "server/api/mailInteraction/index.js",
16712     "groupTitle": "Mail_Interactions"
16713   },
16714   {
16715     "type": "get",
16716     "url": "/api/mail/interactions/{id}",
16717     "title": "Gets a single Interaction",
16718     "examples": [
16719       {
16720         "title": "Example usage:",
16721         "content": "curl https://{domain}/api/mail/interactions/{id} -v -u {name}:{password}",
16722         "type": "json"
16723       }
16724     ],
16725     "name": "ShowInteractions",
16726     "group": "Mail_Interactions",
16727     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16728     "version": "0.0.0",
16729     "filename": "server/api/mailInteraction/index.js",
16730     "groupTitle": "Mail_Interactions"
16731   },
16732   {
16733     "type": "post",
16734     "url": "/api/mail/interactions/{id}/messages",
16735     "title": "Creates new message",
16736     "examples": [
16737       {
16738         "title": "Example usage:",
16739         "content": "curl https://{domain}/api/mail/interactions/{id}/messages -d '[{\"to\": \"sales@xcally.com\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
16740         "type": "json"
16741       }
16742     ],
16743     "name": "addMessage",
16744     "group": "Mail_Interactions",
16745     "parameter": {
16746       "fields": {
16747         "Body": [
16748           {
16749             "group": "Body",
16750             "type": "Text",
16751             "optional": false,
16752             "field": "body",
16753             "description": ""
16754           },
16755           {
16756             "group": "Body",
16757             "type": "Text",
16758             "optional": true,
16759             "field": "plainBody",
16760             "description": ""
16761           },
16762           {
16763             "group": "Body",
16764             "type": "Boolean",
16765             "optional": true,
16766             "field": "read",
16767             "description": ""
16768           },
16769           {
16770             "group": "Body",
16771             "type": "String",
16772             "allowedValues": [
16773               "\"in\"",
16774               "\"out\""
16775             ],
16776             "optional": false,
16777             "field": "direction",
16778             "description": ""
16779           },
16780           {
16781             "group": "Body",
16782             "type": "String",
16783             "optional": true,
16784             "field": "messageId",
16785             "description": ""
16786           },
16787           {
16788             "group": "Body",
16789             "type": "String",
16790             "optional": true,
16791             "field": "from",
16792             "description": ""
16793           },
16794           {
16795             "group": "Body",
16796             "type": "Text",
16797             "optional": true,
16798             "field": "to",
16799             "description": ""
16800           },
16801           {
16802             "group": "Body",
16803             "type": "Text",
16804             "optional": true,
16805             "field": "cc",
16806             "description": ""
16807           },
16808           {
16809             "group": "Body",
16810             "type": "Text",
16811             "optional": true,
16812             "field": "bcc",
16813             "description": ""
16814           },
16815           {
16816             "group": "Body",
16817             "type": "Text",
16818             "optional": true,
16819             "field": "subject",
16820             "description": ""
16821           },
16822           {
16823             "group": "Body",
16824             "type": "String",
16825             "optional": true,
16826             "field": "sentAt",
16827             "description": ""
16828           },
16829           {
16830             "group": "Body",
16831             "type": "Integer",
16832             "optional": true,
16833             "field": "attach",
16834             "description": ""
16835           },
16836           {
16837             "group": "Body",
16838             "type": "Boolean",
16839             "optional": true,
16840             "field": "secret",
16841             "description": ""
16842           },
16843           {
16844             "group": "Body",
16845             "type": "String",
16846             "optional": true,
16847             "field": "readAt",
16848             "description": ""
16849           },
16850           {
16851             "group": "Body",
16852             "type": "Text",
16853             "optional": true,
16854             "field": "originTo",
16855             "description": ""
16856           },
16857           {
16858             "group": "Body",
16859             "type": "Text",
16860             "optional": true,
16861             "field": "originCc",
16862             "description": ""
16863           },
16864           {
16865             "group": "Body",
16866             "type": "String",
16867             "allowedValues": [
16868               "\"Email\"",
16869               "\"Chat\""
16870             ],
16871             "optional": false,
16872             "field": "originChannel",
16873             "description": ""
16874           }
16875         ]
16876       }
16877     },
16878     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16879     "version": "0.0.0",
16880     "filename": "server/api/mailInteraction/index.js",
16881     "groupTitle": "Mail_Interactions"
16882   },
16883   {
16884     "type": "get",
16885     "url": "/api/mail/interactions/{id}/download",
16886     "title": "Gets interaction",
16887     "examples": [
16888       {
16889         "title": "Example usage:",
16890         "content": "curl https://{domain}/api/mail/interactions/{id}/download -v -u {name}:{password} -X GET",
16891         "type": "json"
16892       }
16893     ],
16894     "name": "download",
16895     "group": "Mail_Interactions",
16896     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16897     "version": "0.0.0",
16898     "filename": "server/api/mailInteraction/index.js",
16899     "groupTitle": "Mail_Interactions"
16900   },
16901   {
16902     "type": "get",
16903     "url": "/api/mail/interactions/{id}/messages",
16904     "title": "Gets interaction messages",
16905     "examples": [
16906       {
16907         "title": "Example usage:",
16908         "content": "curl https://{domain}/api/mail/interactions/{id}/messages -v -u {name}:{password} -X GET",
16909         "type": "json"
16910       }
16911     ],
16912     "name": "getMessages",
16913     "group": "Mail_Interactions",
16914     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16915     "version": "0.0.0",
16916     "filename": "server/api/mailInteraction/index.js",
16917     "groupTitle": "Mail_Interactions"
16918   },
16919   {
16920     "type": "put",
16921     "url": "/api/mail/interactions/{id}",
16922     "title": "Update an existing Interaction",
16923     "examples": [
16924       {
16925         "title": "Example usage:",
16926         "content": "curl https://{domain}/api/mail/interactions/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
16927         "type": "json"
16928       }
16929     ],
16930     "name": "updateInteractions",
16931     "group": "Mail_Interactions",
16932     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16933     "version": "0.0.0",
16934     "filename": "server/api/mailInteraction/index.js",
16935     "groupTitle": "Mail_Interactions"
16936   },
16937   {
16938     "type": "delete",
16939     "url": "/api/mail/messages/{id}",
16940     "title": "Deletes a Message",
16941     "examples": [
16942       {
16943         "title": "Example usage:",
16944         "content": "curl https://{domain}/api/mail/messages/{id} -v -u {name}:{password} -X DELETE",
16945         "type": "json"
16946       }
16947     ],
16948     "name": "DeleteMessages",
16949     "group": "Mail_Messages",
16950     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16951     "version": "0.0.0",
16952     "filename": "server/api/mailMessage/index.js",
16953     "groupTitle": "Mail_Messages"
16954   },
16955   {
16956     "type": "get",
16957     "url": "/api/mail/messages/describe",
16958     "title": "Gets table info about Messages",
16959     "examples": [
16960       {
16961         "title": "Example usage:",
16962         "content": "curl https://{domain}/api/mail/messages/describe -v -u {name}:{password}",
16963         "type": "json"
16964       }
16965     ],
16966     "name": "DescribeMessages",
16967     "group": "Mail_Messages",
16968     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16969     "version": "0.0.0",
16970     "filename": "server/api/mailMessage/index.js",
16971     "groupTitle": "Mail_Messages"
16972   },
16973   {
16974     "type": "get",
16975     "url": "/api/mail/messages",
16976     "title": "Gets a list of Messages",
16977     "examples": [
16978       {
16979         "title": "Example usage:",
16980         "content": "curl https://{domain}/api/mail/messages -v -u {name}:{password}",
16981         "type": "json"
16982       }
16983     ],
16984     "name": "GetMessages",
16985     "group": "Mail_Messages",
16986     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/mail/messages?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/mail/messages?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/mail/messages?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/mail/messages?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/mail/messages?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
16987     "version": "0.0.0",
16988     "filename": "server/api/mailMessage/index.js",
16989     "groupTitle": "Mail_Messages"
16990   },
16991   {
16992     "type": "get",
16993     "url": "/api/mail/messages/{id}",
16994     "title": "Gets a single Message",
16995     "examples": [
16996       {
16997         "title": "Example usage:",
16998         "content": "curl https://{domain}/api/mail/messages/{id} -v -u {name}:{password}",
16999         "type": "json"
17000       }
17001     ],
17002     "name": "ShowMessages",
17003     "group": "Mail_Messages",
17004     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17005     "version": "0.0.0",
17006     "filename": "server/api/mailMessage/index.js",
17007     "groupTitle": "Mail_Messages"
17008   },
17009   {
17010     "type": "put",
17011     "url": "/api/mail/messages/{id}/accept",
17012     "title": "Accepts message",
17013     "examples": [
17014       {
17015         "title": "Example usage:",
17016         "content": "curl https://{domain}/api/mail/messages/{id}/accept \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
17017         "type": "json"
17018       }
17019     ],
17020     "name": "acceptMessage",
17021     "group": "Mail_Messages",
17022     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17023     "version": "0.0.0",
17024     "filename": "server/api/mailMessage/index.js",
17025     "groupTitle": "Mail_Messages"
17026   },
17027   {
17028     "type": "post",
17029     "url": "/api/mail/messages",
17030     "title": "Create a message",
17031     "examples": [
17032       {
17033         "title": "Example usage:",
17034         "content": "curl https://{domain}/api/mail/messages \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
17035         "type": "json"
17036       }
17037     ],
17038     "name": "createMessage",
17039     "group": "Mail_Messages",
17040     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17041     "version": "0.0.0",
17042     "filename": "server/api/mailMessage/index.js",
17043     "groupTitle": "Mail_Messages"
17044   },
17045   {
17046     "type": "get",
17047     "url": "/api/mail/messages/{id}/download",
17048     "title": "Gets message",
17049     "examples": [
17050       {
17051         "title": "Example usage:",
17052         "content": "curl https://{domain}/api/mail/messages/{id}/download -v -u {name}:{password} -X GET",
17053         "type": "json"
17054       }
17055     ],
17056     "name": "download",
17057     "group": "Mail_Messages",
17058     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17059     "version": "0.0.0",
17060     "filename": "server/api/mailMessage/index.js",
17061     "groupTitle": "Mail_Messages"
17062   },
17063   {
17064     "type": "put",
17065     "url": "/api/mail/messages/{id}/reject",
17066     "title": "Rejects message",
17067     "examples": [
17068       {
17069         "title": "Example usage:",
17070         "content": "curl https://{domain}/api/mail/messages/{id}/reject \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
17071         "type": "json"
17072       }
17073     ],
17074     "name": "rejectMessage",
17075     "group": "Mail_Messages",
17076     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17077     "version": "0.0.0",
17078     "filename": "server/api/mailMessage/index.js",
17079     "groupTitle": "Mail_Messages"
17080   },
17081   {
17082     "type": "put",
17083     "url": "/api/mail/messages/{id}",
17084     "title": "Update an existing Message",
17085     "examples": [
17086       {
17087         "title": "Example usage:",
17088         "content": "curl https://{domain}/api/mail/messages/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
17089         "type": "json"
17090       }
17091     ],
17092     "name": "updateMessages",
17093     "group": "Mail_Messages",
17094     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17095     "version": "0.0.0",
17096     "filename": "server/api/mailMessage/index.js",
17097     "groupTitle": "Mail_Messages"
17098   },
17099   {
17100     "type": "post",
17101     "url": "/api/mail/reports/queue",
17102     "title": "Creates a new Mail Queue Report",
17103     "examples": [
17104       {
17105         "title": "Example usage:",
17106         "content": "curl https://{domain}/api/mail/reports/queue -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
17107         "type": "json"
17108       }
17109     ],
17110     "name": "CreateMail_Queue_Reports",
17111     "group": "Mail_Queue_Reports",
17112     "parameter": {
17113       "fields": {
17114         "Body": [
17115           {
17116             "group": "Body",
17117             "type": "String",
17118             "optional": false,
17119             "field": "uniqueid",
17120             "description": ""
17121           },
17122           {
17123             "group": "Body",
17124             "type": "String",
17125             "optional": true,
17126             "field": "from",
17127             "description": ""
17128           },
17129           {
17130             "group": "Body",
17131             "type": "String",
17132             "optional": true,
17133             "field": "joinAt",
17134             "description": ""
17135           },
17136           {
17137             "group": "Body",
17138             "type": "String",
17139             "optional": true,
17140             "field": "leaveAt",
17141             "description": ""
17142           },
17143           {
17144             "group": "Body",
17145             "type": "String",
17146             "optional": true,
17147             "field": "acceptAt",
17148             "description": ""
17149           },
17150           {
17151             "group": "Body",
17152             "type": "String",
17153             "optional": true,
17154             "field": "exitAt",
17155             "description": ""
17156           },
17157           {
17158             "group": "Body",
17159             "type": "String",
17160             "optional": true,
17161             "field": "reason",
17162             "description": ""
17163           }
17164         ]
17165       }
17166     },
17167     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17168     "version": "0.0.0",
17169     "filename": "server/api/mailQueueReport/index.js",
17170     "groupTitle": "Mail_Queue_Reports"
17171   },
17172   {
17173     "type": "delete",
17174     "url": "/api/mail/reports/queue/{id}",
17175     "title": "Deletes a Mail Queue Report",
17176     "examples": [
17177       {
17178         "title": "Example usage:",
17179         "content": "curl https://{domain}/api/mail/reports/queue/{id} -v -u {name}:{password} -X DELETE",
17180         "type": "json"
17181       }
17182     ],
17183     "name": "DeleteMail_Queue_Reports",
17184     "group": "Mail_Queue_Reports",
17185     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17186     "version": "0.0.0",
17187     "filename": "server/api/mailQueueReport/index.js",
17188     "groupTitle": "Mail_Queue_Reports"
17189   },
17190   {
17191     "type": "get",
17192     "url": "/api/mail/reports/queue/describe",
17193     "title": "Gets table info about Mail Queue Reports",
17194     "examples": [
17195       {
17196         "title": "Example usage:",
17197         "content": "curl https://{domain}/api/mail/reports/queue/describe -v -u {name}:{password}",
17198         "type": "json"
17199       }
17200     ],
17201     "name": "DescribeMail_Queue_Reports",
17202     "group": "Mail_Queue_Reports",
17203     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17204     "version": "0.0.0",
17205     "filename": "server/api/mailQueueReport/index.js",
17206     "groupTitle": "Mail_Queue_Reports"
17207   },
17208   {
17209     "type": "get",
17210     "url": "/api/mail/reports/queue",
17211     "title": "Gets a list of Mail Queue Reports",
17212     "examples": [
17213       {
17214         "title": "Example usage:",
17215         "content": "curl https://{domain}/api/mail/reports/queue -v -u {name}:{password}",
17216         "type": "json"
17217       }
17218     ],
17219     "name": "GetMail_Queue_Reports",
17220     "group": "Mail_Queue_Reports",
17221     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/mail/reports/queue?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/mail/reports/queue?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/mail/reports/queue?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/mail/reports/queue?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/mail/reports/queue?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
17222     "version": "0.0.0",
17223     "filename": "server/api/mailQueueReport/index.js",
17224     "groupTitle": "Mail_Queue_Reports"
17225   },
17226   {
17227     "type": "get",
17228     "url": "/api/mail/reports/queue/{id}",
17229     "title": "Gets a single Mail Queue Report",
17230     "examples": [
17231       {
17232         "title": "Example usage:",
17233         "content": "curl https://{domain}/api/mail/reports/queue/{id} -v -u {name}:{password}",
17234         "type": "json"
17235       }
17236     ],
17237     "name": "ShowMail_Queue_Reports",
17238     "group": "Mail_Queue_Reports",
17239     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17240     "version": "0.0.0",
17241     "filename": "server/api/mailQueueReport/index.js",
17242     "groupTitle": "Mail_Queue_Reports"
17243   },
17244   {
17245     "type": "put",
17246     "url": "/api/mail/reports/queue/{id}",
17247     "title": "Update an existing Mail Queue Report",
17248     "examples": [
17249       {
17250         "title": "Example usage:",
17251         "content": "curl https://{domain}/api/mail/reports/queue/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
17252         "type": "json"
17253       }
17254     ],
17255     "name": "updateMail_Queue_Reports",
17256     "group": "Mail_Queue_Reports",
17257     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17258     "version": "0.0.0",
17259     "filename": "server/api/mailQueueReport/index.js",
17260     "groupTitle": "Mail_Queue_Reports"
17261   },
17262   {
17263     "type": "post",
17264     "url": "/api/mail/queues/{id}/users",
17265     "title": "Add agents to a queue",
17266     "examples": [
17267       {
17268         "title": "Example usage:",
17269         "content": "curl https://{domain}/api/mail/queues/{id}/users -d '{\"ids\": [1,2], \"penalty\": 2}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
17270         "type": "json"
17271       }
17272     ],
17273     "name": "AddAgents",
17274     "group": "Mail_Queues",
17275     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17276     "version": "0.0.0",
17277     "filename": "server/api/mailQueue/index.js",
17278     "groupTitle": "Mail_Queues"
17279   },
17280   {
17281     "type": "post",
17282     "url": "/api/mail/queues/{id}/teams",
17283     "title": "Add teams to a queue",
17284     "examples": [
17285       {
17286         "title": "Example usage:",
17287         "content": "curl https://{domain}/api/mail/queues/{id}/teams -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
17288         "type": "json"
17289       }
17290     ],
17291     "name": "AddTeams",
17292     "group": "Mail_Queues",
17293     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17294     "version": "0.0.0",
17295     "filename": "server/api/mailQueue/index.js",
17296     "groupTitle": "Mail_Queues"
17297   },
17298   {
17299     "type": "post",
17300     "url": "/api/mail/queues",
17301     "title": "Creates a new Queue",
17302     "examples": [
17303       {
17304         "title": "Example usage:",
17305         "content": "curl https://{domain}/api/mail/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
17306         "type": "json"
17307       }
17308     ],
17309     "name": "CreateQueues",
17310     "group": "Mail_Queues",
17311     "parameter": {
17312       "fields": {
17313         "Body": [
17314           {
17315             "group": "Body",
17316             "type": "String",
17317             "optional": true,
17318             "field": "name",
17319             "description": ""
17320           },
17321           {
17322             "group": "Body",
17323             "type": "String",
17324             "optional": true,
17325             "field": "description",
17326             "description": ""
17327           },
17328           {
17329             "group": "Body",
17330             "type": "Integer",
17331             "optional": true,
17332             "field": "timeout",
17333             "description": ""
17334           },
17335           {
17336             "group": "Body",
17337             "type": "String",
17338             "allowedValues": [
17339               "\"rrmemory\"",
17340               "\"beepall\"",
17341               "\"roundrobin\""
17342             ],
17343             "optional": true,
17344             "field": "strategy",
17345             "description": ""
17346           }
17347         ]
17348       }
17349     },
17350     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17351     "version": "0.0.0",
17352     "filename": "server/api/mailQueue/index.js",
17353     "groupTitle": "Mail_Queues"
17354   },
17355   {
17356     "type": "delete",
17357     "url": "/api/mail/queues/{id}",
17358     "title": "Deletes a Queue",
17359     "examples": [
17360       {
17361         "title": "Example usage:",
17362         "content": "curl https://{domain}/api/mail/queues/{id} -v -u {name}:{password} -X DELETE",
17363         "type": "json"
17364       }
17365     ],
17366     "name": "DeleteQueues",
17367     "group": "Mail_Queues",
17368     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17369     "version": "0.0.0",
17370     "filename": "server/api/mailQueue/index.js",
17371     "groupTitle": "Mail_Queues"
17372   },
17373   {
17374     "type": "get",
17375     "url": "/api/mail/queues/describe",
17376     "title": "Gets table info about Queues",
17377     "examples": [
17378       {
17379         "title": "Example usage:",
17380         "content": "curl https://{domain}/api/mail/queues/describe -v -u {name}:{password}",
17381         "type": "json"
17382       }
17383     ],
17384     "name": "DescribeQueues",
17385     "group": "Mail_Queues",
17386     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17387     "version": "0.0.0",
17388     "filename": "server/api/mailQueue/index.js",
17389     "groupTitle": "Mail_Queues"
17390   },
17391   {
17392     "type": "get",
17393     "url": "/api/mail/queues/{id}/users",
17394     "title": "Gets queue agents",
17395     "examples": [
17396       {
17397         "title": "Example usage:",
17398         "content": "curl https://{domain}/api/mail/queues/{id}/users -v -u {name}:{password} -X POST",
17399         "type": "json"
17400       }
17401     ],
17402     "name": "GetAgents",
17403     "group": "Mail_Queues",
17404     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17405     "version": "0.0.0",
17406     "filename": "server/api/mailQueue/index.js",
17407     "groupTitle": "Mail_Queues"
17408   },
17409   {
17410     "type": "get",
17411     "url": "/api/mail/queues/{id}/members",
17412     "title": "GetMembers",
17413     "examples": [
17414       {
17415         "title": "Example usage:",
17416         "content": "curl https://{domain}/api/mail/queues/{id}/members  -v -u {name}:{password}",
17417         "type": "json"
17418       }
17419     ],
17420     "name": "GetMembers",
17421     "group": "Mail_Queues",
17422     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17423     "version": "0.0.0",
17424     "filename": "server/api/mailQueue/index.js",
17425     "groupTitle": "Mail_Queues"
17426   },
17427   {
17428     "type": "get",
17429     "url": "/api/mail/queues",
17430     "title": "Gets a list of Queues",
17431     "examples": [
17432       {
17433         "title": "Example usage:",
17434         "content": "curl https://{domain}/api/mail/queues -v -u {name}:{password}",
17435         "type": "json"
17436       }
17437     ],
17438     "name": "GetQueues",
17439     "group": "Mail_Queues",
17440     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/mail/queues?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/mail/queues?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/mail/queues?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/mail/queues?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/mail/queues?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
17441     "version": "0.0.0",
17442     "filename": "server/api/mailQueue/index.js",
17443     "groupTitle": "Mail_Queues"
17444   },
17445   {
17446     "type": "get",
17447     "url": "/api/mail/queues/{id}/teams",
17448     "title": "Gets queues list",
17449     "examples": [
17450       {
17451         "title": "Example usage:",
17452         "content": "curl https://{domain}/api/mail/queues/{id}/teams -v -u {name}:{password}",
17453         "type": "json"
17454       }
17455     ],
17456     "name": "GetTeams",
17457     "group": "Mail_Queues",
17458     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17459     "version": "0.0.0",
17460     "filename": "server/api/mailQueue/index.js",
17461     "groupTitle": "Mail_Queues"
17462   },
17463   {
17464     "type": "delete",
17465     "url": "/api/mail/queues/{id}/users",
17466     "title": "Removes agents from a queue",
17467     "examples": [
17468       {
17469         "title": "Example usage:",
17470         "content": "curl https://{domain}/api/mail/queues/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
17471         "type": "json"
17472       }
17473     ],
17474     "name": "RemoveAgents",
17475     "group": "Mail_Queues",
17476     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17477     "version": "0.0.0",
17478     "filename": "server/api/mailQueue/index.js",
17479     "groupTitle": "Mail_Queues"
17480   },
17481   {
17482     "type": "get",
17483     "url": "/api/mail/queues/{id}",
17484     "title": "Gets a single Queue",
17485     "examples": [
17486       {
17487         "title": "Example usage:",
17488         "content": "curl https://{domain}/api/mail/queues/{id} -v -u {name}:{password}",
17489         "type": "json"
17490       }
17491     ],
17492     "name": "ShowQueues",
17493     "group": "Mail_Queues",
17494     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17495     "version": "0.0.0",
17496     "filename": "server/api/mailQueue/index.js",
17497     "groupTitle": "Mail_Queues"
17498   },
17499   {
17500     "type": "put",
17501     "url": "/api/mail/queues/{id}",
17502     "title": "Update an existing Queue",
17503     "examples": [
17504       {
17505         "title": "Example usage:",
17506         "content": "curl https://{domain}/api/mail/queues/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
17507         "type": "json"
17508       }
17509     ],
17510     "name": "updateQueues",
17511     "group": "Mail_Queues",
17512     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17513     "version": "0.0.0",
17514     "filename": "server/api/mailQueue/index.js",
17515     "groupTitle": "Mail_Queues"
17516   },
17517   {
17518     "type": "post",
17519     "url": "/api/mail/out_servers",
17520     "title": "Creates a new SMTP",
17521     "examples": [
17522       {
17523         "title": "Example usage:",
17524         "content": "curl https://{domain}/api/mail/out_servers -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
17525         "type": "json"
17526       }
17527     ],
17528     "name": "CreateSMTPs",
17529     "group": "Mail_SMTP",
17530     "parameter": {
17531       "fields": {
17532         "Body": [
17533           {
17534             "group": "Body",
17535             "type": "String",
17536             "optional": true,
17537             "field": "description",
17538             "description": ""
17539           },
17540           {
17541             "group": "Body",
17542             "type": "String",
17543             "optional": true,
17544             "field": "host",
17545             "description": ""
17546           },
17547           {
17548             "group": "Body",
17549             "type": "String",
17550             "optional": true,
17551             "field": "user",
17552             "description": ""
17553           },
17554           {
17555             "group": "Body",
17556             "type": "String",
17557             "optional": true,
17558             "field": "pass",
17559             "description": ""
17560           },
17561           {
17562             "group": "Body",
17563             "type": "Integer",
17564             "optional": true,
17565             "field": "port",
17566             "description": ""
17567           },
17568           {
17569             "group": "Body",
17570             "type": "Boolean",
17571             "optional": true,
17572             "field": "secure",
17573             "description": ""
17574           },
17575           {
17576             "group": "Body",
17577             "type": "String",
17578             "optional": true,
17579             "field": "service",
17580             "description": ""
17581           },
17582           {
17583             "group": "Body",
17584             "type": "Boolean",
17585             "optional": true,
17586             "field": "authentication",
17587             "description": ""
17588           }
17589         ]
17590       }
17591     },
17592     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17593     "version": "0.0.0",
17594     "filename": "server/api/mailServerOut/index.js",
17595     "groupTitle": "Mail_SMTP"
17596   },
17597   {
17598     "type": "delete",
17599     "url": "/api/mail/out_servers/{id}",
17600     "title": "Deletes a SMTP",
17601     "examples": [
17602       {
17603         "title": "Example usage:",
17604         "content": "curl https://{domain}/api/mail/out_servers/{id} -v -u {name}:{password} -X DELETE",
17605         "type": "json"
17606       }
17607     ],
17608     "name": "DeleteSMTPs",
17609     "group": "Mail_SMTP",
17610     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17611     "version": "0.0.0",
17612     "filename": "server/api/mailServerOut/index.js",
17613     "groupTitle": "Mail_SMTP"
17614   },
17615   {
17616     "type": "get",
17617     "url": "/api/mail/out_servers",
17618     "title": "Gets a list of SMTPs",
17619     "examples": [
17620       {
17621         "title": "Example usage:",
17622         "content": "curl https://{domain}/api/mail/out_servers -v -u {name}:{password}",
17623         "type": "json"
17624       }
17625     ],
17626     "name": "GetSMTPs",
17627     "group": "Mail_SMTP",
17628     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/mail/out_servers?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/mail/out_servers?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/mail/out_servers?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/mail/out_servers?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/mail/out_servers?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
17629     "version": "0.0.0",
17630     "filename": "server/api/mailServerOut/index.js",
17631     "groupTitle": "Mail_SMTP"
17632   },
17633   {
17634     "type": "get",
17635     "url": "/api/mail/out_servers/{id}",
17636     "title": "Gets a single SMTP",
17637     "examples": [
17638       {
17639         "title": "Example usage:",
17640         "content": "curl https://{domain}/api/mail/out_servers/{id} -v -u {name}:{password}",
17641         "type": "json"
17642       }
17643     ],
17644     "name": "ShowSMTPs",
17645     "group": "Mail_SMTP",
17646     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17647     "version": "0.0.0",
17648     "filename": "server/api/mailServerOut/index.js",
17649     "groupTitle": "Mail_SMTP"
17650   },
17651   {
17652     "type": "put",
17653     "url": "/api/mail/out_servers/{id}",
17654     "title": "Update an existing SMTP",
17655     "examples": [
17656       {
17657         "title": "Example usage:",
17658         "content": "curl https://{domain}/api/mail/out_servers/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
17659         "type": "json"
17660       }
17661     ],
17662     "name": "updateSMTPs",
17663     "group": "Mail_SMTP",
17664     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17665     "version": "0.0.0",
17666     "filename": "server/api/mailServerOut/index.js",
17667     "groupTitle": "Mail_SMTP"
17668   },
17669   {
17670     "type": "post",
17671     "url": "/api/mail/substatuses",
17672     "title": "Creates a new Queue",
17673     "examples": [
17674       {
17675         "title": "Example usage:",
17676         "content": "curl https://{domain}/api/mail/substatuses -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
17677         "type": "json"
17678       }
17679     ],
17680     "name": "CreateSubstatuses",
17681     "group": "Mail_Substatuses",
17682     "parameter": {
17683       "fields": {
17684         "Body": [
17685           {
17686             "group": "Body",
17687             "type": "String",
17688             "optional": false,
17689             "field": "name",
17690             "description": ""
17691           },
17692           {
17693             "group": "Body",
17694             "type": "String",
17695             "optional": true,
17696             "field": "description",
17697             "description": ""
17698           }
17699         ]
17700       }
17701     },
17702     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17703     "version": "0.0.0",
17704     "filename": "server/api/mailSubstatus/index.js",
17705     "groupTitle": "Mail_Substatuses"
17706   },
17707   {
17708     "type": "delete",
17709     "url": "/api/mail/substatuses/{id}",
17710     "title": "Deletes a Queue",
17711     "examples": [
17712       {
17713         "title": "Example usage:",
17714         "content": "curl https://{domain}/api/mail/substatuses/{id} -v -u {name}:{password} -X DELETE",
17715         "type": "json"
17716       }
17717     ],
17718     "name": "DeleteSubstatuses",
17719     "group": "Mail_Substatuses",
17720     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17721     "version": "0.0.0",
17722     "filename": "server/api/mailSubstatus/index.js",
17723     "groupTitle": "Mail_Substatuses"
17724   },
17725   {
17726     "type": "get",
17727     "url": "/api/mail/substatuses/describe",
17728     "title": "Gets table info about Substatuses",
17729     "examples": [
17730       {
17731         "title": "Example usage:",
17732         "content": "curl https://{domain}/api/mail/substatuses/describe -v -u {name}:{password}",
17733         "type": "json"
17734       }
17735     ],
17736     "name": "DescribeSubstatuses",
17737     "group": "Mail_Substatuses",
17738     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17739     "version": "0.0.0",
17740     "filename": "server/api/mailSubstatus/index.js",
17741     "groupTitle": "Mail_Substatuses"
17742   },
17743   {
17744     "type": "get",
17745     "url": "/api/mail/substatuses",
17746     "title": "Gets a list of Substatuses",
17747     "examples": [
17748       {
17749         "title": "Example usage:",
17750         "content": "curl https://{domain}/api/mail/substatuses -v -u {name}:{password}",
17751         "type": "json"
17752       }
17753     ],
17754     "name": "GetSubstatuses",
17755     "group": "Mail_Substatuses",
17756     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/mail/substatuses?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/mail/substatuses?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/mail/substatuses?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/mail/substatuses?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/mail/substatuses?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
17757     "version": "0.0.0",
17758     "filename": "server/api/mailSubstatus/index.js",
17759     "groupTitle": "Mail_Substatuses"
17760   },
17761   {
17762     "type": "get",
17763     "url": "/api/mail/substatuses/{id}",
17764     "title": "Gets a single Queue",
17765     "examples": [
17766       {
17767         "title": "Example usage:",
17768         "content": "curl https://{domain}/api/mail/substatuses/{id} -v -u {name}:{password}",
17769         "type": "json"
17770       }
17771     ],
17772     "name": "ShowSubstatuses",
17773     "group": "Mail_Substatuses",
17774     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17775     "version": "0.0.0",
17776     "filename": "server/api/mailSubstatus/index.js",
17777     "groupTitle": "Mail_Substatuses"
17778   },
17779   {
17780     "type": "put",
17781     "url": "/api/mail/substatuses/{id}",
17782     "title": "Update an existing Queue",
17783     "examples": [
17784       {
17785         "title": "Example usage:",
17786         "content": "curl https://{domain}/api/mail/substatuses/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
17787         "type": "json"
17788       }
17789     ],
17790     "name": "updateSubstatuses",
17791     "group": "Mail_Substatuses",
17792     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17793     "version": "0.0.0",
17794     "filename": "server/api/mailSubstatus/index.js",
17795     "groupTitle": "Mail_Substatuses"
17796   },
17797   {
17798     "type": "post",
17799     "url": "/api/mail/reports/transfer",
17800     "title": "Creates a new Mail Transfer Report",
17801     "examples": [
17802       {
17803         "title": "Example usage:",
17804         "content": "curl https://{domain}/api/mail/reports/transfer -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
17805         "type": "json"
17806       }
17807     ],
17808     "name": "CreateMail_Transfer_Reports",
17809     "group": "Mail_Transfer_Reports",
17810     "parameter": {
17811       "fields": {
17812         "Body": [
17813           {
17814             "group": "Body",
17815             "type": "String",
17816             "optional": false,
17817             "field": "uniqueid",
17818             "description": ""
17819           },
17820           {
17821             "group": "Body",
17822             "type": "String",
17823             "allowedValues": [
17824               "\"account\"",
17825               "\"agent\"",
17826               "\"queue\""
17827             ],
17828             "optional": false,
17829             "field": "type",
17830             "description": ""
17831           },
17832           {
17833             "group": "Body",
17834             "type": "String",
17835             "optional": false,
17836             "field": "transferredAt",
17837             "description": ""
17838           }
17839         ]
17840       }
17841     },
17842     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17843     "version": "0.0.0",
17844     "filename": "server/api/mailTransferReport/index.js",
17845     "groupTitle": "Mail_Transfer_Reports"
17846   },
17847   {
17848     "type": "delete",
17849     "url": "/api/mail/reports/transfer/{id}",
17850     "title": "Deletes a Mail Transfer Report",
17851     "examples": [
17852       {
17853         "title": "Example usage:",
17854         "content": "curl https://{domain}/api/mail/reports/transfer/{id} -v -u {name}:{password} -X DELETE",
17855         "type": "json"
17856       }
17857     ],
17858     "name": "DeleteMail_Transfer_Reports",
17859     "group": "Mail_Transfer_Reports",
17860     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17861     "version": "0.0.0",
17862     "filename": "server/api/mailTransferReport/index.js",
17863     "groupTitle": "Mail_Transfer_Reports"
17864   },
17865   {
17866     "type": "get",
17867     "url": "/api/mail/reports/transfer/describe",
17868     "title": "Gets table info about Mail Transfer Reports",
17869     "examples": [
17870       {
17871         "title": "Example usage:",
17872         "content": "curl https://{domain}/api/mail/reports/transfer/describe -v -u {name}:{password}",
17873         "type": "json"
17874       }
17875     ],
17876     "name": "DescribeMail_Transfer_Reports",
17877     "group": "Mail_Transfer_Reports",
17878     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17879     "version": "0.0.0",
17880     "filename": "server/api/mailTransferReport/index.js",
17881     "groupTitle": "Mail_Transfer_Reports"
17882   },
17883   {
17884     "type": "get",
17885     "url": "/api/mail/reports/transfer",
17886     "title": "Gets a list of Mail Transfer Reports",
17887     "examples": [
17888       {
17889         "title": "Example usage:",
17890         "content": "curl https://{domain}/api/mail/reports/transfer -v -u {name}:{password}",
17891         "type": "json"
17892       }
17893     ],
17894     "name": "GetMail_Transfer_Reports",
17895     "group": "Mail_Transfer_Reports",
17896     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/mail/reports/transfer?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/mail/reports/transfer?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/mail/reports/transfer?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/mail/reports/transfer?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/mail/reports/transfer?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
17897     "version": "0.0.0",
17898     "filename": "server/api/mailTransferReport/index.js",
17899     "groupTitle": "Mail_Transfer_Reports"
17900   },
17901   {
17902     "type": "get",
17903     "url": "/api/mail/reports/transfer/{id}",
17904     "title": "Gets a single Mail Transfer Report",
17905     "examples": [
17906       {
17907         "title": "Example usage:",
17908         "content": "curl https://{domain}/api/mail/reports/transfer/{id} -v -u {name}:{password}",
17909         "type": "json"
17910       }
17911     ],
17912     "name": "ShowMail_Transfer_Reports",
17913     "group": "Mail_Transfer_Reports",
17914     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17915     "version": "0.0.0",
17916     "filename": "server/api/mailTransferReport/index.js",
17917     "groupTitle": "Mail_Transfer_Reports"
17918   },
17919   {
17920     "type": "put",
17921     "url": "/api/mail/reports/transfer/{id}",
17922     "title": "Update an existing Mail Transfer Report",
17923     "examples": [
17924       {
17925         "title": "Example usage:",
17926         "content": "curl https://{domain}/api/mail/reports/transfer/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
17927         "type": "json"
17928       }
17929     ],
17930     "name": "updateMail_Transfer_Reports",
17931     "group": "Mail_Transfer_Reports",
17932     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17933     "version": "0.0.0",
17934     "filename": "server/api/mailTransferReport/index.js",
17935     "groupTitle": "Mail_Transfer_Reports"
17936   },
17937   {
17938     "type": "get",
17939     "url": "/api/members/reports/describe",
17940     "title": "Gets table info about Member Reports",
17941     "examples": [
17942       {
17943         "title": "Example usage:",
17944         "content": "curl https://{domain}/api/members/reports/describe -v -u {name}:{password}",
17945         "type": "json"
17946       }
17947     ],
17948     "name": "DescribeMember_Reports",
17949     "group": "Member_Reports",
17950     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17951     "version": "0.0.0",
17952     "filename": "server/api/memberReport/index.js",
17953     "groupTitle": "Member_Reports"
17954   },
17955   {
17956     "type": "get",
17957     "url": "/api/members/reports",
17958     "title": "Gets a list of Member Reports",
17959     "examples": [
17960       {
17961         "title": "Example usage:",
17962         "content": "curl https://{domain}/api/members/reports -v -u {name}:{password}",
17963         "type": "json"
17964       }
17965     ],
17966     "name": "GetMember_Reports",
17967     "group": "Member_Reports",
17968     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/members/reports?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/members/reports?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/members/reports?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/members/reports?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/members/reports?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
17969     "version": "0.0.0",
17970     "filename": "server/api/memberReport/index.js",
17971     "groupTitle": "Member_Reports"
17972   },
17973   {
17974     "type": "get",
17975     "url": "/api/members/reports/{id}",
17976     "title": "Gets a single Member Report",
17977     "examples": [
17978       {
17979         "title": "Example usage:",
17980         "content": "curl https://{domain}/api/members/reports/{id} -v -u {name}:{password}",
17981         "type": "json"
17982       }
17983     ],
17984     "name": "ShowMember_Reports",
17985     "group": "Member_Reports",
17986     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17987     "version": "0.0.0",
17988     "filename": "server/api/memberReport/index.js",
17989     "groupTitle": "Member_Reports"
17990   },
17991   {
17992     "type": "get",
17993     "url": "/api/migrations",
17994     "title": "Gets a list of Migrations",
17995     "examples": [
17996       {
17997         "title": "Example usage:",
17998         "content": "curl https://{domain}/api/migrations -v -u {name}:{password}",
17999         "type": "json"
18000       }
18001     ],
18002     "name": "GetMigrations",
18003     "group": "Migrations",
18004     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/migrations?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/migrations?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/migrations?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/migrations?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/migrations?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
18005     "version": "0.0.0",
18006     "filename": "server/api/migration/index.js",
18007     "groupTitle": "Migrations"
18008   },
18009   {
18010     "type": "post",
18011     "url": "/api/voice/networks",
18012     "title": "Create a new network",
18013     "examples": [
18014       {
18015         "title": "Example usage:",
18016         "content": "curl https://{domain}/api/voice/networks -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
18017         "type": "json"
18018       }
18019     ],
18020     "name": "Create",
18021     "group": "Networks",
18022     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18023     "version": "0.0.0",
18024     "filename": "server/api/network/index.js",
18025     "groupTitle": "Networks"
18026   },
18027   {
18028     "type": "delete",
18029     "url": "/api/voice/networks/{id}",
18030     "title": "Deletes a network",
18031     "examples": [
18032       {
18033         "title": "Example usage:",
18034         "content": "curl https://{domain}/api/voice/networks/{id} -v -u {name}:{password} -X DELETE",
18035         "type": "json"
18036       }
18037     ],
18038     "name": "Delete",
18039     "group": "Networks",
18040     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18041     "version": "0.0.0",
18042     "filename": "server/api/network/index.js",
18043     "groupTitle": "Networks"
18044   },
18045   {
18046     "type": "get",
18047     "url": "/api/networks",
18048     "title": "Gets a list of Networks",
18049     "examples": [
18050       {
18051         "title": "Example usage:",
18052         "content": "curl https://{domain}/api/networks -v -u {name}:{password}",
18053         "type": "json"
18054       }
18055     ],
18056     "name": "GetNetworks",
18057     "group": "Networks",
18058     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/networks?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/networks?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/networks?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/networks?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/networks?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
18059     "version": "0.0.0",
18060     "filename": "server/api/network/index.js",
18061     "groupTitle": "Networks"
18062   },
18063   {
18064     "type": "get",
18065     "url": "/api/networks/{id}",
18066     "title": "Gets a single Network",
18067     "examples": [
18068       {
18069         "title": "Example usage:",
18070         "content": "curl https://{domain}/api/networks/{id} -v -u {name}:{password}",
18071         "type": "json"
18072       }
18073     ],
18074     "name": "ShowNetworks",
18075     "group": "Networks",
18076     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18077     "version": "0.0.0",
18078     "filename": "server/api/network/index.js",
18079     "groupTitle": "Networks"
18080   },
18081   {
18082     "type": "put",
18083     "url": "/api/voice/networks/{id}",
18084     "title": "Update an existing network",
18085     "examples": [
18086       {
18087         "title": "Example usage:",
18088         "content": "curl https://{domain}/api/voice/networks/{id} -v -u {name}:{password} -X PUT",
18089         "type": "json"
18090       }
18091     ],
18092     "name": "Update",
18093     "group": "Networks",
18094     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18095     "version": "0.0.0",
18096     "filename": "server/api/network/index.js",
18097     "groupTitle": "Networks"
18098   },
18099   {
18100     "type": "post",
18101     "url": "/api/openchannel/accounts/{id}/users",
18102     "title": "Add agents to a openchannel account",
18103     "examples": [
18104       {
18105         "title": "Example usage:",
18106         "content": "curl https://{domain}/api/openchannel/accounts/{id}/users -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
18107         "type": "json"
18108       }
18109     ],
18110     "name": "AddAgents",
18111     "group": "Openchannel_Accounts",
18112     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18113     "version": "0.0.0",
18114     "filename": "server/api/openchannelAccount/index.js",
18115     "groupTitle": "Openchannel_Accounts"
18116   },
18117   {
18118     "type": "post",
18119     "url": "/api/openchannel/accounts",
18120     "title": "Creates a new Account",
18121     "examples": [
18122       {
18123         "title": "Example usage:",
18124         "content": "curl https://{domain}/api/openchannel/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
18125         "type": "json"
18126       }
18127     ],
18128     "name": "CreateAccounts",
18129     "group": "Openchannel_Accounts",
18130     "parameter": {
18131       "fields": {
18132         "Body": [
18133           {
18134             "group": "Body",
18135             "type": "String",
18136             "optional": false,
18137             "field": "name",
18138             "description": ""
18139           },
18140           {
18141             "group": "Body",
18142             "type": "String",
18143             "optional": true,
18144             "field": "description",
18145             "description": ""
18146           },
18147           {
18148             "group": "Body",
18149             "type": "String",
18150             "optional": true,
18151             "field": "token",
18152             "description": ""
18153           },
18154           {
18155             "group": "Body",
18156             "type": "String",
18157             "optional": true,
18158             "field": "replyUri",
18159             "description": ""
18160           },
18161           {
18162             "group": "Body",
18163             "type": "String",
18164             "optional": false,
18165             "field": "key",
18166             "description": ""
18167           },
18168           {
18169             "group": "Body",
18170             "type": "Text",
18171             "optional": true,
18172             "field": "notificationTemplate",
18173             "description": ""
18174           },
18175           {
18176             "group": "Body",
18177             "type": "Boolean",
18178             "optional": true,
18179             "field": "notificationSound",
18180             "description": ""
18181           },
18182           {
18183             "group": "Body",
18184             "type": "Boolean",
18185             "optional": true,
18186             "field": "notificationShake",
18187             "description": ""
18188           },
18189           {
18190             "group": "Body",
18191             "type": "Integer",
18192             "optional": true,
18193             "field": "waitForTheAssignedAgent",
18194             "description": ""
18195           },
18196           {
18197             "group": "Body",
18198             "type": "Integer",
18199             "optional": true,
18200             "field": "waitForTheAssignedQueue",
18201             "description": ""
18202           },
18203           {
18204             "group": "Body",
18205             "type": "String",
18206             "optional": true,
18207             "field": "mapKey",
18208             "description": ""
18209           },
18210           {
18211             "group": "Body",
18212             "type": "Boolean",
18213             "optional": true,
18214             "field": "queueTransfer",
18215             "description": ""
18216           },
18217           {
18218             "group": "Body",
18219             "type": "Integer",
18220             "optional": true,
18221             "field": "queueTransferTimeout",
18222             "description": ""
18223           },
18224           {
18225             "group": "Body",
18226             "type": "Boolean",
18227             "optional": true,
18228             "field": "agentTransfer",
18229             "description": ""
18230           },
18231           {
18232             "group": "Body",
18233             "type": "Integer",
18234             "optional": true,
18235             "field": "agentTransferTimeout",
18236             "description": ""
18237           },
18238           {
18239             "group": "Body",
18240             "type": "Integer",
18241             "optional": true,
18242             "field": "mandatoryDispositionPauseId",
18243             "description": "<p>Status to put when mandatory disposition is enabled</p>"
18244           },
18245           {
18246             "group": "Body",
18247             "type": "Boolean",
18248             "optional": true,
18249             "field": "mandatoryDisposition",
18250             "description": "<p>Enabled/disables mandatory dispo on a queue</p>"
18251           }
18252         ]
18253       }
18254     },
18255     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18256     "version": "0.0.0",
18257     "filename": "server/api/openchannelAccount/index.js",
18258     "groupTitle": "Openchannel_Accounts"
18259   },
18260   {
18261     "type": "delete",
18262     "url": "/api/openchannel/accounts/{id}",
18263     "title": "Deletes a Account",
18264     "examples": [
18265       {
18266         "title": "Example usage:",
18267         "content": "curl https://{domain}/api/openchannel/accounts/{id} -v -u {name}:{password} -X DELETE",
18268         "type": "json"
18269       }
18270     ],
18271     "name": "DeleteAccounts",
18272     "group": "Openchannel_Accounts",
18273     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18274     "version": "0.0.0",
18275     "filename": "server/api/openchannelAccount/index.js",
18276     "groupTitle": "Openchannel_Accounts"
18277   },
18278   {
18279     "type": "get",
18280     "url": "/api/openchannel/accounts/describe",
18281     "title": "Gets table info about Accounts",
18282     "examples": [
18283       {
18284         "title": "Example usage:",
18285         "content": "curl https://{domain}/api/openchannel/accounts/describe -v -u {name}:{password}",
18286         "type": "json"
18287       }
18288     ],
18289     "name": "DescribeAccounts",
18290     "group": "Openchannel_Accounts",
18291     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18292     "version": "0.0.0",
18293     "filename": "server/api/openchannelAccount/index.js",
18294     "groupTitle": "Openchannel_Accounts"
18295   },
18296   {
18297     "type": "get",
18298     "url": "/api/openchannel/accounts",
18299     "title": "Gets a list of Accounts",
18300     "examples": [
18301       {
18302         "title": "Example usage:",
18303         "content": "curl https://{domain}/api/openchannel/accounts -v -u {name}:{password}",
18304         "type": "json"
18305       }
18306     ],
18307     "name": "GetAccounts",
18308     "group": "Openchannel_Accounts",
18309     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/openchannel/accounts?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/openchannel/accounts?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/openchannel/accounts?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/openchannel/accounts?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/openchannel/accounts?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
18310     "version": "0.0.0",
18311     "filename": "server/api/openchannelAccount/index.js",
18312     "groupTitle": "Openchannel_Accounts"
18313   },
18314   {
18315     "type": "get",
18316     "url": "/api/openchannel/accounts/{id}/users",
18317     "title": "Gets agents from openchannel account",
18318     "examples": [
18319       {
18320         "title": "Example usage:",
18321         "content": "curl https://{domain}/api/openchannel/accounts/{id}/users -v -u {name}:{password} -X GET",
18322         "type": "json"
18323       }
18324     ],
18325     "name": "GetAgents",
18326     "group": "Openchannel_Accounts",
18327     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18328     "version": "0.0.0",
18329     "filename": "server/api/openchannelAccount/index.js",
18330     "groupTitle": "Openchannel_Accounts"
18331   },
18332   {
18333     "type": "delete",
18334     "url": "/api/openchannel/accounts/{id}/users",
18335     "title": "Removes agents from a openchannel account",
18336     "examples": [
18337       {
18338         "title": "Example usage:",
18339         "content": "curl https://{domain}/api/openchannel/accounts/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
18340         "type": "json"
18341       }
18342     ],
18343     "name": "RemoveAgents",
18344     "group": "Openchannel_Accounts",
18345     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18346     "version": "0.0.0",
18347     "filename": "server/api/openchannelAccount/index.js",
18348     "groupTitle": "Openchannel_Accounts"
18349   },
18350   {
18351     "type": "delete",
18352     "url": "/api/openchannel/accounts/{id}/canned_answers",
18353     "title": "Removes canned answers from account",
18354     "examples": [
18355       {
18356         "title": "Example usage:",
18357         "content": "curl https://{domain}/api/openchannel/accounts/{id}/canned_answers?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
18358         "type": "json"
18359       }
18360     ],
18361     "name": "RemoveAnswers",
18362     "group": "Openchannel_Accounts",
18363     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18364     "version": "0.0.0",
18365     "filename": "server/api/openchannelAccount/index.js",
18366     "groupTitle": "Openchannel_Accounts"
18367   },
18368   {
18369     "type": "delete",
18370     "url": "/api/openchannel/accounts/{id}/dispositions",
18371     "title": "Removes dispositions from account",
18372     "examples": [
18373       {
18374         "title": "Example usage:",
18375         "content": "curl https://{domain}/api/openchannel/accounts/{id}/dispositions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
18376         "type": "json"
18377       }
18378     ],
18379     "name": "RemoveDispositions",
18380     "group": "Openchannel_Accounts",
18381     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18382     "version": "0.0.0",
18383     "filename": "server/api/openchannelAccount/index.js",
18384     "groupTitle": "Openchannel_Accounts"
18385   },
18386   {
18387     "type": "get",
18388     "url": "/api/openchannel/accounts/{id}",
18389     "title": "Gets a single Account",
18390     "examples": [
18391       {
18392         "title": "Example usage:",
18393         "content": "curl https://{domain}/api/openchannel/accounts/{id} -v -u {name}:{password}",
18394         "type": "json"
18395       }
18396     ],
18397     "name": "ShowAccounts",
18398     "group": "Openchannel_Accounts",
18399     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18400     "version": "0.0.0",
18401     "filename": "server/api/openchannelAccount/index.js",
18402     "groupTitle": "Openchannel_Accounts"
18403   },
18404   {
18405     "type": "post",
18406     "url": "/api/openchannel/accounts/{id}/canned_answers",
18407     "title": "Creates new canned answer",
18408     "examples": [
18409       {
18410         "title": "Example usage:",
18411         "content": "curl https://{domain}/api/openchannel/accounts/{id}/canned_answers -d '{\"name\": \"vip\"}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
18412         "type": "json"
18413       }
18414     ],
18415     "name": "addAnswer",
18416     "group": "Openchannel_Accounts",
18417     "parameter": {
18418       "fields": {
18419         "Body": [
18420           {
18421             "group": "Body",
18422             "type": "String",
18423             "optional": false,
18424             "field": "key",
18425             "description": ""
18426           },
18427           {
18428             "group": "Body",
18429             "type": "Text",
18430             "optional": false,
18431             "field": "value",
18432             "description": ""
18433           },
18434           {
18435             "group": "Body",
18436             "type": "String",
18437             "optional": true,
18438             "field": "description",
18439             "description": ""
18440           },
18441           {
18442             "group": "Body",
18443             "type": "Virtual",
18444             "optional": true,
18445             "field": "name",
18446             "description": ""
18447           }
18448         ]
18449       }
18450     },
18451     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18452     "version": "0.0.0",
18453     "filename": "server/api/openchannelAccount/index.js",
18454     "groupTitle": "Openchannel_Accounts"
18455   },
18456   {
18457     "type": "post",
18458     "url": "/api/openchannel/accounts/{id}/applications",
18459     "title": "Creates new applications",
18460     "examples": [
18461       {
18462         "title": "Example usage:",
18463         "content": "curl https://{domain}/api/openchannel/accounts/{id}/applications -d '[{\"app\": \"queue\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
18464         "type": "json"
18465       }
18466     ],
18467     "name": "addApplications",
18468     "group": "Openchannel_Accounts",
18469     "parameter": {
18470       "fields": {
18471         "Body": [
18472           {
18473             "group": "Body",
18474             "type": "Integer",
18475             "optional": false,
18476             "field": "priority",
18477             "description": ""
18478           },
18479           {
18480             "group": "Body",
18481             "type": "String",
18482             "optional": false,
18483             "field": "app",
18484             "description": ""
18485           },
18486           {
18487             "group": "Body",
18488             "type": "Text",
18489             "optional": true,
18490             "field": "appdata",
18491             "description": ""
18492           },
18493           {
18494             "group": "Body",
18495             "type": "String",
18496             "optional": true,
18497             "field": "description",
18498             "description": ""
18499           },
18500           {
18501             "group": "Body",
18502             "type": "String",
18503             "optional": true,
18504             "field": "interval",
18505             "description": ""
18506           }
18507         ]
18508       }
18509     },
18510     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18511     "version": "0.0.0",
18512     "filename": "server/api/openchannelAccount/index.js",
18513     "groupTitle": "Openchannel_Accounts"
18514   },
18515   {
18516     "type": "post",
18517     "url": "/api/openchannel/accounts/{id}/dispositions",
18518     "title": "Creates new disposition",
18519     "examples": [
18520       {
18521         "title": "Example usage:",
18522         "content": "curl https://{domain}/api/openchannel/accounts/{id}/dispositions -d '{\"name\": \"vip\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
18523         "type": "json"
18524       }
18525     ],
18526     "name": "addDisposition",
18527     "group": "Openchannel_Accounts",
18528     "parameter": {
18529       "fields": {
18530         "Body": [
18531           {
18532             "group": "Body",
18533             "type": "String",
18534             "optional": false,
18535             "field": "name",
18536             "description": ""
18537           },
18538           {
18539             "group": "Body",
18540             "type": "String",
18541             "allowedValues": [
18542               "\"first\"",
18543               "\"second\"",
18544               "\"third\""
18545             ],
18546             "optional": false,
18547             "field": "level",
18548             "description": ""
18549           },
18550           {
18551             "group": "Body",
18552             "type": "String",
18553             "optional": true,
18554             "field": "description",
18555             "description": ""
18556           }
18557         ]
18558       }
18559     },
18560     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18561     "version": "0.0.0",
18562     "filename": "server/api/openchannelAccount/index.js",
18563     "groupTitle": "Openchannel_Accounts"
18564   },
18565   {
18566     "type": "get",
18567     "url": "/api/openchannel/accounts/{id}/canned_answers",
18568     "title": "Gets account canned answers",
18569     "examples": [
18570       {
18571         "title": "Example usage:",
18572         "content": "curl https://{domain}/api/openchannel/accounts/{id}/canned_answers -v -u {name}:{password} -X GET",
18573         "type": "json"
18574       }
18575     ],
18576     "name": "getAnswers",
18577     "group": "Openchannel_Accounts",
18578     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18579     "version": "0.0.0",
18580     "filename": "server/api/openchannelAccount/index.js",
18581     "groupTitle": "Openchannel_Accounts"
18582   },
18583   {
18584     "type": "get",
18585     "url": "/api/openchannel/accounts/{id}/applications",
18586     "title": "Gets account applications",
18587     "examples": [
18588       {
18589         "title": "Example usage:",
18590         "content": "curl https://{domain}/api/openchannel/accounts/{id}/applications -v -u {name}:{password} -X GET",
18591         "type": "json"
18592       }
18593     ],
18594     "name": "getApplications",
18595     "group": "Openchannel_Accounts",
18596     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18597     "version": "0.0.0",
18598     "filename": "server/api/openchannelAccount/index.js",
18599     "groupTitle": "Openchannel_Accounts"
18600   },
18601   {
18602     "type": "get",
18603     "url": "/api/openchannel/accounts/{id}/dispositions",
18604     "title": "Gets account dispositions",
18605     "examples": [
18606       {
18607         "title": "Example usage:",
18608         "content": "curl https://{domain}/api/openchannel/accounts/{id}/dispositions -v -u {name}:{password} -X GET",
18609         "type": "json"
18610       }
18611     ],
18612     "name": "getDispositions",
18613     "group": "Openchannel_Accounts",
18614     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18615     "version": "0.0.0",
18616     "filename": "server/api/openchannelAccount/index.js",
18617     "groupTitle": "Openchannel_Accounts"
18618   },
18619   {
18620     "type": "get",
18621     "url": "/api/openchannel/accounts/{id}/interactions",
18622     "title": "Gets Openchannel Account Interactions",
18623     "examples": [
18624       {
18625         "title": "Example usage:",
18626         "content": "curl https://{domain}/api/openchannel/accounts/{id}/interactions -v -u {name}:{password} -X GET",
18627         "type": "json"
18628       }
18629     ],
18630     "name": "getInteractions",
18631     "group": "Openchannel_Accounts",
18632     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18633     "version": "0.0.0",
18634     "filename": "server/api/openchannelAccount/index.js",
18635     "groupTitle": "Openchannel_Accounts"
18636   },
18637   {
18638     "type": "post",
18639     "url": "/api/openchannel/accounts/{id}/notify",
18640     "title": "Notify new message",
18641     "examples": [
18642       {
18643         "title": "Example usage:",
18644         "content": "curl https://{domain}/api/openchannel/accounts/{id}/notify -d '{\"body\": \"hello world\", \"...\": \"...\"}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
18645         "type": "json"
18646       }
18647     ],
18648     "name": "notify",
18649     "group": "Openchannel_Accounts",
18650     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <p>Follow this link to check the documentation: <pre><a target=\"_blank\" href=\"https://wiki.xcallymotion.com/display/XMV/New+Channels+Configuration+Steps#NewChannelsConfigurationSteps-BuildyourownChannelservice\">https://wiki.xcallymotion.com/display/XMV/New+Channels+Configuration+Steps#NewChannelsConfigurationSteps-BuildyourownChannelservice</a></pre></p>",
18651     "version": "0.0.0",
18652     "filename": "server/api/openchannelAccount/index.js",
18653     "groupTitle": "Openchannel_Accounts"
18654   },
18655   {
18656     "type": "post",
18657     "url": "/api/openchannel/accounts/{id}/send",
18658     "title": "Send new openchannel message",
18659     "examples": [
18660       {
18661         "title": "Example usage:",
18662         "content": "curl https://{domain}/api/openchannel/accounts/{id}/send -d '{from: 'John Doe', body: 'This is a test'}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
18663         "type": "json"
18664       }
18665     ],
18666     "name": "sendOpenchannel",
18667     "group": "Openchannel_Accounts",
18668     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18669     "version": "0.0.0",
18670     "filename": "server/api/openchannelAccount/index.js",
18671     "groupTitle": "Openchannel_Accounts"
18672   },
18673   {
18674     "type": "put",
18675     "url": "/api/openchannel/accounts/{id}",
18676     "title": "Update an existing Account",
18677     "examples": [
18678       {
18679         "title": "Example usage:",
18680         "content": "curl https://{domain}/api/openchannel/accounts/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
18681         "type": "json"
18682       }
18683     ],
18684     "name": "updateAccounts",
18685     "group": "Openchannel_Accounts",
18686     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18687     "version": "0.0.0",
18688     "filename": "server/api/openchannelAccount/index.js",
18689     "groupTitle": "Openchannel_Accounts"
18690   },
18691   {
18692     "type": "post",
18693     "url": "/api/openchannel/applications",
18694     "title": "Creates a new Application",
18695     "examples": [
18696       {
18697         "title": "Example usage:",
18698         "content": "curl https://{domain}/api/openchannel/applications -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
18699         "type": "json"
18700       }
18701     ],
18702     "name": "CreateApplications",
18703     "group": "Openchannel_Applications",
18704     "parameter": {
18705       "fields": {
18706         "Body": [
18707           {
18708             "group": "Body",
18709             "type": "Integer",
18710             "optional": false,
18711             "field": "priority",
18712             "description": ""
18713           },
18714           {
18715             "group": "Body",
18716             "type": "String",
18717             "optional": false,
18718             "field": "app",
18719             "description": ""
18720           },
18721           {
18722             "group": "Body",
18723             "type": "Text",
18724             "optional": true,
18725             "field": "appdata",
18726             "description": ""
18727           },
18728           {
18729             "group": "Body",
18730             "type": "String",
18731             "optional": true,
18732             "field": "description",
18733             "description": ""
18734           },
18735           {
18736             "group": "Body",
18737             "type": "String",
18738             "optional": true,
18739             "field": "interval",
18740             "description": ""
18741           }
18742         ]
18743       }
18744     },
18745     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18746     "version": "0.0.0",
18747     "filename": "server/api/openchannelApplication/index.js",
18748     "groupTitle": "Openchannel_Applications"
18749   },
18750   {
18751     "type": "delete",
18752     "url": "/api/openchannel/applications/{id}",
18753     "title": "Deletes a Application",
18754     "examples": [
18755       {
18756         "title": "Example usage:",
18757         "content": "curl https://{domain}/api/openchannel/applications/{id} -v -u {name}:{password} -X DELETE",
18758         "type": "json"
18759       }
18760     ],
18761     "name": "DeleteApplications",
18762     "group": "Openchannel_Applications",
18763     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18764     "version": "0.0.0",
18765     "filename": "server/api/openchannelApplication/index.js",
18766     "groupTitle": "Openchannel_Applications"
18767   },
18768   {
18769     "type": "get",
18770     "url": "/api/openchannel/applications",
18771     "title": "Gets a list of Applications",
18772     "examples": [
18773       {
18774         "title": "Example usage:",
18775         "content": "curl https://{domain}/api/openchannel/applications -v -u {name}:{password}",
18776         "type": "json"
18777       }
18778     ],
18779     "name": "GetApplications",
18780     "group": "Openchannel_Applications",
18781     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/openchannel/applications?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/openchannel/applications?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/openchannel/applications?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/openchannel/applications?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/openchannel/applications?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
18782     "version": "0.0.0",
18783     "filename": "server/api/openchannelApplication/index.js",
18784     "groupTitle": "Openchannel_Applications"
18785   },
18786   {
18787     "type": "get",
18788     "url": "/api/openchannel/applications/{id}",
18789     "title": "Gets a single Application",
18790     "examples": [
18791       {
18792         "title": "Example usage:",
18793         "content": "curl https://{domain}/api/openchannel/applications/{id} -v -u {name}:{password}",
18794         "type": "json"
18795       }
18796     ],
18797     "name": "ShowApplications",
18798     "group": "Openchannel_Applications",
18799     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18800     "version": "0.0.0",
18801     "filename": "server/api/openchannelApplication/index.js",
18802     "groupTitle": "Openchannel_Applications"
18803   },
18804   {
18805     "type": "put",
18806     "url": "/api/openchannel/applications/{id}",
18807     "title": "Update an existing Application",
18808     "examples": [
18809       {
18810         "title": "Example usage:",
18811         "content": "curl https://{domain}/api/openchannel/applications/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
18812         "type": "json"
18813       }
18814     ],
18815     "name": "updateApplications",
18816     "group": "Openchannel_Applications",
18817     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18818     "version": "0.0.0",
18819     "filename": "server/api/openchannelApplication/index.js",
18820     "groupTitle": "Openchannel_Applications"
18821   },
18822   {
18823     "type": "post",
18824     "url": "/api/openchannel/interactions/{id}/tags",
18825     "title": "Add tags to the interaction",
18826     "examples": [
18827       {
18828         "title": "Example usage:",
18829         "content": "curl https://{domain}/api/openchannel/interaction/{id}/tags -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
18830         "type": "json"
18831       }
18832     ],
18833     "name": "AddTags",
18834     "group": "Openchannel_Interactions",
18835     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18836     "version": "0.0.0",
18837     "filename": "server/api/openchannelInteraction/index.js",
18838     "groupTitle": "Openchannel_Interactions"
18839   },
18840   {
18841     "type": "post",
18842     "url": "/api/openchannel/interactions",
18843     "title": "Creates a new Interaction",
18844     "examples": [
18845       {
18846         "title": "Example usage:",
18847         "content": "curl https://{domain}/api/openchannel/interactions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
18848         "type": "json"
18849       }
18850     ],
18851     "name": "CreateInteractions",
18852     "group": "Openchannel_Interactions",
18853     "parameter": {
18854       "fields": {
18855         "Body": [
18856           {
18857             "group": "Body",
18858             "type": "Boolean",
18859             "optional": true,
18860             "field": "closed",
18861             "description": ""
18862           },
18863           {
18864             "group": "Body",
18865             "type": "String",
18866             "optional": true,
18867             "field": "closedAt",
18868             "description": ""
18869           },
18870           {
18871             "group": "Body",
18872             "type": "String",
18873             "optional": true,
18874             "field": "disposition",
18875             "description": ""
18876           },
18877           {
18878             "group": "Body",
18879             "type": "String",
18880             "optional": true,
18881             "field": "secondDisposition",
18882             "description": ""
18883           },
18884           {
18885             "group": "Body",
18886             "type": "String",
18887             "optional": true,
18888             "field": "thirdDisposition",
18889             "description": ""
18890           },
18891           {
18892             "group": "Body",
18893             "type": "String",
18894             "optional": true,
18895             "field": "note",
18896             "description": ""
18897           },
18898           {
18899             "group": "Body",
18900             "type": "String",
18901             "optional": true,
18902             "field": "read1stAt",
18903             "description": ""
18904           },
18905           {
18906             "group": "Body",
18907             "type": "String",
18908             "optional": true,
18909             "field": "threadId",
18910             "description": ""
18911           },
18912           {
18913             "group": "Body",
18914             "type": "String",
18915             "optional": true,
18916             "field": "externalUrl",
18917             "description": ""
18918           },
18919           {
18920             "group": "Body",
18921             "type": "String",
18922             "optional": true,
18923             "field": "lastMsgAt",
18924             "description": ""
18925           },
18926           {
18927             "group": "Body",
18928             "type": "String",
18929             "allowedValues": [
18930               "\"in\"",
18931               "\"out\""
18932             ],
18933             "optional": false,
18934             "field": "lastMsgDirection",
18935             "description": ""
18936           },
18937           {
18938             "group": "Body",
18939             "type": "String",
18940             "optional": true,
18941             "field": "from",
18942             "description": ""
18943           },
18944           {
18945             "group": "Body",
18946             "type": "Boolean",
18947             "optional": true,
18948             "field": "autoreplyExecuted",
18949             "description": ""
18950           }
18951         ]
18952       }
18953     },
18954     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18955     "version": "0.0.0",
18956     "filename": "server/api/openchannelInteraction/index.js",
18957     "groupTitle": "Openchannel_Interactions"
18958   },
18959   {
18960     "type": "delete",
18961     "url": "/api/openchannel/interactions/{id}",
18962     "title": "Deletes a Interaction",
18963     "examples": [
18964       {
18965         "title": "Example usage:",
18966         "content": "curl https://{domain}/api/openchannel/interactions/{id} -v -u {name}:{password} -X DELETE",
18967         "type": "json"
18968       }
18969     ],
18970     "name": "DeleteInteractions",
18971     "group": "Openchannel_Interactions",
18972     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18973     "version": "0.0.0",
18974     "filename": "server/api/openchannelInteraction/index.js",
18975     "groupTitle": "Openchannel_Interactions"
18976   },
18977   {
18978     "type": "get",
18979     "url": "/api/openchannel/interactions/describe",
18980     "title": "Gets table info about Interactions",
18981     "examples": [
18982       {
18983         "title": "Example usage:",
18984         "content": "curl https://{domain}/api/openchannel/interactions/describe -v -u {name}:{password}",
18985         "type": "json"
18986       }
18987     ],
18988     "name": "DescribeInteractions",
18989     "group": "Openchannel_Interactions",
18990     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18991     "version": "0.0.0",
18992     "filename": "server/api/openchannelInteraction/index.js",
18993     "groupTitle": "Openchannel_Interactions"
18994   },
18995   {
18996     "type": "get",
18997     "url": "/api/openchannel/interactions",
18998     "title": "Gets a list of Interactions",
18999     "examples": [
19000       {
19001         "title": "Example usage:",
19002         "content": "curl https://{domain}/api/openchannel/interactions -v -u {name}:{password}",
19003         "type": "json"
19004       }
19005     ],
19006     "name": "GetInteractions",
19007     "group": "Openchannel_Interactions",
19008     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/openchannel/interactions?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/openchannel/interactions?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/openchannel/interactions?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/openchannel/interactions?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/openchannel/interactions?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
19009     "version": "0.0.0",
19010     "filename": "server/api/openchannelInteraction/index.js",
19011     "groupTitle": "Openchannel_Interactions"
19012   },
19013   {
19014     "type": "delete",
19015     "url": "/api/openchannel/interactions/{id}/tags",
19016     "title": "Removes tags from interaction",
19017     "examples": [
19018       {
19019         "title": "Example usage:",
19020         "content": "curl https://{domain}/api/openchannel/interactions/{id}/tags?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
19021         "type": "json"
19022       }
19023     ],
19024     "name": "RemoveTags",
19025     "group": "Openchannel_Interactions",
19026     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19027     "version": "0.0.0",
19028     "filename": "server/api/openchannelInteraction/index.js",
19029     "groupTitle": "Openchannel_Interactions"
19030   },
19031   {
19032     "type": "get",
19033     "url": "/api/openchannel/interactions/{id}",
19034     "title": "Gets a single Interaction",
19035     "examples": [
19036       {
19037         "title": "Example usage:",
19038         "content": "curl https://{domain}/api/openchannel/interactions/{id} -v -u {name}:{password}",
19039         "type": "json"
19040       }
19041     ],
19042     "name": "ShowInteractions",
19043     "group": "Openchannel_Interactions",
19044     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19045     "version": "0.0.0",
19046     "filename": "server/api/openchannelInteraction/index.js",
19047     "groupTitle": "Openchannel_Interactions"
19048   },
19049   {
19050     "type": "post",
19051     "url": "/api/openchannel/interactions/{id}/messages",
19052     "title": "Creates new messages",
19053     "examples": [
19054       {
19055         "title": "Example usage:",
19056         "content": "curl https://{domain}/api/openchannel/interactions/{id}/messages -d '[{\"to\": \"+3901119886500\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
19057         "type": "json"
19058       }
19059     ],
19060     "name": "addMessage",
19061     "group": "Openchannel_Interactions",
19062     "parameter": {
19063       "fields": {
19064         "Body": [
19065           {
19066             "group": "Body",
19067             "type": "Text",
19068             "optional": false,
19069             "field": "body",
19070             "description": ""
19071           },
19072           {
19073             "group": "Body",
19074             "type": "Boolean",
19075             "optional": true,
19076             "field": "read",
19077             "description": ""
19078           },
19079           {
19080             "group": "Body",
19081             "type": "Boolean",
19082             "optional": true,
19083             "field": "secret",
19084             "description": ""
19085           },
19086           {
19087             "group": "Body",
19088             "type": "String",
19089             "allowedValues": [
19090               "\"in\"",
19091               "\"out\""
19092             ],
19093             "optional": false,
19094             "field": "direction",
19095             "description": ""
19096           },
19097           {
19098             "group": "Body",
19099             "type": "String",
19100             "optional": true,
19101             "field": "readAt",
19102             "description": ""
19103           },
19104           {
19105             "group": "Body",
19106             "type": "String",
19107             "optional": true,
19108             "field": "providerName",
19109             "description": ""
19110           },
19111           {
19112             "group": "Body",
19113             "type": "Text",
19114             "optional": true,
19115             "field": "providerResponse",
19116             "description": ""
19117           }
19118         ]
19119       }
19120     },
19121     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19122     "version": "0.0.0",
19123     "filename": "server/api/openchannelInteraction/index.js",
19124     "groupTitle": "Openchannel_Interactions"
19125   },
19126   {
19127     "type": "get",
19128     "url": "/api/openchannel/interactions/{id}/download",
19129     "title": "Gets interaction",
19130     "examples": [
19131       {
19132         "title": "Example usage:",
19133         "content": "curl https://{domain}/api/openchannel/interactions/{id}/download -v -u {name}:{password} -X GET",
19134         "type": "json"
19135       }
19136     ],
19137     "name": "download",
19138     "group": "Openchannel_Interactions",
19139     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19140     "version": "0.0.0",
19141     "filename": "server/api/openchannelInteraction/index.js",
19142     "groupTitle": "Openchannel_Interactions"
19143   },
19144   {
19145     "type": "get",
19146     "url": "/api/openchannel/interactions/{id}/messages",
19147     "title": "Gets interaction messages",
19148     "examples": [
19149       {
19150         "title": "Example usage:",
19151         "content": "curl https://{domain}/api/openchannel/interactions/{id}/messages -v -u {name}:{password} -X GET",
19152         "type": "json"
19153       }
19154     ],
19155     "name": "getMessages",
19156     "group": "Openchannel_Interactions",
19157     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19158     "version": "0.0.0",
19159     "filename": "server/api/openchannelInteraction/index.js",
19160     "groupTitle": "Openchannel_Interactions"
19161   },
19162   {
19163     "type": "put",
19164     "url": "/api/openchannel/interactions/{id}",
19165     "title": "Update an existing Interaction",
19166     "examples": [
19167       {
19168         "title": "Example usage:",
19169         "content": "curl https://{domain}/api/openchannel/interactions/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
19170         "type": "json"
19171       }
19172     ],
19173     "name": "updateInteractions",
19174     "group": "Openchannel_Interactions",
19175     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19176     "version": "0.0.0",
19177     "filename": "server/api/openchannelInteraction/index.js",
19178     "groupTitle": "Openchannel_Interactions"
19179   },
19180   {
19181     "type": "post",
19182     "url": "/api/openchannel/messages",
19183     "title": "Creates a new Message",
19184     "examples": [
19185       {
19186         "title": "Example usage:",
19187         "content": "curl https://{domain}/api/openchannel/messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
19188         "type": "json"
19189       }
19190     ],
19191     "name": "CreateMessages",
19192     "group": "Openchannel_Messages",
19193     "parameter": {
19194       "fields": {
19195         "Body": [
19196           {
19197             "group": "Body",
19198             "type": "Text",
19199             "optional": false,
19200             "field": "body",
19201             "description": ""
19202           },
19203           {
19204             "group": "Body",
19205             "type": "Boolean",
19206             "optional": true,
19207             "field": "read",
19208             "description": ""
19209           },
19210           {
19211             "group": "Body",
19212             "type": "Boolean",
19213             "optional": true,
19214             "field": "secret",
19215             "description": ""
19216           },
19217           {
19218             "group": "Body",
19219             "type": "String",
19220             "allowedValues": [
19221               "\"in\"",
19222               "\"out\""
19223             ],
19224             "optional": false,
19225             "field": "direction",
19226             "description": ""
19227           },
19228           {
19229             "group": "Body",
19230             "type": "String",
19231             "optional": true,
19232             "field": "readAt",
19233             "description": ""
19234           },
19235           {
19236             "group": "Body",
19237             "type": "String",
19238             "optional": true,
19239             "field": "providerName",
19240             "description": ""
19241           },
19242           {
19243             "group": "Body",
19244             "type": "Text",
19245             "optional": true,
19246             "field": "providerResponse",
19247             "description": ""
19248           }
19249         ]
19250       }
19251     },
19252     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19253     "version": "0.0.0",
19254     "filename": "server/api/openchannelMessage/index.js",
19255     "groupTitle": "Openchannel_Messages"
19256   },
19257   {
19258     "type": "delete",
19259     "url": "/api/openchannel/messages/{id}",
19260     "title": "Deletes a Message",
19261     "examples": [
19262       {
19263         "title": "Example usage:",
19264         "content": "curl https://{domain}/api/openchannel/messages/{id} -v -u {name}:{password} -X DELETE",
19265         "type": "json"
19266       }
19267     ],
19268     "name": "DeleteMessages",
19269     "group": "Openchannel_Messages",
19270     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19271     "version": "0.0.0",
19272     "filename": "server/api/openchannelMessage/index.js",
19273     "groupTitle": "Openchannel_Messages"
19274   },
19275   {
19276     "type": "get",
19277     "url": "/api/openchannel/messages/describe",
19278     "title": "Gets table info about Messages",
19279     "examples": [
19280       {
19281         "title": "Example usage:",
19282         "content": "curl https://{domain}/api/openchannel/messages/describe -v -u {name}:{password}",
19283         "type": "json"
19284       }
19285     ],
19286     "name": "DescribeMessages",
19287     "group": "Openchannel_Messages",
19288     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19289     "version": "0.0.0",
19290     "filename": "server/api/openchannelMessage/index.js",
19291     "groupTitle": "Openchannel_Messages"
19292   },
19293   {
19294     "type": "get",
19295     "url": "/api/openchannel/messages",
19296     "title": "Gets a list of Messages",
19297     "examples": [
19298       {
19299         "title": "Example usage:",
19300         "content": "curl https://{domain}/api/openchannel/messages -v -u {name}:{password}",
19301         "type": "json"
19302       }
19303     ],
19304     "name": "GetMessages",
19305     "group": "Openchannel_Messages",
19306     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/openchannel/messages?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/openchannel/messages?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/openchannel/messages?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/openchannel/messages?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/openchannel/messages?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
19307     "version": "0.0.0",
19308     "filename": "server/api/openchannelMessage/index.js",
19309     "groupTitle": "Openchannel_Messages"
19310   },
19311   {
19312     "type": "get",
19313     "url": "/api/openchannel/messages/{id}",
19314     "title": "Gets a single Message",
19315     "examples": [
19316       {
19317         "title": "Example usage:",
19318         "content": "curl https://{domain}/api/openchannel/messages/{id} -v -u {name}:{password}",
19319         "type": "json"
19320       }
19321     ],
19322     "name": "ShowMessages",
19323     "group": "Openchannel_Messages",
19324     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19325     "version": "0.0.0",
19326     "filename": "server/api/openchannelMessage/index.js",
19327     "groupTitle": "Openchannel_Messages"
19328   },
19329   {
19330     "type": "put",
19331     "url": "/api/openchannel/messages/{id}/accept",
19332     "title": "Accepts message",
19333     "examples": [
19334       {
19335         "title": "Example usage:",
19336         "content": "curl https://{domain}/api/openchannel/messages/{id}/accept \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
19337         "type": "json"
19338       }
19339     ],
19340     "name": "acceptMessage",
19341     "group": "Openchannel_Messages",
19342     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19343     "version": "0.0.0",
19344     "filename": "server/api/openchannelMessage/index.js",
19345     "groupTitle": "Openchannel_Messages"
19346   },
19347   {
19348     "type": "put",
19349     "url": "/api/openchannel/messages/{id}/reject",
19350     "title": "Rejects message",
19351     "examples": [
19352       {
19353         "title": "Example usage:",
19354         "content": "curl https://{domain}/api/openchannel/messages/{id}/reject \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
19355         "type": "json"
19356       }
19357     ],
19358     "name": "rejectMessage",
19359     "group": "Openchannel_Messages",
19360     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19361     "version": "0.0.0",
19362     "filename": "server/api/openchannelMessage/index.js",
19363     "groupTitle": "Openchannel_Messages"
19364   },
19365   {
19366     "type": "put",
19367     "url": "/api/openchannel/messages/{id}",
19368     "title": "Update an existing Message",
19369     "examples": [
19370       {
19371         "title": "Example usage:",
19372         "content": "curl https://{domain}/api/openchannel/messages/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
19373         "type": "json"
19374       }
19375     ],
19376     "name": "updateMessages",
19377     "group": "Openchannel_Messages",
19378     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19379     "version": "0.0.0",
19380     "filename": "server/api/openchannelMessage/index.js",
19381     "groupTitle": "Openchannel_Messages"
19382   },
19383   {
19384     "type": "post",
19385     "url": "/api/openchannel/reports/queue",
19386     "title": "Creates a new Openchannel Queue Report",
19387     "examples": [
19388       {
19389         "title": "Example usage:",
19390         "content": "curl https://{domain}/api/openchannel/reports/queue -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
19391         "type": "json"
19392       }
19393     ],
19394     "name": "CreateOpenchannel_Queue_Reports",
19395     "group": "Openchannel_Queue_Reports",
19396     "parameter": {
19397       "fields": {
19398         "Body": [
19399           {
19400             "group": "Body",
19401             "type": "String",
19402             "optional": false,
19403             "field": "uniqueid",
19404             "description": ""
19405           },
19406           {
19407             "group": "Body",
19408             "type": "String",
19409             "optional": true,
19410             "field": "from",
19411             "description": ""
19412           },
19413           {
19414             "group": "Body",
19415             "type": "String",
19416             "optional": true,
19417             "field": "joinAt",
19418             "description": ""
19419           },
19420           {
19421             "group": "Body",
19422             "type": "String",
19423             "optional": true,
19424             "field": "leaveAt",
19425             "description": ""
19426           },
19427           {
19428             "group": "Body",
19429             "type": "String",
19430             "optional": true,
19431             "field": "acceptAt",
19432             "description": ""
19433           },
19434           {
19435             "group": "Body",
19436             "type": "String",
19437             "optional": true,
19438             "field": "exitAt",
19439             "description": ""
19440           },
19441           {
19442             "group": "Body",
19443             "type": "String",
19444             "optional": true,
19445             "field": "reason",
19446             "description": ""
19447           }
19448         ]
19449       }
19450     },
19451     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19452     "version": "0.0.0",
19453     "filename": "server/api/openchannelQueueReport/index.js",
19454     "groupTitle": "Openchannel_Queue_Reports"
19455   },
19456   {
19457     "type": "delete",
19458     "url": "/api/openchannel/reports/queue/{id}",
19459     "title": "Deletes a Openchannel Queue Report",
19460     "examples": [
19461       {
19462         "title": "Example usage:",
19463         "content": "curl https://{domain}/api/openchannel/reports/queue/{id} -v -u {name}:{password} -X DELETE",
19464         "type": "json"
19465       }
19466     ],
19467     "name": "DeleteOpenchannel_Queue_Reports",
19468     "group": "Openchannel_Queue_Reports",
19469     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19470     "version": "0.0.0",
19471     "filename": "server/api/openchannelQueueReport/index.js",
19472     "groupTitle": "Openchannel_Queue_Reports"
19473   },
19474   {
19475     "type": "get",
19476     "url": "/api/openchannel/reports/queue/describe",
19477     "title": "Gets table info about Openchannel Queue Reports",
19478     "examples": [
19479       {
19480         "title": "Example usage:",
19481         "content": "curl https://{domain}/api/openchannel/reports/queue/describe -v -u {name}:{password}",
19482         "type": "json"
19483       }
19484     ],
19485     "name": "DescribeOpenchannel_Queue_Reports",
19486     "group": "Openchannel_Queue_Reports",
19487     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19488     "version": "0.0.0",
19489     "filename": "server/api/openchannelQueueReport/index.js",
19490     "groupTitle": "Openchannel_Queue_Reports"
19491   },
19492   {
19493     "type": "get",
19494     "url": "/api/openchannel/reports/queue",
19495     "title": "Gets a list of Openchannel Queue Reports",
19496     "examples": [
19497       {
19498         "title": "Example usage:",
19499         "content": "curl https://{domain}/api/openchannel/reports/queue -v -u {name}:{password}",
19500         "type": "json"
19501       }
19502     ],
19503     "name": "GetOpenchannel_Queue_Reports",
19504     "group": "Openchannel_Queue_Reports",
19505     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/openchannel/reports/queue?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/openchannel/reports/queue?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/openchannel/reports/queue?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/openchannel/reports/queue?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/openchannel/reports/queue?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
19506     "version": "0.0.0",
19507     "filename": "server/api/openchannelQueueReport/index.js",
19508     "groupTitle": "Openchannel_Queue_Reports"
19509   },
19510   {
19511     "type": "get",
19512     "url": "/api/openchannel/reports/queue/{id}",
19513     "title": "Gets a single Openchannel Queue Report",
19514     "examples": [
19515       {
19516         "title": "Example usage:",
19517         "content": "curl https://{domain}/api/openchannel/reports/queue/{id} -v -u {name}:{password}",
19518         "type": "json"
19519       }
19520     ],
19521     "name": "ShowOpenchannel_Queue_Reports",
19522     "group": "Openchannel_Queue_Reports",
19523     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19524     "version": "0.0.0",
19525     "filename": "server/api/openchannelQueueReport/index.js",
19526     "groupTitle": "Openchannel_Queue_Reports"
19527   },
19528   {
19529     "type": "put",
19530     "url": "/api/openchannel/reports/queue/{id}",
19531     "title": "Update an existing Openchannel Queue Report",
19532     "examples": [
19533       {
19534         "title": "Example usage:",
19535         "content": "curl https://{domain}/api/openchannel/reports/queue/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
19536         "type": "json"
19537       }
19538     ],
19539     "name": "updateOpenchannel_Queue_Reports",
19540     "group": "Openchannel_Queue_Reports",
19541     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19542     "version": "0.0.0",
19543     "filename": "server/api/openchannelQueueReport/index.js",
19544     "groupTitle": "Openchannel_Queue_Reports"
19545   },
19546   {
19547     "type": "post",
19548     "url": "/api/openchannel/queues/{id}/users",
19549     "title": "Add agents to a queue",
19550     "examples": [
19551       {
19552         "title": "Example usage:",
19553         "content": "curl https://{domain}/api/openchannel/queues/{id}/users -d '{\"ids\": [1,2], \"penalty\": 2}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
19554         "type": "json"
19555       }
19556     ],
19557     "name": "AddAgents",
19558     "group": "Openchannel_Queues",
19559     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19560     "version": "0.0.0",
19561     "filename": "server/api/openchannelQueue/index.js",
19562     "groupTitle": "Openchannel_Queues"
19563   },
19564   {
19565     "type": "post",
19566     "url": "/api/openchannel/queues/{id}/teams",
19567     "title": "Add teams to a queue",
19568     "examples": [
19569       {
19570         "title": "Example usage:",
19571         "content": "curl https://{domain}/api/openchannel/queues/{id}/teams -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
19572         "type": "json"
19573       }
19574     ],
19575     "name": "AddTeams",
19576     "group": "Openchannel_Queues",
19577     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19578     "version": "0.0.0",
19579     "filename": "server/api/openchannelQueue/index.js",
19580     "groupTitle": "Openchannel_Queues"
19581   },
19582   {
19583     "type": "post",
19584     "url": "/api/openchannel/queues",
19585     "title": "Creates a new Queue",
19586     "examples": [
19587       {
19588         "title": "Example usage:",
19589         "content": "curl https://{domain}/api/openchannel/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
19590         "type": "json"
19591       }
19592     ],
19593     "name": "CreateQueues",
19594     "group": "Openchannel_Queues",
19595     "parameter": {
19596       "fields": {
19597         "Body": [
19598           {
19599             "group": "Body",
19600             "type": "String",
19601             "optional": true,
19602             "field": "name",
19603             "description": ""
19604           },
19605           {
19606             "group": "Body",
19607             "type": "String",
19608             "optional": true,
19609             "field": "description",
19610             "description": ""
19611           },
19612           {
19613             "group": "Body",
19614             "type": "Integer",
19615             "optional": true,
19616             "field": "timeout",
19617             "description": ""
19618           },
19619           {
19620             "group": "Body",
19621             "type": "String",
19622             "allowedValues": [
19623               "\"rrmemory\"",
19624               "\"beepall\"",
19625               "\"roundrobin\""
19626             ],
19627             "optional": true,
19628             "field": "strategy",
19629             "description": ""
19630           }
19631         ]
19632       }
19633     },
19634     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19635     "version": "0.0.0",
19636     "filename": "server/api/openchannelQueue/index.js",
19637     "groupTitle": "Openchannel_Queues"
19638   },
19639   {
19640     "type": "delete",
19641     "url": "/api/openchannel/queues/{id}",
19642     "title": "Deletes a Queue",
19643     "examples": [
19644       {
19645         "title": "Example usage:",
19646         "content": "curl https://{domain}/api/openchannel/queues/{id} -v -u {name}:{password} -X DELETE",
19647         "type": "json"
19648       }
19649     ],
19650     "name": "DeleteQueues",
19651     "group": "Openchannel_Queues",
19652     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19653     "version": "0.0.0",
19654     "filename": "server/api/openchannelQueue/index.js",
19655     "groupTitle": "Openchannel_Queues"
19656   },
19657   {
19658     "type": "get",
19659     "url": "/api/openchannel/queues/describe",
19660     "title": "Gets table info about Queues",
19661     "examples": [
19662       {
19663         "title": "Example usage:",
19664         "content": "curl https://{domain}/api/openchannel/queues/describe -v -u {name}:{password}",
19665         "type": "json"
19666       }
19667     ],
19668     "name": "DescribeQueues",
19669     "group": "Openchannel_Queues",
19670     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19671     "version": "0.0.0",
19672     "filename": "server/api/openchannelQueue/index.js",
19673     "groupTitle": "Openchannel_Queues"
19674   },
19675   {
19676     "type": "get",
19677     "url": "/api/openchannel/queues/{id}/users",
19678     "title": "Gets queue agents",
19679     "examples": [
19680       {
19681         "title": "Example usage:",
19682         "content": "curl https://{domain}/api/openchannel/queues/{id}/users -v -u {name}:{password} -X POST",
19683         "type": "json"
19684       }
19685     ],
19686     "name": "GetAgents",
19687     "group": "Openchannel_Queues",
19688     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19689     "version": "0.0.0",
19690     "filename": "server/api/openchannelQueue/index.js",
19691     "groupTitle": "Openchannel_Queues"
19692   },
19693   {
19694     "type": "get",
19695     "url": "/api/openchannel/queues/{id}/members",
19696     "title": "GetMembers",
19697     "examples": [
19698       {
19699         "title": "Example usage:",
19700         "content": "curl https://{domain}/api/openchannel/queues/{id}/members  -v -u {name}:{password}",
19701         "type": "json"
19702       }
19703     ],
19704     "name": "GetMembers",
19705     "group": "Openchannel_Queues",
19706     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19707     "version": "0.0.0",
19708     "filename": "server/api/openchannelQueue/index.js",
19709     "groupTitle": "Openchannel_Queues"
19710   },
19711   {
19712     "type": "get",
19713     "url": "/api/openchannel/queues",
19714     "title": "Gets a list of Queues",
19715     "examples": [
19716       {
19717         "title": "Example usage:",
19718         "content": "curl https://{domain}/api/openchannel/queues -v -u {name}:{password}",
19719         "type": "json"
19720       }
19721     ],
19722     "name": "GetQueues",
19723     "group": "Openchannel_Queues",
19724     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/openchannel/queues?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/openchannel/queues?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/openchannel/queues?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/openchannel/queues?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/openchannel/queues?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
19725     "version": "0.0.0",
19726     "filename": "server/api/openchannelQueue/index.js",
19727     "groupTitle": "Openchannel_Queues"
19728   },
19729   {
19730     "type": "get",
19731     "url": "/api/openchannel/queues/{id}/teams",
19732     "title": "Gets queues list",
19733     "examples": [
19734       {
19735         "title": "Example usage:",
19736         "content": "curl https://{domain}/api/openchannel/queues/{id}/teams -v -u {name}:{password}",
19737         "type": "json"
19738       }
19739     ],
19740     "name": "GetTeams",
19741     "group": "Openchannel_Queues",
19742     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19743     "version": "0.0.0",
19744     "filename": "server/api/openchannelQueue/index.js",
19745     "groupTitle": "Openchannel_Queues"
19746   },
19747   {
19748     "type": "delete",
19749     "url": "/api/openchannel/queues/{id}/users",
19750     "title": "Removes agents from a queue",
19751     "examples": [
19752       {
19753         "title": "Example usage:",
19754         "content": "curl https://{domain}/api/openchannel/queues/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
19755         "type": "json"
19756       }
19757     ],
19758     "name": "RemoveAgents",
19759     "group": "Openchannel_Queues",
19760     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19761     "version": "0.0.0",
19762     "filename": "server/api/openchannelQueue/index.js",
19763     "groupTitle": "Openchannel_Queues"
19764   },
19765   {
19766     "type": "get",
19767     "url": "/api/openchannel/queues/{id}",
19768     "title": "Gets a single Queue",
19769     "examples": [
19770       {
19771         "title": "Example usage:",
19772         "content": "curl https://{domain}/api/openchannel/queues/{id} -v -u {name}:{password}",
19773         "type": "json"
19774       }
19775     ],
19776     "name": "ShowQueues",
19777     "group": "Openchannel_Queues",
19778     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19779     "version": "0.0.0",
19780     "filename": "server/api/openchannelQueue/index.js",
19781     "groupTitle": "Openchannel_Queues"
19782   },
19783   {
19784     "type": "put",
19785     "url": "/api/openchannel/queues/{id}",
19786     "title": "Update an existing Queue",
19787     "examples": [
19788       {
19789         "title": "Example usage:",
19790         "content": "curl https://{domain}/api/openchannel/queues/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
19791         "type": "json"
19792       }
19793     ],
19794     "name": "updateQueues",
19795     "group": "Openchannel_Queues",
19796     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19797     "version": "0.0.0",
19798     "filename": "server/api/openchannelQueue/index.js",
19799     "groupTitle": "Openchannel_Queues"
19800   },
19801   {
19802     "type": "post",
19803     "url": "/api/openchannel/reports/transfer",
19804     "title": "Creates a new Openchannel Transfer Report",
19805     "examples": [
19806       {
19807         "title": "Example usage:",
19808         "content": "curl https://{domain}/api/openchannel/reports/transfer -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
19809         "type": "json"
19810       }
19811     ],
19812     "name": "CreateOpenchannel_Transfer_Reports",
19813     "group": "Openchannel_Transfer_Reports",
19814     "parameter": {
19815       "fields": {
19816         "Body": [
19817           {
19818             "group": "Body",
19819             "type": "String",
19820             "optional": false,
19821             "field": "uniqueid",
19822             "description": ""
19823           },
19824           {
19825             "group": "Body",
19826             "type": "String",
19827             "allowedValues": [
19828               "\"account\"",
19829               "\"agent\"",
19830               "\"queue\""
19831             ],
19832             "optional": false,
19833             "field": "type",
19834             "description": ""
19835           },
19836           {
19837             "group": "Body",
19838             "type": "String",
19839             "optional": false,
19840             "field": "transferredAt",
19841             "description": ""
19842           }
19843         ]
19844       }
19845     },
19846     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19847     "version": "0.0.0",
19848     "filename": "server/api/openchannelTransferReport/index.js",
19849     "groupTitle": "Openchannel_Transfer_Reports"
19850   },
19851   {
19852     "type": "delete",
19853     "url": "/api/openchannel/reports/transfer/{id}",
19854     "title": "Deletes a Openchannel Transfer Report",
19855     "examples": [
19856       {
19857         "title": "Example usage:",
19858         "content": "curl https://{domain}/api/openchannel/reports/transfer/{id} -v -u {name}:{password} -X DELETE",
19859         "type": "json"
19860       }
19861     ],
19862     "name": "DeleteOpenchannel_Transfer_Reports",
19863     "group": "Openchannel_Transfer_Reports",
19864     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19865     "version": "0.0.0",
19866     "filename": "server/api/openchannelTransferReport/index.js",
19867     "groupTitle": "Openchannel_Transfer_Reports"
19868   },
19869   {
19870     "type": "get",
19871     "url": "/api/openchannel/reports/transfer/describe",
19872     "title": "Gets table info about Openchannel Transfer Reports",
19873     "examples": [
19874       {
19875         "title": "Example usage:",
19876         "content": "curl https://{domain}/api/openchannel/reports/transfer/describe -v -u {name}:{password}",
19877         "type": "json"
19878       }
19879     ],
19880     "name": "DescribeOpenchannel_Transfer_Reports",
19881     "group": "Openchannel_Transfer_Reports",
19882     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19883     "version": "0.0.0",
19884     "filename": "server/api/openchannelTransferReport/index.js",
19885     "groupTitle": "Openchannel_Transfer_Reports"
19886   },
19887   {
19888     "type": "get",
19889     "url": "/api/openchannel/reports/transfer",
19890     "title": "Gets a list of Openchannel Transfer Reports",
19891     "examples": [
19892       {
19893         "title": "Example usage:",
19894         "content": "curl https://{domain}/api/openchannel/reports/transfer -v -u {name}:{password}",
19895         "type": "json"
19896       }
19897     ],
19898     "name": "GetOpenchannel_Transfer_Reports",
19899     "group": "Openchannel_Transfer_Reports",
19900     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/openchannel/reports/transfer?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/openchannel/reports/transfer?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/openchannel/reports/transfer?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/openchannel/reports/transfer?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/openchannel/reports/transfer?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
19901     "version": "0.0.0",
19902     "filename": "server/api/openchannelTransferReport/index.js",
19903     "groupTitle": "Openchannel_Transfer_Reports"
19904   },
19905   {
19906     "type": "get",
19907     "url": "/api/openchannel/reports/transfer/{id}",
19908     "title": "Gets a single Openchannel Transfer Report",
19909     "examples": [
19910       {
19911         "title": "Example usage:",
19912         "content": "curl https://{domain}/api/openchannel/reports/transfer/{id} -v -u {name}:{password}",
19913         "type": "json"
19914       }
19915     ],
19916     "name": "ShowOpenchannel_Transfer_Reports",
19917     "group": "Openchannel_Transfer_Reports",
19918     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19919     "version": "0.0.0",
19920     "filename": "server/api/openchannelTransferReport/index.js",
19921     "groupTitle": "Openchannel_Transfer_Reports"
19922   },
19923   {
19924     "type": "put",
19925     "url": "/api/openchannel/reports/transfer/{id}",
19926     "title": "Update an existing Openchannel Transfer Report",
19927     "examples": [
19928       {
19929         "title": "Example usage:",
19930         "content": "curl https://{domain}/api/openchannel/reports/transfer/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
19931         "type": "json"
19932       }
19933     ],
19934     "name": "updateOpenchannel_Transfer_Reports",
19935     "group": "Openchannel_Transfer_Reports",
19936     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19937     "version": "0.0.0",
19938     "filename": "server/api/openchannelTransferReport/index.js",
19939     "groupTitle": "Openchannel_Transfer_Reports"
19940   },
19941   {
19942     "type": "post",
19943     "url": "/api/pauses",
19944     "title": "Creates a new Pause",
19945     "examples": [
19946       {
19947         "title": "Example usage:",
19948         "content": "curl https://{domain}/api/pauses -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
19949         "type": "json"
19950       }
19951     ],
19952     "name": "CreatePauses",
19953     "group": "Pauses",
19954     "parameter": {
19955       "fields": {
19956         "Body": [
19957           {
19958             "group": "Body",
19959             "type": "String",
19960             "optional": false,
19961             "field": "name",
19962             "description": ""
19963           },
19964           {
19965             "group": "Body",
19966             "type": "String",
19967             "optional": true,
19968             "field": "description",
19969             "description": ""
19970           }
19971         ]
19972       }
19973     },
19974     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19975     "version": "0.0.0",
19976     "filename": "server/api/pause/index.js",
19977     "groupTitle": "Pauses"
19978   },
19979   {
19980     "type": "delete",
19981     "url": "/api/pauses/{id}",
19982     "title": "Deletes a Pause",
19983     "examples": [
19984       {
19985         "title": "Example usage:",
19986         "content": "curl https://{domain}/api/pauses/{id} -v -u {name}:{password} -X DELETE",
19987         "type": "json"
19988       }
19989     ],
19990     "name": "DeletePauses",
19991     "group": "Pauses",
19992     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19993     "version": "0.0.0",
19994     "filename": "server/api/pause/index.js",
19995     "groupTitle": "Pauses"
19996   },
19997   {
19998     "type": "get",
19999     "url": "/api/pauses",
20000     "title": "Gets a list of Pauses",
20001     "examples": [
20002       {
20003         "title": "Example usage:",
20004         "content": "curl https://{domain}/api/pauses -v -u {name}:{password}",
20005         "type": "json"
20006       }
20007     ],
20008     "name": "GetPauses",
20009     "group": "Pauses",
20010     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/pauses?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/pauses?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/pauses?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/pauses?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/pauses?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
20011     "version": "0.0.0",
20012     "filename": "server/api/pause/index.js",
20013     "groupTitle": "Pauses"
20014   },
20015   {
20016     "type": "get",
20017     "url": "/api/pauses/{id}",
20018     "title": "Gets a single Pause",
20019     "examples": [
20020       {
20021         "title": "Example usage:",
20022         "content": "curl https://{domain}/api/pauses/{id} -v -u {name}:{password}",
20023         "type": "json"
20024       }
20025     ],
20026     "name": "ShowPauses",
20027     "group": "Pauses",
20028     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20029     "version": "0.0.0",
20030     "filename": "server/api/pause/index.js",
20031     "groupTitle": "Pauses"
20032   },
20033   {
20034     "type": "put",
20035     "url": "/api/pauses/{id}",
20036     "title": "Update an existing Pause",
20037     "examples": [
20038       {
20039         "title": "Example usage:",
20040         "content": "curl https://{domain}/api/pauses/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
20041         "type": "json"
20042       }
20043     ],
20044     "name": "updatePauses",
20045     "group": "Pauses",
20046     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20047     "version": "0.0.0",
20048     "filename": "server/api/pause/index.js",
20049     "groupTitle": "Pauses"
20050   },
20051   {
20052     "type": "get",
20053     "url": "/api/plugins",
20054     "title": "Gets a list of Plugins",
20055     "examples": [
20056       {
20057         "title": "Example usage:",
20058         "content": "curl https://{domain}/api/plugins -v -u {name}:{password}",
20059         "type": "json"
20060       }
20061     ],
20062     "name": "GetPlugins",
20063     "group": "Plugins",
20064     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/plugins?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/plugins?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/plugins?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/plugins?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/plugins?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
20065     "version": "0.0.0",
20066     "filename": "server/api/plugin/index.js",
20067     "groupTitle": "Plugins"
20068   },
20069   {
20070     "type": "get",
20071     "url": "/api/plugins/{id}",
20072     "title": "Gets a single Plugin",
20073     "examples": [
20074       {
20075         "title": "Example usage:",
20076         "content": "curl https://{domain}/api/plugins/{id} -v -u {name}:{password}",
20077         "type": "json"
20078       }
20079     ],
20080     "name": "ShowPlugins",
20081     "group": "Plugins",
20082     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20083     "version": "0.0.0",
20084     "filename": "server/api/plugin/index.js",
20085     "groupTitle": "Plugins"
20086   },
20087   {
20088     "type": "delete",
20089     "url": "/api/plugins/{id}",
20090     "title": "Delete a plugin",
20091     "examples": [
20092       {
20093         "title": "Example usage:",
20094         "content": "curl https://{domain}/api/plugins/{id} -v -u {name}:{password} -X DELETE",
20095         "type": "json"
20096       }
20097     ],
20098     "name": "destroyPlugin",
20099     "group": "Plugins",
20100     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20101     "version": "0.0.0",
20102     "filename": "server/api/plugin/index.js",
20103     "groupTitle": "Plugins"
20104   },
20105   {
20106     "type": "get",
20107     "url": "/api/plugins/{id}/download",
20108     "title": "Download plugin source code",
20109     "examples": [
20110       {
20111         "title": "Example usage:",
20112         "content": "curl https://{domain}/api/plugins/{id}/download -v -u {name}:{password} -X GET",
20113         "type": "json"
20114       }
20115     ],
20116     "name": "download",
20117     "group": "Plugins",
20118     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20119     "version": "0.0.0",
20120     "filename": "server/api/plugin/index.js",
20121     "groupTitle": "Plugins"
20122   },
20123   {
20124     "type": "put",
20125     "url": "/api/plugins/{id}",
20126     "title": "Update an existing plugin",
20127     "examples": [
20128       {
20129         "title": "Example usage:",
20130         "content": "curl https://{domain}/api/plugins/{id} -v -u {name}:{password} -X PUT",
20131         "type": "json"
20132       }
20133     ],
20134     "name": "updatePlugin",
20135     "group": "Plugins",
20136     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20137     "version": "0.0.0",
20138     "filename": "server/api/plugin/index.js",
20139     "groupTitle": "Plugins"
20140   },
20141   {
20142     "type": "post",
20143     "url": "/api/plugins",
20144     "title": "Upload new plugin",
20145     "examples": [
20146       {
20147         "title": "Example usage:",
20148         "content": "curl https://{domain}/api/plugins -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
20149         "type": "json"
20150       }
20151     ],
20152     "name": "uploadPlugin",
20153     "group": "Plugins",
20154     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20155     "version": "0.0.0",
20156     "filename": "server/api/plugin/index.js",
20157     "groupTitle": "Plugins"
20158   },
20159   {
20160     "type": "post",
20161     "url": "/api/plugins/webhook?hostname={host}&port={port}&encoding={encoding}&json={json}&path={path}",
20162     "title": "Redirect a plugin request to the specified path",
20163     "examples": [
20164       {
20165         "title": "Example usage:",
20166         "content": "curl https://{domain}/api/plugins/webhook?port={port}&path={path} -H 'Content-Type: application/json' -X POST",
20167         "type": "json"
20168       }
20169     ],
20170     "name": "webhookPlugin",
20171     "group": "Plugins",
20172     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20173     "version": "0.0.0",
20174     "filename": "server/api/plugin/index.js",
20175     "groupTitle": "Plugins"
20176   },
20177   {
20178     "type": "get",
20179     "url": "/api/plugins/webhook?hostname={host}&port={port}&encoding={encoding}&json={json}&path={path}",
20180     "title": "Redirect a plugin request to the specified path",
20181     "examples": [
20182       {
20183         "title": "Example usage:",
20184         "content": "curl https://{domain}/api/plugins/webhook?port={port}&path={path} -v -u {name}:{password} -X GET",
20185         "type": "json"
20186       }
20187     ],
20188     "name": "webhookPlugin",
20189     "group": "Plugins",
20190     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20191     "version": "0.0.0",
20192     "filename": "server/api/plugin/index.js",
20193     "groupTitle": "Plugins"
20194   },
20195   {
20196     "type": "delete",
20197     "url": "/api/pm2/{id}",
20198     "title": "Deletes an existing process",
20199     "examples": [
20200       {
20201         "title": "Example usage:",
20202         "content": "curl https://{domain}/api/pm2/{id} -v -u {name}:{password} -X DELETE",
20203         "type": "json"
20204       }
20205     ],
20206     "name": "DeletePm2Process",
20207     "group": "Pm2",
20208     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20209     "version": "0.0.0",
20210     "filename": "server/api/pm2/index.js",
20211     "groupTitle": "Pm2"
20212   },
20213   {
20214     "type": "get",
20215     "url": "/api/pm2/{id}",
20216     "title": "Gets a single pm2 process",
20217     "examples": [
20218       {
20219         "title": "Example usage:",
20220         "content": "curl https://{domain}/api/pm2/{id} -v -u {name}:{password}",
20221         "type": "json"
20222       }
20223     ],
20224     "name": "GetPm2Process",
20225     "group": "Pm2",
20226     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20227     "version": "0.0.0",
20228     "filename": "server/api/pm2/index.js",
20229     "groupTitle": "Pm2"
20230   },
20231   {
20232     "type": "get",
20233     "url": "/api/pm2",
20234     "title": "Gets pm2 processes",
20235     "examples": [
20236       {
20237         "title": "Example usage:",
20238         "content": "curl https://{domain}/api/pm2 -v -u {name}:{password}",
20239         "type": "json"
20240       }
20241     ],
20242     "name": "GetPm2Processes",
20243     "group": "Pm2",
20244     "description": "<p>Motion returns the pm2 processes list.</p>",
20245     "version": "0.0.0",
20246     "filename": "server/api/pm2/index.js",
20247     "groupTitle": "Pm2"
20248   },
20249   {
20250     "type": "post",
20251     "url": "/api/pm2",
20252     "title": "Start a single pm2 process",
20253     "examples": [
20254       {
20255         "title": "Example usage:",
20256         "content": "curl https://{domain}/api/pm2 -d '{\"name\": \"process_name\", \"script\": \"/index.js\"}'\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
20257         "type": "json"
20258       }
20259     ],
20260     "name": "StartPm2Process",
20261     "group": "Pm2",
20262     "parameter": {
20263       "fields": {
20264         "Body": [
20265           {
20266             "group": "Body",
20267             "type": "String",
20268             "optional": false,
20269             "field": "name",
20270             "description": ""
20271           },
20272           {
20273             "group": "Body",
20274             "type": "String",
20275             "optional": false,
20276             "field": "script",
20277             "description": ""
20278           }
20279         ]
20280       }
20281     },
20282     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20283     "version": "0.0.0",
20284     "filename": "server/api/pm2/index.js",
20285     "groupTitle": "Pm2"
20286   },
20287   {
20288     "type": "put",
20289     "url": "/api/pm2/{id}",
20290     "title": "Update an existing process",
20291     "examples": [
20292       {
20293         "title": "Example usage:",
20294         "content": "curl https://{domain}/api/pm2/{id} -d '{\"status\": \"online\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
20295         "type": "json"
20296       }
20297     ],
20298     "name": "UpdatePm2Process",
20299     "group": "Pm2",
20300     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20301     "version": "0.0.0",
20302     "filename": "server/api/pm2/index.js",
20303     "groupTitle": "Pm2"
20304   },
20305   {
20306     "type": "get",
20307     "url": "/api/rpc/campaigns/",
20308     "title": "Gets a list of campaigns",
20309     "examples": [
20310       {
20311         "title": "Example usage:",
20312         "content": "curl https://{domain}/api/rpc/campaigns -v -u {name}:{password}",
20313         "type": "json"
20314       }
20315     ],
20316     "name": "Campaigns",
20317     "group": "RPC_Realtime",
20318     "description": "<p>Motion will return a list of realtime campaigns parameters.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20319     "version": "0.0.0",
20320     "filename": "server/api/rpc/index.js",
20321     "groupTitle": "RPC_Realtime"
20322   },
20323   {
20324     "type": "get",
20325     "url": "/api/rpc/fax/accounts",
20326     "title": "Gets a list of FaxAccounts",
20327     "examples": [
20328       {
20329         "title": "Example usage:",
20330         "content": "curl https://{domain}/api/rpc/fax/accounts -v -u {name}:{password}",
20331         "type": "json"
20332       }
20333     ],
20334     "name": "FaxAccounts",
20335     "group": "RPC_Realtime",
20336     "description": "<p>Motion will return a list of realtime fax account parameters.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20337     "version": "0.0.0",
20338     "filename": "server/api/rpc/index.js",
20339     "groupTitle": "RPC_Realtime"
20340   },
20341   {
20342     "type": "put",
20343     "url": "/api/rpc/agents/:id/capacity",
20344     "title": "Sets agent capacity",
20345     "examples": [
20346       {
20347         "title": "Example usage:",
20348         "content": "curl https://{domain}/api/rpc/agents/:id/capacity -v -u {name}:{password}",
20349         "type": "json"
20350       }
20351     ],
20352     "name": "RTAgentCapacity",
20353     "group": "RPC_Realtime",
20354     "description": "<p>Motion will return the current agent capacity.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20355     "version": "0.0.0",
20356     "filename": "server/api/rpc/index.js",
20357     "groupTitle": "RPC_Realtime"
20358   },
20359   {
20360     "type": "get",
20361     "url": "/api/rpc/agents",
20362     "title": "Gets a list of RTAgents",
20363     "examples": [
20364       {
20365         "title": "Example usage:",
20366         "content": "curl https://{domain}/api/rpc/agents -v -u {name}:{password}",
20367         "type": "json"
20368       }
20369     ],
20370     "name": "RTAgents",
20371     "group": "RPC_Realtime",
20372     "description": "<p>Motion will return a list of realtime agents parameters.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20373     "version": "0.0.0",
20374     "filename": "server/api/rpc/index.js",
20375     "groupTitle": "RPC_Realtime"
20376   },
20377   {
20378     "type": "get",
20379     "url": "/api/rpc/chat/queues",
20380     "title": "Gets a list of RTChatQueues",
20381     "examples": [
20382       {
20383         "title": "Example usage:",
20384         "content": "curl https://{domain}/api/rpc/chat/queues -v -u {name}:{password}",
20385         "type": "json"
20386       }
20387     ],
20388     "name": "RTChatQueues",
20389     "group": "RPC_Realtime",
20390     "description": "<p>Motion will return a list of realtime chat queues parameters.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20391     "version": "0.0.0",
20392     "filename": "server/api/rpc/index.js",
20393     "groupTitle": "RPC_Realtime"
20394   },
20395   {
20396     "type": "get",
20397     "url": "/api/rpc/fax/queues",
20398     "title": "Gets a list of RTFaxQueues",
20399     "examples": [
20400       {
20401         "title": "Example usage:",
20402         "content": "curl https://{domain}/api/rpc/fax/queues -v -u {name}:{password}",
20403         "type": "json"
20404       }
20405     ],
20406     "name": "RTFaxQueues",
20407     "group": "RPC_Realtime",
20408     "description": "<p>Motion will return a list of realtime fax queues parameters.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20409     "version": "0.0.0",
20410     "filename": "server/api/rpc/index.js",
20411     "groupTitle": "RPC_Realtime"
20412   },
20413   {
20414     "type": "get",
20415     "url": "/api/rpc/mail/accounts",
20416     "title": "Gets a list of RTMailAccounts",
20417     "examples": [
20418       {
20419         "title": "Example usage:",
20420         "content": "curl https://{domain}/api/rpc/mail/accounts -v -u {name}:{password}",
20421         "type": "json"
20422       }
20423     ],
20424     "name": "RTMailAccounts",
20425     "group": "RPC_Realtime",
20426     "description": "<p>Motion will return a list of realtime mail account parameters.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20427     "version": "0.0.0",
20428     "filename": "server/api/rpc/index.js",
20429     "groupTitle": "RPC_Realtime"
20430   },
20431   {
20432     "type": "get",
20433     "url": "/api/rpc/mail/queues",
20434     "title": "Gets a list of RTMailQueues",
20435     "examples": [
20436       {
20437         "title": "Example usage:",
20438         "content": "curl https://{domain}/api/rpc/mail/queues -v -u {name}:{password}",
20439         "type": "json"
20440       }
20441     ],
20442     "name": "RTMailQueues",
20443     "group": "RPC_Realtime",
20444     "description": "<p>Motion will return a list of realtime mail queues parameters.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20445     "version": "0.0.0",
20446     "filename": "server/api/rpc/index.js",
20447     "groupTitle": "RPC_Realtime"
20448   },
20449   {
20450     "type": "get",
20451     "url": "/api/rpc/openchannel/queues",
20452     "title": "Gets a list of RTOpenchannelQueues",
20453     "examples": [
20454       {
20455         "title": "Example usage:",
20456         "content": "curl https://{domain}/api/rpc/openchannel/queues -v -u {name}:{password}",
20457         "type": "json"
20458       }
20459     ],
20460     "name": "RTOpenchannelQueues",
20461     "group": "RPC_Realtime",
20462     "description": "<p>Motion will return a list of realtime openchannel queues parameters.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20463     "version": "0.0.0",
20464     "filename": "server/api/rpc/index.js",
20465     "groupTitle": "RPC_Realtime"
20466   },
20467   {
20468     "type": "get",
20469     "url": "/api/rpc/outbound/channels",
20470     "title": "Gets a list of RTOutboundChannels",
20471     "examples": [
20472       {
20473         "title": "Example usage:",
20474         "content": "curl https://{domain}/api/rpc/outbound/channels -v -u {name}:{password}",
20475         "type": "json"
20476       }
20477     ],
20478     "name": "RTOutboundChannels",
20479     "group": "RPC_Realtime",
20480     "description": "<p>Motion will return a list of realtime outbound channels.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20481     "version": "0.0.0",
20482     "filename": "server/api/rpc/index.js",
20483     "groupTitle": "RPC_Realtime"
20484   },
20485   {
20486     "type": "get",
20487     "url": "/api/rpc/sms/queues",
20488     "title": "Gets a list of RTSmsQueues",
20489     "examples": [
20490       {
20491         "title": "Example usage:",
20492         "content": "curl https://{domain}/api/rpc/sms/queues -v -u {name}:{password}",
20493         "type": "json"
20494       }
20495     ],
20496     "name": "RTSmsQueues",
20497     "group": "RPC_Realtime",
20498     "description": "<p>Motion will return a list of realtime sms queues parameters.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20499     "version": "0.0.0",
20500     "filename": "server/api/rpc/index.js",
20501     "groupTitle": "RPC_Realtime"
20502   },
20503   {
20504     "type": "get",
20505     "url": "/api/rpc/telephones",
20506     "title": "Gets a list of RTTelephones",
20507     "examples": [
20508       {
20509         "title": "Example usage:",
20510         "content": "curl https://{domain}/api/rpc/telephones -v -u {name}:{password}",
20511         "type": "json"
20512       }
20513     ],
20514     "name": "RTTelephones",
20515     "group": "RPC_Realtime",
20516     "description": "<p>Motion will return a list of telephones parameters.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20517     "version": "0.0.0",
20518     "filename": "server/api/rpc/index.js",
20519     "groupTitle": "RPC_Realtime"
20520   },
20521   {
20522     "type": "get",
20523     "url": "/api/rpc/trunks",
20524     "title": "Gets a list of RTTrunks",
20525     "examples": [
20526       {
20527         "title": "Example usage:",
20528         "content": "curl https://{domain}/api/rpc/trunks -v -u {name}:{password}",
20529         "type": "json"
20530       }
20531     ],
20532     "name": "RTTrunks",
20533     "group": "RPC_Realtime",
20534     "description": "<p>Motion will return a list of realtime trunks parameters.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20535     "version": "0.0.0",
20536     "filename": "server/api/rpc/index.js",
20537     "groupTitle": "RPC_Realtime"
20538   },
20539   {
20540     "type": "get",
20541     "url": "/api/rpc/voice/channels",
20542     "title": "Gets a list of RTVoiceChannelMixMonitor",
20543     "examples": [
20544       {
20545         "title": "Example usage:",
20546         "content": "curl https://{domain}/api/rpc/voice/channels/{uniqueid}/mixmonitor -v -u {name}:{password}",
20547         "type": "json"
20548       }
20549     ],
20550     "name": "RTVoiceChannelMixMonitor",
20551     "group": "RPC_Realtime",
20552     "description": "<p>Motion will return a list of realtime voice channel mixmonitor.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20553     "version": "0.0.0",
20554     "filename": "server/api/rpc/index.js",
20555     "groupTitle": "RPC_Realtime"
20556   },
20557   {
20558     "type": "get",
20559     "url": "/api/rpc/voice/channels",
20560     "title": "Gets a list of RTVoiceChannelStopMixMonitor",
20561     "examples": [
20562       {
20563         "title": "Example usage:",
20564         "content": "curl https://{domain}/api/rpc/voice/channels/{uniqueid}/stopmixmonitor -v -u {name}:{password}",
20565         "type": "json"
20566       }
20567     ],
20568     "name": "RTVoiceChannelStopMixMonitor",
20569     "group": "RPC_Realtime",
20570     "description": "<p>Motion will return a list of realtime voice channel stopmixmonitor.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20571     "version": "0.0.0",
20572     "filename": "server/api/rpc/index.js",
20573     "groupTitle": "RPC_Realtime"
20574   },
20575   {
20576     "type": "get",
20577     "url": "/api/rpc/voice/channels",
20578     "title": "Gets a list of RTVoiceChannels",
20579     "examples": [
20580       {
20581         "title": "Example usage:",
20582         "content": "curl https://{domain}/api/rpc/voice/channels -v -u {name}:{password}",
20583         "type": "json"
20584       }
20585     ],
20586     "name": "RTVoiceChannels",
20587     "group": "RPC_Realtime",
20588     "description": "<p>Motion will return a list of realtime voice channels.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20589     "version": "0.0.0",
20590     "filename": "server/api/rpc/index.js",
20591     "groupTitle": "RPC_Realtime"
20592   },
20593   {
20594     "type": "get",
20595     "url": "/api/rpc/voice/queues/channels/{uniqueid}",
20596     "title": "Gets a single RTVoiceQueueChannel",
20597     "examples": [
20598       {
20599         "title": "Example usage:",
20600         "content": "curl https://{domain}/api/rpc/voice/queues/channels/{uniqueid} -v -u {name}:{password}",
20601         "type": "json"
20602       }
20603     ],
20604     "name": "RTVoiceQueueChannel",
20605     "group": "RPC_Realtime",
20606     "description": "<p>Motion will return a specific realtime voice queue channel.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20607     "version": "0.0.0",
20608     "filename": "server/api/rpc/index.js",
20609     "groupTitle": "RPC_Realtime"
20610   },
20611   {
20612     "type": "get",
20613     "url": "/api/rpc/voice/queues/channels/{uniqueid}/hangup",
20614     "title": "Hangup a single RTVoiceQueueChannel",
20615     "examples": [
20616       {
20617         "title": "Example usage:",
20618         "content": "curl https://{domain}/api/rpc/voice/queues/channels/{uniqueid}/hangup -v -u {name}:{password}",
20619         "type": "json"
20620       }
20621     ],
20622     "name": "RTVoiceQueueChannelHangup",
20623     "group": "RPC_Realtime",
20624     "description": "<p>Motion will hangup a specific realtime voice queue channel.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20625     "version": "0.0.0",
20626     "filename": "server/api/rpc/index.js",
20627     "groupTitle": "RPC_Realtime"
20628   },
20629   {
20630     "type": "get",
20631     "url": "/api/rpc/voice/queues/channels/{uniqueid}/redirect/{exten}",
20632     "title": "Hangup a single RTVoiceQueueChannel",
20633     "examples": [
20634       {
20635         "title": "Example usage:",
20636         "content": "curl https://{domain}/api/rpc/voice/queues/channels/{uniqueid}/redirect/{exten} -v -u {name}:{password}",
20637         "type": "json"
20638       }
20639     ],
20640     "name": "RTVoiceQueueChannelRedirect",
20641     "group": "RPC_Realtime",
20642     "description": "<p>Motion will redirect a specific realtime voice queue channel to a specific extension.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20643     "version": "0.0.0",
20644     "filename": "server/api/rpc/index.js",
20645     "groupTitle": "RPC_Realtime"
20646   },
20647   {
20648     "type": "get",
20649     "url": "/api/rpc/voice/queues/preview/{id}",
20650     "title": "Gets a single preview contact",
20651     "examples": [
20652       {
20653         "title": "Example usage:",
20654         "content": "curl https://{domain}/api/rpc/voice/queues/preview/{id} -v -u {name}:{password}",
20655         "type": "json"
20656       }
20657     ],
20658     "name": "RTVoiceQueuePreview",
20659     "group": "RPC_Realtime",
20660     "description": "<p>Motion will return a specific preview contact.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20661     "version": "0.0.0",
20662     "filename": "server/api/rpc/index.js",
20663     "groupTitle": "RPC_Realtime"
20664   },
20665   {
20666     "type": "get",
20667     "url": "/api/rpc/voice/queues",
20668     "title": "Gets a list of RTVoiceQueues",
20669     "examples": [
20670       {
20671         "title": "Example usage:",
20672         "content": "curl https://{domain}/api/rpc/voice/queues -v -u {name}:{password}",
20673         "type": "json"
20674       }
20675     ],
20676     "name": "RTVoiceQueues",
20677     "group": "RPC_Realtime",
20678     "description": "<p>Motion will return a list of realtime voice queues parameters.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20679     "version": "0.0.0",
20680     "filename": "server/api/rpc/index.js",
20681     "groupTitle": "RPC_Realtime"
20682   },
20683   {
20684     "type": "get",
20685     "url": "/api/rpc/outbound",
20686     "title": "Gets a list of RTOutbound",
20687     "examples": [
20688       {
20689         "title": "Example usage:",
20690         "content": "curl https://{domain}/api/rpc/outbound -v -u {name}:{password}",
20691         "type": "json"
20692       }
20693     ],
20694     "name": "RTVoiceQueues",
20695     "group": "RPC_Realtime",
20696     "description": "<p>Motion will return a list of realtime outbound parameters.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20697     "version": "0.0.0",
20698     "filename": "server/api/rpc/index.js",
20699     "groupTitle": "RPC_Realtime"
20700   },
20701   {
20702     "type": "get",
20703     "url": "/api/rpc/voice/queues/channels",
20704     "title": "Gets a list of RTVoiceQueuesChannels",
20705     "examples": [
20706       {
20707         "title": "Example usage:",
20708         "content": "curl https://{domain}/api/rpc/voice/queues/channels -v -u {name}:{password}",
20709         "type": "json"
20710       }
20711     ],
20712     "name": "RTVoiceQueuesChannels",
20713     "group": "RPC_Realtime",
20714     "description": "<p>Motion will return a list of realtime voice queues channels.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20715     "version": "0.0.0",
20716     "filename": "server/api/rpc/index.js",
20717     "groupTitle": "RPC_Realtime"
20718   },
20719   {
20720     "type": "get",
20721     "url": "/api/rpc/chat/queues/{id}",
20722     "title": "Gets a single RTChatQueue",
20723     "examples": [
20724       {
20725         "title": "Example usage:",
20726         "content": "curl https://{domain}/api/rpc/chat/queues/{id} -v -u {name}:{password}",
20727         "type": "json"
20728       }
20729     ],
20730     "name": "ShowRTChatQueues",
20731     "group": "RPC_Realtime",
20732     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20733     "version": "0.0.0",
20734     "filename": "server/api/rpc/index.js",
20735     "groupTitle": "RPC_Realtime"
20736   },
20737   {
20738     "type": "get",
20739     "url": "/api/rpc/fax/queues/{id}",
20740     "title": "Gets a single RTFaxQueue",
20741     "examples": [
20742       {
20743         "title": "Example usage:",
20744         "content": "curl https://{domain}/api/rpc/fax/queues/{id} -v -u {name}:{password}",
20745         "type": "json"
20746       }
20747     ],
20748     "name": "ShowRTFaxQueues",
20749     "group": "RPC_Realtime",
20750     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20751     "version": "0.0.0",
20752     "filename": "server/api/rpc/index.js",
20753     "groupTitle": "RPC_Realtime"
20754   },
20755   {
20756     "type": "get",
20757     "url": "/api/rpc/mail/queues/{id}",
20758     "title": "Gets a single RTMailQueue",
20759     "examples": [
20760       {
20761         "title": "Example usage:",
20762         "content": "curl https://{domain}/api/rpc/mail/queues/{id} -v -u {name}:{password}",
20763         "type": "json"
20764       }
20765     ],
20766     "name": "ShowRTMailQueues",
20767     "group": "RPC_Realtime",
20768     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20769     "version": "0.0.0",
20770     "filename": "server/api/rpc/index.js",
20771     "groupTitle": "RPC_Realtime"
20772   },
20773   {
20774     "type": "get",
20775     "url": "/api/rpc/openchannel/queues/{id}",
20776     "title": "Gets a single RTOpenchannelQueue",
20777     "examples": [
20778       {
20779         "title": "Example usage:",
20780         "content": "curl https://{domain}/api/rpc/openchannel/queues/{id} -v -u {name}:{password}",
20781         "type": "json"
20782       }
20783     ],
20784     "name": "ShowRTOpenchannelQueues",
20785     "group": "RPC_Realtime",
20786     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20787     "version": "0.0.0",
20788     "filename": "server/api/rpc/index.js",
20789     "groupTitle": "RPC_Realtime"
20790   },
20791   {
20792     "type": "get",
20793     "url": "/api/rpc/sms/queues/{id}",
20794     "title": "Gets a single RTSmsQueue",
20795     "examples": [
20796       {
20797         "title": "Example usage:",
20798         "content": "curl https://{domain}/api/rpc/sms/queues/{id} -v -u {name}:{password}",
20799         "type": "json"
20800       }
20801     ],
20802     "name": "ShowRTSmsQueues",
20803     "group": "RPC_Realtime",
20804     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20805     "version": "0.0.0",
20806     "filename": "server/api/rpc/index.js",
20807     "groupTitle": "RPC_Realtime"
20808   },
20809   {
20810     "type": "get",
20811     "url": "/api/rpc/voice/queues/{id}",
20812     "title": "Gets a single RTVoiceQueue",
20813     "examples": [
20814       {
20815         "title": "Example usage:",
20816         "content": "curl https://{domain}/api/rpc/voice/queues/{id} -v -u {name}:{password}",
20817         "type": "json"
20818       }
20819     ],
20820     "name": "ShowRTVoiceQueues",
20821     "group": "RPC_Realtime",
20822     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20823     "version": "0.0.0",
20824     "filename": "server/api/rpc/index.js",
20825     "groupTitle": "RPC_Realtime"
20826   },
20827   {
20828     "type": "put",
20829     "url": "/api/rpc/voice/{id}/queues",
20830     "title": "Updates a single VoiceQueue",
20831     "examples": [
20832       {
20833         "title": "Example usage:",
20834         "content": "curl https://{domain}/api/rpc/voice/queues/{id} -v -u {name}:{password}",
20835         "type": "json"
20836       }
20837     ],
20838     "name": "UpdateVoiceQueues",
20839     "group": "RPC_Realtime",
20840     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20841     "version": "0.0.0",
20842     "filename": "server/api/rpc/index.js",
20843     "groupTitle": "RPC_Realtime"
20844   },
20845   {
20846     "type": "post",
20847     "url": "/api/rpc/agents/:id/notify",
20848     "title": "Notify message to a specific agent",
20849     "examples": [
20850       {
20851         "title": "Example usage:",
20852         "content": "curl https://{domain}/api/rpc/agents/:id/notify -d '{\"messageId\": \"5080\", \"channel\": \"mail\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
20853         "type": "json"
20854       }
20855     ],
20856     "name": "agentNotify",
20857     "group": "RPC_Realtime",
20858     "description": "<p>Notify message to a specific agent.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20859     "version": "0.0.0",
20860     "filename": "server/api/rpc/index.js",
20861     "groupTitle": "RPC_Realtime"
20862   },
20863   {
20864     "type": "post",
20865     "url": "/api/rpc/chat/queues/:id/notify",
20866     "title": "Notify message to a specific queue",
20867     "examples": [
20868       {
20869         "title": "Example usage:",
20870         "content": "curl https://{domain}/api/rpc/chat/queues/:id/notify -d '{\"messageId\": \"5080\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
20871         "type": "json"
20872       }
20873     ],
20874     "name": "chatQueueNotify",
20875     "group": "RPC_Realtime",
20876     "description": "<p>Notify message to a specific queue.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20877     "version": "0.0.0",
20878     "filename": "server/api/rpc/index.js",
20879     "groupTitle": "RPC_Realtime"
20880   },
20881   {
20882     "type": "get",
20883     "url": "/api/rpc/chat/queues/waitinginteractions",
20884     "title": "Gets a list of chatQueuesWaitingInteractions",
20885     "examples": [
20886       {
20887         "title": "Example usage:",
20888         "content": "curl https://{domain}/api/rpc/chat/queues/waitinginteractions -v -u {name}:{password}",
20889         "type": "json"
20890       }
20891     ],
20892     "name": "chatQueuesWaitingInteractions",
20893     "group": "RPC_Realtime",
20894     "description": "<p>Motion will return a list of realtime waiting chat queues interctions.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20895     "version": "0.0.0",
20896     "filename": "server/api/rpc/index.js",
20897     "groupTitle": "RPC_Realtime"
20898   },
20899   {
20900     "type": "post",
20901     "url": "/api/rpc/fax/queues/:id/notify",
20902     "title": "Notify message to a specific queue",
20903     "examples": [
20904       {
20905         "title": "Example usage:",
20906         "content": "curl https://{domain}/api/rpc/fax/queues/:id/notify -d '{\"messageId\": \"5080\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
20907         "type": "json"
20908       }
20909     ],
20910     "name": "faxQueueNotify",
20911     "group": "RPC_Realtime",
20912     "description": "<p>Notify message to a specific queue.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20913     "version": "0.0.0",
20914     "filename": "server/api/rpc/index.js",
20915     "groupTitle": "RPC_Realtime"
20916   },
20917   {
20918     "type": "get",
20919     "url": "/api/rpc/fax/queues/waitinginteractions",
20920     "title": "Gets a list of faxQueuesWaitingInteractions",
20921     "examples": [
20922       {
20923         "title": "Example usage:",
20924         "content": "curl https://{domain}/api/rpc/fax/queues/waitinginteractions -v -u {name}:{password}",
20925         "type": "json"
20926       }
20927     ],
20928     "name": "faxQueuesWaitingInteractions",
20929     "group": "RPC_Realtime",
20930     "description": "<p>Motion will return a list of realtime waiting fax queues interctions.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20931     "version": "0.0.0",
20932     "filename": "server/api/rpc/index.js",
20933     "groupTitle": "RPC_Realtime"
20934   },
20935   {
20936     "type": "post",
20937     "url": "/api/rpc/mail/queues/:id/notify",
20938     "title": "Notify message to a specific queue",
20939     "examples": [
20940       {
20941         "title": "Example usage:",
20942         "content": "curl https://{domain}/api/rpc/mail/queues/:id/notify -d '{\"messageId\": \"5080\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
20943         "type": "json"
20944       }
20945     ],
20946     "name": "mailQueueNotify",
20947     "group": "RPC_Realtime",
20948     "description": "<p>Notify message to a specific queue.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20949     "version": "0.0.0",
20950     "filename": "server/api/rpc/index.js",
20951     "groupTitle": "RPC_Realtime"
20952   },
20953   {
20954     "type": "get",
20955     "url": "/api/rpc/mail/queues/waitinginteractions",
20956     "title": "Gets a list of mailQueuesWaitingInteractions",
20957     "examples": [
20958       {
20959         "title": "Example usage:",
20960         "content": "curl https://{domain}/api/rpc/mail/queues/waitinginteractions -v -u {name}:{password}",
20961         "type": "json"
20962       }
20963     ],
20964     "name": "mailQueuesWaitingInteractions",
20965     "group": "RPC_Realtime",
20966     "description": "<p>Motion will return a list of realtime waiting mail queues interctions.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20967     "version": "0.0.0",
20968     "filename": "server/api/rpc/index.js",
20969     "groupTitle": "RPC_Realtime"
20970   },
20971   {
20972     "type": "post",
20973     "url": "/api/rpc/openchannel/queues/:id/notify",
20974     "title": "Notify message to a specific queue",
20975     "examples": [
20976       {
20977         "title": "Example usage:",
20978         "content": "curl https://{domain}/api/rpc/openchannel/queues/:id/notify -d '{\"messageId\": \"5080\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
20979         "type": "json"
20980       }
20981     ],
20982     "name": "openchannelQueueNotify",
20983     "group": "RPC_Realtime",
20984     "description": "<p>Notify message to a specific queue.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20985     "version": "0.0.0",
20986     "filename": "server/api/rpc/index.js",
20987     "groupTitle": "RPC_Realtime"
20988   },
20989   {
20990     "type": "get",
20991     "url": "/api/rpc/openchannel/queues/:id/waitinginteractions",
20992     "title": "Gets a list of openchannelQueuesIdWaitingInteractions",
20993     "examples": [
20994       {
20995         "title": "Example usage:",
20996         "content": "curl https://{domain}/api/rpc/openchannel/queues/:id/waitinginteractions -v -u {name}:{password}",
20997         "type": "json"
20998       }
20999     ],
21000     "name": "openchannelQueuesIdWaitingInteractions",
21001     "group": "RPC_Realtime",
21002     "description": "<p>Motion will return a list of realtime waiting openchannel queues interctions.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21003     "version": "0.0.0",
21004     "filename": "server/api/rpc/index.js",
21005     "groupTitle": "RPC_Realtime"
21006   },
21007   {
21008     "type": "get",
21009     "url": "/api/rpc/openchannel/queues/waitinginteractions",
21010     "title": "Gets a list of openchannelQueuesWaitingInteractions",
21011     "examples": [
21012       {
21013         "title": "Example usage:",
21014         "content": "curl https://{domain}/api/rpc/openchannel/queues/waitinginteractions -v -u {name}:{password}",
21015         "type": "json"
21016       }
21017     ],
21018     "name": "openchannelQueuesWaitingInteractions",
21019     "group": "RPC_Realtime",
21020     "description": "<p>Motion will return a list of realtime waiting openchannel queues interctions.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21021     "version": "0.0.0",
21022     "filename": "server/api/rpc/index.js",
21023     "groupTitle": "RPC_Realtime"
21024   },
21025   {
21026     "type": "post",
21027     "url": "/api/rpc/sms/queues/:id/notify",
21028     "title": "Notify message to a specific queue",
21029     "examples": [
21030       {
21031         "title": "Example usage:",
21032         "content": "curl https://{domain}/api/rpc/sms/queues/:id/notify -d '{\"messageId\": \"5080\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
21033         "type": "json"
21034       }
21035     ],
21036     "name": "smsQueueNotify",
21037     "group": "RPC_Realtime",
21038     "description": "<p>Notify message to a specific queue.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21039     "version": "0.0.0",
21040     "filename": "server/api/rpc/index.js",
21041     "groupTitle": "RPC_Realtime"
21042   },
21043   {
21044     "type": "get",
21045     "url": "/api/rpc/sms/queues/waitinginteractions",
21046     "title": "Gets a list of smsQueuesWaitingInteractions",
21047     "examples": [
21048       {
21049         "title": "Example usage:",
21050         "content": "curl https://{domain}/api/rpc/sms/queues/waitinginteractions -v -u {name}:{password}",
21051         "type": "json"
21052       }
21053     ],
21054     "name": "smsQueuesWaitingInteractions",
21055     "group": "RPC_Realtime",
21056     "description": "<p>Motion will return a list of realtime waiting sms queues interctions.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21057     "version": "0.0.0",
21058     "filename": "server/api/rpc/index.js",
21059     "groupTitle": "RPC_Realtime"
21060   },
21061   {
21062     "type": "get",
21063     "url": "/api/realtime/agents",
21064     "title": "Gets realtime agents info",
21065     "examples": [
21066       {
21067         "title": "Example usage:",
21068         "content": "curl https://{domain}/api/realtime/agents -v -u {name}:{password}  -X GET",
21069         "type": "json"
21070       }
21071     ],
21072     "name": "getAgents",
21073     "group": "Realtime",
21074     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21075     "version": "0.0.0",
21076     "filename": "server/api/realtime/index.js",
21077     "groupTitle": "Realtime"
21078   },
21079   {
21080     "type": "get",
21081     "url": "/api/realtime/queues",
21082     "title": "Gets realtime queues info",
21083     "examples": [
21084       {
21085         "title": "Example usage:",
21086         "content": "curl https://{domain}/api/realtime/queues -v -u {name}:{password}  -X GET",
21087         "type": "json"
21088       }
21089     ],
21090     "name": "getQueues",
21091     "group": "Realtime",
21092     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21093     "version": "0.0.0",
21094     "filename": "server/api/realtime/index.js",
21095     "groupTitle": "Realtime"
21096   },
21097   {
21098     "type": "post",
21099     "url": "/api/integrations/salesforce/accounts",
21100     "title": "Creates a new Salesforce Account",
21101     "examples": [
21102       {
21103         "title": "Example usage:",
21104         "content": "curl https://{domain}/api/integrations/salesforce/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
21105         "type": "json"
21106       }
21107     ],
21108     "name": "CreateSalesforce_Accounts",
21109     "group": "Salesforce_Accounts",
21110     "parameter": {
21111       "fields": {
21112         "Body": [
21113           {
21114             "group": "Body",
21115             "type": "String",
21116             "optional": true,
21117             "field": "name",
21118             "description": ""
21119           },
21120           {
21121             "group": "Body",
21122             "type": "String",
21123             "optional": true,
21124             "field": "description",
21125             "description": ""
21126           },
21127           {
21128             "group": "Body",
21129             "type": "String",
21130             "optional": true,
21131             "field": "username",
21132             "description": ""
21133           },
21134           {
21135             "group": "Body",
21136             "type": "String",
21137             "optional": true,
21138             "field": "remoteUri",
21139             "description": ""
21140           },
21141           {
21142             "group": "Body",
21143             "type": "String",
21144             "optional": true,
21145             "field": "password",
21146             "description": ""
21147           },
21148           {
21149             "group": "Body",
21150             "type": "String",
21151             "optional": true,
21152             "field": "clientId",
21153             "description": ""
21154           },
21155           {
21156             "group": "Body",
21157             "type": "String",
21158             "optional": true,
21159             "field": "clientSecret",
21160             "description": ""
21161           },
21162           {
21163             "group": "Body",
21164             "type": "String",
21165             "optional": true,
21166             "field": "securityToken",
21167             "description": ""
21168           },
21169           {
21170             "group": "Body",
21171             "type": "String",
21172             "optional": false,
21173             "field": "serverUrl",
21174             "description": ""
21175           },
21176           {
21177             "group": "Body",
21178             "type": "String",
21179             "allowedValues": [
21180               "\"integrationTab\"",
21181               "\"newTab\""
21182             ],
21183             "optional": true,
21184             "field": "type",
21185             "description": ""
21186           }
21187         ]
21188       }
21189     },
21190     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21191     "version": "0.0.0",
21192     "filename": "server/api/intSalesforceAccount/index.js",
21193     "groupTitle": "Salesforce_Accounts"
21194   },
21195   {
21196     "type": "delete",
21197     "url": "/api/integrations/salesforce/accounts/{id}",
21198     "title": "Deletes a Salesforce Account",
21199     "examples": [
21200       {
21201         "title": "Example usage:",
21202         "content": "curl https://{domain}/api/integrations/salesforce/accounts/{id} -v -u {name}:{password} -X DELETE",
21203         "type": "json"
21204       }
21205     ],
21206     "name": "DeleteSalesforce_Accounts",
21207     "group": "Salesforce_Accounts",
21208     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21209     "version": "0.0.0",
21210     "filename": "server/api/intSalesforceAccount/index.js",
21211     "groupTitle": "Salesforce_Accounts"
21212   },
21213   {
21214     "type": "get",
21215     "url": "/api/integrations/salesforce/accounts",
21216     "title": "Gets a list of Salesforce Accounts",
21217     "examples": [
21218       {
21219         "title": "Example usage:",
21220         "content": "curl https://{domain}/api/integrations/salesforce/accounts -v -u {name}:{password}",
21221         "type": "json"
21222       }
21223     ],
21224     "name": "GetSalesforce_Accounts",
21225     "group": "Salesforce_Accounts",
21226     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/integrations/salesforce/accounts?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/integrations/salesforce/accounts?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/integrations/salesforce/accounts?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/integrations/salesforce/accounts?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/integrations/salesforce/accounts?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
21227     "version": "0.0.0",
21228     "filename": "server/api/intSalesforceAccount/index.js",
21229     "groupTitle": "Salesforce_Accounts"
21230   },
21231   {
21232     "type": "get",
21233     "url": "/api/integrations/salesforce/accounts/{id}",
21234     "title": "Gets a single Salesforce Account",
21235     "examples": [
21236       {
21237         "title": "Example usage:",
21238         "content": "curl https://{domain}/api/integrations/salesforce/accounts/{id} -v -u {name}:{password}",
21239         "type": "json"
21240       }
21241     ],
21242     "name": "ShowSalesforce_Accounts",
21243     "group": "Salesforce_Accounts",
21244     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21245     "version": "0.0.0",
21246     "filename": "server/api/intSalesforceAccount/index.js",
21247     "groupTitle": "Salesforce_Accounts"
21248   },
21249   {
21250     "type": "post",
21251     "url": "/api/integrations/salesforce/accounts/{id}/configurations",
21252     "title": "Creates new configuration",
21253     "examples": [
21254       {
21255         "title": "Example usage:",
21256         "content": "curl https://{domain}/api/integrations/salesforce/accounts/{id}/configurations -d '{\"name\": \"conf1\"}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
21257         "type": "json"
21258       }
21259     ],
21260     "name": "addConfiguration",
21261     "group": "Salesforce_Accounts",
21262     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21263     "version": "0.0.0",
21264     "filename": "server/api/intSalesforceAccount/index.js",
21265     "groupTitle": "Salesforce_Accounts"
21266   },
21267   {
21268     "type": "get",
21269     "url": "/api/integrations/salesforce/accounts/{id}/configurations",
21270     "title": "Gets account configurations",
21271     "examples": [
21272       {
21273         "title": "Example usage:",
21274         "content": "curl https://{domain}/api/integrations/salesforce/accounts/{id}/configurations -v -u {name}:{password} -X GET",
21275         "type": "json"
21276       }
21277     ],
21278     "name": "getConfigurations",
21279     "group": "Salesforce_Accounts",
21280     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21281     "version": "0.0.0",
21282     "filename": "server/api/intSalesforceAccount/index.js",
21283     "groupTitle": "Salesforce_Accounts"
21284   },
21285   {
21286     "type": "get",
21287     "url": "/api/integrations/salesforce/accounts/{id}/fields",
21288     "title": "Gets account fields",
21289     "examples": [
21290       {
21291         "title": "Example usage:",
21292         "content": "curl https://{domain}/api/integrations/salesforce/accounts/{id}/fields -v -u {name}:{password} -X GET",
21293         "type": "json"
21294       }
21295     ],
21296     "name": "getFields",
21297     "group": "Salesforce_Accounts",
21298     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21299     "version": "0.0.0",
21300     "filename": "server/api/intSalesforceAccount/index.js",
21301     "groupTitle": "Salesforce_Accounts"
21302   },
21303   {
21304     "type": "put",
21305     "url": "/api/integrations/salesforce/accounts/{id}",
21306     "title": "Update an existing Salesforce Account",
21307     "examples": [
21308       {
21309         "title": "Example usage:",
21310         "content": "curl https://{domain}/api/integrations/salesforce/accounts/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
21311         "type": "json"
21312       }
21313     ],
21314     "name": "updateSalesforce_Accounts",
21315     "group": "Salesforce_Accounts",
21316     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21317     "version": "0.0.0",
21318     "filename": "server/api/intSalesforceAccount/index.js",
21319     "groupTitle": "Salesforce_Accounts"
21320   },
21321   {
21322     "type": "post",
21323     "url": "/api/integrations/salesforce/configurations",
21324     "title": "Creates a new Salesforce Configuration",
21325     "examples": [
21326       {
21327         "title": "Example usage:",
21328         "content": "curl https://{domain}/api/integrations/salesforce/configurations -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
21329         "type": "json"
21330       }
21331     ],
21332     "name": "CreateSalesforce_Configurations",
21333     "group": "Salesforce_Configurations",
21334     "parameter": {
21335       "fields": {
21336         "Body": [
21337           {
21338             "group": "Body",
21339             "type": "String",
21340             "optional": true,
21341             "field": "name",
21342             "description": ""
21343           },
21344           {
21345             "group": "Body",
21346             "type": "String",
21347             "optional": true,
21348             "field": "description",
21349             "description": ""
21350           },
21351           {
21352             "group": "Body",
21353             "type": "String",
21354             "allowedValues": [
21355               "\"Task\"",
21356               "\"Case\""
21357             ],
21358             "optional": true,
21359             "field": "ticketType",
21360             "description": ""
21361           },
21362           {
21363             "group": "Body",
21364             "type": "String",
21365             "allowedValues": [
21366               "\"contact_lead\"",
21367               "\"contact\"",
21368               "\"lead\"",
21369               "\"account_contact_lead\"",
21370               "\"account\""
21371             ],
21372             "optional": true,
21373             "field": "moduleSearch",
21374             "description": ""
21375           },
21376           {
21377             "group": "Body",
21378             "type": "String",
21379             "allowedValues": [
21380               "\"nothing\"",
21381               "\"contact\"",
21382               "\"lead\"",
21383               "\"account\""
21384             ],
21385             "optional": true,
21386             "field": "moduleCreate",
21387             "description": ""
21388           },
21389           {
21390             "group": "Body",
21391             "type": "String",
21392             "optional": true,
21393             "field": "leadId",
21394             "description": ""
21395           },
21396           {
21397             "group": "Body",
21398             "type": "String",
21399             "optional": true,
21400             "field": "additionalSearchAccount",
21401             "description": ""
21402           },
21403           {
21404             "group": "Body",
21405             "type": "String",
21406             "optional": true,
21407             "field": "additionalSearchContact",
21408             "description": ""
21409           },
21410           {
21411             "group": "Body",
21412             "type": "String",
21413             "optional": true,
21414             "field": "additionalSearchLead",
21415             "description": ""
21416           }
21417         ]
21418       }
21419     },
21420     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21421     "version": "0.0.0",
21422     "filename": "server/api/intSalesforceConfiguration/index.js",
21423     "groupTitle": "Salesforce_Configurations"
21424   },
21425   {
21426     "type": "delete",
21427     "url": "/api/integrations/salesforce/configurations/{id}",
21428     "title": "Deletes a Salesforce Configuration",
21429     "examples": [
21430       {
21431         "title": "Example usage:",
21432         "content": "curl https://{domain}/api/integrations/salesforce/configurations/{id} -v -u {name}:{password} -X DELETE",
21433         "type": "json"
21434       }
21435     ],
21436     "name": "DeleteSalesforce_Configurations",
21437     "group": "Salesforce_Configurations",
21438     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21439     "version": "0.0.0",
21440     "filename": "server/api/intSalesforceConfiguration/index.js",
21441     "groupTitle": "Salesforce_Configurations"
21442   },
21443   {
21444     "type": "get",
21445     "url": "/api/integrations/salesforce/configurations",
21446     "title": "Gets a list of Salesforce Configurations",
21447     "examples": [
21448       {
21449         "title": "Example usage:",
21450         "content": "curl https://{domain}/api/integrations/salesforce/configurations -v -u {name}:{password}",
21451         "type": "json"
21452       }
21453     ],
21454     "name": "GetSalesforce_Configurations",
21455     "group": "Salesforce_Configurations",
21456     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/integrations/salesforce/configurations?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/integrations/salesforce/configurations?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/integrations/salesforce/configurations?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/integrations/salesforce/configurations?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/integrations/salesforce/configurations?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
21457     "version": "0.0.0",
21458     "filename": "server/api/intSalesforceConfiguration/index.js",
21459     "groupTitle": "Salesforce_Configurations"
21460   },
21461   {
21462     "type": "get",
21463     "url": "/api/integrations/salesforce/configurations/{id}",
21464     "title": "Gets a single Salesforce Configuration",
21465     "examples": [
21466       {
21467         "title": "Example usage:",
21468         "content": "curl https://{domain}/api/integrations/salesforce/configurations/{id} -v -u {name}:{password}",
21469         "type": "json"
21470       }
21471     ],
21472     "name": "ShowSalesforce_Configurations",
21473     "group": "Salesforce_Configurations",
21474     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21475     "version": "0.0.0",
21476     "filename": "server/api/intSalesforceConfiguration/index.js",
21477     "groupTitle": "Salesforce_Configurations"
21478   },
21479   {
21480     "type": "get",
21481     "url": "/api/integrations/salesforce/configurations/{id}/descriptions",
21482     "title": "Gets configurations descriptions",
21483     "examples": [
21484       {
21485         "title": "Example usage:",
21486         "content": "curl https://{domain}/api/integrations/salesforce/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
21487         "type": "json"
21488       }
21489     ],
21490     "name": "getDescriptions",
21491     "group": "Salesforce_Configurations",
21492     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21493     "version": "0.0.0",
21494     "filename": "server/api/intSalesforceConfiguration/index.js",
21495     "groupTitle": "Salesforce_Configurations"
21496   },
21497   {
21498     "type": "get",
21499     "url": "/api/integrations/salesforce/configurations/{id}/fields",
21500     "title": "Gets configurations fields",
21501     "examples": [
21502       {
21503         "title": "Example usage:",
21504         "content": "curl https://{domain}/api/integrations/salesforce/configurations/{id}/fields -v -u {name}:{password} -X GET",
21505         "type": "json"
21506       }
21507     ],
21508     "name": "getFields",
21509     "group": "Salesforce_Configurations",
21510     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21511     "version": "0.0.0",
21512     "filename": "server/api/intSalesforceConfiguration/index.js",
21513     "groupTitle": "Salesforce_Configurations"
21514   },
21515   {
21516     "type": "get",
21517     "url": "/api/integrations/salesforce/configurations/{id}/subjects",
21518     "title": "Gets configurations subjects",
21519     "examples": [
21520       {
21521         "title": "Example usage:",
21522         "content": "curl https://{domain}/api/integrations/salesforce/configurations/{id}/subjects -v -u {name}:{password} -X GET",
21523         "type": "json"
21524       }
21525     ],
21526     "name": "getSubjects",
21527     "group": "Salesforce_Configurations",
21528     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21529     "version": "0.0.0",
21530     "filename": "server/api/intSalesforceConfiguration/index.js",
21531     "groupTitle": "Salesforce_Configurations"
21532   },
21533   {
21534     "type": "put",
21535     "url": "/api/integrations/salesforce/configurations/{id}",
21536     "title": "Update an existing Salesforce Configuration",
21537     "examples": [
21538       {
21539         "title": "Example usage:",
21540         "content": "curl https://{domain}/api/integrations/salesforce/configurations/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
21541         "type": "json"
21542       }
21543     ],
21544     "name": "updateSalesforce_Configurations",
21545     "group": "Salesforce_Configurations",
21546     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21547     "version": "0.0.0",
21548     "filename": "server/api/intSalesforceConfiguration/index.js",
21549     "groupTitle": "Salesforce_Configurations"
21550   },
21551   {
21552     "type": "post",
21553     "url": "/api/integrations/salesforce/fields",
21554     "title": "Creates a new Salesforce Field",
21555     "examples": [
21556       {
21557         "title": "Example usage:",
21558         "content": "curl https://{domain}/api/integrations/salesforce/fields -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
21559         "type": "json"
21560       }
21561     ],
21562     "name": "CreateSalesforce_Fields",
21563     "group": "Salesforce_Fields",
21564     "parameter": {
21565       "fields": {
21566         "Body": [
21567           {
21568             "group": "Body",
21569             "type": "String",
21570             "allowedValues": [
21571               "\"string\"",
21572               "\"variable\"",
21573               "\"customVariable\"",
21574               "\"keyValue\"",
21575               "\"picklist\""
21576             ],
21577             "optional": true,
21578             "field": "type",
21579             "description": ""
21580           },
21581           {
21582             "group": "Body",
21583             "type": "String",
21584             "optional": true,
21585             "field": "content",
21586             "description": ""
21587           },
21588           {
21589             "group": "Body",
21590             "type": "String",
21591             "optional": true,
21592             "field": "key",
21593             "description": ""
21594           },
21595           {
21596             "group": "Body",
21597             "type": "String",
21598             "allowedValues": [
21599               "\"string\"",
21600               "\"variable\"",
21601               "\"customVariable\""
21602             ],
21603             "optional": true,
21604             "field": "keyType",
21605             "description": ""
21606           },
21607           {
21608             "group": "Body",
21609             "type": "String",
21610             "optional": true,
21611             "field": "keyContent",
21612             "description": ""
21613           },
21614           {
21615             "group": "Body",
21616             "type": "String",
21617             "optional": true,
21618             "field": "idField",
21619             "description": ""
21620           },
21621           {
21622             "group": "Body",
21623             "type": "String",
21624             "optional": true,
21625             "field": "variableName",
21626             "description": ""
21627           }
21628         ]
21629       }
21630     },
21631     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21632     "version": "0.0.0",
21633     "filename": "server/api/intSalesforceField/index.js",
21634     "groupTitle": "Salesforce_Fields"
21635   },
21636   {
21637     "type": "delete",
21638     "url": "/api/integrations/salesforce/fields/{id}",
21639     "title": "Deletes a Salesforce Field",
21640     "examples": [
21641       {
21642         "title": "Example usage:",
21643         "content": "curl https://{domain}/api/integrations/salesforce/fields/{id} -v -u {name}:{password} -X DELETE",
21644         "type": "json"
21645       }
21646     ],
21647     "name": "DeleteSalesforce_Fields",
21648     "group": "Salesforce_Fields",
21649     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21650     "version": "0.0.0",
21651     "filename": "server/api/intSalesforceField/index.js",
21652     "groupTitle": "Salesforce_Fields"
21653   },
21654   {
21655     "type": "get",
21656     "url": "/api/integrations/salesforce/fields",
21657     "title": "Gets a list of Salesforce Fields",
21658     "examples": [
21659       {
21660         "title": "Example usage:",
21661         "content": "curl https://{domain}/api/integrations/salesforce/fields -v -u {name}:{password}",
21662         "type": "json"
21663       }
21664     ],
21665     "name": "GetSalesforce_Fields",
21666     "group": "Salesforce_Fields",
21667     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/integrations/salesforce/fields?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/integrations/salesforce/fields?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/integrations/salesforce/fields?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/integrations/salesforce/fields?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/integrations/salesforce/fields?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
21668     "version": "0.0.0",
21669     "filename": "server/api/intSalesforceField/index.js",
21670     "groupTitle": "Salesforce_Fields"
21671   },
21672   {
21673     "type": "get",
21674     "url": "/api/integrations/salesforce/fields/{id}",
21675     "title": "Gets a single Salesforce Field",
21676     "examples": [
21677       {
21678         "title": "Example usage:",
21679         "content": "curl https://{domain}/api/integrations/salesforce/fields/{id} -v -u {name}:{password}",
21680         "type": "json"
21681       }
21682     ],
21683     "name": "ShowSalesforce_Fields",
21684     "group": "Salesforce_Fields",
21685     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21686     "version": "0.0.0",
21687     "filename": "server/api/intSalesforceField/index.js",
21688     "groupTitle": "Salesforce_Fields"
21689   },
21690   {
21691     "type": "put",
21692     "url": "/api/integrations/salesforce/fields/{id}",
21693     "title": "Update an existing Salesforce Field",
21694     "examples": [
21695       {
21696         "title": "Example usage:",
21697         "content": "curl https://{domain}/api/integrations/salesforce/fields/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
21698         "type": "json"
21699       }
21700     ],
21701     "name": "updateSalesforce_Fields",
21702     "group": "Salesforce_Fields",
21703     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21704     "version": "0.0.0",
21705     "filename": "server/api/intSalesforceField/index.js",
21706     "groupTitle": "Salesforce_Fields"
21707   },
21708   {
21709     "type": "post",
21710     "url": "/api/schedules",
21711     "title": "Creates a new Schedule",
21712     "examples": [
21713       {
21714         "title": "Example usage:",
21715         "content": "curl https://{domain}/api/schedules -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
21716         "type": "json"
21717       }
21718     ],
21719     "name": "CreateSchedules",
21720     "group": "Schedules",
21721     "parameter": {
21722       "fields": {
21723         "Body": [
21724           {
21725             "group": "Body",
21726             "type": "String",
21727             "optional": false,
21728             "field": "name",
21729             "description": ""
21730           },
21731           {
21732             "group": "Body",
21733             "type": "String",
21734             "optional": true,
21735             "field": "description",
21736             "description": ""
21737           },
21738           {
21739             "group": "Body",
21740             "type": "Boolean",
21741             "optional": false,
21742             "field": "active",
21743             "description": ""
21744           },
21745           {
21746             "group": "Body",
21747             "type": "String",
21748             "optional": false,
21749             "field": "cron",
21750             "description": ""
21751           },
21752           {
21753             "group": "Body",
21754             "type": "String",
21755             "optional": false,
21756             "field": "startAt",
21757             "description": ""
21758           },
21759           {
21760             "group": "Body",
21761             "type": "String",
21762             "optional": false,
21763             "field": "endAt",
21764             "description": ""
21765           },
21766           {
21767             "group": "Body",
21768             "type": "Integer",
21769             "optional": false,
21770             "field": "subtractNumber",
21771             "description": ""
21772           },
21773           {
21774             "group": "Body",
21775             "type": "String",
21776             "allowedValues": [
21777               "\"years\"",
21778               "\"quarters\"",
21779               "\"months\"",
21780               "\"weeks\"",
21781               "\"days\"",
21782               "\"hours\"",
21783               "\"minutes\""
21784             ],
21785             "optional": false,
21786             "field": "subtractUnit",
21787             "description": ""
21788           },
21789           {
21790             "group": "Body",
21791             "type": "String",
21792             "allowedValues": [
21793               "\"csv\"",
21794               "\"pdf\"",
21795               "\"xlsx\""
21796             ],
21797             "optional": false,
21798             "field": "output",
21799             "description": ""
21800           },
21801           {
21802             "group": "Body",
21803             "type": "String",
21804             "allowedValues": [
21805               "\"custom\"",
21806               "\"default\""
21807             ],
21808             "optional": false,
21809             "field": "type",
21810             "description": ""
21811           },
21812           {
21813             "group": "Body",
21814             "type": "Boolean",
21815             "optional": true,
21816             "field": "sendMail",
21817             "description": ""
21818           },
21819           {
21820             "group": "Body",
21821             "type": "String",
21822             "optional": true,
21823             "field": "email",
21824             "description": ""
21825           },
21826           {
21827             "group": "Body",
21828             "type": "Text",
21829             "optional": true,
21830             "field": "cc",
21831             "description": ""
21832           },
21833           {
21834             "group": "Body",
21835             "type": "Text",
21836             "optional": true,
21837             "field": "bcc",
21838             "description": ""
21839           },
21840           {
21841             "group": "Body",
21842             "type": "Boolean",
21843             "optional": true,
21844             "field": "sendIfEmpty",
21845             "description": ""
21846           }
21847         ]
21848       }
21849     },
21850     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21851     "version": "0.0.0",
21852     "filename": "server/api/schedule/index.js",
21853     "groupTitle": "Schedules"
21854   },
21855   {
21856     "type": "delete",
21857     "url": "/api/schedules/{id}",
21858     "title": "Deletes a Schedule",
21859     "examples": [
21860       {
21861         "title": "Example usage:",
21862         "content": "curl https://{domain}/api/schedules/{id} -v -u {name}:{password} -X DELETE",
21863         "type": "json"
21864       }
21865     ],
21866     "name": "DeleteSchedules",
21867     "group": "Schedules",
21868     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21869     "version": "0.0.0",
21870     "filename": "server/api/schedule/index.js",
21871     "groupTitle": "Schedules"
21872   },
21873   {
21874     "type": "get",
21875     "url": "/api/schedules",
21876     "title": "Gets a list of Schedules",
21877     "examples": [
21878       {
21879         "title": "Example usage:",
21880         "content": "curl https://{domain}/api/schedules -v -u {name}:{password}",
21881         "type": "json"
21882       }
21883     ],
21884     "name": "GetSchedules",
21885     "group": "Schedules",
21886     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/schedules?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/schedules?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/schedules?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/schedules?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/schedules?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
21887     "version": "0.0.0",
21888     "filename": "server/api/schedule/index.js",
21889     "groupTitle": "Schedules"
21890   },
21891   {
21892     "type": "get",
21893     "url": "/api/schedules/{id}",
21894     "title": "Gets a single Schedule",
21895     "examples": [
21896       {
21897         "title": "Example usage:",
21898         "content": "curl https://{domain}/api/schedules/{id} -v -u {name}:{password}",
21899         "type": "json"
21900       }
21901     ],
21902     "name": "ShowSchedules",
21903     "group": "Schedules",
21904     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21905     "version": "0.0.0",
21906     "filename": "server/api/schedule/index.js",
21907     "groupTitle": "Schedules"
21908   },
21909   {
21910     "type": "get",
21911     "url": "/api/schedules/{id}/run",
21912     "title": "Run Scheduler",
21913     "examples": [
21914       {
21915         "title": "Example usage:",
21916         "content": "curl https://{domain}/api/schedules/{id}/run -v -u {name}:{password} -X GET",
21917         "type": "json"
21918       }
21919     ],
21920     "name": "run",
21921     "group": "Schedules",
21922     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21923     "version": "0.0.0",
21924     "filename": "server/api/schedule/index.js",
21925     "groupTitle": "Schedules"
21926   },
21927   {
21928     "type": "put",
21929     "url": "/api/schedules/{id}",
21930     "title": "Update an existing Schedule",
21931     "examples": [
21932       {
21933         "title": "Example usage:",
21934         "content": "curl https://{domain}/api/schedules/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
21935         "type": "json"
21936       }
21937     ],
21938     "name": "updateSchedules",
21939     "group": "Schedules",
21940     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21941     "version": "0.0.0",
21942     "filename": "server/api/schedule/index.js",
21943     "groupTitle": "Schedules"
21944   },
21945   {
21946     "type": "post",
21947     "url": "/api/screen/recordings",
21948     "title": "Creates a new Recording",
21949     "examples": [
21950       {
21951         "title": "Example usage:",
21952         "content": "curl https://{domain}/api/screen/recordings -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
21953         "type": "json"
21954       }
21955     ],
21956     "name": "CreateRecordings",
21957     "group": "Screen_Recordings",
21958     "parameter": {
21959       "fields": {
21960         "Body": [
21961           {
21962             "group": "Body",
21963             "type": "Virtual",
21964             "optional": true,
21965             "field": "format",
21966             "description": ""
21967           },
21968           {
21969             "group": "Body",
21970             "type": "String",
21971             "optional": true,
21972             "field": "interactionid",
21973             "description": ""
21974           },
21975           {
21976             "group": "Body",
21977             "type": "String",
21978             "optional": true,
21979             "field": "channel",
21980             "description": ""
21981           },
21982           {
21983             "group": "Body",
21984             "type": "String",
21985             "optional": true,
21986             "field": "value",
21987             "description": ""
21988           },
21989           {
21990             "group": "Body",
21991             "type": "Integer",
21992             "optional": true,
21993             "field": "rating",
21994             "description": ""
21995           },
21996           {
21997             "group": "Body",
21998             "type": "Integer",
21999             "optional": true,
22000             "field": "duration",
22001             "description": ""
22002           },
22003           {
22004             "group": "Body",
22005             "type": "String",
22006             "optional": true,
22007             "field": "startedAt",
22008             "description": ""
22009           },
22010           {
22011             "group": "Body",
22012             "type": "String",
22013             "optional": true,
22014             "field": "closedAt",
22015             "description": ""
22016           },
22017           {
22018             "group": "Body",
22019             "type": "String",
22020             "optional": true,
22021             "field": "createdAt",
22022             "description": ""
22023           },
22024           {
22025             "group": "Body",
22026             "type": "String",
22027             "optional": true,
22028             "field": "updatedAt",
22029             "description": ""
22030           }
22031         ]
22032       }
22033     },
22034     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22035     "version": "0.0.0",
22036     "filename": "server/api/screenRecording/index.js",
22037     "groupTitle": "Screen_Recordings"
22038   },
22039   {
22040     "type": "get",
22041     "url": "/api/screen/recordings/describe",
22042     "title": "Gets table info about Recordings",
22043     "examples": [
22044       {
22045         "title": "Example usage:",
22046         "content": "curl https://{domain}/api/screen/recordings/describe -v -u {name}:{password}",
22047         "type": "json"
22048       }
22049     ],
22050     "name": "DescribeRecordings",
22051     "group": "Screen_Recordings",
22052     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22053     "version": "0.0.0",
22054     "filename": "server/api/screenRecording/index.js",
22055     "groupTitle": "Screen_Recordings"
22056   },
22057   {
22058     "type": "get",
22059     "url": "/api/screen/recordings",
22060     "title": "Gets a list of Recordings",
22061     "examples": [
22062       {
22063         "title": "Example usage:",
22064         "content": "curl https://{domain}/api/screen/recordings -v -u {name}:{password}",
22065         "type": "json"
22066       }
22067     ],
22068     "name": "GetRecordings",
22069     "group": "Screen_Recordings",
22070     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/screen/recordings?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/screen/recordings?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/screen/recordings?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/screen/recordings?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/screen/recordings?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
22071     "version": "0.0.0",
22072     "filename": "server/api/screenRecording/index.js",
22073     "groupTitle": "Screen_Recordings"
22074   },
22075   {
22076     "type": "get",
22077     "url": "/api/screen/recordings/{id}",
22078     "title": "Gets a single Recording",
22079     "examples": [
22080       {
22081         "title": "Example usage:",
22082         "content": "curl https://{domain}/api/screen/recordings/{id} -v -u {name}:{password}",
22083         "type": "json"
22084       }
22085     ],
22086     "name": "ShowRecordings",
22087     "group": "Screen_Recordings",
22088     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22089     "version": "0.0.0",
22090     "filename": "server/api/screenRecording/index.js",
22091     "groupTitle": "Screen_Recordings"
22092   },
22093   {
22094     "type": "delete",
22095     "url": "/api/screen/recordings/{id}",
22096     "title": "Delete screen recording",
22097     "examples": [
22098       {
22099         "title": "Example usage:",
22100         "content": "curl https://{domain}/api/screen/recordings/{id} -v -u {name}:{password} -X DELETE",
22101         "type": "json"
22102       }
22103     ],
22104     "name": "destroy",
22105     "group": "Screen_Recordings",
22106     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22107     "version": "0.0.0",
22108     "filename": "server/api/screenRecording/index.js",
22109     "groupTitle": "Screen_Recordings"
22110   },
22111   {
22112     "type": "get",
22113     "url": "/api/screen/recordings/{id}/download",
22114     "title": "Download Recording",
22115     "examples": [
22116       {
22117         "title": "Example usage:",
22118         "content": "curl https://{domain}/api/screen/recordings/{id}/download -v -u {name}:{password} -X GET",
22119         "type": "json"
22120       }
22121     ],
22122     "name": "download",
22123     "group": "Screen_Recordings",
22124     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22125     "version": "0.0.0",
22126     "filename": "server/api/screenRecording/index.js",
22127     "groupTitle": "Screen_Recordings"
22128   },
22129   {
22130     "type": "put",
22131     "url": "/api/screen/recordings/{id}",
22132     "title": "Update an existing Recording",
22133     "examples": [
22134       {
22135         "title": "Example usage:",
22136         "content": "curl https://{domain}/api/screen/recordings/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
22137         "type": "json"
22138       }
22139     ],
22140     "name": "updateRecordings",
22141     "group": "Screen_Recordings",
22142     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22143     "version": "0.0.0",
22144     "filename": "server/api/screenRecording/index.js",
22145     "groupTitle": "Screen_Recordings"
22146   },
22147   {
22148     "type": "post",
22149     "url": "/api/integrations/servicenow/accounts",
22150     "title": "Creates a new Servicenow Account",
22151     "examples": [
22152       {
22153         "title": "Example usage:",
22154         "content": "curl https://{domain}/api/integrations/servicenow/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
22155         "type": "json"
22156       }
22157     ],
22158     "name": "CreateServicenow_Accounts",
22159     "group": "Servicenow_Accounts",
22160     "parameter": {
22161       "fields": {
22162         "Body": [
22163           {
22164             "group": "Body",
22165             "type": "String",
22166             "optional": true,
22167             "field": "name",
22168             "description": ""
22169           },
22170           {
22171             "group": "Body",
22172             "type": "String",
22173             "optional": true,
22174             "field": "description",
22175             "description": ""
22176           },
22177           {
22178             "group": "Body",
22179             "type": "String",
22180             "optional": true,
22181             "field": "username",
22182             "description": ""
22183           },
22184           {
22185             "group": "Body",
22186             "type": "String",
22187             "optional": true,
22188             "field": "password",
22189             "description": ""
22190           },
22191           {
22192             "group": "Body",
22193             "type": "String",
22194             "optional": true,
22195             "field": "email",
22196             "description": ""
22197           },
22198           {
22199             "group": "Body",
22200             "type": "String",
22201             "optional": true,
22202             "field": "remoteUri",
22203             "description": ""
22204           },
22205           {
22206             "group": "Body",
22207             "type": "String",
22208             "optional": false,
22209             "field": "serverUrl",
22210             "description": ""
22211           }
22212         ]
22213       }
22214     },
22215     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22216     "version": "0.0.0",
22217     "filename": "server/api/intServicenowAccount/index.js",
22218     "groupTitle": "Servicenow_Accounts"
22219   },
22220   {
22221     "type": "delete",
22222     "url": "/api/integrations/servicenow/accounts/{id}",
22223     "title": "Deletes a Servicenow Account",
22224     "examples": [
22225       {
22226         "title": "Example usage:",
22227         "content": "curl https://{domain}/api/integrations/servicenow/accounts/{id} -v -u {name}:{password} -X DELETE",
22228         "type": "json"
22229       }
22230     ],
22231     "name": "DeleteServicenow_Accounts",
22232     "group": "Servicenow_Accounts",
22233     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22234     "version": "0.0.0",
22235     "filename": "server/api/intServicenowAccount/index.js",
22236     "groupTitle": "Servicenow_Accounts"
22237   },
22238   {
22239     "type": "get",
22240     "url": "/api/integrations/servicenow/accounts",
22241     "title": "Gets a list of Servicenow Accounts",
22242     "examples": [
22243       {
22244         "title": "Example usage:",
22245         "content": "curl https://{domain}/api/integrations/servicenow/accounts -v -u {name}:{password}",
22246         "type": "json"
22247       }
22248     ],
22249     "name": "GetServicenow_Accounts",
22250     "group": "Servicenow_Accounts",
22251     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/integrations/servicenow/accounts?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/integrations/servicenow/accounts?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/integrations/servicenow/accounts?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/integrations/servicenow/accounts?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/integrations/servicenow/accounts?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
22252     "version": "0.0.0",
22253     "filename": "server/api/intServicenowAccount/index.js",
22254     "groupTitle": "Servicenow_Accounts"
22255   },
22256   {
22257     "type": "get",
22258     "url": "/api/integrations/servicenow/accounts/{id}",
22259     "title": "Gets a single Servicenow Account",
22260     "examples": [
22261       {
22262         "title": "Example usage:",
22263         "content": "curl https://{domain}/api/integrations/servicenow/accounts/{id} -v -u {name}:{password}",
22264         "type": "json"
22265       }
22266     ],
22267     "name": "ShowServicenow_Accounts",
22268     "group": "Servicenow_Accounts",
22269     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22270     "version": "0.0.0",
22271     "filename": "server/api/intServicenowAccount/index.js",
22272     "groupTitle": "Servicenow_Accounts"
22273   },
22274   {
22275     "type": "post",
22276     "url": "/api/integrations/servicenow/accounts/{id}/configurations",
22277     "title": "Creates new configuration",
22278     "examples": [
22279       {
22280         "title": "Example usage:",
22281         "content": "curl https://{domain}/api/integrations/servicenow/accounts/{id}/configurations -d '{\"name\": \"conf1\"}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
22282         "type": "json"
22283       }
22284     ],
22285     "name": "addConfiguration",
22286     "group": "Servicenow_Accounts",
22287     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22288     "version": "0.0.0",
22289     "filename": "server/api/intServicenowAccount/index.js",
22290     "groupTitle": "Servicenow_Accounts"
22291   },
22292   {
22293     "type": "get",
22294     "url": "/api/integrations/servicenow/accounts/{id}/configurations",
22295     "title": "Gets account configurations",
22296     "examples": [
22297       {
22298         "title": "Example usage:",
22299         "content": "curl https://{domain}/api/integrations/servicenow/accounts/{id}/configurations -v -u {name}:{password} -X GET",
22300         "type": "json"
22301       }
22302     ],
22303     "name": "getConfigurations",
22304     "group": "Servicenow_Accounts",
22305     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22306     "version": "0.0.0",
22307     "filename": "server/api/intServicenowAccount/index.js",
22308     "groupTitle": "Servicenow_Accounts"
22309   },
22310   {
22311     "type": "get",
22312     "url": "/api/integrations/servicenow/accounts/{id}/fields",
22313     "title": "Gets account fields",
22314     "examples": [
22315       {
22316         "title": "Example usage:",
22317         "content": "curl https://{domain}/api/integrations/servicenow/accounts/{id}/fields -v -u {name}:{password} -X GET",
22318         "type": "json"
22319       }
22320     ],
22321     "name": "getFields",
22322     "group": "Servicenow_Accounts",
22323     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22324     "version": "0.0.0",
22325     "filename": "server/api/intServicenowAccount/index.js",
22326     "groupTitle": "Servicenow_Accounts"
22327   },
22328   {
22329     "type": "put",
22330     "url": "/api/integrations/servicenow/accounts/{id}",
22331     "title": "Update an existing Servicenow Account",
22332     "examples": [
22333       {
22334         "title": "Example usage:",
22335         "content": "curl https://{domain}/api/integrations/servicenow/accounts/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
22336         "type": "json"
22337       }
22338     ],
22339     "name": "updateServicenow_Accounts",
22340     "group": "Servicenow_Accounts",
22341     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22342     "version": "0.0.0",
22343     "filename": "server/api/intServicenowAccount/index.js",
22344     "groupTitle": "Servicenow_Accounts"
22345   },
22346   {
22347     "type": "post",
22348     "url": "/api/integrations/servicenow/configurations",
22349     "title": "Creates a new Servicenow Configuration",
22350     "examples": [
22351       {
22352         "title": "Example usage:",
22353         "content": "curl https://{domain}/api/integrations/servicenow/configurations -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
22354         "type": "json"
22355       }
22356     ],
22357     "name": "CreateServicenow_Configurations",
22358     "group": "Servicenow_Configurations",
22359     "parameter": {
22360       "fields": {
22361         "Body": [
22362           {
22363             "group": "Body",
22364             "type": "String",
22365             "optional": true,
22366             "field": "name",
22367             "description": ""
22368           },
22369           {
22370             "group": "Body",
22371             "type": "String",
22372             "optional": true,
22373             "field": "description",
22374             "description": ""
22375           }
22376         ]
22377       }
22378     },
22379     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22380     "version": "0.0.0",
22381     "filename": "server/api/intServicenowConfiguration/index.js",
22382     "groupTitle": "Servicenow_Configurations"
22383   },
22384   {
22385     "type": "delete",
22386     "url": "/api/integrations/servicenow/configurations/{id}",
22387     "title": "Deletes a Servicenow Configuration",
22388     "examples": [
22389       {
22390         "title": "Example usage:",
22391         "content": "curl https://{domain}/api/integrations/servicenow/configurations/{id} -v -u {name}:{password} -X DELETE",
22392         "type": "json"
22393       }
22394     ],
22395     "name": "DeleteServicenow_Configurations",
22396     "group": "Servicenow_Configurations",
22397     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22398     "version": "0.0.0",
22399     "filename": "server/api/intServicenowConfiguration/index.js",
22400     "groupTitle": "Servicenow_Configurations"
22401   },
22402   {
22403     "type": "get",
22404     "url": "/api/integrations/servicenow/configurations",
22405     "title": "Gets a list of Servicenow Configurations",
22406     "examples": [
22407       {
22408         "title": "Example usage:",
22409         "content": "curl https://{domain}/api/integrations/servicenow/configurations -v -u {name}:{password}",
22410         "type": "json"
22411       }
22412     ],
22413     "name": "GetServicenow_Configurations",
22414     "group": "Servicenow_Configurations",
22415     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/integrations/servicenow/configurations?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/integrations/servicenow/configurations?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/integrations/servicenow/configurations?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/integrations/servicenow/configurations?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/integrations/servicenow/configurations?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
22416     "version": "0.0.0",
22417     "filename": "server/api/intServicenowConfiguration/index.js",
22418     "groupTitle": "Servicenow_Configurations"
22419   },
22420   {
22421     "type": "get",
22422     "url": "/api/integrations/servicenow/configurations/{id}",
22423     "title": "Gets a single Servicenow Configuration",
22424     "examples": [
22425       {
22426         "title": "Example usage:",
22427         "content": "curl https://{domain}/api/integrations/servicenow/configurations/{id} -v -u {name}:{password}",
22428         "type": "json"
22429       }
22430     ],
22431     "name": "ShowServicenow_Configurations",
22432     "group": "Servicenow_Configurations",
22433     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22434     "version": "0.0.0",
22435     "filename": "server/api/intServicenowConfiguration/index.js",
22436     "groupTitle": "Servicenow_Configurations"
22437   },
22438   {
22439     "type": "get",
22440     "url": "/api/integrations/servicenow/configurations/{id}/descriptions",
22441     "title": "Gets configurations descriptions",
22442     "examples": [
22443       {
22444         "title": "Example usage:",
22445         "content": "curl https://{domain}/api/integrations/servicenow/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
22446         "type": "json"
22447       }
22448     ],
22449     "name": "getDescriptions",
22450     "group": "Servicenow_Configurations",
22451     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22452     "version": "0.0.0",
22453     "filename": "server/api/intServicenowConfiguration/index.js",
22454     "groupTitle": "Servicenow_Configurations"
22455   },
22456   {
22457     "type": "get",
22458     "url": "/api/integrations/servicenow/configurations/{id}/fields",
22459     "title": "Gets configurations fields",
22460     "examples": [
22461       {
22462         "title": "Example usage:",
22463         "content": "curl https://{domain}/api/integrations/servicenow/configurations/{id}/fields -v -u {name}:{password} -X GET",
22464         "type": "json"
22465       }
22466     ],
22467     "name": "getFields",
22468     "group": "Servicenow_Configurations",
22469     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22470     "version": "0.0.0",
22471     "filename": "server/api/intServicenowConfiguration/index.js",
22472     "groupTitle": "Servicenow_Configurations"
22473   },
22474   {
22475     "type": "get",
22476     "url": "/api/integrations/servicenow/configurations/{id}/subjects",
22477     "title": "Gets configurations subjects",
22478     "examples": [
22479       {
22480         "title": "Example usage:",
22481         "content": "curl https://{domain}/api/integrations/servicenow/configurations/{id}/subjects -v -u {name}:{password} -X GET",
22482         "type": "json"
22483       }
22484     ],
22485     "name": "getSubjects",
22486     "group": "Servicenow_Configurations",
22487     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22488     "version": "0.0.0",
22489     "filename": "server/api/intServicenowConfiguration/index.js",
22490     "groupTitle": "Servicenow_Configurations"
22491   },
22492   {
22493     "type": "put",
22494     "url": "/api/integrations/servicenow/configurations/{id}",
22495     "title": "Update an existing Servicenow Configuration",
22496     "examples": [
22497       {
22498         "title": "Example usage:",
22499         "content": "curl https://{domain}/api/integrations/servicenow/configurations/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
22500         "type": "json"
22501       }
22502     ],
22503     "name": "updateServicenow_Configurations",
22504     "group": "Servicenow_Configurations",
22505     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22506     "version": "0.0.0",
22507     "filename": "server/api/intServicenowConfiguration/index.js",
22508     "groupTitle": "Servicenow_Configurations"
22509   },
22510   {
22511     "type": "post",
22512     "url": "/api/integrations/servicenow/fields",
22513     "title": "Creates a new Servicenow Field",
22514     "examples": [
22515       {
22516         "title": "Example usage:",
22517         "content": "curl https://{domain}/api/integrations/servicenow/fields -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
22518         "type": "json"
22519       }
22520     ],
22521     "name": "CreateServicenow_Fields",
22522     "group": "Servicenow_Fields",
22523     "parameter": {
22524       "fields": {
22525         "Body": [
22526           {
22527             "group": "Body",
22528             "type": "String",
22529             "allowedValues": [
22530               "\"string\"",
22531               "\"variable\"",
22532               "\"customVariable\"",
22533               "\"keyValue\"",
22534               "\"picklist\""
22535             ],
22536             "optional": true,
22537             "field": "type",
22538             "description": ""
22539           },
22540           {
22541             "group": "Body",
22542             "type": "String",
22543             "optional": true,
22544             "field": "content",
22545             "description": ""
22546           },
22547           {
22548             "group": "Body",
22549             "type": "String",
22550             "optional": true,
22551             "field": "key",
22552             "description": ""
22553           },
22554           {
22555             "group": "Body",
22556             "type": "String",
22557             "allowedValues": [
22558               "\"string\"",
22559               "\"variable\"",
22560               "\"customVariable\""
22561             ],
22562             "optional": true,
22563             "field": "keyType",
22564             "description": ""
22565           },
22566           {
22567             "group": "Body",
22568             "type": "String",
22569             "optional": true,
22570             "field": "keyContent",
22571             "description": ""
22572           },
22573           {
22574             "group": "Body",
22575             "type": "String",
22576             "optional": true,
22577             "field": "idField",
22578             "description": ""
22579           },
22580           {
22581             "group": "Body",
22582             "type": "String",
22583             "optional": true,
22584             "field": "nameField",
22585             "description": ""
22586           },
22587           {
22588             "group": "Body",
22589             "type": "Boolean",
22590             "optional": true,
22591             "field": "customField",
22592             "description": ""
22593           },
22594           {
22595             "group": "Body",
22596             "type": "String",
22597             "optional": true,
22598             "field": "variableName",
22599             "description": ""
22600           }
22601         ]
22602       }
22603     },
22604     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22605     "version": "0.0.0",
22606     "filename": "server/api/intServicenowField/index.js",
22607     "groupTitle": "Servicenow_Fields"
22608   },
22609   {
22610     "type": "delete",
22611     "url": "/api/integrations/servicenow/fields/{id}",
22612     "title": "Deletes a Servicenow Field",
22613     "examples": [
22614       {
22615         "title": "Example usage:",
22616         "content": "curl https://{domain}/api/integrations/servicenow/fields/{id} -v -u {name}:{password} -X DELETE",
22617         "type": "json"
22618       }
22619     ],
22620     "name": "DeleteServicenow_Fields",
22621     "group": "Servicenow_Fields",
22622     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22623     "version": "0.0.0",
22624     "filename": "server/api/intServicenowField/index.js",
22625     "groupTitle": "Servicenow_Fields"
22626   },
22627   {
22628     "type": "get",
22629     "url": "/api/integrations/servicenow/fields",
22630     "title": "Gets a list of Servicenow Fields",
22631     "examples": [
22632       {
22633         "title": "Example usage:",
22634         "content": "curl https://{domain}/api/integrations/servicenow/fields -v -u {name}:{password}",
22635         "type": "json"
22636       }
22637     ],
22638     "name": "GetServicenow_Fields",
22639     "group": "Servicenow_Fields",
22640     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/integrations/servicenow/fields?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/integrations/servicenow/fields?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/integrations/servicenow/fields?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/integrations/servicenow/fields?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/integrations/servicenow/fields?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
22641     "version": "0.0.0",
22642     "filename": "server/api/intServicenowField/index.js",
22643     "groupTitle": "Servicenow_Fields"
22644   },
22645   {
22646     "type": "get",
22647     "url": "/api/integrations/servicenow/fields/{id}",
22648     "title": "Gets a single Servicenow Field",
22649     "examples": [
22650       {
22651         "title": "Example usage:",
22652         "content": "curl https://{domain}/api/integrations/servicenow/fields/{id} -v -u {name}:{password}",
22653         "type": "json"
22654       }
22655     ],
22656     "name": "ShowServicenow_Fields",
22657     "group": "Servicenow_Fields",
22658     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22659     "version": "0.0.0",
22660     "filename": "server/api/intServicenowField/index.js",
22661     "groupTitle": "Servicenow_Fields"
22662   },
22663   {
22664     "type": "put",
22665     "url": "/api/integrations/servicenow/fields/{id}",
22666     "title": "Update an existing Servicenow Field",
22667     "examples": [
22668       {
22669         "title": "Example usage:",
22670         "content": "curl https://{domain}/api/integrations/servicenow/fields/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
22671         "type": "json"
22672       }
22673     ],
22674     "name": "updateServicenow_Fields",
22675     "group": "Servicenow_Fields",
22676     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22677     "version": "0.0.0",
22678     "filename": "server/api/intServicenowField/index.js",
22679     "groupTitle": "Servicenow_Fields"
22680   },
22681   {
22682     "type": "get",
22683     "url": "/api/settings",
22684     "title": "Gets a list of Settings",
22685     "examples": [
22686       {
22687         "title": "Example usage:",
22688         "content": "curl https://{domain}/api/settings -v -u {name}:{password}",
22689         "type": "json"
22690       }
22691     ],
22692     "name": "GetSettings",
22693     "group": "Settings",
22694     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/settings?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/settings?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/settings?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/settings?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/settings?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
22695     "version": "0.0.0",
22696     "filename": "server/api/setting/index.js",
22697     "groupTitle": "Settings"
22698   },
22699   {
22700     "type": "get",
22701     "url": "/api/settings/{id}",
22702     "title": "Gets a single Setting",
22703     "examples": [
22704       {
22705         "title": "Example usage:",
22706         "content": "curl https://{domain}/api/settings/{id} -v -u {name}:{password}",
22707         "type": "json"
22708       }
22709     ],
22710     "name": "ShowSettings",
22711     "group": "Settings",
22712     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22713     "version": "0.0.0",
22714     "filename": "server/api/setting/index.js",
22715     "groupTitle": "Settings"
22716   },
22717   {
22718     "type": "post",
22719     "url": "/api/settings/{id}/favicon",
22720     "title": "Add Favicon",
22721     "examples": [
22722       {
22723         "title": "Example usage:",
22724         "content": "curl https://{domain}/api/settings/{id}/favicon -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
22725         "type": "json"
22726       }
22727     ],
22728     "name": "addFavicon",
22729     "group": "Settings",
22730     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22731     "version": "0.0.0",
22732     "filename": "server/api/setting/index.js",
22733     "groupTitle": "Settings"
22734   },
22735   {
22736     "type": "post",
22737     "url": "/api/settings/{id}/logo",
22738     "title": "Add logo",
22739     "examples": [
22740       {
22741         "title": "Example usage:",
22742         "content": "curl https://{domain}/api/settings/{id}/logo -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
22743         "type": "json"
22744       }
22745     ],
22746     "name": "addLogo",
22747     "group": "Settings",
22748     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22749     "version": "0.0.0",
22750     "filename": "server/api/setting/index.js",
22751     "groupTitle": "Settings"
22752   },
22753   {
22754     "type": "post",
22755     "url": "/api/settings/{id}/logo_login",
22756     "title": "Add logo login",
22757     "examples": [
22758       {
22759         "title": "Example usage:",
22760         "content": "curl https://{domain}/api/settings/{id}/logo_login -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
22761         "type": "json"
22762       }
22763     ],
22764     "name": "addLogoLogin",
22765     "group": "Settings",
22766     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22767     "version": "0.0.0",
22768     "filename": "server/api/setting/index.js",
22769     "groupTitle": "Settings"
22770   },
22771   {
22772     "type": "post",
22773     "url": "/api/settings/{id}/preferred",
22774     "title": "Add Preferred",
22775     "examples": [
22776       {
22777         "title": "Example usage:",
22778         "content": "curl https://{domain}/api/settings/{id}/preferred -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
22779         "type": "json"
22780       }
22781     ],
22782     "name": "addPreferred",
22783     "group": "Settings",
22784     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22785     "version": "0.0.0",
22786     "filename": "server/api/setting/index.js",
22787     "groupTitle": "Settings"
22788   },
22789   {
22790     "type": "get",
22791     "url": "/api/settings/now",
22792     "title": "Get Server Current Date",
22793     "examples": [
22794       {
22795         "title": "Example usage:",
22796         "content": "curl https://{domain}/api/settings/now -v -X GET",
22797         "type": "json"
22798       }
22799     ],
22800     "name": "getDate",
22801     "group": "Settings",
22802     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22803     "version": "0.0.0",
22804     "filename": "server/api/setting/index.js",
22805     "groupTitle": "Settings"
22806   },
22807   {
22808     "type": "get",
22809     "url": "/api/settings/{id}/favicon",
22810     "title": "Get Favicon",
22811     "examples": [
22812       {
22813         "title": "Example usage:",
22814         "content": "curl https://{domain}/api/settings/{id}/favicon -v -X GET",
22815         "type": "json"
22816       }
22817     ],
22818     "name": "getFavicon",
22819     "group": "Settings",
22820     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22821     "version": "0.0.0",
22822     "filename": "server/api/setting/index.js",
22823     "groupTitle": "Settings"
22824   },
22825   {
22826     "type": "get",
22827     "url": "/api/settings/{id}/gdpr",
22828     "title": "Get gdpr settings",
22829     "examples": [
22830       {
22831         "title": "Example usage:",
22832         "content": "curl https://{domain}/api/settings/{id}/gdpr -v -u {name}:{password} -X GET",
22833         "type": "json"
22834       }
22835     ],
22836     "name": "getGdpr",
22837     "group": "Settings",
22838     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22839     "version": "0.0.0",
22840     "filename": "server/api/setting/index.js",
22841     "groupTitle": "Settings"
22842   },
22843   {
22844     "type": "get",
22845     "url": "/api/settings/{id}/logo",
22846     "title": "Get logo",
22847     "examples": [
22848       {
22849         "title": "Example usage:",
22850         "content": "curl https://{domain}/api/settings/{id}/logo -v -X GET",
22851         "type": "json"
22852       }
22853     ],
22854     "name": "getLogo",
22855     "group": "Settings",
22856     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22857     "version": "0.0.0",
22858     "filename": "server/api/setting/index.js",
22859     "groupTitle": "Settings"
22860   },
22861   {
22862     "type": "get",
22863     "url": "/api/settings/{id}/logo_login",
22864     "title": "Get logo login",
22865     "examples": [
22866       {
22867         "title": "Example usage:",
22868         "content": "curl https://{domain}/api/settings/{id}/logo_login -v -X GET",
22869         "type": "json"
22870       }
22871     ],
22872     "name": "getLogoLogin",
22873     "group": "Settings",
22874     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22875     "version": "0.0.0",
22876     "filename": "server/api/setting/index.js",
22877     "groupTitle": "Settings"
22878   },
22879   {
22880     "type": "get",
22881     "url": "/api/settings/{id}/preferred",
22882     "title": "Get Preferred",
22883     "examples": [
22884       {
22885         "title": "Example usage:",
22886         "content": "curl https://{domain}/api/settings/{id}/preferred -v -X GET",
22887         "type": "json"
22888       }
22889     ],
22890     "name": "getPreferred",
22891     "group": "Settings",
22892     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22893     "version": "0.0.0",
22894     "filename": "server/api/setting/index.js",
22895     "groupTitle": "Settings"
22896   },
22897   {
22898     "type": "put",
22899     "url": "/api/settings/{id}",
22900     "title": "Update an existing Setting",
22901     "examples": [
22902       {
22903         "title": "Example usage:",
22904         "content": "curl https://{domain}/api/settings/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
22905         "type": "json"
22906       }
22907     ],
22908     "name": "updateSettings",
22909     "group": "Settings",
22910     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22911     "version": "0.0.0",
22912     "filename": "server/api/setting/index.js",
22913     "groupTitle": "Settings"
22914   },
22915   {
22916     "type": "post",
22917     "url": "/api/sms/accounts/{id}/users",
22918     "title": "Add agents to a sms account",
22919     "examples": [
22920       {
22921         "title": "Example usage:",
22922         "content": "curl https://{domain}/api/sms/accounts/{id}/users -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
22923         "type": "json"
22924       }
22925     ],
22926     "name": "AddAgents",
22927     "group": "Sms_Accounts",
22928     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22929     "version": "0.0.0",
22930     "filename": "server/api/smsAccount/index.js",
22931     "groupTitle": "Sms_Accounts"
22932   },
22933   {
22934     "type": "post",
22935     "url": "/api/sms/accounts",
22936     "title": "Creates a new Account",
22937     "examples": [
22938       {
22939         "title": "Example usage:",
22940         "content": "curl https://{domain}/api/sms/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
22941         "type": "json"
22942       }
22943     ],
22944     "name": "CreateAccounts",
22945     "group": "Sms_Accounts",
22946     "parameter": {
22947       "fields": {
22948         "Body": [
22949           {
22950             "group": "Body",
22951             "type": "String",
22952             "optional": false,
22953             "field": "name",
22954             "description": ""
22955           },
22956           {
22957             "group": "Body",
22958             "type": "String",
22959             "optional": false,
22960             "field": "key",
22961             "description": ""
22962           },
22963           {
22964             "group": "Body",
22965             "type": "String",
22966             "optional": false,
22967             "field": "remote",
22968             "description": ""
22969           },
22970           {
22971             "group": "Body",
22972             "type": "String",
22973             "optional": true,
22974             "field": "token",
22975             "description": ""
22976           },
22977           {
22978             "group": "Body",
22979             "type": "String",
22980             "optional": true,
22981             "field": "phone",
22982             "description": ""
22983           },
22984           {
22985             "group": "Body",
22986             "type": "String",
22987             "allowedValues": [
22988               "\"twilio\"",
22989               "\"skebby\"",
22990               "\"connectel\"",
22991               "\"clicksend\"",
22992               "\"plivo\"",
22993               "\"clickatell\"",
22994               "\"bandwidth\"",
22995               "\"csc\"",
22996               "\"infobip\"",
22997               "\"intelepeer\""
22998             ],
22999             "optional": true,
23000             "field": "type",
23001             "description": ""
23002           },
23003           {
23004             "group": "Body",
23005             "type": "String",
23006             "optional": true,
23007             "field": "accountSid",
23008             "description": ""
23009           },
23010           {
23011             "group": "Body",
23012             "type": "String",
23013             "optional": true,
23014             "field": "authId",
23015             "description": ""
23016           },
23017           {
23018             "group": "Body",
23019             "type": "String",
23020             "optional": true,
23021             "field": "authToken",
23022             "description": ""
23023           },
23024           {
23025             "group": "Body",
23026             "type": "String",
23027             "allowedValues": [
23028               "\"SI\"",
23029               "\"TI\"",
23030               "\"GP\""
23031             ],
23032             "optional": true,
23033             "field": "smsMethod",
23034             "description": ""
23035           },
23036           {
23037             "group": "Body",
23038             "type": "String",
23039             "optional": true,
23040             "field": "username",
23041             "description": ""
23042           },
23043           {
23044             "group": "Body",
23045             "type": "String",
23046             "optional": true,
23047             "field": "password",
23048             "description": ""
23049           },
23050           {
23051             "group": "Body",
23052             "type": "String",
23053             "optional": true,
23054             "field": "apiKey",
23055             "description": ""
23056           },
23057           {
23058             "group": "Body",
23059             "type": "String",
23060             "optional": true,
23061             "field": "applicationId",
23062             "description": ""
23063           },
23064           {
23065             "group": "Body",
23066             "type": "String",
23067             "optional": true,
23068             "field": "accountId",
23069             "description": ""
23070           },
23071           {
23072             "group": "Body",
23073             "type": "String",
23074             "optional": true,
23075             "field": "senderString",
23076             "description": ""
23077           },
23078           {
23079             "group": "Body",
23080             "type": "Boolean",
23081             "optional": true,
23082             "field": "deliveryReport",
23083             "description": ""
23084           },
23085           {
23086             "group": "Body",
23087             "type": "String",
23088             "optional": true,
23089             "field": "description",
23090             "description": ""
23091           },
23092           {
23093             "group": "Body",
23094             "type": "Text",
23095             "optional": true,
23096             "field": "notificationTemplate",
23097             "description": ""
23098           },
23099           {
23100             "group": "Body",
23101             "type": "Boolean",
23102             "optional": true,
23103             "field": "notificationSound",
23104             "description": ""
23105           },
23106           {
23107             "group": "Body",
23108             "type": "Boolean",
23109             "optional": true,
23110             "field": "notificationShake",
23111             "description": ""
23112           },
23113           {
23114             "group": "Body",
23115             "type": "Integer",
23116             "optional": true,
23117             "field": "waitForTheAssignedAgent",
23118             "description": ""
23119           },
23120           {
23121             "group": "Body",
23122             "type": "Integer",
23123             "optional": true,
23124             "field": "waitForTheAssignedQueue",
23125             "description": ""
23126           },
23127           {
23128             "group": "Body",
23129             "type": "Boolean",
23130             "optional": true,
23131             "field": "queueTransfer",
23132             "description": ""
23133           },
23134           {
23135             "group": "Body",
23136             "type": "Integer",
23137             "optional": true,
23138             "field": "queueTransferTimeout",
23139             "description": ""
23140           },
23141           {
23142             "group": "Body",
23143             "type": "Boolean",
23144             "optional": true,
23145             "field": "agentTransfer",
23146             "description": ""
23147           },
23148           {
23149             "group": "Body",
23150             "type": "Integer",
23151             "optional": true,
23152             "field": "agentTransferTimeout",
23153             "description": ""
23154           },
23155           {
23156             "group": "Body",
23157             "type": "String",
23158             "optional": true,
23159             "field": "baseUrl",
23160             "description": ""
23161           },
23162           {
23163             "group": "Body",
23164             "type": "Integer",
23165             "optional": true,
23166             "field": "mandatoryDispositionPauseId",
23167             "description": "<p>Status to put when mandatory disposition is enabled</p>"
23168           },
23169           {
23170             "group": "Body",
23171             "type": "Boolean",
23172             "optional": true,
23173             "field": "mandatoryDisposition",
23174             "description": "<p>Enabled/disables mandatory dispo on a queue</p>"
23175           }
23176         ]
23177       }
23178     },
23179     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23180     "version": "0.0.0",
23181     "filename": "server/api/smsAccount/index.js",
23182     "groupTitle": "Sms_Accounts"
23183   },
23184   {
23185     "type": "delete",
23186     "url": "/api/sms/accounts/{id}",
23187     "title": "Deletes a Account",
23188     "examples": [
23189       {
23190         "title": "Example usage:",
23191         "content": "curl https://{domain}/api/sms/accounts/{id} -v -u {name}:{password} -X DELETE",
23192         "type": "json"
23193       }
23194     ],
23195     "name": "DeleteAccounts",
23196     "group": "Sms_Accounts",
23197     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23198     "version": "0.0.0",
23199     "filename": "server/api/smsAccount/index.js",
23200     "groupTitle": "Sms_Accounts"
23201   },
23202   {
23203     "type": "get",
23204     "url": "/api/sms/accounts/describe",
23205     "title": "Gets table info about Accounts",
23206     "examples": [
23207       {
23208         "title": "Example usage:",
23209         "content": "curl https://{domain}/api/sms/accounts/describe -v -u {name}:{password}",
23210         "type": "json"
23211       }
23212     ],
23213     "name": "DescribeAccounts",
23214     "group": "Sms_Accounts",
23215     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23216     "version": "0.0.0",
23217     "filename": "server/api/smsAccount/index.js",
23218     "groupTitle": "Sms_Accounts"
23219   },
23220   {
23221     "type": "get",
23222     "url": "/api/sms/accounts",
23223     "title": "Gets a list of Accounts",
23224     "examples": [
23225       {
23226         "title": "Example usage:",
23227         "content": "curl https://{domain}/api/sms/accounts -v -u {name}:{password}",
23228         "type": "json"
23229       }
23230     ],
23231     "name": "GetAccounts",
23232     "group": "Sms_Accounts",
23233     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/sms/accounts?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/sms/accounts?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/sms/accounts?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/sms/accounts?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/sms/accounts?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
23234     "version": "0.0.0",
23235     "filename": "server/api/smsAccount/index.js",
23236     "groupTitle": "Sms_Accounts"
23237   },
23238   {
23239     "type": "get",
23240     "url": "/api/sms/accounts/{id}/users",
23241     "title": "Gets agents from sms account",
23242     "examples": [
23243       {
23244         "title": "Example usage:",
23245         "content": "curl https://{domain}/api/sms/accounts/{id}/users -v -u {name}:{password} -X GET",
23246         "type": "json"
23247       }
23248     ],
23249     "name": "GetAgents",
23250     "group": "Sms_Accounts",
23251     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23252     "version": "0.0.0",
23253     "filename": "server/api/smsAccount/index.js",
23254     "groupTitle": "Sms_Accounts"
23255   },
23256   {
23257     "type": "delete",
23258     "url": "/api/sms/accounts/{id}/users",
23259     "title": "Removes agents from a sms account",
23260     "examples": [
23261       {
23262         "title": "Example usage:",
23263         "content": "curl https://{domain}/api/sms/accounts/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
23264         "type": "json"
23265       }
23266     ],
23267     "name": "RemoveAgents",
23268     "group": "Sms_Accounts",
23269     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23270     "version": "0.0.0",
23271     "filename": "server/api/smsAccount/index.js",
23272     "groupTitle": "Sms_Accounts"
23273   },
23274   {
23275     "type": "delete",
23276     "url": "/api/sms/accounts/{id}/canned_answers",
23277     "title": "Removes canned answers from account",
23278     "examples": [
23279       {
23280         "title": "Example usage:",
23281         "content": "curl https://{domain}/api/sms/accounts/{id}/canned_answers?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
23282         "type": "json"
23283       }
23284     ],
23285     "name": "RemoveAnswers",
23286     "group": "Sms_Accounts",
23287     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23288     "version": "0.0.0",
23289     "filename": "server/api/smsAccount/index.js",
23290     "groupTitle": "Sms_Accounts"
23291   },
23292   {
23293     "type": "delete",
23294     "url": "/api/sms/accounts/{id}/dispositions",
23295     "title": "Removes dispositions from account",
23296     "examples": [
23297       {
23298         "title": "Example usage:",
23299         "content": "curl https://{domain}/api/sms/accounts/{id}/dispositions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
23300         "type": "json"
23301       }
23302     ],
23303     "name": "RemoveDispositions",
23304     "group": "Sms_Accounts",
23305     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23306     "version": "0.0.0",
23307     "filename": "server/api/smsAccount/index.js",
23308     "groupTitle": "Sms_Accounts"
23309   },
23310   {
23311     "type": "get",
23312     "url": "/api/sms/accounts/{id}",
23313     "title": "Gets a single Account",
23314     "examples": [
23315       {
23316         "title": "Example usage:",
23317         "content": "curl https://{domain}/api/sms/accounts/{id} -v -u {name}:{password}",
23318         "type": "json"
23319       }
23320     ],
23321     "name": "ShowAccounts",
23322     "group": "Sms_Accounts",
23323     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23324     "version": "0.0.0",
23325     "filename": "server/api/smsAccount/index.js",
23326     "groupTitle": "Sms_Accounts"
23327   },
23328   {
23329     "type": "put",
23330     "url": "/api/sms/messages/{id}/accept",
23331     "title": "Accepts message",
23332     "examples": [
23333       {
23334         "title": "Example usage:",
23335         "content": "curl https://{domain}/api/sms/messages/{id}/accept \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
23336         "type": "json"
23337       }
23338     ],
23339     "name": "acceptMessage",
23340     "group": "Sms_Accounts",
23341     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23342     "version": "0.0.0",
23343     "filename": "server/api/smsMessage/index.js",
23344     "groupTitle": "Sms_Accounts"
23345   },
23346   {
23347     "type": "post",
23348     "url": "/api/sms/accounts/{id}/canned_answers",
23349     "title": "Creates new canned answer",
23350     "examples": [
23351       {
23352         "title": "Example usage:",
23353         "content": "curl https://{domain}/api/sms/accounts/{id}/canned_answers -d '{\"name\": \"vip\"}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
23354         "type": "json"
23355       }
23356     ],
23357     "name": "addAnswer",
23358     "group": "Sms_Accounts",
23359     "parameter": {
23360       "fields": {
23361         "Body": [
23362           {
23363             "group": "Body",
23364             "type": "String",
23365             "optional": false,
23366             "field": "key",
23367             "description": ""
23368           },
23369           {
23370             "group": "Body",
23371             "type": "Text",
23372             "optional": false,
23373             "field": "value",
23374             "description": ""
23375           },
23376           {
23377             "group": "Body",
23378             "type": "String",
23379             "optional": true,
23380             "field": "description",
23381             "description": ""
23382           },
23383           {
23384             "group": "Body",
23385             "type": "Virtual",
23386             "optional": true,
23387             "field": "name",
23388             "description": ""
23389           }
23390         ]
23391       }
23392     },
23393     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23394     "version": "0.0.0",
23395     "filename": "server/api/smsAccount/index.js",
23396     "groupTitle": "Sms_Accounts"
23397   },
23398   {
23399     "type": "post",
23400     "url": "/api/sms/accounts/{id}/applications",
23401     "title": "Creates new applications",
23402     "examples": [
23403       {
23404         "title": "Example usage:",
23405         "content": "curl https://{domain}/api/sms/accounts/{id}/applications -d '[{\"app\": \"queue\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
23406         "type": "json"
23407       }
23408     ],
23409     "name": "addApplications",
23410     "group": "Sms_Accounts",
23411     "parameter": {
23412       "fields": {
23413         "Body": [
23414           {
23415             "group": "Body",
23416             "type": "Integer",
23417             "optional": false,
23418             "field": "priority",
23419             "description": ""
23420           },
23421           {
23422             "group": "Body",
23423             "type": "String",
23424             "optional": false,
23425             "field": "app",
23426             "description": ""
23427           },
23428           {
23429             "group": "Body",
23430             "type": "Text",
23431             "optional": true,
23432             "field": "appdata",
23433             "description": ""
23434           },
23435           {
23436             "group": "Body",
23437             "type": "String",
23438             "optional": true,
23439             "field": "description",
23440             "description": ""
23441           },
23442           {
23443             "group": "Body",
23444             "type": "String",
23445             "optional": true,
23446             "field": "interval",
23447             "description": ""
23448           }
23449         ]
23450       }
23451     },
23452     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23453     "version": "0.0.0",
23454     "filename": "server/api/smsAccount/index.js",
23455     "groupTitle": "Sms_Accounts"
23456   },
23457   {
23458     "type": "post",
23459     "url": "/api/sms/accounts/{id}/dispositions",
23460     "title": "Creates new disposition",
23461     "examples": [
23462       {
23463         "title": "Example usage:",
23464         "content": "curl https://{domain}/api/sms/accounts/{id}/dispositions -d '{\"name\": \"vip\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
23465         "type": "json"
23466       }
23467     ],
23468     "name": "addDisposition",
23469     "group": "Sms_Accounts",
23470     "parameter": {
23471       "fields": {
23472         "Body": [
23473           {
23474             "group": "Body",
23475             "type": "String",
23476             "optional": false,
23477             "field": "name",
23478             "description": ""
23479           },
23480           {
23481             "group": "Body",
23482             "type": "String",
23483             "allowedValues": [
23484               "\"first\"",
23485               "\"second\"",
23486               "\"third\""
23487             ],
23488             "optional": false,
23489             "field": "level",
23490             "description": ""
23491           },
23492           {
23493             "group": "Body",
23494             "type": "String",
23495             "optional": true,
23496             "field": "description",
23497             "description": ""
23498           }
23499         ]
23500       }
23501     },
23502     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23503     "version": "0.0.0",
23504     "filename": "server/api/smsAccount/index.js",
23505     "groupTitle": "Sms_Accounts"
23506   },
23507   {
23508     "type": "get",
23509     "url": "/api/sms/accounts/{id}/canned_answers",
23510     "title": "Gets account canned answers",
23511     "examples": [
23512       {
23513         "title": "Example usage:",
23514         "content": "curl https://{domain}/api/sms/accounts/{id}/canned_answers -v -u {name}:{password} -X GET",
23515         "type": "json"
23516       }
23517     ],
23518     "name": "getAnswers",
23519     "group": "Sms_Accounts",
23520     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23521     "version": "0.0.0",
23522     "filename": "server/api/smsAccount/index.js",
23523     "groupTitle": "Sms_Accounts"
23524   },
23525   {
23526     "type": "get",
23527     "url": "/api/sms/accounts/{id}/applications",
23528     "title": "Gets account applications",
23529     "examples": [
23530       {
23531         "title": "Example usage:",
23532         "content": "curl https://{domain}/api/sms/accounts/{id}/applications -v -u {name}:{password} -X GET",
23533         "type": "json"
23534       }
23535     ],
23536     "name": "getApplications",
23537     "group": "Sms_Accounts",
23538     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23539     "version": "0.0.0",
23540     "filename": "server/api/smsAccount/index.js",
23541     "groupTitle": "Sms_Accounts"
23542   },
23543   {
23544     "type": "get",
23545     "url": "/api/sms/accounts/{id}/dispositions",
23546     "title": "Gets account dispositions",
23547     "examples": [
23548       {
23549         "title": "Example usage:",
23550         "content": "curl https://{domain}/api/sms/accounts/{id}/dispositions -v -u {name}:{password} -X GET",
23551         "type": "json"
23552       }
23553     ],
23554     "name": "getDispositions",
23555     "group": "Sms_Accounts",
23556     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23557     "version": "0.0.0",
23558     "filename": "server/api/smsAccount/index.js",
23559     "groupTitle": "Sms_Accounts"
23560   },
23561   {
23562     "type": "get",
23563     "url": "/api/sms/accounts/{id}/interactions",
23564     "title": "Gets Sms Account interactions",
23565     "examples": [
23566       {
23567         "title": "Example usage:",
23568         "content": "curl https://{domain}/api/sms/accounts/{id}/interactions -v -u {name}:{password} -X GET",
23569         "type": "json"
23570       }
23571     ],
23572     "name": "getInteractions",
23573     "group": "Sms_Accounts",
23574     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23575     "version": "0.0.0",
23576     "filename": "server/api/smsAccount/index.js",
23577     "groupTitle": "Sms_Accounts"
23578   },
23579   {
23580     "type": "post",
23581     "url": "/api/sms/accounts/{id}/notify",
23582     "title": "Notify new message",
23583     "examples": [
23584       {
23585         "title": "Example usage:",
23586         "content": "curl https://{domain}/api/sms/accounts/{id}/notify -d '{\"body\": \"hello world\", \"...\": \"...\"}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
23587         "type": "json"
23588       }
23589     ],
23590     "name": "notify",
23591     "group": "Sms_Accounts",
23592     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <p>This API is used to create a new sms message to be sent to the system.</p>",
23593     "version": "0.0.0",
23594     "filename": "server/api/smsAccount/index.js",
23595     "groupTitle": "Sms_Accounts"
23596   },
23597   {
23598     "type": "put",
23599     "url": "/api/sms/messages/{id}/reject",
23600     "title": "Rejects message",
23601     "examples": [
23602       {
23603         "title": "Example usage:",
23604         "content": "curl https://{domain}/api/sms/messages/{id}/reject \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
23605         "type": "json"
23606       }
23607     ],
23608     "name": "rejectMessage",
23609     "group": "Sms_Accounts",
23610     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23611     "version": "0.0.0",
23612     "filename": "server/api/smsMessage/index.js",
23613     "groupTitle": "Sms_Accounts"
23614   },
23615   {
23616     "type": "post",
23617     "url": "/api/sms/accounts/{id}/send",
23618     "title": "Send new sms message",
23619     "examples": [
23620       {
23621         "title": "Example usage:",
23622         "content": "curl https://{domain}/api/sms/accounts/{id}/send -d '{from: '+39333123456', body: 'This is a test'}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
23623         "type": "json"
23624       }
23625     ],
23626     "name": "sendSms",
23627     "group": "Sms_Accounts",
23628     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23629     "version": "0.0.0",
23630     "filename": "server/api/smsAccount/index.js",
23631     "groupTitle": "Sms_Accounts"
23632   },
23633   {
23634     "type": "post",
23635     "url": "/api/sms/messages/{id}/status",
23636     "title": "Receive message status",
23637     "examples": [
23638       {
23639         "title": "Example usage:",
23640         "content": "curl https://{domain}/api/sms/messages/{id}/status \\ \n -H 'Content-Type: application/json' -v -X POST",
23641         "type": "json"
23642       }
23643     ],
23644     "name": "statusMessage",
23645     "group": "Sms_Accounts",
23646     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23647     "version": "0.0.0",
23648     "filename": "server/api/smsMessage/index.js",
23649     "groupTitle": "Sms_Accounts"
23650   },
23651   {
23652     "type": "post",
23653     "url": "/api/sms/accounts/{id}/status",
23654     "title": "Receive message status",
23655     "examples": [
23656       {
23657         "title": "Example usage:",
23658         "content": "curl https://{domain}/api/sms/accounts/{id}/status -H 'Content-Type: application/json' -v -X POST",
23659         "type": "json"
23660       }
23661     ],
23662     "name": "statusMessage",
23663     "group": "Sms_Accounts",
23664     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23665     "version": "0.0.0",
23666     "filename": "server/api/smsAccount/index.js",
23667     "groupTitle": "Sms_Accounts"
23668   },
23669   {
23670     "type": "get",
23671     "url": "/api/sms/accounts/{id}/status",
23672     "title": "Receive message status as get request",
23673     "examples": [
23674       {
23675         "title": "Example usage:",
23676         "content": "curl https://{domain}/api/sms/accounts/{id}/status -H 'Content-Type: application/json' -v -X GET",
23677         "type": "json"
23678       }
23679     ],
23680     "name": "statusMessage",
23681     "group": "Sms_Accounts",
23682     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23683     "version": "0.0.0",
23684     "filename": "server/api/smsAccount/index.js",
23685     "groupTitle": "Sms_Accounts"
23686   },
23687   {
23688     "type": "put",
23689     "url": "/api/sms/accounts/{id}",
23690     "title": "Update an existing Account",
23691     "examples": [
23692       {
23693         "title": "Example usage:",
23694         "content": "curl https://{domain}/api/sms/accounts/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
23695         "type": "json"
23696       }
23697     ],
23698     "name": "updateAccounts",
23699     "group": "Sms_Accounts",
23700     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23701     "version": "0.0.0",
23702     "filename": "server/api/smsAccount/index.js",
23703     "groupTitle": "Sms_Accounts"
23704   },
23705   {
23706     "type": "post",
23707     "url": "/api/sms/applications",
23708     "title": "Creates a new Application",
23709     "examples": [
23710       {
23711         "title": "Example usage:",
23712         "content": "curl https://{domain}/api/sms/applications -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
23713         "type": "json"
23714       }
23715     ],
23716     "name": "CreateApplications",
23717     "group": "Sms_Applications",
23718     "parameter": {
23719       "fields": {
23720         "Body": [
23721           {
23722             "group": "Body",
23723             "type": "Integer",
23724             "optional": false,
23725             "field": "priority",
23726             "description": ""
23727           },
23728           {
23729             "group": "Body",
23730             "type": "String",
23731             "optional": false,
23732             "field": "app",
23733             "description": ""
23734           },
23735           {
23736             "group": "Body",
23737             "type": "Text",
23738             "optional": true,
23739             "field": "appdata",
23740             "description": ""
23741           },
23742           {
23743             "group": "Body",
23744             "type": "String",
23745             "optional": true,
23746             "field": "description",
23747             "description": ""
23748           },
23749           {
23750             "group": "Body",
23751             "type": "String",
23752             "optional": true,
23753             "field": "interval",
23754             "description": ""
23755           }
23756         ]
23757       }
23758     },
23759     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23760     "version": "0.0.0",
23761     "filename": "server/api/smsApplication/index.js",
23762     "groupTitle": "Sms_Applications"
23763   },
23764   {
23765     "type": "delete",
23766     "url": "/api/sms/applications/{id}",
23767     "title": "Deletes a Application",
23768     "examples": [
23769       {
23770         "title": "Example usage:",
23771         "content": "curl https://{domain}/api/sms/applications/{id} -v -u {name}:{password} -X DELETE",
23772         "type": "json"
23773       }
23774     ],
23775     "name": "DeleteApplications",
23776     "group": "Sms_Applications",
23777     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23778     "version": "0.0.0",
23779     "filename": "server/api/smsApplication/index.js",
23780     "groupTitle": "Sms_Applications"
23781   },
23782   {
23783     "type": "get",
23784     "url": "/api/sms/applications",
23785     "title": "Gets a list of Applications",
23786     "examples": [
23787       {
23788         "title": "Example usage:",
23789         "content": "curl https://{domain}/api/sms/applications -v -u {name}:{password}",
23790         "type": "json"
23791       }
23792     ],
23793     "name": "GetApplications",
23794     "group": "Sms_Applications",
23795     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/sms/applications?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/sms/applications?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/sms/applications?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/sms/applications?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/sms/applications?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
23796     "version": "0.0.0",
23797     "filename": "server/api/smsApplication/index.js",
23798     "groupTitle": "Sms_Applications"
23799   },
23800   {
23801     "type": "get",
23802     "url": "/api/sms/applications/{id}",
23803     "title": "Gets a single Application",
23804     "examples": [
23805       {
23806         "title": "Example usage:",
23807         "content": "curl https://{domain}/api/sms/applications/{id} -v -u {name}:{password}",
23808         "type": "json"
23809       }
23810     ],
23811     "name": "ShowApplications",
23812     "group": "Sms_Applications",
23813     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23814     "version": "0.0.0",
23815     "filename": "server/api/smsApplication/index.js",
23816     "groupTitle": "Sms_Applications"
23817   },
23818   {
23819     "type": "put",
23820     "url": "/api/sms/applications/{id}",
23821     "title": "Update an existing Application",
23822     "examples": [
23823       {
23824         "title": "Example usage:",
23825         "content": "curl https://{domain}/api/sms/applications/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
23826         "type": "json"
23827       }
23828     ],
23829     "name": "updateApplications",
23830     "group": "Sms_Applications",
23831     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23832     "version": "0.0.0",
23833     "filename": "server/api/smsApplication/index.js",
23834     "groupTitle": "Sms_Applications"
23835   },
23836   {
23837     "type": "post",
23838     "url": "/api/sms/interactions/{id}/tags",
23839     "title": "Add tags to the interaction",
23840     "examples": [
23841       {
23842         "title": "Example usage:",
23843         "content": "curl https://{domain}/api/sms/interaction/{id}/tags -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
23844         "type": "json"
23845       }
23846     ],
23847     "name": "AddTags",
23848     "group": "Sms_Interactions",
23849     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23850     "version": "0.0.0",
23851     "filename": "server/api/smsInteraction/index.js",
23852     "groupTitle": "Sms_Interactions"
23853   },
23854   {
23855     "type": "post",
23856     "url": "/api/sms/interactions",
23857     "title": "Creates a new Interaction",
23858     "examples": [
23859       {
23860         "title": "Example usage:",
23861         "content": "curl https://{domain}/api/sms/interactions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
23862         "type": "json"
23863       }
23864     ],
23865     "name": "CreateInteractions",
23866     "group": "Sms_Interactions",
23867     "parameter": {
23868       "fields": {
23869         "Body": [
23870           {
23871             "group": "Body",
23872             "type": "Boolean",
23873             "optional": true,
23874             "field": "closed",
23875             "description": ""
23876           },
23877           {
23878             "group": "Body",
23879             "type": "String",
23880             "optional": true,
23881             "field": "closedAt",
23882             "description": ""
23883           },
23884           {
23885             "group": "Body",
23886             "type": "String",
23887             "optional": true,
23888             "field": "disposition",
23889             "description": ""
23890           },
23891           {
23892             "group": "Body",
23893             "type": "String",
23894             "optional": true,
23895             "field": "secondDisposition",
23896             "description": ""
23897           },
23898           {
23899             "group": "Body",
23900             "type": "String",
23901             "optional": true,
23902             "field": "thirdDisposition",
23903             "description": ""
23904           },
23905           {
23906             "group": "Body",
23907             "type": "String",
23908             "optional": true,
23909             "field": "note",
23910             "description": ""
23911           },
23912           {
23913             "group": "Body",
23914             "type": "String",
23915             "optional": true,
23916             "field": "phone",
23917             "description": ""
23918           },
23919           {
23920             "group": "Body",
23921             "type": "String",
23922             "optional": true,
23923             "field": "read1stAt",
23924             "description": ""
23925           },
23926           {
23927             "group": "Body",
23928             "type": "String",
23929             "allowedValues": [
23930               "\"in\"",
23931               "\"out\""
23932             ],
23933             "optional": false,
23934             "field": "firstMsgDirection",
23935             "description": ""
23936           },
23937           {
23938             "group": "Body",
23939             "type": "String",
23940             "optional": true,
23941             "field": "lastMsgAt",
23942             "description": ""
23943           },
23944           {
23945             "group": "Body",
23946             "type": "String",
23947             "allowedValues": [
23948               "\"in\"",
23949               "\"out\""
23950             ],
23951             "optional": false,
23952             "field": "lastMsgDirection",
23953             "description": ""
23954           },
23955           {
23956             "group": "Body",
23957             "type": "Boolean",
23958             "optional": true,
23959             "field": "autoreplyExecuted",
23960             "description": ""
23961           }
23962         ]
23963       }
23964     },
23965     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23966     "version": "0.0.0",
23967     "filename": "server/api/smsInteraction/index.js",
23968     "groupTitle": "Sms_Interactions"
23969   },
23970   {
23971     "type": "delete",
23972     "url": "/api/sms/interactions/{id}",
23973     "title": "Deletes a Interaction",
23974     "examples": [
23975       {
23976         "title": "Example usage:",
23977         "content": "curl https://{domain}/api/sms/interactions/{id} -v -u {name}:{password} -X DELETE",
23978         "type": "json"
23979       }
23980     ],
23981     "name": "DeleteInteractions",
23982     "group": "Sms_Interactions",
23983     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23984     "version": "0.0.0",
23985     "filename": "server/api/smsInteraction/index.js",
23986     "groupTitle": "Sms_Interactions"
23987   },
23988   {
23989     "type": "get",
23990     "url": "/api/sms/interactions/describe",
23991     "title": "Gets table info about Interactions",
23992     "examples": [
23993       {
23994         "title": "Example usage:",
23995         "content": "curl https://{domain}/api/sms/interactions/describe -v -u {name}:{password}",
23996         "type": "json"
23997       }
23998     ],
23999     "name": "DescribeInteractions",
24000     "group": "Sms_Interactions",
24001     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24002     "version": "0.0.0",
24003     "filename": "server/api/smsInteraction/index.js",
24004     "groupTitle": "Sms_Interactions"
24005   },
24006   {
24007     "type": "get",
24008     "url": "/api/sms/interactions",
24009     "title": "Gets a list of Interactions",
24010     "examples": [
24011       {
24012         "title": "Example usage:",
24013         "content": "curl https://{domain}/api/sms/interactions -v -u {name}:{password}",
24014         "type": "json"
24015       }
24016     ],
24017     "name": "GetInteractions",
24018     "group": "Sms_Interactions",
24019     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/sms/interactions?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/sms/interactions?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/sms/interactions?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/sms/interactions?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/sms/interactions?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
24020     "version": "0.0.0",
24021     "filename": "server/api/smsInteraction/index.js",
24022     "groupTitle": "Sms_Interactions"
24023   },
24024   {
24025     "type": "delete",
24026     "url": "/api/sms/interactions/{id}/tags",
24027     "title": "Removes tags from interaction",
24028     "examples": [
24029       {
24030         "title": "Example usage:",
24031         "content": "curl https://{domain}/api/sms/interactions/{id}/tags?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
24032         "type": "json"
24033       }
24034     ],
24035     "name": "RemoveTags",
24036     "group": "Sms_Interactions",
24037     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24038     "version": "0.0.0",
24039     "filename": "server/api/smsInteraction/index.js",
24040     "groupTitle": "Sms_Interactions"
24041   },
24042   {
24043     "type": "get",
24044     "url": "/api/sms/interactions/{id}",
24045     "title": "Gets a single Interaction",
24046     "examples": [
24047       {
24048         "title": "Example usage:",
24049         "content": "curl https://{domain}/api/sms/interactions/{id} -v -u {name}:{password}",
24050         "type": "json"
24051       }
24052     ],
24053     "name": "ShowInteractions",
24054     "group": "Sms_Interactions",
24055     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24056     "version": "0.0.0",
24057     "filename": "server/api/smsInteraction/index.js",
24058     "groupTitle": "Sms_Interactions"
24059   },
24060   {
24061     "type": "post",
24062     "url": "/api/sms/interactions/{id}/messages",
24063     "title": "Creates new messages",
24064     "examples": [
24065       {
24066         "title": "Example usage:",
24067         "content": "curl https://{domain}/api/sms/interactions/{id}/messages -d '[{\"to\": \"+3901119886500\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
24068         "type": "json"
24069       }
24070     ],
24071     "name": "addMessage",
24072     "group": "Sms_Interactions",
24073     "parameter": {
24074       "fields": {
24075         "Body": [
24076           {
24077             "group": "Body",
24078             "type": "Text",
24079             "optional": false,
24080             "field": "body",
24081             "description": ""
24082           },
24083           {
24084             "group": "Body",
24085             "type": "Boolean",
24086             "optional": true,
24087             "field": "read",
24088             "description": ""
24089           },
24090           {
24091             "group": "Body",
24092             "type": "String",
24093             "allowedValues": [
24094               "\"in\"",
24095               "\"out\""
24096             ],
24097             "optional": false,
24098             "field": "direction",
24099             "description": ""
24100           },
24101           {
24102             "group": "Body",
24103             "type": "String",
24104             "optional": true,
24105             "field": "messageId",
24106             "description": ""
24107           },
24108           {
24109             "group": "Body",
24110             "type": "String",
24111             "optional": true,
24112             "field": "phone",
24113             "description": ""
24114           },
24115           {
24116             "group": "Body",
24117             "type": "String",
24118             "optional": true,
24119             "field": "readAt",
24120             "description": ""
24121           },
24122           {
24123             "group": "Body",
24124             "type": "Boolean",
24125             "optional": true,
24126             "field": "secret",
24127             "description": ""
24128           },
24129           {
24130             "group": "Body",
24131             "type": "String",
24132             "optional": true,
24133             "field": "providerName",
24134             "description": ""
24135           },
24136           {
24137             "group": "Body",
24138             "type": "Text",
24139             "optional": true,
24140             "field": "providerResponse",
24141             "description": ""
24142           }
24143         ]
24144       }
24145     },
24146     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24147     "version": "0.0.0",
24148     "filename": "server/api/smsInteraction/index.js",
24149     "groupTitle": "Sms_Interactions"
24150   },
24151   {
24152     "type": "get",
24153     "url": "/api/sms/interactions/{id}/download",
24154     "title": "Gets interaction",
24155     "examples": [
24156       {
24157         "title": "Example usage:",
24158         "content": "curl https://{domain}/api/sms/interactions/{id}/download -v -u {name}:{password} -X GET",
24159         "type": "json"
24160       }
24161     ],
24162     "name": "download",
24163     "group": "Sms_Interactions",
24164     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24165     "version": "0.0.0",
24166     "filename": "server/api/smsInteraction/index.js",
24167     "groupTitle": "Sms_Interactions"
24168   },
24169   {
24170     "type": "get",
24171     "url": "/api/sms/interactions/{id}/messages",
24172     "title": "Gets interaction messages",
24173     "examples": [
24174       {
24175         "title": "Example usage:",
24176         "content": "curl https://{domain}/api/sms/interactions/{id}/messages -v -u {name}:{password} -X GET",
24177         "type": "json"
24178       }
24179     ],
24180     "name": "getMessages",
24181     "group": "Sms_Interactions",
24182     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24183     "version": "0.0.0",
24184     "filename": "server/api/smsInteraction/index.js",
24185     "groupTitle": "Sms_Interactions"
24186   },
24187   {
24188     "type": "put",
24189     "url": "/api/sms/interactions/{id}",
24190     "title": "Update an existing Interaction",
24191     "examples": [
24192       {
24193         "title": "Example usage:",
24194         "content": "curl https://{domain}/api/sms/interactions/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
24195         "type": "json"
24196       }
24197     ],
24198     "name": "updateInteractions",
24199     "group": "Sms_Interactions",
24200     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24201     "version": "0.0.0",
24202     "filename": "server/api/smsInteraction/index.js",
24203     "groupTitle": "Sms_Interactions"
24204   },
24205   {
24206     "type": "post",
24207     "url": "/api/sms/messages",
24208     "title": "Creates a new Message",
24209     "examples": [
24210       {
24211         "title": "Example usage:",
24212         "content": "curl https://{domain}/api/sms/messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
24213         "type": "json"
24214       }
24215     ],
24216     "name": "CreateMessages",
24217     "group": "Sms_Messages",
24218     "parameter": {
24219       "fields": {
24220         "Body": [
24221           {
24222             "group": "Body",
24223             "type": "Text",
24224             "optional": false,
24225             "field": "body",
24226             "description": ""
24227           },
24228           {
24229             "group": "Body",
24230             "type": "Boolean",
24231             "optional": true,
24232             "field": "read",
24233             "description": ""
24234           },
24235           {
24236             "group": "Body",
24237             "type": "String",
24238             "allowedValues": [
24239               "\"in\"",
24240               "\"out\""
24241             ],
24242             "optional": false,
24243             "field": "direction",
24244             "description": ""
24245           },
24246           {
24247             "group": "Body",
24248             "type": "String",
24249             "optional": true,
24250             "field": "messageId",
24251             "description": ""
24252           },
24253           {
24254             "group": "Body",
24255             "type": "String",
24256             "optional": true,
24257             "field": "phone",
24258             "description": ""
24259           },
24260           {
24261             "group": "Body",
24262             "type": "String",
24263             "optional": true,
24264             "field": "readAt",
24265             "description": ""
24266           },
24267           {
24268             "group": "Body",
24269             "type": "Boolean",
24270             "optional": true,
24271             "field": "secret",
24272             "description": ""
24273           },
24274           {
24275             "group": "Body",
24276             "type": "String",
24277             "optional": true,
24278             "field": "providerName",
24279             "description": ""
24280           },
24281           {
24282             "group": "Body",
24283             "type": "Text",
24284             "optional": true,
24285             "field": "providerResponse",
24286             "description": ""
24287           }
24288         ]
24289       }
24290     },
24291     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24292     "version": "0.0.0",
24293     "filename": "server/api/smsMessage/index.js",
24294     "groupTitle": "Sms_Messages"
24295   },
24296   {
24297     "type": "delete",
24298     "url": "/api/sms/messages/{id}",
24299     "title": "Deletes a Message",
24300     "examples": [
24301       {
24302         "title": "Example usage:",
24303         "content": "curl https://{domain}/api/sms/messages/{id} -v -u {name}:{password} -X DELETE",
24304         "type": "json"
24305       }
24306     ],
24307     "name": "DeleteMessages",
24308     "group": "Sms_Messages",
24309     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24310     "version": "0.0.0",
24311     "filename": "server/api/smsMessage/index.js",
24312     "groupTitle": "Sms_Messages"
24313   },
24314   {
24315     "type": "get",
24316     "url": "/api/sms/messages/describe",
24317     "title": "Gets table info about Messages",
24318     "examples": [
24319       {
24320         "title": "Example usage:",
24321         "content": "curl https://{domain}/api/sms/messages/describe -v -u {name}:{password}",
24322         "type": "json"
24323       }
24324     ],
24325     "name": "DescribeMessages",
24326     "group": "Sms_Messages",
24327     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24328     "version": "0.0.0",
24329     "filename": "server/api/smsMessage/index.js",
24330     "groupTitle": "Sms_Messages"
24331   },
24332   {
24333     "type": "get",
24334     "url": "/api/sms/messages",
24335     "title": "Gets a list of Messages",
24336     "examples": [
24337       {
24338         "title": "Example usage:",
24339         "content": "curl https://{domain}/api/sms/messages -v -u {name}:{password}",
24340         "type": "json"
24341       }
24342     ],
24343     "name": "GetMessages",
24344     "group": "Sms_Messages",
24345     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/sms/messages?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/sms/messages?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/sms/messages?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/sms/messages?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/sms/messages?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
24346     "version": "0.0.0",
24347     "filename": "server/api/smsMessage/index.js",
24348     "groupTitle": "Sms_Messages"
24349   },
24350   {
24351     "type": "get",
24352     "url": "/api/sms/messages/{id}",
24353     "title": "Gets a single Message",
24354     "examples": [
24355       {
24356         "title": "Example usage:",
24357         "content": "curl https://{domain}/api/sms/messages/{id} -v -u {name}:{password}",
24358         "type": "json"
24359       }
24360     ],
24361     "name": "ShowMessages",
24362     "group": "Sms_Messages",
24363     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24364     "version": "0.0.0",
24365     "filename": "server/api/smsMessage/index.js",
24366     "groupTitle": "Sms_Messages"
24367   },
24368   {
24369     "type": "put",
24370     "url": "/api/sms/messages/{id}",
24371     "title": "Update an existing Message",
24372     "examples": [
24373       {
24374         "title": "Example usage:",
24375         "content": "curl https://{domain}/api/sms/messages/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
24376         "type": "json"
24377       }
24378     ],
24379     "name": "updateMessages",
24380     "group": "Sms_Messages",
24381     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24382     "version": "0.0.0",
24383     "filename": "server/api/smsMessage/index.js",
24384     "groupTitle": "Sms_Messages"
24385   },
24386   {
24387     "type": "post",
24388     "url": "/api/sms/reports/queue",
24389     "title": "Creates a new Sms Queue Report",
24390     "examples": [
24391       {
24392         "title": "Example usage:",
24393         "content": "curl https://{domain}/api/sms/reports/queue -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
24394         "type": "json"
24395       }
24396     ],
24397     "name": "CreateSms_Queue_Reports",
24398     "group": "Sms_Queue_Reports",
24399     "parameter": {
24400       "fields": {
24401         "Body": [
24402           {
24403             "group": "Body",
24404             "type": "String",
24405             "optional": false,
24406             "field": "uniqueid",
24407             "description": ""
24408           },
24409           {
24410             "group": "Body",
24411             "type": "String",
24412             "optional": true,
24413             "field": "from",
24414             "description": ""
24415           },
24416           {
24417             "group": "Body",
24418             "type": "String",
24419             "optional": true,
24420             "field": "joinAt",
24421             "description": ""
24422           },
24423           {
24424             "group": "Body",
24425             "type": "String",
24426             "optional": true,
24427             "field": "leaveAt",
24428             "description": ""
24429           },
24430           {
24431             "group": "Body",
24432             "type": "String",
24433             "optional": true,
24434             "field": "acceptAt",
24435             "description": ""
24436           },
24437           {
24438             "group": "Body",
24439             "type": "String",
24440             "optional": true,
24441             "field": "exitAt",
24442             "description": ""
24443           },
24444           {
24445             "group": "Body",
24446             "type": "String",
24447             "optional": true,
24448             "field": "reason",
24449             "description": ""
24450           }
24451         ]
24452       }
24453     },
24454     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24455     "version": "0.0.0",
24456     "filename": "server/api/smsQueueReport/index.js",
24457     "groupTitle": "Sms_Queue_Reports"
24458   },
24459   {
24460     "type": "delete",
24461     "url": "/api/sms/reports/queue/{id}",
24462     "title": "Deletes a Sms Queue Report",
24463     "examples": [
24464       {
24465         "title": "Example usage:",
24466         "content": "curl https://{domain}/api/sms/reports/queue/{id} -v -u {name}:{password} -X DELETE",
24467         "type": "json"
24468       }
24469     ],
24470     "name": "DeleteSms_Queue_Reports",
24471     "group": "Sms_Queue_Reports",
24472     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24473     "version": "0.0.0",
24474     "filename": "server/api/smsQueueReport/index.js",
24475     "groupTitle": "Sms_Queue_Reports"
24476   },
24477   {
24478     "type": "get",
24479     "url": "/api/sms/reports/queue/describe",
24480     "title": "Gets table info about Sms Queue Reports",
24481     "examples": [
24482       {
24483         "title": "Example usage:",
24484         "content": "curl https://{domain}/api/sms/reports/queue/describe -v -u {name}:{password}",
24485         "type": "json"
24486       }
24487     ],
24488     "name": "DescribeSms_Queue_Reports",
24489     "group": "Sms_Queue_Reports",
24490     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24491     "version": "0.0.0",
24492     "filename": "server/api/smsQueueReport/index.js",
24493     "groupTitle": "Sms_Queue_Reports"
24494   },
24495   {
24496     "type": "get",
24497     "url": "/api/sms/reports/queue",
24498     "title": "Gets a list of Sms Queue Reports",
24499     "examples": [
24500       {
24501         "title": "Example usage:",
24502         "content": "curl https://{domain}/api/sms/reports/queue -v -u {name}:{password}",
24503         "type": "json"
24504       }
24505     ],
24506     "name": "GetSms_Queue_Reports",
24507     "group": "Sms_Queue_Reports",
24508     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/sms/reports/queue?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/sms/reports/queue?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/sms/reports/queue?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/sms/reports/queue?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/sms/reports/queue?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
24509     "version": "0.0.0",
24510     "filename": "server/api/smsQueueReport/index.js",
24511     "groupTitle": "Sms_Queue_Reports"
24512   },
24513   {
24514     "type": "get",
24515     "url": "/api/sms/reports/queue/{id}",
24516     "title": "Gets a single Sms Queue Report",
24517     "examples": [
24518       {
24519         "title": "Example usage:",
24520         "content": "curl https://{domain}/api/sms/reports/queue/{id} -v -u {name}:{password}",
24521         "type": "json"
24522       }
24523     ],
24524     "name": "ShowSms_Queue_Reports",
24525     "group": "Sms_Queue_Reports",
24526     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24527     "version": "0.0.0",
24528     "filename": "server/api/smsQueueReport/index.js",
24529     "groupTitle": "Sms_Queue_Reports"
24530   },
24531   {
24532     "type": "put",
24533     "url": "/api/sms/reports/queue/{id}",
24534     "title": "Update an existing Sms Queue Report",
24535     "examples": [
24536       {
24537         "title": "Example usage:",
24538         "content": "curl https://{domain}/api/sms/reports/queue/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
24539         "type": "json"
24540       }
24541     ],
24542     "name": "updateSms_Queue_Reports",
24543     "group": "Sms_Queue_Reports",
24544     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24545     "version": "0.0.0",
24546     "filename": "server/api/smsQueueReport/index.js",
24547     "groupTitle": "Sms_Queue_Reports"
24548   },
24549   {
24550     "type": "post",
24551     "url": "/api/sms/queues/{id}/users",
24552     "title": "Add agents to a queue",
24553     "examples": [
24554       {
24555         "title": "Example usage:",
24556         "content": "curl https://{domain}/api/sms/queues/{id}/users -d '{\"ids\": [1,2], \"penalty\": 2}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
24557         "type": "json"
24558       }
24559     ],
24560     "name": "AddAgents",
24561     "group": "Sms_Queues",
24562     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24563     "version": "0.0.0",
24564     "filename": "server/api/smsQueue/index.js",
24565     "groupTitle": "Sms_Queues"
24566   },
24567   {
24568     "type": "post",
24569     "url": "/api/sms/queues/{id}/teams",
24570     "title": "Add teams to a queue",
24571     "examples": [
24572       {
24573         "title": "Example usage:",
24574         "content": "curl https://{domain}/api/sms/queues/{id}/teams -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
24575         "type": "json"
24576       }
24577     ],
24578     "name": "AddTeams",
24579     "group": "Sms_Queues",
24580     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24581     "version": "0.0.0",
24582     "filename": "server/api/smsQueue/index.js",
24583     "groupTitle": "Sms_Queues"
24584   },
24585   {
24586     "type": "post",
24587     "url": "/api/sms/queues",
24588     "title": "Creates a new Queue",
24589     "examples": [
24590       {
24591         "title": "Example usage:",
24592         "content": "curl https://{domain}/api/sms/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
24593         "type": "json"
24594       }
24595     ],
24596     "name": "CreateQueues",
24597     "group": "Sms_Queues",
24598     "parameter": {
24599       "fields": {
24600         "Body": [
24601           {
24602             "group": "Body",
24603             "type": "String",
24604             "optional": true,
24605             "field": "name",
24606             "description": ""
24607           },
24608           {
24609             "group": "Body",
24610             "type": "String",
24611             "optional": true,
24612             "field": "description",
24613             "description": ""
24614           },
24615           {
24616             "group": "Body",
24617             "type": "Integer",
24618             "optional": true,
24619             "field": "timeout",
24620             "description": ""
24621           },
24622           {
24623             "group": "Body",
24624             "type": "String",
24625             "allowedValues": [
24626               "\"rrmemory\"",
24627               "\"beepall\"",
24628               "\"roundrobin\""
24629             ],
24630             "optional": true,
24631             "field": "strategy",
24632             "description": ""
24633           }
24634         ]
24635       }
24636     },
24637     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24638     "version": "0.0.0",
24639     "filename": "server/api/smsQueue/index.js",
24640     "groupTitle": "Sms_Queues"
24641   },
24642   {
24643     "type": "delete",
24644     "url": "/api/sms/queues/{id}",
24645     "title": "Deletes a Queue",
24646     "examples": [
24647       {
24648         "title": "Example usage:",
24649         "content": "curl https://{domain}/api/sms/queues/{id} -v -u {name}:{password} -X DELETE",
24650         "type": "json"
24651       }
24652     ],
24653     "name": "DeleteQueues",
24654     "group": "Sms_Queues",
24655     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24656     "version": "0.0.0",
24657     "filename": "server/api/smsQueue/index.js",
24658     "groupTitle": "Sms_Queues"
24659   },
24660   {
24661     "type": "get",
24662     "url": "/api/sms/queues/describe",
24663     "title": "Gets table info about Queues",
24664     "examples": [
24665       {
24666         "title": "Example usage:",
24667         "content": "curl https://{domain}/api/sms/queues/describe -v -u {name}:{password}",
24668         "type": "json"
24669       }
24670     ],
24671     "name": "DescribeQueues",
24672     "group": "Sms_Queues",
24673     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24674     "version": "0.0.0",
24675     "filename": "server/api/smsQueue/index.js",
24676     "groupTitle": "Sms_Queues"
24677   },
24678   {
24679     "type": "get",
24680     "url": "/api/sms/queues/{id}/users",
24681     "title": "Gets queue agents",
24682     "examples": [
24683       {
24684         "title": "Example usage:",
24685         "content": "curl https://{domain}/api/sms/queues/{id}/users -v -u {name}:{password} -X POST",
24686         "type": "json"
24687       }
24688     ],
24689     "name": "GetAgents",
24690     "group": "Sms_Queues",
24691     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24692     "version": "0.0.0",
24693     "filename": "server/api/smsQueue/index.js",
24694     "groupTitle": "Sms_Queues"
24695   },
24696   {
24697     "type": "get",
24698     "url": "/api/sms/queues/{id}/members",
24699     "title": "GetMembers",
24700     "examples": [
24701       {
24702         "title": "Example usage:",
24703         "content": "curl https://{domain}/api/sms/queues/{id}/members  -v -u {name}:{password}",
24704         "type": "json"
24705       }
24706     ],
24707     "name": "GetMembers",
24708     "group": "Sms_Queues",
24709     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24710     "version": "0.0.0",
24711     "filename": "server/api/smsQueue/index.js",
24712     "groupTitle": "Sms_Queues"
24713   },
24714   {
24715     "type": "get",
24716     "url": "/api/sms/queues",
24717     "title": "Gets a list of Queues",
24718     "examples": [
24719       {
24720         "title": "Example usage:",
24721         "content": "curl https://{domain}/api/sms/queues -v -u {name}:{password}",
24722         "type": "json"
24723       }
24724     ],
24725     "name": "GetQueues",
24726     "group": "Sms_Queues",
24727     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/sms/queues?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/sms/queues?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/sms/queues?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/sms/queues?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/sms/queues?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
24728     "version": "0.0.0",
24729     "filename": "server/api/smsQueue/index.js",
24730     "groupTitle": "Sms_Queues"
24731   },
24732   {
24733     "type": "get",
24734     "url": "/api/sms/queues/{id}/teams",
24735     "title": "Gets queues list",
24736     "examples": [
24737       {
24738         "title": "Example usage:",
24739         "content": "curl https://{domain}/api/sms/queues/{id}/teams -v -u {name}:{password}",
24740         "type": "json"
24741       }
24742     ],
24743     "name": "GetTeams",
24744     "group": "Sms_Queues",
24745     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24746     "version": "0.0.0",
24747     "filename": "server/api/smsQueue/index.js",
24748     "groupTitle": "Sms_Queues"
24749   },
24750   {
24751     "type": "delete",
24752     "url": "/api/sms/queues/{id}/users",
24753     "title": "Removes agents from a queue",
24754     "examples": [
24755       {
24756         "title": "Example usage:",
24757         "content": "curl https://{domain}/api/sms/queues/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
24758         "type": "json"
24759       }
24760     ],
24761     "name": "RemoveAgents",
24762     "group": "Sms_Queues",
24763     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24764     "version": "0.0.0",
24765     "filename": "server/api/smsQueue/index.js",
24766     "groupTitle": "Sms_Queues"
24767   },
24768   {
24769     "type": "get",
24770     "url": "/api/sms/queues/{id}",
24771     "title": "Gets a single Queue",
24772     "examples": [
24773       {
24774         "title": "Example usage:",
24775         "content": "curl https://{domain}/api/sms/queues/{id} -v -u {name}:{password}",
24776         "type": "json"
24777       }
24778     ],
24779     "name": "ShowQueues",
24780     "group": "Sms_Queues",
24781     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24782     "version": "0.0.0",
24783     "filename": "server/api/smsQueue/index.js",
24784     "groupTitle": "Sms_Queues"
24785   },
24786   {
24787     "type": "put",
24788     "url": "/api/sms/queues/{id}",
24789     "title": "Update an existing Queue",
24790     "examples": [
24791       {
24792         "title": "Example usage:",
24793         "content": "curl https://{domain}/api/sms/queues/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
24794         "type": "json"
24795       }
24796     ],
24797     "name": "updateQueues",
24798     "group": "Sms_Queues",
24799     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24800     "version": "0.0.0",
24801     "filename": "server/api/smsQueue/index.js",
24802     "groupTitle": "Sms_Queues"
24803   },
24804   {
24805     "type": "post",
24806     "url": "/api/sms/reports/transfer",
24807     "title": "Creates a new Sms Transfer Report",
24808     "examples": [
24809       {
24810         "title": "Example usage:",
24811         "content": "curl https://{domain}/api/sms/reports/transfer -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
24812         "type": "json"
24813       }
24814     ],
24815     "name": "CreateSms_Transfer_Reports",
24816     "group": "Sms_Transfer_Reports",
24817     "parameter": {
24818       "fields": {
24819         "Body": [
24820           {
24821             "group": "Body",
24822             "type": "String",
24823             "optional": false,
24824             "field": "uniqueid",
24825             "description": ""
24826           },
24827           {
24828             "group": "Body",
24829             "type": "String",
24830             "allowedValues": [
24831               "\"account\"",
24832               "\"agent\"",
24833               "\"queue\""
24834             ],
24835             "optional": false,
24836             "field": "type",
24837             "description": ""
24838           },
24839           {
24840             "group": "Body",
24841             "type": "String",
24842             "optional": false,
24843             "field": "transferredAt",
24844             "description": ""
24845           }
24846         ]
24847       }
24848     },
24849     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24850     "version": "0.0.0",
24851     "filename": "server/api/smsTransferReport/index.js",
24852     "groupTitle": "Sms_Transfer_Reports"
24853   },
24854   {
24855     "type": "delete",
24856     "url": "/api/sms/reports/transfer/{id}",
24857     "title": "Deletes a Sms Transfer Report",
24858     "examples": [
24859       {
24860         "title": "Example usage:",
24861         "content": "curl https://{domain}/api/sms/reports/transfer/{id} -v -u {name}:{password} -X DELETE",
24862         "type": "json"
24863       }
24864     ],
24865     "name": "DeleteSms_Transfer_Reports",
24866     "group": "Sms_Transfer_Reports",
24867     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24868     "version": "0.0.0",
24869     "filename": "server/api/smsTransferReport/index.js",
24870     "groupTitle": "Sms_Transfer_Reports"
24871   },
24872   {
24873     "type": "get",
24874     "url": "/api/sms/reports/transfer/describe",
24875     "title": "Gets table info about Sms Transfer Reports",
24876     "examples": [
24877       {
24878         "title": "Example usage:",
24879         "content": "curl https://{domain}/api/sms/reports/transfer/describe -v -u {name}:{password}",
24880         "type": "json"
24881       }
24882     ],
24883     "name": "DescribeSms_Transfer_Reports",
24884     "group": "Sms_Transfer_Reports",
24885     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24886     "version": "0.0.0",
24887     "filename": "server/api/smsTransferReport/index.js",
24888     "groupTitle": "Sms_Transfer_Reports"
24889   },
24890   {
24891     "type": "get",
24892     "url": "/api/sms/reports/transfer",
24893     "title": "Gets a list of Sms Transfer Reports",
24894     "examples": [
24895       {
24896         "title": "Example usage:",
24897         "content": "curl https://{domain}/api/sms/reports/transfer -v -u {name}:{password}",
24898         "type": "json"
24899       }
24900     ],
24901     "name": "GetSms_Transfer_Reports",
24902     "group": "Sms_Transfer_Reports",
24903     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/sms/reports/transfer?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/sms/reports/transfer?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/sms/reports/transfer?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/sms/reports/transfer?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/sms/reports/transfer?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
24904     "version": "0.0.0",
24905     "filename": "server/api/smsTransferReport/index.js",
24906     "groupTitle": "Sms_Transfer_Reports"
24907   },
24908   {
24909     "type": "get",
24910     "url": "/api/sms/reports/transfer/{id}",
24911     "title": "Gets a single Sms Transfer Report",
24912     "examples": [
24913       {
24914         "title": "Example usage:",
24915         "content": "curl https://{domain}/api/sms/reports/transfer/{id} -v -u {name}:{password}",
24916         "type": "json"
24917       }
24918     ],
24919     "name": "ShowSms_Transfer_Reports",
24920     "group": "Sms_Transfer_Reports",
24921     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24922     "version": "0.0.0",
24923     "filename": "server/api/smsTransferReport/index.js",
24924     "groupTitle": "Sms_Transfer_Reports"
24925   },
24926   {
24927     "type": "put",
24928     "url": "/api/sms/reports/transfer/{id}",
24929     "title": "Update an existing Sms Transfer Report",
24930     "examples": [
24931       {
24932         "title": "Example usage:",
24933         "content": "curl https://{domain}/api/sms/reports/transfer/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
24934         "type": "json"
24935       }
24936     ],
24937     "name": "updateSms_Transfer_Reports",
24938     "group": "Sms_Transfer_Reports",
24939     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24940     "version": "0.0.0",
24941     "filename": "server/api/smsTransferReport/index.js",
24942     "groupTitle": "Sms_Transfer_Reports"
24943   },
24944   {
24945     "type": "get",
24946     "url": "/api/sounds",
24947     "title": "Gets a list of Sounds",
24948     "examples": [
24949       {
24950         "title": "Example usage:",
24951         "content": "curl https://{domain}/api/sounds -v -u {name}:{password}",
24952         "type": "json"
24953       }
24954     ],
24955     "name": "GetSounds",
24956     "group": "Sounds",
24957     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/sounds?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/sounds?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/sounds?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/sounds?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/sounds?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
24958     "version": "0.0.0",
24959     "filename": "server/api/sound/index.js",
24960     "groupTitle": "Sounds"
24961   },
24962   {
24963     "type": "get",
24964     "url": "/api/sounds/{id}",
24965     "title": "Gets a single Sound",
24966     "examples": [
24967       {
24968         "title": "Example usage:",
24969         "content": "curl https://{domain}/api/sounds/{id} -v -u {name}:{password}",
24970         "type": "json"
24971       }
24972     ],
24973     "name": "ShowSounds",
24974     "group": "Sounds",
24975     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24976     "version": "0.0.0",
24977     "filename": "server/api/sound/index.js",
24978     "groupTitle": "Sounds"
24979   },
24980   {
24981     "type": "post",
24982     "url": "/api/sounds",
24983     "title": "Create a new sound",
24984     "examples": [
24985       {
24986         "title": "Example usage:",
24987         "content": "curl https://{domain}/api/sounds -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
24988         "type": "json"
24989       }
24990     ],
24991     "name": "addSound",
24992     "group": "Sounds",
24993     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24994     "version": "0.0.0",
24995     "filename": "server/api/sound/index.js",
24996     "groupTitle": "Sounds"
24997   },
24998   {
24999     "type": "delete",
25000     "url": "/api/sounds/{id}",
25001     "title": "Deletes a sound",
25002     "examples": [
25003       {
25004         "title": "Example usage:",
25005         "content": "curl https://{domain}/api/sounds/{id} -v -u {name}:{password} -X DELETE",
25006         "type": "json"
25007       }
25008     ],
25009     "name": "destroySound",
25010     "group": "Sounds",
25011     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25012     "version": "0.0.0",
25013     "filename": "server/api/sound/index.js",
25014     "groupTitle": "Sounds"
25015   },
25016   {
25017     "type": "get",
25018     "url": "/api/sounds/{id}/download",
25019     "title": "Download Sound",
25020     "examples": [
25021       {
25022         "title": "Example usage:",
25023         "content": "curl https://{domain}/api/sounds/{id}/download -v -u {name}:{password} -X GET",
25024         "type": "json"
25025       }
25026     ],
25027     "name": "download",
25028     "group": "Sounds",
25029     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25030     "version": "0.0.0",
25031     "filename": "server/api/sound/index.js",
25032     "groupTitle": "Sounds"
25033   },
25034   {
25035     "type": "put",
25036     "url": "/api/sounds",
25037     "title": "Update an existing new sound",
25038     "examples": [
25039       {
25040         "title": "Example usage:",
25041         "content": "curl https://{domain}/api/sounds -d '[\"name\": \"sound_name\", \"description\": \"sound_desc\"]' -v -u {name}:{password} -X PUT",
25042         "type": "json"
25043       }
25044     ],
25045     "name": "updateSound",
25046     "group": "Sounds",
25047     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25048     "version": "0.0.0",
25049     "filename": "server/api/sound/index.js",
25050     "groupTitle": "Sounds"
25051   },
25052   {
25053     "type": "post",
25054     "url": "/api/square/details/reports",
25055     "title": "Creates a new Square Detail Report",
25056     "examples": [
25057       {
25058         "title": "Example usage:",
25059         "content": "curl https://{domain}/api/square/details/reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
25060         "type": "json"
25061       }
25062     ],
25063     "name": "CreateSquare_Detail_Reports",
25064     "group": "Square_Details_Reports",
25065     "parameter": {
25066       "fields": {
25067         "Body": [
25068           {
25069             "group": "Body",
25070             "type": "String",
25071             "optional": true,
25072             "field": "uniqueid",
25073             "description": ""
25074           },
25075           {
25076             "group": "Body",
25077             "type": "String",
25078             "optional": true,
25079             "field": "node",
25080             "description": ""
25081           },
25082           {
25083             "group": "Body",
25084             "type": "String",
25085             "optional": true,
25086             "field": "application",
25087             "description": ""
25088           },
25089           {
25090             "group": "Body",
25091             "type": "Text",
25092             "optional": true,
25093             "field": "data",
25094             "description": ""
25095           },
25096           {
25097             "group": "Body",
25098             "type": "String",
25099             "optional": true,
25100             "field": "project_name",
25101             "description": ""
25102           },
25103           {
25104             "group": "Body",
25105             "type": "String",
25106             "optional": true,
25107             "field": "callerid",
25108             "description": ""
25109           }
25110         ]
25111       }
25112     },
25113     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25114     "version": "0.0.0",
25115     "filename": "server/api/squareReportDetail/index.js",
25116     "groupTitle": "Square_Details_Reports"
25117   },
25118   {
25119     "type": "delete",
25120     "url": "/api/square/details/reports/{id}",
25121     "title": "Deletes a Square Detail Report",
25122     "examples": [
25123       {
25124         "title": "Example usage:",
25125         "content": "curl https://{domain}/api/square/details/reports/{id} -v -u {name}:{password} -X DELETE",
25126         "type": "json"
25127       }
25128     ],
25129     "name": "DeleteSquare_Detail_Reports",
25130     "group": "Square_Details_Reports",
25131     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25132     "version": "0.0.0",
25133     "filename": "server/api/squareReportDetail/index.js",
25134     "groupTitle": "Square_Details_Reports"
25135   },
25136   {
25137     "type": "get",
25138     "url": "/api/square/details/reports/describe",
25139     "title": "Gets table info about Square Detail Reports",
25140     "examples": [
25141       {
25142         "title": "Example usage:",
25143         "content": "curl https://{domain}/api/square/details/reports/describe -v -u {name}:{password}",
25144         "type": "json"
25145       }
25146     ],
25147     "name": "DescribeSquare_Detail_Reports",
25148     "group": "Square_Details_Reports",
25149     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25150     "version": "0.0.0",
25151     "filename": "server/api/squareReportDetail/index.js",
25152     "groupTitle": "Square_Details_Reports"
25153   },
25154   {
25155     "type": "get",
25156     "url": "/api/square/details/reports",
25157     "title": "Gets a list of Square Detail Reports",
25158     "examples": [
25159       {
25160         "title": "Example usage:",
25161         "content": "curl https://{domain}/api/square/details/reports -v -u {name}:{password}",
25162         "type": "json"
25163       }
25164     ],
25165     "name": "GetSquare_Detail_Reports",
25166     "group": "Square_Details_Reports",
25167     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/square/details/reports?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/square/details/reports?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/square/details/reports?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/square/details/reports?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/square/details/reports?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
25168     "version": "0.0.0",
25169     "filename": "server/api/squareReportDetail/index.js",
25170     "groupTitle": "Square_Details_Reports"
25171   },
25172   {
25173     "type": "get",
25174     "url": "/api/square/details/reports/{id}",
25175     "title": "Gets a single Square Detail Report",
25176     "examples": [
25177       {
25178         "title": "Example usage:",
25179         "content": "curl https://{domain}/api/square/details/reports/{id} -v -u {name}:{password}",
25180         "type": "json"
25181       }
25182     ],
25183     "name": "ShowSquare_Detail_Reports",
25184     "group": "Square_Details_Reports",
25185     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25186     "version": "0.0.0",
25187     "filename": "server/api/squareReportDetail/index.js",
25188     "groupTitle": "Square_Details_Reports"
25189   },
25190   {
25191     "type": "put",
25192     "url": "/api/square/details/reports/{id}",
25193     "title": "Update an existing Square Detail Report",
25194     "examples": [
25195       {
25196         "title": "Example usage:",
25197         "content": "curl https://{domain}/api/square/details/reports/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
25198         "type": "json"
25199       }
25200     ],
25201     "name": "updateSquare_Detail_Reports",
25202     "group": "Square_Details_Reports",
25203     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25204     "version": "0.0.0",
25205     "filename": "server/api/squareReportDetail/index.js",
25206     "groupTitle": "Square_Details_Reports"
25207   },
25208   {
25209     "type": "post",
25210     "url": "/api/square/messages",
25211     "title": "Creates a new Message",
25212     "examples": [
25213       {
25214         "title": "Example usage:",
25215         "content": "curl https://{domain}/api/square/messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
25216         "type": "json"
25217       }
25218     ],
25219     "name": "CreateMessages",
25220     "group": "Square_Messages",
25221     "parameter": {
25222       "fields": {
25223         "Body": [
25224           {
25225             "group": "Body",
25226             "type": "String",
25227             "optional": true,
25228             "field": "uniqueid",
25229             "description": ""
25230           },
25231           {
25232             "group": "Body",
25233             "type": "Text",
25234             "optional": false,
25235             "field": "body",
25236             "description": ""
25237           },
25238           {
25239             "group": "Body",
25240             "type": "String",
25241             "allowedValues": [
25242               "\"in\"",
25243               "\"out\""
25244             ],
25245             "optional": false,
25246             "field": "direction",
25247             "description": ""
25248           },
25249           {
25250             "group": "Body",
25251             "type": "String",
25252             "optional": true,
25253             "field": "providerName",
25254             "description": ""
25255           },
25256           {
25257             "group": "Body",
25258             "type": "Text",
25259             "optional": true,
25260             "field": "providerResponse",
25261             "description": ""
25262           }
25263         ]
25264       }
25265     },
25266     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25267     "version": "0.0.0",
25268     "filename": "server/api/squareMessage/index.js",
25269     "groupTitle": "Square_Messages"
25270   },
25271   {
25272     "type": "delete",
25273     "url": "/api/square/messages/{id}",
25274     "title": "Deletes a Message",
25275     "examples": [
25276       {
25277         "title": "Example usage:",
25278         "content": "curl https://{domain}/api/square/messages/{id} -v -u {name}:{password} -X DELETE",
25279         "type": "json"
25280       }
25281     ],
25282     "name": "DeleteMessages",
25283     "group": "Square_Messages",
25284     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25285     "version": "0.0.0",
25286     "filename": "server/api/squareMessage/index.js",
25287     "groupTitle": "Square_Messages"
25288   },
25289   {
25290     "type": "get",
25291     "url": "/api/square/messages",
25292     "title": "Gets a list of Messages",
25293     "examples": [
25294       {
25295         "title": "Example usage:",
25296         "content": "curl https://{domain}/api/square/messages -v -u {name}:{password}",
25297         "type": "json"
25298       }
25299     ],
25300     "name": "GetMessages",
25301     "group": "Square_Messages",
25302     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/square/messages?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/square/messages?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/square/messages?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/square/messages?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/square/messages?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
25303     "version": "0.0.0",
25304     "filename": "server/api/squareMessage/index.js",
25305     "groupTitle": "Square_Messages"
25306   },
25307   {
25308     "type": "get",
25309     "url": "/api/square/messages/{id}",
25310     "title": "Gets a single Message",
25311     "examples": [
25312       {
25313         "title": "Example usage:",
25314         "content": "curl https://{domain}/api/square/messages/{id} -v -u {name}:{password}",
25315         "type": "json"
25316       }
25317     ],
25318     "name": "ShowMessages",
25319     "group": "Square_Messages",
25320     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25321     "version": "0.0.0",
25322     "filename": "server/api/squareMessage/index.js",
25323     "groupTitle": "Square_Messages"
25324   },
25325   {
25326     "type": "put",
25327     "url": "/api/square/messages/{id}",
25328     "title": "Update an existing Message",
25329     "examples": [
25330       {
25331         "title": "Example usage:",
25332         "content": "curl https://{domain}/api/square/messages/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
25333         "type": "json"
25334       }
25335     ],
25336     "name": "updateMessages",
25337     "group": "Square_Messages",
25338     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25339     "version": "0.0.0",
25340     "filename": "server/api/squareMessage/index.js",
25341     "groupTitle": "Square_Messages"
25342   },
25343   {
25344     "type": "post",
25345     "url": "/api/square/odbc",
25346     "title": "Creates a new ODBC",
25347     "examples": [
25348       {
25349         "title": "Example usage:",
25350         "content": "curl https://{domain}/api/square/odbc -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
25351         "type": "json"
25352       }
25353     ],
25354     "name": "CreateODBCs",
25355     "group": "Square_ODBC",
25356     "parameter": {
25357       "fields": {
25358         "Body": [
25359           {
25360             "group": "Body",
25361             "type": "String",
25362             "optional": false,
25363             "field": "name",
25364             "description": ""
25365           },
25366           {
25367             "group": "Body",
25368             "type": "String",
25369             "optional": true,
25370             "field": "dsn",
25371             "description": ""
25372           },
25373           {
25374             "group": "Body",
25375             "type": "String",
25376             "optional": true,
25377             "field": "description",
25378             "description": ""
25379           }
25380         ]
25381       }
25382     },
25383     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25384     "version": "0.0.0",
25385     "filename": "server/api/squareOdbc/index.js",
25386     "groupTitle": "Square_ODBC"
25387   },
25388   {
25389     "type": "delete",
25390     "url": "/api/square/odbc/{id}",
25391     "title": "Deletes a ODBC",
25392     "examples": [
25393       {
25394         "title": "Example usage:",
25395         "content": "curl https://{domain}/api/square/odbc/{id} -v -u {name}:{password} -X DELETE",
25396         "type": "json"
25397       }
25398     ],
25399     "name": "DeleteODBCs",
25400     "group": "Square_ODBC",
25401     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25402     "version": "0.0.0",
25403     "filename": "server/api/squareOdbc/index.js",
25404     "groupTitle": "Square_ODBC"
25405   },
25406   {
25407     "type": "get",
25408     "url": "/api/square/odbc",
25409     "title": "Gets a list of ODBCs",
25410     "examples": [
25411       {
25412         "title": "Example usage:",
25413         "content": "curl https://{domain}/api/square/odbc -v -u {name}:{password}",
25414         "type": "json"
25415       }
25416     ],
25417     "name": "GetODBCs",
25418     "group": "Square_ODBC",
25419     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/square/odbc?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/square/odbc?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/square/odbc?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/square/odbc?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/square/odbc?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
25420     "version": "0.0.0",
25421     "filename": "server/api/squareOdbc/index.js",
25422     "groupTitle": "Square_ODBC"
25423   },
25424   {
25425     "type": "get",
25426     "url": "/api/square/odbc/{id}",
25427     "title": "Gets a single ODBC",
25428     "examples": [
25429       {
25430         "title": "Example usage:",
25431         "content": "curl https://{domain}/api/square/odbc/{id} -v -u {name}:{password}",
25432         "type": "json"
25433       }
25434     ],
25435     "name": "ShowODBCs",
25436     "group": "Square_ODBC",
25437     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25438     "version": "0.0.0",
25439     "filename": "server/api/squareOdbc/index.js",
25440     "groupTitle": "Square_ODBC"
25441   },
25442   {
25443     "type": "get",
25444     "url": "/api/square/odbc/{id}/test",
25445     "title": "Test Odbc",
25446     "examples": [
25447       {
25448         "title": "Example usage:",
25449         "content": "curl https://{domain}/api/square/odbc/{id}/test -v -u {name}:{password} -X GET",
25450         "type": "json"
25451       }
25452     ],
25453     "name": "test",
25454     "group": "Square_ODBC",
25455     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25456     "version": "0.0.0",
25457     "filename": "server/api/squareOdbc/index.js",
25458     "groupTitle": "Square_ODBC"
25459   },
25460   {
25461     "type": "put",
25462     "url": "/api/square/odbc/{id}",
25463     "title": "Update an existing ODBC",
25464     "examples": [
25465       {
25466         "title": "Example usage:",
25467         "content": "curl https://{domain}/api/square/odbc/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
25468         "type": "json"
25469       }
25470     ],
25471     "name": "updateODBCs",
25472     "group": "Square_ODBC",
25473     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25474     "version": "0.0.0",
25475     "filename": "server/api/squareOdbc/index.js",
25476     "groupTitle": "Square_ODBC"
25477   },
25478   {
25479     "type": "post",
25480     "url": "/api/square/projects",
25481     "title": "Creates a new Project",
25482     "examples": [
25483       {
25484         "title": "Example usage:",
25485         "content": "curl https://{domain}/api/square/projects -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
25486         "type": "json"
25487       }
25488     ],
25489     "name": "CreateProjects",
25490     "group": "Square_Projects",
25491     "parameter": {
25492       "fields": {
25493         "Body": [
25494           {
25495             "group": "Body",
25496             "type": "String",
25497             "optional": false,
25498             "field": "name",
25499             "description": ""
25500           },
25501           {
25502             "group": "Body",
25503             "type": "String",
25504             "optional": true,
25505             "field": "description",
25506             "description": ""
25507           },
25508           {
25509             "group": "Body",
25510             "type": "Text",
25511             "optional": true,
25512             "field": "notes",
25513             "description": ""
25514           },
25515           {
25516             "group": "Body",
25517             "type": "Blob",
25518             "optional": true,
25519             "field": "preproduction",
25520             "description": ""
25521           },
25522           {
25523             "group": "Body",
25524             "type": "Blob",
25525             "optional": true,
25526             "field": "production",
25527             "description": ""
25528           },
25529           {
25530             "group": "Body",
25531             "type": "String",
25532             "optional": true,
25533             "field": "savedAt",
25534             "description": ""
25535           },
25536           {
25537             "group": "Body",
25538             "type": "String",
25539             "optional": true,
25540             "field": "publishedAt",
25541             "description": ""
25542           }
25543         ]
25544       }
25545     },
25546     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25547     "version": "0.0.0",
25548     "filename": "server/api/squareProject/index.js",
25549     "groupTitle": "Square_Projects"
25550   },
25551   {
25552     "type": "delete",
25553     "url": "/api/square/projects/{id}",
25554     "title": "Deletes a Project",
25555     "examples": [
25556       {
25557         "title": "Example usage:",
25558         "content": "curl https://{domain}/api/square/projects/{id} -v -u {name}:{password} -X DELETE",
25559         "type": "json"
25560       }
25561     ],
25562     "name": "DeleteProjects",
25563     "group": "Square_Projects",
25564     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25565     "version": "0.0.0",
25566     "filename": "server/api/squareProject/index.js",
25567     "groupTitle": "Square_Projects"
25568   },
25569   {
25570     "type": "get",
25571     "url": "/api/square/projects",
25572     "title": "Gets a list of Projects",
25573     "examples": [
25574       {
25575         "title": "Example usage:",
25576         "content": "curl https://{domain}/api/square/projects -v -u {name}:{password}",
25577         "type": "json"
25578       }
25579     ],
25580     "name": "GetProjects",
25581     "group": "Square_Projects",
25582     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/square/projects?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/square/projects?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/square/projects?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/square/projects?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/square/projects?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
25583     "version": "0.0.0",
25584     "filename": "server/api/squareProject/index.js",
25585     "groupTitle": "Square_Projects"
25586   },
25587   {
25588     "type": "get",
25589     "url": "/api/square/projects/{id}",
25590     "title": "Gets a single Project",
25591     "examples": [
25592       {
25593         "title": "Example usage:",
25594         "content": "curl https://{domain}/api/square/projects/{id} -v -u {name}:{password}",
25595         "type": "json"
25596       }
25597     ],
25598     "name": "ShowProjects",
25599     "group": "Square_Projects",
25600     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25601     "version": "0.0.0",
25602     "filename": "server/api/squareProject/index.js",
25603     "groupTitle": "Square_Projects"
25604   },
25605   {
25606     "type": "put",
25607     "url": "/api/square/projects/{id}",
25608     "title": "Update an existing Project",
25609     "examples": [
25610       {
25611         "title": "Example usage:",
25612         "content": "curl https://{domain}/api/square/projects/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
25613         "type": "json"
25614       }
25615     ],
25616     "name": "updateProjects",
25617     "group": "Square_Projects",
25618     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25619     "version": "0.0.0",
25620     "filename": "server/api/squareProject/index.js",
25621     "groupTitle": "Square_Projects"
25622   },
25623   {
25624     "type": "post",
25625     "url": "/api/square/recordings",
25626     "title": "Creates a new Recording",
25627     "examples": [
25628       {
25629         "title": "Example usage:",
25630         "content": "curl https://{domain}/api/square/recordings -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
25631         "type": "json"
25632       }
25633     ],
25634     "name": "CreateRecordings",
25635     "group": "Square_Recordings",
25636     "parameter": {
25637       "fields": {
25638         "Body": [
25639           {
25640             "group": "Body",
25641             "type": "String",
25642             "optional": true,
25643             "field": "uniqueid",
25644             "description": ""
25645           },
25646           {
25647             "group": "Body",
25648             "type": "String",
25649             "optional": true,
25650             "field": "callerid",
25651             "description": ""
25652           },
25653           {
25654             "group": "Body",
25655             "type": "String",
25656             "optional": true,
25657             "field": "calleridname",
25658             "description": ""
25659           },
25660           {
25661             "group": "Body",
25662             "type": "String",
25663             "optional": true,
25664             "field": "context",
25665             "description": ""
25666           },
25667           {
25668             "group": "Body",
25669             "type": "String",
25670             "optional": true,
25671             "field": "extension",
25672             "description": ""
25673           },
25674           {
25675             "group": "Body",
25676             "type": "String",
25677             "optional": true,
25678             "field": "priority",
25679             "description": ""
25680           },
25681           {
25682             "group": "Body",
25683             "type": "String",
25684             "optional": true,
25685             "field": "accountcode",
25686             "description": ""
25687           },
25688           {
25689             "group": "Body",
25690             "type": "String",
25691             "optional": true,
25692             "field": "dnid",
25693             "description": ""
25694           },
25695           {
25696             "group": "Body",
25697             "type": "String",
25698             "optional": true,
25699             "field": "projectName",
25700             "description": ""
25701           },
25702           {
25703             "group": "Body",
25704             "type": "String",
25705             "optional": true,
25706             "field": "saveName",
25707             "description": ""
25708           },
25709           {
25710             "group": "Body",
25711             "type": "String",
25712             "optional": true,
25713             "field": "filename",
25714             "description": ""
25715           },
25716           {
25717             "group": "Body",
25718             "type": "String",
25719             "optional": true,
25720             "field": "savePath",
25721             "description": ""
25722           },
25723           {
25724             "group": "Body",
25725             "type": "Virtual",
25726             "optional": true,
25727             "field": "format",
25728             "description": ""
25729           }
25730         ]
25731       }
25732     },
25733     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25734     "version": "0.0.0",
25735     "filename": "server/api/squareRecording/index.js",
25736     "groupTitle": "Square_Recordings"
25737   },
25738   {
25739     "type": "get",
25740     "url": "/api/square/recordings",
25741     "title": "Gets a list of Recordings",
25742     "examples": [
25743       {
25744         "title": "Example usage:",
25745         "content": "curl https://{domain}/api/square/recordings -v -u {name}:{password}",
25746         "type": "json"
25747       }
25748     ],
25749     "name": "GetRecordings",
25750     "group": "Square_Recordings",
25751     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/square/recordings?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/square/recordings?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/square/recordings?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/square/recordings?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/square/recordings?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
25752     "version": "0.0.0",
25753     "filename": "server/api/squareRecording/index.js",
25754     "groupTitle": "Square_Recordings"
25755   },
25756   {
25757     "type": "get",
25758     "url": "/api/square/recordings/{id}",
25759     "title": "Gets a single Recording",
25760     "examples": [
25761       {
25762         "title": "Example usage:",
25763         "content": "curl https://{domain}/api/square/recordings/{id} -v -u {name}:{password}",
25764         "type": "json"
25765       }
25766     ],
25767     "name": "ShowRecordings",
25768     "group": "Square_Recordings",
25769     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25770     "version": "0.0.0",
25771     "filename": "server/api/squareRecording/index.js",
25772     "groupTitle": "Square_Recordings"
25773   },
25774   {
25775     "type": "delete",
25776     "url": "/api/square/recordings/{id}",
25777     "title": "Delete recording",
25778     "examples": [
25779       {
25780         "title": "Example usage:",
25781         "content": "curl https://{domain}/api/square/recordings/{id} -v -u {name}:{password} -X DELETE",
25782         "type": "json"
25783       }
25784     ],
25785     "name": "destroy",
25786     "group": "Square_Recordings",
25787     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25788     "version": "0.0.0",
25789     "filename": "server/api/squareRecording/index.js",
25790     "groupTitle": "Square_Recordings"
25791   },
25792   {
25793     "type": "get",
25794     "url": "/api/square/recordings/{id}/download",
25795     "title": "Download Recording",
25796     "examples": [
25797       {
25798         "title": "Example usage:",
25799         "content": "curl https://{domain}/api/square/recordings/{id}/download -v -u {name}:{password} -X GET",
25800         "type": "json"
25801       }
25802     ],
25803     "name": "download",
25804     "group": "Square_Recordings",
25805     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25806     "version": "0.0.0",
25807     "filename": "server/api/squareRecording/index.js",
25808     "groupTitle": "Square_Recordings"
25809   },
25810   {
25811     "type": "put",
25812     "url": "/api/square/recordings/{id}",
25813     "title": "Update an existing Recording",
25814     "examples": [
25815       {
25816         "title": "Example usage:",
25817         "content": "curl https://{domain}/api/square/recordings/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
25818         "type": "json"
25819       }
25820     ],
25821     "name": "updateRecordings",
25822     "group": "Square_Recordings",
25823     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25824     "version": "0.0.0",
25825     "filename": "server/api/squareRecording/index.js",
25826     "groupTitle": "Square_Recordings"
25827   },
25828   {
25829     "type": "post",
25830     "url": "/api/square/reports",
25831     "title": "Creates a new Square Report",
25832     "examples": [
25833       {
25834         "title": "Example usage:",
25835         "content": "curl https://{domain}/api/square/reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
25836         "type": "json"
25837       }
25838     ],
25839     "name": "CreateSquare_Reports",
25840     "group": "Square_Reports",
25841     "parameter": {
25842       "fields": {
25843         "Body": [
25844           {
25845             "group": "Body",
25846             "type": "String",
25847             "optional": true,
25848             "field": "network",
25849             "description": ""
25850           },
25851           {
25852             "group": "Body",
25853             "type": "String",
25854             "optional": true,
25855             "field": "network_script",
25856             "description": ""
25857           },
25858           {
25859             "group": "Body",
25860             "type": "String",
25861             "optional": true,
25862             "field": "request",
25863             "description": ""
25864           },
25865           {
25866             "group": "Body",
25867             "type": "String",
25868             "optional": true,
25869             "field": "channel",
25870             "description": ""
25871           },
25872           {
25873             "group": "Body",
25874             "type": "String",
25875             "optional": true,
25876             "field": "language",
25877             "description": ""
25878           },
25879           {
25880             "group": "Body",
25881             "type": "String",
25882             "optional": true,
25883             "field": "type",
25884             "description": ""
25885           },
25886           {
25887             "group": "Body",
25888             "type": "String",
25889             "optional": true,
25890             "field": "uniqueid",
25891             "description": ""
25892           },
25893           {
25894             "group": "Body",
25895             "type": "String",
25896             "optional": true,
25897             "field": "version",
25898             "description": ""
25899           },
25900           {
25901             "group": "Body",
25902             "type": "String",
25903             "optional": true,
25904             "field": "callerid",
25905             "description": ""
25906           },
25907           {
25908             "group": "Body",
25909             "type": "String",
25910             "optional": true,
25911             "field": "calleridname",
25912             "description": ""
25913           },
25914           {
25915             "group": "Body",
25916             "type": "String",
25917             "optional": true,
25918             "field": "callingpres",
25919             "description": ""
25920           },
25921           {
25922             "group": "Body",
25923             "type": "String",
25924             "optional": true,
25925             "field": "callingani2",
25926             "description": ""
25927           },
25928           {
25929             "group": "Body",
25930             "type": "String",
25931             "optional": true,
25932             "field": "callington",
25933             "description": ""
25934           },
25935           {
25936             "group": "Body",
25937             "type": "String",
25938             "optional": true,
25939             "field": "callingtns",
25940             "description": ""
25941           },
25942           {
25943             "group": "Body",
25944             "type": "String",
25945             "optional": true,
25946             "field": "dnid",
25947             "description": ""
25948           },
25949           {
25950             "group": "Body",
25951             "type": "String",
25952             "optional": true,
25953             "field": "rdnis",
25954             "description": ""
25955           },
25956           {
25957             "group": "Body",
25958             "type": "String",
25959             "optional": true,
25960             "field": "context",
25961             "description": ""
25962           },
25963           {
25964             "group": "Body",
25965             "type": "String",
25966             "optional": true,
25967             "field": "extension",
25968             "description": ""
25969           },
25970           {
25971             "group": "Body",
25972             "type": "String",
25973             "optional": true,
25974             "field": "priority",
25975             "description": ""
25976           },
25977           {
25978             "group": "Body",
25979             "type": "String",
25980             "optional": true,
25981             "field": "enhanced",
25982             "description": ""
25983           },
25984           {
25985             "group": "Body",
25986             "type": "String",
25987             "optional": true,
25988             "field": "accountcode",
25989             "description": ""
25990           },
25991           {
25992             "group": "Body",
25993             "type": "String",
25994             "optional": true,
25995             "field": "threadid",
25996             "description": ""
25997           },
25998           {
25999             "group": "Body",
26000             "type": "String",
26001             "optional": true,
26002             "field": "project_name",
26003             "description": ""
26004           },
26005           {
26006             "group": "Body",
26007             "type": "String",
26008             "optional": true,
26009             "field": "joinAt",
26010             "description": ""
26011           },
26012           {
26013             "group": "Body",
26014             "type": "String",
26015             "optional": true,
26016             "field": "leaveAt",
26017             "description": ""
26018           },
26019           {
26020             "group": "Body",
26021             "type": "Boolean",
26022             "optional": true,
26023             "field": "bot",
26024             "description": ""
26025           }
26026         ]
26027       }
26028     },
26029     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26030     "version": "0.0.0",
26031     "filename": "server/api/squareReport/index.js",
26032     "groupTitle": "Square_Reports"
26033   },
26034   {
26035     "type": "delete",
26036     "url": "/api/square/reports/{id}",
26037     "title": "Deletes a Square Report",
26038     "examples": [
26039       {
26040         "title": "Example usage:",
26041         "content": "curl https://{domain}/api/square/reports/{id} -v -u {name}:{password} -X DELETE",
26042         "type": "json"
26043       }
26044     ],
26045     "name": "DeleteSquare_Reports",
26046     "group": "Square_Reports",
26047     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26048     "version": "0.0.0",
26049     "filename": "server/api/squareReport/index.js",
26050     "groupTitle": "Square_Reports"
26051   },
26052   {
26053     "type": "get",
26054     "url": "/api/square/reports/describe",
26055     "title": "Gets table info about Square Reports",
26056     "examples": [
26057       {
26058         "title": "Example usage:",
26059         "content": "curl https://{domain}/api/square/reports/describe -v -u {name}:{password}",
26060         "type": "json"
26061       }
26062     ],
26063     "name": "DescribeSquare_Reports",
26064     "group": "Square_Reports",
26065     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26066     "version": "0.0.0",
26067     "filename": "server/api/squareReport/index.js",
26068     "groupTitle": "Square_Reports"
26069   },
26070   {
26071     "type": "get",
26072     "url": "/api/square/reports",
26073     "title": "Gets a list of Square Reports",
26074     "examples": [
26075       {
26076         "title": "Example usage:",
26077         "content": "curl https://{domain}/api/square/reports -v -u {name}:{password}",
26078         "type": "json"
26079       }
26080     ],
26081     "name": "GetSquare_Reports",
26082     "group": "Square_Reports",
26083     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/square/reports?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/square/reports?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/square/reports?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/square/reports?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/square/reports?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
26084     "version": "0.0.0",
26085     "filename": "server/api/squareReport/index.js",
26086     "groupTitle": "Square_Reports"
26087   },
26088   {
26089     "type": "get",
26090     "url": "/api/square/reports/{id}",
26091     "title": "Gets a single Square Report",
26092     "examples": [
26093       {
26094         "title": "Example usage:",
26095         "content": "curl https://{domain}/api/square/reports/{id} -v -u {name}:{password}",
26096         "type": "json"
26097       }
26098     ],
26099     "name": "ShowSquare_Reports",
26100     "group": "Square_Reports",
26101     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26102     "version": "0.0.0",
26103     "filename": "server/api/squareReport/index.js",
26104     "groupTitle": "Square_Reports"
26105   },
26106   {
26107     "type": "put",
26108     "url": "/api/square/reports/{id}",
26109     "title": "Update an existing Square Report",
26110     "examples": [
26111       {
26112         "title": "Example usage:",
26113         "content": "curl https://{domain}/api/square/reports/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
26114         "type": "json"
26115       }
26116     ],
26117     "name": "updateSquare_Reports",
26118     "group": "Square_Reports",
26119     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26120     "version": "0.0.0",
26121     "filename": "server/api/squareReport/index.js",
26122     "groupTitle": "Square_Reports"
26123   },
26124   {
26125     "type": "post",
26126     "url": "/api/integrations/sugarcrm/configurations",
26127     "title": "Creates a new SugarCRM Configuration",
26128     "examples": [
26129       {
26130         "title": "Example usage:",
26131         "content": "curl https://{domain}/api/integrations/sugarcrm/configurations -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
26132         "type": "json"
26133       }
26134     ],
26135     "name": "CreateSugarCRM_Configurations",
26136     "group": "SugarCRM_Configurations",
26137     "parameter": {
26138       "fields": {
26139         "Body": [
26140           {
26141             "group": "Body",
26142             "type": "String",
26143             "optional": true,
26144             "field": "name",
26145             "description": ""
26146           },
26147           {
26148             "group": "Body",
26149             "type": "String",
26150             "optional": true,
26151             "field": "description",
26152             "description": ""
26153           }
26154         ]
26155       }
26156     },
26157     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26158     "version": "0.0.0",
26159     "filename": "server/api/intSugarcrmConfiguration/index.js",
26160     "groupTitle": "SugarCRM_Configurations"
26161   },
26162   {
26163     "type": "delete",
26164     "url": "/api/integrations/sugarcrm/configurations/{id}",
26165     "title": "Deletes a SugarCRM Configuration",
26166     "examples": [
26167       {
26168         "title": "Example usage:",
26169         "content": "curl https://{domain}/api/integrations/sugarcrm/configurations/{id} -v -u {name}:{password} -X DELETE",
26170         "type": "json"
26171       }
26172     ],
26173     "name": "DeleteSugarCRM_Configurations",
26174     "group": "SugarCRM_Configurations",
26175     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26176     "version": "0.0.0",
26177     "filename": "server/api/intSugarcrmConfiguration/index.js",
26178     "groupTitle": "SugarCRM_Configurations"
26179   },
26180   {
26181     "type": "get",
26182     "url": "/api/integrations/sugarcrm/configurations",
26183     "title": "Gets a list of SugarCRM Configurations",
26184     "examples": [
26185       {
26186         "title": "Example usage:",
26187         "content": "curl https://{domain}/api/integrations/sugarcrm/configurations -v -u {name}:{password}",
26188         "type": "json"
26189       }
26190     ],
26191     "name": "GetSugarCRM_Configurations",
26192     "group": "SugarCRM_Configurations",
26193     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/integrations/sugarcrm/configurations?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/integrations/sugarcrm/configurations?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/integrations/sugarcrm/configurations?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/integrations/sugarcrm/configurations?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/integrations/sugarcrm/configurations?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
26194     "version": "0.0.0",
26195     "filename": "server/api/intSugarcrmConfiguration/index.js",
26196     "groupTitle": "SugarCRM_Configurations"
26197   },
26198   {
26199     "type": "get",
26200     "url": "/api/integrations/sugarcrm/configurations/{id}",
26201     "title": "Gets a single SugarCRM Configuration",
26202     "examples": [
26203       {
26204         "title": "Example usage:",
26205         "content": "curl https://{domain}/api/integrations/sugarcrm/configurations/{id} -v -u {name}:{password}",
26206         "type": "json"
26207       }
26208     ],
26209     "name": "ShowSugarCRM_Configurations",
26210     "group": "SugarCRM_Configurations",
26211     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26212     "version": "0.0.0",
26213     "filename": "server/api/intSugarcrmConfiguration/index.js",
26214     "groupTitle": "SugarCRM_Configurations"
26215   },
26216   {
26217     "type": "put",
26218     "url": "/api/integrations/sugarcrm/configurations/{id}",
26219     "title": "Update an existing SugarCRM Configuration",
26220     "examples": [
26221       {
26222         "title": "Example usage:",
26223         "content": "curl https://{domain}/api/integrations/sugarcrm/configurations/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
26224         "type": "json"
26225       }
26226     ],
26227     "name": "updateSugarCRM_Configurations",
26228     "group": "SugarCRM_Configurations",
26229     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26230     "version": "0.0.0",
26231     "filename": "server/api/intSugarcrmConfiguration/index.js",
26232     "groupTitle": "SugarCRM_Configurations"
26233   },
26234   {
26235     "type": "post",
26236     "url": "/api/integrations/sugarcrm/accounts",
26237     "title": "Creates a new Sugarcrm Account",
26238     "examples": [
26239       {
26240         "title": "Example usage:",
26241         "content": "curl https://{domain}/api/integrations/sugarcrm/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
26242         "type": "json"
26243       }
26244     ],
26245     "name": "CreateSugarcrm_Accounts",
26246     "group": "Sugarcrm_Accounts",
26247     "parameter": {
26248       "fields": {
26249         "Body": [
26250           {
26251             "group": "Body",
26252             "type": "String",
26253             "optional": true,
26254             "field": "name",
26255             "description": ""
26256           },
26257           {
26258             "group": "Body",
26259             "type": "String",
26260             "optional": true,
26261             "field": "description",
26262             "description": ""
26263           },
26264           {
26265             "group": "Body",
26266             "type": "String",
26267             "optional": true,
26268             "field": "username",
26269             "description": ""
26270           },
26271           {
26272             "group": "Body",
26273             "type": "String",
26274             "optional": true,
26275             "field": "password",
26276             "description": ""
26277           },
26278           {
26279             "group": "Body",
26280             "type": "String",
26281             "optional": true,
26282             "field": "remoteUri",
26283             "description": ""
26284           },
26285           {
26286             "group": "Body",
26287             "type": "String",
26288             "optional": false,
26289             "field": "serverUrl",
26290             "description": ""
26291           }
26292         ]
26293       }
26294     },
26295     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26296     "version": "0.0.0",
26297     "filename": "server/api/intSugarcrmAccount/index.js",
26298     "groupTitle": "Sugarcrm_Accounts"
26299   },
26300   {
26301     "type": "delete",
26302     "url": "/api/integrations/sugarcrm/accounts/{id}",
26303     "title": "Deletes a Sugarcrm Account",
26304     "examples": [
26305       {
26306         "title": "Example usage:",
26307         "content": "curl https://{domain}/api/integrations/sugarcrm/accounts/{id} -v -u {name}:{password} -X DELETE",
26308         "type": "json"
26309       }
26310     ],
26311     "name": "DeleteSugarcrm_Accounts",
26312     "group": "Sugarcrm_Accounts",
26313     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26314     "version": "0.0.0",
26315     "filename": "server/api/intSugarcrmAccount/index.js",
26316     "groupTitle": "Sugarcrm_Accounts"
26317   },
26318   {
26319     "type": "get",
26320     "url": "/api/integrations/sugarcrm/accounts",
26321     "title": "Gets a list of Sugarcrm Accounts",
26322     "examples": [
26323       {
26324         "title": "Example usage:",
26325         "content": "curl https://{domain}/api/integrations/sugarcrm/accounts -v -u {name}:{password}",
26326         "type": "json"
26327       }
26328     ],
26329     "name": "GetSugarcrm_Accounts",
26330     "group": "Sugarcrm_Accounts",
26331     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/integrations/sugarcrm/accounts?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/integrations/sugarcrm/accounts?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/integrations/sugarcrm/accounts?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/integrations/sugarcrm/accounts?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/integrations/sugarcrm/accounts?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
26332     "version": "0.0.0",
26333     "filename": "server/api/intSugarcrmAccount/index.js",
26334     "groupTitle": "Sugarcrm_Accounts"
26335   },
26336   {
26337     "type": "get",
26338     "url": "/api/integrations/sugarcrm/accounts/{id}",
26339     "title": "Gets a single Sugarcrm Account",
26340     "examples": [
26341       {
26342         "title": "Example usage:",
26343         "content": "curl https://{domain}/api/integrations/sugarcrm/accounts/{id} -v -u {name}:{password}",
26344         "type": "json"
26345       }
26346     ],
26347     "name": "ShowSugarcrm_Accounts",
26348     "group": "Sugarcrm_Accounts",
26349     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26350     "version": "0.0.0",
26351     "filename": "server/api/intSugarcrmAccount/index.js",
26352     "groupTitle": "Sugarcrm_Accounts"
26353   },
26354   {
26355     "type": "post",
26356     "url": "/api/integrations/sugarcrm/accounts/{id}/configurations",
26357     "title": "Creates new configuration",
26358     "examples": [
26359       {
26360         "title": "Example usage:",
26361         "content": "curl https://{domain}/api/integrations/sugarcrm/accounts/{id}/configurations -d '{\"name\": \"conf1\"}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
26362         "type": "json"
26363       }
26364     ],
26365     "name": "addConfiguration",
26366     "group": "Sugarcrm_Accounts",
26367     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26368     "version": "0.0.0",
26369     "filename": "server/api/intSugarcrmAccount/index.js",
26370     "groupTitle": "Sugarcrm_Accounts"
26371   },
26372   {
26373     "type": "get",
26374     "url": "/api/integrations/sugarcrm/accounts/{id}/configurations",
26375     "title": "Gets account configurations",
26376     "examples": [
26377       {
26378         "title": "Example usage:",
26379         "content": "curl https://{domain}/api/integrations/sugarcrm/accounts/{id}/configurations -v -u {name}:{password} -X GET",
26380         "type": "json"
26381       }
26382     ],
26383     "name": "getConfigurations",
26384     "group": "Sugarcrm_Accounts",
26385     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26386     "version": "0.0.0",
26387     "filename": "server/api/intSugarcrmAccount/index.js",
26388     "groupTitle": "Sugarcrm_Accounts"
26389   },
26390   {
26391     "type": "get",
26392     "url": "/api/integrations/sugarcrm/accounts/{id}/fields",
26393     "title": "Gets account fields",
26394     "examples": [
26395       {
26396         "title": "Example usage:",
26397         "content": "curl https://{domain}/api/integrations/sugarcrm/accounts/{id}/fields -v -u {name}:{password} -X GET",
26398         "type": "json"
26399       }
26400     ],
26401     "name": "getFields",
26402     "group": "Sugarcrm_Accounts",
26403     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26404     "version": "0.0.0",
26405     "filename": "server/api/intSugarcrmAccount/index.js",
26406     "groupTitle": "Sugarcrm_Accounts"
26407   },
26408   {
26409     "type": "put",
26410     "url": "/api/integrations/sugarcrm/accounts/{id}",
26411     "title": "Update an existing Sugarcrm Account",
26412     "examples": [
26413       {
26414         "title": "Example usage:",
26415         "content": "curl https://{domain}/api/integrations/sugarcrm/accounts/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
26416         "type": "json"
26417       }
26418     ],
26419     "name": "updateSugarcrm_Accounts",
26420     "group": "Sugarcrm_Accounts",
26421     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26422     "version": "0.0.0",
26423     "filename": "server/api/intSugarcrmAccount/index.js",
26424     "groupTitle": "Sugarcrm_Accounts"
26425   },
26426   {
26427     "type": "get",
26428     "url": "/api/integrations/sugarcrm/configurations/{id}/descriptions",
26429     "title": "Gets configurations descriptions",
26430     "examples": [
26431       {
26432         "title": "Example usage:",
26433         "content": "curl https://{domain}/api/integrations/sugarcrm/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
26434         "type": "json"
26435       }
26436     ],
26437     "name": "getDescriptions",
26438     "group": "Sugarcrm_Configurations",
26439     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26440     "version": "0.0.0",
26441     "filename": "server/api/intSugarcrmConfiguration/index.js",
26442     "groupTitle": "Sugarcrm_Configurations"
26443   },
26444   {
26445     "type": "get",
26446     "url": "/api/integrations/sugarcrm/configurations/{id}/fields",
26447     "title": "Gets configurations fields",
26448     "examples": [
26449       {
26450         "title": "Example usage:",
26451         "content": "curl https://{domain}/api/integrations/sugarcrm/configurations/{id}/fields -v -u {name}:{password} -X GET",
26452         "type": "json"
26453       }
26454     ],
26455     "name": "getFields",
26456     "group": "Sugarcrm_Configurations",
26457     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26458     "version": "0.0.0",
26459     "filename": "server/api/intSugarcrmConfiguration/index.js",
26460     "groupTitle": "Sugarcrm_Configurations"
26461   },
26462   {
26463     "type": "get",
26464     "url": "/api/integrations/sugarcrm/configurations/{id}/subjects",
26465     "title": "Gets configurations subjects",
26466     "examples": [
26467       {
26468         "title": "Example usage:",
26469         "content": "curl https://{domain}/api/integrations/sugarcrm/configurations/{id}/subjects -v -u {name}:{password} -X GET",
26470         "type": "json"
26471       }
26472     ],
26473     "name": "getSubjects",
26474     "group": "Sugarcrm_Configurations",
26475     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26476     "version": "0.0.0",
26477     "filename": "server/api/intSugarcrmConfiguration/index.js",
26478     "groupTitle": "Sugarcrm_Configurations"
26479   },
26480   {
26481     "type": "post",
26482     "url": "/api/integrations/sugarcrm/fields",
26483     "title": "Creates a new Sugarcrm Field",
26484     "examples": [
26485       {
26486         "title": "Example usage:",
26487         "content": "curl https://{domain}/api/integrations/sugarcrm/fields -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
26488         "type": "json"
26489       }
26490     ],
26491     "name": "CreateSugarcrm_Fields",
26492     "group": "Sugarcrm_Fields",
26493     "parameter": {
26494       "fields": {
26495         "Body": [
26496           {
26497             "group": "Body",
26498             "type": "String",
26499             "allowedValues": [
26500               "\"string\"",
26501               "\"variable\"",
26502               "\"customVariable\"",
26503               "\"keyValue\"",
26504               "\"picklist\""
26505             ],
26506             "optional": true,
26507             "field": "type",
26508             "description": ""
26509           },
26510           {
26511             "group": "Body",
26512             "type": "String",
26513             "optional": true,
26514             "field": "content",
26515             "description": ""
26516           },
26517           {
26518             "group": "Body",
26519             "type": "String",
26520             "optional": true,
26521             "field": "key",
26522             "description": ""
26523           },
26524           {
26525             "group": "Body",
26526             "type": "String",
26527             "allowedValues": [
26528               "\"string\"",
26529               "\"variable\"",
26530               "\"customVariable\""
26531             ],
26532             "optional": true,
26533             "field": "keyType",
26534             "description": ""
26535           },
26536           {
26537             "group": "Body",
26538             "type": "String",
26539             "optional": true,
26540             "field": "keyContent",
26541             "description": ""
26542           },
26543           {
26544             "group": "Body",
26545             "type": "String",
26546             "optional": true,
26547             "field": "idField",
26548             "description": ""
26549           },
26550           {
26551             "group": "Body",
26552             "type": "String",
26553             "optional": true,
26554             "field": "nameField",
26555             "description": ""
26556           },
26557           {
26558             "group": "Body",
26559             "type": "Boolean",
26560             "optional": true,
26561             "field": "customField",
26562             "description": ""
26563           },
26564           {
26565             "group": "Body",
26566             "type": "String",
26567             "optional": true,
26568             "field": "variableName",
26569             "description": ""
26570           }
26571         ]
26572       }
26573     },
26574     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26575     "version": "0.0.0",
26576     "filename": "server/api/intSugarcrmField/index.js",
26577     "groupTitle": "Sugarcrm_Fields"
26578   },
26579   {
26580     "type": "delete",
26581     "url": "/api/integrations/sugarcrm/fields/{id}",
26582     "title": "Deletes a Sugarcrm Field",
26583     "examples": [
26584       {
26585         "title": "Example usage:",
26586         "content": "curl https://{domain}/api/integrations/sugarcrm/fields/{id} -v -u {name}:{password} -X DELETE",
26587         "type": "json"
26588       }
26589     ],
26590     "name": "DeleteSugarcrm_Fields",
26591     "group": "Sugarcrm_Fields",
26592     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26593     "version": "0.0.0",
26594     "filename": "server/api/intSugarcrmField/index.js",
26595     "groupTitle": "Sugarcrm_Fields"
26596   },
26597   {
26598     "type": "get",
26599     "url": "/api/integrations/sugarcrm/fields",
26600     "title": "Gets a list of Sugarcrm Fields",
26601     "examples": [
26602       {
26603         "title": "Example usage:",
26604         "content": "curl https://{domain}/api/integrations/sugarcrm/fields -v -u {name}:{password}",
26605         "type": "json"
26606       }
26607     ],
26608     "name": "GetSugarcrm_Fields",
26609     "group": "Sugarcrm_Fields",
26610     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/integrations/sugarcrm/fields?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/integrations/sugarcrm/fields?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/integrations/sugarcrm/fields?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/integrations/sugarcrm/fields?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/integrations/sugarcrm/fields?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
26611     "version": "0.0.0",
26612     "filename": "server/api/intSugarcrmField/index.js",
26613     "groupTitle": "Sugarcrm_Fields"
26614   },
26615   {
26616     "type": "get",
26617     "url": "/api/integrations/sugarcrm/fields/{id}",
26618     "title": "Gets a single Sugarcrm Field",
26619     "examples": [
26620       {
26621         "title": "Example usage:",
26622         "content": "curl https://{domain}/api/integrations/sugarcrm/fields/{id} -v -u {name}:{password}",
26623         "type": "json"
26624       }
26625     ],
26626     "name": "ShowSugarcrm_Fields",
26627     "group": "Sugarcrm_Fields",
26628     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26629     "version": "0.0.0",
26630     "filename": "server/api/intSugarcrmField/index.js",
26631     "groupTitle": "Sugarcrm_Fields"
26632   },
26633   {
26634     "type": "put",
26635     "url": "/api/integrations/sugarcrm/fields/{id}",
26636     "title": "Update an existing Sugarcrm Field",
26637     "examples": [
26638       {
26639         "title": "Example usage:",
26640         "content": "curl https://{domain}/api/integrations/sugarcrm/fields/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
26641         "type": "json"
26642       }
26643     ],
26644     "name": "updateSugarcrm_Fields",
26645     "group": "Sugarcrm_Fields",
26646     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26647     "version": "0.0.0",
26648     "filename": "server/api/intSugarcrmField/index.js",
26649     "groupTitle": "Sugarcrm_Fields"
26650   },
26651   {
26652     "type": "get",
26653     "url": "/api/system",
26654     "title": "Gets system information",
26655     "examples": [
26656       {
26657         "title": "Example usage:",
26658         "content": "curl https://{domain}/api/system -v -u {name}:{password}",
26659         "type": "json"
26660       }
26661     ],
26662     "name": "GetSystemInformation",
26663     "group": "System_Information",
26664     "description": "<p>Motion returns the system information.</p>",
26665     "version": "0.0.0",
26666     "filename": "server/api/system/index.js",
26667     "groupTitle": "System_Information"
26668   },
26669   {
26670     "type": "get",
26671     "url": "/api/system/process",
26672     "title": "Gets system information",
26673     "examples": [
26674       {
26675         "title": "Example usage:",
26676         "content": "curl https://{domain}/api/system -v -u {name}:{password}",
26677         "type": "json"
26678       }
26679     ],
26680     "name": "GetSystemInformation",
26681     "group": "System_Information",
26682     "description": "<p>Motion returns the system information.</p>",
26683     "version": "0.0.0",
26684     "filename": "server/api/system/index.js",
26685     "groupTitle": "System_Information"
26686   },
26687   {
26688     "type": "post",
26689     "url": "/api/tags",
26690     "title": "Creates a new Tag",
26691     "examples": [
26692       {
26693         "title": "Example usage:",
26694         "content": "curl https://{domain}/api/tags -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
26695         "type": "json"
26696       }
26697     ],
26698     "name": "CreateTags",
26699     "group": "Tags",
26700     "parameter": {
26701       "fields": {
26702         "Body": [
26703           {
26704             "group": "Body",
26705             "type": "String",
26706             "optional": false,
26707             "field": "name",
26708             "description": ""
26709           },
26710           {
26711             "group": "Body",
26712             "type": "String",
26713             "optional": true,
26714             "field": "color",
26715             "description": ""
26716           },
26717           {
26718             "group": "Body",
26719             "type": "String",
26720             "optional": true,
26721             "field": "description",
26722             "description": ""
26723           }
26724         ]
26725       }
26726     },
26727     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26728     "version": "0.0.0",
26729     "filename": "server/api/tag/index.js",
26730     "groupTitle": "Tags"
26731   },
26732   {
26733     "type": "delete",
26734     "url": "/api/tags/{id}",
26735     "title": "Deletes a Tag",
26736     "examples": [
26737       {
26738         "title": "Example usage:",
26739         "content": "curl https://{domain}/api/tags/{id} -v -u {name}:{password} -X DELETE",
26740         "type": "json"
26741       }
26742     ],
26743     "name": "DeleteTags",
26744     "group": "Tags",
26745     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26746     "version": "0.0.0",
26747     "filename": "server/api/tag/index.js",
26748     "groupTitle": "Tags"
26749   },
26750   {
26751     "type": "get",
26752     "url": "/api/tags",
26753     "title": "Gets a list of Tags",
26754     "examples": [
26755       {
26756         "title": "Example usage:",
26757         "content": "curl https://{domain}/api/tags -v -u {name}:{password}",
26758         "type": "json"
26759       }
26760     ],
26761     "name": "GetTags",
26762     "group": "Tags",
26763     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/tags?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/tags?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/tags?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/tags?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/tags?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
26764     "version": "0.0.0",
26765     "filename": "server/api/tag/index.js",
26766     "groupTitle": "Tags"
26767   },
26768   {
26769     "type": "get",
26770     "url": "/api/tags/{id}",
26771     "title": "Gets a single Tag",
26772     "examples": [
26773       {
26774         "title": "Example usage:",
26775         "content": "curl https://{domain}/api/tags/{id} -v -u {name}:{password}",
26776         "type": "json"
26777       }
26778     ],
26779     "name": "ShowTags",
26780     "group": "Tags",
26781     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26782     "version": "0.0.0",
26783     "filename": "server/api/tag/index.js",
26784     "groupTitle": "Tags"
26785   },
26786   {
26787     "type": "put",
26788     "url": "/api/tags/{id}",
26789     "title": "Update an existing Tag",
26790     "examples": [
26791       {
26792         "title": "Example usage:",
26793         "content": "curl https://{domain}/api/tags/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
26794         "type": "json"
26795       }
26796     ],
26797     "name": "updateTags",
26798     "group": "Tags",
26799     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26800     "version": "0.0.0",
26801     "filename": "server/api/tag/index.js",
26802     "groupTitle": "Tags"
26803   },
26804   {
26805     "type": "post",
26806     "url": "/api/teams/{id}/queues",
26807     "title": "Add queues to a team",
26808     "examples": [
26809       {
26810         "title": "Example usage:",
26811         "content": "curl https://{domain}/api/teams/{id}/queues -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
26812         "type": "json"
26813       }
26814     ],
26815     "name": "AddQueues",
26816     "group": "Teams",
26817     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26818     "version": "0.0.0",
26819     "filename": "server/api/team/index.js",
26820     "groupTitle": "Teams"
26821   },
26822   {
26823     "type": "post",
26824     "url": "/api/teams",
26825     "title": "Creates a new Team",
26826     "examples": [
26827       {
26828         "title": "Example usage:",
26829         "content": "curl https://{domain}/api/teams -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
26830         "type": "json"
26831       }
26832     ],
26833     "name": "CreateTeams",
26834     "group": "Teams",
26835     "parameter": {
26836       "fields": {
26837         "Body": [
26838           {
26839             "group": "Body",
26840             "type": "String",
26841             "optional": false,
26842             "field": "name",
26843             "description": ""
26844           },
26845           {
26846             "group": "Body",
26847             "type": "String",
26848             "optional": true,
26849             "field": "description",
26850             "description": ""
26851           }
26852         ]
26853       }
26854     },
26855     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26856     "version": "0.0.0",
26857     "filename": "server/api/team/index.js",
26858     "groupTitle": "Teams"
26859   },
26860   {
26861     "type": "delete",
26862     "url": "/api/teams/{id}",
26863     "title": "Deletes a Team",
26864     "examples": [
26865       {
26866         "title": "Example usage:",
26867         "content": "curl https://{domain}/api/teams/{id} -v -u {name}:{password} -X DELETE",
26868         "type": "json"
26869       }
26870     ],
26871     "name": "DeleteTeams",
26872     "group": "Teams",
26873     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26874     "version": "0.0.0",
26875     "filename": "server/api/team/index.js",
26876     "groupTitle": "Teams"
26877   },
26878   {
26879     "type": "get",
26880     "url": "/api/teams/{id}/users",
26881     "title": "Gets agents from team",
26882     "examples": [
26883       {
26884         "title": "Example usage:",
26885         "content": "curl https://{domain}/api/teams/{id}/users -v -u {name}:{password} -X GET",
26886         "type": "json"
26887       }
26888     ],
26889     "name": "GetAgents",
26890     "group": "Teams",
26891     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26892     "version": "0.0.0",
26893     "filename": "server/api/team/index.js",
26894     "groupTitle": "Teams"
26895   },
26896   {
26897     "type": "get",
26898     "url": "/api/teams/{id}/queues?channel={channel}",
26899     "title": "Gets Queues list",
26900     "examples": [
26901       {
26902         "title": "Example usage:",
26903         "content": "curl https://{domain}/api/teams/{id}/queues?channel={channel} -v -u {name}:{password}",
26904         "type": "json"
26905       }
26906     ],
26907     "name": "GetQueues",
26908     "group": "Teams",
26909     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26910     "version": "0.0.0",
26911     "filename": "server/api/team/index.js",
26912     "groupTitle": "Teams"
26913   },
26914   {
26915     "type": "get",
26916     "url": "/api/teams",
26917     "title": "Gets a list of Teams",
26918     "examples": [
26919       {
26920         "title": "Example usage:",
26921         "content": "curl https://{domain}/api/teams -v -u {name}:{password}",
26922         "type": "json"
26923       }
26924     ],
26925     "name": "GetTeams",
26926     "group": "Teams",
26927     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/teams?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/teams?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/teams?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/teams?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/teams?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
26928     "version": "0.0.0",
26929     "filename": "server/api/team/index.js",
26930     "groupTitle": "Teams"
26931   },
26932   {
26933     "type": "delete",
26934     "url": "/api/teams/{id}/users",
26935     "title": "Removes agents from a team",
26936     "examples": [
26937       {
26938         "title": "Example usage:",
26939         "content": "curl https://{domain}/api/teams/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
26940         "type": "json"
26941       }
26942     ],
26943     "name": "RemoveAgents",
26944     "group": "Teams",
26945     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26946     "version": "0.0.0",
26947     "filename": "server/api/team/index.js",
26948     "groupTitle": "Teams"
26949   },
26950   {
26951     "type": "delete",
26952     "url": "/api/teams/{id}/queues",
26953     "title": "Remove queues to a team",
26954     "examples": [
26955       {
26956         "title": "Example usage:",
26957         "content": "curl https://{domain}/api/teams/{id}/queues?channel=voice&ids=1&ids=2 -v -u {name}:{password} -X DELETE",
26958         "type": "json"
26959       }
26960     ],
26961     "name": "RemoveQueues",
26962     "group": "Teams",
26963     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26964     "version": "0.0.0",
26965     "filename": "server/api/team/index.js",
26966     "groupTitle": "Teams"
26967   },
26968   {
26969     "type": "delete",
26970     "url": "/api/voice/Prefixes/{id}/teams",
26971     "title": "Remove teams from a voice prefix",
26972     "examples": [
26973       {
26974         "title": "Example usage:",
26975         "content": "curl https://{domain}/api/voice/prefixes/{id}/teams -v -u {name}:{password} -X DELETE",
26976         "type": "json"
26977       }
26978     ],
26979     "name": "RemoveTeams",
26980     "group": "Teams",
26981     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26982     "version": "0.0.0",
26983     "filename": "server/api/voicePrefix/index.js",
26984     "groupTitle": "Teams"
26985   },
26986   {
26987     "type": "delete",
26988     "url": "/api/openchannel/queues/{id}/teams",
26989     "title": "Remove teams from a queue",
26990     "examples": [
26991       {
26992         "title": "Example usage:",
26993         "content": "curl https://{domain}/api/openchannel/queues/{id}/teams -v -u {name}:{password} -X DELETE",
26994         "type": "json"
26995       }
26996     ],
26997     "name": "RemoveTeams",
26998     "group": "Teams",
26999     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27000     "version": "0.0.0",
27001     "filename": "server/api/openchannelQueue/index.js",
27002     "groupTitle": "Teams"
27003   },
27004   {
27005     "type": "delete",
27006     "url": "/api/fax/queues/{id}/teams",
27007     "title": "Remove teams from a queue",
27008     "examples": [
27009       {
27010         "title": "Example usage:",
27011         "content": "curl https://{domain}/api/fax/queues/{id}/teams -v -u {name}:{password} -X DELETE",
27012         "type": "json"
27013       }
27014     ],
27015     "name": "RemoveTeams",
27016     "group": "Teams",
27017     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27018     "version": "0.0.0",
27019     "filename": "server/api/faxQueue/index.js",
27020     "groupTitle": "Teams"
27021   },
27022   {
27023     "type": "delete",
27024     "url": "/api/mail/queues/{id}/teams",
27025     "title": "Remove teams from a queue",
27026     "examples": [
27027       {
27028         "title": "Example usage:",
27029         "content": "curl https://{domain}/api/mail/queues/{id}/teams -v -u {name}:{password} -X DELETE",
27030         "type": "json"
27031       }
27032     ],
27033     "name": "RemoveTeams",
27034     "group": "Teams",
27035     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27036     "version": "0.0.0",
27037     "filename": "server/api/mailQueue/index.js",
27038     "groupTitle": "Teams"
27039   },
27040   {
27041     "type": "delete",
27042     "url": "/api/sms/queues/{id}/teams",
27043     "title": "Remove teams from a queue",
27044     "examples": [
27045       {
27046         "title": "Example usage:",
27047         "content": "curl https://{domain}/api/sms/queues/{id}/teams -v -u {name}:{password} -X DELETE",
27048         "type": "json"
27049       }
27050     ],
27051     "name": "RemoveTeams",
27052     "group": "Teams",
27053     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27054     "version": "0.0.0",
27055     "filename": "server/api/smsQueue/index.js",
27056     "groupTitle": "Teams"
27057   },
27058   {
27059     "type": "delete",
27060     "url": "/api/whatsapp/queues/{id}/teams",
27061     "title": "Remove teams from a queue",
27062     "examples": [
27063       {
27064         "title": "Example usage:",
27065         "content": "curl https://{domain}/api/whatsapp/queues/{id}/teams -v -u {name}:{password} -X DELETE",
27066         "type": "json"
27067       }
27068     ],
27069     "name": "RemoveTeams",
27070     "group": "Teams",
27071     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27072     "version": "0.0.0",
27073     "filename": "server/api/whatsappQueue/index.js",
27074     "groupTitle": "Teams"
27075   },
27076   {
27077     "type": "delete",
27078     "url": "/api/chat/queues/{id}/teams",
27079     "title": "Remove teams from a queue",
27080     "examples": [
27081       {
27082         "title": "Example usage:",
27083         "content": "curl https://{domain}/api/chat/queues/{id}/teams -v -u {name}:{password} -X DELETE",
27084         "type": "json"
27085       }
27086     ],
27087     "name": "RemoveTeams",
27088     "group": "Teams",
27089     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27090     "version": "0.0.0",
27091     "filename": "server/api/chatQueue/index.js",
27092     "groupTitle": "Teams"
27093   },
27094   {
27095     "type": "delete",
27096     "url": "/api/voice/queues/{id}/teams",
27097     "title": "Remove teams from a queue",
27098     "examples": [
27099       {
27100         "title": "Example usage:",
27101         "content": "curl https://{domain}/api/voice/queues/{id}/teams -v -u {name}:{password} -X DELETE",
27102         "type": "json"
27103       }
27104     ],
27105     "name": "RemoveTeams",
27106     "group": "Teams",
27107     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27108     "version": "0.0.0",
27109     "filename": "server/api/voiceQueue/index.js",
27110     "groupTitle": "Teams"
27111   },
27112   {
27113     "type": "get",
27114     "url": "/api/teams/{id}",
27115     "title": "Gets a single Team",
27116     "examples": [
27117       {
27118         "title": "Example usage:",
27119         "content": "curl https://{domain}/api/teams/{id} -v -u {name}:{password}",
27120         "type": "json"
27121       }
27122     ],
27123     "name": "ShowTeams",
27124     "group": "Teams",
27125     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27126     "version": "0.0.0",
27127     "filename": "server/api/team/index.js",
27128     "groupTitle": "Teams"
27129   },
27130   {
27131     "type": "post",
27132     "url": "/api/teams/{id}/users",
27133     "title": "Adds agents to a team",
27134     "examples": [
27135       {
27136         "title": "Example usage:",
27137         "content": "curl https://{domain}/api/teams/{id}/users -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
27138         "type": "json"
27139       }
27140     ],
27141     "name": "addAgents",
27142     "group": "Teams",
27143     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27144     "version": "0.0.0",
27145     "filename": "server/api/team/index.js",
27146     "groupTitle": "Teams"
27147   },
27148   {
27149     "type": "put",
27150     "url": "/api/teams/{id}",
27151     "title": "Update an existing Team",
27152     "examples": [
27153       {
27154         "title": "Example usage:",
27155         "content": "curl https://{domain}/api/teams/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
27156         "type": "json"
27157       }
27158     ],
27159     "name": "updateTeams",
27160     "group": "Teams",
27161     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27162     "version": "0.0.0",
27163     "filename": "server/api/team/index.js",
27164     "groupTitle": "Teams"
27165   },
27166   {
27167     "type": "post",
27168     "url": "/api/templates",
27169     "title": "Creates a new Template",
27170     "examples": [
27171       {
27172         "title": "Example usage:",
27173         "content": "curl https://{domain}/api/templates -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
27174         "type": "json"
27175       }
27176     ],
27177     "name": "CreateTemplates",
27178     "group": "Templates",
27179     "parameter": {
27180       "fields": {
27181         "Body": [
27182           {
27183             "group": "Body",
27184             "type": "String",
27185             "optional": true,
27186             "field": "name",
27187             "description": ""
27188           },
27189           {
27190             "group": "Body",
27191             "type": "String",
27192             "optional": true,
27193             "field": "description",
27194             "description": ""
27195           },
27196           {
27197             "group": "Body",
27198             "type": "Text",
27199             "optional": true,
27200             "field": "html",
27201             "description": ""
27202           }
27203         ]
27204       }
27205     },
27206     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27207     "version": "0.0.0",
27208     "filename": "server/api/template/index.js",
27209     "groupTitle": "Templates"
27210   },
27211   {
27212     "type": "delete",
27213     "url": "/api/templates/{id}",
27214     "title": "Deletes a Template",
27215     "examples": [
27216       {
27217         "title": "Example usage:",
27218         "content": "curl https://{domain}/api/templates/{id} -v -u {name}:{password} -X DELETE",
27219         "type": "json"
27220       }
27221     ],
27222     "name": "DeleteTemplates",
27223     "group": "Templates",
27224     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27225     "version": "0.0.0",
27226     "filename": "server/api/template/index.js",
27227     "groupTitle": "Templates"
27228   },
27229   {
27230     "type": "get",
27231     "url": "/api/templates",
27232     "title": "Gets a list of Templates",
27233     "examples": [
27234       {
27235         "title": "Example usage:",
27236         "content": "curl https://{domain}/api/templates -v -u {name}:{password}",
27237         "type": "json"
27238       }
27239     ],
27240     "name": "GetTemplates",
27241     "group": "Templates",
27242     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/templates?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/templates?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/templates?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/templates?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/templates?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
27243     "version": "0.0.0",
27244     "filename": "server/api/template/index.js",
27245     "groupTitle": "Templates"
27246   },
27247   {
27248     "type": "get",
27249     "url": "/api/templates/{id}",
27250     "title": "Gets a single Template",
27251     "examples": [
27252       {
27253         "title": "Example usage:",
27254         "content": "curl https://{domain}/api/templates/{id} -v -u {name}:{password}",
27255         "type": "json"
27256       }
27257     ],
27258     "name": "ShowTemplates",
27259     "group": "Templates",
27260     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27261     "version": "0.0.0",
27262     "filename": "server/api/template/index.js",
27263     "groupTitle": "Templates"
27264   },
27265   {
27266     "type": "put",
27267     "url": "/api/templates/{id}",
27268     "title": "Update an existing Template",
27269     "examples": [
27270       {
27271         "title": "Example usage:",
27272         "content": "curl https://{domain}/api/templates/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
27273         "type": "json"
27274       }
27275     ],
27276     "name": "updateTemplates",
27277     "group": "Templates",
27278     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27279     "version": "0.0.0",
27280     "filename": "server/api/template/index.js",
27281     "groupTitle": "Templates"
27282   },
27283   {
27284     "type": "post",
27285     "url": "/api/triggers",
27286     "title": "Creates a new Trigger",
27287     "examples": [
27288       {
27289         "title": "Example usage:",
27290         "content": "curl https://{domain}/api/triggers -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
27291         "type": "json"
27292       }
27293     ],
27294     "name": "CreateTriggers",
27295     "group": "Triggers",
27296     "parameter": {
27297       "fields": {
27298         "Body": [
27299           {
27300             "group": "Body",
27301             "type": "String",
27302             "optional": true,
27303             "field": "name",
27304             "description": ""
27305           },
27306           {
27307             "group": "Body",
27308             "type": "String",
27309             "optional": true,
27310             "field": "channel",
27311             "description": ""
27312           },
27313           {
27314             "group": "Body",
27315             "type": "String",
27316             "optional": true,
27317             "field": "description",
27318             "description": ""
27319           },
27320           {
27321             "group": "Body",
27322             "type": "Boolean",
27323             "optional": true,
27324             "field": "status",
27325             "description": ""
27326           }
27327         ]
27328       }
27329     },
27330     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27331     "version": "0.0.0",
27332     "filename": "server/api/trigger/index.js",
27333     "groupTitle": "Triggers"
27334   },
27335   {
27336     "type": "delete",
27337     "url": "/api/triggers/{id}",
27338     "title": "Deletes a Trigger",
27339     "examples": [
27340       {
27341         "title": "Example usage:",
27342         "content": "curl https://{domain}/api/triggers/{id} -v -u {name}:{password} -X DELETE",
27343         "type": "json"
27344       }
27345     ],
27346     "name": "DeleteTriggers",
27347     "group": "Triggers",
27348     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27349     "version": "0.0.0",
27350     "filename": "server/api/trigger/index.js",
27351     "groupTitle": "Triggers"
27352   },
27353   {
27354     "type": "get",
27355     "url": "/api/triggers",
27356     "title": "Gets a list of Triggers",
27357     "examples": [
27358       {
27359         "title": "Example usage:",
27360         "content": "curl https://{domain}/api/triggers -v -u {name}:{password}",
27361         "type": "json"
27362       }
27363     ],
27364     "name": "GetTriggers",
27365     "group": "Triggers",
27366     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/triggers?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/triggers?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/triggers?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/triggers?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/triggers?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
27367     "version": "0.0.0",
27368     "filename": "server/api/trigger/index.js",
27369     "groupTitle": "Triggers"
27370   },
27371   {
27372     "type": "get",
27373     "url": "/api/triggers/{id}",
27374     "title": "Gets a single Trigger",
27375     "examples": [
27376       {
27377         "title": "Example usage:",
27378         "content": "curl https://{domain}/api/triggers/{id} -v -u {name}:{password}",
27379         "type": "json"
27380       }
27381     ],
27382     "name": "ShowTriggers",
27383     "group": "Triggers",
27384     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27385     "version": "0.0.0",
27386     "filename": "server/api/trigger/index.js",
27387     "groupTitle": "Triggers"
27388   },
27389   {
27390     "type": "post",
27391     "url": "/api/triggers/{id}/actions",
27392     "title": "Creates new actions",
27393     "examples": [
27394       {
27395         "title": "Example usage:",
27396         "content": "curl https://{domain}/api/triggers/{id}/actions -d '{\"action\": \"contactManager\",\"data1\": \"1\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
27397         "type": "json"
27398       }
27399     ],
27400     "name": "addAction",
27401     "group": "Triggers",
27402     "parameter": {
27403       "fields": {
27404         "Body": [
27405           {
27406             "group": "Body",
27407             "type": "Virtual",
27408             "optional": true,
27409             "field": "name",
27410             "description": ""
27411           },
27412           {
27413             "group": "Body",
27414             "type": "String",
27415             "optional": false,
27416             "field": "action",
27417             "description": "<p>Allowed values: contactManager, integration, motionbar, jscripty, urlForward, browser, bot, script</p>"
27418           },
27419           {
27420             "group": "Body",
27421             "type": "String",
27422             "optional": true,
27423             "field": "data1",
27424             "description": "<p>contactManager[ListId], integration[intName(zendesk)], motionbar[Popup(0),URL(1),WinApp(2)], urlForward[GET,POST], browser[TemplateId(0),URL(1)]</p>"
27425           },
27426           {
27427             "group": "Body",
27428             "type": "String",
27429             "optional": true,
27430             "field": "data2",
27431             "description": "<p>integration[AccountId], motionbar[TemplateId,URL,WinAppPath], urlForward[URL]</p>"
27432           },
27433           {
27434             "group": "Body",
27435             "type": "String",
27436             "optional": true,
27437             "field": "data3",
27438             "description": "<p>motionbar[NULL,NULL,WinAppArguments]</p>"
27439           },
27440           {
27441             "group": "Body",
27442             "type": "String",
27443             "optional": true,
27444             "field": "data4",
27445             "description": ""
27446           },
27447           {
27448             "group": "Body",
27449             "type": "String",
27450             "optional": true,
27451             "field": "data5",
27452             "description": ""
27453           },
27454           {
27455             "group": "Body",
27456             "type": "String",
27457             "optional": true,
27458             "field": "data6",
27459             "description": ""
27460           },
27461           {
27462             "group": "Body",
27463             "type": "Text",
27464             "optional": true,
27465             "field": "data7",
27466             "description": ""
27467           }
27468         ]
27469       }
27470     },
27471     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27472     "version": "0.0.0",
27473     "filename": "server/api/trigger/index.js",
27474     "groupTitle": "Triggers"
27475   },
27476   {
27477     "type": "post",
27478     "url": "/api/triggers/{id}/all_conditions",
27479     "title": "Creates a new \"AND\"condition",
27480     "examples": [
27481       {
27482         "title": "Example usage:",
27483         "content": "curl https://{domain}/api/triggers/{id}/all_conditions -d '{\"field\": \"name\", \"operator\": \"equal\", \"value\": \"John Doe\"}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
27484         "type": "json"
27485       }
27486     ],
27487     "name": "addAllCondition",
27488     "group": "Triggers",
27489     "parameter": {
27490       "fields": {
27491         "Body": [
27492           {
27493             "group": "Body",
27494             "type": "Virtual",
27495             "optional": true,
27496             "field": "name",
27497             "description": ""
27498           },
27499           {
27500             "group": "Body",
27501             "type": "String",
27502             "optional": false,
27503             "field": "field",
27504             "description": ""
27505           },
27506           {
27507             "group": "Body",
27508             "type": "String",
27509             "optional": false,
27510             "field": "operator",
27511             "description": ""
27512           },
27513           {
27514             "group": "Body",
27515             "type": "String",
27516             "optional": false,
27517             "field": "value",
27518             "description": ""
27519           }
27520         ]
27521       }
27522     },
27523     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27524     "version": "0.0.0",
27525     "filename": "server/api/trigger/index.js",
27526     "groupTitle": "Triggers"
27527   },
27528   {
27529     "type": "post",
27530     "url": "/api/triggers/{id}/any_conditions",
27531     "title": "Creates a new \"OR\"condition",
27532     "examples": [
27533       {
27534         "title": "Example usage:",
27535         "content": "curl https://{domain}/api/triggers/{id}/any_conditions -d '{\"field\": \"name\", \"operator\": \"equal\", \"value\": \"John Doe\"}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
27536         "type": "json"
27537       }
27538     ],
27539     "name": "addAnyCondition",
27540     "group": "Triggers",
27541     "parameter": {
27542       "fields": {
27543         "Body": [
27544           {
27545             "group": "Body",
27546             "type": "Virtual",
27547             "optional": true,
27548             "field": "name",
27549             "description": ""
27550           },
27551           {
27552             "group": "Body",
27553             "type": "String",
27554             "optional": false,
27555             "field": "field",
27556             "description": ""
27557           },
27558           {
27559             "group": "Body",
27560             "type": "String",
27561             "optional": false,
27562             "field": "operator",
27563             "description": ""
27564           },
27565           {
27566             "group": "Body",
27567             "type": "String",
27568             "optional": false,
27569             "field": "value",
27570             "description": ""
27571           }
27572         ]
27573       }
27574     },
27575     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27576     "version": "0.0.0",
27577     "filename": "server/api/trigger/index.js",
27578     "groupTitle": "Triggers"
27579   },
27580   {
27581     "type": "get",
27582     "url": "/api/triggers/{id}/actions",
27583     "title": "Gets Trigger Actions",
27584     "examples": [
27585       {
27586         "title": "Example usage:",
27587         "content": "curl https://{domain}/api/triggers/{id}/actions -v -u {name}:{password} -X GET",
27588         "type": "json"
27589       }
27590     ],
27591     "name": "getActions",
27592     "group": "Triggers",
27593     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27594     "version": "0.0.0",
27595     "filename": "server/api/trigger/index.js",
27596     "groupTitle": "Triggers"
27597   },
27598   {
27599     "type": "get",
27600     "url": "/api/triggers/{id}/all_conditions",
27601     "title": "Gets \"AND\" Trigger Conditions",
27602     "examples": [
27603       {
27604         "title": "Example usage:",
27605         "content": "curl https://{domain}/api/triggers/{id}/all_conditions -v -u {name}:{password} -X GET",
27606         "type": "json"
27607       }
27608     ],
27609     "name": "getAllConditions",
27610     "group": "Triggers",
27611     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27612     "version": "0.0.0",
27613     "filename": "server/api/trigger/index.js",
27614     "groupTitle": "Triggers"
27615   },
27616   {
27617     "type": "get",
27618     "url": "/api/triggers/{id}/any_conditions",
27619     "title": "Gets \"OR\" Trigger Conditions",
27620     "examples": [
27621       {
27622         "title": "Example usage:",
27623         "content": "curl https://{domain}/api/triggers/{id}/any_conditions -v -u {name}:{password} -X GET",
27624         "type": "json"
27625       }
27626     ],
27627     "name": "getAnyConditions",
27628     "group": "Triggers",
27629     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27630     "version": "0.0.0",
27631     "filename": "server/api/trigger/index.js",
27632     "groupTitle": "Triggers"
27633   },
27634   {
27635     "type": "put",
27636     "url": "/api/triggers/{id}",
27637     "title": "Update an existing Trigger",
27638     "examples": [
27639       {
27640         "title": "Example usage:",
27641         "content": "curl https://{domain}/api/triggers/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
27642         "type": "json"
27643       }
27644     ],
27645     "name": "updateTriggers",
27646     "group": "Triggers",
27647     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27648     "version": "0.0.0",
27649     "filename": "server/api/trigger/index.js",
27650     "groupTitle": "Triggers"
27651   },
27652   {
27653     "type": "post",
27654     "url": "/api/trunks/clone",
27655     "title": "Clone an existing Trunk",
27656     "examples": [
27657       {
27658         "title": "Example usage:",
27659         "content": "curl https://{domain}/api/trunks/clone -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
27660         "type": "json"
27661       }
27662     ],
27663     "name": "CloneTrunks",
27664     "group": "Trunks",
27665     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27666     "version": "0.0.0",
27667     "filename": "server/api/trunk/index.js",
27668     "groupTitle": "Trunks"
27669   },
27670   {
27671     "type": "post",
27672     "url": "/api/trunks",
27673     "title": "Create a new trunk",
27674     "examples": [
27675       {
27676         "title": "Example usage:",
27677         "content": "curl https://{domain}/api/trunks -v -u {name}:{password} -X POST",
27678         "type": "json"
27679       }
27680     ],
27681     "name": "Create",
27682     "group": "Trunks",
27683     "parameter": {
27684       "fields": {
27685         "Body": [
27686           {
27687             "group": "Body",
27688             "type": "String",
27689             "optional": false,
27690             "field": "name",
27691             "description": ""
27692           },
27693           {
27694             "group": "Body",
27695             "type": "String",
27696             "allowedValues": [
27697               "\"friend\"",
27698               "\"user\"",
27699               "\"peer\""
27700             ],
27701             "optional": false,
27702             "field": "type",
27703             "description": ""
27704           },
27705           {
27706             "group": "Body",
27707             "type": "String",
27708             "optional": false,
27709             "field": "context",
27710             "description": ""
27711           },
27712           {
27713             "group": "Body",
27714             "type": "String",
27715             "allowedValues": [
27716               "\"ALLOWED_NOT_SCREENED\"",
27717               "\"ALLOWED_PASSED_SCREEN\"",
27718               "\"ALLOWED_FAILED_SCREEN\"",
27719               "\"ALLOWED\"",
27720               "\"PROHIB_NOT_SCREENED\"",
27721               "\"PROHIB_PASSED_SCREEN\"",
27722               "\"PROHIB_FAILED_SCREEN\"",
27723               "\"PROHIB\""
27724             ],
27725             "optional": true,
27726             "field": "callingpres",
27727             "description": ""
27728           },
27729           {
27730             "group": "Body",
27731             "type": "String",
27732             "optional": true,
27733             "field": "deny",
27734             "description": ""
27735           },
27736           {
27737             "group": "Body",
27738             "type": "String",
27739             "optional": true,
27740             "field": "permit",
27741             "description": ""
27742           },
27743           {
27744             "group": "Body",
27745             "type": "String",
27746             "optional": true,
27747             "field": "secret",
27748             "description": ""
27749           },
27750           {
27751             "group": "Body",
27752             "type": "String",
27753             "optional": true,
27754             "field": "md5secret",
27755             "description": ""
27756           },
27757           {
27758             "group": "Body",
27759             "type": "String",
27760             "optional": true,
27761             "field": "remotesecret",
27762             "description": ""
27763           },
27764           {
27765             "group": "Body",
27766             "type": "String",
27767             "optional": true,
27768             "field": "transport",
27769             "description": "<p>String is deprecated. Please use an Array as [&quot;udp&quot;, &quot;tcp&quot;]</p>"
27770           },
27771           {
27772             "group": "Body",
27773             "type": "String",
27774             "allowedValues": [
27775               "\"rfc2833\"",
27776               "\"info\"",
27777               "\"shortinfo\"",
27778               "\"inband\"",
27779               "\"auto\""
27780             ],
27781             "optional": true,
27782             "field": "dtmfmode",
27783             "description": ""
27784           },
27785           {
27786             "group": "Body",
27787             "type": "String",
27788             "allowedValues": [
27789               "\"yes\"",
27790               "\"no\"",
27791               "\"nonat\"",
27792               "\"update\"",
27793               "\"outgoing\""
27794             ],
27795             "optional": true,
27796             "field": "directmedia",
27797             "description": ""
27798           },
27799           {
27800             "group": "Body",
27801             "type": "String",
27802             "allowedValues": [
27803               "\"yes\"",
27804               "\"no\""
27805             ],
27806             "optional": true,
27807             "field": "directrtpsetup",
27808             "description": ""
27809           },
27810           {
27811             "group": "Body",
27812             "type": "String",
27813             "optional": true,
27814             "field": "directmediapermit",
27815             "description": ""
27816           },
27817           {
27818             "group": "Body",
27819             "type": "String",
27820             "optional": true,
27821             "field": "directmediadeny",
27822             "description": ""
27823           },
27824           {
27825             "group": "Body",
27826             "type": "String",
27827             "optional": true,
27828             "field": "nat",
27829             "description": "<p>String is deprecated. Please use an Array as [&quot;force_rport&quot;, &quot;comedia&quot;]</p>"
27830           },
27831           {
27832             "group": "Body",
27833             "type": "String",
27834             "optional": true,
27835             "field": "callgroup",
27836             "description": ""
27837           },
27838           {
27839             "group": "Body",
27840             "type": "String",
27841             "optional": true,
27842             "field": "namedcallgroup",
27843             "description": ""
27844           },
27845           {
27846             "group": "Body",
27847             "type": "String",
27848             "optional": true,
27849             "field": "pickupgroup",
27850             "description": ""
27851           },
27852           {
27853             "group": "Body",
27854             "type": "String",
27855             "optional": true,
27856             "field": "namedpickupgroup",
27857             "description": ""
27858           },
27859           {
27860             "group": "Body",
27861             "type": "String",
27862             "optional": true,
27863             "field": "language",
27864             "description": ""
27865           },
27866           {
27867             "group": "Body",
27868             "type": "String",
27869             "optional": true,
27870             "field": "tonezone",
27871             "description": ""
27872           },
27873           {
27874             "group": "Body",
27875             "type": "String",
27876             "optional": true,
27877             "field": "disallow",
27878             "description": ""
27879           },
27880           {
27881             "group": "Body",
27882             "type": "String",
27883             "optional": false,
27884             "field": "allow",
27885             "description": "<p>String is deprecated. Please use an Array as [&quot;ulaw&quot;, &quot;alaw&quot;, &quot;alaw&quot;]</p>"
27886           },
27887           {
27888             "group": "Body",
27889             "type": "String",
27890             "allowedValues": [
27891               "\"yes\"",
27892               "\"no\""
27893             ],
27894             "optional": true,
27895             "field": "autoframing",
27896             "description": ""
27897           },
27898           {
27899             "group": "Body",
27900             "type": "String",
27901             "optional": true,
27902             "field": "insecure",
27903             "description": "<p>String is deprecated. Please use an Array as [&quot;port&quot;, &quot;invite&quot;]</p>"
27904           },
27905           {
27906             "group": "Body",
27907             "type": "String",
27908             "allowedValues": [
27909               "\"yes\"",
27910               "\"no\""
27911             ],
27912             "optional": true,
27913             "field": "trustrpid",
27914             "description": ""
27915           },
27916           {
27917             "group": "Body",
27918             "type": "String",
27919             "allowedValues": [
27920               "\"yes\"",
27921               "\"no\""
27922             ],
27923             "optional": true,
27924             "field": "trust_id_outbound",
27925             "description": ""
27926           },
27927           {
27928             "group": "Body",
27929             "type": "String",
27930             "allowedValues": [
27931               "\"yes\"",
27932               "\"no\"",
27933               "\"never\""
27934             ],
27935             "optional": true,
27936             "field": "progressinband",
27937             "description": ""
27938           },
27939           {
27940             "group": "Body",
27941             "type": "String",
27942             "allowedValues": [
27943               "\"yes\"",
27944               "\"no\""
27945             ],
27946             "optional": true,
27947             "field": "promiscredir",
27948             "description": ""
27949           },
27950           {
27951             "group": "Body",
27952             "type": "String",
27953             "allowedValues": [
27954               "\"yes\"",
27955               "\"no\""
27956             ],
27957             "optional": true,
27958             "field": "useclientcode",
27959             "description": ""
27960           },
27961           {
27962             "group": "Body",
27963             "type": "Integer",
27964             "optional": true,
27965             "field": "accountcode",
27966             "description": ""
27967           },
27968           {
27969             "group": "Body",
27970             "type": "String",
27971             "optional": true,
27972             "field": "setvar",
27973             "description": ""
27974           },
27975           {
27976             "group": "Body",
27977             "type": "String",
27978             "optional": true,
27979             "field": "callerid",
27980             "description": ""
27981           },
27982           {
27983             "group": "Body",
27984             "type": "String",
27985             "optional": true,
27986             "field": "amaflags",
27987             "description": ""
27988           },
27989           {
27990             "group": "Body",
27991             "type": "String",
27992             "allowedValues": [
27993               "\"yes\"",
27994               "\"no\""
27995             ],
27996             "optional": true,
27997             "field": "callcounter",
27998             "description": ""
27999           },
28000           {
28001             "group": "Body",
28002             "type": "Integer",
28003             "optional": true,
28004             "field": "busylevel",
28005             "description": ""
28006           },
28007           {
28008             "group": "Body",
28009             "type": "String",
28010             "allowedValues": [
28011               "\"yes\"",
28012               "\"no\""
28013             ],
28014             "optional": true,
28015             "field": "allowoverlap",
28016             "description": ""
28017           },
28018           {
28019             "group": "Body",
28020             "type": "String",
28021             "allowedValues": [
28022               "\"yes\"",
28023               "\"no\""
28024             ],
28025             "optional": true,
28026             "field": "allowsubscribe",
28027             "description": ""
28028           },
28029           {
28030             "group": "Body",
28031             "type": "String",
28032             "allowedValues": [
28033               "\"yes\"",
28034               "\"no\""
28035             ],
28036             "optional": true,
28037             "field": "allowtransfer",
28038             "description": ""
28039           },
28040           {
28041             "group": "Body",
28042             "type": "String",
28043             "allowedValues": [
28044               "\"yes\"",
28045               "\"no\""
28046             ],
28047             "optional": true,
28048             "field": "ignoresdpversion",
28049             "description": ""
28050           },
28051           {
28052             "group": "Body",
28053             "type": "String",
28054             "optional": true,
28055             "field": "subscribecontext",
28056             "description": ""
28057           },
28058           {
28059             "group": "Body",
28060             "type": "String",
28061             "optional": true,
28062             "field": "template",
28063             "description": ""
28064           },
28065           {
28066             "group": "Body",
28067             "type": "String",
28068             "allowedValues": [
28069               "\"yes\"",
28070               "\"no\"",
28071               "\"always\""
28072             ],
28073             "optional": true,
28074             "field": "videosupport",
28075             "description": ""
28076           },
28077           {
28078             "group": "Body",
28079             "type": "Integer",
28080             "optional": true,
28081             "field": "maxcallbitrate",
28082             "description": ""
28083           },
28084           {
28085             "group": "Body",
28086             "type": "String",
28087             "allowedValues": [
28088               "\"yes\"",
28089               "\"no\""
28090             ],
28091             "optional": true,
28092             "field": "rfc2833compensate",
28093             "description": ""
28094           },
28095           {
28096             "group": "Body",
28097             "type": "String",
28098             "optional": true,
28099             "field": "mailbox",
28100             "description": ""
28101           },
28102           {
28103             "group": "Body",
28104             "type": "String",
28105             "allowedValues": [
28106               "\"accept\"",
28107               "\"refuse\"",
28108               "\"originate\""
28109             ],
28110             "optional": true,
28111             "field": "session_timers",
28112             "description": ""
28113           },
28114           {
28115             "group": "Body",
28116             "type": "Integer",
28117             "optional": true,
28118             "field": "session_expires",
28119             "description": ""
28120           },
28121           {
28122             "group": "Body",
28123             "type": "Integer",
28124             "optional": true,
28125             "field": "session_minse",
28126             "description": ""
28127           },
28128           {
28129             "group": "Body",
28130             "type": "String",
28131             "allowedValues": [
28132               "\"uac\"",
28133               "\"uas\""
28134             ],
28135             "optional": true,
28136             "field": "session_refresher",
28137             "description": ""
28138           },
28139           {
28140             "group": "Body",
28141             "type": "String",
28142             "optional": true,
28143             "field": "t38pt_usertpsource",
28144             "description": ""
28145           },
28146           {
28147             "group": "Body",
28148             "type": "String",
28149             "optional": true,
28150             "field": "regexten",
28151             "description": ""
28152           },
28153           {
28154             "group": "Body",
28155             "type": "String",
28156             "optional": true,
28157             "field": "fromdomain",
28158             "description": ""
28159           },
28160           {
28161             "group": "Body",
28162             "type": "String",
28163             "optional": true,
28164             "field": "fromuser",
28165             "description": ""
28166           },
28167           {
28168             "group": "Body",
28169             "type": "Integer",
28170             "optional": true,
28171             "field": "port",
28172             "description": ""
28173           },
28174           {
28175             "group": "Body",
28176             "type": "String",
28177             "allowedValues": [
28178               "\"yes\"",
28179               "\"no\""
28180             ],
28181             "optional": true,
28182             "field": "qualify",
28183             "description": ""
28184           },
28185           {
28186             "group": "Body",
28187             "type": "Integer",
28188             "optional": true,
28189             "field": "keepalive",
28190             "description": ""
28191           },
28192           {
28193             "group": "Body",
28194             "type": "String",
28195             "optional": true,
28196             "field": "defaultip",
28197             "description": ""
28198           },
28199           {
28200             "group": "Body",
28201             "type": "String",
28202             "optional": true,
28203             "field": "defaultuser",
28204             "description": ""
28205           },
28206           {
28207             "group": "Body",
28208             "type": "Integer",
28209             "optional": true,
28210             "field": "rtptimeout",
28211             "description": ""
28212           },
28213           {
28214             "group": "Body",
28215             "type": "Integer",
28216             "optional": true,
28217             "field": "rtpholdtimeout",
28218             "description": ""
28219           },
28220           {
28221             "group": "Body",
28222             "type": "Integer",
28223             "optional": true,
28224             "field": "rtpkeepalive",
28225             "description": ""
28226           },
28227           {
28228             "group": "Body",
28229             "type": "String",
28230             "allowedValues": [
28231               "\"yes\"",
28232               "\"no\"",
28233               "\"pai\""
28234             ],
28235             "optional": true,
28236             "field": "sendrpid",
28237             "description": ""
28238           },
28239           {
28240             "group": "Body",
28241             "type": "String",
28242             "optional": true,
28243             "field": "outboundproxy",
28244             "description": ""
28245           },
28246           {
28247             "group": "Body",
28248             "type": "String",
28249             "optional": true,
28250             "field": "callbackextension",
28251             "description": ""
28252           },
28253           {
28254             "group": "Body",
28255             "type": "Integer",
28256             "optional": true,
28257             "field": "timert1",
28258             "description": ""
28259           },
28260           {
28261             "group": "Body",
28262             "type": "Integer",
28263             "optional": true,
28264             "field": "timerb",
28265             "description": ""
28266           },
28267           {
28268             "group": "Body",
28269             "type": "Integer",
28270             "optional": true,
28271             "field": "qualifyfreq",
28272             "description": ""
28273           },
28274           {
28275             "group": "Body",
28276             "type": "String",
28277             "optional": true,
28278             "field": "contactpermit",
28279             "description": ""
28280           },
28281           {
28282             "group": "Body",
28283             "type": "String",
28284             "optional": true,
28285             "field": "contactdeny",
28286             "description": ""
28287           },
28288           {
28289             "group": "Body",
28290             "type": "String",
28291             "optional": true,
28292             "field": "contactacl",
28293             "description": ""
28294           },
28295           {
28296             "group": "Body",
28297             "type": "String",
28298             "optional": true,
28299             "field": "unsolicited_mailbox",
28300             "description": ""
28301           },
28302           {
28303             "group": "Body",
28304             "type": "String",
28305             "optional": true,
28306             "field": "use_q850_reason",
28307             "description": ""
28308           },
28309           {
28310             "group": "Body",
28311             "type": "Integer",
28312             "optional": true,
28313             "field": "maxforwards",
28314             "description": ""
28315           },
28316           {
28317             "group": "Body",
28318             "type": "String",
28319             "allowedValues": [
28320               "\"yes\"",
28321               "\"no\""
28322             ],
28323             "optional": true,
28324             "field": "encryption",
28325             "description": ""
28326           },
28327           {
28328             "group": "Body",
28329             "type": "String",
28330             "allowedValues": [
28331               "\"yes\"",
28332               "\"no\""
28333             ],
28334             "optional": true,
28335             "field": "avpf",
28336             "description": ""
28337           },
28338           {
28339             "group": "Body",
28340             "type": "String",
28341             "allowedValues": [
28342               "\"yes\"",
28343               "\"no\""
28344             ],
28345             "optional": true,
28346             "field": "force_avp",
28347             "description": ""
28348           },
28349           {
28350             "group": "Body",
28351             "type": "String",
28352             "allowedValues": [
28353               "\"yes\"",
28354               "\"no\""
28355             ],
28356             "optional": true,
28357             "field": "icesupport",
28358             "description": ""
28359           },
28360           {
28361             "group": "Body",
28362             "type": "String",
28363             "allowedValues": [
28364               "\"yes\"",
28365               "\"no\""
28366             ],
28367             "optional": true,
28368             "field": "dtlsenable",
28369             "description": ""
28370           },
28371           {
28372             "group": "Body",
28373             "type": "String",
28374             "allowedValues": [
28375               "\"yes\"",
28376               "\"no\"",
28377               "\"fingerprint\"",
28378               "\"certificate\""
28379             ],
28380             "optional": true,
28381             "field": "dtlsverify",
28382             "description": ""
28383           },
28384           {
28385             "group": "Body",
28386             "type": "Integer",
28387             "optional": true,
28388             "field": "dtlsrekey",
28389             "description": ""
28390           },
28391           {
28392             "group": "Body",
28393             "type": "String",
28394             "optional": true,
28395             "field": "dtlscertfile",
28396             "description": ""
28397           },
28398           {
28399             "group": "Body",
28400             "type": "String",
28401             "optional": true,
28402             "field": "dtlsprivatekey",
28403             "description": ""
28404           },
28405           {
28406             "group": "Body",
28407             "type": "String",
28408             "optional": true,
28409             "field": "dtlscipher",
28410             "description": ""
28411           },
28412           {
28413             "group": "Body",
28414             "type": "String",
28415             "optional": true,
28416             "field": "dtlscafile",
28417             "description": ""
28418           },
28419           {
28420             "group": "Body",
28421             "type": "String",
28422             "optional": true,
28423             "field": "dtlscapath",
28424             "description": ""
28425           },
28426           {
28427             "group": "Body",
28428             "type": "String",
28429             "allowedValues": [
28430               "\"active\"",
28431               "\"passive\"",
28432               "\"actpass\""
28433             ],
28434             "optional": true,
28435             "field": "dtlssetup",
28436             "description": ""
28437           },
28438           {
28439             "group": "Body",
28440             "type": "String",
28441             "optional": true,
28442             "field": "dtlsfingerprint",
28443             "description": ""
28444           },
28445           {
28446             "group": "Body",
28447             "type": "String",
28448             "allowedValues": [
28449               "\"yes\"",
28450               "\"no\""
28451             ],
28452             "optional": true,
28453             "field": "usereqphone",
28454             "description": ""
28455           },
28456           {
28457             "group": "Body",
28458             "type": "String",
28459             "optional": true,
28460             "field": "recordonfeature",
28461             "description": ""
28462           },
28463           {
28464             "group": "Body",
28465             "type": "String",
28466             "optional": true,
28467             "field": "recordofffeature",
28468             "description": ""
28469           },
28470           {
28471             "group": "Body",
28472             "type": "Integer",
28473             "optional": true,
28474             "field": "call_limit",
28475             "description": ""
28476           },
28477           {
28478             "group": "Body",
28479             "type": "String",
28480             "allowedValues": [
28481               "\"yes\"",
28482               "\"no\""
28483             ],
28484             "optional": true,
28485             "field": "registertrying",
28486             "description": ""
28487           },
28488           {
28489             "group": "Body",
28490             "type": "String",
28491             "allowedValues": [
28492               "\"yes\"",
28493               "\"no\""
28494             ],
28495             "optional": true,
28496             "field": "subscribemwi",
28497             "description": ""
28498           },
28499           {
28500             "group": "Body",
28501             "type": "String",
28502             "optional": true,
28503             "field": "vmexten",
28504             "description": ""
28505           },
28506           {
28507             "group": "Body",
28508             "type": "String",
28509             "optional": true,
28510             "field": "mohinterpret",
28511             "description": ""
28512           },
28513           {
28514             "group": "Body",
28515             "type": "String",
28516             "optional": true,
28517             "field": "mohsuggest",
28518             "description": ""
28519           },
28520           {
28521             "group": "Body",
28522             "type": "String",
28523             "optional": true,
28524             "field": "parkinglot",
28525             "description": ""
28526           },
28527           {
28528             "group": "Body",
28529             "type": "String",
28530             "optional": true,
28531             "field": "description",
28532             "description": ""
28533           },
28534           {
28535             "group": "Body",
28536             "type": "String",
28537             "optional": true,
28538             "field": "host",
28539             "description": ""
28540           },
28541           {
28542             "group": "Body",
28543             "type": "String",
28544             "allowedValues": [
28545               "\"yes\"",
28546               "\"no\"",
28547               "\"nonat\"",
28548               "\"update\"",
28549               "\"update,nonat\""
28550             ],
28551             "optional": true,
28552             "field": "canreinvite",
28553             "description": ""
28554           },
28555           {
28556             "group": "Body",
28557             "type": "String",
28558             "optional": true,
28559             "field": "registry",
28560             "description": ""
28561           },
28562           {
28563             "group": "Body",
28564             "type": "String",
28565             "optional": true,
28566             "field": "otherFields",
28567             "description": ""
28568           },
28569           {
28570             "group": "Body",
28571             "type": "Boolean",
28572             "optional": false,
28573             "field": "active",
28574             "description": ""
28575           },
28576           {
28577             "group": "Body",
28578             "type": "String",
28579             "optional": true,
28580             "field": "t38pt_udptl",
28581             "description": ""
28582           }
28583         ]
28584       }
28585     },
28586     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28587     "version": "0.0.0",
28588     "filename": "server/api/trunk/index.js",
28589     "groupTitle": "Trunks"
28590   },
28591   {
28592     "type": "delete",
28593     "url": "/api/trunks/{id}",
28594     "title": "Deletes a trunk",
28595     "examples": [
28596       {
28597         "title": "Example usage:",
28598         "content": "curl https://{domain}/api/trunks/{id} -v -u {name}:{password} -X DELETE",
28599         "type": "json"
28600       }
28601     ],
28602     "name": "Delete",
28603     "group": "Trunks",
28604     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28605     "version": "0.0.0",
28606     "filename": "server/api/trunk/index.js",
28607     "groupTitle": "Trunks"
28608   },
28609   {
28610     "type": "get",
28611     "url": "/api/trunks",
28612     "title": "Gets a list of Trunks",
28613     "examples": [
28614       {
28615         "title": "Example usage:",
28616         "content": "curl https://{domain}/api/trunks -v -u {name}:{password}",
28617         "type": "json"
28618       }
28619     ],
28620     "name": "GetTrunks",
28621     "group": "Trunks",
28622     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/trunks?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/trunks?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/trunks?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/trunks?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/trunks?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
28623     "version": "0.0.0",
28624     "filename": "server/api/trunk/index.js",
28625     "groupTitle": "Trunks"
28626   },
28627   {
28628     "type": "get",
28629     "url": "/api/trunks/{id}",
28630     "title": "Gets a single Trunk",
28631     "examples": [
28632       {
28633         "title": "Example usage:",
28634         "content": "curl https://{domain}/api/trunks/{id} -v -u {name}:{password}",
28635         "type": "json"
28636       }
28637     ],
28638     "name": "ShowTrunks",
28639     "group": "Trunks",
28640     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28641     "version": "0.0.0",
28642     "filename": "server/api/trunk/index.js",
28643     "groupTitle": "Trunks"
28644   },
28645   {
28646     "type": "put",
28647     "url": "/api/trunks/{id}",
28648     "title": "Update an existing trunk",
28649     "examples": [
28650       {
28651         "title": "Example usage:",
28652         "content": "curl https://{domain}/api/trunks/{id} -v -u {name}:{password} -X PUT",
28653         "type": "json"
28654       }
28655     ],
28656     "name": "Update",
28657     "group": "Trunks",
28658     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28659     "version": "0.0.0",
28660     "filename": "server/api/trunk/index.js",
28661     "groupTitle": "Trunks"
28662   },
28663   {
28664     "type": "post",
28665     "url": "/api/userNotifications",
28666     "title": "Send notification to user",
28667     "examples": [
28668       {
28669         "title": "Example usage:",
28670         "content": "curl https://{domain}/api/userNotifications -d '{\"text\": \"Hello!\", \"TemplateId\": 1}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
28671         "type": "json"
28672       }
28673     ],
28674     "name": "Send",
28675     "group": "UserNotifications",
28676     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28677     "version": "0.0.0",
28678     "filename": "server/api/userNotification/index.js",
28679     "groupTitle": "UserNotifications"
28680   },
28681   {
28682     "type": "post",
28683     "url": "/api/userProfile/resources",
28684     "title": "Creates a new User Profile Resource",
28685     "examples": [
28686       {
28687         "title": "Example usage:",
28688         "content": "curl https://{domain}/api/userProfile/resources -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
28689         "type": "json"
28690       }
28691     ],
28692     "name": "CreateUser_Profile_Resources",
28693     "group": "User_Profile_Resources",
28694     "parameter": {
28695       "fields": {
28696         "Body": [
28697           {
28698             "group": "Body",
28699             "type": "String",
28700             "optional": false,
28701             "field": "name",
28702             "description": ""
28703           },
28704           {
28705             "group": "Body",
28706             "type": "Integer",
28707             "optional": false,
28708             "field": "resourceId",
28709             "description": ""
28710           },
28711           {
28712             "group": "Body",
28713             "type": "String",
28714             "optional": false,
28715             "field": "type",
28716             "description": ""
28717           }
28718         ]
28719       }
28720     },
28721     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28722     "version": "0.0.0",
28723     "filename": "server/api/userProfileResource/index.js",
28724     "groupTitle": "User_Profile_Resources"
28725   },
28726   {
28727     "type": "delete",
28728     "url": "/api/userProfile/resources/{id}",
28729     "title": "Deletes a User Profile Resource",
28730     "examples": [
28731       {
28732         "title": "Example usage:",
28733         "content": "curl https://{domain}/api/userProfile/resources/{id} -v -u {name}:{password} -X DELETE",
28734         "type": "json"
28735       }
28736     ],
28737     "name": "DeleteUser_Profile_Resources",
28738     "group": "User_Profile_Resources",
28739     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28740     "version": "0.0.0",
28741     "filename": "server/api/userProfileResource/index.js",
28742     "groupTitle": "User_Profile_Resources"
28743   },
28744   {
28745     "type": "get",
28746     "url": "/api/userProfile/resources/describe",
28747     "title": "Gets table info about User Profile Resources",
28748     "examples": [
28749       {
28750         "title": "Example usage:",
28751         "content": "curl https://{domain}/api/userProfile/resources/describe -v -u {name}:{password}",
28752         "type": "json"
28753       }
28754     ],
28755     "name": "DescribeUser_Profile_Resources",
28756     "group": "User_Profile_Resources",
28757     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28758     "version": "0.0.0",
28759     "filename": "server/api/userProfileResource/index.js",
28760     "groupTitle": "User_Profile_Resources"
28761   },
28762   {
28763     "type": "get",
28764     "url": "/api/userProfile/resources",
28765     "title": "Gets a list of User Profile Resources",
28766     "examples": [
28767       {
28768         "title": "Example usage:",
28769         "content": "curl https://{domain}/api/userProfile/resources -v -u {name}:{password}",
28770         "type": "json"
28771       }
28772     ],
28773     "name": "GetUser_Profile_Resources",
28774     "group": "User_Profile_Resources",
28775     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/userProfile/resources?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/userProfile/resources?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/userProfile/resources?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/userProfile/resources?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/userProfile/resources?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
28776     "version": "0.0.0",
28777     "filename": "server/api/userProfileResource/index.js",
28778     "groupTitle": "User_Profile_Resources"
28779   },
28780   {
28781     "type": "get",
28782     "url": "/api/userProfile/resources/{id}",
28783     "title": "Gets a single User Profile Resource",
28784     "examples": [
28785       {
28786         "title": "Example usage:",
28787         "content": "curl https://{domain}/api/userProfile/resources/{id} -v -u {name}:{password}",
28788         "type": "json"
28789       }
28790     ],
28791     "name": "ShowUser_Profile_Resources",
28792     "group": "User_Profile_Resources",
28793     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28794     "version": "0.0.0",
28795     "filename": "server/api/userProfileResource/index.js",
28796     "groupTitle": "User_Profile_Resources"
28797   },
28798   {
28799     "type": "put",
28800     "url": "/api/userProfile/resources/{id}",
28801     "title": "Update an existing User Profile Resource",
28802     "examples": [
28803       {
28804         "title": "Example usage:",
28805         "content": "curl https://{domain}/api/userProfile/resources/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
28806         "type": "json"
28807       }
28808     ],
28809     "name": "updateUser_Profile_Resources",
28810     "group": "User_Profile_Resources",
28811     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28812     "version": "0.0.0",
28813     "filename": "server/api/userProfileResource/index.js",
28814     "groupTitle": "User_Profile_Resources"
28815   },
28816   {
28817     "type": "post",
28818     "url": "/api/userProfile/sections",
28819     "title": "Creates a new User Profile Section",
28820     "examples": [
28821       {
28822         "title": "Example usage:",
28823         "content": "curl https://{domain}/api/userProfile/sections -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
28824         "type": "json"
28825       }
28826     ],
28827     "name": "CreateUser_Profile_Sections",
28828     "group": "User_Profile_Sections",
28829     "parameter": {
28830       "fields": {
28831         "Body": [
28832           {
28833             "group": "Body",
28834             "type": "String",
28835             "optional": false,
28836             "field": "name",
28837             "description": ""
28838           },
28839           {
28840             "group": "Body",
28841             "type": "String",
28842             "optional": false,
28843             "field": "category",
28844             "description": ""
28845           },
28846           {
28847             "group": "Body",
28848             "type": "Integer",
28849             "optional": false,
28850             "field": "sectionId",
28851             "description": ""
28852           },
28853           {
28854             "group": "Body",
28855             "type": "Boolean",
28856             "optional": true,
28857             "field": "enabled",
28858             "description": ""
28859           },
28860           {
28861             "group": "Body",
28862             "type": "Boolean",
28863             "optional": true,
28864             "field": "autoAssociation",
28865             "description": ""
28866           },
28867           {
28868             "group": "Body",
28869             "type": "String",
28870             "optional": true,
28871             "field": "crudPermissions",
28872             "description": ""
28873           }
28874         ]
28875       }
28876     },
28877     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28878     "version": "0.0.0",
28879     "filename": "server/api/userProfileSection/index.js",
28880     "groupTitle": "User_Profile_Sections"
28881   },
28882   {
28883     "type": "delete",
28884     "url": "/api/userProfile/sections/{id}",
28885     "title": "Deletes a User Profile Section",
28886     "examples": [
28887       {
28888         "title": "Example usage:",
28889         "content": "curl https://{domain}/api/userProfile/sections/{id} -v -u {name}:{password} -X DELETE",
28890         "type": "json"
28891       }
28892     ],
28893     "name": "DeleteUser_Profile_Sections",
28894     "group": "User_Profile_Sections",
28895     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28896     "version": "0.0.0",
28897     "filename": "server/api/userProfileSection/index.js",
28898     "groupTitle": "User_Profile_Sections"
28899   },
28900   {
28901     "type": "get",
28902     "url": "/api/userProfile/sections/describe",
28903     "title": "Gets table info about User Profile Sections",
28904     "examples": [
28905       {
28906         "title": "Example usage:",
28907         "content": "curl https://{domain}/api/userProfile/sections/describe -v -u {name}:{password}",
28908         "type": "json"
28909       }
28910     ],
28911     "name": "DescribeUser_Profile_Sections",
28912     "group": "User_Profile_Sections",
28913     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28914     "version": "0.0.0",
28915     "filename": "server/api/userProfileSection/index.js",
28916     "groupTitle": "User_Profile_Sections"
28917   },
28918   {
28919     "type": "get",
28920     "url": "/api/userProfile/sections",
28921     "title": "Gets a list of User Profile Sections",
28922     "examples": [
28923       {
28924         "title": "Example usage:",
28925         "content": "curl https://{domain}/api/userProfile/sections -v -u {name}:{password}",
28926         "type": "json"
28927       }
28928     ],
28929     "name": "GetUser_Profile_Sections",
28930     "group": "User_Profile_Sections",
28931     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/userProfile/sections?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/userProfile/sections?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/userProfile/sections?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/userProfile/sections?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/userProfile/sections?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
28932     "version": "0.0.0",
28933     "filename": "server/api/userProfileSection/index.js",
28934     "groupTitle": "User_Profile_Sections"
28935   },
28936   {
28937     "type": "get",
28938     "url": "/api/userProfile/sections/{id}",
28939     "title": "Gets a single User Profile Section",
28940     "examples": [
28941       {
28942         "title": "Example usage:",
28943         "content": "curl https://{domain}/api/userProfile/sections/{id} -v -u {name}:{password}",
28944         "type": "json"
28945       }
28946     ],
28947     "name": "ShowUser_Profile_Sections",
28948     "group": "User_Profile_Sections",
28949     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28950     "version": "0.0.0",
28951     "filename": "server/api/userProfileSection/index.js",
28952     "groupTitle": "User_Profile_Sections"
28953   },
28954   {
28955     "type": "put",
28956     "url": "/api/userProfile/sections/{id}",
28957     "title": "Update an existing User Profile Section",
28958     "examples": [
28959       {
28960         "title": "Example usage:",
28961         "content": "curl https://{domain}/api/userProfile/sections/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
28962         "type": "json"
28963       }
28964     ],
28965     "name": "updateUser_Profile_Sections",
28966     "group": "User_Profile_Sections",
28967     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28968     "version": "0.0.0",
28969     "filename": "server/api/userProfileSection/index.js",
28970     "groupTitle": "User_Profile_Sections"
28971   },
28972   {
28973     "type": "post",
28974     "url": "/api/userProfiles/{id}/resources",
28975     "title": "Add resources' permissions to User Profile",
28976     "examples": [
28977       {
28978         "title": "Example usage:",
28979         "content": "curl https://{domain}/api/userProfiles/{id}/resources -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
28980         "type": "json"
28981       }
28982     ],
28983     "name": "AddResources",
28984     "group": "User_Profiles",
28985     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28986     "version": "0.0.0",
28987     "filename": "server/api/userProfile/index.js",
28988     "groupTitle": "User_Profiles"
28989   },
28990   {
28991     "type": "post",
28992     "url": "/api/userProfiles/{id}/sections",
28993     "title": "Add sections' permissions to User Profile",
28994     "examples": [
28995       {
28996         "title": "Example usage:",
28997         "content": "curl https://{domain}/api/userProfiles/{id}/sections -d '[{\"sectionId\": \"name\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
28998         "type": "json"
28999       }
29000     ],
29001     "name": "AddSections",
29002     "group": "User_Profiles",
29003     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29004     "version": "0.0.0",
29005     "filename": "server/api/userProfile/index.js",
29006     "groupTitle": "User_Profiles"
29007   },
29008   {
29009     "type": "post",
29010     "url": "/api/userProfiles/clone",
29011     "title": "Clone an existing User Profile",
29012     "examples": [
29013       {
29014         "title": "Example usage:",
29015         "content": "curl https://{domain}/api/userProfiles/clone -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
29016         "type": "json"
29017       }
29018     ],
29019     "name": "CloneUser_Profiles",
29020     "group": "User_Profiles",
29021     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29022     "version": "0.0.0",
29023     "filename": "server/api/userProfile/index.js",
29024     "groupTitle": "User_Profiles"
29025   },
29026   {
29027     "type": "post",
29028     "url": "/api/userProfiles",
29029     "title": "Creates a new User Profile",
29030     "examples": [
29031       {
29032         "title": "Example usage:",
29033         "content": "curl https://{domain}/api/userProfiles -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
29034         "type": "json"
29035       }
29036     ],
29037     "name": "CreateUser_Profiles",
29038     "group": "User_Profiles",
29039     "parameter": {
29040       "fields": {
29041         "Body": [
29042           {
29043             "group": "Body",
29044             "type": "String",
29045             "optional": false,
29046             "field": "name",
29047             "description": ""
29048           },
29049           {
29050             "group": "Body",
29051             "type": "String",
29052             "optional": false,
29053             "field": "crudPermissions",
29054             "description": ""
29055           },
29056           {
29057             "group": "Body",
29058             "type": "String",
29059             "optional": true,
29060             "field": "description",
29061             "description": ""
29062           },
29063           {
29064             "group": "Body",
29065             "type": "Boolean",
29066             "optional": true,
29067             "field": "privacyEnabled",
29068             "description": ""
29069           },
29070           {
29071             "group": "Body",
29072             "type": "Boolean",
29073             "optional": true,
29074             "field": "downloadAttachments",
29075             "description": ""
29076           },
29077           {
29078             "group": "Body",
29079             "type": "Boolean",
29080             "optional": true,
29081             "field": "downloadCallySquareRecordings",
29082             "description": ""
29083           },
29084           {
29085             "group": "Body",
29086             "type": "Boolean",
29087             "optional": true,
29088             "field": "downloadContactManagerLists",
29089             "description": ""
29090           },
29091           {
29092             "group": "Body",
29093             "type": "Boolean",
29094             "optional": true,
29095             "field": "downloadJscriptySessions",
29096             "description": ""
29097           },
29098           {
29099             "group": "Body",
29100             "type": "Boolean",
29101             "optional": true,
29102             "field": "downloadOmnichannelInteractions",
29103             "description": ""
29104           },
29105           {
29106             "group": "Body",
29107             "type": "Boolean",
29108             "optional": true,
29109             "field": "downloadScreenRecordings",
29110             "description": ""
29111           },
29112           {
29113             "group": "Body",
29114             "type": "Boolean",
29115             "optional": true,
29116             "field": "downloadVoiceRecordings",
29117             "description": ""
29118           }
29119         ]
29120       }
29121     },
29122     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29123     "version": "0.0.0",
29124     "filename": "server/api/userProfile/index.js",
29125     "groupTitle": "User_Profiles"
29126   },
29127   {
29128     "type": "delete",
29129     "url": "/api/userProfiles/{id}",
29130     "title": "Deletes a User Profile",
29131     "examples": [
29132       {
29133         "title": "Example usage:",
29134         "content": "curl https://{domain}/api/userProfiles/{id} -v -u {name}:{password} -X DELETE",
29135         "type": "json"
29136       }
29137     ],
29138     "name": "DeleteUser_Profiles",
29139     "group": "User_Profiles",
29140     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29141     "version": "0.0.0",
29142     "filename": "server/api/userProfile/index.js",
29143     "groupTitle": "User_Profiles"
29144   },
29145   {
29146     "type": "get",
29147     "url": "/api/userProfiles/describe",
29148     "title": "Gets table info about User Profiles",
29149     "examples": [
29150       {
29151         "title": "Example usage:",
29152         "content": "curl https://{domain}/api/userProfiles/describe -v -u {name}:{password}",
29153         "type": "json"
29154       }
29155     ],
29156     "name": "DescribeUser_Profiles",
29157     "group": "User_Profiles",
29158     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29159     "version": "0.0.0",
29160     "filename": "server/api/userProfile/index.js",
29161     "groupTitle": "User_Profiles"
29162   },
29163   {
29164     "type": "get",
29165     "url": "/api/userProfiles/{id}/resources?section={section}",
29166     "title": "Get Resources assigned to a Section",
29167     "examples": [
29168       {
29169         "title": "Example usage:",
29170         "content": "curl https://{domain}/api/userProfiles/{id}/resources?section={section} -v -u {name}:{password} -X GET",
29171         "type": "json"
29172       }
29173     ],
29174     "name": "GetResources",
29175     "group": "User_Profiles",
29176     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29177     "version": "0.0.0",
29178     "filename": "server/api/userProfile/index.js",
29179     "groupTitle": "User_Profiles"
29180   },
29181   {
29182     "type": "get",
29183     "url": "/api/userProfiles/{id}/sections",
29184     "title": "Get sections associated to a User Profile",
29185     "examples": [
29186       {
29187         "title": "Example usage:",
29188         "content": "curl https://{domain}/api/userProfiles/{id}/sections -v -u {name}:{password} -X GET",
29189         "type": "json"
29190       }
29191     ],
29192     "name": "GetSections",
29193     "group": "User_Profiles",
29194     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29195     "version": "0.0.0",
29196     "filename": "server/api/userProfile/index.js",
29197     "groupTitle": "User_Profiles"
29198   },
29199   {
29200     "type": "get",
29201     "url": "/api/userProfiles",
29202     "title": "Gets a list of User Profiles",
29203     "examples": [
29204       {
29205         "title": "Example usage:",
29206         "content": "curl https://{domain}/api/userProfiles -v -u {name}:{password}",
29207         "type": "json"
29208       }
29209     ],
29210     "name": "GetUser_Profiles",
29211     "group": "User_Profiles",
29212     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/userProfiles?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/userProfiles?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/userProfiles?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/userProfiles?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/userProfiles?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
29213     "version": "0.0.0",
29214     "filename": "server/api/userProfile/index.js",
29215     "groupTitle": "User_Profiles"
29216   },
29217   {
29218     "type": "delete",
29219     "url": "/api/userProfiles/{id}/resources",
29220     "title": "Removes resources' permissions from User Profile",
29221     "examples": [
29222       {
29223         "title": "Example usage:",
29224         "content": "curl https://{domain}/api/userProfiles/{id}/resources?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
29225         "type": "json"
29226       }
29227     ],
29228     "name": "RemoveResources",
29229     "group": "User_Profiles",
29230     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29231     "version": "0.0.0",
29232     "filename": "server/api/userProfile/index.js",
29233     "groupTitle": "User_Profiles"
29234   },
29235   {
29236     "type": "delete",
29237     "url": "/api/userProfiles/{id}/sections",
29238     "title": "Removes sections' permissions from User Profile",
29239     "examples": [
29240       {
29241         "title": "Example usage:",
29242         "content": "curl https://{domain}/api/userProfiles/{id}/sections?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
29243         "type": "json"
29244       }
29245     ],
29246     "name": "RemoveSections",
29247     "group": "User_Profiles",
29248     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29249     "version": "0.0.0",
29250     "filename": "server/api/userProfile/index.js",
29251     "groupTitle": "User_Profiles"
29252   },
29253   {
29254     "type": "get",
29255     "url": "/api/userProfiles/{id}",
29256     "title": "Gets a single User Profile",
29257     "examples": [
29258       {
29259         "title": "Example usage:",
29260         "content": "curl https://{domain}/api/userProfiles/{id} -v -u {name}:{password}",
29261         "type": "json"
29262       }
29263     ],
29264     "name": "ShowUser_Profiles",
29265     "group": "User_Profiles",
29266     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29267     "version": "0.0.0",
29268     "filename": "server/api/userProfile/index.js",
29269     "groupTitle": "User_Profiles"
29270   },
29271   {
29272     "type": "put",
29273     "url": "/api/userProfiles/{id}",
29274     "title": "Update an existing User Profile",
29275     "examples": [
29276       {
29277         "title": "Example usage:",
29278         "content": "curl https://{domain}/api/userProfiles/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
29279         "type": "json"
29280       }
29281     ],
29282     "name": "updateUser_Profiles",
29283     "group": "User_Profiles",
29284     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29285     "version": "0.0.0",
29286     "filename": "server/api/userProfile/index.js",
29287     "groupTitle": "User_Profiles"
29288   },
29289   {
29290     "type": "put",
29291     "url": "/api/user-settings/{id}",
29292     "title": "Update an existing User Setting",
29293     "examples": [
29294       {
29295         "title": "Example usage:",
29296         "content": "curl https://{domain}/api/user-settings/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
29297         "type": "json"
29298       }
29299     ],
29300     "name": "updateUserSettings",
29301     "group": "User_Settings",
29302     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29303     "version": "0.0.0",
29304     "filename": "server/api/user-setting/index.js",
29305     "groupTitle": "User_Settings"
29306   },
29307   {
29308     "type": "post",
29309     "url": "/api/users/{id}/chat_interactions",
29310     "title": "Add chat interaction tabs to an agent",
29311     "examples": [
29312       {
29313         "title": "Example usage:",
29314         "content": "curl https://{domain}/api/users/{id}/chat_interactions -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
29315         "type": "json"
29316       }
29317     ],
29318     "name": "AddChatInteractions",
29319     "group": "Users",
29320     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29321     "version": "0.0.0",
29322     "filename": "server/api/user/index.js",
29323     "groupTitle": "Users"
29324   },
29325   {
29326     "type": "post",
29327     "url": "/api/users/{id}/chat_websites",
29328     "title": "Add a Chat Website to a user",
29329     "examples": [
29330       {
29331         "title": "Example usage:",
29332         "content": "curl https://{domain}/api/users/{id}/chat_websites -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
29333         "type": "json"
29334       }
29335     ],
29336     "name": "AddChatWebsites",
29337     "group": "Users",
29338     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29339     "version": "0.0.0",
29340     "filename": "server/api/user/index.js",
29341     "groupTitle": "Users"
29342   },
29343   {
29344     "type": "post",
29345     "url": "/api/users/{id}/contacts",
29346     "title": "Add contacts to a user",
29347     "examples": [
29348       {
29349         "title": "Example usage:",
29350         "content": "curl https://{domain}/api/users/{id}/contacts -d '{\"ids\": [1,2]}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
29351         "type": "json"
29352       }
29353     ],
29354     "name": "AddContacts",
29355     "group": "Users",
29356     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29357     "version": "0.0.0",
29358     "filename": "server/api/user/index.js",
29359     "groupTitle": "Users"
29360   },
29361   {
29362     "type": "post",
29363     "url": "/api/users/{id}/fax_accounts",
29364     "title": "Add a Fax Account to a user",
29365     "examples": [
29366       {
29367         "title": "Example usage:",
29368         "content": "curl https://{domain}/api/users/{id}/fax_accounts -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
29369         "type": "json"
29370       }
29371     ],
29372     "name": "AddFaxAccounts",
29373     "group": "Users",
29374     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29375     "version": "0.0.0",
29376     "filename": "server/api/user/index.js",
29377     "groupTitle": "Users"
29378   },
29379   {
29380     "type": "post",
29381     "url": "/api/users/{id}/fax_interactions",
29382     "title": "Add fax interaction tabs to an agent",
29383     "examples": [
29384       {
29385         "title": "Example usage:",
29386         "content": "curl https://{domain}/api/users/{id}/fax_interactions -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
29387         "type": "json"
29388       }
29389     ],
29390     "name": "AddFaxInteractions",
29391     "group": "Users",
29392     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29393     "version": "0.0.0",
29394     "filename": "server/api/user/index.js",
29395     "groupTitle": "Users"
29396   },
29397   {
29398     "type": "post",
29399     "url": "/api/users/{id}/mail_accounts",
29400     "title": "Add a Mail Account to a user",
29401     "examples": [
29402       {
29403         "title": "Example usage:",
29404         "content": "curl https://{domain}/api/users/{id}/mail_accounts -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
29405         "type": "json"
29406       }
29407     ],
29408     "name": "AddMailAccounts",
29409     "group": "Users",
29410     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29411     "version": "0.0.0",
29412     "filename": "server/api/user/index.js",
29413     "groupTitle": "Users"
29414   },
29415   {
29416     "type": "post",
29417     "url": "/api/users/{id}/mail_interactions",
29418     "title": "Add mail interaction tabs to an agent",
29419     "examples": [
29420       {
29421         "title": "Example usage:",
29422         "content": "curl https://{domain}/api/users/{id}/mail_interactions -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
29423         "type": "json"
29424       }
29425     ],
29426     "name": "AddMailInteractions",
29427     "group": "Users",
29428     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29429     "version": "0.0.0",
29430     "filename": "server/api/user/index.js",
29431     "groupTitle": "Users"
29432   },
29433   {
29434     "type": "post",
29435     "url": "/api/users/{id}/openchannel_accounts",
29436     "title": "Add a Open Channel Account to a user",
29437     "examples": [
29438       {
29439         "title": "Example usage:",
29440         "content": "curl https://{domain}/api/users/{id}/openchannel_accounts -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
29441         "type": "json"
29442       }
29443     ],
29444     "name": "AddOpenchannelAccounts",
29445     "group": "Users",
29446     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29447     "version": "0.0.0",
29448     "filename": "server/api/user/index.js",
29449     "groupTitle": "Users"
29450   },
29451   {
29452     "type": "post",
29453     "url": "/api/users/{id}/openchannel_interactions",
29454     "title": "Add openchannel interaction tabs to an agent",
29455     "examples": [
29456       {
29457         "title": "Example usage:",
29458         "content": "curl https://{domain}/api/users/{id}/openchannel_interactions -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
29459         "type": "json"
29460       }
29461     ],
29462     "name": "AddOpenchannelInteractions",
29463     "group": "Users",
29464     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29465     "version": "0.0.0",
29466     "filename": "server/api/user/index.js",
29467     "groupTitle": "Users"
29468   },
29469   {
29470     "type": "post",
29471     "url": "/api/users/{id}/queues",
29472     "title": "Add queues to an agent",
29473     "examples": [
29474       {
29475         "title": "Example usage:",
29476         "content": "curl https://{domain}/api/users/{id}/queues -d '{\"ids\": [1,2], \"penalty\": 2}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
29477         "type": "json"
29478       }
29479     ],
29480     "name": "AddQueues",
29481     "group": "Users",
29482     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29483     "version": "0.0.0",
29484     "filename": "server/api/user/index.js",
29485     "groupTitle": "Users"
29486   },
29487   {
29488     "type": "post",
29489     "url": "/api/users/{id}/sms_accounts",
29490     "title": "Add a Sms Account to a user",
29491     "examples": [
29492       {
29493         "title": "Example usage:",
29494         "content": "curl https://{domain}/api/users/{id}/sms_accounts -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
29495         "type": "json"
29496       }
29497     ],
29498     "name": "AddSmsAccounts",
29499     "group": "Users",
29500     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29501     "version": "0.0.0",
29502     "filename": "server/api/user/index.js",
29503     "groupTitle": "Users"
29504   },
29505   {
29506     "type": "post",
29507     "url": "/api/users/{id}/sms_interactions",
29508     "title": "Add sms interaction tabs to an agent",
29509     "examples": [
29510       {
29511         "title": "Example usage:",
29512         "content": "curl https://{domain}/api/users/{id}/sms_interactions -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
29513         "type": "json"
29514       }
29515     ],
29516     "name": "AddSmsInteractions",
29517     "group": "Users",
29518     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29519     "version": "0.0.0",
29520     "filename": "server/api/user/index.js",
29521     "groupTitle": "Users"
29522   },
29523   {
29524     "type": "post",
29525     "url": "/api/users/{id}/teams",
29526     "title": "Add teams to an agent",
29527     "examples": [
29528       {
29529         "title": "Example usage:",
29530         "content": "curl https://{domain}/api/users/{id}/teams -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
29531         "type": "json"
29532       }
29533     ],
29534     "name": "AddTeams",
29535     "group": "Users",
29536     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29537     "version": "0.0.0",
29538     "filename": "server/api/user/index.js",
29539     "groupTitle": "Users"
29540   },
29541   {
29542     "type": "post",
29543     "url": "/api/users/{id}/whatsapp_accounts",
29544     "title": "Add a Whatsapp Account to a user",
29545     "examples": [
29546       {
29547         "title": "Example usage:",
29548         "content": "curl https://{domain}/api/users/{id}/whatsapp_accounts -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
29549         "type": "json"
29550       }
29551     ],
29552     "name": "AddWhatsappAccounts",
29553     "group": "Users",
29554     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29555     "version": "0.0.0",
29556     "filename": "server/api/user/index.js",
29557     "groupTitle": "Users"
29558   },
29559   {
29560     "type": "post",
29561     "url": "/api/users/{id}/whatsapp_interactions",
29562     "title": "Add Whatsapp interaction tabs to an agent",
29563     "examples": [
29564       {
29565         "title": "Example usage:",
29566         "content": "curl https://{domain}/api/users/{id}/whatsapp_interactions -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
29567         "type": "json"
29568       }
29569     ],
29570     "name": "AddWhatsappInteractions",
29571     "group": "Users",
29572     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29573     "version": "0.0.0",
29574     "filename": "server/api/user/index.js",
29575     "groupTitle": "Users"
29576   },
29577   {
29578     "type": "put",
29579     "url": "/api/users/{id}/password",
29580     "title": "Change user password",
29581     "examples": [
29582       {
29583         "title": "Example usage:",
29584         "content": "curl https://{domain}/api/users/{id}/password -d '{\"oldPassword\": \"1234\", \"newPassword\": \"5678\"}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
29585         "type": "json"
29586       }
29587     ],
29588     "name": "ChangePwd",
29589     "group": "Users",
29590     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29591     "version": "0.0.0",
29592     "filename": "server/api/user/index.js",
29593     "groupTitle": "Users"
29594   },
29595   {
29596     "type": "post",
29597     "url": "/api/users",
29598     "title": "Create a new user",
29599     "examples": [
29600       {
29601         "title": "Example usage:",
29602         "content": "curl https://{domain}/api/users -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
29603         "type": "json"
29604       }
29605     ],
29606     "name": "Create",
29607     "group": "Users",
29608     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29609     "version": "0.0.0",
29610     "filename": "server/api/user/index.js",
29611     "groupTitle": "Users"
29612   },
29613   {
29614     "type": "post",
29615     "url": "/api/users/{id}/api_key",
29616     "title": "Create a new API access key for the user",
29617     "examples": [
29618       {
29619         "title": "Example usage:",
29620         "content": "curl https://{domain}/api/users/:id/api_key -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
29621         "type": "json"
29622       }
29623     ],
29624     "name": "CreateApiKey",
29625     "group": "Users",
29626     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29627     "version": "0.0.0",
29628     "filename": "server/api/user/index.js",
29629     "groupTitle": "Users"
29630   },
29631   {
29632     "type": "delete",
29633     "url": "/api/users/{id}",
29634     "title": "Deletes a user",
29635     "examples": [
29636       {
29637         "title": "Example usage:",
29638         "content": "curl https://{domain}/api/users/{id} -v -u {name}:{password} -X DELETE",
29639         "type": "json"
29640       }
29641     ],
29642     "name": "Delete",
29643     "group": "Users",
29644     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29645     "version": "0.0.0",
29646     "filename": "server/api/user/index.js",
29647     "groupTitle": "Users"
29648   },
29649   {
29650     "type": "get",
29651     "url": "/api/users/describe",
29652     "title": "Gets table info about Users",
29653     "examples": [
29654       {
29655         "title": "Example usage:",
29656         "content": "curl https://{domain}/api/users/describe -v -u {name}:{password}",
29657         "type": "json"
29658       }
29659     ],
29660     "name": "DescribeUsers",
29661     "group": "Users",
29662     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29663     "version": "0.0.0",
29664     "filename": "server/api/user/index.js",
29665     "groupTitle": "Users"
29666   },
29667   {
29668     "type": "get",
29669     "url": "/api/users/{id}/agents",
29670     "title": "GetAgents",
29671     "examples": [
29672       {
29673         "title": "Example usage:",
29674         "content": "curl https://{domain}/api/users/{id}/agents -v -u {name}:{password} -X GET",
29675         "type": "json"
29676       }
29677     ],
29678     "name": "GetAgents",
29679     "group": "Users",
29680     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29681     "version": "0.0.0",
29682     "filename": "server/api/user/index.js",
29683     "groupTitle": "Users"
29684   },
29685   {
29686     "type": "get",
29687     "url": "/api/users/{id}/api_key",
29688     "title": "Get the API access key for the user",
29689     "examples": [
29690       {
29691         "title": "Example usage:",
29692         "content": "curl https://{domain}/api/users/:id/api_key -v -u {name}:{password} -X GET",
29693         "type": "json"
29694       }
29695     ],
29696     "name": "GetApiKey",
29697     "group": "Users",
29698     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29699     "version": "0.0.0",
29700     "filename": "server/api/user/index.js",
29701     "groupTitle": "Users"
29702   },
29703   {
29704     "type": "get",
29705     "url": "/api/users/{id}/groups",
29706     "title": "GetChatGroups",
29707     "examples": [
29708       {
29709         "title": "Example usage:",
29710         "content": "curl https://{domain}/api/users/{id}/groups -v -u {name}:{password} -X GET",
29711         "type": "json"
29712       }
29713     ],
29714     "name": "GetChatGroups",
29715     "group": "Users",
29716     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29717     "version": "0.0.0",
29718     "filename": "server/api/user/index.js",
29719     "groupTitle": "Users"
29720   },
29721   {
29722     "type": "get",
29723     "url": "/api/users/{id}/chat/interactions",
29724     "title": "GetChatInteractions",
29725     "examples": [
29726       {
29727         "title": "Example usage:",
29728         "content": "curl https://{domain}/api/users/{id}/chat/interactions -v -u {name}:{password} -X GET",
29729         "type": "json"
29730       }
29731     ],
29732     "name": "GetChatInteractions",
29733     "group": "Users",
29734     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29735     "version": "0.0.0",
29736     "filename": "server/api/user/index.js",
29737     "groupTitle": "Users"
29738   },
29739   {
29740     "type": "get",
29741     "url": "/api/users/{id}/chat_websites",
29742     "title": "GetChatWebsites",
29743     "examples": [
29744       {
29745         "title": "Example usage:",
29746         "content": "curl https://{domain}/api/users/{id}/chat_websites -v -u {name}:{password} -X GET",
29747         "type": "json"
29748       }
29749     ],
29750     "name": "GetChatWebsites",
29751     "group": "Users",
29752     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29753     "version": "0.0.0",
29754     "filename": "server/api/user/index.js",
29755     "groupTitle": "Users"
29756   },
29757   {
29758     "type": "get",
29759     "url": "/api/users/{id}/contacts",
29760     "title": "GetContacts",
29761     "examples": [
29762       {
29763         "title": "Example usage:",
29764         "content": "curl https://{domain}/api/users/{id}/contacts -v -u {name}:{password} -X GET",
29765         "type": "json"
29766       }
29767     ],
29768     "name": "GetContacts",
29769     "group": "Users",
29770     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29771     "version": "0.0.0",
29772     "filename": "server/api/user/index.js",
29773     "groupTitle": "Users"
29774   },
29775   {
29776     "type": "get",
29777     "url": "/api/users/{id}/fax_accounts",
29778     "title": "GetFaxAccounts",
29779     "examples": [
29780       {
29781         "title": "Example usage:",
29782         "content": "curl https://{domain}/api/users/{id}/fax_accounts -v -u {name}:{password} -X GET",
29783         "type": "json"
29784       }
29785     ],
29786     "name": "GetFaxAccounts",
29787     "group": "Users",
29788     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29789     "version": "0.0.0",
29790     "filename": "server/api/user/index.js",
29791     "groupTitle": "Users"
29792   },
29793   {
29794     "type": "get",
29795     "url": "/api/users/{id}/fax/interactions",
29796     "title": "GetFaxInteractions",
29797     "examples": [
29798       {
29799         "title": "Example usage:",
29800         "content": "curl https://{domain}/api/users/{id}/fax/interactions -v -u {name}:{password} -X GET",
29801         "type": "json"
29802       }
29803     ],
29804     "name": "GetFaxInteractions",
29805     "group": "Users",
29806     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29807     "version": "0.0.0",
29808     "filename": "server/api/user/index.js",
29809     "groupTitle": "Users"
29810   },
29811   {
29812     "type": "get",
29813     "url": "/api/users/{id}/lists",
29814     "title": "GetLists",
29815     "examples": [
29816       {
29817         "title": "Example usage:",
29818         "content": "curl https://{domain}/api/users/{id}/lists -v -u {name}:{password} -X GET",
29819         "type": "json"
29820       }
29821     ],
29822     "name": "GetLists",
29823     "group": "Users",
29824     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29825     "version": "0.0.0",
29826     "filename": "server/api/user/index.js",
29827     "groupTitle": "Users"
29828   },
29829   {
29830     "type": "get",
29831     "url": "/api/users/{id}/mail_accounts",
29832     "title": "GetMailAccounts",
29833     "examples": [
29834       {
29835         "title": "Example usage:",
29836         "content": "curl https://{domain}/api/users/{id}/mail_accounts -v -u {name}:{password} -X GET",
29837         "type": "json"
29838       }
29839     ],
29840     "name": "GetMailAccounts",
29841     "group": "Users",
29842     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29843     "version": "0.0.0",
29844     "filename": "server/api/user/index.js",
29845     "groupTitle": "Users"
29846   },
29847   {
29848     "type": "get",
29849     "url": "/api/users/{id}/mail/interactions",
29850     "title": "GetMailInteractions",
29851     "examples": [
29852       {
29853         "title": "Example usage:",
29854         "content": "curl https://{domain}/api/users/{id}/mail/interactions -v -u {name}:{password} -X GET",
29855         "type": "json"
29856       }
29857     ],
29858     "name": "GetMailInteractions",
29859     "group": "Users",
29860     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29861     "version": "0.0.0",
29862     "filename": "server/api/user/index.js",
29863     "groupTitle": "Users"
29864   },
29865   {
29866     "type": "get",
29867     "url": "/api/users/{id}/openchannel_accounts",
29868     "title": "GetOpenchannelAccounts",
29869     "examples": [
29870       {
29871         "title": "Example usage:",
29872         "content": "curl https://{domain}/api/users/{id}/openchannel_accounts -v -u {name}:{password} -X GET",
29873         "type": "json"
29874       }
29875     ],
29876     "name": "GetOpenchannelAccounts",
29877     "group": "Users",
29878     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29879     "version": "0.0.0",
29880     "filename": "server/api/user/index.js",
29881     "groupTitle": "Users"
29882   },
29883   {
29884     "type": "get",
29885     "url": "/api/users/{id}/openchannel/interactions",
29886     "title": "GetOpenchannelInteractions",
29887     "examples": [
29888       {
29889         "title": "Example usage:",
29890         "content": "curl https://{domain}/api/users/{id}/openchannel/interactions -v -u {name}:{password}",
29891         "type": "json"
29892       }
29893     ],
29894     "name": "GetOpenchannelInteractions",
29895     "group": "Users",
29896     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29897     "version": "0.0.0",
29898     "filename": "server/api/user/index.js",
29899     "groupTitle": "Users"
29900   },
29901   {
29902     "type": "get",
29903     "url": "/api/users/{id}/prefixes",
29904     "title": "GetPrefixes",
29905     "examples": [
29906       {
29907         "title": "Example usage:",
29908         "content": "curl https://{domain}/api/users/{id}/prefixes -v -u {name}:{password} -X GET",
29909         "type": "json"
29910       }
29911     ],
29912     "name": "GetPrefixes",
29913     "group": "Users",
29914     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29915     "version": "0.0.0",
29916     "filename": "server/api/user/index.js",
29917     "groupTitle": "Users"
29918   },
29919   {
29920     "type": "get",
29921     "url": "/api/users/{id}/queues?channel={channel}",
29922     "title": "Gets Queues list",
29923     "examples": [
29924       {
29925         "title": "Example usage:",
29926         "content": "curl https://{domain}/api/users/{id}/queues/?channel={channel} -v -u {name}:{password} -X GET",
29927         "type": "json"
29928       }
29929     ],
29930     "name": "GetQueues",
29931     "group": "Users",
29932     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29933     "version": "0.0.0",
29934     "filename": "server/api/user/index.js",
29935     "groupTitle": "Users"
29936   },
29937   {
29938     "type": "get",
29939     "url": "/api/users/{id}/recordings",
29940     "title": "GetRecordings",
29941     "examples": [
29942       {
29943         "title": "Example usage:",
29944         "content": "curl https://{domain}/api/users/{id}/recordings -v -u {name}:{password} -X GET",
29945         "type": "json"
29946       }
29947     ],
29948     "name": "GetRecordings",
29949     "group": "Users",
29950     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29951     "version": "0.0.0",
29952     "filename": "server/api/user/index.js",
29953     "groupTitle": "Users"
29954   },
29955   {
29956     "type": "get",
29957     "url": "/api/users/{id}/scheduled_calls",
29958     "title": "GetScheduledCalls",
29959     "examples": [
29960       {
29961         "title": "Example usage:",
29962         "content": "curl https://{domain}/api/users/{id}/scheduled_calls -v -u {name}:{password} -X GET",
29963         "type": "json"
29964       }
29965     ],
29966     "name": "GetScheduledCalls",
29967     "group": "Users",
29968     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29969     "version": "0.0.0",
29970     "filename": "server/api/user/index.js",
29971     "groupTitle": "Users"
29972   },
29973   {
29974     "type": "get",
29975     "url": "/api/users/{id}/screen_recordings",
29976     "title": "GetScreenRecordings",
29977     "examples": [
29978       {
29979         "title": "Example usage:",
29980         "content": "curl https://{domain}/api/users/{id}/screen_recordings -v -u {name}:{password} -X GET",
29981         "type": "json"
29982       }
29983     ],
29984     "name": "GetScreenRecordings",
29985     "group": "Users",
29986     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29987     "version": "0.0.0",
29988     "filename": "server/api/user/index.js",
29989     "groupTitle": "Users"
29990   },
29991   {
29992     "type": "get",
29993     "url": "/api/users/{id}/sms_accounts",
29994     "title": "GetSmsAccounts",
29995     "examples": [
29996       {
29997         "title": "Example usage:",
29998         "content": "curl https://{domain}/api/users/{id}/sms_accounts -v -u {name}:{password} -X GET",
29999         "type": "json"
30000       }
30001     ],
30002     "name": "GetSmsAccounts",
30003     "group": "Users",
30004     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30005     "version": "0.0.0",
30006     "filename": "server/api/user/index.js",
30007     "groupTitle": "Users"
30008   },
30009   {
30010     "type": "get",
30011     "url": "/api/users/{id}/sms/interactions",
30012     "title": "GetSmsInteractions",
30013     "examples": [
30014       {
30015         "title": "Example usage:",
30016         "content": "curl https://{domain}/api/users/{id}/sms/interactions -v -u {name}:{password} -X GET",
30017         "type": "json"
30018       }
30019     ],
30020     "name": "GetSmsInteractions",
30021     "group": "Users",
30022     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30023     "version": "0.0.0",
30024     "filename": "server/api/user/index.js",
30025     "groupTitle": "Users"
30026   },
30027   {
30028     "type": "get",
30029     "url": "/api/users/{id}/teams",
30030     "title": "GetTeams",
30031     "examples": [
30032       {
30033         "title": "Example usage:",
30034         "content": "curl https://{domain}/api/users/{id}/teams -v -u {name}:{password} -X GET",
30035         "type": "json"
30036       }
30037     ],
30038     "name": "GetTeams",
30039     "group": "Users",
30040     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30041     "version": "0.0.0",
30042     "filename": "server/api/user/index.js",
30043     "groupTitle": "Users"
30044   },
30045   {
30046     "type": "get",
30047     "url": "/api/users",
30048     "title": "Gets a list of Users",
30049     "examples": [
30050       {
30051         "title": "Example usage:",
30052         "content": "curl https://{domain}/api/users -v -u {name}:{password}",
30053         "type": "json"
30054       }
30055     ],
30056     "name": "GetUsers",
30057     "group": "Users",
30058     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/users?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/users?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/users?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/users?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/users?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
30059     "version": "0.0.0",
30060     "filename": "server/api/user/index.js",
30061     "groupTitle": "Users"
30062   },
30063   {
30064     "type": "get",
30065     "url": "/api/users/{id}/queues_rt",
30066     "title": "GetVoiceQueuesRt",
30067     "examples": [
30068       {
30069         "title": "Example usage:",
30070         "content": "curl https://{domain}/api/users/{id}/queues_rt -v -u {name}:{password} -X GET",
30071         "type": "json"
30072       }
30073     ],
30074     "name": "GetVoiceQueuesRt",
30075     "group": "Users",
30076     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30077     "version": "0.0.0",
30078     "filename": "server/api/user/index.js",
30079     "groupTitle": "Users"
30080   },
30081   {
30082     "type": "get",
30083     "url": "/api/users/{id}/whatsapp_accounts",
30084     "title": "GetWhatsappAccounts",
30085     "examples": [
30086       {
30087         "title": "Example usage:",
30088         "content": "curl https://{domain}/api/users/{id}/whatsapp_accounts -v -u {name}:{password} -X GET",
30089         "type": "json"
30090       }
30091     ],
30092     "name": "GetWhatsappAccounts",
30093     "group": "Users",
30094     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30095     "version": "0.0.0",
30096     "filename": "server/api/user/index.js",
30097     "groupTitle": "Users"
30098   },
30099   {
30100     "type": "get",
30101     "url": "/api/users/{id}/whatsapp/interactions",
30102     "title": "GetWhatsappInteractions",
30103     "examples": [
30104       {
30105         "title": "Example usage:",
30106         "content": "curl https://{domain}/api/users/{id}/whatsapp/interactions -v -u {name}:{password} -X GET",
30107         "type": "json"
30108       }
30109     ],
30110     "name": "GetWhatsappInteractions",
30111     "group": "Users",
30112     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30113     "version": "0.0.0",
30114     "filename": "server/api/user/index.js",
30115     "groupTitle": "Users"
30116   },
30117   {
30118     "type": "post",
30119     "url": "/api/users/{id}/login",
30120     "title": "Login",
30121     "examples": [
30122       {
30123         "title": "Example usage:",
30124         "content": "curl https://{domain}/api/users/{id}/login  -v -u {name}:{password} -X POST",
30125         "type": "json"
30126       }
30127     ],
30128     "name": "Login",
30129     "group": "Users",
30130     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30131     "version": "0.0.0",
30132     "filename": "server/api/user/index.js",
30133     "groupTitle": "Users"
30134   },
30135   {
30136     "type": "post",
30137     "url": "/api/users/{id}/logout",
30138     "title": "Logout",
30139     "examples": [
30140       {
30141         "title": "Example usage:",
30142         "content": "curl https://{domain}/api/users/{id}/logout -v -u {name}:{password} -X POST",
30143         "type": "json"
30144       }
30145     ],
30146     "name": "Logout",
30147     "group": "Users",
30148     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30149     "version": "0.0.0",
30150     "filename": "server/api/user/index.js",
30151     "groupTitle": "Users"
30152   },
30153   {
30154     "type": "post",
30155     "url": "/api/users/{id}/pause",
30156     "title": "Pause",
30157     "examples": [
30158       {
30159         "title": "Example usage:",
30160         "content": "curl https://{domain}/api/users/{id}/pause -v -u {name}:{password} -X POST",
30161         "type": "json"
30162       }
30163     ],
30164     "name": "Pause",
30165     "group": "Users",
30166     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30167     "version": "0.0.0",
30168     "filename": "server/api/user/index.js",
30169     "groupTitle": "Users"
30170   },
30171   {
30172     "type": "delete",
30173     "url": "/api/users/{id}/api_key",
30174     "title": "Remove API access key for the user",
30175     "examples": [
30176       {
30177         "title": "Example usage:",
30178         "content": "curl https://{domain}/api/users/:id/api_key -v -u {name}:{password} -X DELETE",
30179         "type": "json"
30180       }
30181     ],
30182     "name": "RemoveApiKey",
30183     "group": "Users",
30184     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30185     "version": "0.0.0",
30186     "filename": "server/api/user/index.js",
30187     "groupTitle": "Users"
30188   },
30189   {
30190     "type": "delete",
30191     "url": "/api/users/{id}/chat_interactions",
30192     "title": "Removes interactions from an agent",
30193     "examples": [
30194       {
30195         "title": "Example usage:",
30196         "content": "curl https://{domain}/api/users/{id}/chat_interactions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
30197         "type": "json"
30198       }
30199     ],
30200     "name": "RemoveChatInteractions",
30201     "group": "Users",
30202     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30203     "version": "0.0.0",
30204     "filename": "server/api/user/index.js",
30205     "groupTitle": "Users"
30206   },
30207   {
30208     "type": "delete",
30209     "url": "/api/users/{id}/chat_websites",
30210     "title": "Removes a Chat Website from a user",
30211     "examples": [
30212       {
30213         "title": "Example usage:",
30214         "content": "curl https://{domain}/api/users/{id}/chat_websites?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
30215         "type": "json"
30216       }
30217     ],
30218     "name": "RemoveChatWebsites",
30219     "group": "Users",
30220     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30221     "version": "0.0.0",
30222     "filename": "server/api/user/index.js",
30223     "groupTitle": "Users"
30224   },
30225   {
30226     "type": "delete",
30227     "url": "/api/users/{id}/fax_accounts",
30228     "title": "Removes a Fax Account from a user",
30229     "examples": [
30230       {
30231         "title": "Example usage:",
30232         "content": "curl https://{domain}/api/users/{id}/fax_accounts?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
30233         "type": "json"
30234       }
30235     ],
30236     "name": "RemoveFaxAccounts",
30237     "group": "Users",
30238     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30239     "version": "0.0.0",
30240     "filename": "server/api/user/index.js",
30241     "groupTitle": "Users"
30242   },
30243   {
30244     "type": "delete",
30245     "url": "/api/users/{id}/fax_interactions",
30246     "title": "Removes interactions from an agent",
30247     "examples": [
30248       {
30249         "title": "Example usage:",
30250         "content": "curl https://{domain}/api/users/{id}/fax_interactions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
30251         "type": "json"
30252       }
30253     ],
30254     "name": "RemoveFaxInteractions",
30255     "group": "Users",
30256     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30257     "version": "0.0.0",
30258     "filename": "server/api/user/index.js",
30259     "groupTitle": "Users"
30260   },
30261   {
30262     "type": "delete",
30263     "url": "/api/users/{id}/mail_accounts",
30264     "title": "Removes a Mail Account from a user",
30265     "examples": [
30266       {
30267         "title": "Example usage:",
30268         "content": "curl https://{domain}/api/users/{id}/mail_accounts?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
30269         "type": "json"
30270       }
30271     ],
30272     "name": "RemoveMailAccounts",
30273     "group": "Users",
30274     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30275     "version": "0.0.0",
30276     "filename": "server/api/user/index.js",
30277     "groupTitle": "Users"
30278   },
30279   {
30280     "type": "delete",
30281     "url": "/api/users/{id}/mail_interactions",
30282     "title": "Removes interactions from an agent",
30283     "examples": [
30284       {
30285         "title": "Example usage:",
30286         "content": "curl https://{domain}/api/users/{id}/mail_interactions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
30287         "type": "json"
30288       }
30289     ],
30290     "name": "RemoveMailInteractions",
30291     "group": "Users",
30292     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30293     "version": "0.0.0",
30294     "filename": "server/api/user/index.js",
30295     "groupTitle": "Users"
30296   },
30297   {
30298     "type": "delete",
30299     "url": "/api/users/{id}/openchannel_accounts",
30300     "title": "Removes a Open Channel Account from a user",
30301     "examples": [
30302       {
30303         "title": "Example usage:",
30304         "content": "curl https://{domain}/api/users/{id}/openchannel_accounts?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
30305         "type": "json"
30306       }
30307     ],
30308     "name": "RemoveOpenchannelAccounts",
30309     "group": "Users",
30310     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30311     "version": "0.0.0",
30312     "filename": "server/api/user/index.js",
30313     "groupTitle": "Users"
30314   },
30315   {
30316     "type": "delete",
30317     "url": "/api/users/{id}/openchannel_interactions",
30318     "title": "Removes openchannel interactions from an agent",
30319     "examples": [
30320       {
30321         "title": "Example usage:",
30322         "content": "curl https://{domain}/api/users/{id}/openchannel_interactions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
30323         "type": "json"
30324       }
30325     ],
30326     "name": "RemoveOpenchannelInteractions",
30327     "group": "Users",
30328     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30329     "version": "0.0.0",
30330     "filename": "server/api/user/index.js",
30331     "groupTitle": "Users"
30332   },
30333   {
30334     "type": "delete",
30335     "url": "/api/users/{id}/queues",
30336     "title": "Remove queues to an agent",
30337     "examples": [
30338       {
30339         "title": "Example usage:",
30340         "content": "curl https://{domain}/api/users/{id}/queues?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
30341         "type": "json"
30342       }
30343     ],
30344     "name": "RemoveQueues",
30345     "group": "Users",
30346     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30347     "version": "0.0.0",
30348     "filename": "server/api/user/index.js",
30349     "groupTitle": "Users"
30350   },
30351   {
30352     "type": "delete",
30353     "url": "/api/users/{id}/sms_accounts",
30354     "title": "Removes a Sms Account from a user",
30355     "examples": [
30356       {
30357         "title": "Example usage:",
30358         "content": "curl https://{domain}/api/users/{id}/sms_accounts?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
30359         "type": "json"
30360       }
30361     ],
30362     "name": "RemoveSmsAccounts",
30363     "group": "Users",
30364     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30365     "version": "0.0.0",
30366     "filename": "server/api/user/index.js",
30367     "groupTitle": "Users"
30368   },
30369   {
30370     "type": "delete",
30371     "url": "/api/users/{id}/sms_interactions",
30372     "title": "Removes interactions from an agent",
30373     "examples": [
30374       {
30375         "title": "Example usage:",
30376         "content": "curl https://{domain}/api/users/{id}/sms_interactions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
30377         "type": "json"
30378       }
30379     ],
30380     "name": "RemoveSmsInteractions",
30381     "group": "Users",
30382     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30383     "version": "0.0.0",
30384     "filename": "server/api/user/index.js",
30385     "groupTitle": "Users"
30386   },
30387   {
30388     "type": "delete",
30389     "url": "/api/users/{id}/teams",
30390     "title": "Removes teams from an agent",
30391     "examples": [
30392       {
30393         "title": "Example usage:",
30394         "content": "curl https://{domain}/api/users/{id}/teams?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
30395         "type": "json"
30396       }
30397     ],
30398     "name": "RemoveTeams",
30399     "group": "Users",
30400     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30401     "version": "0.0.0",
30402     "filename": "server/api/user/index.js",
30403     "groupTitle": "Users"
30404   },
30405   {
30406     "type": "delete",
30407     "url": "/api/users/{id}/whatsapp_accounts",
30408     "title": "Removes a Whatsapp Account from a user",
30409     "examples": [
30410       {
30411         "title": "Example usage:",
30412         "content": "curl https://{domain}/api/users/{id}/whatsapp_accounts?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
30413         "type": "json"
30414       }
30415     ],
30416     "name": "RemoveWhatsappAccounts",
30417     "group": "Users",
30418     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30419     "version": "0.0.0",
30420     "filename": "server/api/user/index.js",
30421     "groupTitle": "Users"
30422   },
30423   {
30424     "type": "delete",
30425     "url": "/api/users/{id}/whatsapp_interactions",
30426     "title": "Removes Whatsapp interactions from an agent",
30427     "examples": [
30428       {
30429         "title": "Example usage:",
30430         "content": "curl https://{domain}/api/users/{id}/whatsapp_interactions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
30431         "type": "json"
30432       }
30433     ],
30434     "name": "RemoveWhatsappInteractions",
30435     "group": "Users",
30436     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30437     "version": "0.0.0",
30438     "filename": "server/api/user/index.js",
30439     "groupTitle": "Users"
30440   },
30441   {
30442     "type": "get",
30443     "url": "/api/users/{id}",
30444     "title": "Gets a single User",
30445     "examples": [
30446       {
30447         "title": "Example usage:",
30448         "content": "curl https://{domain}/api/users/{id} -v -u {name}:{password}",
30449         "type": "json"
30450       }
30451     ],
30452     "name": "ShowUsers",
30453     "group": "Users",
30454     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30455     "version": "0.0.0",
30456     "filename": "server/api/user/index.js",
30457     "groupTitle": "Users"
30458   },
30459   {
30460     "type": "post",
30461     "url": "/api/users/{id}/unpause",
30462     "title": "Unpause",
30463     "examples": [
30464       {
30465         "title": "Example usage:",
30466         "content": "curl https://{domain}/api/users/{id}/unpause -v -u {name}:{password} -X POST",
30467         "type": "json"
30468       }
30469     ],
30470     "name": "Unpause",
30471     "group": "Users",
30472     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30473     "version": "0.0.0",
30474     "filename": "server/api/user/index.js",
30475     "groupTitle": "Users"
30476   },
30477   {
30478     "type": "get",
30479     "url": "/api/users/whoami",
30480     "title": "WhoAmI",
30481     "examples": [
30482       {
30483         "title": "Example usage:",
30484         "content": "curl https://{domain}/api/users/whoami -v -u {name}:{password} -X GET",
30485         "type": "json"
30486       }
30487     ],
30488     "name": "WhoAmI",
30489     "group": "Users",
30490     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30491     "version": "0.0.0",
30492     "filename": "server/api/user/index.js",
30493     "groupTitle": "Users"
30494   },
30495   {
30496     "type": "post",
30497     "url": "/api/users/{id}/avatar",
30498     "title": "Add avatar",
30499     "examples": [
30500       {
30501         "title": "Example usage:",
30502         "content": "curl https://{domain}/api/users/{id}/avatar -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
30503         "type": "json"
30504       }
30505     ],
30506     "name": "addAvatar",
30507     "group": "Users",
30508     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30509     "version": "0.0.0",
30510     "filename": "server/api/user/index.js",
30511     "groupTitle": "Users"
30512   },
30513   {
30514     "type": "post",
30515     "url": "/api/users/create_many",
30516     "title": "Create Users",
30517     "examples": [
30518       {
30519         "title": "Example usage:",
30520         "content": "curl https://{domain}/api/users/create_many -d '[{\"name\": \"john.doe\", \"role\": \"user\", \"...\": \"...\"}]' -v -u {name}:{password} -X POST",
30521         "type": "json"
30522       }
30523     ],
30524     "name": "bulkCreate",
30525     "group": "Users",
30526     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30527     "version": "0.0.0",
30528     "filename": "server/api/user/index.js",
30529     "groupTitle": "Users"
30530   },
30531   {
30532     "type": "get",
30533     "url": "/api/users/{id}/avatar",
30534     "title": "Get avatar",
30535     "examples": [
30536       {
30537         "title": "Example usage:",
30538         "content": "curl https://{domain}/api/users/{id}/avatar -v -u {name}:{password} -X GET",
30539         "type": "json"
30540       }
30541     ],
30542     "name": "getAvatar",
30543     "group": "Users",
30544     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30545     "version": "0.0.0",
30546     "filename": "server/api/user/index.js",
30547     "groupTitle": "Users"
30548   },
30549   {
30550     "type": "get",
30551     "url": "/api/users/{id}/open_tabs",
30552     "title": "Get interactions opened tabs",
30553     "examples": [
30554       {
30555         "title": "Example usage:",
30556         "content": "curl https://{domain}/api/users/{id}/open_tabs -v -u {name}:{password} -X GET",
30557         "type": "json"
30558       }
30559     ],
30560     "name": "getOpenTabs",
30561     "group": "Users",
30562     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30563     "version": "0.0.0",
30564     "filename": "server/api/user/index.js",
30565     "groupTitle": "Users"
30566   },
30567   {
30568     "type": "get",
30569     "url": "/api/users/presence",
30570     "title": "Gets agent presence",
30571     "examples": [
30572       {
30573         "title": "Example usage:",
30574         "content": "curl https://{domain}/api/users/presence -v -u {name}:{password}  -X GET",
30575         "type": "json"
30576       }
30577     ],
30578     "name": "getPresence",
30579     "group": "Users",
30580     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30581     "version": "0.0.0",
30582     "filename": "server/api/user/index.js",
30583     "groupTitle": "Users"
30584   },
30585   {
30586     "type": "post",
30587     "url": "/api/users/{id}/messengerSoundNotification",
30588     "title": "MessengerSoundNotification",
30589     "examples": [
30590       {
30591         "title": "Example usage:",
30592         "content": "curl https://{domain}/api/users/{id}/messengerSoundNotification -v -u {name}:{password} -X POST",
30593         "type": "json"
30594       }
30595     ],
30596     "name": "messengerSoundNotification",
30597     "group": "Users",
30598     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30599     "version": "0.0.0",
30600     "filename": "server/api/user/index.js",
30601     "groupTitle": "Users"
30602   },
30603   {
30604     "type": "put",
30605     "url": "/api/users/{id}",
30606     "title": "Update an existing User",
30607     "examples": [
30608       {
30609         "title": "Example usage:",
30610         "content": "curl https://{domain}/api/users/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
30611         "type": "json"
30612       }
30613     ],
30614     "name": "updateUsers",
30615     "group": "Users",
30616     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30617     "version": "0.0.0",
30618     "filename": "server/api/user/index.js",
30619     "groupTitle": "Users"
30620   },
30621   {
30622     "type": "post",
30623     "url": "/api/variables",
30624     "title": "Creates a new Variable",
30625     "examples": [
30626       {
30627         "title": "Example usage:",
30628         "content": "curl https://{domain}/api/variables -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
30629         "type": "json"
30630       }
30631     ],
30632     "name": "CreateVariables",
30633     "group": "Variables",
30634     "parameter": {
30635       "fields": {
30636         "Body": [
30637           {
30638             "group": "Body",
30639             "type": "String",
30640             "optional": false,
30641             "field": "name",
30642             "description": ""
30643           },
30644           {
30645             "group": "Body",
30646             "type": "String",
30647             "optional": true,
30648             "field": "description",
30649             "description": ""
30650           }
30651         ]
30652       }
30653     },
30654     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30655     "version": "0.0.0",
30656     "filename": "server/api/variable/index.js",
30657     "groupTitle": "Variables"
30658   },
30659   {
30660     "type": "delete",
30661     "url": "/api/variables/{id}",
30662     "title": "Deletes a Variable",
30663     "examples": [
30664       {
30665         "title": "Example usage:",
30666         "content": "curl https://{domain}/api/variables/{id} -v -u {name}:{password} -X DELETE",
30667         "type": "json"
30668       }
30669     ],
30670     "name": "DeleteVariables",
30671     "group": "Variables",
30672     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30673     "version": "0.0.0",
30674     "filename": "server/api/variable/index.js",
30675     "groupTitle": "Variables"
30676   },
30677   {
30678     "type": "get",
30679     "url": "/api/variables",
30680     "title": "Gets a list of Variables",
30681     "examples": [
30682       {
30683         "title": "Example usage:",
30684         "content": "curl https://{domain}/api/variables -v -u {name}:{password}",
30685         "type": "json"
30686       }
30687     ],
30688     "name": "GetVariables",
30689     "group": "Variables",
30690     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/variables?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/variables?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/variables?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/variables?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/variables?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
30691     "version": "0.0.0",
30692     "filename": "server/api/variable/index.js",
30693     "groupTitle": "Variables"
30694   },
30695   {
30696     "type": "get",
30697     "url": "/api/variables/{id}",
30698     "title": "Gets a single Variable",
30699     "examples": [
30700       {
30701         "title": "Example usage:",
30702         "content": "curl https://{domain}/api/variables/{id} -v -u {name}:{password}",
30703         "type": "json"
30704       }
30705     ],
30706     "name": "ShowVariables",
30707     "group": "Variables",
30708     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30709     "version": "0.0.0",
30710     "filename": "server/api/variable/index.js",
30711     "groupTitle": "Variables"
30712   },
30713   {
30714     "type": "put",
30715     "url": "/api/variables/{id}",
30716     "title": "Update an existing Variable",
30717     "examples": [
30718       {
30719         "title": "Example usage:",
30720         "content": "curl https://{domain}/api/variables/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
30721         "type": "json"
30722       }
30723     ],
30724     "name": "updateVariables",
30725     "group": "Variables",
30726     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30727     "version": "0.0.0",
30728     "filename": "server/api/variable/index.js",
30729     "groupTitle": "Variables"
30730   },
30731   {
30732     "type": "get",
30733     "url": "/api/version/fetch",
30734     "title": "Fetch git version",
30735     "examples": [
30736       {
30737         "title": "Example usage:",
30738         "content": "curl https://{domain}/api/version/fetch -v -u {name}:{password}",
30739         "type": "json"
30740       }
30741     ],
30742     "name": "FetchVersion",
30743     "group": "Version",
30744     "description": "<p>Motion run the following command: git fetch origin master</p>",
30745     "version": "0.0.0",
30746     "filename": "server/api/version/index.js",
30747     "groupTitle": "Version"
30748   },
30749   {
30750     "type": "get",
30751     "url": "/api/version",
30752     "title": "Gets version",
30753     "examples": [
30754       {
30755         "title": "Example usage:",
30756         "content": "curl https://{domain}/api/version -v -u {name}:{password}",
30757         "type": "json"
30758       }
30759     ],
30760     "name": "GetVersion",
30761     "group": "Version",
30762     "description": "<p>Motion returns the current and latest motion version.</p>",
30763     "version": "0.0.0",
30764     "filename": "server/api/version/index.js",
30765     "groupTitle": "Version"
30766   },
30767   {
30768     "type": "get",
30769     "url": "/api/version/migrations",
30770     "title": "Launch database migrations",
30771     "examples": [
30772       {
30773         "title": "Example usage:",
30774         "content": "curl https://{domain}/api/version/migrations -v -u {name}:{password}",
30775         "type": "json"
30776       }
30777     ],
30778     "name": "MigrateVersion",
30779     "group": "Version",
30780     "description": "<p>Motion launch the database migrations, according to the application version</p>",
30781     "version": "0.0.0",
30782     "filename": "server/api/version/index.js",
30783     "groupTitle": "Version"
30784   },
30785   {
30786     "type": "get",
30787     "url": "/api/version/pull",
30788     "title": "Pull git version",
30789     "examples": [
30790       {
30791         "title": "Example usage:",
30792         "content": "curl https://{domain}/api/version/pull -v -u {name}:{password}",
30793         "type": "json"
30794       }
30795     ],
30796     "name": "PullVersion",
30797     "group": "Version",
30798     "description": "<p>Motion run the following command: git pull</p>",
30799     "version": "0.0.0",
30800     "filename": "server/api/version/index.js",
30801     "groupTitle": "Version"
30802   },
30803   {
30804     "type": "get",
30805     "url": "/api/version/reset",
30806     "title": "Reset git version",
30807     "examples": [
30808       {
30809         "title": "Example usage:",
30810         "content": "curl https://{domain}/api/version/reset -v -u {name}:{password}",
30811         "type": "json"
30812       }
30813     ],
30814     "name": "ResetVersion",
30815     "group": "Version",
30816     "description": "<p>Motion run the following command: git reset --hard FETCH_HEAD</p>",
30817     "version": "0.0.0",
30818     "filename": "server/api/version/index.js",
30819     "groupTitle": "Version"
30820   },
30821   {
30822     "type": "get",
30823     "url": "/api/version/restart",
30824     "title": "Restart motion2 after update",
30825     "examples": [
30826       {
30827         "title": "Example usage:",
30828         "content": "curl https://{domain}/api/version/restart -v -u {name}:{password}",
30829         "type": "json"
30830       }
30831     ],
30832     "name": "RestartVersion",
30833     "group": "Version",
30834     "description": "<p>Motion run the following command: pm2 restart motion</p>",
30835     "version": "0.0.0",
30836     "filename": "server/api/version/index.js",
30837     "groupTitle": "Version"
30838   },
30839   {
30840     "type": "get",
30841     "url": "/api/voice/agents/reports/describe",
30842     "title": "Gets table info about Agent Reports",
30843     "examples": [
30844       {
30845         "title": "Example usage:",
30846         "content": "curl https://{domain}/api/voice/agents/reports/describe -v -u {name}:{password}",
30847         "type": "json"
30848       }
30849     ],
30850     "name": "DescribeAgent_Reports",
30851     "group": "Voice_Agent_Reports",
30852     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30853     "version": "0.0.0",
30854     "filename": "server/api/voiceAgentReport/index.js",
30855     "groupTitle": "Voice_Agent_Reports"
30856   },
30857   {
30858     "type": "get",
30859     "url": "/api/voice/agents/reports",
30860     "title": "Gets a list of Agent Reports",
30861     "examples": [
30862       {
30863         "title": "Example usage:",
30864         "content": "curl https://{domain}/api/voice/agents/reports -v -u {name}:{password}",
30865         "type": "json"
30866       }
30867     ],
30868     "name": "GetAgent_Reports",
30869     "group": "Voice_Agent_Reports",
30870     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/voice/agents/reports?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/voice/agents/reports?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/voice/agents/reports?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/voice/agents/reports?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/voice/agents/reports?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
30871     "version": "0.0.0",
30872     "filename": "server/api/voiceAgentReport/index.js",
30873     "groupTitle": "Voice_Agent_Reports"
30874   },
30875   {
30876     "type": "get",
30877     "url": "/api/voice/agents/reports/{id}",
30878     "title": "Gets a single Agent Report",
30879     "examples": [
30880       {
30881         "title": "Example usage:",
30882         "content": "curl https://{domain}/api/voice/agents/reports/{id} -v -u {name}:{password}",
30883         "type": "json"
30884       }
30885     ],
30886     "name": "ShowAgent_Reports",
30887     "group": "Voice_Agent_Reports",
30888     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30889     "version": "0.0.0",
30890     "filename": "server/api/voiceAgentReport/index.js",
30891     "groupTitle": "Voice_Agent_Reports"
30892   },
30893   {
30894     "type": "get",
30895     "url": "/api/voice/calls/reports/describe",
30896     "title": "Gets table info about Call Reports",
30897     "examples": [
30898       {
30899         "title": "Example usage:",
30900         "content": "curl https://{domain}/api/voice/calls/reports/describe -v -u {name}:{password}",
30901         "type": "json"
30902       }
30903     ],
30904     "name": "DescribeCall_Reports",
30905     "group": "Voice_Call_Reports",
30906     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30907     "version": "0.0.0",
30908     "filename": "server/api/voiceCallReport/index.js",
30909     "groupTitle": "Voice_Call_Reports"
30910   },
30911   {
30912     "type": "get",
30913     "url": "/api/voice/calls/reports",
30914     "title": "Gets a list of Call Reports",
30915     "examples": [
30916       {
30917         "title": "Example usage:",
30918         "content": "curl https://{domain}/api/voice/calls/reports -v -u {name}:{password}",
30919         "type": "json"
30920       }
30921     ],
30922     "name": "GetCall_Reports",
30923     "group": "Voice_Call_Reports",
30924     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/voice/calls/reports?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/voice/calls/reports?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/voice/calls/reports?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/voice/calls/reports?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/voice/calls/reports?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
30925     "version": "0.0.0",
30926     "filename": "server/api/voiceCallReport/index.js",
30927     "groupTitle": "Voice_Call_Reports"
30928   },
30929   {
30930     "type": "get",
30931     "url": "/api/voice/calls/reports/{id}",
30932     "title": "Gets a single Call Report",
30933     "examples": [
30934       {
30935         "title": "Example usage:",
30936         "content": "curl https://{domain}/api/voice/calls/reports/{id} -v -u {name}:{password}",
30937         "type": "json"
30938       }
30939     ],
30940     "name": "ShowCall_Reports",
30941     "group": "Voice_Call_Reports",
30942     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30943     "version": "0.0.0",
30944     "filename": "server/api/voiceCallReport/index.js",
30945     "groupTitle": "Voice_Call_Reports"
30946   },
30947   {
30948     "type": "put",
30949     "url": "/api/voice/calls/reports/{id}",
30950     "title": "Update a single cdr",
30951     "examples": [
30952       {
30953         "title": "Example usage:",
30954         "content": "curl https://{domain}/api/voice/calls/reports/{id} -d '{\"userDispositio\": \"OK\"}' -v -u {name}:{password} -X PUT",
30955         "type": "json"
30956       }
30957     ],
30958     "name": "update",
30959     "group": "Voice_Call_Reports",
30960     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30961     "version": "0.0.0",
30962     "filename": "server/api/voiceCallReport/index.js",
30963     "groupTitle": "Voice_Call_Reports"
30964   },
30965   {
30966     "type": "post",
30967     "url": "/api/voice/chanspy",
30968     "title": "Creates a new ChanSpy",
30969     "examples": [
30970       {
30971         "title": "Example usage:",
30972         "content": "curl https://{domain}/api/voice/chanspy -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
30973         "type": "json"
30974       }
30975     ],
30976     "name": "CreateChanSpy",
30977     "group": "Voice_ChanSpy",
30978     "parameter": {
30979       "fields": {
30980         "Body": [
30981           {
30982             "group": "Body",
30983             "type": "String",
30984             "optional": true,
30985             "field": "name",
30986             "description": ""
30987           },
30988           {
30989             "group": "Body",
30990             "type": "String",
30991             "optional": false,
30992             "field": "prefix",
30993             "description": ""
30994           },
30995           {
30996             "group": "Body",
30997             "type": "String",
30998             "optional": true,
30999             "field": "options",
31000             "description": ""
31001           },
31002           {
31003             "group": "Body",
31004             "type": "Boolean",
31005             "optional": true,
31006             "field": "auth",
31007             "description": ""
31008           },
31009           {
31010             "group": "Body",
31011             "type": "String",
31012             "optional": true,
31013             "field": "password",
31014             "description": ""
31015           },
31016           {
31017             "group": "Body",
31018             "type": "Boolean",
31019             "optional": true,
31020             "field": "record",
31021             "description": ""
31022           },
31023           {
31024             "group": "Body",
31025             "type": "String",
31026             "optional": true,
31027             "field": "recordingFormat",
31028             "description": ""
31029           },
31030           {
31031             "group": "Body",
31032             "type": "String",
31033             "optional": true,
31034             "field": "description",
31035             "description": ""
31036           }
31037         ]
31038       }
31039     },
31040     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31041     "version": "0.0.0",
31042     "filename": "server/api/voiceChanSpy/index.js",
31043     "groupTitle": "Voice_ChanSpy"
31044   },
31045   {
31046     "type": "delete",
31047     "url": "/api/voice/chanspy/{id}",
31048     "title": "Deletes a ChanSpy",
31049     "examples": [
31050       {
31051         "title": "Example usage:",
31052         "content": "curl https://{domain}/api/voice/chanspy/{id} -v -u {name}:{password} -X DELETE",
31053         "type": "json"
31054       }
31055     ],
31056     "name": "DeleteChanSpy",
31057     "group": "Voice_ChanSpy",
31058     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31059     "version": "0.0.0",
31060     "filename": "server/api/voiceChanSpy/index.js",
31061     "groupTitle": "Voice_ChanSpy"
31062   },
31063   {
31064     "type": "get",
31065     "url": "/api/voice/chanspy",
31066     "title": "Gets a list of ChanSpy",
31067     "examples": [
31068       {
31069         "title": "Example usage:",
31070         "content": "curl https://{domain}/api/voice/chanspy -v -u {name}:{password}",
31071         "type": "json"
31072       }
31073     ],
31074     "name": "GetChanSpy",
31075     "group": "Voice_ChanSpy",
31076     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/voice/chanspy?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/voice/chanspy?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/voice/chanspy?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/voice/chanspy?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/voice/chanspy?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
31077     "version": "0.0.0",
31078     "filename": "server/api/voiceChanSpy/index.js",
31079     "groupTitle": "Voice_ChanSpy"
31080   },
31081   {
31082     "type": "get",
31083     "url": "/api/voice/chanspy/{id}",
31084     "title": "Gets a single ChanSpy",
31085     "examples": [
31086       {
31087         "title": "Example usage:",
31088         "content": "curl https://{domain}/api/voice/chanspy/{id} -v -u {name}:{password}",
31089         "type": "json"
31090       }
31091     ],
31092     "name": "ShowChanSpy",
31093     "group": "Voice_ChanSpy",
31094     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31095     "version": "0.0.0",
31096     "filename": "server/api/voiceChanSpy/index.js",
31097     "groupTitle": "Voice_ChanSpy"
31098   },
31099   {
31100     "type": "put",
31101     "url": "/api/voice/chanspy/{id}",
31102     "title": "Update an existing ChanSpy",
31103     "examples": [
31104       {
31105         "title": "Example usage:",
31106         "content": "curl https://{domain}/api/voice/chanspy/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
31107         "type": "json"
31108       }
31109     ],
31110     "name": "updateChanSpy",
31111     "group": "Voice_ChanSpy",
31112     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31113     "version": "0.0.0",
31114     "filename": "server/api/voiceChanSpy/index.js",
31115     "groupTitle": "Voice_ChanSpy"
31116   },
31117   {
31118     "type": "post",
31119     "url": "/api/voice/contexts",
31120     "title": "Create a new context",
31121     "examples": [
31122       {
31123         "title": "Example usage:",
31124         "content": "curl https://{domain}/api/voice/contexts -v -u {name}:{password} -X POST",
31125         "type": "json"
31126       }
31127     ],
31128     "name": "Create",
31129     "group": "Voice_Contexts",
31130     "parameter": {
31131       "fields": {
31132         "Body": [
31133           {
31134             "group": "Body",
31135             "type": "String",
31136             "optional": true,
31137             "field": "name",
31138             "description": ""
31139           },
31140           {
31141             "group": "Body",
31142             "type": "String",
31143             "optional": true,
31144             "field": "description",
31145             "description": ""
31146           },
31147           {
31148             "group": "Body",
31149             "type": "Boolean",
31150             "optional": true,
31151             "field": "defaultEntry",
31152             "description": ""
31153           }
31154         ]
31155       }
31156     },
31157     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31158     "version": "0.0.0",
31159     "filename": "server/api/voiceContext/index.js",
31160     "groupTitle": "Voice_Contexts"
31161   },
31162   {
31163     "type": "delete",
31164     "url": "/api/voice/contexts/{id}",
31165     "title": "Deletes a context",
31166     "examples": [
31167       {
31168         "title": "Example usage:",
31169         "content": "curl https://{domain}/api/voice/contexts/{id} -v -u {name}:{password} -X DELETE",
31170         "type": "json"
31171       }
31172     ],
31173     "name": "Delete",
31174     "group": "Voice_Contexts",
31175     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31176     "version": "0.0.0",
31177     "filename": "server/api/voiceContext/index.js",
31178     "groupTitle": "Voice_Contexts"
31179   },
31180   {
31181     "type": "get",
31182     "url": "/api/voice/contexts",
31183     "title": "Gets a list of Contexts",
31184     "examples": [
31185       {
31186         "title": "Example usage:",
31187         "content": "curl https://{domain}/api/voice/contexts -v -u {name}:{password}",
31188         "type": "json"
31189       }
31190     ],
31191     "name": "GetContexts",
31192     "group": "Voice_Contexts",
31193     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/voice/contexts?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/voice/contexts?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/voice/contexts?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/voice/contexts?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/voice/contexts?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
31194     "version": "0.0.0",
31195     "filename": "server/api/voiceContext/index.js",
31196     "groupTitle": "Voice_Contexts"
31197   },
31198   {
31199     "type": "get",
31200     "url": "/api/voice/contexts/{id}",
31201     "title": "Gets a single Context",
31202     "examples": [
31203       {
31204         "title": "Example usage:",
31205         "content": "curl https://{domain}/api/voice/contexts/{id} -v -u {name}:{password}",
31206         "type": "json"
31207       }
31208     ],
31209     "name": "ShowContexts",
31210     "group": "Voice_Contexts",
31211     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31212     "version": "0.0.0",
31213     "filename": "server/api/voiceContext/index.js",
31214     "groupTitle": "Voice_Contexts"
31215   },
31216   {
31217     "type": "put",
31218     "url": "/api/voice/contexts/{id}",
31219     "title": "Update an existing context",
31220     "examples": [
31221       {
31222         "title": "Example usage:",
31223         "content": "curl https://{domain}/api/voice/contexts/{id} -v -u {name}:{password} -X PUT",
31224         "type": "json"
31225       }
31226     ],
31227     "name": "Update",
31228     "group": "Voice_Contexts",
31229     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31230     "version": "0.0.0",
31231     "filename": "server/api/voiceContext/index.js",
31232     "groupTitle": "Voice_Contexts"
31233   },
31234   {
31235     "type": "get",
31236     "url": "/api/voice/dials/reports/describe",
31237     "title": "Gets table info about Dial Reports",
31238     "examples": [
31239       {
31240         "title": "Example usage:",
31241         "content": "curl https://{domain}/api/voice/dials/reports/describe -v -u {name}:{password}",
31242         "type": "json"
31243       }
31244     ],
31245     "name": "DescribeDial_Reports",
31246     "group": "Voice_Dial_Reports",
31247     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31248     "version": "0.0.0",
31249     "filename": "server/api/voiceDialReport/index.js",
31250     "groupTitle": "Voice_Dial_Reports"
31251   },
31252   {
31253     "type": "get",
31254     "url": "/api/voice/dials/reports",
31255     "title": "Gets a list of Dial Reports",
31256     "examples": [
31257       {
31258         "title": "Example usage:",
31259         "content": "curl https://{domain}/api/voice/dials/reports -v -u {name}:{password}",
31260         "type": "json"
31261       }
31262     ],
31263     "name": "GetDial_Reports",
31264     "group": "Voice_Dial_Reports",
31265     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/voice/dials/reports?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/voice/dials/reports?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/voice/dials/reports?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/voice/dials/reports?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/voice/dials/reports?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
31266     "version": "0.0.0",
31267     "filename": "server/api/voiceDialReport/index.js",
31268     "groupTitle": "Voice_Dial_Reports"
31269   },
31270   {
31271     "type": "get",
31272     "url": "/api/voice/dials/reports/{id}",
31273     "title": "Gets a single Dial Report",
31274     "examples": [
31275       {
31276         "title": "Example usage:",
31277         "content": "curl https://{domain}/api/voice/dials/reports/{id} -v -u {name}:{password}",
31278         "type": "json"
31279       }
31280     ],
31281     "name": "ShowDial_Reports",
31282     "group": "Voice_Dial_Reports",
31283     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31284     "version": "0.0.0",
31285     "filename": "server/api/voiceDialReport/index.js",
31286     "groupTitle": "Voice_Dial_Reports"
31287   },
31288   {
31289     "type": "delete",
31290     "url": "/api/voice/extensions/{id}",
31291     "title": "Deletes a Extension",
31292     "examples": [
31293       {
31294         "title": "Example usage:",
31295         "content": "curl https://{domain}/api/voice/extensions/{id} -v -u {name}:{password} -X DELETE",
31296         "type": "json"
31297       }
31298     ],
31299     "name": "DeleteExtensions",
31300     "group": "Voice_Extensions",
31301     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31302     "version": "0.0.0",
31303     "filename": "server/api/voiceExtension/index.js",
31304     "groupTitle": "Voice_Extensions"
31305   },
31306   {
31307     "type": "get",
31308     "url": "/api/voice/extensions",
31309     "title": "Gets a list of Extensions",
31310     "examples": [
31311       {
31312         "title": "Example usage:",
31313         "content": "curl https://{domain}/api/voice/extensions -v -u {name}:{password}",
31314         "type": "json"
31315       }
31316     ],
31317     "name": "GetExtensions",
31318     "group": "Voice_Extensions",
31319     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/voice/extensions?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/voice/extensions?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/voice/extensions?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/voice/extensions?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/voice/extensions?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
31320     "version": "0.0.0",
31321     "filename": "server/api/voiceExtension/index.js",
31322     "groupTitle": "Voice_Extensions"
31323   },
31324   {
31325     "type": "get",
31326     "url": "/api/voice/extensions/{id}",
31327     "title": "Gets a single Extension",
31328     "examples": [
31329       {
31330         "title": "Example usage:",
31331         "content": "curl https://{domain}/api/voice/extensions/{id} -v -u {name}:{password}",
31332         "type": "json"
31333       }
31334     ],
31335     "name": "ShowExtensions",
31336     "group": "Voice_Extensions",
31337     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31338     "version": "0.0.0",
31339     "filename": "server/api/voiceExtension/index.js",
31340     "groupTitle": "Voice_Extensions"
31341   },
31342   {
31343     "type": "post",
31344     "url": "/api/voice/extensions",
31345     "title": "Create new applications",
31346     "examples": [
31347       {
31348         "title": "Example usage:",
31349         "content": "curl https://{domain}/api/voice/extensions/{id}/applications -d '[{\"app\": \"Set\", \"appdata\": \"CALLERDNID=${CALLER(dnid)}\"}]' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
31350         "type": "json"
31351       }
31352     ],
31353     "name": "addApplications",
31354     "group": "Voice_Extensions",
31355     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31356     "version": "0.0.0",
31357     "filename": "server/api/voiceExtension/index.js",
31358     "groupTitle": "Voice_Extensions"
31359   },
31360   {
31361     "type": "post",
31362     "url": "/api/voice/extensions",
31363     "title": "Create an extension",
31364     "examples": [
31365       {
31366         "title": "Example usage:",
31367         "content": "curl https://{domain}/api/voice/extensions -d '{\"exten\": \"12345\", \"context\": \"from-custom\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
31368         "type": "json"
31369       }
31370     ],
31371     "name": "create",
31372     "group": "Voice_Extensions",
31373     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31374     "version": "0.0.0",
31375     "filename": "server/api/voiceExtension/index.js",
31376     "groupTitle": "Voice_Extensions"
31377   },
31378   {
31379     "type": "put",
31380     "url": "/api/voice/extensions/{id}",
31381     "title": "Update an extension",
31382     "examples": [
31383       {
31384         "title": "Example usage:",
31385         "content": "curl https://{domain}/api/voice/extensions/{id} -d '{\"exten\": \"12345\", \"context\": \"from-custom\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
31386         "type": "json"
31387       }
31388     ],
31389     "name": "update",
31390     "group": "Voice_Extensions",
31391     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31392     "version": "0.0.0",
31393     "filename": "server/api/voiceExtension/index.js",
31394     "groupTitle": "Voice_Extensions"
31395   },
31396   {
31397     "type": "post",
31398     "url": "/api/voice/mohs",
31399     "title": "Create a new a new MOH",
31400     "examples": [
31401       {
31402         "title": "Example usage:",
31403         "content": "curl https://{domain}/api/voice/mohs -d '{\"name\": \"xmas_musics\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
31404         "type": "json"
31405       }
31406     ],
31407     "name": "AddMoh",
31408     "group": "Voice_MOHs",
31409     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31410     "version": "0.0.0",
31411     "filename": "server/api/voiceMusicOnHold/index.js",
31412     "groupTitle": "Voice_MOHs"
31413   },
31414   {
31415     "type": "post",
31416     "url": "/api/voice/mohs/{id}/sounds",
31417     "title": "Add sound to MOH",
31418     "examples": [
31419       {
31420         "title": "Example usage:",
31421         "content": "curl https://{domain}/api/voice/mohs/{id}/sounds -d '{\"id\": 1}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
31422         "type": "json"
31423       }
31424     ],
31425     "name": "AddSound",
31426     "group": "Voice_MOHs",
31427     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31428     "version": "0.0.0",
31429     "filename": "server/api/voiceMusicOnHold/index.js",
31430     "groupTitle": "Voice_MOHs"
31431   },
31432   {
31433     "type": "delete",
31434     "url": "/api/voice/mohs/{id}",
31435     "title": "Deletes an MOH",
31436     "examples": [
31437       {
31438         "title": "Example usage:",
31439         "content": "curl https://{domain}/api/voice/mohs/{id} -v -u {name}:{password} -X DELETE",
31440         "type": "json"
31441       }
31442     ],
31443     "name": "DestroyMoh",
31444     "group": "Voice_MOHs",
31445     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31446     "version": "0.0.0",
31447     "filename": "server/api/voiceMusicOnHold/index.js",
31448     "groupTitle": "Voice_MOHs"
31449   },
31450   {
31451     "type": "get",
31452     "url": "/api/voice/mohs",
31453     "title": "Gets a list of Music On Holds",
31454     "examples": [
31455       {
31456         "title": "Example usage:",
31457         "content": "curl https://{domain}/api/voice/mohs -v -u {name}:{password}",
31458         "type": "json"
31459       }
31460     ],
31461     "name": "GetMusic_On_Holds",
31462     "group": "Voice_MOHs",
31463     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/voice/mohs?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/voice/mohs?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/voice/mohs?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/voice/mohs?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/voice/mohs?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
31464     "version": "0.0.0",
31465     "filename": "server/api/voiceMusicOnHold/index.js",
31466     "groupTitle": "Voice_MOHs"
31467   },
31468   {
31469     "type": "get",
31470     "url": "/api/voice/mohs/{id}/sounds",
31471     "title": "Gets sounds from MOH",
31472     "examples": [
31473       {
31474         "title": "Example usage:",
31475         "content": "curl https://{domain}/api/voice/mohs/{id}/sounds -v -u {name}:{password} -X DELETE",
31476         "type": "json"
31477       }
31478     ],
31479     "name": "GetSounds",
31480     "group": "Voice_MOHs",
31481     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31482     "version": "0.0.0",
31483     "filename": "server/api/voiceMusicOnHold/index.js",
31484     "groupTitle": "Voice_MOHs"
31485   },
31486   {
31487     "type": "delete",
31488     "url": "/api/voice/mohs/{id}/sounds/{id2}",
31489     "title": "Remove sound from MOH",
31490     "examples": [
31491       {
31492         "title": "Example usage:",
31493         "content": "curl https://{domain}/api/voice/mohs/{id}/sounds/{id2} -v -u {name}:{password} -X DELETE",
31494         "type": "json"
31495       }
31496     ],
31497     "name": "RemoveSound",
31498     "group": "Voice_MOHs",
31499     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31500     "version": "0.0.0",
31501     "filename": "server/api/voiceMusicOnHold/index.js",
31502     "groupTitle": "Voice_MOHs"
31503   },
31504   {
31505     "type": "get",
31506     "url": "/api/voice/mohs/{id}",
31507     "title": "Gets a single Music On Hold",
31508     "examples": [
31509       {
31510         "title": "Example usage:",
31511         "content": "curl https://{domain}/api/voice/mohs/{id} -v -u {name}:{password}",
31512         "type": "json"
31513       }
31514     ],
31515     "name": "ShowMusic_On_Holds",
31516     "group": "Voice_MOHs",
31517     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31518     "version": "0.0.0",
31519     "filename": "server/api/voiceMusicOnHold/index.js",
31520     "groupTitle": "Voice_MOHs"
31521   },
31522   {
31523     "type": "put",
31524     "url": "/api/voice/mohs/{id}",
31525     "title": "Update an existing Music On Hold",
31526     "examples": [
31527       {
31528         "title": "Example usage:",
31529         "content": "curl https://{domain}/api/voice/mohs/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
31530         "type": "json"
31531       }
31532     ],
31533     "name": "updateMusic_On_Holds",
31534     "group": "Voice_MOHs",
31535     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31536     "version": "0.0.0",
31537     "filename": "server/api/voiceMusicOnHold/index.js",
31538     "groupTitle": "Voice_MOHs"
31539   },
31540   {
31541     "type": "post",
31542     "url": "/api/voice/mails",
31543     "title": "Creates a new Mail",
31544     "examples": [
31545       {
31546         "title": "Example usage:",
31547         "content": "curl https://{domain}/api/voice/mails -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
31548         "type": "json"
31549       }
31550     ],
31551     "name": "CreateMails",
31552     "group": "Voice_Mails",
31553     "parameter": {
31554       "fields": {
31555         "Body": [
31556           {
31557             "group": "Body",
31558             "type": "String",
31559             "optional": true,
31560             "field": "customer_id",
31561             "description": ""
31562           },
31563           {
31564             "group": "Body",
31565             "type": "String",
31566             "optional": true,
31567             "field": "context",
31568             "description": ""
31569           },
31570           {
31571             "group": "Body",
31572             "type": "String",
31573             "optional": false,
31574             "field": "mailbox",
31575             "description": ""
31576           },
31577           {
31578             "group": "Body",
31579             "type": "String",
31580             "optional": true,
31581             "field": "password",
31582             "description": ""
31583           },
31584           {
31585             "group": "Body",
31586             "type": "String",
31587             "optional": true,
31588             "field": "fullname",
31589             "description": ""
31590           },
31591           {
31592             "group": "Body",
31593             "type": "String",
31594             "optional": true,
31595             "field": "email",
31596             "description": ""
31597           },
31598           {
31599             "group": "Body",
31600             "type": "String",
31601             "optional": true,
31602             "field": "pager",
31603             "description": ""
31604           },
31605           {
31606             "group": "Body",
31607             "type": "String",
31608             "optional": true,
31609             "field": "tz",
31610             "description": ""
31611           },
31612           {
31613             "group": "Body",
31614             "type": "String",
31615             "allowedValues": [
31616               "\"yes\"",
31617               "\"no\""
31618             ],
31619             "optional": false,
31620             "field": "attach",
31621             "description": ""
31622           },
31623           {
31624             "group": "Body",
31625             "type": "String",
31626             "allowedValues": [
31627               "\"yes\"",
31628               "\"no\""
31629             ],
31630             "optional": false,
31631             "field": "saycid",
31632             "description": ""
31633           },
31634           {
31635             "group": "Body",
31636             "type": "String",
31637             "optional": true,
31638             "field": "dialout",
31639             "description": ""
31640           },
31641           {
31642             "group": "Body",
31643             "type": "String",
31644             "optional": true,
31645             "field": "callback",
31646             "description": ""
31647           },
31648           {
31649             "group": "Body",
31650             "type": "String",
31651             "allowedValues": [
31652               "\"yes\"",
31653               "\"no\""
31654             ],
31655             "optional": false,
31656             "field": "review",
31657             "description": ""
31658           },
31659           {
31660             "group": "Body",
31661             "type": "String",
31662             "allowedValues": [
31663               "\"yes\"",
31664               "\"no\""
31665             ],
31666             "optional": false,
31667             "field": "operator",
31668             "description": ""
31669           },
31670           {
31671             "group": "Body",
31672             "type": "String",
31673             "allowedValues": [
31674               "\"yes\"",
31675               "\"no\""
31676             ],
31677             "optional": false,
31678             "field": "envelope",
31679             "description": ""
31680           },
31681           {
31682             "group": "Body",
31683             "type": "String",
31684             "allowedValues": [
31685               "\"yes\"",
31686               "\"no\""
31687             ],
31688             "optional": false,
31689             "field": "sayduration",
31690             "description": ""
31691           },
31692           {
31693             "group": "Body",
31694             "type": "String",
31695             "optional": false,
31696             "field": "saydurationm",
31697             "description": ""
31698           },
31699           {
31700             "group": "Body",
31701             "type": "String",
31702             "allowedValues": [
31703               "\"yes\"",
31704               "\"no\""
31705             ],
31706             "optional": false,
31707             "field": "sendvoicemail",
31708             "description": ""
31709           },
31710           {
31711             "group": "Body",
31712             "type": "String",
31713             "allowedValues": [
31714               "\"yes\"",
31715               "\"no\""
31716             ],
31717             "optional": false,
31718             "field": "delete",
31719             "description": ""
31720           },
31721           {
31722             "group": "Body",
31723             "type": "String",
31724             "allowedValues": [
31725               "\"yes\"",
31726               "\"no\""
31727             ],
31728             "optional": false,
31729             "field": "nextaftercmd",
31730             "description": ""
31731           },
31732           {
31733             "group": "Body",
31734             "type": "String",
31735             "allowedValues": [
31736               "\"yes\"",
31737               "\"no\""
31738             ],
31739             "optional": false,
31740             "field": "forcename",
31741             "description": ""
31742           },
31743           {
31744             "group": "Body",
31745             "type": "String",
31746             "allowedValues": [
31747               "\"yes\"",
31748               "\"no\""
31749             ],
31750             "optional": false,
31751             "field": "forcegreetings",
31752             "description": ""
31753           },
31754           {
31755             "group": "Body",
31756             "type": "String",
31757             "allowedValues": [
31758               "\"yes\"",
31759               "\"no\""
31760             ],
31761             "optional": false,
31762             "field": "hidefromdir",
31763             "description": ""
31764           },
31765           {
31766             "group": "Body",
31767             "type": "String",
31768             "optional": true,
31769             "field": "stamp",
31770             "description": ""
31771           },
31772           {
31773             "group": "Body",
31774             "type": "String",
31775             "optional": true,
31776             "field": "emailsubject",
31777             "description": ""
31778           },
31779           {
31780             "group": "Body",
31781             "type": "String",
31782             "optional": true,
31783             "field": "emailbody",
31784             "description": ""
31785           },
31786           {
31787             "group": "Body",
31788             "type": "Integer",
31789             "optional": false,
31790             "field": "maxsecs",
31791             "description": ""
31792           },
31793           {
31794             "group": "Body",
31795             "type": "Integer",
31796             "optional": false,
31797             "field": "maxmsg",
31798             "description": ""
31799           },
31800           {
31801             "group": "Body",
31802             "type": "Virtual",
31803             "optional": true,
31804             "field": "name",
31805             "description": ""
31806           }
31807         ]
31808       }
31809     },
31810     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31811     "version": "0.0.0",
31812     "filename": "server/api/voiceMail/index.js",
31813     "groupTitle": "Voice_Mails"
31814   },
31815   {
31816     "type": "delete",
31817     "url": "/api/voice/mails/{id}",
31818     "title": "Deletes a Mail",
31819     "examples": [
31820       {
31821         "title": "Example usage:",
31822         "content": "curl https://{domain}/api/voice/mails/{id} -v -u {name}:{password} -X DELETE",
31823         "type": "json"
31824       }
31825     ],
31826     "name": "DeleteMails",
31827     "group": "Voice_Mails",
31828     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31829     "version": "0.0.0",
31830     "filename": "server/api/voiceMail/index.js",
31831     "groupTitle": "Voice_Mails"
31832   },
31833   {
31834     "type": "get",
31835     "url": "/api/voice/mails",
31836     "title": "Gets a list of Mails",
31837     "examples": [
31838       {
31839         "title": "Example usage:",
31840         "content": "curl https://{domain}/api/voice/mails -v -u {name}:{password}",
31841         "type": "json"
31842       }
31843     ],
31844     "name": "GetMails",
31845     "group": "Voice_Mails",
31846     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/voice/mails?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/voice/mails?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/voice/mails?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/voice/mails?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/voice/mails?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
31847     "version": "0.0.0",
31848     "filename": "server/api/voiceMail/index.js",
31849     "groupTitle": "Voice_Mails"
31850   },
31851   {
31852     "type": "get",
31853     "url": "/api/voice/mails/{id}",
31854     "title": "Gets a single Mail",
31855     "examples": [
31856       {
31857         "title": "Example usage:",
31858         "content": "curl https://{domain}/api/voice/mails/{id} -v -u {name}:{password}",
31859         "type": "json"
31860       }
31861     ],
31862     "name": "ShowMails",
31863     "group": "Voice_Mails",
31864     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31865     "version": "0.0.0",
31866     "filename": "server/api/voiceMail/index.js",
31867     "groupTitle": "Voice_Mails"
31868   },
31869   {
31870     "type": "get",
31871     "url": "/api/voice/mails/{id}/messages",
31872     "title": "Gets voice mail messages",
31873     "examples": [
31874       {
31875         "title": "Example usage:",
31876         "content": "curl https://{domain}/api/voice/mails/{id}/messages -v -u {name}:{password} -X GET",
31877         "type": "json"
31878       }
31879     ],
31880     "name": "getMessages",
31881     "group": "Voice_Mails",
31882     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31883     "version": "0.0.0",
31884     "filename": "server/api/voiceMail/index.js",
31885     "groupTitle": "Voice_Mails"
31886   },
31887   {
31888     "type": "put",
31889     "url": "/api/voice/mails/{id}",
31890     "title": "Update an existing Mail",
31891     "examples": [
31892       {
31893         "title": "Example usage:",
31894         "content": "curl https://{domain}/api/voice/mails/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
31895         "type": "json"
31896       }
31897     ],
31898     "name": "updateMails",
31899     "group": "Voice_Mails",
31900     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31901     "version": "0.0.0",
31902     "filename": "server/api/voiceMail/index.js",
31903     "groupTitle": "Voice_Mails"
31904   },
31905   {
31906     "type": "post",
31907     "url": "/api/voice/mails/messages",
31908     "title": "Creates a new Message",
31909     "examples": [
31910       {
31911         "title": "Example usage:",
31912         "content": "curl https://{domain}/api/voice/mails/messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
31913         "type": "json"
31914       }
31915     ],
31916     "name": "CreateMessages",
31917     "group": "Voice_Messages",
31918     "parameter": {
31919       "fields": {
31920         "Body": [
31921           {
31922             "group": "Body",
31923             "type": "Virtual",
31924             "optional": true,
31925             "field": "name",
31926             "description": ""
31927           },
31928           {
31929             "group": "Body",
31930             "type": "Integer",
31931             "optional": false,
31932             "field": "msgnum",
31933             "description": ""
31934           },
31935           {
31936             "group": "Body",
31937             "type": "String",
31938             "optional": true,
31939             "field": "dir",
31940             "description": ""
31941           },
31942           {
31943             "group": "Body",
31944             "type": "String",
31945             "optional": true,
31946             "field": "context",
31947             "description": ""
31948           },
31949           {
31950             "group": "Body",
31951             "type": "String",
31952             "optional": true,
31953             "field": "macrocontext",
31954             "description": ""
31955           },
31956           {
31957             "group": "Body",
31958             "type": "String",
31959             "optional": true,
31960             "field": "callerid",
31961             "description": ""
31962           },
31963           {
31964             "group": "Body",
31965             "type": "String",
31966             "optional": true,
31967             "field": "origtime",
31968             "description": ""
31969           },
31970           {
31971             "group": "Body",
31972             "type": "String",
31973             "optional": true,
31974             "field": "duration",
31975             "description": ""
31976           },
31977           {
31978             "group": "Body",
31979             "type": "String",
31980             "optional": true,
31981             "field": "mailboxuser",
31982             "description": ""
31983           },
31984           {
31985             "group": "Body",
31986             "type": "String",
31987             "optional": true,
31988             "field": "mailboxcontext",
31989             "description": ""
31990           },
31991           {
31992             "group": "Body",
31993             "type": "Blob",
31994             "optional": true,
31995             "field": "recording",
31996             "description": ""
31997           },
31998           {
31999             "group": "Body",
32000             "type": "String",
32001             "optional": true,
32002             "field": "flag",
32003             "description": ""
32004           },
32005           {
32006             "group": "Body",
32007             "type": "String",
32008             "optional": true,
32009             "field": "msg_id",
32010             "description": ""
32011           },
32012           {
32013             "group": "Body",
32014             "type": "String",
32015             "optional": true,
32016             "field": "stamp",
32017             "description": ""
32018           }
32019         ]
32020       }
32021     },
32022     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32023     "version": "0.0.0",
32024     "filename": "server/api/voiceMailMessage/index.js",
32025     "groupTitle": "Voice_Messages"
32026   },
32027   {
32028     "type": "delete",
32029     "url": "/api/voice/mails/messages/{id}",
32030     "title": "Deletes a Message",
32031     "examples": [
32032       {
32033         "title": "Example usage:",
32034         "content": "curl https://{domain}/api/voice/mails/messages/{id} -v -u {name}:{password} -X DELETE",
32035         "type": "json"
32036       }
32037     ],
32038     "name": "DeleteMessages",
32039     "group": "Voice_Messages",
32040     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32041     "version": "0.0.0",
32042     "filename": "server/api/voiceMailMessage/index.js",
32043     "groupTitle": "Voice_Messages"
32044   },
32045   {
32046     "type": "get",
32047     "url": "/api/voice/mails/messages",
32048     "title": "Gets a list of Messages",
32049     "examples": [
32050       {
32051         "title": "Example usage:",
32052         "content": "curl https://{domain}/api/voice/mails/messages -v -u {name}:{password}",
32053         "type": "json"
32054       }
32055     ],
32056     "name": "GetMessages",
32057     "group": "Voice_Messages",
32058     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/voice/mails/messages?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/voice/mails/messages?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/voice/mails/messages?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/voice/mails/messages?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/voice/mails/messages?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
32059     "version": "0.0.0",
32060     "filename": "server/api/voiceMailMessage/index.js",
32061     "groupTitle": "Voice_Messages"
32062   },
32063   {
32064     "type": "get",
32065     "url": "/api/voice/mails/messages/{id}",
32066     "title": "Gets a single Message",
32067     "examples": [
32068       {
32069         "title": "Example usage:",
32070         "content": "curl https://{domain}/api/voice/mails/messages/{id} -v -u {name}:{password}",
32071         "type": "json"
32072       }
32073     ],
32074     "name": "ShowMessages",
32075     "group": "Voice_Messages",
32076     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32077     "version": "0.0.0",
32078     "filename": "server/api/voiceMailMessage/index.js",
32079     "groupTitle": "Voice_Messages"
32080   },
32081   {
32082     "type": "get",
32083     "url": "voice/mails/messages/{id}/download",
32084     "title": "Download Voice Message",
32085     "examples": [
32086       {
32087         "title": "Example usage:",
32088         "content": "curl https://{domain}voice/mails/messages/{id}/download -v -u {name}:{password} -X GET",
32089         "type": "json"
32090       }
32091     ],
32092     "name": "download",
32093     "group": "Voice_Messages",
32094     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32095     "version": "0.0.0",
32096     "filename": "server/api/voiceMailMessage/index.js",
32097     "groupTitle": "Voice_Messages"
32098   },
32099   {
32100     "type": "put",
32101     "url": "/api/voice/mails/messages/{id}",
32102     "title": "Update an existing Message",
32103     "examples": [
32104       {
32105         "title": "Example usage:",
32106         "content": "curl https://{domain}/api/voice/mails/messages/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
32107         "type": "json"
32108       }
32109     ],
32110     "name": "updateMessages",
32111     "group": "Voice_Messages",
32112     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32113     "version": "0.0.0",
32114     "filename": "server/api/voiceMailMessage/index.js",
32115     "groupTitle": "Voice_Messages"
32116   },
32117   {
32118     "type": "post",
32119     "url": "/api/voice/prefixes/{id}/teams",
32120     "title": "Add teams to voice prefix",
32121     "examples": [
32122       {
32123         "title": "Example usage:",
32124         "content": "curl https://{domain}/api/voice/prefixes/{id}/teams -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
32125         "type": "json"
32126       }
32127     ],
32128     "name": "AddTeams",
32129     "group": "Voice_Prefix",
32130     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32131     "version": "0.0.0",
32132     "filename": "server/api/voicePrefix/index.js",
32133     "groupTitle": "Voice_Prefix"
32134   },
32135   {
32136     "type": "get",
32137     "url": "/api/voice/prefixes/{id}/teams",
32138     "title": "Gets voice prefix team",
32139     "examples": [
32140       {
32141         "title": "Example usage:",
32142         "content": "curl https://{domain}/api/voice/prefixes/{id}/teams -v -u {name}:{password}  -X GET",
32143         "type": "json"
32144       }
32145     ],
32146     "name": "GetTeams",
32147     "group": "Voice_Prefix",
32148     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32149     "version": "0.0.0",
32150     "filename": "server/api/voicePrefix/index.js",
32151     "groupTitle": "Voice_Prefix"
32152   },
32153   {
32154     "type": "post",
32155     "url": "/api/voice/prefixes/{id}/users",
32156     "title": "Add agents to a prefix",
32157     "examples": [
32158       {
32159         "title": "Example usage:",
32160         "content": "curl https://{domain}/api/voice/prefixes/{id}/users -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
32161         "type": "json"
32162       }
32163     ],
32164     "name": "AddAgents",
32165     "group": "Voice_Prefixes",
32166     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32167     "version": "0.0.0",
32168     "filename": "server/api/voicePrefix/index.js",
32169     "groupTitle": "Voice_Prefixes"
32170   },
32171   {
32172     "type": "delete",
32173     "url": "/api/voice/prefixes/{id}",
32174     "title": "Deletes a Prefix",
32175     "examples": [
32176       {
32177         "title": "Example usage:",
32178         "content": "curl https://{domain}/api/voice/prefixes/{id} -v -u {name}:{password} -X DELETE",
32179         "type": "json"
32180       }
32181     ],
32182     "name": "DeletePrefixes",
32183     "group": "Voice_Prefixes",
32184     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32185     "version": "0.0.0",
32186     "filename": "server/api/voicePrefix/index.js",
32187     "groupTitle": "Voice_Prefixes"
32188   },
32189   {
32190     "type": "get",
32191     "url": "/api/voice/prefixes/describe",
32192     "title": "Gets table info about Prefixes",
32193     "examples": [
32194       {
32195         "title": "Example usage:",
32196         "content": "curl https://{domain}/api/voice/prefixes/describe -v -u {name}:{password}",
32197         "type": "json"
32198       }
32199     ],
32200     "name": "DescribePrefixes",
32201     "group": "Voice_Prefixes",
32202     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32203     "version": "0.0.0",
32204     "filename": "server/api/voicePrefix/index.js",
32205     "groupTitle": "Voice_Prefixes"
32206   },
32207   {
32208     "type": "get",
32209     "url": "/api/voice/prefixes/{id}/users",
32210     "title": "Gets agents from prefix",
32211     "examples": [
32212       {
32213         "title": "Example usage:",
32214         "content": "curl https://{domain}/api/voice/prefixes/{id}/users -v -u {name}:{password} -X GET",
32215         "type": "json"
32216       }
32217     ],
32218     "name": "GetAgents",
32219     "group": "Voice_Prefixes",
32220     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32221     "version": "0.0.0",
32222     "filename": "server/api/voicePrefix/index.js",
32223     "groupTitle": "Voice_Prefixes"
32224   },
32225   {
32226     "type": "get",
32227     "url": "/api/voice/prefixes",
32228     "title": "Gets a list of Prefixes",
32229     "examples": [
32230       {
32231         "title": "Example usage:",
32232         "content": "curl https://{domain}/api/voice/prefixes -v -u {name}:{password}",
32233         "type": "json"
32234       }
32235     ],
32236     "name": "GetPrefixes",
32237     "group": "Voice_Prefixes",
32238     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/voice/prefixes?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/voice/prefixes?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/voice/prefixes?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/voice/prefixes?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/voice/prefixes?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
32239     "version": "0.0.0",
32240     "filename": "server/api/voicePrefix/index.js",
32241     "groupTitle": "Voice_Prefixes"
32242   },
32243   {
32244     "type": "delete",
32245     "url": "/api/voice/prefixes/{id}/users",
32246     "title": "Removes agents from a prefix",
32247     "examples": [
32248       {
32249         "title": "Example usage:",
32250         "content": "curl https://{domain}/api/voice/prefixes/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
32251         "type": "json"
32252       }
32253     ],
32254     "name": "RemoveAgents",
32255     "group": "Voice_Prefixes",
32256     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32257     "version": "0.0.0",
32258     "filename": "server/api/voicePrefix/index.js",
32259     "groupTitle": "Voice_Prefixes"
32260   },
32261   {
32262     "type": "get",
32263     "url": "/api/voice/prefixes/{id}",
32264     "title": "Gets a single Prefix",
32265     "examples": [
32266       {
32267         "title": "Example usage:",
32268         "content": "curl https://{domain}/api/voice/prefixes/{id} -v -u {name}:{password}",
32269         "type": "json"
32270       }
32271     ],
32272     "name": "ShowPrefixes",
32273     "group": "Voice_Prefixes",
32274     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32275     "version": "0.0.0",
32276     "filename": "server/api/voicePrefix/index.js",
32277     "groupTitle": "Voice_Prefixes"
32278   },
32279   {
32280     "type": "put",
32281     "url": "/api/voice/prefixes/{id}",
32282     "title": "Update an existing prefix",
32283     "examples": [
32284       {
32285         "title": "Example usage:",
32286         "content": "curl https://{domain}/api/voice/prefixes/{id} -v -u {name}:{password} -X PUT",
32287         "type": "json"
32288       }
32289     ],
32290     "name": "Update",
32291     "group": "Voice_Prefixes",
32292     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32293     "version": "0.0.0",
32294     "filename": "server/api/voicePrefix/index.js",
32295     "groupTitle": "Voice_Prefixes"
32296   },
32297   {
32298     "type": "post",
32299     "url": "/api/voice/prefixes",
32300     "title": "Create a prefix",
32301     "examples": [
32302       {
32303         "title": "Example usage:",
32304         "content": "curl https://{domain}/api/voice/prefixes -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
32305         "type": "json"
32306       }
32307     ],
32308     "name": "create",
32309     "group": "Voice_Prefixes",
32310     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32311     "version": "0.0.0",
32312     "filename": "server/api/voicePrefix/index.js",
32313     "groupTitle": "Voice_Prefixes"
32314   },
32315   {
32316     "type": "get",
32317     "url": "/api/voice/queues/reports/describe",
32318     "title": "Gets table info about Queue Reports",
32319     "examples": [
32320       {
32321         "title": "Example usage:",
32322         "content": "curl https://{domain}/api/voice/queues/reports/describe -v -u {name}:{password}",
32323         "type": "json"
32324       }
32325     ],
32326     "name": "DescribeQueue_Reports",
32327     "group": "Voice_Queue_Reports",
32328     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32329     "version": "0.0.0",
32330     "filename": "server/api/voiceQueueReport/index.js",
32331     "groupTitle": "Voice_Queue_Reports"
32332   },
32333   {
32334     "type": "get",
32335     "url": "/api/voice/queues/reports",
32336     "title": "Gets a list of Queue Reports",
32337     "examples": [
32338       {
32339         "title": "Example usage:",
32340         "content": "curl https://{domain}/api/voice/queues/reports -v -u {name}:{password}",
32341         "type": "json"
32342       }
32343     ],
32344     "name": "GetQueue_Reports",
32345     "group": "Voice_Queue_Reports",
32346     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/voice/queues/reports?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/voice/queues/reports?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/voice/queues/reports?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/voice/queues/reports?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/voice/queues/reports?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
32347     "version": "0.0.0",
32348     "filename": "server/api/voiceQueueReport/index.js",
32349     "groupTitle": "Voice_Queue_Reports"
32350   },
32351   {
32352     "type": "get",
32353     "url": "/api/voice/queues/reports/{id}",
32354     "title": "Gets a single Queue Report",
32355     "examples": [
32356       {
32357         "title": "Example usage:",
32358         "content": "curl https://{domain}/api/voice/queues/reports/{id} -v -u {name}:{password}",
32359         "type": "json"
32360       }
32361     ],
32362     "name": "ShowQueue_Reports",
32363     "group": "Voice_Queue_Reports",
32364     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32365     "version": "0.0.0",
32366     "filename": "server/api/voiceQueueReport/index.js",
32367     "groupTitle": "Voice_Queue_Reports"
32368   },
32369   {
32370     "type": "get",
32371     "url": "/api/voice/queues/reports/index",
32372     "title": "Get Voice Queues Report",
32373     "examples": [
32374       {
32375         "title": "Example usage:",
32376         "content": "curl https://{domain}/api/voice/queues/reports/index -v -u {name}:{password} -X GET",
32377         "type": "json"
32378       }
32379     ],
32380     "name": "getVoiceQueuesReport",
32381     "group": "Voice_Queue_Reports",
32382     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32383     "version": "0.0.0",
32384     "filename": "server/api/voiceQueueReport/index.js",
32385     "groupTitle": "Voice_Queue_Reports"
32386   },
32387   {
32388     "type": "post",
32389     "url": "/api/voice/queues/{id}/users",
32390     "title": "Add agents to queue",
32391     "examples": [
32392       {
32393         "title": "Example usage:",
32394         "content": "curl https://{domain}/api/voice/queues/{id}/users -d '{\"ids\": [1,2], \"penalty\": 2}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
32395         "type": "json"
32396       }
32397     ],
32398     "name": "AddAgents",
32399     "group": "Voice_Queues",
32400     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32401     "version": "0.0.0",
32402     "filename": "server/api/voiceQueue/index.js",
32403     "groupTitle": "Voice_Queues"
32404   },
32405   {
32406     "type": "post",
32407     "url": "/api/voice/queues/{id}/blacklists",
32408     "title": "Add blacklists to a queue",
32409     "examples": [
32410       {
32411         "title": "Example usage:",
32412         "content": "curl https://{domain}/api/voice/queues/{id}/blacklists -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
32413         "type": "json"
32414       }
32415     ],
32416     "name": "AddBlackLists",
32417     "group": "Voice_Queues",
32418     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32419     "version": "0.0.0",
32420     "filename": "server/api/voiceQueue/index.js",
32421     "groupTitle": "Voice_Queues"
32422   },
32423   {
32424     "type": "post",
32425     "url": "/api/voice/queues/{id}/lists",
32426     "title": "Add lists to a queue",
32427     "examples": [
32428       {
32429         "title": "Example usage:",
32430         "content": "curl https://{domain}/api/voice/queues/{id}/lists -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
32431         "type": "json"
32432       }
32433     ],
32434     "name": "AddLists",
32435     "group": "Voice_Queues",
32436     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32437     "version": "0.0.0",
32438     "filename": "server/api/voiceQueue/index.js",
32439     "groupTitle": "Voice_Queues"
32440   },
32441   {
32442     "type": "post",
32443     "url": "/api/voice/queues/{id}/teams",
32444     "title": "Add teams to queue",
32445     "examples": [
32446       {
32447         "title": "Example usage:",
32448         "content": "curl https://{domain}/api/voice/queues/{id}/teams -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
32449         "type": "json"
32450       }
32451     ],
32452     "name": "AddTeams",
32453     "group": "Voice_Queues",
32454     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32455     "version": "0.0.0",
32456     "filename": "server/api/voiceQueue/index.js",
32457     "groupTitle": "Voice_Queues"
32458   },
32459   {
32460     "type": "post",
32461     "url": "/api/voice/queues/clone",
32462     "title": "Clone an existing Queue",
32463     "examples": [
32464       {
32465         "title": "Example usage:",
32466         "content": "curl https://{domain}/api/voice/queues/clone -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
32467         "type": "json"
32468       }
32469     ],
32470     "name": "CloneQueues",
32471     "group": "Voice_Queues",
32472     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32473     "version": "0.0.0",
32474     "filename": "server/api/voiceQueue/index.js",
32475     "groupTitle": "Voice_Queues"
32476   },
32477   {
32478     "type": "post",
32479     "url": "/api/voice/queues",
32480     "title": "Creates a new Queue",
32481     "examples": [
32482       {
32483         "title": "Example usage:",
32484         "content": "curl https://{domain}/api/voice/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
32485         "type": "json"
32486       }
32487     ],
32488     "name": "CreateQueues",
32489     "group": "Voice_Queues",
32490     "parameter": {
32491       "fields": {
32492         "Body": [
32493           {
32494             "group": "Body",
32495             "type": "String",
32496             "optional": false,
32497             "field": "name",
32498             "description": ""
32499           },
32500           {
32501             "group": "Body",
32502             "type": "String",
32503             "allowedValues": [
32504               "\"inbound\"",
32505               "\"outbound\""
32506             ],
32507             "optional": false,
32508             "field": "type",
32509             "description": ""
32510           },
32511           {
32512             "group": "Body",
32513             "type": "String",
32514             "optional": true,
32515             "field": "musiconhold",
32516             "description": ""
32517           },
32518           {
32519             "group": "Body",
32520             "type": "String",
32521             "optional": true,
32522             "field": "announce",
32523             "description": ""
32524           },
32525           {
32526             "group": "Body",
32527             "type": "String",
32528             "allowedValues": [
32529               "\"rr\"",
32530               "\"ringall\"",
32531               "\"leastrecent\"",
32532               "\"fewestcalls\"",
32533               "\"random\"",
32534               "\"rrmemory\"",
32535               "\"linear\"",
32536               "\"wrandom\"",
32537               "\"rrordered\""
32538             ],
32539             "optional": false,
32540             "field": "strategy",
32541             "description": ""
32542           },
32543           {
32544             "group": "Body",
32545             "type": "Integer",
32546             "optional": true,
32547             "field": "servicelevel",
32548             "description": ""
32549           },
32550           {
32551             "group": "Body",
32552             "type": "String",
32553             "optional": true,
32554             "field": "context",
32555             "description": ""
32556           },
32557           {
32558             "group": "Body",
32559             "type": "Integer",
32560             "optional": true,
32561             "field": "penaltymemberslimit",
32562             "description": ""
32563           },
32564           {
32565             "group": "Body",
32566             "type": "Integer",
32567             "optional": true,
32568             "field": "timeout",
32569             "description": ""
32570           },
32571           {
32572             "group": "Body",
32573             "type": "Integer",
32574             "optional": true,
32575             "field": "retry",
32576             "description": ""
32577           },
32578           {
32579             "group": "Body",
32580             "type": "String",
32581             "optional": true,
32582             "field": "timeoutpriority",
32583             "description": ""
32584           },
32585           {
32586             "group": "Body",
32587             "type": "Integer",
32588             "optional": true,
32589             "field": "weight",
32590             "description": ""
32591           },
32592           {
32593             "group": "Body",
32594             "type": "Integer",
32595             "optional": true,
32596             "field": "wrapuptime",
32597             "description": ""
32598           },
32599           {
32600             "group": "Body",
32601             "type": "String",
32602             "allowedValues": [
32603               "\"yes\"",
32604               "\"no\""
32605             ],
32606             "optional": true,
32607             "field": "autofill",
32608             "description": ""
32609           },
32610           {
32611             "group": "Body",
32612             "type": "String",
32613             "allowedValues": [
32614               "\"yes\"",
32615               "\"no\"",
32616               "\"all\""
32617             ],
32618             "optional": true,
32619             "field": "autopause",
32620             "description": ""
32621           },
32622           {
32623             "group": "Body",
32624             "type": "Integer",
32625             "optional": true,
32626             "field": "autopausedelay",
32627             "description": ""
32628           },
32629           {
32630             "group": "Body",
32631             "type": "String",
32632             "allowedValues": [
32633               "\"yes\"",
32634               "\"no\""
32635             ],
32636             "optional": true,
32637             "field": "autopausebusy",
32638             "description": ""
32639           },
32640           {
32641             "group": "Body",
32642             "type": "String",
32643             "allowedValues": [
32644               "\"yes\"",
32645               "\"no\""
32646             ],
32647             "optional": true,
32648             "field": "autopauseunavail",
32649             "description": ""
32650           },
32651           {
32652             "group": "Body",
32653             "type": "Integer",
32654             "optional": true,
32655             "field": "maxlen",
32656             "description": ""
32657           },
32658           {
32659             "group": "Body",
32660             "type": "String",
32661             "allowedValues": [
32662               "\"yes\"",
32663               "\"no\""
32664             ],
32665             "optional": true,
32666             "field": "setinterfacevar",
32667             "description": ""
32668           },
32669           {
32670             "group": "Body",
32671             "type": "String",
32672             "allowedValues": [
32673               "\"yes\"",
32674               "\"no\""
32675             ],
32676             "optional": true,
32677             "field": "setqueueentryvar",
32678             "description": ""
32679           },
32680           {
32681             "group": "Body",
32682             "type": "String",
32683             "allowedValues": [
32684               "\"yes\"",
32685               "\"no\""
32686             ],
32687             "optional": true,
32688             "field": "setqueuevar",
32689             "description": ""
32690           },
32691           {
32692             "group": "Body",
32693             "type": "String",
32694             "allowedValues": [
32695               "\"yes\"",
32696               "\"no\""
32697             ],
32698             "optional": true,
32699             "field": "eventmemberstatus",
32700             "description": ""
32701           },
32702           {
32703             "group": "Body",
32704             "type": "String",
32705             "optional": true,
32706             "field": "membermacro",
32707             "description": ""
32708           },
32709           {
32710             "group": "Body",
32711             "type": "String",
32712             "optional": true,
32713             "field": "membergosub",
32714             "description": ""
32715           },
32716           {
32717             "group": "Body",
32718             "type": "Integer",
32719             "optional": true,
32720             "field": "announce_frequency",
32721             "description": ""
32722           },
32723           {
32724             "group": "Body",
32725             "type": "Integer",
32726             "optional": true,
32727             "field": "min_announce_frequency",
32728             "description": ""
32729           },
32730           {
32731             "group": "Body",
32732             "type": "Integer",
32733             "optional": true,
32734             "field": "periodic_announce_frequency",
32735             "description": ""
32736           },
32737           {
32738             "group": "Body",
32739             "type": "String",
32740             "allowedValues": [
32741               "\"yes\"",
32742               "\"no\""
32743             ],
32744             "optional": true,
32745             "field": "random_periodic_announce",
32746             "description": ""
32747           },
32748           {
32749             "group": "Body",
32750             "type": "String",
32751             "allowedValues": [
32752               "\"yes\"",
32753               "\"no\""
32754             ],
32755             "optional": true,
32756             "field": "relative_periodic_announce",
32757             "description": ""
32758           },
32759           {
32760             "group": "Body",
32761             "type": "String",
32762             "allowedValues": [
32763               "\"yes\"",
32764               "\"no\"",
32765               "\"once\""
32766             ],
32767             "optional": true,
32768             "field": "announce_holdtime",
32769             "description": ""
32770           },
32771           {
32772             "group": "Body",
32773             "type": "String",
32774             "optional": true,
32775             "field": "announce_position",
32776             "description": ""
32777           },
32778           {
32779             "group": "Body",
32780             "type": "String",
32781             "allowedValues": [
32782               "\"yes\"",
32783               "\"no\""
32784             ],
32785             "optional": true,
32786             "field": "announce_to_first_user",
32787             "description": ""
32788           },
32789           {
32790             "group": "Body",
32791             "type": "Integer",
32792             "optional": true,
32793             "field": "announce_position_limit",
32794             "description": ""
32795           },
32796           {
32797             "group": "Body",
32798             "type": "String",
32799             "allowedValues": [
32800               "\"0\"",
32801               "\"5\"",
32802               "\"10\"",
32803               "\"15\"",
32804               "\"20\"",
32805               "\"30\""
32806             ],
32807             "optional": true,
32808             "field": "announce_round_seconds",
32809             "description": ""
32810           },
32811           {
32812             "group": "Body",
32813             "type": "String",
32814             "optional": true,
32815             "field": "monitor_format",
32816             "description": ""
32817           },
32818           {
32819             "group": "Body",
32820             "type": "String",
32821             "optional": true,
32822             "field": "monitor_type",
32823             "description": ""
32824           },
32825           {
32826             "group": "Body",
32827             "type": "String",
32828             "optional": true,
32829             "field": "queue_youarenext",
32830             "description": ""
32831           },
32832           {
32833             "group": "Body",
32834             "type": "String",
32835             "optional": true,
32836             "field": "queue_thereare",
32837             "description": ""
32838           },
32839           {
32840             "group": "Body",
32841             "type": "String",
32842             "optional": true,
32843             "field": "queue_callswaiting",
32844             "description": ""
32845           },
32846           {
32847             "group": "Body",
32848             "type": "String",
32849             "optional": true,
32850             "field": "queue_holdtime",
32851             "description": ""
32852           },
32853           {
32854             "group": "Body",
32855             "type": "String",
32856             "optional": true,
32857             "field": "queue_minute",
32858             "description": ""
32859           },
32860           {
32861             "group": "Body",
32862             "type": "String",
32863             "optional": true,
32864             "field": "queue_minutes",
32865             "description": ""
32866           },
32867           {
32868             "group": "Body",
32869             "type": "String",
32870             "optional": true,
32871             "field": "queue_seconds",
32872             "description": ""
32873           },
32874           {
32875             "group": "Body",
32876             "type": "String",
32877             "optional": true,
32878             "field": "queue_thankyou",
32879             "description": ""
32880           },
32881           {
32882             "group": "Body",
32883             "type": "String",
32884             "optional": true,
32885             "field": "queue_reporthold",
32886             "description": ""
32887           },
32888           {
32889             "group": "Body",
32890             "type": "String",
32891             "optional": true,
32892             "field": "queue_quantity1",
32893             "description": ""
32894           },
32895           {
32896             "group": "Body",
32897             "type": "String",
32898             "optional": true,
32899             "field": "queue_quantity2",
32900             "description": ""
32901           },
32902           {
32903             "group": "Body",
32904             "type": "String",
32905             "optional": true,
32906             "field": "queue_periodic_announce",
32907             "description": ""
32908           },
32909           {
32910             "group": "Body",
32911             "type": "String",
32912             "optional": true,
32913             "field": "queue_less_than",
32914             "description": ""
32915           },
32916           {
32917             "group": "Body",
32918             "type": "Text",
32919             "optional": true,
32920             "field": "periodic_announce",
32921             "description": ""
32922           },
32923           {
32924             "group": "Body",
32925             "type": "String",
32926             "optional": true,
32927             "field": "joinempty",
32928             "description": ""
32929           },
32930           {
32931             "group": "Body",
32932             "type": "String",
32933             "optional": true,
32934             "field": "leavewhenempty",
32935             "description": ""
32936           },
32937           {
32938             "group": "Body",
32939             "type": "String",
32940             "allowedValues": [
32941               "\"yes\"",
32942               "\"no\""
32943             ],
32944             "optional": true,
32945             "field": "reportholdtime",
32946             "description": ""
32947           },
32948           {
32949             "group": "Body",
32950             "type": "String",
32951             "allowedValues": [
32952               "\"yes\"",
32953               "\"no\""
32954             ],
32955             "optional": true,
32956             "field": "ringinuse",
32957             "description": ""
32958           },
32959           {
32960             "group": "Body",
32961             "type": "Integer",
32962             "optional": true,
32963             "field": "memberdelay",
32964             "description": ""
32965           },
32966           {
32967             "group": "Body",
32968             "type": "String",
32969             "allowedValues": [
32970               "\"yes\"",
32971               "\"no\""
32972             ],
32973             "optional": true,
32974             "field": "timeoutrestart",
32975             "description": ""
32976           },
32977           {
32978             "group": "Body",
32979             "type": "String",
32980             "optional": true,
32981             "field": "defaultrule",
32982             "description": ""
32983           },
32984           {
32985             "group": "Body",
32986             "type": "String",
32987             "optional": true,
32988             "field": "description",
32989             "description": ""
32990           },
32991           {
32992             "group": "Body",
32993             "type": "Boolean",
32994             "optional": true,
32995             "field": "acw",
32996             "description": ""
32997           },
32998           {
32999             "group": "Body",
33000             "type": "Integer",
33001             "optional": true,
33002             "field": "acwTimeout",
33003             "description": ""
33004           },
33005           {
33006             "group": "Body",
33007             "type": "Boolean",
33008             "optional": true,
33009             "field": "dialActive",
33010             "description": "<p>Active/Disactive Campaign</p>"
33011           },
33012           {
33013             "group": "Body",
33014             "type": "String",
33015             "allowedValues": [
33016               "\"preview\"",
33017               "\"progressive\"",
33018               "\"power\"",
33019               "\"predictive\"",
33020               "\"booked\""
33021             ],
33022             "optional": true,
33023             "field": "dialMethod",
33024             "description": "<p>Dial Method.</p>"
33025           },
33026           {
33027             "group": "Body",
33028             "type": "Integer",
33029             "optional": true,
33030             "field": "dialLimitChannel",
33031             "description": "<p>Max 9999 channels, 0 means unlimited.</p>"
33032           },
33033           {
33034             "group": "Body",
33035             "type": "Integer",
33036             "optional": true,
33037             "field": "dialLimitQueue",
33038             "description": "<p>Max 9999 member in queue(min:1, max:9999), 0 means unlimited.</p>"
33039           },
33040           {
33041             "group": "Body",
33042             "type": "Float",
33043             "optional": true,
33044             "field": "dialPowerLevel",
33045             "description": "<p>Power Level: Calls for agents (min:1, max:10).</p>"
33046           },
33047           {
33048             "group": "Body",
33049             "type": "String",
33050             "allowedValues": [
33051               "\"agentBusyFactor\"",
33052               "\"dropRate\""
33053             ],
33054             "optional": true,
33055             "field": "dialPredictiveOptimization",
33056             "description": "<p>Only for predictive method.</p>"
33057           },
33058           {
33059             "group": "Body",
33060             "type": "Float",
33061             "optional": true,
33062             "field": "dialPredictiveOptimizationPercentage",
33063             "description": "<p>Predictive Optimization Percentage (min: 1, max: 95)</p>"
33064           },
33065           {
33066             "group": "Body",
33067             "type": "Integer",
33068             "optional": true,
33069             "field": "dialPredictiveInterval",
33070             "description": "<p>Interval Predictive Minutes (min:5 max:30)</p>"
33071           },
33072           {
33073             "group": "Body",
33074             "type": "String",
33075             "optional": true,
33076             "field": "dialOriginateCallerIdName",
33077             "description": ""
33078           },
33079           {
33080             "group": "Body",
33081             "type": "String",
33082             "optional": true,
33083             "field": "dialOriginateCallerIdNumber",
33084             "description": ""
33085           },
33086           {
33087             "group": "Body",
33088             "type": "Integer",
33089             "optional": true,
33090             "field": "dialOriginateTimeout",
33091             "description": "<p>Originate Timeout Seconds (min:1, max:999)</p>"
33092           },
33093           {
33094             "group": "Body",
33095             "type": "String",
33096             "optional": true,
33097             "field": "dialQueueOptions",
33098             "description": "<p>https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_Queue</p>"
33099           },
33100           {
33101             "group": "Body",
33102             "type": "Integer",
33103             "optional": true,
33104             "field": "dialQueueTimeout",
33105             "description": "<p>Queue Timeout Seconds (min:1, max:999)</p>"
33106           },
33107           {
33108             "group": "Body",
33109             "type": "String",
33110             "optional": true,
33111             "field": "dialQueueProject",
33112             "description": "<p>AGI queue option (use: agi://127.0.0.1/square,&lt;project_name&gt;)</p>"
33113           },
33114           {
33115             "group": "Body",
33116             "type": "Integer",
33117             "optional": true,
33118             "field": "dialCongestionMaxRetry",
33119             "description": "<p>#Congestion Retry (min:1, max:999)</p>"
33120           },
33121           {
33122             "group": "Body",
33123             "type": "Integer",
33124             "optional": true,
33125             "field": "dialCongestionRetryFrequency",
33126             "description": "<p>Congestion Retry Frequency Minutes (min:1, max:99999)</p>"
33127           },
33128           {
33129             "group": "Body",
33130             "type": "Integer",
33131             "optional": true,
33132             "field": "dialBusyMaxRetry",
33133             "description": "<p>#Busy Retry (min:1, max:999)</p>"
33134           },
33135           {
33136             "group": "Body",
33137             "type": "Integer",
33138             "optional": true,
33139             "field": "dialBusyRetryFrequency",
33140             "description": "<p>Busy Retry Frequency Minutes (min:1, max:99999)</p>"
33141           },
33142           {
33143             "group": "Body",
33144             "type": "Integer",
33145             "optional": true,
33146             "field": "dialNoAnswerMaxRetry",
33147             "description": "<p>#NoAnswer Retry (min:1, max:999)</p>"
33148           },
33149           {
33150             "group": "Body",
33151             "type": "Integer",
33152             "optional": true,
33153             "field": "dialNoAnswerRetryFrequency",
33154             "description": "<p>NoAnswer Retry Frequency Minutes (min:1, max:99999)</p>"
33155           },
33156           {
33157             "group": "Body",
33158             "type": "Integer",
33159             "optional": true,
33160             "field": "dialGlobalMaxRetry",
33161             "description": "<p>#Global Max Retry (min:1, max:999)</p>"
33162           },
33163           {
33164             "group": "Body",
33165             "type": "String",
33166             "optional": true,
33167             "field": "dialTimezone",
33168             "description": ""
33169           },
33170           {
33171             "group": "Body",
33172             "type": "String",
33173             "optional": true,
33174             "field": "dialGlobalInterval",
33175             "description": ""
33176           },
33177           {
33178             "group": "Body",
33179             "type": "String",
33180             "optional": true,
33181             "field": "dialPrefix",
33182             "description": ""
33183           },
33184           {
33185             "group": "Body",
33186             "type": "String",
33187             "allowedValues": [
33188               "\"always\"",
33189               "\"never\"",
33190               "\"onlyIfOpen\""
33191             ],
33192             "optional": true,
33193             "field": "dialCheckDuplicateType",
33194             "description": ""
33195           },
33196           {
33197             "group": "Body",
33198             "type": "Boolean",
33199             "optional": true,
33200             "field": "dialAMDActive",
33201             "description": "<p>Active/Disactive AMD</p>"
33202           },
33203           {
33204             "group": "Body",
33205             "type": "Integer",
33206             "optional": true,
33207             "field": "dialAMDInitialSilence",
33208             "description": "<p>#AMD Initial Silence</p>"
33209           },
33210           {
33211             "group": "Body",
33212             "type": "Integer",
33213             "optional": true,
33214             "field": "dialAMDGreeting",
33215             "description": "<p>#AMD Greeting</p>"
33216           },
33217           {
33218             "group": "Body",
33219             "type": "Integer",
33220             "optional": true,
33221             "field": "dialAMDAfterGreetingSilence",
33222             "description": "<p>#AMD After Greeting Silence</p>"
33223           },
33224           {
33225             "group": "Body",
33226             "type": "Integer",
33227             "optional": true,
33228             "field": "dialAMDTotalAnalysisTime",
33229             "description": "<p>#AMD Total Analysis Time</p>"
33230           },
33231           {
33232             "group": "Body",
33233             "type": "Integer",
33234             "optional": true,
33235             "field": "dialAMDMinWordLength",
33236             "description": "<p>#AMD Min Word Length</p>"
33237           },
33238           {
33239             "group": "Body",
33240             "type": "Integer",
33241             "optional": true,
33242             "field": "dialAMDBetweenWordsSilence",
33243             "description": "<p>#AMD Between Words Silence</p>"
33244           },
33245           {
33246             "group": "Body",
33247             "type": "Integer",
33248             "optional": true,
33249             "field": "dialAMDMaximumNumberOfWords",
33250             "description": "<p>#AMD Maximum Number Of Words</p>"
33251           },
33252           {
33253             "group": "Body",
33254             "type": "Integer",
33255             "optional": true,
33256             "field": "dialAMDSilenceThreshold",
33257             "description": "<p>#AMD Silence Threshold (min:0, max:32767)</p>"
33258           },
33259           {
33260             "group": "Body",
33261             "type": "Integer",
33262             "optional": true,
33263             "field": "dialAMDMaximumWordLength",
33264             "description": "<p>#AMD Maximum Word Length</p>"
33265           },
33266           {
33267             "group": "Body",
33268             "type": "Integer",
33269             "optional": true,
33270             "field": "dialRecallMeTimeout",
33271             "description": "<p>#RecallMe Timeout (min:1)</p>"
33272           },
33273           {
33274             "group": "Body",
33275             "type": "Boolean",
33276             "optional": true,
33277             "field": "dialRecallInQueue",
33278             "description": "<p>Active/Disactive Recall In Queue</p>"
33279           },
33280           {
33281             "group": "Body",
33282             "type": "String",
33283             "allowedValues": [
33284               "\"DESC\"",
33285               "\"ASC\""
33286             ],
33287             "optional": true,
33288             "field": "dialOrderByScheduledAt",
33289             "description": ""
33290           },
33291           {
33292             "group": "Body",
33293             "type": "String",
33294             "optional": true,
33295             "field": "dialQueueProject2",
33296             "description": "<p>AGI queue option (use: agi://127.0.0.1/square,&lt;project_name&gt;)</p>"
33297           },
33298           {
33299             "group": "Body",
33300             "type": "Boolean",
33301             "optional": true,
33302             "field": "dialAgiAfterHangupClient",
33303             "description": ""
33304           },
33305           {
33306             "group": "Body",
33307             "type": "Boolean",
33308             "optional": true,
33309             "field": "dialAgiAfterHangupAgent",
33310             "description": ""
33311           },
33312           {
33313             "group": "Body",
33314             "type": "Integer",
33315             "optional": true,
33316             "field": "dialRandomLastDigitCallerIdNumber",
33317             "description": "<p>Random Last Digit (min:1, max:15)</p>"
33318           },
33319           {
33320             "group": "Body",
33321             "type": "Integer",
33322             "optional": true,
33323             "field": "dialCutDigit",
33324             "description": "<p>Cut Digit (min:1, max:15)</p>"
33325           },
33326           {
33327             "group": "Body",
33328             "type": "Integer",
33329             "optional": true,
33330             "field": "dialNoSuchNumberMaxRetry",
33331             "description": "<p>#NoSuchNumber Retry (min:1, max:999)</p>"
33332           },
33333           {
33334             "group": "Body",
33335             "type": "Integer",
33336             "optional": true,
33337             "field": "dialNoSuchNumberRetryFrequency",
33338             "description": "<p>NoSuchNumber Retry Frequency Minutes (min:1, max:99999)</p>"
33339           },
33340           {
33341             "group": "Body",
33342             "type": "Integer",
33343             "optional": true,
33344             "field": "dialDropMaxRetry",
33345             "description": "<p>#Drop Retry (min:1, max:999)</p>"
33346           },
33347           {
33348             "group": "Body",
33349             "type": "Integer",
33350             "optional": true,
33351             "field": "dialDropRetryFrequency",
33352             "description": "<p>Drop Retry Frequency Minutes (min:1, max:99999)</p>"
33353           },
33354           {
33355             "group": "Body",
33356             "type": "Integer",
33357             "optional": true,
33358             "field": "dialAbandonedMaxRetry",
33359             "description": "<p>#Abandoned Retry (min:1, max:999)</p>"
33360           },
33361           {
33362             "group": "Body",
33363             "type": "Integer",
33364             "optional": true,
33365             "field": "dialAbandonedRetryFrequency",
33366             "description": "<p>Abandoned Retry Frequency Minutes (min:1, max:99999)</p>"
33367           },
33368           {
33369             "group": "Body",
33370             "type": "Integer",
33371             "optional": true,
33372             "field": "dialMachineMaxRetry",
33373             "description": "<p>#Machine Retry (min:1, max:999)</p>"
33374           },
33375           {
33376             "group": "Body",
33377             "type": "Integer",
33378             "optional": true,
33379             "field": "dialMachineRetryFrequency",
33380             "description": "<p>Machine Retry Frequency Minutes (min:1, max:99999)</p>"
33381           },
33382           {
33383             "group": "Body",
33384             "type": "Integer",
33385             "optional": true,
33386             "field": "dialAgentRejectMaxRetry",
33387             "description": "<p>#AgentReject Retry (min:1, max:999)</p>"
33388           },
33389           {
33390             "group": "Body",
33391             "type": "Integer",
33392             "optional": true,
33393             "field": "dialAgentRejectRetryFrequency",
33394             "description": "<p>AgentReject Retry Frequency Minutes (min:1, max:99999)</p>"
33395           },
33396           {
33397             "group": "Body",
33398             "type": "Integer",
33399             "optional": true,
33400             "field": "mandatoryDispositionPauseId",
33401             "description": "<p>Status to put when mandatory disposition is enabled</p>"
33402           },
33403           {
33404             "group": "Body",
33405             "type": "Boolean",
33406             "optional": true,
33407             "field": "mandatoryDisposition",
33408             "description": "<p>Enabled/disables mandatory dispo on a queue</p>"
33409           },
33410           {
33411             "group": "Body",
33412             "type": "Integer",
33413             "optional": true,
33414             "field": "dialPredictiveIntervalMaxThreshold",
33415             "description": ""
33416           },
33417           {
33418             "group": "Body",
33419             "type": "Integer",
33420             "optional": true,
33421             "field": "dialPredictiveIntervalMinThreshold",
33422             "description": ""
33423           },
33424           {
33425             "group": "Body",
33426             "type": "Boolean",
33427             "optional": true,
33428             "field": "dialPreviewAutoRecallMe",
33429             "description": ""
33430           }
33431         ]
33432       }
33433     },
33434     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33435     "version": "0.0.0",
33436     "filename": "server/api/voiceQueue/index.js",
33437     "groupTitle": "Voice_Queues"
33438   },
33439   {
33440     "type": "delete",
33441     "url": "/api/voice/queues/{id}",
33442     "title": "Deletes a Queue",
33443     "examples": [
33444       {
33445         "title": "Example usage:",
33446         "content": "curl https://{domain}/api/voice/queues/{id} -v -u {name}:{password} -X DELETE",
33447         "type": "json"
33448       }
33449     ],
33450     "name": "DeleteQueues",
33451     "group": "Voice_Queues",
33452     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33453     "version": "0.0.0",
33454     "filename": "server/api/voiceQueue/index.js",
33455     "groupTitle": "Voice_Queues"
33456   },
33457   {
33458     "type": "get",
33459     "url": "/api/voice/queues/{id}/users",
33460     "title": "Gets queue agents",
33461     "examples": [
33462       {
33463         "title": "Example usage:",
33464         "content": "curl https://{domain}/api/voice/queues/{id}/users -v -u {name}:{password} -X GET",
33465         "type": "json"
33466       }
33467     ],
33468     "name": "GetAgents",
33469     "group": "Voice_Queues",
33470     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33471     "version": "0.0.0",
33472     "filename": "server/api/voiceQueue/index.js",
33473     "groupTitle": "Voice_Queues"
33474   },
33475   {
33476     "type": "get",
33477     "url": "/api/voice/queues/{id}/blacklists",
33478     "title": "Get queue blacklists",
33479     "examples": [
33480       {
33481         "title": "Example usage:",
33482         "content": "curl https://{domain}/api/voice/queues/{id}/blacklists -v -u {name}:{password} -X GET",
33483         "type": "json"
33484       }
33485     ],
33486     "name": "GetBlackLists",
33487     "group": "Voice_Queues",
33488     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33489     "version": "0.0.0",
33490     "filename": "server/api/voiceQueue/index.js",
33491     "groupTitle": "Voice_Queues"
33492   },
33493   {
33494     "type": "get",
33495     "url": "/api/voice/queues/{id}/finals",
33496     "title": "Gets queue hopper finals",
33497     "examples": [
33498       {
33499         "title": "Example usage:",
33500         "content": "curl https://{domain}/api/voice/queues/{id}/hopper_finals -v -u {name}:{password}  -X GET",
33501         "type": "json"
33502       }
33503     ],
33504     "name": "GetHopperFinals",
33505     "group": "Voice_Queues",
33506     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33507     "version": "0.0.0",
33508     "filename": "server/api/voiceQueue/index.js",
33509     "groupTitle": "Voice_Queues"
33510   },
33511   {
33512     "type": "get",
33513     "url": "/api/voice/queues/{id}/hopper_histories",
33514     "title": "Gets queue hopper histories",
33515     "examples": [
33516       {
33517         "title": "Example usage:",
33518         "content": "curl https://{domain}/api/voice/queues/{id}/hopper_histories -v -u {name}:{password} -X GET",
33519         "type": "json"
33520       }
33521     ],
33522     "name": "GetHopperHistories",
33523     "group": "Voice_Queues",
33524     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33525     "version": "0.0.0",
33526     "filename": "server/api/voiceQueue/index.js",
33527     "groupTitle": "Voice_Queues"
33528   },
33529   {
33530     "type": "get",
33531     "url": "/api/voice/queues/{id}/hoppers",
33532     "title": "Gets queue hoppers",
33533     "examples": [
33534       {
33535         "title": "Example usage:",
33536         "content": "curl https://{domain}/api/voice/queues/{id}/hoppers -v -u {name}:{password} -X GET",
33537         "type": "json"
33538       }
33539     ],
33540     "name": "GetHoppers",
33541     "group": "Voice_Queues",
33542     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33543     "version": "0.0.0",
33544     "filename": "server/api/voiceQueue/index.js",
33545     "groupTitle": "Voice_Queues"
33546   },
33547   {
33548     "type": "get",
33549     "url": "/api/voice/queues/{id}/lists",
33550     "title": "Get queue lists",
33551     "examples": [
33552       {
33553         "title": "Example usage:",
33554         "content": "curl https://{domain}/api/voice/queues/{id}/lists -v -u {name}:{password} -X GET",
33555         "type": "json"
33556       }
33557     ],
33558     "name": "GetLists",
33559     "group": "Voice_Queues",
33560     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33561     "version": "0.0.0",
33562     "filename": "server/api/voiceQueue/index.js",
33563     "groupTitle": "Voice_Queues"
33564   },
33565   {
33566     "type": "get",
33567     "url": "/api/voice/queues/{id}/members",
33568     "title": "Gets queue members",
33569     "examples": [
33570       {
33571         "title": "Example usage:",
33572         "content": "curl https://{domain}/api/voice/queues/{id}/members -v -u {name}:{password} -X GET",
33573         "type": "json"
33574       }
33575     ],
33576     "name": "GetMembers",
33577     "group": "Voice_Queues",
33578     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33579     "version": "0.0.0",
33580     "filename": "server/api/voiceQueue/index.js",
33581     "groupTitle": "Voice_Queues"
33582   },
33583   {
33584     "type": "get",
33585     "url": "/api/voice/queues",
33586     "title": "Gets a list of Queues",
33587     "examples": [
33588       {
33589         "title": "Example usage:",
33590         "content": "curl https://{domain}/api/voice/queues -v -u {name}:{password}",
33591         "type": "json"
33592       }
33593     ],
33594     "name": "GetQueues",
33595     "group": "Voice_Queues",
33596     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/voice/queues?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/voice/queues?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/voice/queues?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/voice/queues?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/voice/queues?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
33597     "version": "0.0.0",
33598     "filename": "server/api/voiceQueue/index.js",
33599     "groupTitle": "Voice_Queues"
33600   },
33601   {
33602     "type": "get",
33603     "url": "/api/voice/queues/{id}/teams",
33604     "title": "Gets queue team",
33605     "examples": [
33606       {
33607         "title": "Example usage:",
33608         "content": "curl https://{domain}/api/voice/queues/{id}/teams -v -u {name}:{password}  -X GET",
33609         "type": "json"
33610       }
33611     ],
33612     "name": "GetTeams",
33613     "group": "Voice_Queues",
33614     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33615     "version": "0.0.0",
33616     "filename": "server/api/voiceQueue/index.js",
33617     "groupTitle": "Voice_Queues"
33618   },
33619   {
33620     "type": "delete",
33621     "url": "/api/voice/queues/{id}/users",
33622     "title": "Removes agents from a queue",
33623     "examples": [
33624       {
33625         "title": "Example usage:",
33626         "content": "curl https://{domain}/api/voice/queues/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
33627         "type": "json"
33628       }
33629     ],
33630     "name": "RemoveAgents",
33631     "group": "Voice_Queues",
33632     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33633     "version": "0.0.0",
33634     "filename": "server/api/voiceQueue/index.js",
33635     "groupTitle": "Voice_Queues"
33636   },
33637   {
33638     "type": "delete",
33639     "url": "/api/voice/queues/{id}/blacklists",
33640     "title": "Remove blacklists from a queue",
33641     "examples": [
33642       {
33643         "title": "Example usage:",
33644         "content": "curl https://{domain}/api/voice/queues/{id}/blacklists?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
33645         "type": "json"
33646       }
33647     ],
33648     "name": "RemoveBlackLists",
33649     "group": "Voice_Queues",
33650     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33651     "version": "0.0.0",
33652     "filename": "server/api/voiceQueue/index.js",
33653     "groupTitle": "Voice_Queues"
33654   },
33655   {
33656     "type": "delete",
33657     "url": "/api/voice/queues/{id}/lists",
33658     "title": "Remove lists from a queue",
33659     "examples": [
33660       {
33661         "title": "Example usage:",
33662         "content": "curl https://{domain}/api/voice/queues/{id}/lists?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
33663         "type": "json"
33664       }
33665     ],
33666     "name": "RemoveLists",
33667     "group": "Voice_Queues",
33668     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33669     "version": "0.0.0",
33670     "filename": "server/api/voiceQueue/index.js",
33671     "groupTitle": "Voice_Queues"
33672   },
33673   {
33674     "type": "get",
33675     "url": "/api/voice/queues/{id}",
33676     "title": "Gets a single Queue",
33677     "examples": [
33678       {
33679         "title": "Example usage:",
33680         "content": "curl https://{domain}/api/voice/queues/{id} -v -u {name}:{password}",
33681         "type": "json"
33682       }
33683     ],
33684     "name": "ShowQueues",
33685     "group": "Voice_Queues",
33686     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33687     "version": "0.0.0",
33688     "filename": "server/api/voiceQueue/index.js",
33689     "groupTitle": "Voice_Queues"
33690   },
33691   {
33692     "type": "get",
33693     "url": "/api/voice/queues/{id}/blacks",
33694     "title": "Gets queue hopper blacks",
33695     "examples": [
33696       {
33697         "title": "Example usage:",
33698         "content": "curl https://{domain}/api/voice/queues/{id}/hopper_black -v -u {name}:{password}  -X GET",
33699         "type": "json"
33700       }
33701     ],
33702     "name": "getHopperBlacks",
33703     "group": "Voice_Queues",
33704     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33705     "version": "0.0.0",
33706     "filename": "server/api/voiceQueue/index.js",
33707     "groupTitle": "Voice_Queues"
33708   },
33709   {
33710     "type": "put",
33711     "url": "/api/voice/queues/{id}",
33712     "title": "Update an existing Queue",
33713     "examples": [
33714       {
33715         "title": "Example usage:",
33716         "content": "curl https://{domain}/api/voice/queues/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
33717         "type": "json"
33718       }
33719     ],
33720     "name": "updateQueues",
33721     "group": "Voice_Queues",
33722     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33723     "version": "0.0.0",
33724     "filename": "server/api/voiceQueue/index.js",
33725     "groupTitle": "Voice_Queues"
33726   },
33727   {
33728     "type": "post",
33729     "url": "/api/voice/recordings",
33730     "title": "Creates a new Recording",
33731     "examples": [
33732       {
33733         "title": "Example usage:",
33734         "content": "curl https://{domain}/api/voice/recordings -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
33735         "type": "json"
33736       }
33737     ],
33738     "name": "CreateRecordings",
33739     "group": "Voice_Recordings",
33740     "parameter": {
33741       "fields": {
33742         "Body": [
33743           {
33744             "group": "Body",
33745             "type": "Virtual",
33746             "optional": true,
33747             "field": "format",
33748             "description": ""
33749           },
33750           {
33751             "group": "Body",
33752             "type": "String",
33753             "optional": true,
33754             "field": "uniqueid",
33755             "description": ""
33756           },
33757           {
33758             "group": "Body",
33759             "type": "String",
33760             "optional": true,
33761             "field": "channel",
33762             "description": ""
33763           },
33764           {
33765             "group": "Body",
33766             "type": "String",
33767             "optional": true,
33768             "field": "membername",
33769             "description": ""
33770           },
33771           {
33772             "group": "Body",
33773             "type": "String",
33774             "optional": true,
33775             "field": "calleridnum",
33776             "description": ""
33777           },
33778           {
33779             "group": "Body",
33780             "type": "String",
33781             "optional": true,
33782             "field": "calleridname",
33783             "description": ""
33784           },
33785           {
33786             "group": "Body",
33787             "type": "String",
33788             "optional": true,
33789             "field": "connectedlinenum",
33790             "description": ""
33791           },
33792           {
33793             "group": "Body",
33794             "type": "String",
33795             "optional": true,
33796             "field": "connectedlinename",
33797             "description": ""
33798           },
33799           {
33800             "group": "Body",
33801             "type": "String",
33802             "optional": true,
33803             "field": "accountcode",
33804             "description": ""
33805           },
33806           {
33807             "group": "Body",
33808             "type": "String",
33809             "optional": true,
33810             "field": "context",
33811             "description": ""
33812           },
33813           {
33814             "group": "Body",
33815             "type": "String",
33816             "optional": true,
33817             "field": "exten",
33818             "description": ""
33819           },
33820           {
33821             "group": "Body",
33822             "type": "String",
33823             "optional": true,
33824             "field": "value",
33825             "description": ""
33826           },
33827           {
33828             "group": "Body",
33829             "type": "String",
33830             "optional": true,
33831             "field": "type",
33832             "description": ""
33833           },
33834           {
33835             "group": "Body",
33836             "type": "Integer",
33837             "optional": true,
33838             "field": "rating",
33839             "description": ""
33840           },
33841           {
33842             "group": "Body",
33843             "type": "String",
33844             "optional": true,
33845             "field": "queue",
33846             "description": ""
33847           },
33848           {
33849             "group": "Body",
33850             "type": "String",
33851             "optional": true,
33852             "field": "userDisposition",
33853             "description": ""
33854           },
33855           {
33856             "group": "Body",
33857             "type": "String",
33858             "optional": true,
33859             "field": "userSecondDisposition",
33860             "description": ""
33861           },
33862           {
33863             "group": "Body",
33864             "type": "String",
33865             "optional": true,
33866             "field": "userThirdDisposition",
33867             "description": ""
33868           },
33869           {
33870             "group": "Body",
33871             "type": "Text",
33872             "optional": true,
33873             "field": "location",
33874             "description": ""
33875           },
33876           {
33877             "group": "Body",
33878             "type": "String",
33879             "optional": true,
33880             "field": "transcribeName",
33881             "description": ""
33882           },
33883           {
33884             "group": "Body",
33885             "type": "String",
33886             "optional": true,
33887             "field": "transcribeStatus",
33888             "description": ""
33889           },
33890           {
33891             "group": "Body",
33892             "type": "Text",
33893             "optional": true,
33894             "field": "fileUri",
33895             "description": ""
33896           },
33897           {
33898             "group": "Body",
33899             "type": "Text",
33900             "optional": true,
33901             "field": "fileText",
33902             "description": ""
33903           },
33904           {
33905             "group": "Body",
33906             "type": "Text",
33907             "optional": true,
33908             "field": "failureReason",
33909             "description": ""
33910           },
33911           {
33912             "group": "Body",
33913             "type": "String",
33914             "optional": true,
33915             "field": "sentiment",
33916             "description": ""
33917           },
33918           {
33919             "group": "Body",
33920             "type": "Float",
33921             "optional": true,
33922             "field": "sPositive",
33923             "description": ""
33924           },
33925           {
33926             "group": "Body",
33927             "type": "Float",
33928             "optional": true,
33929             "field": "sNegative",
33930             "description": ""
33931           },
33932           {
33933             "group": "Body",
33934             "type": "Float",
33935             "optional": true,
33936             "field": "sNeutral",
33937             "description": ""
33938           },
33939           {
33940             "group": "Body",
33941             "type": "Float",
33942             "optional": true,
33943             "field": "sMixed",
33944             "description": ""
33945           },
33946           {
33947             "group": "Body",
33948             "type": "Boolean",
33949             "optional": true,
33950             "field": "tempSentiment",
33951             "description": ""
33952           },
33953           {
33954             "group": "Body",
33955             "type": "String",
33956             "optional": true,
33957             "field": "createdAt",
33958             "description": ""
33959           },
33960           {
33961             "group": "Body",
33962             "type": "String",
33963             "optional": true,
33964             "field": "updatedAt",
33965             "description": ""
33966           }
33967         ]
33968       }
33969     },
33970     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33971     "version": "0.0.0",
33972     "filename": "server/api/voiceRecording/index.js",
33973     "groupTitle": "Voice_Recordings"
33974   },
33975   {
33976     "type": "get",
33977     "url": "/api/voice/recordings/describe",
33978     "title": "Gets table info about Recordings",
33979     "examples": [
33980       {
33981         "title": "Example usage:",
33982         "content": "curl https://{domain}/api/voice/recordings/describe -v -u {name}:{password}",
33983         "type": "json"
33984       }
33985     ],
33986     "name": "DescribeRecordings",
33987     "group": "Voice_Recordings",
33988     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33989     "version": "0.0.0",
33990     "filename": "server/api/voiceRecording/index.js",
33991     "groupTitle": "Voice_Recordings"
33992   },
33993   {
33994     "type": "get",
33995     "url": "/api/voice/recordings",
33996     "title": "Gets a list of Recordings",
33997     "examples": [
33998       {
33999         "title": "Example usage:",
34000         "content": "curl https://{domain}/api/voice/recordings -v -u {name}:{password}",
34001         "type": "json"
34002       }
34003     ],
34004     "name": "GetRecordings",
34005     "group": "Voice_Recordings",
34006     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/voice/recordings?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/voice/recordings?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/voice/recordings?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/voice/recordings?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/voice/recordings?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
34007     "version": "0.0.0",
34008     "filename": "server/api/voiceRecording/index.js",
34009     "groupTitle": "Voice_Recordings"
34010   },
34011   {
34012     "type": "get",
34013     "url": "/api/voice/recordings/{id}",
34014     "title": "Gets a single Recording",
34015     "examples": [
34016       {
34017         "title": "Example usage:",
34018         "content": "curl https://{domain}/api/voice/recordings/{id} -v -u {name}:{password}",
34019         "type": "json"
34020       }
34021     ],
34022     "name": "ShowRecordings",
34023     "group": "Voice_Recordings",
34024     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34025     "version": "0.0.0",
34026     "filename": "server/api/voiceRecording/index.js",
34027     "groupTitle": "Voice_Recordings"
34028   },
34029   {
34030     "type": "delete",
34031     "url": "/api/voice/recordings/{id}",
34032     "title": "Delete voice recording",
34033     "examples": [
34034       {
34035         "title": "Example usage:",
34036         "content": "curl https://{domain}/api/voice/recordings/{id} -v -u {name}:{password} -X DELETE",
34037         "type": "json"
34038       }
34039     ],
34040     "name": "destroy",
34041     "group": "Voice_Recordings",
34042     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34043     "version": "0.0.0",
34044     "filename": "server/api/voiceRecording/index.js",
34045     "groupTitle": "Voice_Recordings"
34046   },
34047   {
34048     "type": "get",
34049     "url": "/api/voice/recordings/{id}/download",
34050     "title": "Download Recording",
34051     "examples": [
34052       {
34053         "title": "Example usage:",
34054         "content": "curl https://{domain}/api/voice/recordings/{id}/download -v -u {name}:{password} -X GET",
34055         "type": "json"
34056       }
34057     ],
34058     "name": "download",
34059     "group": "Voice_Recordings",
34060     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34061     "version": "0.0.0",
34062     "filename": "server/api/voiceRecording/index.js",
34063     "groupTitle": "Voice_Recordings"
34064   },
34065   {
34066     "type": "get",
34067     "url": "/api/voice/recordings/{id}/downloads",
34068     "title": "Download Recording",
34069     "examples": [
34070       {
34071         "title": "Example usage:",
34072         "content": "curl https://{domain}/api/voice/recordings/{id}/downloads -v -u {name}:{password} -X GET",
34073         "type": "json"
34074       }
34075     ],
34076     "name": "downloads",
34077     "group": "Voice_Recordings",
34078     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34079     "version": "0.0.0",
34080     "filename": "server/api/voiceRecording/index.js",
34081     "groupTitle": "Voice_Recordings"
34082   },
34083   {
34084     "type": "get",
34085     "url": "/api/voice/recordings/{id}/transcribe",
34086     "title": "Run Transcribe Recording",
34087     "examples": [
34088       {
34089         "title": "Example usage:",
34090         "content": "curl https://{domain}/api/voice/recordings/{id}/transcribe -v -u {name}:{password} -X GET",
34091         "type": "json"
34092       }
34093     ],
34094     "name": "transcribe",
34095     "group": "Voice_Recordings",
34096     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34097     "version": "0.0.0",
34098     "filename": "server/api/voiceRecording/index.js",
34099     "groupTitle": "Voice_Recordings"
34100   },
34101   {
34102     "type": "post",
34103     "url": "/api/voice/recordings/{id}/transcribe",
34104     "title": "Run Transcribe Recording",
34105     "examples": [
34106       {
34107         "title": "Example usage:",
34108         "content": "curl https://{domain}/api/voice/recordings/{id}/transcribe -d '{\"runSentiment\": \"true\"}' -v -u {name}:{password} -X POST",
34109         "type": "json"
34110       }
34111     ],
34112     "name": "transcribe",
34113     "group": "Voice_Recordings",
34114     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34115     "version": "0.0.0",
34116     "filename": "server/api/voiceRecording/index.js",
34117     "groupTitle": "Voice_Recordings"
34118   },
34119   {
34120     "type": "put",
34121     "url": "/api/voice/recordings/{id}",
34122     "title": "Update an existing Recording",
34123     "examples": [
34124       {
34125         "title": "Example usage:",
34126         "content": "curl https://{domain}/api/voice/recordings/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
34127         "type": "json"
34128       }
34129     ],
34130     "name": "updateRecordings",
34131     "group": "Voice_Recordings",
34132     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34133     "version": "0.0.0",
34134     "filename": "server/api/voiceRecording/index.js",
34135     "groupTitle": "Voice_Recordings"
34136   },
34137   {
34138     "type": "post",
34139     "url": "/api/voice/transfers/reports",
34140     "title": "Creates a new Transfer Report",
34141     "examples": [
34142       {
34143         "title": "Example usage:",
34144         "content": "curl https://{domain}/api/voice/transfers/reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
34145         "type": "json"
34146       }
34147     ],
34148     "name": "CreateTransfer_Reports",
34149     "group": "Voice_Transfer_Reports",
34150     "parameter": {
34151       "fields": {
34152         "Body": [
34153           {
34154             "group": "Body",
34155             "type": "String",
34156             "allowedValues": [
34157               "\"blind\"",
34158               "\"attended\""
34159             ],
34160             "optional": true,
34161             "field": "type",
34162             "description": ""
34163           },
34164           {
34165             "group": "Body",
34166             "type": "String",
34167             "optional": true,
34168             "field": "result",
34169             "description": ""
34170           },
34171           {
34172             "group": "Body",
34173             "type": "String",
34174             "optional": true,
34175             "field": "transfererchannel",
34176             "description": ""
34177           },
34178           {
34179             "group": "Body",
34180             "type": "String",
34181             "optional": true,
34182             "field": "transferercalleridnum",
34183             "description": ""
34184           },
34185           {
34186             "group": "Body",
34187             "type": "String",
34188             "optional": true,
34189             "field": "transferercalleridname",
34190             "description": ""
34191           },
34192           {
34193             "group": "Body",
34194             "type": "String",
34195             "optional": true,
34196             "field": "transfererconnectedlinenum",
34197             "description": ""
34198           },
34199           {
34200             "group": "Body",
34201             "type": "String",
34202             "optional": true,
34203             "field": "transfererconnectedlinename",
34204             "description": ""
34205           },
34206           {
34207             "group": "Body",
34208             "type": "String",
34209             "optional": true,
34210             "field": "transfereraccountcode",
34211             "description": ""
34212           },
34213           {
34214             "group": "Body",
34215             "type": "String",
34216             "optional": true,
34217             "field": "transferercontext",
34218             "description": ""
34219           },
34220           {
34221             "group": "Body",
34222             "type": "String",
34223             "optional": true,
34224             "field": "transfererexten",
34225             "description": ""
34226           },
34227           {
34228             "group": "Body",
34229             "type": "String",
34230             "optional": true,
34231             "field": "transfererlinkedid",
34232             "description": ""
34233           },
34234           {
34235             "group": "Body",
34236             "type": "String",
34237             "optional": true,
34238             "field": "transfereechannel",
34239             "description": ""
34240           },
34241           {
34242             "group": "Body",
34243             "type": "String",
34244             "optional": true,
34245             "field": "transfereecalleridnum",
34246             "description": ""
34247           },
34248           {
34249             "group": "Body",
34250             "type": "String",
34251             "optional": true,
34252             "field": "transfereecalleridname",
34253             "description": ""
34254           },
34255           {
34256             "group": "Body",
34257             "type": "String",
34258             "optional": true,
34259             "field": "transfereeconnectedlinenum",
34260             "description": ""
34261           },
34262           {
34263             "group": "Body",
34264             "type": "String",
34265             "optional": true,
34266             "field": "transfereeconnectedlinename",
34267             "description": ""
34268           },
34269           {
34270             "group": "Body",
34271             "type": "String",
34272             "optional": true,
34273             "field": "transfereeaccountcode",
34274             "description": ""
34275           },
34276           {
34277             "group": "Body",
34278             "type": "String",
34279             "optional": true,
34280             "field": "transfereecontext",
34281             "description": ""
34282           },
34283           {
34284             "group": "Body",
34285             "type": "String",
34286             "optional": true,
34287             "field": "transfereeexten",
34288             "description": ""
34289           },
34290           {
34291             "group": "Body",
34292             "type": "String",
34293             "optional": true,
34294             "field": "transfereelinkedid",
34295             "description": ""
34296           },
34297           {
34298             "group": "Body",
34299             "type": "String",
34300             "allowedValues": [
34301               "\"Yes\"",
34302               "\"No\""
34303             ],
34304             "optional": true,
34305             "field": "isexternal",
34306             "description": ""
34307           },
34308           {
34309             "group": "Body",
34310             "type": "String",
34311             "optional": true,
34312             "field": "context",
34313             "description": ""
34314           },
34315           {
34316             "group": "Body",
34317             "type": "String",
34318             "optional": true,
34319             "field": "extension",
34320             "description": ""
34321           }
34322         ]
34323       }
34324     },
34325     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34326     "version": "0.0.0",
34327     "filename": "server/api/voiceTransferReport/index.js",
34328     "groupTitle": "Voice_Transfer_Reports"
34329   },
34330   {
34331     "type": "delete",
34332     "url": "/api/voice/transfers/reports/{id}",
34333     "title": "Deletes a Transfer Report",
34334     "examples": [
34335       {
34336         "title": "Example usage:",
34337         "content": "curl https://{domain}/api/voice/transfers/reports/{id} -v -u {name}:{password} -X DELETE",
34338         "type": "json"
34339       }
34340     ],
34341     "name": "DeleteTransfer_Reports",
34342     "group": "Voice_Transfer_Reports",
34343     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34344     "version": "0.0.0",
34345     "filename": "server/api/voiceTransferReport/index.js",
34346     "groupTitle": "Voice_Transfer_Reports"
34347   },
34348   {
34349     "type": "get",
34350     "url": "/api/voice/transfers/reports/describe",
34351     "title": "Gets table info about Transfer Reports",
34352     "examples": [
34353       {
34354         "title": "Example usage:",
34355         "content": "curl https://{domain}/api/voice/transfers/reports/describe -v -u {name}:{password}",
34356         "type": "json"
34357       }
34358     ],
34359     "name": "DescribeTransfer_Reports",
34360     "group": "Voice_Transfer_Reports",
34361     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34362     "version": "0.0.0",
34363     "filename": "server/api/voiceTransferReport/index.js",
34364     "groupTitle": "Voice_Transfer_Reports"
34365   },
34366   {
34367     "type": "get",
34368     "url": "/api/voice/transfers/reports",
34369     "title": "Gets a list of Transfer Reports",
34370     "examples": [
34371       {
34372         "title": "Example usage:",
34373         "content": "curl https://{domain}/api/voice/transfers/reports -v -u {name}:{password}",
34374         "type": "json"
34375       }
34376     ],
34377     "name": "GetTransfer_Reports",
34378     "group": "Voice_Transfer_Reports",
34379     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/voice/transfers/reports?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/voice/transfers/reports?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/voice/transfers/reports?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/voice/transfers/reports?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/voice/transfers/reports?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
34380     "version": "0.0.0",
34381     "filename": "server/api/voiceTransferReport/index.js",
34382     "groupTitle": "Voice_Transfer_Reports"
34383   },
34384   {
34385     "type": "get",
34386     "url": "/api/voice/transfers/reports/{id}",
34387     "title": "Gets a single Transfer Report",
34388     "examples": [
34389       {
34390         "title": "Example usage:",
34391         "content": "curl https://{domain}/api/voice/transfers/reports/{id} -v -u {name}:{password}",
34392         "type": "json"
34393       }
34394     ],
34395     "name": "ShowTransfer_Reports",
34396     "group": "Voice_Transfer_Reports",
34397     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34398     "version": "0.0.0",
34399     "filename": "server/api/voiceTransferReport/index.js",
34400     "groupTitle": "Voice_Transfer_Reports"
34401   },
34402   {
34403     "type": "put",
34404     "url": "/api/voice/transfers/reports/{id}",
34405     "title": "Update an existing Transfer Report",
34406     "examples": [
34407       {
34408         "title": "Example usage:",
34409         "content": "curl https://{domain}/api/voice/transfers/reports/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
34410         "type": "json"
34411       }
34412     ],
34413     "name": "updateTransfer_Reports",
34414     "group": "Voice_Transfer_Reports",
34415     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34416     "version": "0.0.0",
34417     "filename": "server/api/voiceTransferReport/index.js",
34418     "groupTitle": "Voice_Transfer_Reports"
34419   },
34420   {
34421     "type": "post",
34422     "url": "/api/integrations/vtiger/accounts",
34423     "title": "Creates a new Vtiger Account",
34424     "examples": [
34425       {
34426         "title": "Example usage:",
34427         "content": "curl https://{domain}/api/integrations/vtiger/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
34428         "type": "json"
34429       }
34430     ],
34431     "name": "CreateVtiger_Accounts",
34432     "group": "Vtiger_Accounts",
34433     "parameter": {
34434       "fields": {
34435         "Body": [
34436           {
34437             "group": "Body",
34438             "type": "String",
34439             "optional": false,
34440             "field": "name",
34441             "description": ""
34442           },
34443           {
34444             "group": "Body",
34445             "type": "String",
34446             "optional": true,
34447             "field": "description",
34448             "description": ""
34449           },
34450           {
34451             "group": "Body",
34452             "type": "String",
34453             "optional": false,
34454             "field": "username",
34455             "description": ""
34456           },
34457           {
34458             "group": "Body",
34459             "type": "String",
34460             "optional": false,
34461             "field": "moduleName",
34462             "description": ""
34463           },
34464           {
34465             "group": "Body",
34466             "type": "String",
34467             "optional": false,
34468             "field": "remoteUri",
34469             "description": ""
34470           },
34471           {
34472             "group": "Body",
34473             "type": "String",
34474             "optional": false,
34475             "field": "serverUrl",
34476             "description": ""
34477           },
34478           {
34479             "group": "Body",
34480             "type": "String",
34481             "optional": false,
34482             "field": "accessKey",
34483             "description": ""
34484           }
34485         ]
34486       }
34487     },
34488     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34489     "version": "0.0.0",
34490     "filename": "server/api/intVtigerAccount/index.js",
34491     "groupTitle": "Vtiger_Accounts"
34492   },
34493   {
34494     "type": "delete",
34495     "url": "/api/integrations/vtiger/accounts/{id}",
34496     "title": "Deletes a Vtiger Account",
34497     "examples": [
34498       {
34499         "title": "Example usage:",
34500         "content": "curl https://{domain}/api/integrations/vtiger/accounts/{id} -v -u {name}:{password} -X DELETE",
34501         "type": "json"
34502       }
34503     ],
34504     "name": "DeleteVtiger_Accounts",
34505     "group": "Vtiger_Accounts",
34506     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34507     "version": "0.0.0",
34508     "filename": "server/api/intVtigerAccount/index.js",
34509     "groupTitle": "Vtiger_Accounts"
34510   },
34511   {
34512     "type": "get",
34513     "url": "/api/integrations/vtiger/accounts",
34514     "title": "Gets a list of Vtiger Accounts",
34515     "examples": [
34516       {
34517         "title": "Example usage:",
34518         "content": "curl https://{domain}/api/integrations/vtiger/accounts -v -u {name}:{password}",
34519         "type": "json"
34520       }
34521     ],
34522     "name": "GetVtiger_Accounts",
34523     "group": "Vtiger_Accounts",
34524     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/integrations/vtiger/accounts?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/integrations/vtiger/accounts?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/integrations/vtiger/accounts?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/integrations/vtiger/accounts?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/integrations/vtiger/accounts?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
34525     "version": "0.0.0",
34526     "filename": "server/api/intVtigerAccount/index.js",
34527     "groupTitle": "Vtiger_Accounts"
34528   },
34529   {
34530     "type": "get",
34531     "url": "/api/integrations/vtiger/accounts/{id}",
34532     "title": "Gets a single Vtiger Account",
34533     "examples": [
34534       {
34535         "title": "Example usage:",
34536         "content": "curl https://{domain}/api/integrations/vtiger/accounts/{id} -v -u {name}:{password}",
34537         "type": "json"
34538       }
34539     ],
34540     "name": "ShowVtiger_Accounts",
34541     "group": "Vtiger_Accounts",
34542     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34543     "version": "0.0.0",
34544     "filename": "server/api/intVtigerAccount/index.js",
34545     "groupTitle": "Vtiger_Accounts"
34546   },
34547   {
34548     "type": "post",
34549     "url": "/api/integrations/vtiger/accounts/{id}/configurations",
34550     "title": "Creates new configuration",
34551     "examples": [
34552       {
34553         "title": "Example usage:",
34554         "content": "curl https://{domain}/api/integrations/vtiger/accounts/{id}/configurations -d '{\"name\": \"conf1\"}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
34555         "type": "json"
34556       }
34557     ],
34558     "name": "addConfiguration",
34559     "group": "Vtiger_Accounts",
34560     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34561     "version": "0.0.0",
34562     "filename": "server/api/intVtigerAccount/index.js",
34563     "groupTitle": "Vtiger_Accounts"
34564   },
34565   {
34566     "type": "get",
34567     "url": "/api/integrations/vtiger/accounts/{id}/configurations",
34568     "title": "Gets account configurations",
34569     "examples": [
34570       {
34571         "title": "Example usage:",
34572         "content": "curl https://{domain}/api/integrations/vtiger/accounts/{id}/configurations -v -u {name}:{password} -X GET",
34573         "type": "json"
34574       }
34575     ],
34576     "name": "getConfigurations",
34577     "group": "Vtiger_Accounts",
34578     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34579     "version": "0.0.0",
34580     "filename": "server/api/intVtigerAccount/index.js",
34581     "groupTitle": "Vtiger_Accounts"
34582   },
34583   {
34584     "type": "get",
34585     "url": "/api/integrations/vtiger/accounts/{id}/fields",
34586     "title": "Gets account fields",
34587     "examples": [
34588       {
34589         "title": "Example usage:",
34590         "content": "curl https://{domain}/api/integrations/vtiger/accounts/{id}/fields -v -u {name}:{password} -X GET",
34591         "type": "json"
34592       }
34593     ],
34594     "name": "getFields",
34595     "group": "Vtiger_Accounts",
34596     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34597     "version": "0.0.0",
34598     "filename": "server/api/intVtigerAccount/index.js",
34599     "groupTitle": "Vtiger_Accounts"
34600   },
34601   {
34602     "type": "put",
34603     "url": "/api/integrations/vtiger/accounts/{id}",
34604     "title": "Update an existing Vtiger Account",
34605     "examples": [
34606       {
34607         "title": "Example usage:",
34608         "content": "curl https://{domain}/api/integrations/vtiger/accounts/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
34609         "type": "json"
34610       }
34611     ],
34612     "name": "updateVtiger_Accounts",
34613     "group": "Vtiger_Accounts",
34614     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34615     "version": "0.0.0",
34616     "filename": "server/api/intVtigerAccount/index.js",
34617     "groupTitle": "Vtiger_Accounts"
34618   },
34619   {
34620     "type": "post",
34621     "url": "/api/integrations/vtiger/configurations",
34622     "title": "Creates a new Vtiger Configuration",
34623     "examples": [
34624       {
34625         "title": "Example usage:",
34626         "content": "curl https://{domain}/api/integrations/vtiger/configurations -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
34627         "type": "json"
34628       }
34629     ],
34630     "name": "CreateVtiger_Configurations",
34631     "group": "Vtiger_Configurations",
34632     "parameter": {
34633       "fields": {
34634         "Body": [
34635           {
34636             "group": "Body",
34637             "type": "String",
34638             "optional": true,
34639             "field": "name",
34640             "description": ""
34641           },
34642           {
34643             "group": "Body",
34644             "type": "String",
34645             "optional": true,
34646             "field": "description",
34647             "description": ""
34648           }
34649         ]
34650       }
34651     },
34652     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34653     "version": "0.0.0",
34654     "filename": "server/api/intVtigerConfiguration/index.js",
34655     "groupTitle": "Vtiger_Configurations"
34656   },
34657   {
34658     "type": "delete",
34659     "url": "/api/integrations/vtiger/configurations/{id}",
34660     "title": "Deletes a Vtiger Configuration",
34661     "examples": [
34662       {
34663         "title": "Example usage:",
34664         "content": "curl https://{domain}/api/integrations/vtiger/configurations/{id} -v -u {name}:{password} -X DELETE",
34665         "type": "json"
34666       }
34667     ],
34668     "name": "DeleteVtiger_Configurations",
34669     "group": "Vtiger_Configurations",
34670     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34671     "version": "0.0.0",
34672     "filename": "server/api/intVtigerConfiguration/index.js",
34673     "groupTitle": "Vtiger_Configurations"
34674   },
34675   {
34676     "type": "get",
34677     "url": "/api/integrations/vtiger/configurations",
34678     "title": "Gets a list of Vtiger Configurations",
34679     "examples": [
34680       {
34681         "title": "Example usage:",
34682         "content": "curl https://{domain}/api/integrations/vtiger/configurations -v -u {name}:{password}",
34683         "type": "json"
34684       }
34685     ],
34686     "name": "GetVtiger_Configurations",
34687     "group": "Vtiger_Configurations",
34688     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/integrations/vtiger/configurations?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/integrations/vtiger/configurations?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/integrations/vtiger/configurations?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/integrations/vtiger/configurations?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/integrations/vtiger/configurations?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
34689     "version": "0.0.0",
34690     "filename": "server/api/intVtigerConfiguration/index.js",
34691     "groupTitle": "Vtiger_Configurations"
34692   },
34693   {
34694     "type": "get",
34695     "url": "/api/integrations/vtiger/configurations/{id}",
34696     "title": "Gets a single Vtiger Configuration",
34697     "examples": [
34698       {
34699         "title": "Example usage:",
34700         "content": "curl https://{domain}/api/integrations/vtiger/configurations/{id} -v -u {name}:{password}",
34701         "type": "json"
34702       }
34703     ],
34704     "name": "ShowVtiger_Configurations",
34705     "group": "Vtiger_Configurations",
34706     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34707     "version": "0.0.0",
34708     "filename": "server/api/intVtigerConfiguration/index.js",
34709     "groupTitle": "Vtiger_Configurations"
34710   },
34711   {
34712     "type": "get",
34713     "url": "/api/integrations/vtiger/configurations/{id}/descriptions",
34714     "title": "Gets configurations descriptions",
34715     "examples": [
34716       {
34717         "title": "Example usage:",
34718         "content": "curl https://{domain}/api/integrations/vtiger/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
34719         "type": "json"
34720       }
34721     ],
34722     "name": "getDescriptions",
34723     "group": "Vtiger_Configurations",
34724     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34725     "version": "0.0.0",
34726     "filename": "server/api/intVtigerConfiguration/index.js",
34727     "groupTitle": "Vtiger_Configurations"
34728   },
34729   {
34730     "type": "get",
34731     "url": "/api/integrations/vtiger/configurations/{id}/fields",
34732     "title": "Gets configurations fields",
34733     "examples": [
34734       {
34735         "title": "Example usage:",
34736         "content": "curl https://{domain}/api/integrations/vtiger/configurations/{id}/fields -v -u {name}:{password} -X GET",
34737         "type": "json"
34738       }
34739     ],
34740     "name": "getFields",
34741     "group": "Vtiger_Configurations",
34742     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34743     "version": "0.0.0",
34744     "filename": "server/api/intVtigerConfiguration/index.js",
34745     "groupTitle": "Vtiger_Configurations"
34746   },
34747   {
34748     "type": "get",
34749     "url": "/api/integrations/vtiger/configurations/{id}/subjects",
34750     "title": "Gets configurations subjects",
34751     "examples": [
34752       {
34753         "title": "Example usage:",
34754         "content": "curl https://{domain}/api/integrations/vtiger/configurations/{id}/subjects -v -u {name}:{password} -X GET",
34755         "type": "json"
34756       }
34757     ],
34758     "name": "getSubjects",
34759     "group": "Vtiger_Configurations",
34760     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34761     "version": "0.0.0",
34762     "filename": "server/api/intVtigerConfiguration/index.js",
34763     "groupTitle": "Vtiger_Configurations"
34764   },
34765   {
34766     "type": "put",
34767     "url": "/api/integrations/vtiger/configurations/{id}",
34768     "title": "Update an existing Vtiger Configuration",
34769     "examples": [
34770       {
34771         "title": "Example usage:",
34772         "content": "curl https://{domain}/api/integrations/vtiger/configurations/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
34773         "type": "json"
34774       }
34775     ],
34776     "name": "updateVtiger_Configurations",
34777     "group": "Vtiger_Configurations",
34778     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34779     "version": "0.0.0",
34780     "filename": "server/api/intVtigerConfiguration/index.js",
34781     "groupTitle": "Vtiger_Configurations"
34782   },
34783   {
34784     "type": "post",
34785     "url": "/api/integrations/vtiger/fields",
34786     "title": "Creates a new Vtiger Field",
34787     "examples": [
34788       {
34789         "title": "Example usage:",
34790         "content": "curl https://{domain}/api/integrations/vtiger/fields -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
34791         "type": "json"
34792       }
34793     ],
34794     "name": "CreateVtiger_Fields",
34795     "group": "Vtiger_Fields",
34796     "parameter": {
34797       "fields": {
34798         "Body": [
34799           {
34800             "group": "Body",
34801             "type": "String",
34802             "allowedValues": [
34803               "\"string\"",
34804               "\"variable\"",
34805               "\"customVariable\"",
34806               "\"keyValue\"",
34807               "\"picklist\""
34808             ],
34809             "optional": true,
34810             "field": "type",
34811             "description": ""
34812           },
34813           {
34814             "group": "Body",
34815             "type": "String",
34816             "optional": true,
34817             "field": "content",
34818             "description": ""
34819           },
34820           {
34821             "group": "Body",
34822             "type": "String",
34823             "optional": true,
34824             "field": "key",
34825             "description": ""
34826           },
34827           {
34828             "group": "Body",
34829             "type": "String",
34830             "allowedValues": [
34831               "\"string\"",
34832               "\"variable\"",
34833               "\"customVariable\""
34834             ],
34835             "optional": true,
34836             "field": "keyType",
34837             "description": ""
34838           },
34839           {
34840             "group": "Body",
34841             "type": "String",
34842             "optional": true,
34843             "field": "keyContent",
34844             "description": ""
34845           },
34846           {
34847             "group": "Body",
34848             "type": "String",
34849             "optional": true,
34850             "field": "idField",
34851             "description": ""
34852           },
34853           {
34854             "group": "Body",
34855             "type": "String",
34856             "optional": true,
34857             "field": "nameField",
34858             "description": ""
34859           },
34860           {
34861             "group": "Body",
34862             "type": "Boolean",
34863             "optional": true,
34864             "field": "customField",
34865             "description": ""
34866           },
34867           {
34868             "group": "Body",
34869             "type": "String",
34870             "optional": true,
34871             "field": "variableName",
34872             "description": ""
34873           }
34874         ]
34875       }
34876     },
34877     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34878     "version": "0.0.0",
34879     "filename": "server/api/intVtigerField/index.js",
34880     "groupTitle": "Vtiger_Fields"
34881   },
34882   {
34883     "type": "delete",
34884     "url": "/api/integrations/vtiger/fields/{id}",
34885     "title": "Deletes a Vtiger Field",
34886     "examples": [
34887       {
34888         "title": "Example usage:",
34889         "content": "curl https://{domain}/api/integrations/vtiger/fields/{id} -v -u {name}:{password} -X DELETE",
34890         "type": "json"
34891       }
34892     ],
34893     "name": "DeleteVtiger_Fields",
34894     "group": "Vtiger_Fields",
34895     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34896     "version": "0.0.0",
34897     "filename": "server/api/intVtigerField/index.js",
34898     "groupTitle": "Vtiger_Fields"
34899   },
34900   {
34901     "type": "get",
34902     "url": "/api/integrations/vtiger/fields",
34903     "title": "Gets a list of Vtiger Fields",
34904     "examples": [
34905       {
34906         "title": "Example usage:",
34907         "content": "curl https://{domain}/api/integrations/vtiger/fields -v -u {name}:{password}",
34908         "type": "json"
34909       }
34910     ],
34911     "name": "GetVtiger_Fields",
34912     "group": "Vtiger_Fields",
34913     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/integrations/vtiger/fields?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/integrations/vtiger/fields?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/integrations/vtiger/fields?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/integrations/vtiger/fields?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/integrations/vtiger/fields?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
34914     "version": "0.0.0",
34915     "filename": "server/api/intVtigerField/index.js",
34916     "groupTitle": "Vtiger_Fields"
34917   },
34918   {
34919     "type": "get",
34920     "url": "/api/integrations/vtiger/fields/{id}",
34921     "title": "Gets a single Vtiger Field",
34922     "examples": [
34923       {
34924         "title": "Example usage:",
34925         "content": "curl https://{domain}/api/integrations/vtiger/fields/{id} -v -u {name}:{password}",
34926         "type": "json"
34927       }
34928     ],
34929     "name": "ShowVtiger_Fields",
34930     "group": "Vtiger_Fields",
34931     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34932     "version": "0.0.0",
34933     "filename": "server/api/intVtigerField/index.js",
34934     "groupTitle": "Vtiger_Fields"
34935   },
34936   {
34937     "type": "put",
34938     "url": "/api/integrations/vtiger/fields/{id}",
34939     "title": "Update an existing Vtiger Field",
34940     "examples": [
34941       {
34942         "title": "Example usage:",
34943         "content": "curl https://{domain}/api/integrations/vtiger/fields/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
34944         "type": "json"
34945       }
34946     ],
34947     "name": "updateVtiger_Fields",
34948     "group": "Vtiger_Fields",
34949     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34950     "version": "0.0.0",
34951     "filename": "server/api/intVtigerField/index.js",
34952     "groupTitle": "Vtiger_Fields"
34953   },
34954   {
34955     "type": "post",
34956     "url": "/api/webbar/answer",
34957     "title": "answer webrtc call",
34958     "examples": [
34959       {
34960         "title": "Example usage:",
34961         "content": "curl https://{domain}/api/webbar/answer -d '{\"sessionId\": \"<sessionId>\", \"userId\": 54}' \\\n -H \"Content-Type: application/json\" -X POST",
34962         "type": "json"
34963       }
34964     ],
34965     "name": "Web_Bar_answer",
34966     "group": "WebBar",
34967     "parameter": {
34968       "fields": {
34969         "Body": [
34970           {
34971             "group": "Body",
34972             "type": "String",
34973             "optional": false,
34974             "field": "sessionId",
34975             "description": ""
34976           },
34977           {
34978             "group": "Body",
34979             "type": "number",
34980             "optional": false,
34981             "field": "userId",
34982             "description": ""
34983           }
34984         ]
34985       }
34986     },
34987     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34988     "version": "0.0.0",
34989     "filename": "server/api/webbar/index.js",
34990     "groupTitle": "WebBar"
34991   },
34992   {
34993     "type": "post",
34994     "url": "/api/webbar/calls",
34995     "title": "webrtc call list",
34996     "examples": [
34997       {
34998         "title": "Example usage:",
34999         "content": "curl https://{domain}/api/webbar/calls -d '{\"userId\": 54}' \\\n -H \"Content-Type: application/json\" -X POST",
35000         "type": "json"
35001       }
35002     ],
35003     "name": "Web_Bar_calls",
35004     "group": "WebBar",
35005     "parameter": {
35006       "fields": {
35007         "Body": [
35008           {
35009             "group": "Body",
35010             "type": "number",
35011             "optional": false,
35012             "field": "userId",
35013             "description": ""
35014           }
35015         ]
35016       }
35017     },
35018     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35019     "version": "0.0.0",
35020     "filename": "server/api/webbar/index.js",
35021     "groupTitle": "WebBar"
35022   },
35023   {
35024     "type": "post",
35025     "url": "/api/webbar/hangup",
35026     "title": "hangup webrtc call",
35027     "examples": [
35028       {
35029         "title": "Example usage:",
35030         "content": "curl https://{domain}/api/webbar/hangup -d '{\"sessionId\": \"<sessionId>\", \"userId\": 54}' \\\n -H \"Content-Type: application/json\" -X POST",
35031         "type": "json"
35032       }
35033     ],
35034     "name": "Web_Bar_hangup",
35035     "group": "WebBar",
35036     "parameter": {
35037       "fields": {
35038         "Body": [
35039           {
35040             "group": "Body",
35041             "type": "String",
35042             "optional": false,
35043             "field": "sessionId",
35044             "description": ""
35045           },
35046           {
35047             "group": "Body",
35048             "type": "number",
35049             "optional": false,
35050             "field": "userId",
35051             "description": ""
35052           }
35053         ]
35054       }
35055     },
35056     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35057     "version": "0.0.0",
35058     "filename": "server/api/webbar/index.js",
35059     "groupTitle": "WebBar"
35060   },
35061   {
35062     "type": "post",
35063     "url": "/api/webbar/hold",
35064     "title": "hold webrtc call",
35065     "examples": [
35066       {
35067         "title": "Example usage:",
35068         "content": "curl https://{domain}/api/webbar/hold -d '{\"sessionId\": \"<sessionId>\", \"userId\": 54}' \\\n -H \"Content-Type: application/json\" -X POST",
35069         "type": "json"
35070       }
35071     ],
35072     "name": "Web_Bar_hold",
35073     "group": "WebBar",
35074     "parameter": {
35075       "fields": {
35076         "Body": [
35077           {
35078             "group": "Body",
35079             "type": "String",
35080             "optional": true,
35081             "field": "sessionId",
35082             "description": ""
35083           },
35084           {
35085             "group": "Body",
35086             "type": "number",
35087             "optional": false,
35088             "field": "userId",
35089             "description": ""
35090           }
35091         ]
35092       }
35093     },
35094     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35095     "version": "0.0.0",
35096     "filename": "server/api/webbar/index.js",
35097     "groupTitle": "WebBar"
35098   },
35099   {
35100     "type": "post",
35101     "url": "/api/webbar/unhold",
35102     "title": "unhold webrtc call",
35103     "examples": [
35104       {
35105         "title": "Example usage:",
35106         "content": "curl https://{domain}/api/webbar/unhold -d '{\"sessionId\": \"<sessionId>\", \"userId\": 54}' \\\n -H \"Content-Type: application/json\" -X POST",
35107         "type": "json"
35108       }
35109     ],
35110     "name": "Web_Bar_hold",
35111     "group": "WebBar",
35112     "parameter": {
35113       "fields": {
35114         "Body": [
35115           {
35116             "group": "Body",
35117             "type": "String",
35118             "optional": false,
35119             "field": "sessionId",
35120             "description": ""
35121           },
35122           {
35123             "group": "Body",
35124             "type": "number",
35125             "optional": false,
35126             "field": "userId",
35127             "description": ""
35128           }
35129         ]
35130       }
35131     },
35132     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35133     "version": "0.0.0",
35134     "filename": "server/api/webbar/index.js",
35135     "groupTitle": "WebBar"
35136   },
35137   {
35138     "type": "post",
35139     "url": "/api/webbar/originate",
35140     "title": "Originate new webrtc call",
35141     "examples": [
35142       {
35143         "title": "Example usage:",
35144         "content": "curl https://{domain}/api/webbar/originate -d '{\"callNumber\": \"0119692844\", \"userId\": 54}' \\\n -H \"Content-Type: application/json\" -X POST",
35145         "type": "json"
35146       }
35147     ],
35148     "name": "Web_Bar_originate",
35149     "group": "WebBar",
35150     "parameter": {
35151       "fields": {
35152         "Body": [
35153           {
35154             "group": "Body",
35155             "type": "String",
35156             "optional": false,
35157             "field": "callNumber",
35158             "description": ""
35159           },
35160           {
35161             "group": "Body",
35162             "type": "number",
35163             "optional": false,
35164             "field": "userId",
35165             "description": ""
35166           },
35167           {
35168             "group": "Body",
35169             "type": "String",
35170             "optional": false,
35171             "field": "callerId",
35172             "description": ""
35173           },
35174           {
35175             "group": "Body",
35176             "type": "String",
35177             "optional": false,
35178             "field": "callbackUrl",
35179             "description": ""
35180           }
35181         ]
35182       }
35183     },
35184     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35185     "version": "0.0.0",
35186     "filename": "server/api/webbar/index.js",
35187     "groupTitle": "WebBar"
35188   },
35189   {
35190     "type": "post",
35191     "url": "/api/webbar/transfer",
35192     "title": "blind transfer webrtc call",
35193     "examples": [
35194       {
35195         "title": "Example usage:",
35196         "content": "curl https://{domain}/api/webbar/transfer -d '{\"userId\": 54, \"sessionId\":\"<sessionId>\", \"transferNumber\":\"<transferNumber>\"}' \\\n -H \"Content-Type: application/json\" -X POST",
35197         "type": "json"
35198       }
35199     ],
35200     "name": "Web_Bar_transfer",
35201     "group": "WebBar",
35202     "parameter": {
35203       "fields": {
35204         "Body": [
35205           {
35206             "group": "Body",
35207             "type": "number",
35208             "optional": false,
35209             "field": "userId",
35210             "description": ""
35211           },
35212           {
35213             "group": "Body",
35214             "type": "string",
35215             "optional": false,
35216             "field": "sessionId",
35217             "description": ""
35218           },
35219           {
35220             "group": "Body",
35221             "type": "string",
35222             "optional": false,
35223             "field": "transferNumber",
35224             "description": ""
35225           }
35226         ]
35227       }
35228     },
35229     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35230     "version": "0.0.0",
35231     "filename": "server/api/webbar/index.js",
35232     "groupTitle": "WebBar"
35233   },
35234   {
35235     "type": "post",
35236     "url": "/api/whatsapp/accounts/{id}/users",
35237     "title": "Add agents to a whatsapp account",
35238     "examples": [
35239       {
35240         "title": "Example usage:",
35241         "content": "curl https://{domain}/api/whatsapp/accounts/{id}/users -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
35242         "type": "json"
35243       }
35244     ],
35245     "name": "AddAgents",
35246     "group": "Whatsapp_Accounts",
35247     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35248     "version": "0.0.0",
35249     "filename": "server/api/whatsappAccount/index.js",
35250     "groupTitle": "Whatsapp_Accounts"
35251   },
35252   {
35253     "type": "post",
35254     "url": "/api/whatsapp/accounts",
35255     "title": "Creates a new Account",
35256     "examples": [
35257       {
35258         "title": "Example usage:",
35259         "content": "curl https://{domain}/api/whatsapp/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
35260         "type": "json"
35261       }
35262     ],
35263     "name": "CreateAccounts",
35264     "group": "Whatsapp_Accounts",
35265     "parameter": {
35266       "fields": {
35267         "Body": [
35268           {
35269             "group": "Body",
35270             "type": "String",
35271             "optional": false,
35272             "field": "name",
35273             "description": ""
35274           },
35275           {
35276             "group": "Body",
35277             "type": "String",
35278             "optional": false,
35279             "field": "key",
35280             "description": ""
35281           },
35282           {
35283             "group": "Body",
35284             "type": "String",
35285             "optional": false,
35286             "field": "remote",
35287             "description": ""
35288           },
35289           {
35290             "group": "Body",
35291             "type": "String",
35292             "optional": true,
35293             "field": "token",
35294             "description": ""
35295           },
35296           {
35297             "group": "Body",
35298             "type": "String",
35299             "optional": true,
35300             "field": "phone",
35301             "description": ""
35302           },
35303           {
35304             "group": "Body",
35305             "type": "String",
35306             "allowedValues": [
35307               "\"twilio\""
35308             ],
35309             "optional": true,
35310             "field": "type",
35311             "description": ""
35312           },
35313           {
35314             "group": "Body",
35315             "type": "String",
35316             "optional": true,
35317             "field": "accountSid",
35318             "description": ""
35319           },
35320           {
35321             "group": "Body",
35322             "type": "String",
35323             "optional": true,
35324             "field": "authToken",
35325             "description": ""
35326           },
35327           {
35328             "group": "Body",
35329             "type": "Text",
35330             "optional": true,
35331             "field": "notificationTemplate",
35332             "description": ""
35333           },
35334           {
35335             "group": "Body",
35336             "type": "Boolean",
35337             "optional": true,
35338             "field": "notificationSound",
35339             "description": ""
35340           },
35341           {
35342             "group": "Body",
35343             "type": "Boolean",
35344             "optional": true,
35345             "field": "notificationShake",
35346             "description": ""
35347           },
35348           {
35349             "group": "Body",
35350             "type": "Integer",
35351             "optional": true,
35352             "field": "waitForTheAssignedAgent",
35353             "description": ""
35354           },
35355           {
35356             "group": "Body",
35357             "type": "Integer",
35358             "optional": true,
35359             "field": "waitForTheAssignedQueue",
35360             "description": ""
35361           },
35362           {
35363             "group": "Body",
35364             "type": "Boolean",
35365             "optional": true,
35366             "field": "queueTransfer",
35367             "description": ""
35368           },
35369           {
35370             "group": "Body",
35371             "type": "Integer",
35372             "optional": true,
35373             "field": "queueTransferTimeout",
35374             "description": ""
35375           },
35376           {
35377             "group": "Body",
35378             "type": "Boolean",
35379             "optional": true,
35380             "field": "agentTransfer",
35381             "description": ""
35382           },
35383           {
35384             "group": "Body",
35385             "type": "Integer",
35386             "optional": true,
35387             "field": "agentTransferTimeout",
35388             "description": ""
35389           },
35390           {
35391             "group": "Body",
35392             "type": "Integer",
35393             "optional": true,
35394             "field": "mandatoryDispositionPauseId",
35395             "description": "<p>Status to put when mandatory disposition is enabled</p>"
35396           },
35397           {
35398             "group": "Body",
35399             "type": "Boolean",
35400             "optional": true,
35401             "field": "mandatoryDisposition",
35402             "description": "<p>Enabled/disables mandatory dispo on a queue</p>"
35403           },
35404           {
35405             "group": "Body",
35406             "type": "String",
35407             "optional": true,
35408             "field": "description",
35409             "description": ""
35410           }
35411         ]
35412       }
35413     },
35414     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35415     "version": "0.0.0",
35416     "filename": "server/api/whatsappAccount/index.js",
35417     "groupTitle": "Whatsapp_Accounts"
35418   },
35419   {
35420     "type": "delete",
35421     "url": "/api/whatsapp/accounts/{id}",
35422     "title": "Deletes a Account",
35423     "examples": [
35424       {
35425         "title": "Example usage:",
35426         "content": "curl https://{domain}/api/whatsapp/accounts/{id} -v -u {name}:{password} -X DELETE",
35427         "type": "json"
35428       }
35429     ],
35430     "name": "DeleteAccounts",
35431     "group": "Whatsapp_Accounts",
35432     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35433     "version": "0.0.0",
35434     "filename": "server/api/whatsappAccount/index.js",
35435     "groupTitle": "Whatsapp_Accounts"
35436   },
35437   {
35438     "type": "get",
35439     "url": "/api/whatsapp/accounts/describe",
35440     "title": "Gets table info about Accounts",
35441     "examples": [
35442       {
35443         "title": "Example usage:",
35444         "content": "curl https://{domain}/api/whatsapp/accounts/describe -v -u {name}:{password}",
35445         "type": "json"
35446       }
35447     ],
35448     "name": "DescribeAccounts",
35449     "group": "Whatsapp_Accounts",
35450     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35451     "version": "0.0.0",
35452     "filename": "server/api/whatsappAccount/index.js",
35453     "groupTitle": "Whatsapp_Accounts"
35454   },
35455   {
35456     "type": "get",
35457     "url": "/api/whatsapp/accounts",
35458     "title": "Gets a list of Accounts",
35459     "examples": [
35460       {
35461         "title": "Example usage:",
35462         "content": "curl https://{domain}/api/whatsapp/accounts -v -u {name}:{password}",
35463         "type": "json"
35464       }
35465     ],
35466     "name": "GetAccounts",
35467     "group": "Whatsapp_Accounts",
35468     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/whatsapp/accounts?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/whatsapp/accounts?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/whatsapp/accounts?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/whatsapp/accounts?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/whatsapp/accounts?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
35469     "version": "0.0.0",
35470     "filename": "server/api/whatsappAccount/index.js",
35471     "groupTitle": "Whatsapp_Accounts"
35472   },
35473   {
35474     "type": "get",
35475     "url": "/api/whatsapp/accounts/{id}/users",
35476     "title": "Gets agents from whatsapp account",
35477     "examples": [
35478       {
35479         "title": "Example usage:",
35480         "content": "curl https://{domain}/api/whatsapp/accounts/{id}/users -v -u {name}:{password} -X GET",
35481         "type": "json"
35482       }
35483     ],
35484     "name": "GetAgents",
35485     "group": "Whatsapp_Accounts",
35486     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35487     "version": "0.0.0",
35488     "filename": "server/api/whatsappAccount/index.js",
35489     "groupTitle": "Whatsapp_Accounts"
35490   },
35491   {
35492     "type": "delete",
35493     "url": "/api/whatsapp/accounts/{id}/users",
35494     "title": "Removes agents from a whatsapp account",
35495     "examples": [
35496       {
35497         "title": "Example usage:",
35498         "content": "curl https://{domain}/api/whatsapp/accounts/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
35499         "type": "json"
35500       }
35501     ],
35502     "name": "RemoveAgents",
35503     "group": "Whatsapp_Accounts",
35504     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35505     "version": "0.0.0",
35506     "filename": "server/api/whatsappAccount/index.js",
35507     "groupTitle": "Whatsapp_Accounts"
35508   },
35509   {
35510     "type": "delete",
35511     "url": "/api/whatsapp/accounts/{id}/canned_answers",
35512     "title": "Removes canned answers from account",
35513     "examples": [
35514       {
35515         "title": "Example usage:",
35516         "content": "curl https://{domain}/api/whatsapp/accounts/{id}/canned_answers?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
35517         "type": "json"
35518       }
35519     ],
35520     "name": "RemoveAnswers",
35521     "group": "Whatsapp_Accounts",
35522     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35523     "version": "0.0.0",
35524     "filename": "server/api/whatsappAccount/index.js",
35525     "groupTitle": "Whatsapp_Accounts"
35526   },
35527   {
35528     "type": "delete",
35529     "url": "/api/whatsapp/accounts/{id}/dispositions",
35530     "title": "Removes dispositions from account",
35531     "examples": [
35532       {
35533         "title": "Example usage:",
35534         "content": "curl https://{domain}/api/whatsapp/accounts/{id}/dispositions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
35535         "type": "json"
35536       }
35537     ],
35538     "name": "RemoveDispositions",
35539     "group": "Whatsapp_Accounts",
35540     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35541     "version": "0.0.0",
35542     "filename": "server/api/whatsappAccount/index.js",
35543     "groupTitle": "Whatsapp_Accounts"
35544   },
35545   {
35546     "type": "get",
35547     "url": "/api/whatsapp/accounts/{id}",
35548     "title": "Gets a single Account",
35549     "examples": [
35550       {
35551         "title": "Example usage:",
35552         "content": "curl https://{domain}/api/whatsapp/accounts/{id} -v -u {name}:{password}",
35553         "type": "json"
35554       }
35555     ],
35556     "name": "ShowAccounts",
35557     "group": "Whatsapp_Accounts",
35558     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35559     "version": "0.0.0",
35560     "filename": "server/api/whatsappAccount/index.js",
35561     "groupTitle": "Whatsapp_Accounts"
35562   },
35563   {
35564     "type": "put",
35565     "url": "/api/whatsapp/messages/{id}/accept",
35566     "title": "Accepts message",
35567     "examples": [
35568       {
35569         "title": "Example usage:",
35570         "content": "curl https://{domain}/api/whatsapp/messages/{id}/accept \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
35571         "type": "json"
35572       }
35573     ],
35574     "name": "acceptMessage",
35575     "group": "Whatsapp_Accounts",
35576     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35577     "version": "0.0.0",
35578     "filename": "server/api/whatsappMessage/index.js",
35579     "groupTitle": "Whatsapp_Accounts"
35580   },
35581   {
35582     "type": "post",
35583     "url": "/api/whatsapp/accounts/{id}/canned_answers",
35584     "title": "Creates new canned answer",
35585     "examples": [
35586       {
35587         "title": "Example usage:",
35588         "content": "curl https://{domain}/api/whatsapp/accounts/{id}/canned_answers -d '{\"name\": \"vip\"}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
35589         "type": "json"
35590       }
35591     ],
35592     "name": "addAnswer",
35593     "group": "Whatsapp_Accounts",
35594     "parameter": {
35595       "fields": {
35596         "Body": [
35597           {
35598             "group": "Body",
35599             "type": "String",
35600             "optional": false,
35601             "field": "key",
35602             "description": ""
35603           },
35604           {
35605             "group": "Body",
35606             "type": "Text",
35607             "optional": false,
35608             "field": "value",
35609             "description": ""
35610           },
35611           {
35612             "group": "Body",
35613             "type": "String",
35614             "optional": true,
35615             "field": "description",
35616             "description": ""
35617           },
35618           {
35619             "group": "Body",
35620             "type": "Virtual",
35621             "optional": true,
35622             "field": "name",
35623             "description": ""
35624           }
35625         ]
35626       }
35627     },
35628     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35629     "version": "0.0.0",
35630     "filename": "server/api/whatsappAccount/index.js",
35631     "groupTitle": "Whatsapp_Accounts"
35632   },
35633   {
35634     "type": "post",
35635     "url": "/api/whatsapp/accounts/{id}/applications",
35636     "title": "Creates new applications",
35637     "examples": [
35638       {
35639         "title": "Example usage:",
35640         "content": "curl https://{domain}/api/whatsapp/accounts/{id}/applications -d '[{\"app\": \"queue\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
35641         "type": "json"
35642       }
35643     ],
35644     "name": "addApplications",
35645     "group": "Whatsapp_Accounts",
35646     "parameter": {
35647       "fields": {
35648         "Body": [
35649           {
35650             "group": "Body",
35651             "type": "Integer",
35652             "optional": false,
35653             "field": "priority",
35654             "description": ""
35655           },
35656           {
35657             "group": "Body",
35658             "type": "String",
35659             "optional": false,
35660             "field": "app",
35661             "description": ""
35662           },
35663           {
35664             "group": "Body",
35665             "type": "Text",
35666             "optional": true,
35667             "field": "appdata",
35668             "description": ""
35669           },
35670           {
35671             "group": "Body",
35672             "type": "String",
35673             "optional": true,
35674             "field": "description",
35675             "description": ""
35676           },
35677           {
35678             "group": "Body",
35679             "type": "String",
35680             "optional": true,
35681             "field": "interval",
35682             "description": ""
35683           }
35684         ]
35685       }
35686     },
35687     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35688     "version": "0.0.0",
35689     "filename": "server/api/whatsappAccount/index.js",
35690     "groupTitle": "Whatsapp_Accounts"
35691   },
35692   {
35693     "type": "post",
35694     "url": "/api/whatsapp/accounts/{id}/dispositions",
35695     "title": "Creates new disposition",
35696     "examples": [
35697       {
35698         "title": "Example usage:",
35699         "content": "curl https://{domain}/api/whatsapp/accounts/{id}/dispositions -d '{\"name\": \"vip\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
35700         "type": "json"
35701       }
35702     ],
35703     "name": "addDisposition",
35704     "group": "Whatsapp_Accounts",
35705     "parameter": {
35706       "fields": {
35707         "Body": [
35708           {
35709             "group": "Body",
35710             "type": "String",
35711             "optional": false,
35712             "field": "name",
35713             "description": ""
35714           },
35715           {
35716             "group": "Body",
35717             "type": "String",
35718             "allowedValues": [
35719               "\"first\"",
35720               "\"second\"",
35721               "\"third\""
35722             ],
35723             "optional": false,
35724             "field": "level",
35725             "description": ""
35726           },
35727           {
35728             "group": "Body",
35729             "type": "String",
35730             "optional": true,
35731             "field": "description",
35732             "description": ""
35733           }
35734         ]
35735       }
35736     },
35737     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35738     "version": "0.0.0",
35739     "filename": "server/api/whatsappAccount/index.js",
35740     "groupTitle": "Whatsapp_Accounts"
35741   },
35742   {
35743     "type": "get",
35744     "url": "/api/whatsapp/accounts/{id}/canned_answers",
35745     "title": "Gets account canned answers",
35746     "examples": [
35747       {
35748         "title": "Example usage:",
35749         "content": "curl https://{domain}/api/whatsapp/accounts/{id}/canned_answers -v -u {name}:{password} -X GET",
35750         "type": "json"
35751       }
35752     ],
35753     "name": "getAnswers",
35754     "group": "Whatsapp_Accounts",
35755     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35756     "version": "0.0.0",
35757     "filename": "server/api/whatsappAccount/index.js",
35758     "groupTitle": "Whatsapp_Accounts"
35759   },
35760   {
35761     "type": "get",
35762     "url": "/api/whatsapp/accounts/{id}/applications",
35763     "title": "Gets account applications",
35764     "examples": [
35765       {
35766         "title": "Example usage:",
35767         "content": "curl https://{domain}/api/whatsapp/accounts/{id}/applications -v -u {name}:{password} -X GET",
35768         "type": "json"
35769       }
35770     ],
35771     "name": "getApplications",
35772     "group": "Whatsapp_Accounts",
35773     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35774     "version": "0.0.0",
35775     "filename": "server/api/whatsappAccount/index.js",
35776     "groupTitle": "Whatsapp_Accounts"
35777   },
35778   {
35779     "type": "get",
35780     "url": "/api/whatsapp/accounts/{id}/dispositions",
35781     "title": "Gets account dispositions",
35782     "examples": [
35783       {
35784         "title": "Example usage:",
35785         "content": "curl https://{domain}/api/whatsapp/accounts/{id}/dispositions -v -u {name}:{password} -X GET",
35786         "type": "json"
35787       }
35788     ],
35789     "name": "getDispositions",
35790     "group": "Whatsapp_Accounts",
35791     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35792     "version": "0.0.0",
35793     "filename": "server/api/whatsappAccount/index.js",
35794     "groupTitle": "Whatsapp_Accounts"
35795   },
35796   {
35797     "type": "post",
35798     "url": "/api/whatsapp/accounts/{id}/notify",
35799     "title": "Notify new message",
35800     "examples": [
35801       {
35802         "title": "Example usage:",
35803         "content": "curl https://{domain}/api/whatsapp/accounts/{id}/notify -d '{\"body\": \"hello world\", \"...\": \"...\"}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
35804         "type": "json"
35805       }
35806     ],
35807     "name": "notify",
35808     "group": "Whatsapp_Accounts",
35809     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <p>This API is used to create a new whatsapp message to be sent to the system.</p>",
35810     "version": "0.0.0",
35811     "filename": "server/api/whatsappAccount/index.js",
35812     "groupTitle": "Whatsapp_Accounts"
35813   },
35814   {
35815     "type": "put",
35816     "url": "/api/whatsapp/messages/{id}/reject",
35817     "title": "Rejects message",
35818     "examples": [
35819       {
35820         "title": "Example usage:",
35821         "content": "curl https://{domain}/api/whatsapp/messages/{id}/reject \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
35822         "type": "json"
35823       }
35824     ],
35825     "name": "rejectMessage",
35826     "group": "Whatsapp_Accounts",
35827     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35828     "version": "0.0.0",
35829     "filename": "server/api/whatsappMessage/index.js",
35830     "groupTitle": "Whatsapp_Accounts"
35831   },
35832   {
35833     "type": "post",
35834     "url": "/api/whatsapp/accounts/{id}/send",
35835     "title": "Send new whatsapp message",
35836     "examples": [
35837       {
35838         "title": "Example usage:",
35839         "content": "curl https://{domain}/api/whatsapp/accounts/{id}/send -d '{from: '+39333123456', body: 'This is a test'}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
35840         "type": "json"
35841       }
35842     ],
35843     "name": "sendWhatsapp",
35844     "group": "Whatsapp_Accounts",
35845     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35846     "version": "0.0.0",
35847     "filename": "server/api/whatsappAccount/index.js",
35848     "groupTitle": "Whatsapp_Accounts"
35849   },
35850   {
35851     "type": "post",
35852     "url": "/api/whatsapp/messages/{id}/status",
35853     "title": "Receive message status",
35854     "examples": [
35855       {
35856         "title": "Example usage:",
35857         "content": "curl https://{domain}/api/whatsapp/messages/{id}/status \\ \n -H 'Content-Type: application/json' -v -X POST",
35858         "type": "json"
35859       }
35860     ],
35861     "name": "statusMessage",
35862     "group": "Whatsapp_Accounts",
35863     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35864     "version": "0.0.0",
35865     "filename": "server/api/whatsappMessage/index.js",
35866     "groupTitle": "Whatsapp_Accounts"
35867   },
35868   {
35869     "type": "put",
35870     "url": "/api/whatsapp/accounts/{id}",
35871     "title": "Update an existing Account",
35872     "examples": [
35873       {
35874         "title": "Example usage:",
35875         "content": "curl https://{domain}/api/whatsapp/accounts/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
35876         "type": "json"
35877       }
35878     ],
35879     "name": "updateAccounts",
35880     "group": "Whatsapp_Accounts",
35881     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35882     "version": "0.0.0",
35883     "filename": "server/api/whatsappAccount/index.js",
35884     "groupTitle": "Whatsapp_Accounts"
35885   },
35886   {
35887     "type": "post",
35888     "url": "/api/whatsapp/applications",
35889     "title": "Creates a new Application",
35890     "examples": [
35891       {
35892         "title": "Example usage:",
35893         "content": "curl https://{domain}/api/whatsapp/applications -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
35894         "type": "json"
35895       }
35896     ],
35897     "name": "CreateApplications",
35898     "group": "Whatsapp_Applications",
35899     "parameter": {
35900       "fields": {
35901         "Body": [
35902           {
35903             "group": "Body",
35904             "type": "Integer",
35905             "optional": false,
35906             "field": "priority",
35907             "description": ""
35908           },
35909           {
35910             "group": "Body",
35911             "type": "String",
35912             "optional": false,
35913             "field": "app",
35914             "description": ""
35915           },
35916           {
35917             "group": "Body",
35918             "type": "Text",
35919             "optional": true,
35920             "field": "appdata",
35921             "description": ""
35922           },
35923           {
35924             "group": "Body",
35925             "type": "String",
35926             "optional": true,
35927             "field": "description",
35928             "description": ""
35929           },
35930           {
35931             "group": "Body",
35932             "type": "String",
35933             "optional": true,
35934             "field": "interval",
35935             "description": ""
35936           }
35937         ]
35938       }
35939     },
35940     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35941     "version": "0.0.0",
35942     "filename": "server/api/whatsappApplication/index.js",
35943     "groupTitle": "Whatsapp_Applications"
35944   },
35945   {
35946     "type": "delete",
35947     "url": "/api/whatsapp/applications/{id}",
35948     "title": "Deletes a Application",
35949     "examples": [
35950       {
35951         "title": "Example usage:",
35952         "content": "curl https://{domain}/api/whatsapp/applications/{id} -v -u {name}:{password} -X DELETE",
35953         "type": "json"
35954       }
35955     ],
35956     "name": "DeleteApplications",
35957     "group": "Whatsapp_Applications",
35958     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35959     "version": "0.0.0",
35960     "filename": "server/api/whatsappApplication/index.js",
35961     "groupTitle": "Whatsapp_Applications"
35962   },
35963   {
35964     "type": "get",
35965     "url": "/api/whatsapp/applications",
35966     "title": "Gets a list of Applications",
35967     "examples": [
35968       {
35969         "title": "Example usage:",
35970         "content": "curl https://{domain}/api/whatsapp/applications -v -u {name}:{password}",
35971         "type": "json"
35972       }
35973     ],
35974     "name": "GetApplications",
35975     "group": "Whatsapp_Applications",
35976     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/whatsapp/applications?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/whatsapp/applications?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/whatsapp/applications?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/whatsapp/applications?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/whatsapp/applications?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
35977     "version": "0.0.0",
35978     "filename": "server/api/whatsappApplication/index.js",
35979     "groupTitle": "Whatsapp_Applications"
35980   },
35981   {
35982     "type": "get",
35983     "url": "/api/whatsapp/applications/{id}",
35984     "title": "Gets a single Application",
35985     "examples": [
35986       {
35987         "title": "Example usage:",
35988         "content": "curl https://{domain}/api/whatsapp/applications/{id} -v -u {name}:{password}",
35989         "type": "json"
35990       }
35991     ],
35992     "name": "ShowApplications",
35993     "group": "Whatsapp_Applications",
35994     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35995     "version": "0.0.0",
35996     "filename": "server/api/whatsappApplication/index.js",
35997     "groupTitle": "Whatsapp_Applications"
35998   },
35999   {
36000     "type": "put",
36001     "url": "/api/whatsapp/applications/{id}",
36002     "title": "Update an existing Application",
36003     "examples": [
36004       {
36005         "title": "Example usage:",
36006         "content": "curl https://{domain}/api/whatsapp/applications/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
36007         "type": "json"
36008       }
36009     ],
36010     "name": "updateApplications",
36011     "group": "Whatsapp_Applications",
36012     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36013     "version": "0.0.0",
36014     "filename": "server/api/whatsappApplication/index.js",
36015     "groupTitle": "Whatsapp_Applications"
36016   },
36017   {
36018     "type": "post",
36019     "url": "/api/whatsapp/interactions/{id}/tags",
36020     "title": "Add tags to the interaction",
36021     "examples": [
36022       {
36023         "title": "Example usage:",
36024         "content": "curl https://{domain}/api/whatsapp/interaction/{id}/tags -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
36025         "type": "json"
36026       }
36027     ],
36028     "name": "AddTags",
36029     "group": "Whatsapp_Interactions",
36030     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36031     "version": "0.0.0",
36032     "filename": "server/api/whatsappInteraction/index.js",
36033     "groupTitle": "Whatsapp_Interactions"
36034   },
36035   {
36036     "type": "post",
36037     "url": "/api/whatsapp/interactions",
36038     "title": "Creates a new Interaction",
36039     "examples": [
36040       {
36041         "title": "Example usage:",
36042         "content": "curl https://{domain}/api/whatsapp/interactions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
36043         "type": "json"
36044       }
36045     ],
36046     "name": "CreateInteractions",
36047     "group": "Whatsapp_Interactions",
36048     "parameter": {
36049       "fields": {
36050         "Body": [
36051           {
36052             "group": "Body",
36053             "type": "Boolean",
36054             "optional": true,
36055             "field": "closed",
36056             "description": ""
36057           },
36058           {
36059             "group": "Body",
36060             "type": "String",
36061             "optional": true,
36062             "field": "closedAt",
36063             "description": ""
36064           },
36065           {
36066             "group": "Body",
36067             "type": "String",
36068             "optional": true,
36069             "field": "disposition",
36070             "description": ""
36071           },
36072           {
36073             "group": "Body",
36074             "type": "String",
36075             "optional": true,
36076             "field": "secondDisposition",
36077             "description": ""
36078           },
36079           {
36080             "group": "Body",
36081             "type": "String",
36082             "optional": true,
36083             "field": "thirdDisposition",
36084             "description": ""
36085           },
36086           {
36087             "group": "Body",
36088             "type": "String",
36089             "optional": true,
36090             "field": "note",
36091             "description": ""
36092           },
36093           {
36094             "group": "Body",
36095             "type": "String",
36096             "optional": true,
36097             "field": "phone",
36098             "description": ""
36099           },
36100           {
36101             "group": "Body",
36102             "type": "String",
36103             "optional": true,
36104             "field": "read1stAt",
36105             "description": ""
36106           },
36107           {
36108             "group": "Body",
36109             "type": "String",
36110             "allowedValues": [
36111               "\"in\"",
36112               "\"out\""
36113             ],
36114             "optional": false,
36115             "field": "firstMsgDirection",
36116             "description": ""
36117           },
36118           {
36119             "group": "Body",
36120             "type": "String",
36121             "optional": true,
36122             "field": "lastMsgAt",
36123             "description": ""
36124           },
36125           {
36126             "group": "Body",
36127             "type": "String",
36128             "allowedValues": [
36129               "\"in\"",
36130               "\"out\""
36131             ],
36132             "optional": false,
36133             "field": "lastMsgDirection",
36134             "description": ""
36135           },
36136           {
36137             "group": "Body",
36138             "type": "Boolean",
36139             "optional": true,
36140             "field": "autoreplyExecuted",
36141             "description": ""
36142           }
36143         ]
36144       }
36145     },
36146     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36147     "version": "0.0.0",
36148     "filename": "server/api/whatsappInteraction/index.js",
36149     "groupTitle": "Whatsapp_Interactions"
36150   },
36151   {
36152     "type": "delete",
36153     "url": "/api/whatsapp/interactions/{id}",
36154     "title": "Deletes a Interaction",
36155     "examples": [
36156       {
36157         "title": "Example usage:",
36158         "content": "curl https://{domain}/api/whatsapp/interactions/{id} -v -u {name}:{password} -X DELETE",
36159         "type": "json"
36160       }
36161     ],
36162     "name": "DeleteInteractions",
36163     "group": "Whatsapp_Interactions",
36164     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36165     "version": "0.0.0",
36166     "filename": "server/api/whatsappInteraction/index.js",
36167     "groupTitle": "Whatsapp_Interactions"
36168   },
36169   {
36170     "type": "get",
36171     "url": "/api/whatsapp/interactions/describe",
36172     "title": "Gets table info about Interactions",
36173     "examples": [
36174       {
36175         "title": "Example usage:",
36176         "content": "curl https://{domain}/api/whatsapp/interactions/describe -v -u {name}:{password}",
36177         "type": "json"
36178       }
36179     ],
36180     "name": "DescribeInteractions",
36181     "group": "Whatsapp_Interactions",
36182     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36183     "version": "0.0.0",
36184     "filename": "server/api/whatsappInteraction/index.js",
36185     "groupTitle": "Whatsapp_Interactions"
36186   },
36187   {
36188     "type": "get",
36189     "url": "/api/whatsapp/interactions",
36190     "title": "Gets a list of Interactions",
36191     "examples": [
36192       {
36193         "title": "Example usage:",
36194         "content": "curl https://{domain}/api/whatsapp/interactions -v -u {name}:{password}",
36195         "type": "json"
36196       }
36197     ],
36198     "name": "GetInteractions",
36199     "group": "Whatsapp_Interactions",
36200     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/whatsapp/interactions?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/whatsapp/interactions?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/whatsapp/interactions?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/whatsapp/interactions?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/whatsapp/interactions?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
36201     "version": "0.0.0",
36202     "filename": "server/api/whatsappInteraction/index.js",
36203     "groupTitle": "Whatsapp_Interactions"
36204   },
36205   {
36206     "type": "delete",
36207     "url": "/api/whatsapp/interactions/{id}/tags",
36208     "title": "Removes tags from interaction",
36209     "examples": [
36210       {
36211         "title": "Example usage:",
36212         "content": "curl https://{domain}/api/whatsapp/interactions/{id}/tags?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
36213         "type": "json"
36214       }
36215     ],
36216     "name": "RemoveTags",
36217     "group": "Whatsapp_Interactions",
36218     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36219     "version": "0.0.0",
36220     "filename": "server/api/whatsappInteraction/index.js",
36221     "groupTitle": "Whatsapp_Interactions"
36222   },
36223   {
36224     "type": "get",
36225     "url": "/api/whatsapp/interactions/{id}",
36226     "title": "Gets a single Interaction",
36227     "examples": [
36228       {
36229         "title": "Example usage:",
36230         "content": "curl https://{domain}/api/whatsapp/interactions/{id} -v -u {name}:{password}",
36231         "type": "json"
36232       }
36233     ],
36234     "name": "ShowInteractions",
36235     "group": "Whatsapp_Interactions",
36236     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36237     "version": "0.0.0",
36238     "filename": "server/api/whatsappInteraction/index.js",
36239     "groupTitle": "Whatsapp_Interactions"
36240   },
36241   {
36242     "type": "post",
36243     "url": "/api/whatsapp/interactions/{id}/messages",
36244     "title": "Creates new messages",
36245     "examples": [
36246       {
36247         "title": "Example usage:",
36248         "content": "curl https://{domain}/api/whatsapp/interactions/{id}/messages -d '[{\"to\": \"+3901119886500\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
36249         "type": "json"
36250       }
36251     ],
36252     "name": "addMessage",
36253     "group": "Whatsapp_Interactions",
36254     "parameter": {
36255       "fields": {
36256         "Body": [
36257           {
36258             "group": "Body",
36259             "type": "Text",
36260             "optional": false,
36261             "field": "body",
36262             "description": ""
36263           },
36264           {
36265             "group": "Body",
36266             "type": "Boolean",
36267             "optional": true,
36268             "field": "read",
36269             "description": ""
36270           },
36271           {
36272             "group": "Body",
36273             "type": "String",
36274             "allowedValues": [
36275               "\"in\"",
36276               "\"out\""
36277             ],
36278             "optional": false,
36279             "field": "direction",
36280             "description": ""
36281           },
36282           {
36283             "group": "Body",
36284             "type": "String",
36285             "optional": true,
36286             "field": "messageId",
36287             "description": ""
36288           },
36289           {
36290             "group": "Body",
36291             "type": "String",
36292             "optional": true,
36293             "field": "phone",
36294             "description": ""
36295           },
36296           {
36297             "group": "Body",
36298             "type": "String",
36299             "optional": true,
36300             "field": "readAt",
36301             "description": ""
36302           },
36303           {
36304             "group": "Body",
36305             "type": "Boolean",
36306             "optional": true,
36307             "field": "secret",
36308             "description": ""
36309           },
36310           {
36311             "group": "Body",
36312             "type": "String",
36313             "optional": true,
36314             "field": "providerName",
36315             "description": ""
36316           },
36317           {
36318             "group": "Body",
36319             "type": "Text",
36320             "optional": true,
36321             "field": "providerResponse",
36322             "description": ""
36323           }
36324         ]
36325       }
36326     },
36327     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36328     "version": "0.0.0",
36329     "filename": "server/api/whatsappInteraction/index.js",
36330     "groupTitle": "Whatsapp_Interactions"
36331   },
36332   {
36333     "type": "get",
36334     "url": "/api/whatsapp/interactions/{id}/download",
36335     "title": "Gets interaction",
36336     "examples": [
36337       {
36338         "title": "Example usage:",
36339         "content": "curl https://{domain}/api/whatsapp/interactions/{id}/download -v -u {name}:{password} -X GET",
36340         "type": "json"
36341       }
36342     ],
36343     "name": "download",
36344     "group": "Whatsapp_Interactions",
36345     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36346     "version": "0.0.0",
36347     "filename": "server/api/whatsappInteraction/index.js",
36348     "groupTitle": "Whatsapp_Interactions"
36349   },
36350   {
36351     "type": "get",
36352     "url": "/api/whatsapp/interactions/{id}/messages",
36353     "title": "Gets interaction messages",
36354     "examples": [
36355       {
36356         "title": "Example usage:",
36357         "content": "curl https://{domain}/api/whatsapp/interactions/{id}/messages -v -u {name}:{password} -X GET",
36358         "type": "json"
36359       }
36360     ],
36361     "name": "getMessages",
36362     "group": "Whatsapp_Interactions",
36363     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36364     "version": "0.0.0",
36365     "filename": "server/api/whatsappInteraction/index.js",
36366     "groupTitle": "Whatsapp_Interactions"
36367   },
36368   {
36369     "type": "put",
36370     "url": "/api/whatsapp/interactions/{id}",
36371     "title": "Update an existing Interaction",
36372     "examples": [
36373       {
36374         "title": "Example usage:",
36375         "content": "curl https://{domain}/api/whatsapp/interactions/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
36376         "type": "json"
36377       }
36378     ],
36379     "name": "updateInteractions",
36380     "group": "Whatsapp_Interactions",
36381     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36382     "version": "0.0.0",
36383     "filename": "server/api/whatsappInteraction/index.js",
36384     "groupTitle": "Whatsapp_Interactions"
36385   },
36386   {
36387     "type": "post",
36388     "url": "/api/whatsapp/messages",
36389     "title": "Creates a new Message",
36390     "examples": [
36391       {
36392         "title": "Example usage:",
36393         "content": "curl https://{domain}/api/whatsapp/messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
36394         "type": "json"
36395       }
36396     ],
36397     "name": "CreateMessages",
36398     "group": "Whatsapp_Messages",
36399     "parameter": {
36400       "fields": {
36401         "Body": [
36402           {
36403             "group": "Body",
36404             "type": "Text",
36405             "optional": false,
36406             "field": "body",
36407             "description": ""
36408           },
36409           {
36410             "group": "Body",
36411             "type": "Boolean",
36412             "optional": true,
36413             "field": "read",
36414             "description": ""
36415           },
36416           {
36417             "group": "Body",
36418             "type": "String",
36419             "allowedValues": [
36420               "\"in\"",
36421               "\"out\""
36422             ],
36423             "optional": false,
36424             "field": "direction",
36425             "description": ""
36426           },
36427           {
36428             "group": "Body",
36429             "type": "String",
36430             "optional": true,
36431             "field": "messageId",
36432             "description": ""
36433           },
36434           {
36435             "group": "Body",
36436             "type": "String",
36437             "optional": true,
36438             "field": "phone",
36439             "description": ""
36440           },
36441           {
36442             "group": "Body",
36443             "type": "String",
36444             "optional": true,
36445             "field": "readAt",
36446             "description": ""
36447           },
36448           {
36449             "group": "Body",
36450             "type": "Boolean",
36451             "optional": true,
36452             "field": "secret",
36453             "description": ""
36454           },
36455           {
36456             "group": "Body",
36457             "type": "String",
36458             "optional": true,
36459             "field": "providerName",
36460             "description": ""
36461           },
36462           {
36463             "group": "Body",
36464             "type": "Text",
36465             "optional": true,
36466             "field": "providerResponse",
36467             "description": ""
36468           }
36469         ]
36470       }
36471     },
36472     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36473     "version": "0.0.0",
36474     "filename": "server/api/whatsappMessage/index.js",
36475     "groupTitle": "Whatsapp_Messages"
36476   },
36477   {
36478     "type": "delete",
36479     "url": "/api/whatsapp/messages/{id}",
36480     "title": "Deletes a Message",
36481     "examples": [
36482       {
36483         "title": "Example usage:",
36484         "content": "curl https://{domain}/api/whatsapp/messages/{id} -v -u {name}:{password} -X DELETE",
36485         "type": "json"
36486       }
36487     ],
36488     "name": "DeleteMessages",
36489     "group": "Whatsapp_Messages",
36490     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36491     "version": "0.0.0",
36492     "filename": "server/api/whatsappMessage/index.js",
36493     "groupTitle": "Whatsapp_Messages"
36494   },
36495   {
36496     "type": "get",
36497     "url": "/api/whatsapp/messages/describe",
36498     "title": "Gets table info about Messages",
36499     "examples": [
36500       {
36501         "title": "Example usage:",
36502         "content": "curl https://{domain}/api/whatsapp/messages/describe -v -u {name}:{password}",
36503         "type": "json"
36504       }
36505     ],
36506     "name": "DescribeMessages",
36507     "group": "Whatsapp_Messages",
36508     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36509     "version": "0.0.0",
36510     "filename": "server/api/whatsappMessage/index.js",
36511     "groupTitle": "Whatsapp_Messages"
36512   },
36513   {
36514     "type": "get",
36515     "url": "/api/whatsapp/messages",
36516     "title": "Gets a list of Messages",
36517     "examples": [
36518       {
36519         "title": "Example usage:",
36520         "content": "curl https://{domain}/api/whatsapp/messages -v -u {name}:{password}",
36521         "type": "json"
36522       }
36523     ],
36524     "name": "GetMessages",
36525     "group": "Whatsapp_Messages",
36526     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/whatsapp/messages?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/whatsapp/messages?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/whatsapp/messages?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/whatsapp/messages?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/whatsapp/messages?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
36527     "version": "0.0.0",
36528     "filename": "server/api/whatsappMessage/index.js",
36529     "groupTitle": "Whatsapp_Messages"
36530   },
36531   {
36532     "type": "get",
36533     "url": "/api/whatsapp/messages/{id}",
36534     "title": "Gets a single Message",
36535     "examples": [
36536       {
36537         "title": "Example usage:",
36538         "content": "curl https://{domain}/api/whatsapp/messages/{id} -v -u {name}:{password}",
36539         "type": "json"
36540       }
36541     ],
36542     "name": "ShowMessages",
36543     "group": "Whatsapp_Messages",
36544     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36545     "version": "0.0.0",
36546     "filename": "server/api/whatsappMessage/index.js",
36547     "groupTitle": "Whatsapp_Messages"
36548   },
36549   {
36550     "type": "put",
36551     "url": "/api/whatsapp/messages/{id}",
36552     "title": "Update an existing Message",
36553     "examples": [
36554       {
36555         "title": "Example usage:",
36556         "content": "curl https://{domain}/api/whatsapp/messages/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
36557         "type": "json"
36558       }
36559     ],
36560     "name": "updateMessages",
36561     "group": "Whatsapp_Messages",
36562     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36563     "version": "0.0.0",
36564     "filename": "server/api/whatsappMessage/index.js",
36565     "groupTitle": "Whatsapp_Messages"
36566   },
36567   {
36568     "type": "post",
36569     "url": "/api/whatsapp/reports/queue",
36570     "title": "Creates a new Whatsapp Queue Report",
36571     "examples": [
36572       {
36573         "title": "Example usage:",
36574         "content": "curl https://{domain}/api/whatsapp/reports/queue -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
36575         "type": "json"
36576       }
36577     ],
36578     "name": "CreateWhatsapp_Queue_Reports",
36579     "group": "Whatsapp_Queue_Reports",
36580     "parameter": {
36581       "fields": {
36582         "Body": [
36583           {
36584             "group": "Body",
36585             "type": "String",
36586             "optional": false,
36587             "field": "uniqueid",
36588             "description": ""
36589           },
36590           {
36591             "group": "Body",
36592             "type": "String",
36593             "optional": true,
36594             "field": "from",
36595             "description": ""
36596           },
36597           {
36598             "group": "Body",
36599             "type": "String",
36600             "optional": true,
36601             "field": "joinAt",
36602             "description": ""
36603           },
36604           {
36605             "group": "Body",
36606             "type": "String",
36607             "optional": true,
36608             "field": "leaveAt",
36609             "description": ""
36610           },
36611           {
36612             "group": "Body",
36613             "type": "String",
36614             "optional": true,
36615             "field": "acceptAt",
36616             "description": ""
36617           },
36618           {
36619             "group": "Body",
36620             "type": "String",
36621             "optional": true,
36622             "field": "exitAt",
36623             "description": ""
36624           },
36625           {
36626             "group": "Body",
36627             "type": "String",
36628             "optional": true,
36629             "field": "reason",
36630             "description": ""
36631           }
36632         ]
36633       }
36634     },
36635     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36636     "version": "0.0.0",
36637     "filename": "server/api/whatsappQueueReport/index.js",
36638     "groupTitle": "Whatsapp_Queue_Reports"
36639   },
36640   {
36641     "type": "delete",
36642     "url": "/api/whatsapp/reports/queue/{id}",
36643     "title": "Deletes a Whatsapp Queue Report",
36644     "examples": [
36645       {
36646         "title": "Example usage:",
36647         "content": "curl https://{domain}/api/whatsapp/reports/queue/{id} -v -u {name}:{password} -X DELETE",
36648         "type": "json"
36649       }
36650     ],
36651     "name": "DeleteWhatsapp_Queue_Reports",
36652     "group": "Whatsapp_Queue_Reports",
36653     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36654     "version": "0.0.0",
36655     "filename": "server/api/whatsappQueueReport/index.js",
36656     "groupTitle": "Whatsapp_Queue_Reports"
36657   },
36658   {
36659     "type": "get",
36660     "url": "/api/whatsapp/reports/queue/describe",
36661     "title": "Gets table info about Whatsapp Queue Reports",
36662     "examples": [
36663       {
36664         "title": "Example usage:",
36665         "content": "curl https://{domain}/api/whatsapp/reports/queue/describe -v -u {name}:{password}",
36666         "type": "json"
36667       }
36668     ],
36669     "name": "DescribeWhatsapp_Queue_Reports",
36670     "group": "Whatsapp_Queue_Reports",
36671     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36672     "version": "0.0.0",
36673     "filename": "server/api/whatsappQueueReport/index.js",
36674     "groupTitle": "Whatsapp_Queue_Reports"
36675   },
36676   {
36677     "type": "get",
36678     "url": "/api/whatsapp/reports/queue",
36679     "title": "Gets a list of Whatsapp Queue Reports",
36680     "examples": [
36681       {
36682         "title": "Example usage:",
36683         "content": "curl https://{domain}/api/whatsapp/reports/queue -v -u {name}:{password}",
36684         "type": "json"
36685       }
36686     ],
36687     "name": "GetWhatsapp_Queue_Reports",
36688     "group": "Whatsapp_Queue_Reports",
36689     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/whatsapp/reports/queue?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/whatsapp/reports/queue?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/whatsapp/reports/queue?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/whatsapp/reports/queue?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/whatsapp/reports/queue?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
36690     "version": "0.0.0",
36691     "filename": "server/api/whatsappQueueReport/index.js",
36692     "groupTitle": "Whatsapp_Queue_Reports"
36693   },
36694   {
36695     "type": "get",
36696     "url": "/api/whatsapp/reports/queue/{id}",
36697     "title": "Gets a single Whatsapp Queue Report",
36698     "examples": [
36699       {
36700         "title": "Example usage:",
36701         "content": "curl https://{domain}/api/whatsapp/reports/queue/{id} -v -u {name}:{password}",
36702         "type": "json"
36703       }
36704     ],
36705     "name": "ShowWhatsapp_Queue_Reports",
36706     "group": "Whatsapp_Queue_Reports",
36707     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36708     "version": "0.0.0",
36709     "filename": "server/api/whatsappQueueReport/index.js",
36710     "groupTitle": "Whatsapp_Queue_Reports"
36711   },
36712   {
36713     "type": "put",
36714     "url": "/api/whatsapp/reports/queue/{id}",
36715     "title": "Update an existing Whatsapp Queue Report",
36716     "examples": [
36717       {
36718         "title": "Example usage:",
36719         "content": "curl https://{domain}/api/whatsapp/reports/queue/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
36720         "type": "json"
36721       }
36722     ],
36723     "name": "updateWhatsapp_Queue_Reports",
36724     "group": "Whatsapp_Queue_Reports",
36725     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36726     "version": "0.0.0",
36727     "filename": "server/api/whatsappQueueReport/index.js",
36728     "groupTitle": "Whatsapp_Queue_Reports"
36729   },
36730   {
36731     "type": "post",
36732     "url": "/api/whatsapp/queues/{id}/users",
36733     "title": "Add agents to a queue",
36734     "examples": [
36735       {
36736         "title": "Example usage:",
36737         "content": "curl https://{domain}/api/whatsapp/queues/{id}/users -d '{\"ids\": [1,2], \"penalty\": 2}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
36738         "type": "json"
36739       }
36740     ],
36741     "name": "AddAgents",
36742     "group": "Whatsapp_Queues",
36743     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36744     "version": "0.0.0",
36745     "filename": "server/api/whatsappQueue/index.js",
36746     "groupTitle": "Whatsapp_Queues"
36747   },
36748   {
36749     "type": "post",
36750     "url": "/api/whatsapp/queues/{id}/teams",
36751     "title": "Add teams to a queue",
36752     "examples": [
36753       {
36754         "title": "Example usage:",
36755         "content": "curl https://{domain}/api/whatsapp/queues/{id}/teams -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
36756         "type": "json"
36757       }
36758     ],
36759     "name": "AddTeams",
36760     "group": "Whatsapp_Queues",
36761     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36762     "version": "0.0.0",
36763     "filename": "server/api/whatsappQueue/index.js",
36764     "groupTitle": "Whatsapp_Queues"
36765   },
36766   {
36767     "type": "post",
36768     "url": "/api/whatsapp/queues",
36769     "title": "Creates a new Queue",
36770     "examples": [
36771       {
36772         "title": "Example usage:",
36773         "content": "curl https://{domain}/api/whatsapp/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
36774         "type": "json"
36775       }
36776     ],
36777     "name": "CreateQueues",
36778     "group": "Whatsapp_Queues",
36779     "parameter": {
36780       "fields": {
36781         "Body": [
36782           {
36783             "group": "Body",
36784             "type": "String",
36785             "optional": true,
36786             "field": "name",
36787             "description": ""
36788           },
36789           {
36790             "group": "Body",
36791             "type": "Integer",
36792             "optional": true,
36793             "field": "timeout",
36794             "description": ""
36795           },
36796           {
36797             "group": "Body",
36798             "type": "String",
36799             "allowedValues": [
36800               "\"rrmemory\"",
36801               "\"beepall\"",
36802               "\"roundrobin\""
36803             ],
36804             "optional": true,
36805             "field": "strategy",
36806             "description": ""
36807           },
36808           {
36809             "group": "Body",
36810             "type": "String",
36811             "optional": true,
36812             "field": "description",
36813             "description": ""
36814           }
36815         ]
36816       }
36817     },
36818     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36819     "version": "0.0.0",
36820     "filename": "server/api/whatsappQueue/index.js",
36821     "groupTitle": "Whatsapp_Queues"
36822   },
36823   {
36824     "type": "delete",
36825     "url": "/api/whatsapp/queues/{id}",
36826     "title": "Deletes a Queue",
36827     "examples": [
36828       {
36829         "title": "Example usage:",
36830         "content": "curl https://{domain}/api/whatsapp/queues/{id} -v -u {name}:{password} -X DELETE",
36831         "type": "json"
36832       }
36833     ],
36834     "name": "DeleteQueues",
36835     "group": "Whatsapp_Queues",
36836     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36837     "version": "0.0.0",
36838     "filename": "server/api/whatsappQueue/index.js",
36839     "groupTitle": "Whatsapp_Queues"
36840   },
36841   {
36842     "type": "get",
36843     "url": "/api/whatsapp/queues/describe",
36844     "title": "Gets table info about Queues",
36845     "examples": [
36846       {
36847         "title": "Example usage:",
36848         "content": "curl https://{domain}/api/whatsapp/queues/describe -v -u {name}:{password}",
36849         "type": "json"
36850       }
36851     ],
36852     "name": "DescribeQueues",
36853     "group": "Whatsapp_Queues",
36854     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36855     "version": "0.0.0",
36856     "filename": "server/api/whatsappQueue/index.js",
36857     "groupTitle": "Whatsapp_Queues"
36858   },
36859   {
36860     "type": "get",
36861     "url": "/api/whatsapp/queues/{id}/users",
36862     "title": "Gets queue agents",
36863     "examples": [
36864       {
36865         "title": "Example usage:",
36866         "content": "curl https://{domain}/api/whatsapp/queues/{id}/users -v -u {name}:{password} -X POST",
36867         "type": "json"
36868       }
36869     ],
36870     "name": "GetAgents",
36871     "group": "Whatsapp_Queues",
36872     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36873     "version": "0.0.0",
36874     "filename": "server/api/whatsappQueue/index.js",
36875     "groupTitle": "Whatsapp_Queues"
36876   },
36877   {
36878     "type": "get",
36879     "url": "/api/whatsapp/queues/{id}/members",
36880     "title": "GetMembers",
36881     "examples": [
36882       {
36883         "title": "Example usage:",
36884         "content": "curl https://{domain}/api/whatsapp/queues/{id}/members  -v -u {name}:{password}",
36885         "type": "json"
36886       }
36887     ],
36888     "name": "GetMembers",
36889     "group": "Whatsapp_Queues",
36890     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36891     "version": "0.0.0",
36892     "filename": "server/api/whatsappQueue/index.js",
36893     "groupTitle": "Whatsapp_Queues"
36894   },
36895   {
36896     "type": "get",
36897     "url": "/api/whatsapp/queues",
36898     "title": "Gets a list of Queues",
36899     "examples": [
36900       {
36901         "title": "Example usage:",
36902         "content": "curl https://{domain}/api/whatsapp/queues -v -u {name}:{password}",
36903         "type": "json"
36904       }
36905     ],
36906     "name": "GetQueues",
36907     "group": "Whatsapp_Queues",
36908     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/whatsapp/queues?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/whatsapp/queues?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/whatsapp/queues?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/whatsapp/queues?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/whatsapp/queues?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
36909     "version": "0.0.0",
36910     "filename": "server/api/whatsappQueue/index.js",
36911     "groupTitle": "Whatsapp_Queues"
36912   },
36913   {
36914     "type": "get",
36915     "url": "/api/whatsapp/queues/{id}/teams",
36916     "title": "Gets queues list",
36917     "examples": [
36918       {
36919         "title": "Example usage:",
36920         "content": "curl https://{domain}/api/whatsapp/queues/{id}/teams -v -u {name}:{password}",
36921         "type": "json"
36922       }
36923     ],
36924     "name": "GetTeams",
36925     "group": "Whatsapp_Queues",
36926     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36927     "version": "0.0.0",
36928     "filename": "server/api/whatsappQueue/index.js",
36929     "groupTitle": "Whatsapp_Queues"
36930   },
36931   {
36932     "type": "delete",
36933     "url": "/api/whatsapp/queues/{id}/users",
36934     "title": "Removes agents from a queue",
36935     "examples": [
36936       {
36937         "title": "Example usage:",
36938         "content": "curl https://{domain}/api/whatsapp/queues/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
36939         "type": "json"
36940       }
36941     ],
36942     "name": "RemoveAgents",
36943     "group": "Whatsapp_Queues",
36944     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36945     "version": "0.0.0",
36946     "filename": "server/api/whatsappQueue/index.js",
36947     "groupTitle": "Whatsapp_Queues"
36948   },
36949   {
36950     "type": "get",
36951     "url": "/api/whatsapp/queues/{id}",
36952     "title": "Gets a single Queue",
36953     "examples": [
36954       {
36955         "title": "Example usage:",
36956         "content": "curl https://{domain}/api/whatsapp/queues/{id} -v -u {name}:{password}",
36957         "type": "json"
36958       }
36959     ],
36960     "name": "ShowQueues",
36961     "group": "Whatsapp_Queues",
36962     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36963     "version": "0.0.0",
36964     "filename": "server/api/whatsappQueue/index.js",
36965     "groupTitle": "Whatsapp_Queues"
36966   },
36967   {
36968     "type": "put",
36969     "url": "/api/whatsapp/queues/{id}",
36970     "title": "Update an existing Queue",
36971     "examples": [
36972       {
36973         "title": "Example usage:",
36974         "content": "curl https://{domain}/api/whatsapp/queues/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
36975         "type": "json"
36976       }
36977     ],
36978     "name": "updateQueues",
36979     "group": "Whatsapp_Queues",
36980     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36981     "version": "0.0.0",
36982     "filename": "server/api/whatsappQueue/index.js",
36983     "groupTitle": "Whatsapp_Queues"
36984   },
36985   {
36986     "type": "post",
36987     "url": "/api/whatsapp/reports/transfer",
36988     "title": "Creates a new Whatsapp Transfer Report",
36989     "examples": [
36990       {
36991         "title": "Example usage:",
36992         "content": "curl https://{domain}/api/whatsapp/reports/transfer -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
36993         "type": "json"
36994       }
36995     ],
36996     "name": "CreateWhatsapp_Transfer_Reports",
36997     "group": "Whatsapp_Transfer_Reports",
36998     "parameter": {
36999       "fields": {
37000         "Body": [
37001           {
37002             "group": "Body",
37003             "type": "String",
37004             "optional": false,
37005             "field": "uniqueid",
37006             "description": ""
37007           },
37008           {
37009             "group": "Body",
37010             "type": "String",
37011             "allowedValues": [
37012               "\"account\"",
37013               "\"agent\"",
37014               "\"queue\""
37015             ],
37016             "optional": false,
37017             "field": "type",
37018             "description": ""
37019           },
37020           {
37021             "group": "Body",
37022             "type": "String",
37023             "optional": true,
37024             "field": "transferredAt",
37025             "description": ""
37026           }
37027         ]
37028       }
37029     },
37030     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37031     "version": "0.0.0",
37032     "filename": "server/api/whatsappTransferReport/index.js",
37033     "groupTitle": "Whatsapp_Transfer_Reports"
37034   },
37035   {
37036     "type": "delete",
37037     "url": "/api/whatsapp/reports/transfer/{id}",
37038     "title": "Deletes a Whatsapp Transfer Report",
37039     "examples": [
37040       {
37041         "title": "Example usage:",
37042         "content": "curl https://{domain}/api/whatsapp/reports/transfer/{id} -v -u {name}:{password} -X DELETE",
37043         "type": "json"
37044       }
37045     ],
37046     "name": "DeleteWhatsapp_Transfer_Reports",
37047     "group": "Whatsapp_Transfer_Reports",
37048     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37049     "version": "0.0.0",
37050     "filename": "server/api/whatsappTransferReport/index.js",
37051     "groupTitle": "Whatsapp_Transfer_Reports"
37052   },
37053   {
37054     "type": "get",
37055     "url": "/api/whatsapp/reports/transfer/describe",
37056     "title": "Gets table info about Whatsapp Transfer Reports",
37057     "examples": [
37058       {
37059         "title": "Example usage:",
37060         "content": "curl https://{domain}/api/whatsapp/reports/transfer/describe -v -u {name}:{password}",
37061         "type": "json"
37062       }
37063     ],
37064     "name": "DescribeWhatsapp_Transfer_Reports",
37065     "group": "Whatsapp_Transfer_Reports",
37066     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37067     "version": "0.0.0",
37068     "filename": "server/api/whatsappTransferReport/index.js",
37069     "groupTitle": "Whatsapp_Transfer_Reports"
37070   },
37071   {
37072     "type": "get",
37073     "url": "/api/whatsapp/reports/transfer",
37074     "title": "Gets a list of Whatsapp Transfer Reports",
37075     "examples": [
37076       {
37077         "title": "Example usage:",
37078         "content": "curl https://{domain}/api/whatsapp/reports/transfer -v -u {name}:{password}",
37079         "type": "json"
37080       }
37081     ],
37082     "name": "GetWhatsapp_Transfer_Reports",
37083     "group": "Whatsapp_Transfer_Reports",
37084     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/whatsapp/reports/transfer?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/whatsapp/reports/transfer?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/whatsapp/reports/transfer?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/whatsapp/reports/transfer?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/whatsapp/reports/transfer?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
37085     "version": "0.0.0",
37086     "filename": "server/api/whatsappTransferReport/index.js",
37087     "groupTitle": "Whatsapp_Transfer_Reports"
37088   },
37089   {
37090     "type": "get",
37091     "url": "/api/whatsapp/reports/transfer/{id}",
37092     "title": "Gets a single Whatsapp Transfer Report",
37093     "examples": [
37094       {
37095         "title": "Example usage:",
37096         "content": "curl https://{domain}/api/whatsapp/reports/transfer/{id} -v -u {name}:{password}",
37097         "type": "json"
37098       }
37099     ],
37100     "name": "ShowWhatsapp_Transfer_Reports",
37101     "group": "Whatsapp_Transfer_Reports",
37102     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37103     "version": "0.0.0",
37104     "filename": "server/api/whatsappTransferReport/index.js",
37105     "groupTitle": "Whatsapp_Transfer_Reports"
37106   },
37107   {
37108     "type": "put",
37109     "url": "/api/whatsapp/reports/transfer/{id}",
37110     "title": "Update an existing Whatsapp Transfer Report",
37111     "examples": [
37112       {
37113         "title": "Example usage:",
37114         "content": "curl https://{domain}/api/whatsapp/reports/transfer/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
37115         "type": "json"
37116       }
37117     ],
37118     "name": "updateWhatsapp_Transfer_Reports",
37119     "group": "Whatsapp_Transfer_Reports",
37120     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37121     "version": "0.0.0",
37122     "filename": "server/api/whatsappTransferReport/index.js",
37123     "groupTitle": "Whatsapp_Transfer_Reports"
37124   },
37125   {
37126     "type": "post",
37127     "url": "/api/integrations/zendesk/accounts",
37128     "title": "Creates a new Zendesk Account",
37129     "examples": [
37130       {
37131         "title": "Example usage:",
37132         "content": "curl https://{domain}/api/integrations/zendesk/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
37133         "type": "json"
37134       }
37135     ],
37136     "name": "CreateZendesk_Accounts",
37137     "group": "Zendesk_Accounts",
37138     "parameter": {
37139       "fields": {
37140         "Body": [
37141           {
37142             "group": "Body",
37143             "type": "String",
37144             "optional": true,
37145             "field": "name",
37146             "description": ""
37147           },
37148           {
37149             "group": "Body",
37150             "type": "String",
37151             "optional": true,
37152             "field": "description",
37153             "description": ""
37154           },
37155           {
37156             "group": "Body",
37157             "type": "String",
37158             "optional": true,
37159             "field": "username",
37160             "description": ""
37161           },
37162           {
37163             "group": "Body",
37164             "type": "String",
37165             "optional": true,
37166             "field": "password",
37167             "description": ""
37168           },
37169           {
37170             "group": "Body",
37171             "type": "String",
37172             "optional": true,
37173             "field": "token",
37174             "description": ""
37175           },
37176           {
37177             "group": "Body",
37178             "type": "String",
37179             "optional": true,
37180             "field": "remoteUri",
37181             "description": ""
37182           },
37183           {
37184             "group": "Body",
37185             "type": "String",
37186             "allowedValues": [
37187               "\"password\"",
37188               "\"token\""
37189             ],
37190             "optional": true,
37191             "field": "authType",
37192             "description": ""
37193           },
37194           {
37195             "group": "Body",
37196             "type": "String",
37197             "optional": false,
37198             "field": "serverUrl",
37199             "description": ""
37200           },
37201           {
37202             "group": "Body",
37203             "type": "String",
37204             "allowedValues": [
37205               "\"integrationTab\"",
37206               "\"newTab\""
37207             ],
37208             "optional": true,
37209             "field": "type",
37210             "description": ""
37211           }
37212         ]
37213       }
37214     },
37215     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37216     "version": "0.0.0",
37217     "filename": "server/api/intZendeskAccount/index.js",
37218     "groupTitle": "Zendesk_Accounts"
37219   },
37220   {
37221     "type": "delete",
37222     "url": "/api/integrations/zendesk/accounts/{id}",
37223     "title": "Deletes a Zendesk Account",
37224     "examples": [
37225       {
37226         "title": "Example usage:",
37227         "content": "curl https://{domain}/api/integrations/zendesk/accounts/{id} -v -u {name}:{password} -X DELETE",
37228         "type": "json"
37229       }
37230     ],
37231     "name": "DeleteZendesk_Accounts",
37232     "group": "Zendesk_Accounts",
37233     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37234     "version": "0.0.0",
37235     "filename": "server/api/intZendeskAccount/index.js",
37236     "groupTitle": "Zendesk_Accounts"
37237   },
37238   {
37239     "type": "get",
37240     "url": "/api/integrations/zendesk/accounts",
37241     "title": "Gets a list of Zendesk Accounts",
37242     "examples": [
37243       {
37244         "title": "Example usage:",
37245         "content": "curl https://{domain}/api/integrations/zendesk/accounts -v -u {name}:{password}",
37246         "type": "json"
37247       }
37248     ],
37249     "name": "GetZendesk_Accounts",
37250     "group": "Zendesk_Accounts",
37251     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/integrations/zendesk/accounts?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/integrations/zendesk/accounts?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/integrations/zendesk/accounts?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/integrations/zendesk/accounts?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/integrations/zendesk/accounts?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
37252     "version": "0.0.0",
37253     "filename": "server/api/intZendeskAccount/index.js",
37254     "groupTitle": "Zendesk_Accounts"
37255   },
37256   {
37257     "type": "get",
37258     "url": "/api/integrations/zendesk/accounts/{id}",
37259     "title": "Gets a single Zendesk Account",
37260     "examples": [
37261       {
37262         "title": "Example usage:",
37263         "content": "curl https://{domain}/api/integrations/zendesk/accounts/{id} -v -u {name}:{password}",
37264         "type": "json"
37265       }
37266     ],
37267     "name": "ShowZendesk_Accounts",
37268     "group": "Zendesk_Accounts",
37269     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37270     "version": "0.0.0",
37271     "filename": "server/api/intZendeskAccount/index.js",
37272     "groupTitle": "Zendesk_Accounts"
37273   },
37274   {
37275     "type": "post",
37276     "url": "/api/integrations/zendesk/accounts/{id}/configurations",
37277     "title": "Creates new configuration",
37278     "examples": [
37279       {
37280         "title": "Example usage:",
37281         "content": "curl https://{domain}/api/integrations/zendesk/accounts/{id}/configurations -d '{\"name\": \"conf1\"}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
37282         "type": "json"
37283       }
37284     ],
37285     "name": "addConfiguration",
37286     "group": "Zendesk_Accounts",
37287     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37288     "version": "0.0.0",
37289     "filename": "server/api/intZendeskAccount/index.js",
37290     "groupTitle": "Zendesk_Accounts"
37291   },
37292   {
37293     "type": "get",
37294     "url": "/api/integrations/zendesk/accounts/{id}/configurations",
37295     "title": "Gets account configurations",
37296     "examples": [
37297       {
37298         "title": "Example usage:",
37299         "content": "curl https://{domain}/api/integrations/zendesk/accounts/{id}/configurations -v -u {name}:{password} -X GET",
37300         "type": "json"
37301       }
37302     ],
37303     "name": "getConfigurations",
37304     "group": "Zendesk_Accounts",
37305     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37306     "version": "0.0.0",
37307     "filename": "server/api/intZendeskAccount/index.js",
37308     "groupTitle": "Zendesk_Accounts"
37309   },
37310   {
37311     "type": "get",
37312     "url": "/api/integrations/zendesk/accounts/{id}/fields",
37313     "title": "Gets account fields",
37314     "examples": [
37315       {
37316         "title": "Example usage:",
37317         "content": "curl https://{domain}/api/integrations/zendesk/accounts/{id}/fields -v -u {name}:{password} -X GET",
37318         "type": "json"
37319       }
37320     ],
37321     "name": "getFields",
37322     "group": "Zendesk_Accounts",
37323     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37324     "version": "0.0.0",
37325     "filename": "server/api/intZendeskAccount/index.js",
37326     "groupTitle": "Zendesk_Accounts"
37327   },
37328   {
37329     "type": "put",
37330     "url": "/api/integrations/zendesk/accounts/{id}",
37331     "title": "Update an existing Zendesk Account",
37332     "examples": [
37333       {
37334         "title": "Example usage:",
37335         "content": "curl https://{domain}/api/integrations/zendesk/accounts/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
37336         "type": "json"
37337       }
37338     ],
37339     "name": "updateZendesk_Accounts",
37340     "group": "Zendesk_Accounts",
37341     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37342     "version": "0.0.0",
37343     "filename": "server/api/intZendeskAccount/index.js",
37344     "groupTitle": "Zendesk_Accounts"
37345   },
37346   {
37347     "type": "post",
37348     "url": "/api/integrations/zendesk/configurations",
37349     "title": "Creates a new Zendesk Configuration",
37350     "examples": [
37351       {
37352         "title": "Example usage:",
37353         "content": "curl https://{domain}/api/integrations/zendesk/configurations -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
37354         "type": "json"
37355       }
37356     ],
37357     "name": "CreateZendesk_Configurations",
37358     "group": "Zendesk_Configurations",
37359     "parameter": {
37360       "fields": {
37361         "Body": [
37362           {
37363             "group": "Body",
37364             "type": "String",
37365             "optional": true,
37366             "field": "name",
37367             "description": ""
37368           },
37369           {
37370             "group": "Body",
37371             "type": "String",
37372             "optional": true,
37373             "field": "description",
37374             "description": ""
37375           }
37376         ]
37377       }
37378     },
37379     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37380     "version": "0.0.0",
37381     "filename": "server/api/intZendeskConfiguration/index.js",
37382     "groupTitle": "Zendesk_Configurations"
37383   },
37384   {
37385     "type": "delete",
37386     "url": "/api/integrations/zendesk/configurations/{id}",
37387     "title": "Deletes a Zendesk Configuration",
37388     "examples": [
37389       {
37390         "title": "Example usage:",
37391         "content": "curl https://{domain}/api/integrations/zendesk/configurations/{id} -v -u {name}:{password} -X DELETE",
37392         "type": "json"
37393       }
37394     ],
37395     "name": "DeleteZendesk_Configurations",
37396     "group": "Zendesk_Configurations",
37397     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37398     "version": "0.0.0",
37399     "filename": "server/api/intZendeskConfiguration/index.js",
37400     "groupTitle": "Zendesk_Configurations"
37401   },
37402   {
37403     "type": "get",
37404     "url": "/api/integrations/zendesk/configurations",
37405     "title": "Gets a list of Zendesk Configurations",
37406     "examples": [
37407       {
37408         "title": "Example usage:",
37409         "content": "curl https://{domain}/api/integrations/zendesk/configurations -v -u {name}:{password}",
37410         "type": "json"
37411       }
37412     ],
37413     "name": "GetZendesk_Configurations",
37414     "group": "Zendesk_Configurations",
37415     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/integrations/zendesk/configurations?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/integrations/zendesk/configurations?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/integrations/zendesk/configurations?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/integrations/zendesk/configurations?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/integrations/zendesk/configurations?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
37416     "version": "0.0.0",
37417     "filename": "server/api/intZendeskConfiguration/index.js",
37418     "groupTitle": "Zendesk_Configurations"
37419   },
37420   {
37421     "type": "get",
37422     "url": "/api/integrations/zendesk/configurations/{id}",
37423     "title": "Gets a single Zendesk Configuration",
37424     "examples": [
37425       {
37426         "title": "Example usage:",
37427         "content": "curl https://{domain}/api/integrations/zendesk/configurations/{id} -v -u {name}:{password}",
37428         "type": "json"
37429       }
37430     ],
37431     "name": "ShowZendesk_Configurations",
37432     "group": "Zendesk_Configurations",
37433     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37434     "version": "0.0.0",
37435     "filename": "server/api/intZendeskConfiguration/index.js",
37436     "groupTitle": "Zendesk_Configurations"
37437   },
37438   {
37439     "type": "get",
37440     "url": "/api/integrations/zendesk/configurations/{id}/descriptions",
37441     "title": "Gets configurations descriptions",
37442     "examples": [
37443       {
37444         "title": "Example usage:",
37445         "content": "curl https://{domain}/api/integrations/zendesk/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
37446         "type": "json"
37447       }
37448     ],
37449     "name": "getDescriptions",
37450     "group": "Zendesk_Configurations",
37451     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37452     "version": "0.0.0",
37453     "filename": "server/api/intZendeskConfiguration/index.js",
37454     "groupTitle": "Zendesk_Configurations"
37455   },
37456   {
37457     "type": "get",
37458     "url": "/api/integrations/zendesk/configurations/{id}/fields",
37459     "title": "Gets configurations fields",
37460     "examples": [
37461       {
37462         "title": "Example usage:",
37463         "content": "curl https://{domain}/api/integrations/zendesk/configurations/{id}/fields -v -u {name}:{password} -X GET",
37464         "type": "json"
37465       }
37466     ],
37467     "name": "getFields",
37468     "group": "Zendesk_Configurations",
37469     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37470     "version": "0.0.0",
37471     "filename": "server/api/intZendeskConfiguration/index.js",
37472     "groupTitle": "Zendesk_Configurations"
37473   },
37474   {
37475     "type": "get",
37476     "url": "/api/integrations/zendesk/configurations/{id}/subjects",
37477     "title": "Gets configurations subjects",
37478     "examples": [
37479       {
37480         "title": "Example usage:",
37481         "content": "curl https://{domain}/api/integrations/zendesk/configurations/{id}/subjects -v -u {name}:{password} -X GET",
37482         "type": "json"
37483       }
37484     ],
37485     "name": "getSubjects",
37486     "group": "Zendesk_Configurations",
37487     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37488     "version": "0.0.0",
37489     "filename": "server/api/intZendeskConfiguration/index.js",
37490     "groupTitle": "Zendesk_Configurations"
37491   },
37492   {
37493     "type": "get",
37494     "url": "/api/integrations/zendesk/configurations/{id}/tags",
37495     "title": "Gets configurations tags",
37496     "examples": [
37497       {
37498         "title": "Example usage:",
37499         "content": "curl https://{domain}/api/integrations/zendesk/configurations/{id}/tags -v -u {name}:{password} -X GET",
37500         "type": "json"
37501       }
37502     ],
37503     "name": "getTags",
37504     "group": "Zendesk_Configurations",
37505     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37506     "version": "0.0.0",
37507     "filename": "server/api/intZendeskConfiguration/index.js",
37508     "groupTitle": "Zendesk_Configurations"
37509   },
37510   {
37511     "type": "post",
37512     "url": "/api/integrations/zendesk/configurations/{id}/tags",
37513     "title": "Sets new tags",
37514     "examples": [
37515       {
37516         "title": "Example usage:",
37517         "content": "curl https://{domain}/api/integrations/zendesk/configurations/{id}/tags -d '{\"ids\": [1,12]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
37518         "type": "json"
37519       }
37520     ],
37521     "name": "setTags",
37522     "group": "Zendesk_Configurations",
37523     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37524     "version": "0.0.0",
37525     "filename": "server/api/intZendeskConfiguration/index.js",
37526     "groupTitle": "Zendesk_Configurations"
37527   },
37528   {
37529     "type": "put",
37530     "url": "/api/integrations/zendesk/configurations/{id}",
37531     "title": "Update an existing Zendesk Configuration",
37532     "examples": [
37533       {
37534         "title": "Example usage:",
37535         "content": "curl https://{domain}/api/integrations/zendesk/configurations/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
37536         "type": "json"
37537       }
37538     ],
37539     "name": "updateZendesk_Configurations",
37540     "group": "Zendesk_Configurations",
37541     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37542     "version": "0.0.0",
37543     "filename": "server/api/intZendeskConfiguration/index.js",
37544     "groupTitle": "Zendesk_Configurations"
37545   },
37546   {
37547     "type": "post",
37548     "url": "/api/integrations/zendesk/fields",
37549     "title": "Creates a new Zendesk Field",
37550     "examples": [
37551       {
37552         "title": "Example usage:",
37553         "content": "curl https://{domain}/api/integrations/zendesk/fields -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
37554         "type": "json"
37555       }
37556     ],
37557     "name": "CreateZendesk_Fields",
37558     "group": "Zendesk_Fields",
37559     "parameter": {
37560       "fields": {
37561         "Body": [
37562           {
37563             "group": "Body",
37564             "type": "String",
37565             "allowedValues": [
37566               "\"string\"",
37567               "\"variable\"",
37568               "\"customVariable\"",
37569               "\"keyValue\"",
37570               "\"picklist\""
37571             ],
37572             "optional": true,
37573             "field": "type",
37574             "description": ""
37575           },
37576           {
37577             "group": "Body",
37578             "type": "String",
37579             "optional": true,
37580             "field": "content",
37581             "description": ""
37582           },
37583           {
37584             "group": "Body",
37585             "type": "String",
37586             "optional": true,
37587             "field": "key",
37588             "description": ""
37589           },
37590           {
37591             "group": "Body",
37592             "type": "String",
37593             "allowedValues": [
37594               "\"string\"",
37595               "\"variable\"",
37596               "\"customVariable\""
37597             ],
37598             "optional": true,
37599             "field": "keyType",
37600             "description": ""
37601           },
37602           {
37603             "group": "Body",
37604             "type": "String",
37605             "optional": true,
37606             "field": "keyContent",
37607             "description": ""
37608           },
37609           {
37610             "group": "Body",
37611             "type": "String",
37612             "optional": true,
37613             "field": "idField",
37614             "description": ""
37615           },
37616           {
37617             "group": "Body",
37618             "type": "String",
37619             "optional": true,
37620             "field": "nameField",
37621             "description": ""
37622           },
37623           {
37624             "group": "Body",
37625             "type": "Boolean",
37626             "optional": true,
37627             "field": "customField",
37628             "description": ""
37629           },
37630           {
37631             "group": "Body",
37632             "type": "String",
37633             "optional": true,
37634             "field": "variableName",
37635             "description": ""
37636           }
37637         ]
37638       }
37639     },
37640     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37641     "version": "0.0.0",
37642     "filename": "server/api/intZendeskField/index.js",
37643     "groupTitle": "Zendesk_Fields"
37644   },
37645   {
37646     "type": "delete",
37647     "url": "/api/integrations/zendesk/fields/{id}",
37648     "title": "Deletes a Zendesk Field",
37649     "examples": [
37650       {
37651         "title": "Example usage:",
37652         "content": "curl https://{domain}/api/integrations/zendesk/fields/{id} -v -u {name}:{password} -X DELETE",
37653         "type": "json"
37654       }
37655     ],
37656     "name": "DeleteZendesk_Fields",
37657     "group": "Zendesk_Fields",
37658     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37659     "version": "0.0.0",
37660     "filename": "server/api/intZendeskField/index.js",
37661     "groupTitle": "Zendesk_Fields"
37662   },
37663   {
37664     "type": "get",
37665     "url": "/api/integrations/zendesk/fields",
37666     "title": "Gets a list of Zendesk Fields",
37667     "examples": [
37668       {
37669         "title": "Example usage:",
37670         "content": "curl https://{domain}/api/integrations/zendesk/fields -v -u {name}:{password}",
37671         "type": "json"
37672       }
37673     ],
37674     "name": "GetZendesk_Fields",
37675     "group": "Zendesk_Fields",
37676     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/integrations/zendesk/fields?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/integrations/zendesk/fields?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/integrations/zendesk/fields?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/integrations/zendesk/fields?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/integrations/zendesk/fields?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
37677     "version": "0.0.0",
37678     "filename": "server/api/intZendeskField/index.js",
37679     "groupTitle": "Zendesk_Fields"
37680   },
37681   {
37682     "type": "get",
37683     "url": "/api/integrations/zendesk/fields/{id}",
37684     "title": "Gets a single Zendesk Field",
37685     "examples": [
37686       {
37687         "title": "Example usage:",
37688         "content": "curl https://{domain}/api/integrations/zendesk/fields/{id} -v -u {name}:{password}",
37689         "type": "json"
37690       }
37691     ],
37692     "name": "ShowZendesk_Fields",
37693     "group": "Zendesk_Fields",
37694     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37695     "version": "0.0.0",
37696     "filename": "server/api/intZendeskField/index.js",
37697     "groupTitle": "Zendesk_Fields"
37698   },
37699   {
37700     "type": "put",
37701     "url": "/api/integrations/zendesk/fields/{id}",
37702     "title": "Update an existing Zendesk Field",
37703     "examples": [
37704       {
37705         "title": "Example usage:",
37706         "content": "curl https://{domain}/api/integrations/zendesk/fields/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
37707         "type": "json"
37708       }
37709     ],
37710     "name": "updateZendesk_Fields",
37711     "group": "Zendesk_Fields",
37712     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37713     "version": "0.0.0",
37714     "filename": "server/api/intZendeskField/index.js",
37715     "groupTitle": "Zendesk_Fields"
37716   },
37717   {
37718     "type": "post",
37719     "url": "/api/integrations/zoho/accounts",
37720     "title": "Creates a new Zoho Account",
37721     "examples": [
37722       {
37723         "title": "Example usage:",
37724         "content": "curl https://{domain}/api/integrations/zoho/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
37725         "type": "json"
37726       }
37727     ],
37728     "name": "CreateZoho_Accounts",
37729     "group": "Zoho_Accounts",
37730     "parameter": {
37731       "fields": {
37732         "Body": [
37733           {
37734             "group": "Body",
37735             "type": "String",
37736             "optional": true,
37737             "field": "name",
37738             "description": ""
37739           },
37740           {
37741             "group": "Body",
37742             "type": "String",
37743             "optional": true,
37744             "field": "description",
37745             "description": ""
37746           },
37747           {
37748             "group": "Body",
37749             "type": "String",
37750             "optional": true,
37751             "field": "host",
37752             "description": ""
37753           },
37754           {
37755             "group": "Body",
37756             "type": "String",
37757             "optional": true,
37758             "field": "zone",
37759             "description": ""
37760           },
37761           {
37762             "group": "Body",
37763             "type": "String",
37764             "optional": true,
37765             "field": "clientId",
37766             "description": ""
37767           },
37768           {
37769             "group": "Body",
37770             "type": "String",
37771             "optional": true,
37772             "field": "clientSecret",
37773             "description": ""
37774           },
37775           {
37776             "group": "Body",
37777             "type": "String",
37778             "optional": false,
37779             "field": "serverUrl",
37780             "description": ""
37781           },
37782           {
37783             "group": "Body",
37784             "type": "String",
37785             "optional": true,
37786             "field": "code",
37787             "description": ""
37788           },
37789           {
37790             "group": "Body",
37791             "type": "String",
37792             "optional": true,
37793             "field": "refreshToken",
37794             "description": ""
37795           }
37796         ]
37797       }
37798     },
37799     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37800     "version": "0.0.0",
37801     "filename": "server/api/intZohoAccount/index.js",
37802     "groupTitle": "Zoho_Accounts"
37803   },
37804   {
37805     "type": "delete",
37806     "url": "/api/integrations/zoho/accounts/{id}",
37807     "title": "Deletes a Zoho Account",
37808     "examples": [
37809       {
37810         "title": "Example usage:",
37811         "content": "curl https://{domain}/api/integrations/zoho/accounts/{id} -v -u {name}:{password} -X DELETE",
37812         "type": "json"
37813       }
37814     ],
37815     "name": "DeleteZoho_Accounts",
37816     "group": "Zoho_Accounts",
37817     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37818     "version": "0.0.0",
37819     "filename": "server/api/intZohoAccount/index.js",
37820     "groupTitle": "Zoho_Accounts"
37821   },
37822   {
37823     "type": "get",
37824     "url": "/api/integrations/zoho/accounts",
37825     "title": "Gets a list of Zoho Accounts",
37826     "examples": [
37827       {
37828         "title": "Example usage:",
37829         "content": "curl https://{domain}/api/integrations/zoho/accounts -v -u {name}:{password}",
37830         "type": "json"
37831       }
37832     ],
37833     "name": "GetZoho_Accounts",
37834     "group": "Zoho_Accounts",
37835     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/integrations/zoho/accounts?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/integrations/zoho/accounts?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/integrations/zoho/accounts?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/integrations/zoho/accounts?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/integrations/zoho/accounts?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
37836     "version": "0.0.0",
37837     "filename": "server/api/intZohoAccount/index.js",
37838     "groupTitle": "Zoho_Accounts"
37839   },
37840   {
37841     "type": "get",
37842     "url": "/api/integrations/zoho/accounts/{id}",
37843     "title": "Gets a single Zoho Account",
37844     "examples": [
37845       {
37846         "title": "Example usage:",
37847         "content": "curl https://{domain}/api/integrations/zoho/accounts/{id} -v -u {name}:{password}",
37848         "type": "json"
37849       }
37850     ],
37851     "name": "ShowZoho_Accounts",
37852     "group": "Zoho_Accounts",
37853     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37854     "version": "0.0.0",
37855     "filename": "server/api/intZohoAccount/index.js",
37856     "groupTitle": "Zoho_Accounts"
37857   },
37858   {
37859     "type": "post",
37860     "url": "/api/integrations/zoho/accounts/{id}/configurations",
37861     "title": "Creates new configuration",
37862     "examples": [
37863       {
37864         "title": "Example usage:",
37865         "content": "curl https://{domain}/api/integrations/zoho/accounts/{id}/configurations -d '{\"name\": \"conf1\"}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
37866         "type": "json"
37867       }
37868     ],
37869     "name": "addConfiguration",
37870     "group": "Zoho_Accounts",
37871     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37872     "version": "0.0.0",
37873     "filename": "server/api/intZohoAccount/index.js",
37874     "groupTitle": "Zoho_Accounts"
37875   },
37876   {
37877     "type": "get",
37878     "url": "/api/integrations/zoho/accounts/{id}/configurations",
37879     "title": "Gets account configurations",
37880     "examples": [
37881       {
37882         "title": "Example usage:",
37883         "content": "curl https://{domain}/api/integrations/zoho/accounts/{id}/configurations -v -u {name}:{password} -X GET",
37884         "type": "json"
37885       }
37886     ],
37887     "name": "getConfigurations",
37888     "group": "Zoho_Accounts",
37889     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37890     "version": "0.0.0",
37891     "filename": "server/api/intZohoAccount/index.js",
37892     "groupTitle": "Zoho_Accounts"
37893   },
37894   {
37895     "type": "get",
37896     "url": "/api/integrations/zoho/accounts/{id}/fields",
37897     "title": "Gets account fields",
37898     "examples": [
37899       {
37900         "title": "Example usage:",
37901         "content": "curl https://{domain}/api/integrations/zoho/accounts/{id}/fields -v -u {name}:{password} -X GET",
37902         "type": "json"
37903       }
37904     ],
37905     "name": "getFields",
37906     "group": "Zoho_Accounts",
37907     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37908     "version": "0.0.0",
37909     "filename": "server/api/intZohoAccount/index.js",
37910     "groupTitle": "Zoho_Accounts"
37911   },
37912   {
37913     "type": "put",
37914     "url": "/api/integrations/zoho/accounts/{id}",
37915     "title": "Update an existing Zoho Account",
37916     "examples": [
37917       {
37918         "title": "Example usage:",
37919         "content": "curl https://{domain}/api/integrations/zoho/accounts/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
37920         "type": "json"
37921       }
37922     ],
37923     "name": "updateZoho_Accounts",
37924     "group": "Zoho_Accounts",
37925     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37926     "version": "0.0.0",
37927     "filename": "server/api/intZohoAccount/index.js",
37928     "groupTitle": "Zoho_Accounts"
37929   },
37930   {
37931     "type": "post",
37932     "url": "/api/integrations/zoho/configurations",
37933     "title": "Creates a new Zoho Configuration",
37934     "examples": [
37935       {
37936         "title": "Example usage:",
37937         "content": "curl https://{domain}/api/integrations/zoho/configurations -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
37938         "type": "json"
37939       }
37940     ],
37941     "name": "CreateZoho_Configurations",
37942     "group": "Zoho_Configurations",
37943     "parameter": {
37944       "fields": {
37945         "Body": [
37946           {
37947             "group": "Body",
37948             "type": "String",
37949             "optional": true,
37950             "field": "name",
37951             "description": ""
37952           },
37953           {
37954             "group": "Body",
37955             "type": "String",
37956             "allowedValues": [
37957               "\"lead\"",
37958               "\"contact\"",
37959               "\"nothing\""
37960             ],
37961             "optional": true,
37962             "field": "moduleCreate",
37963             "description": ""
37964           },
37965           {
37966             "group": "Body",
37967             "type": "String",
37968             "allowedValues": [
37969               "\"contact_lead\"",
37970               "\"contact\"",
37971               "\"lead\""
37972             ],
37973             "optional": true,
37974             "field": "moduleSearch",
37975             "description": ""
37976           },
37977           {
37978             "group": "Body",
37979             "type": "String",
37980             "optional": true,
37981             "field": "description",
37982             "description": ""
37983           }
37984         ]
37985       }
37986     },
37987     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37988     "version": "0.0.0",
37989     "filename": "server/api/intZohoConfiguration/index.js",
37990     "groupTitle": "Zoho_Configurations"
37991   },
37992   {
37993     "type": "delete",
37994     "url": "/api/integrations/zoho/configurations/{id}",
37995     "title": "Deletes a Zoho Configuration",
37996     "examples": [
37997       {
37998         "title": "Example usage:",
37999         "content": "curl https://{domain}/api/integrations/zoho/configurations/{id} -v -u {name}:{password} -X DELETE",
38000         "type": "json"
38001       }
38002     ],
38003     "name": "DeleteZoho_Configurations",
38004     "group": "Zoho_Configurations",
38005     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
38006     "version": "0.0.0",
38007     "filename": "server/api/intZohoConfiguration/index.js",
38008     "groupTitle": "Zoho_Configurations"
38009   },
38010   {
38011     "type": "get",
38012     "url": "/api/integrations/zoho/configurations",
38013     "title": "Gets a list of Zoho Configurations",
38014     "examples": [
38015       {
38016         "title": "Example usage:",
38017         "content": "curl https://{domain}/api/integrations/zoho/configurations -v -u {name}:{password}",
38018         "type": "json"
38019       }
38020     ],
38021     "name": "GetZoho_Configurations",
38022     "group": "Zoho_Configurations",
38023     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/integrations/zoho/configurations?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/integrations/zoho/configurations?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/integrations/zoho/configurations?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/integrations/zoho/configurations?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/integrations/zoho/configurations?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
38024     "version": "0.0.0",
38025     "filename": "server/api/intZohoConfiguration/index.js",
38026     "groupTitle": "Zoho_Configurations"
38027   },
38028   {
38029     "type": "get",
38030     "url": "/api/integrations/zoho/configurations/{id}",
38031     "title": "Gets a single Zoho Configuration",
38032     "examples": [
38033       {
38034         "title": "Example usage:",
38035         "content": "curl https://{domain}/api/integrations/zoho/configurations/{id} -v -u {name}:{password}",
38036         "type": "json"
38037       }
38038     ],
38039     "name": "ShowZoho_Configurations",
38040     "group": "Zoho_Configurations",
38041     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
38042     "version": "0.0.0",
38043     "filename": "server/api/intZohoConfiguration/index.js",
38044     "groupTitle": "Zoho_Configurations"
38045   },
38046   {
38047     "type": "get",
38048     "url": "/api/integrations/zoho/configurations/{id}/descriptions",
38049     "title": "Gets configurations descriptions",
38050     "examples": [
38051       {
38052         "title": "Example usage:",
38053         "content": "curl https://{domain}/api/integrations/zoho/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
38054         "type": "json"
38055       }
38056     ],
38057     "name": "getDescriptions",
38058     "group": "Zoho_Configurations",
38059     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
38060     "version": "0.0.0",
38061     "filename": "server/api/intZohoConfiguration/index.js",
38062     "groupTitle": "Zoho_Configurations"
38063   },
38064   {
38065     "type": "get",
38066     "url": "/api/integrations/zoho/configurations/{id}/fields",
38067     "title": "Gets configurations fields",
38068     "examples": [
38069       {
38070         "title": "Example usage:",
38071         "content": "curl https://{domain}/api/integrations/zoho/configurations/{id}/fields -v -u {name}:{password} -X GET",
38072         "type": "json"
38073       }
38074     ],
38075     "name": "getFields",
38076     "group": "Zoho_Configurations",
38077     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
38078     "version": "0.0.0",
38079     "filename": "server/api/intZohoConfiguration/index.js",
38080     "groupTitle": "Zoho_Configurations"
38081   },
38082   {
38083     "type": "get",
38084     "url": "/api/integrations/zoho/configurations/{id}/subjects",
38085     "title": "Gets configurations subjects",
38086     "examples": [
38087       {
38088         "title": "Example usage:",
38089         "content": "curl https://{domain}/api/integrations/zoho/configurations/{id}/subjects -v -u {name}:{password} -X GET",
38090         "type": "json"
38091       }
38092     ],
38093     "name": "getSubjects",
38094     "group": "Zoho_Configurations",
38095     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
38096     "version": "0.0.0",
38097     "filename": "server/api/intZohoConfiguration/index.js",
38098     "groupTitle": "Zoho_Configurations"
38099   },
38100   {
38101     "type": "put",
38102     "url": "/api/integrations/zoho/configurations/{id}",
38103     "title": "Update an existing Zoho Configuration",
38104     "examples": [
38105       {
38106         "title": "Example usage:",
38107         "content": "curl https://{domain}/api/integrations/zoho/configurations/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
38108         "type": "json"
38109       }
38110     ],
38111     "name": "updateZoho_Configurations",
38112     "group": "Zoho_Configurations",
38113     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
38114     "version": "0.0.0",
38115     "filename": "server/api/intZohoConfiguration/index.js",
38116     "groupTitle": "Zoho_Configurations"
38117   },
38118   {
38119     "type": "post",
38120     "url": "/api/integrations/zoho/fields",
38121     "title": "Creates a new Zoho Field",
38122     "examples": [
38123       {
38124         "title": "Example usage:",
38125         "content": "curl https://{domain}/api/integrations/zoho/fields -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
38126         "type": "json"
38127       }
38128     ],
38129     "name": "CreateZoho_Fields",
38130     "group": "Zoho_Fields",
38131     "parameter": {
38132       "fields": {
38133         "Body": [
38134           {
38135             "group": "Body",
38136             "type": "String",
38137             "allowedValues": [
38138               "\"string\"",
38139               "\"variable\"",
38140               "\"customVariable\"",
38141               "\"keyValue\"",
38142               "\"picklist\""
38143             ],
38144             "optional": true,
38145             "field": "type",
38146             "description": ""
38147           },
38148           {
38149             "group": "Body",
38150             "type": "String",
38151             "optional": true,
38152             "field": "content",
38153             "description": ""
38154           },
38155           {
38156             "group": "Body",
38157             "type": "String",
38158             "optional": true,
38159             "field": "key",
38160             "description": ""
38161           },
38162           {
38163             "group": "Body",
38164             "type": "String",
38165             "allowedValues": [
38166               "\"string\"",
38167               "\"variable\"",
38168               "\"customVariable\""
38169             ],
38170             "optional": true,
38171             "field": "keyType",
38172             "description": ""
38173           },
38174           {
38175             "group": "Body",
38176             "type": "String",
38177             "optional": true,
38178             "field": "keyContent",
38179             "description": ""
38180           },
38181           {
38182             "group": "Body",
38183             "type": "String",
38184             "optional": true,
38185             "field": "idField",
38186             "description": ""
38187           },
38188           {
38189             "group": "Body",
38190             "type": "String",
38191             "optional": true,
38192             "field": "nameField",
38193             "description": ""
38194           },
38195           {
38196             "group": "Body",
38197             "type": "Boolean",
38198             "optional": true,
38199             "field": "customField",
38200             "description": ""
38201           },
38202           {
38203             "group": "Body",
38204             "type": "String",
38205             "optional": true,
38206             "field": "variableName",
38207             "description": ""
38208           }
38209         ]
38210       }
38211     },
38212     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
38213     "version": "0.0.0",
38214     "filename": "server/api/intZohoField/index.js",
38215     "groupTitle": "Zoho_Fields"
38216   },
38217   {
38218     "type": "delete",
38219     "url": "/api/integrations/zoho/fields/{id}",
38220     "title": "Deletes a Zoho Field",
38221     "examples": [
38222       {
38223         "title": "Example usage:",
38224         "content": "curl https://{domain}/api/integrations/zoho/fields/{id} -v -u {name}:{password} -X DELETE",
38225         "type": "json"
38226       }
38227     ],
38228     "name": "DeleteZoho_Fields",
38229     "group": "Zoho_Fields",
38230     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
38231     "version": "0.0.0",
38232     "filename": "server/api/intZohoField/index.js",
38233     "groupTitle": "Zoho_Fields"
38234   },
38235   {
38236     "type": "get",
38237     "url": "/api/integrations/zoho/fields",
38238     "title": "Gets a list of Zoho Fields",
38239     "examples": [
38240       {
38241         "title": "Example usage:",
38242         "content": "curl https://{domain}/api/integrations/zoho/fields -v -u {name}:{password}",
38243         "type": "json"
38244       }
38245     ],
38246     "name": "GetZoho_Fields",
38247     "group": "Zoho_Fields",
38248     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/integrations/zoho/fields?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/integrations/zoho/fields?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/integrations/zoho/fields?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/integrations/zoho/fields?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/integrations/zoho/fields?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
38249     "version": "0.0.0",
38250     "filename": "server/api/intZohoField/index.js",
38251     "groupTitle": "Zoho_Fields"
38252   },
38253   {
38254     "type": "get",
38255     "url": "/api/integrations/zoho/fields/{id}",
38256     "title": "Gets a single Zoho Field",
38257     "examples": [
38258       {
38259         "title": "Example usage:",
38260         "content": "curl https://{domain}/api/integrations/zoho/fields/{id} -v -u {name}:{password}",
38261         "type": "json"
38262       }
38263     ],
38264     "name": "ShowZoho_Fields",
38265     "group": "Zoho_Fields",
38266     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
38267     "version": "0.0.0",
38268     "filename": "server/api/intZohoField/index.js",
38269     "groupTitle": "Zoho_Fields"
38270   },
38271   {
38272     "type": "put",
38273     "url": "/api/integrations/zoho/fields/{id}",
38274     "title": "Update an existing Zoho Field",
38275     "examples": [
38276       {
38277         "title": "Example usage:",
38278         "content": "curl https://{domain}/api/integrations/zoho/fields/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
38279         "type": "json"
38280       }
38281     ],
38282     "name": "updateZoho_Fields",
38283     "group": "Zoho_Fields",
38284     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
38285     "version": "0.0.0",
38286     "filename": "server/api/intZohoField/index.js",
38287     "groupTitle": "Zoho_Fields"
38288   },
38289   {
38290     "type": "post",
38291     "url": "/api/cdr",
38292     "title": "Creates a new Cdr",
38293     "examples": [
38294       {
38295         "title": "Example usage:",
38296         "content": "curl https://{domain}/api/cdr -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
38297         "type": "json"
38298       }
38299     ],
38300     "name": "CreateCdrs",
38301     "group": "cdr",
38302     "parameter": {
38303       "fields": {
38304         "Body": [
38305           {
38306             "group": "Body",
38307             "type": "String",
38308             "optional": false,
38309             "field": "calldate",
38310             "description": ""
38311           },
38312           {
38313             "group": "Body",
38314             "type": "String",
38315             "optional": true,
38316             "field": "clid",
38317             "description": ""
38318           },
38319           {
38320             "group": "Body",
38321             "type": "String",
38322             "optional": true,
38323             "field": "src",
38324             "description": ""
38325           },
38326           {
38327             "group": "Body",
38328             "type": "String",
38329             "optional": true,
38330             "field": "dst",
38331             "description": ""
38332           },
38333           {
38334             "group": "Body",
38335             "type": "String",
38336             "optional": true,
38337             "field": "dcontext",
38338             "description": ""
38339           },
38340           {
38341             "group": "Body",
38342             "type": "String",
38343             "optional": true,
38344             "field": "channel",
38345             "description": ""
38346           },
38347           {
38348             "group": "Body",
38349             "type": "String",
38350             "optional": true,
38351             "field": "dstchannel",
38352             "description": ""
38353           },
38354           {
38355             "group": "Body",
38356             "type": "String",
38357             "optional": true,
38358             "field": "lastapp",
38359             "description": ""
38360           },
38361           {
38362             "group": "Body",
38363             "type": "String",
38364             "optional": true,
38365             "field": "lastdata",
38366             "description": ""
38367           },
38368           {
38369             "group": "Body",
38370             "type": "Integer",
38371             "optional": false,
38372             "field": "duration",
38373             "description": ""
38374           },
38375           {
38376             "group": "Body",
38377             "type": "Integer",
38378             "optional": false,
38379             "field": "billsec",
38380             "description": ""
38381           },
38382           {
38383             "group": "Body",
38384             "type": "String",
38385             "optional": true,
38386             "field": "disposition",
38387             "description": ""
38388           },
38389           {
38390             "group": "Body",
38391             "type": "Integer",
38392             "optional": false,
38393             "field": "amaflags",
38394             "description": ""
38395           },
38396           {
38397             "group": "Body",
38398             "type": "String",
38399             "optional": true,
38400             "field": "accountcode",
38401             "description": ""
38402           },
38403           {
38404             "group": "Body",
38405             "type": "String",
38406             "optional": true,
38407             "field": "userfield",
38408             "description": ""
38409           },
38410           {
38411             "group": "Body",
38412             "type": "String",
38413             "optional": true,
38414             "field": "uniqueid",
38415             "description": ""
38416           },
38417           {
38418             "group": "Body",
38419             "type": "String",
38420             "optional": true,
38421             "field": "linkedid",
38422             "description": ""
38423           },
38424           {
38425             "group": "Body",
38426             "type": "String",
38427             "optional": true,
38428             "field": "sequence",
38429             "description": ""
38430           },
38431           {
38432             "group": "Body",
38433             "type": "String",
38434             "optional": true,
38435             "field": "peeraccount",
38436             "description": ""
38437           },
38438           {
38439             "group": "Body",
38440             "type": "String",
38441             "optional": true,
38442             "field": "type",
38443             "description": ""
38444           },
38445           {
38446             "group": "Body",
38447             "type": "String",
38448             "optional": true,
38449             "field": "tag",
38450             "description": ""
38451           }
38452         ]
38453       }
38454     },
38455     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
38456     "version": "0.0.0",
38457     "filename": "server/api/cdr/index.js",
38458     "groupTitle": "cdr"
38459   },
38460   {
38461     "type": "delete",
38462     "url": "/api/cdr/{id}",
38463     "title": "Deletes a Cdr",
38464     "examples": [
38465       {
38466         "title": "Example usage:",
38467         "content": "curl https://{domain}/api/cdr/{id} -v -u {name}:{password} -X DELETE",
38468         "type": "json"
38469       }
38470     ],
38471     "name": "DeleteCdrs",
38472     "group": "cdr",
38473     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
38474     "version": "0.0.0",
38475     "filename": "server/api/cdr/index.js",
38476     "groupTitle": "cdr"
38477   },
38478   {
38479     "type": "get",
38480     "url": "/api/cdr/describe",
38481     "title": "Gets table info about Cdrs",
38482     "examples": [
38483       {
38484         "title": "Example usage:",
38485         "content": "curl https://{domain}/api/cdr/describe -v -u {name}:{password}",
38486         "type": "json"
38487       }
38488     ],
38489     "name": "DescribeCdrs",
38490     "group": "cdr",
38491     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
38492     "version": "0.0.0",
38493     "filename": "server/api/cdr/index.js",
38494     "groupTitle": "cdr"
38495   },
38496   {
38497     "type": "get",
38498     "url": "/api/cdr",
38499     "title": "Gets a list of Cdrs",
38500     "examples": [
38501       {
38502         "title": "Example usage:",
38503         "content": "curl https://{domain}/api/cdr -v -u {name}:{password}",
38504         "type": "json"
38505       }
38506     ],
38507     "name": "GetCdrs",
38508     "group": "cdr",
38509     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/cdr?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/cdr?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/cdr?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/cdr?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/cdr?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
38510     "version": "0.0.0",
38511     "filename": "server/api/cdr/index.js",
38512     "groupTitle": "cdr"
38513   },
38514   {
38515     "type": "get",
38516     "url": "/api/cdr/{id}",
38517     "title": "Gets a single Cdr",
38518     "examples": [
38519       {
38520         "title": "Example usage:",
38521         "content": "curl https://{domain}/api/cdr/{id} -v -u {name}:{password}",
38522         "type": "json"
38523       }
38524     ],
38525     "name": "ShowCdrs",
38526     "group": "cdr",
38527     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
38528     "version": "0.0.0",
38529     "filename": "server/api/cdr/index.js",
38530     "groupTitle": "cdr"
38531   },
38532   {
38533     "type": "put",
38534     "url": "/api/cdr/{id}",
38535     "title": "Update an existing Cdr",
38536     "examples": [
38537       {
38538         "title": "Example usage:",
38539         "content": "curl https://{domain}/api/cdr/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
38540         "type": "json"
38541       }
38542     ],
38543     "name": "updateCdrs",
38544     "group": "cdr",
38545     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
38546     "version": "0.0.0",
38547     "filename": "server/api/cdr/index.js",
38548     "groupTitle": "cdr"
38549   },
38550   {
38551     "type": "post",
38552     "url": "/api/voiceQueuesLog",
38553     "title": "Creates a new VoiceQueuesLog",
38554     "examples": [
38555       {
38556         "title": "Example usage:",
38557         "content": "curl https://{domain}/api/voiceQueuesLog -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
38558         "type": "json"
38559       }
38560     ],
38561     "name": "CreateVoiceQueuesLogs",
38562     "group": "voiceQueuesLog",
38563     "parameter": {
38564       "fields": {
38565         "Body": [
38566           {
38567             "group": "Body",
38568             "type": "String",
38569             "optional": true,
38570             "field": "time",
38571             "description": ""
38572           },
38573           {
38574             "group": "Body",
38575             "type": "String",
38576             "optional": false,
38577             "field": "callid",
38578             "description": ""
38579           },
38580           {
38581             "group": "Body",
38582             "type": "String",
38583             "optional": false,
38584             "field": "queuename",
38585             "description": ""
38586           },
38587           {
38588             "group": "Body",
38589             "type": "String",
38590             "optional": false,
38591             "field": "agent",
38592             "description": ""
38593           },
38594           {
38595             "group": "Body",
38596             "type": "String",
38597             "optional": false,
38598             "field": "event",
38599             "description": ""
38600           },
38601           {
38602             "group": "Body",
38603             "type": "String",
38604             "optional": false,
38605             "field": "data",
38606             "description": ""
38607           },
38608           {
38609             "group": "Body",
38610             "type": "String",
38611             "optional": false,
38612             "field": "data1",
38613             "description": ""
38614           },
38615           {
38616             "group": "Body",
38617             "type": "String",
38618             "optional": false,
38619             "field": "data2",
38620             "description": ""
38621           },
38622           {
38623             "group": "Body",
38624             "type": "String",
38625             "optional": false,
38626             "field": "data3",
38627             "description": ""
38628           },
38629           {
38630             "group": "Body",
38631             "type": "String",
38632             "optional": false,
38633             "field": "data4",
38634             "description": ""
38635           },
38636           {
38637             "group": "Body",
38638             "type": "String",
38639             "optional": false,
38640             "field": "data5",
38641             "description": ""
38642           },
38643           {
38644             "group": "Body",
38645             "type": "String",
38646             "optional": false,
38647             "field": "dtm",
38648             "description": ""
38649           }
38650         ]
38651       }
38652     },
38653     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
38654     "version": "0.0.0",
38655     "filename": "server/api/voiceQueuesLog/index.js",
38656     "groupTitle": "voiceQueuesLog"
38657   },
38658   {
38659     "type": "delete",
38660     "url": "/api/voiceQueuesLog/{id}",
38661     "title": "Deletes a VoiceQueuesLog",
38662     "examples": [
38663       {
38664         "title": "Example usage:",
38665         "content": "curl https://{domain}/api/voiceQueuesLog/{id} -v -u {name}:{password} -X DELETE",
38666         "type": "json"
38667       }
38668     ],
38669     "name": "DeleteVoiceQueuesLogs",
38670     "group": "voiceQueuesLog",
38671     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
38672     "version": "0.0.0",
38673     "filename": "server/api/voiceQueuesLog/index.js",
38674     "groupTitle": "voiceQueuesLog"
38675   },
38676   {
38677     "type": "get",
38678     "url": "/api/voiceQueuesLog",
38679     "title": "Gets a list of VoiceQueuesLogs",
38680     "examples": [
38681       {
38682         "title": "Example usage:",
38683         "content": "curl https://{domain}/api/voiceQueuesLog -v -u {name}:{password}",
38684         "type": "json"
38685       }
38686     ],
38687     "name": "GetVoiceQueuesLogs",
38688     "group": "voiceQueuesLog",
38689     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/voiceQueuesLog?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/voiceQueuesLog?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/voiceQueuesLog?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/voiceQueuesLog?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/voiceQueuesLog?offset=5&amp;limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
38690     "version": "0.0.0",
38691     "filename": "server/api/voiceQueuesLog/index.js",
38692     "groupTitle": "voiceQueuesLog"
38693   },
38694   {
38695     "type": "get",
38696     "url": "/api/voiceQueuesLog/{id}",
38697     "title": "Gets a single VoiceQueuesLog",
38698     "examples": [
38699       {
38700         "title": "Example usage:",
38701         "content": "curl https://{domain}/api/voiceQueuesLog/{id} -v -u {name}:{password}",
38702         "type": "json"
38703       }
38704     ],
38705     "name": "ShowVoiceQueuesLogs",
38706     "group": "voiceQueuesLog",
38707     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
38708     "version": "0.0.0",
38709     "filename": "server/api/voiceQueuesLog/index.js",
38710     "groupTitle": "voiceQueuesLog"
38711   },
38712   {
38713     "type": "put",
38714     "url": "/api/voiceQueuesLog/{id}",
38715     "title": "Update an existing VoiceQueuesLog",
38716     "examples": [
38717       {
38718         "title": "Example usage:",
38719         "content": "curl https://{domain}/api/voiceQueuesLog/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
38720         "type": "json"
38721       }
38722     ],
38723     "name": "updateVoiceQueuesLogs",
38724     "group": "voiceQueuesLog",
38725     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
38726     "version": "0.0.0",
38727     "filename": "server/api/voiceQueuesLog/index.js",
38728     "groupTitle": "voiceQueuesLog"
38729   }
38730 ] });