ec0fdb3111e1f3d83a1b082029e01d5374608e74
[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": "/Users/andreabianco/Documents/Developments/motion-v2/server/api/cmHopper/index.js",
17     "groupTitle": "/Users/andreabianco/Documents/Developments/motion-v2/server/api/cmHopper/index.js"
18   },
19   {
20     "type": "delete",
21     "url": "/api/actions/{id}",
22     "title": "Deletes a Action",
23     "examples": [
24       {
25         "title": "Example usage:",
26         "content": "curl https://{domain}/api/actions/{id} -v -u {name}:{password} -X DELETE",
27         "type": "json"
28       }
29     ],
30     "name": "DeleteActions",
31     "group": "Actions",
32     "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>",
33     "version": "0.0.0",
34     "filename": "server/api/action/index.js",
35     "groupTitle": "Actions"
36   },
37   {
38     "type": "put",
39     "url": "/api/actions/{id}",
40     "title": "Update an existing Action",
41     "examples": [
42       {
43         "title": "Example usage:",
44         "content": "curl https://{domain}/api/actions/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
45         "type": "json"
46       }
47     ],
48     "name": "updateActions",
49     "group": "Actions",
50     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
51     "version": "0.0.0",
52     "filename": "server/api/action/index.js",
53     "groupTitle": "Actions"
54   },
55   {
56     "type": "post",
57     "url": "/api/analytics/custom_reports",
58     "title": "Creates a new Analytic Custom Report",
59     "examples": [
60       {
61         "title": "Example usage:",
62         "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",
63         "type": "json"
64       }
65     ],
66     "name": "CreateAnalytic_Custom_Reports",
67     "group": "Analytic_Custom_Reports",
68     "parameter": {
69       "fields": {
70         "Body": [
71           {
72             "group": "Body",
73             "type": "String",
74             "optional": false,
75             "field": "name",
76             "description": ""
77           },
78           {
79             "group": "Body",
80             "type": "String",
81             "optional": true,
82             "field": "description",
83             "description": ""
84           },
85           {
86             "group": "Body",
87             "type": "String",
88             "optional": true,
89             "field": "parent",
90             "description": ""
91           },
92           {
93             "group": "Body",
94             "type": "String",
95             "optional": true,
96             "field": "table",
97             "description": ""
98           },
99           {
100             "group": "Body",
101             "type": "Text",
102             "optional": true,
103             "field": "conditions",
104             "description": ""
105           },
106           {
107             "group": "Body",
108             "type": "Text",
109             "optional": true,
110             "field": "joins",
111             "description": ""
112           }
113         ]
114       }
115     },
116     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
117     "version": "0.0.0",
118     "filename": "server/api/analyticCustomReport/index.js",
119     "groupTitle": "Analytic_Custom_Reports"
120   },
121   {
122     "type": "delete",
123     "url": "/api/analytics/custom_reports/{id}",
124     "title": "Deletes a Analytic Custom Report",
125     "examples": [
126       {
127         "title": "Example usage:",
128         "content": "curl https://{domain}/api/analytics/custom_reports/{id} -v -u {name}:{password} -X DELETE",
129         "type": "json"
130       }
131     ],
132     "name": "DeleteAnalytic_Custom_Reports",
133     "group": "Analytic_Custom_Reports",
134     "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>",
135     "version": "0.0.0",
136     "filename": "server/api/analyticCustomReport/index.js",
137     "groupTitle": "Analytic_Custom_Reports"
138   },
139   {
140     "type": "get",
141     "url": "/api/analytics/custom_reports",
142     "title": "Gets a list of Analytic Custom Reports",
143     "examples": [
144       {
145         "title": "Example usage:",
146         "content": "curl https://{domain}/api/analytics/custom_reports -v -u {name}:{password}",
147         "type": "json"
148       }
149     ],
150     "name": "GetAnalytic_Custom_Reports",
151     "group": "Analytic_Custom_Reports",
152     "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>",
153     "version": "0.0.0",
154     "filename": "server/api/analyticCustomReport/index.js",
155     "groupTitle": "Analytic_Custom_Reports"
156   },
157   {
158     "type": "get",
159     "url": "/api/analytics/custom_reports/{id}",
160     "title": "Gets a single Analytic Custom Report",
161     "examples": [
162       {
163         "title": "Example usage:",
164         "content": "curl https://{domain}/api/analytics/custom_reports/{id} -v -u {name}:{password}",
165         "type": "json"
166       }
167     ],
168     "name": "ShowAnalytic_Custom_Reports",
169     "group": "Analytic_Custom_Reports",
170     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
171     "version": "0.0.0",
172     "filename": "server/api/analyticCustomReport/index.js",
173     "groupTitle": "Analytic_Custom_Reports"
174   },
175   {
176     "type": "get",
177     "url": "/api/analytics/custom_reports/{id}/preview",
178     "title": "Report Preview",
179     "examples": [
180       {
181         "title": "Example usage:",
182         "content": "curl https://{domain}/api/analytics/custom_reports/{id}/preview -v -u {name}:{password} -X GET",
183         "type": "json"
184       }
185     ],
186     "name": "preview",
187     "group": "Analytic_Custom_Reports",
188     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
189     "version": "0.0.0",
190     "filename": "server/api/analyticCustomReport/index.js",
191     "groupTitle": "Analytic_Custom_Reports"
192   },
193   {
194     "type": "get",
195     "url": "/api/analytics/custom_reports/{id}/query",
196     "title": "Report Query SQL",
197     "examples": [
198       {
199         "title": "Example usage:",
200         "content": "curl https://{domain}/api/analytics/custom_reports/{id}/query -v -u {name}:{password} -X GET",
201         "type": "json"
202       }
203     ],
204     "name": "query",
205     "group": "Analytic_Custom_Reports",
206     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
207     "version": "0.0.0",
208     "filename": "server/api/analyticCustomReport/index.js",
209     "groupTitle": "Analytic_Custom_Reports"
210   },
211   {
212     "type": "get",
213     "url": "/api/analytics/custom_reports/{id}/run",
214     "title": "Report Run",
215     "examples": [
216       {
217         "title": "Example usage:",
218         "content": "curl https://{domain}/api/analytics/custom_reports/{id}/run -v -u {name}:{password} -X GET",
219         "type": "json"
220       }
221     ],
222     "name": "run",
223     "group": "Analytic_Custom_Reports",
224     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
225     "version": "0.0.0",
226     "filename": "server/api/analyticCustomReport/index.js",
227     "groupTitle": "Analytic_Custom_Reports"
228   },
229   {
230     "type": "put",
231     "url": "/api/analytics/custom_reports/{id}",
232     "title": "Update an existing Analytic Custom Report",
233     "examples": [
234       {
235         "title": "Example usage:",
236         "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",
237         "type": "json"
238       }
239     ],
240     "name": "updateAnalytic_Custom_Reports",
241     "group": "Analytic_Custom_Reports",
242     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
243     "version": "0.0.0",
244     "filename": "server/api/analyticCustomReport/index.js",
245     "groupTitle": "Analytic_Custom_Reports"
246   },
247   {
248     "type": "post",
249     "url": "/api/analytics/default_reports",
250     "title": "Creates a new Analytic Default Report",
251     "examples": [
252       {
253         "title": "Example usage:",
254         "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",
255         "type": "json"
256       }
257     ],
258     "name": "CreateAnalytic_Default_Reports",
259     "group": "Analytic_Default_Reports",
260     "parameter": {
261       "fields": {
262         "Body": [
263           {
264             "group": "Body",
265             "type": "String",
266             "optional": false,
267             "field": "name",
268             "description": ""
269           },
270           {
271             "group": "Body",
272             "type": "String",
273             "optional": true,
274             "field": "description",
275             "description": ""
276           },
277           {
278             "group": "Body",
279             "type": "String",
280             "optional": true,
281             "field": "parent",
282             "description": ""
283           },
284           {
285             "group": "Body",
286             "type": "String",
287             "optional": true,
288             "field": "table",
289             "description": ""
290           },
291           {
292             "group": "Body",
293             "type": "Text",
294             "optional": true,
295             "field": "conditions",
296             "description": ""
297           },
298           {
299             "group": "Body",
300             "type": "Text",
301             "optional": true,
302             "field": "joins",
303             "description": ""
304           }
305         ]
306       }
307     },
308     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
309     "version": "0.0.0",
310     "filename": "server/api/analyticDefaultReport/index.js",
311     "groupTitle": "Analytic_Default_Reports"
312   },
313   {
314     "type": "delete",
315     "url": "/api/analytics/default_reports/{id}",
316     "title": "Deletes a Analytic Default Report",
317     "examples": [
318       {
319         "title": "Example usage:",
320         "content": "curl https://{domain}/api/analytics/default_reports/{id} -v -u {name}:{password} -X DELETE",
321         "type": "json"
322       }
323     ],
324     "name": "DeleteAnalytic_Default_Reports",
325     "group": "Analytic_Default_Reports",
326     "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>",
327     "version": "0.0.0",
328     "filename": "server/api/analyticDefaultReport/index.js",
329     "groupTitle": "Analytic_Default_Reports"
330   },
331   {
332     "type": "get",
333     "url": "/api/analytics/default_reports",
334     "title": "Gets a list of Analytic Default Reports",
335     "examples": [
336       {
337         "title": "Example usage:",
338         "content": "curl https://{domain}/api/analytics/default_reports -v -u {name}:{password}",
339         "type": "json"
340       }
341     ],
342     "name": "GetAnalytic_Default_Reports",
343     "group": "Analytic_Default_Reports",
344     "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>",
345     "version": "0.0.0",
346     "filename": "server/api/analyticDefaultReport/index.js",
347     "groupTitle": "Analytic_Default_Reports"
348   },
349   {
350     "type": "get",
351     "url": "/api/analytics/default_reports/{id}",
352     "title": "Gets a single Analytic Default Report",
353     "examples": [
354       {
355         "title": "Example usage:",
356         "content": "curl https://{domain}/api/analytics/default_reports/{id} -v -u {name}:{password}",
357         "type": "json"
358       }
359     ],
360     "name": "ShowAnalytic_Default_Reports",
361     "group": "Analytic_Default_Reports",
362     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
363     "version": "0.0.0",
364     "filename": "server/api/analyticDefaultReport/index.js",
365     "groupTitle": "Analytic_Default_Reports"
366   },
367   {
368     "type": "get",
369     "url": "/api/analytics/default_reports/{id}/preview",
370     "title": "Report Preview",
371     "examples": [
372       {
373         "title": "Example usage:",
374         "content": "curl https://{domain}/api/analytics/default_reports/{id}/preview -v -u {name}:{password} -X GET",
375         "type": "json"
376       }
377     ],
378     "name": "preview",
379     "group": "Analytic_Default_Reports",
380     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
381     "version": "0.0.0",
382     "filename": "server/api/analyticDefaultReport/index.js",
383     "groupTitle": "Analytic_Default_Reports"
384   },
385   {
386     "type": "get",
387     "url": "/api/analytics/default_reports/{id}/query",
388     "title": "Report Query SQL",
389     "examples": [
390       {
391         "title": "Example usage:",
392         "content": "curl https://{domain}/api/analytics/default_reports/{id}/query -v -u {name}:{password} -X GET",
393         "type": "json"
394       }
395     ],
396     "name": "query",
397     "group": "Analytic_Default_Reports",
398     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
399     "version": "0.0.0",
400     "filename": "server/api/analyticDefaultReport/index.js",
401     "groupTitle": "Analytic_Default_Reports"
402   },
403   {
404     "type": "get",
405     "url": "/api/analytics/default_reports/{id}/run",
406     "title": "Report Run",
407     "examples": [
408       {
409         "title": "Example usage:",
410         "content": "curl https://{domain}/api/analytics/default_reports/{id}/run -v -u {name}:{password} -X GET",
411         "type": "json"
412       }
413     ],
414     "name": "run",
415     "group": "Analytic_Default_Reports",
416     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
417     "version": "0.0.0",
418     "filename": "server/api/analyticDefaultReport/index.js",
419     "groupTitle": "Analytic_Default_Reports"
420   },
421   {
422     "type": "put",
423     "url": "/api/analytics/default_reports/{id}",
424     "title": "Update an existing Analytic Default Report",
425     "examples": [
426       {
427         "title": "Example usage:",
428         "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",
429         "type": "json"
430       }
431     ],
432     "name": "updateAnalytic_Default_Reports",
433     "group": "Analytic_Default_Reports",
434     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
435     "version": "0.0.0",
436     "filename": "server/api/analyticDefaultReport/index.js",
437     "groupTitle": "Analytic_Default_Reports"
438   },
439   {
440     "type": "post",
441     "url": "/api/analytics/extracted_reports",
442     "title": "Creates a new Analytic Extracted Report",
443     "examples": [
444       {
445         "title": "Example usage:",
446         "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",
447         "type": "json"
448       }
449     ],
450     "name": "CreateAnalytic_Extacted_Reports",
451     "group": "Analytic_Extracted_Reports",
452     "parameter": {
453       "fields": {
454         "Body": [
455           {
456             "group": "Body",
457             "type": "String",
458             "optional": false,
459             "field": "name",
460             "description": ""
461           },
462           {
463             "group": "Body",
464             "type": "String",
465             "optional": false,
466             "field": "basename",
467             "description": ""
468           },
469           {
470             "group": "Body",
471             "type": "String",
472             "allowedValues": [
473               "\"csv\"",
474               "\"pdf\"",
475               "\"xlsx\""
476             ],
477             "optional": false,
478             "field": "output",
479             "description": ""
480           },
481           {
482             "group": "Body",
483             "type": "String",
484             "optional": false,
485             "field": "savename",
486             "description": ""
487           },
488           {
489             "group": "Body",
490             "type": "String",
491             "optional": true,
492             "field": "startDate",
493             "description": ""
494           },
495           {
496             "group": "Body",
497             "type": "String",
498             "optional": true,
499             "field": "endDate",
500             "description": ""
501           },
502           {
503             "group": "Body",
504             "type": "String",
505             "optional": true,
506             "field": "status",
507             "description": ""
508           },
509           {
510             "group": "Body",
511             "type": "String",
512             "allowedValues": [
513               "\"manual\"",
514               "\"scheduled\""
515             ],
516             "optional": false,
517             "field": "type",
518             "description": ""
519           },
520           {
521             "group": "Body",
522             "type": "Integer",
523             "optional": true,
524             "field": "reportId",
525             "description": ""
526           },
527           {
528             "group": "Body",
529             "type": "String",
530             "optional": true,
531             "field": "reportType",
532             "description": ""
533           }
534         ]
535       }
536     },
537     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
538     "version": "0.0.0",
539     "filename": "server/api/analyticExtractedReport/index.js",
540     "groupTitle": "Analytic_Extracted_Reports"
541   },
542   {
543     "type": "delete",
544     "url": "/api/analytics/extracted_reports/{id}",
545     "title": "Deletes a Analytic Extracted Report",
546     "examples": [
547       {
548         "title": "Example usage:",
549         "content": "curl https://{domain}/api/analytics/extracted_reports/{id} -v -u {name}:{password} -X DELETE",
550         "type": "json"
551       }
552     ],
553     "name": "DeleteAnalytic_Extacted_Reports",
554     "group": "Analytic_Extracted_Reports",
555     "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>",
556     "version": "0.0.0",
557     "filename": "server/api/analyticExtractedReport/index.js",
558     "groupTitle": "Analytic_Extracted_Reports"
559   },
560   {
561     "type": "get",
562     "url": "/api/analytics/extracted_reports",
563     "title": "Gets a list of Analytic Extacted Reports",
564     "examples": [
565       {
566         "title": "Example usage:",
567         "content": "curl https://{domain}/api/analytics/extracted_reports -v -u {name}:{password}",
568         "type": "json"
569       }
570     ],
571     "name": "GetAnalytic_Extacted_Reports",
572     "group": "Analytic_Extracted_Reports",
573     "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>",
574     "version": "0.0.0",
575     "filename": "server/api/analyticExtractedReport/index.js",
576     "groupTitle": "Analytic_Extracted_Reports"
577   },
578   {
579     "type": "get",
580     "url": "/api/analytics/extracted_reports/{id}",
581     "title": "Gets a single Analytic Extracted Report",
582     "examples": [
583       {
584         "title": "Example usage:",
585         "content": "curl https://{domain}/api/analytics/extracted_reports/{id} -v -u {name}:{password}",
586         "type": "json"
587       }
588     ],
589     "name": "ShowAnalytic_Extacted_Reports",
590     "group": "Analytic_Extracted_Reports",
591     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
592     "version": "0.0.0",
593     "filename": "server/api/analyticExtractedReport/index.js",
594     "groupTitle": "Analytic_Extracted_Reports"
595   },
596   {
597     "type": "get",
598     "url": "/api/analytics/extracted_reports/{id}/download",
599     "title": "Download Extracted Report",
600     "examples": [
601       {
602         "title": "Example usage:",
603         "content": "curl https://{domain}/api/analytics/extracted_reports/{id}/download -v -u {name}:{password} -X GET",
604         "type": "json"
605       }
606     ],
607     "name": "download",
608     "group": "Analytic_Extracted_Reports",
609     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
610     "version": "0.0.0",
611     "filename": "server/api/analyticExtractedReport/index.js",
612     "groupTitle": "Analytic_Extracted_Reports"
613   },
614   {
615     "type": "put",
616     "url": "/api/analytics/extracted_reports/{id}",
617     "title": "Update an existing Analytic Extracted Report",
618     "examples": [
619       {
620         "title": "Example usage:",
621         "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",
622         "type": "json"
623       }
624     ],
625     "name": "updateAnalytic_Extacted_Reports",
626     "group": "Analytic_Extracted_Reports",
627     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
628     "version": "0.0.0",
629     "filename": "server/api/analyticExtractedReport/index.js",
630     "groupTitle": "Analytic_Extracted_Reports"
631   },
632   {
633     "type": "post",
634     "url": "/api/analytics/field_reports/create_many",
635     "title": "Creates many Analytic Field Reports",
636     "examples": [
637       {
638         "title": "Example usage:",
639         "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",
640         "type": "json"
641       }
642     ],
643     "name": "BulkCreateAnalytic_Field_Reports",
644     "group": "Analytic_Field_Reports",
645     "parameter": {
646       "fields": {
647         "Body": [
648           {
649             "group": "Body",
650             "type": "Text",
651             "optional": true,
652             "field": "field",
653             "description": ""
654           },
655           {
656             "group": "Body",
657             "type": "String",
658             "optional": true,
659             "field": "alias",
660             "description": ""
661           },
662           {
663             "group": "Body",
664             "type": "String",
665             "optional": true,
666             "field": "function",
667             "description": ""
668           },
669           {
670             "group": "Body",
671             "type": "String",
672             "optional": true,
673             "field": "format",
674             "description": ""
675           },
676           {
677             "group": "Body",
678             "type": "Boolean",
679             "optional": true,
680             "field": "groupBy",
681             "description": ""
682           },
683           {
684             "group": "Body",
685             "type": "String",
686             "optional": true,
687             "field": "orderBy",
688             "description": ""
689           },
690           {
691             "group": "Body",
692             "type": "Boolean",
693             "optional": true,
694             "field": "custom",
695             "description": ""
696           }
697         ]
698       }
699     },
700     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
701     "version": "0.0.0",
702     "filename": "server/api/analyticFieldReport/index.js",
703     "groupTitle": "Analytic_Field_Reports"
704   },
705   {
706     "type": "delete",
707     "url": "/api/analytics/field_reports/destroy_many?ids={ids}",
708     "title": "Deletes many Analytic Field Reports",
709     "examples": [
710       {
711         "title": "Example usage:",
712         "content": "curl https://{domain}/api/analytics/field_reports/destroy_many?ids=1&ids=2&ids=3 -v -u {name}:{password} -X DELETE",
713         "type": "json"
714       }
715     ],
716     "name": "BulkDeleteAnalytic_Field_Reports",
717     "group": "Analytic_Field_Reports",
718     "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>",
719     "version": "0.0.0",
720     "filename": "server/api/analyticFieldReport/index.js",
721     "groupTitle": "Analytic_Field_Reports"
722   },
723   {
724     "type": "post",
725     "url": "/api/analytics/field_reports",
726     "title": "Creates a new Analytic Field Report",
727     "examples": [
728       {
729         "title": "Example usage:",
730         "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",
731         "type": "json"
732       }
733     ],
734     "name": "CreateAnalytic_Field_Reports",
735     "group": "Analytic_Field_Reports",
736     "parameter": {
737       "fields": {
738         "Body": [
739           {
740             "group": "Body",
741             "type": "Text",
742             "optional": true,
743             "field": "field",
744             "description": ""
745           },
746           {
747             "group": "Body",
748             "type": "String",
749             "optional": true,
750             "field": "alias",
751             "description": ""
752           },
753           {
754             "group": "Body",
755             "type": "String",
756             "optional": true,
757             "field": "function",
758             "description": ""
759           },
760           {
761             "group": "Body",
762             "type": "String",
763             "optional": true,
764             "field": "format",
765             "description": ""
766           },
767           {
768             "group": "Body",
769             "type": "Boolean",
770             "optional": true,
771             "field": "groupBy",
772             "description": ""
773           },
774           {
775             "group": "Body",
776             "type": "String",
777             "optional": true,
778             "field": "orderBy",
779             "description": ""
780           },
781           {
782             "group": "Body",
783             "type": "Boolean",
784             "optional": true,
785             "field": "custom",
786             "description": ""
787           }
788         ]
789       }
790     },
791     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
792     "version": "0.0.0",
793     "filename": "server/api/analyticFieldReport/index.js",
794     "groupTitle": "Analytic_Field_Reports"
795   },
796   {
797     "type": "delete",
798     "url": "/api/analytics/field_reports/{id}",
799     "title": "Deletes a Analytic Field Report",
800     "examples": [
801       {
802         "title": "Example usage:",
803         "content": "curl https://{domain}/api/analytics/field_reports/{id} -v -u {name}:{password} -X DELETE",
804         "type": "json"
805       }
806     ],
807     "name": "DeleteAnalytic_Field_Reports",
808     "group": "Analytic_Field_Reports",
809     "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>",
810     "version": "0.0.0",
811     "filename": "server/api/analyticFieldReport/index.js",
812     "groupTitle": "Analytic_Field_Reports"
813   },
814   {
815     "type": "get",
816     "url": "/api/analytics/field_reports",
817     "title": "Gets a list of Analytic Field Reports",
818     "examples": [
819       {
820         "title": "Example usage:",
821         "content": "curl https://{domain}/api/analytics/field_reports -v -u {name}:{password}",
822         "type": "json"
823       }
824     ],
825     "name": "GetAnalytic_Field_Reports",
826     "group": "Analytic_Field_Reports",
827     "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>",
828     "version": "0.0.0",
829     "filename": "server/api/analyticFieldReport/index.js",
830     "groupTitle": "Analytic_Field_Reports"
831   },
832   {
833     "type": "get",
834     "url": "/api/analytics/field_reports/{id}",
835     "title": "Gets a single Analytic Field Report",
836     "examples": [
837       {
838         "title": "Example usage:",
839         "content": "curl https://{domain}/api/analytics/field_reports/{id} -v -u {name}:{password}",
840         "type": "json"
841       }
842     ],
843     "name": "ShowAnalytic_Field_Reports",
844     "group": "Analytic_Field_Reports",
845     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
846     "version": "0.0.0",
847     "filename": "server/api/analyticFieldReport/index.js",
848     "groupTitle": "Analytic_Field_Reports"
849   },
850   {
851     "type": "post",
852     "url": "/api/analytics/field_reports/{id}/create_many",
853     "title": "Rewrite fields set",
854     "examples": [
855       {
856         "title": "Example usage:",
857         "content": "curl https://{domain}/api/analytics/field_reports/{id}/create_many -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
858         "type": "json"
859       }
860     ],
861     "name": "addFields",
862     "group": "Analytic_Field_Reports",
863     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
864     "version": "0.0.0",
865     "filename": "server/api/analyticFieldReport/index.js",
866     "groupTitle": "Analytic_Field_Reports"
867   },
868   {
869     "type": "put",
870     "url": "/api/analytics/field_reports/{id}",
871     "title": "Update an existing Analytic Field Report",
872     "examples": [
873       {
874         "title": "Example usage:",
875         "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",
876         "type": "json"
877       }
878     ],
879     "name": "updateAnalytic_Field_Reports",
880     "group": "Analytic_Field_Reports",
881     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
882     "version": "0.0.0",
883     "filename": "server/api/analyticFieldReport/index.js",
884     "groupTitle": "Analytic_Field_Reports"
885   },
886   {
887     "type": "post",
888     "url": "/api/analytics/metrics",
889     "title": "Creates a new Analytic Metrics",
890     "examples": [
891       {
892         "title": "Example usage:",
893         "content": "curl https://{domain}/api/analytics/metrics -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
894         "type": "json"
895       }
896     ],
897     "name": "CreateAnalytic_Metric",
898     "group": "Analytic_Metrics",
899     "parameter": {
900       "fields": {
901         "Body": [
902           {
903             "group": "Body",
904             "type": "String",
905             "optional": false,
906             "field": "name",
907             "description": ""
908           },
909           {
910             "group": "Body",
911             "type": "String",
912             "optional": true,
913             "field": "table",
914             "description": ""
915           },
916           {
917             "group": "Body",
918             "type": "Text",
919             "optional": true,
920             "field": "metric",
921             "description": ""
922           },
923           {
924             "group": "Body",
925             "type": "String",
926             "optional": true,
927             "field": "description",
928             "description": ""
929           }
930         ]
931       }
932     },
933     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
934     "version": "0.0.0",
935     "filename": "server/api/analyticMetric/index.js",
936     "groupTitle": "Analytic_Metrics"
937   },
938   {
939     "type": "delete",
940     "url": "/api/analytics/metrics/{id}",
941     "title": "Deletes a Analytic Metrics",
942     "examples": [
943       {
944         "title": "Example usage:",
945         "content": "curl https://{domain}/api/analytics/metrics/{id} -v -u {name}:{password} -X DELETE",
946         "type": "json"
947       }
948     ],
949     "name": "DeleteAnalytic_Metric",
950     "group": "Analytic_Metrics",
951     "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>",
952     "version": "0.0.0",
953     "filename": "server/api/analyticMetric/index.js",
954     "groupTitle": "Analytic_Metrics"
955   },
956   {
957     "type": "get",
958     "url": "/api/analytics/metrics",
959     "title": "Gets a list of Analytic Metric",
960     "examples": [
961       {
962         "title": "Example usage:",
963         "content": "curl https://{domain}/api/analytics/metrics -v -u {name}:{password}",
964         "type": "json"
965       }
966     ],
967     "name": "GetAnalytic_Metric",
968     "group": "Analytic_Metrics",
969     "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>",
970     "version": "0.0.0",
971     "filename": "server/api/analyticMetric/index.js",
972     "groupTitle": "Analytic_Metrics"
973   },
974   {
975     "type": "get",
976     "url": "/api/analytics/metrics/{id}",
977     "title": "Gets a single Analytic Metrics",
978     "examples": [
979       {
980         "title": "Example usage:",
981         "content": "curl https://{domain}/api/analytics/metrics/{id} -v -u {name}:{password}",
982         "type": "json"
983       }
984     ],
985     "name": "ShowAnalytic_Metric",
986     "group": "Analytic_Metrics",
987     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
988     "version": "0.0.0",
989     "filename": "server/api/analyticMetric/index.js",
990     "groupTitle": "Analytic_Metrics"
991   },
992   {
993     "type": "put",
994     "url": "/api/analytics/metrics/{id}",
995     "title": "Update an existing Analytic Metrics",
996     "examples": [
997       {
998         "title": "Example usage:",
999         "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",
1000         "type": "json"
1001       }
1002     ],
1003     "name": "updateAnalytic_Metric",
1004     "group": "Analytic_Metrics",
1005     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1006     "version": "0.0.0",
1007     "filename": "server/api/analyticMetric/index.js",
1008     "groupTitle": "Analytic_Metrics"
1009   },
1010   {
1011     "type": "post",
1012     "url": "/api/analytics/tree_reports",
1013     "title": "Creates a new Analytic Tree Report",
1014     "examples": [
1015       {
1016         "title": "Example usage:",
1017         "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",
1018         "type": "json"
1019       }
1020     ],
1021     "name": "CreateAnalytic_Tree_Reports",
1022     "group": "Analytic_Tree_Reports",
1023     "parameter": {
1024       "fields": {
1025         "Body": [
1026           {
1027             "group": "Body",
1028             "type": "Text",
1029             "optional": false,
1030             "field": "tree",
1031             "description": ""
1032           }
1033         ]
1034       }
1035     },
1036     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1037     "version": "0.0.0",
1038     "filename": "server/api/analyticTreeReport/index.js",
1039     "groupTitle": "Analytic_Tree_Reports"
1040   },
1041   {
1042     "type": "delete",
1043     "url": "/api/analytics/tree_reports/{id}",
1044     "title": "Deletes a Analytic Tree Report",
1045     "examples": [
1046       {
1047         "title": "Example usage:",
1048         "content": "curl https://{domain}/api/analytics/tree_reports/{id} -v -u {name}:{password} -X DELETE",
1049         "type": "json"
1050       }
1051     ],
1052     "name": "DeleteAnalytic_Tree_Reports",
1053     "group": "Analytic_Tree_Reports",
1054     "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>",
1055     "version": "0.0.0",
1056     "filename": "server/api/analyticTreeReport/index.js",
1057     "groupTitle": "Analytic_Tree_Reports"
1058   },
1059   {
1060     "type": "get",
1061     "url": "/api/analytics/tree_reports",
1062     "title": "Gets a list of Analytic Tree Reports",
1063     "examples": [
1064       {
1065         "title": "Example usage:",
1066         "content": "curl https://{domain}/api/analytics/tree_reports -v -u {name}:{password}",
1067         "type": "json"
1068       }
1069     ],
1070     "name": "GetAnalytic_Tree_Reports",
1071     "group": "Analytic_Tree_Reports",
1072     "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>",
1073     "version": "0.0.0",
1074     "filename": "server/api/analyticTreeReport/index.js",
1075     "groupTitle": "Analytic_Tree_Reports"
1076   },
1077   {
1078     "type": "get",
1079     "url": "/api/analytics/tree_reports/{id}",
1080     "title": "Gets a single Analytic Tree Report",
1081     "examples": [
1082       {
1083         "title": "Example usage:",
1084         "content": "curl https://{domain}/api/analytics/tree_reports/{id} -v -u {name}:{password}",
1085         "type": "json"
1086       }
1087     ],
1088     "name": "ShowAnalytic_Tree_Reports",
1089     "group": "Analytic_Tree_Reports",
1090     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1091     "version": "0.0.0",
1092     "filename": "server/api/analyticTreeReport/index.js",
1093     "groupTitle": "Analytic_Tree_Reports"
1094   },
1095   {
1096     "type": "put",
1097     "url": "/api/analytics/tree_reports/{id}",
1098     "title": "Update an existing Analytic Tree Report",
1099     "examples": [
1100       {
1101         "title": "Example usage:",
1102         "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",
1103         "type": "json"
1104       }
1105     ],
1106     "name": "updateAnalytic_Tree_Reports",
1107     "group": "Analytic_Tree_Reports",
1108     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1109     "version": "0.0.0",
1110     "filename": "server/api/analyticTreeReport/index.js",
1111     "groupTitle": "Analytic_Tree_Reports"
1112   },
1113   {
1114     "type": "post",
1115     "url": "/api/attachments/clone",
1116     "title": "Clone an existing Attachment",
1117     "examples": [
1118       {
1119         "title": "Example usage:",
1120         "content": "curl https://{domain}/api/attachments/clone -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
1121         "type": "json"
1122       }
1123     ],
1124     "name": "CloneAttachments",
1125     "group": "Attachments",
1126     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1127     "version": "0.0.0",
1128     "filename": "server/api/attachment/index.js",
1129     "groupTitle": "Attachments"
1130   },
1131   {
1132     "type": "delete",
1133     "url": "/api/attachments/{id}",
1134     "title": "Deletes a Attachment",
1135     "examples": [
1136       {
1137         "title": "Example usage:",
1138         "content": "curl https://{domain}/api/attachments/{id} -v -u {name}:{password} -X DELETE",
1139         "type": "json"
1140       }
1141     ],
1142     "name": "DeleteAttachments",
1143     "group": "Attachments",
1144     "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>",
1145     "version": "0.0.0",
1146     "filename": "server/api/attachment/index.js",
1147     "groupTitle": "Attachments"
1148   },
1149   {
1150     "type": "get",
1151     "url": "/api/attachments",
1152     "title": "Gets a list of Attachments",
1153     "examples": [
1154       {
1155         "title": "Example usage:",
1156         "content": "curl https://{domain}/api/attachments -v -u {name}:{password}",
1157         "type": "json"
1158       }
1159     ],
1160     "name": "GetAttachments",
1161     "group": "Attachments",
1162     "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>",
1163     "version": "0.0.0",
1164     "filename": "server/api/attachment/index.js",
1165     "groupTitle": "Attachments"
1166   },
1167   {
1168     "type": "get",
1169     "url": "/api/attachments/{id}",
1170     "title": "Gets a single Attachment",
1171     "examples": [
1172       {
1173         "title": "Example usage:",
1174         "content": "curl https://{domain}/api/attachments/{id} -v -u {name}:{password}",
1175         "type": "json"
1176       }
1177     ],
1178     "name": "ShowAttachments",
1179     "group": "Attachments",
1180     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1181     "version": "0.0.0",
1182     "filename": "server/api/attachment/index.js",
1183     "groupTitle": "Attachments"
1184   },
1185   {
1186     "type": "post",
1187     "url": "/api/attachments",
1188     "title": "Add attachment",
1189     "examples": [
1190       {
1191         "title": "Example usage:",
1192         "content": "curl https://{domain}/api/attachments -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
1193         "type": "json"
1194       }
1195     ],
1196     "name": "create",
1197     "group": "Attachments",
1198     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1199     "version": "0.0.0",
1200     "filename": "server/api/attachment/index.js",
1201     "groupTitle": "Attachments"
1202   },
1203   {
1204     "type": "get",
1205     "url": "/api/attachments/:id/download",
1206     "title": "Download attachment",
1207     "examples": [
1208       {
1209         "title": "Example usage:",
1210         "content": "curl https://{domain}/api/attachments/:id/download -v -u {name}:{password} -X GET",
1211         "type": "json"
1212       }
1213     ],
1214     "name": "download",
1215     "group": "Attachments",
1216     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1217     "version": "0.0.0",
1218     "filename": "server/api/attachment/index.js",
1219     "groupTitle": "Attachments"
1220   },
1221   {
1222     "type": "get",
1223     "url": "/api/chat/interactions/{id}/attachment_download",
1224     "title": "Download attachment",
1225     "examples": [
1226       {
1227         "title": "Example usage:",
1228         "content": "curl https://{domain}/api/chat/interactions/{id}/attachment_download -v -u {name}:{password} -X GET",
1229         "type": "json"
1230       }
1231     ],
1232     "name": "show",
1233     "group": "Attachments",
1234     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1235     "version": "0.0.0",
1236     "filename": "server/api/chatInteraction/index.js",
1237     "groupTitle": "Attachments"
1238   },
1239   {
1240     "type": "put",
1241     "url": "/api/attachments/{id}",
1242     "title": "Update an existing Attachment",
1243     "examples": [
1244       {
1245         "title": "Example usage:",
1246         "content": "curl https://{domain}/api/attachments/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
1247         "type": "json"
1248       }
1249     ],
1250     "name": "updateAttachments",
1251     "group": "Attachments",
1252     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1253     "version": "0.0.0",
1254     "filename": "server/api/attachment/index.js",
1255     "groupTitle": "Attachments"
1256   },
1257   {
1258     "type": "post",
1259     "url": "/api/auth/local/forgot",
1260     "title": "Creates a new password reset token",
1261     "examples": [
1262       {
1263         "title": "Example usage:",
1264         "content": "curl https://{domain}/api/auth/local/forgot -d '{\"email\": \"john.doe@xcally.com\"}' \\\n -H \"Content-Type: application/json\" -X POST",
1265         "type": "json"
1266       }
1267     ],
1268     "name": "Local_Forgot_Password",
1269     "group": "Authentication",
1270     "parameter": {
1271       "fields": {
1272         "Body": [
1273           {
1274             "group": "Body",
1275             "type": "String",
1276             "optional": false,
1277             "field": "email",
1278             "description": ""
1279           }
1280         ]
1281       }
1282     },
1283     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1284     "version": "0.0.0",
1285     "filename": "server/api/authLocal/index.js",
1286     "groupTitle": "Authentication"
1287   },
1288   {
1289     "type": "post",
1290     "url": "/api/auth/local/reset/:token",
1291     "title": "Reset user password",
1292     "examples": [
1293       {
1294         "title": "Example usage:",
1295         "content": "curl https://{domain}/api/auth/local/reset/94b422c1fkdjhg766a198da6997yu6gcc963641d -d '{\"password\": \"My_newP@ssw0rd\"}' \\\n -H \"Content-Type: application/json\" -X POST",
1296         "type": "json"
1297       }
1298     ],
1299     "name": "Local_Reset_Password",
1300     "group": "Authentication",
1301     "parameter": {
1302       "fields": {
1303         "Body": [
1304           {
1305             "group": "Body",
1306             "type": "String",
1307             "optional": false,
1308             "field": "password",
1309             "description": ""
1310           }
1311         ]
1312       }
1313     },
1314     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1315     "version": "0.0.0",
1316     "filename": "server/api/authLocal/index.js",
1317     "groupTitle": "Authentication"
1318   },
1319   {
1320     "type": "post",
1321     "url": "/api/auth/local",
1322     "title": "Creates a new User token",
1323     "examples": [
1324       {
1325         "title": "Example usage:",
1326         "content": "curl https://{domain}/api/auth/local -d '{\"name\": \"john.doe\", \"password\": \"password\"}' \\\n -H \"Content-Type: application/json\" -X POST",
1327         "type": "json"
1328       }
1329     ],
1330     "name": "Local_login",
1331     "group": "Authentication",
1332     "parameter": {
1333       "fields": {
1334         "Body": [
1335           {
1336             "group": "Body",
1337             "type": "String",
1338             "optional": false,
1339             "field": "name",
1340             "description": ""
1341           },
1342           {
1343             "group": "Body",
1344             "type": "String",
1345             "optional": false,
1346             "field": "password",
1347             "description": ""
1348           }
1349         ]
1350       }
1351     },
1352     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1353     "version": "0.0.0",
1354     "filename": "server/api/authLocal/index.js",
1355     "groupTitle": "Authentication"
1356   },
1357   {
1358     "type": "post",
1359     "url": "/api/auth/google",
1360     "title": "Creates a new User token",
1361     "examples": [
1362       {
1363         "title": "Example usage:",
1364         "content": "curl https://{domain}/api/auth/google -d '{\"name\": \"john.doe\", \"password\": \"password\"}' \\\n -H \"Content-Type: application/json\" -X POST",
1365         "type": "json"
1366       }
1367     ],
1368     "name": "Local_login",
1369     "group": "Authentication",
1370     "parameter": {
1371       "fields": {
1372         "Body": [
1373           {
1374             "group": "Body",
1375             "type": "String",
1376             "optional": false,
1377             "field": "name",
1378             "description": ""
1379           },
1380           {
1381             "group": "Body",
1382             "type": "String",
1383             "optional": false,
1384             "field": "password",
1385             "description": ""
1386           }
1387         ]
1388       }
1389     },
1390     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1391     "version": "0.0.0",
1392     "filename": "server/api/authGoogle/index.js",
1393     "groupTitle": "Authentication"
1394   },
1395   {
1396     "type": "post",
1397     "url": "/api/auth/activedirectory",
1398     "title": "Creates a new User token",
1399     "examples": [
1400       {
1401         "title": "Example usage:",
1402         "content": "curl https://{domain}/api/auth/activedirectory -d '{\"name\": \"john.doe\", \"password\": \"password\"}' \\\n -H \"Content-Type: application/json\" -X POST",
1403         "type": "json"
1404       }
1405     ],
1406     "name": "Local_login",
1407     "group": "Authentication",
1408     "parameter": {
1409       "fields": {
1410         "Body": [
1411           {
1412             "group": "Body",
1413             "type": "String",
1414             "optional": false,
1415             "field": "name",
1416             "description": ""
1417           },
1418           {
1419             "group": "Body",
1420             "type": "String",
1421             "optional": false,
1422             "field": "password",
1423             "description": ""
1424           }
1425         ]
1426       }
1427     },
1428     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1429     "version": "0.0.0",
1430     "filename": "server/api/authActiveDirectory/index.js",
1431     "groupTitle": "Authentication"
1432   },
1433   {
1434     "type": "post",
1435     "url": "/api/automations",
1436     "title": "Creates a new Automation",
1437     "examples": [
1438       {
1439         "title": "Example usage:",
1440         "content": "curl https://{domain}/api/automations -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
1441         "type": "json"
1442       }
1443     ],
1444     "name": "CreateAutomations",
1445     "group": "Automations",
1446     "parameter": {
1447       "fields": {
1448         "Body": [
1449           {
1450             "group": "Body",
1451             "type": "String",
1452             "optional": false,
1453             "field": "name",
1454             "description": ""
1455           },
1456           {
1457             "group": "Body",
1458             "type": "String",
1459             "optional": true,
1460             "field": "channel",
1461             "description": ""
1462           },
1463           {
1464             "group": "Body",
1465             "type": "String",
1466             "optional": true,
1467             "field": "description",
1468             "description": ""
1469           },
1470           {
1471             "group": "Body",
1472             "type": "Boolean",
1473             "optional": true,
1474             "field": "status",
1475             "description": ""
1476           },
1477           {
1478             "group": "Body",
1479             "type": "Integer",
1480             "optional": true,
1481             "field": "timeout",
1482             "description": ""
1483           }
1484         ]
1485       }
1486     },
1487     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1488     "version": "0.0.0",
1489     "filename": "server/api/automation/index.js",
1490     "groupTitle": "Automations"
1491   },
1492   {
1493     "type": "delete",
1494     "url": "/api/automations/{id}",
1495     "title": "Deletes a Automation",
1496     "examples": [
1497       {
1498         "title": "Example usage:",
1499         "content": "curl https://{domain}/api/automations/{id} -v -u {name}:{password} -X DELETE",
1500         "type": "json"
1501       }
1502     ],
1503     "name": "DeleteAutomations",
1504     "group": "Automations",
1505     "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>",
1506     "version": "0.0.0",
1507     "filename": "server/api/automation/index.js",
1508     "groupTitle": "Automations"
1509   },
1510   {
1511     "type": "get",
1512     "url": "/api/automations",
1513     "title": "Gets a list of Automations",
1514     "examples": [
1515       {
1516         "title": "Example usage:",
1517         "content": "curl https://{domain}/api/automations -v -u {name}:{password}",
1518         "type": "json"
1519       }
1520     ],
1521     "name": "GetAutomations",
1522     "group": "Automations",
1523     "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>",
1524     "version": "0.0.0",
1525     "filename": "server/api/automation/index.js",
1526     "groupTitle": "Automations"
1527   },
1528   {
1529     "type": "get",
1530     "url": "/api/automations/{id}",
1531     "title": "Gets a single Automation",
1532     "examples": [
1533       {
1534         "title": "Example usage:",
1535         "content": "curl https://{domain}/api/automations/{id} -v -u {name}:{password}",
1536         "type": "json"
1537       }
1538     ],
1539     "name": "ShowAutomations",
1540     "group": "Automations",
1541     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1542     "version": "0.0.0",
1543     "filename": "server/api/automation/index.js",
1544     "groupTitle": "Automations"
1545   },
1546   {
1547     "type": "post",
1548     "url": "/api/automations/{id}/actions",
1549     "title": "Creates new actions",
1550     "examples": [
1551       {
1552         "title": "Example usage:",
1553         "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",
1554         "type": "json"
1555       }
1556     ],
1557     "name": "addActions",
1558     "group": "Automations",
1559     "parameter": {
1560       "fields": {
1561         "Body": [
1562           {
1563             "group": "Body",
1564             "type": "Virtual",
1565             "optional": true,
1566             "field": "name",
1567             "description": ""
1568           },
1569           {
1570             "group": "Body",
1571             "type": "String",
1572             "optional": false,
1573             "field": "action",
1574             "description": "<p>Allowed values: contactManager, integration, motionbar, jscripty, urlForward, browser, bot, script</p>"
1575           },
1576           {
1577             "group": "Body",
1578             "type": "String",
1579             "optional": true,
1580             "field": "data1",
1581             "description": "<p>contactManager[ListId], integration[intName(zendesk)], motionbar[Popup(0),URL(1),WinApp(2)], urlForward[GET,POST], browser[TemplateId(0),URL(1)]</p>"
1582           },
1583           {
1584             "group": "Body",
1585             "type": "String",
1586             "optional": true,
1587             "field": "data2",
1588             "description": "<p>integration[AccountId], motionbar[TemplateId,URL,WinAppPath], urlForward[URL]</p>"
1589           },
1590           {
1591             "group": "Body",
1592             "type": "String",
1593             "optional": true,
1594             "field": "data3",
1595             "description": "<p>motionbar[NULL,NULL,WinAppArguments]</p>"
1596           },
1597           {
1598             "group": "Body",
1599             "type": "String",
1600             "optional": true,
1601             "field": "data4",
1602             "description": ""
1603           },
1604           {
1605             "group": "Body",
1606             "type": "String",
1607             "optional": true,
1608             "field": "data5",
1609             "description": ""
1610           },
1611           {
1612             "group": "Body",
1613             "type": "String",
1614             "optional": true,
1615             "field": "data6",
1616             "description": ""
1617           },
1618           {
1619             "group": "Body",
1620             "type": "Text",
1621             "optional": true,
1622             "field": "data7",
1623             "description": ""
1624           }
1625         ]
1626       }
1627     },
1628     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1629     "version": "0.0.0",
1630     "filename": "server/api/automation/index.js",
1631     "groupTitle": "Automations"
1632   },
1633   {
1634     "type": "post",
1635     "url": "/api/automations/{id}/conditions",
1636     "title": "Creates new conditions",
1637     "examples": [
1638       {
1639         "title": "Example usage:",
1640         "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",
1641         "type": "json"
1642       }
1643     ],
1644     "name": "addConditions",
1645     "group": "Automations",
1646     "parameter": {
1647       "fields": {
1648         "Body": [
1649           {
1650             "group": "Body",
1651             "type": "Virtual",
1652             "optional": true,
1653             "field": "name",
1654             "description": ""
1655           },
1656           {
1657             "group": "Body",
1658             "type": "String",
1659             "optional": false,
1660             "field": "field",
1661             "description": ""
1662           },
1663           {
1664             "group": "Body",
1665             "type": "String",
1666             "optional": false,
1667             "field": "operator",
1668             "description": ""
1669           },
1670           {
1671             "group": "Body",
1672             "type": "String",
1673             "optional": false,
1674             "field": "value",
1675             "description": ""
1676           }
1677         ]
1678       }
1679     },
1680     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1681     "version": "0.0.0",
1682     "filename": "server/api/automation/index.js",
1683     "groupTitle": "Automations"
1684   },
1685   {
1686     "type": "get",
1687     "url": "/api/automations/{id}/actions",
1688     "title": "Gets Automation Actions",
1689     "examples": [
1690       {
1691         "title": "Example usage:",
1692         "content": "curl https://{domain}/api/automations/{id}/actions -v -u {name}:{password} -X GET",
1693         "type": "json"
1694       }
1695     ],
1696     "name": "getActions",
1697     "group": "Automations",
1698     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1699     "version": "0.0.0",
1700     "filename": "server/api/automation/index.js",
1701     "groupTitle": "Automations"
1702   },
1703   {
1704     "type": "get",
1705     "url": "/api/automations/{id}/conditions",
1706     "title": "Gets Automation Conditions",
1707     "examples": [
1708       {
1709         "title": "Example usage:",
1710         "content": "curl https://{domain}/api/automations/{id}/conditions -v -u {name}:{password} -X GET",
1711         "type": "json"
1712       }
1713     ],
1714     "name": "getConditions",
1715     "group": "Automations",
1716     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1717     "version": "0.0.0",
1718     "filename": "server/api/automation/index.js",
1719     "groupTitle": "Automations"
1720   },
1721   {
1722     "type": "put",
1723     "url": "/api/automations/{id}",
1724     "title": "Update an existing Automation",
1725     "examples": [
1726       {
1727         "title": "Example usage:",
1728         "content": "curl https://{domain}/api/automations/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
1729         "type": "json"
1730       }
1731     ],
1732     "name": "updateAutomations",
1733     "group": "Automations",
1734     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1735     "version": "0.0.0",
1736     "filename": "server/api/automation/index.js",
1737     "groupTitle": "Automations"
1738   },
1739   {
1740     "type": "post",
1741     "url": "/api/canned_answers",
1742     "title": "Create a new canned answer",
1743     "examples": [
1744       {
1745         "title": "Example usage:",
1746         "content": "curl https://{domain}/api/canned_answers -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
1747         "type": "json"
1748       }
1749     ],
1750     "name": "Create",
1751     "group": "Canned_Answers",
1752     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1753     "version": "0.0.0",
1754     "filename": "server/api/cannedAnswer/index.js",
1755     "groupTitle": "Canned_Answers"
1756   },
1757   {
1758     "type": "delete",
1759     "url": "/api/canned_answers/{id}",
1760     "title": "Deletes a Canned Answer",
1761     "examples": [
1762       {
1763         "title": "Example usage:",
1764         "content": "curl https://{domain}/api/canned_answers/{id} -v -u {name}:{password} -X DELETE",
1765         "type": "json"
1766       }
1767     ],
1768     "name": "DeleteCanned_Answers",
1769     "group": "Canned_Answers",
1770     "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>",
1771     "version": "0.0.0",
1772     "filename": "server/api/cannedAnswer/index.js",
1773     "groupTitle": "Canned_Answers"
1774   },
1775   {
1776     "type": "get",
1777     "url": "/api/canned_answers",
1778     "title": "Gets a list of Canned Answers",
1779     "examples": [
1780       {
1781         "title": "Example usage:",
1782         "content": "curl https://{domain}/api/canned_answers -v -u {name}:{password}",
1783         "type": "json"
1784       }
1785     ],
1786     "name": "GetCanned_Answers",
1787     "group": "Canned_Answers",
1788     "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>",
1789     "version": "0.0.0",
1790     "filename": "server/api/cannedAnswer/index.js",
1791     "groupTitle": "Canned_Answers"
1792   },
1793   {
1794     "type": "get",
1795     "url": "/api/canned_answers/{id}",
1796     "title": "Gets a single Canned Answer",
1797     "examples": [
1798       {
1799         "title": "Example usage:",
1800         "content": "curl https://{domain}/api/canned_answers/{id} -v -u {name}:{password}",
1801         "type": "json"
1802       }
1803     ],
1804     "name": "ShowCanned_Answers",
1805     "group": "Canned_Answers",
1806     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1807     "version": "0.0.0",
1808     "filename": "server/api/cannedAnswer/index.js",
1809     "groupTitle": "Canned_Answers"
1810   },
1811   {
1812     "type": "put",
1813     "url": "/api/canned_answers/{id}",
1814     "title": "Update an existing Canned Answer",
1815     "examples": [
1816       {
1817         "title": "Example usage:",
1818         "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",
1819         "type": "json"
1820       }
1821     ],
1822     "name": "updateCanned_Answers",
1823     "group": "Canned_Answers",
1824     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1825     "version": "0.0.0",
1826     "filename": "server/api/cannedAnswer/index.js",
1827     "groupTitle": "Canned_Answers"
1828   },
1829   {
1830     "type": "get",
1831     "url": "/chat/internal/users",
1832     "title": "Gets Users Last Messages",
1833     "examples": [
1834       {
1835         "title": "Example usage:",
1836         "content": "curl https://{domain}/chat/internal/users -v -u {name}:{password}  -X GET",
1837         "type": "json"
1838       }
1839     ],
1840     "name": "getLastUsersMessages",
1841     "group": "ChatInternalMessage",
1842     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1843     "version": "0.0.0",
1844     "filename": "server/api/chatInternalMessage/index.js",
1845     "groupTitle": "ChatInternalMessage"
1846   },
1847   {
1848     "type": "delete",
1849     "url": "/api/chat/applications/{id}",
1850     "title": "Deletes a Application",
1851     "examples": [
1852       {
1853         "title": "Example usage:",
1854         "content": "curl https://{domain}/api/chat/applications/{id} -v -u {name}:{password} -X DELETE",
1855         "type": "json"
1856       }
1857     ],
1858     "name": "DeleteApplications",
1859     "group": "Chat_Applications",
1860     "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>",
1861     "version": "0.0.0",
1862     "filename": "server/api/chatApplication/index.js",
1863     "groupTitle": "Chat_Applications"
1864   },
1865   {
1866     "type": "get",
1867     "url": "/api/chat/applications/{id}",
1868     "title": "Gets a single Application",
1869     "examples": [
1870       {
1871         "title": "Example usage:",
1872         "content": "curl https://{domain}/api/chat/applications/{id} -v -u {name}:{password}",
1873         "type": "json"
1874       }
1875     ],
1876     "name": "ShowApplications",
1877     "group": "Chat_Applications",
1878     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1879     "version": "0.0.0",
1880     "filename": "server/api/chatApplication/index.js",
1881     "groupTitle": "Chat_Applications"
1882   },
1883   {
1884     "type": "put",
1885     "url": "/api/chat/applications/{id}",
1886     "title": "Update an existing Application",
1887     "examples": [
1888       {
1889         "title": "Example usage:",
1890         "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",
1891         "type": "json"
1892       }
1893     ],
1894     "name": "updateApplications",
1895     "group": "Chat_Applications",
1896     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1897     "version": "0.0.0",
1898     "filename": "server/api/chatApplication/index.js",
1899     "groupTitle": "Chat_Applications"
1900   },
1901   {
1902     "type": "post",
1903     "url": "/api/chat/groups",
1904     "title": "Creates a new Group",
1905     "examples": [
1906       {
1907         "title": "Example usage:",
1908         "content": "curl https://{domain}/api/chat/groups -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
1909         "type": "json"
1910       }
1911     ],
1912     "name": "CreateGroups",
1913     "group": "Chat_Groups",
1914     "parameter": {
1915       "fields": {
1916         "Body": [
1917           {
1918             "group": "Body",
1919             "type": "String",
1920             "optional": false,
1921             "field": "name",
1922             "description": ""
1923           },
1924           {
1925             "group": "Body",
1926             "type": "String",
1927             "optional": true,
1928             "field": "description",
1929             "description": ""
1930           },
1931           {
1932             "group": "Body",
1933             "type": "Boolean",
1934             "optional": true,
1935             "field": "write",
1936             "description": ""
1937           }
1938         ]
1939       }
1940     },
1941     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1942     "version": "0.0.0",
1943     "filename": "server/api/chatGroup/index.js",
1944     "groupTitle": "Chat_Groups"
1945   },
1946   {
1947     "type": "delete",
1948     "url": "/api/chat/groups/{id}",
1949     "title": "Deletes a Group",
1950     "examples": [
1951       {
1952         "title": "Example usage:",
1953         "content": "curl https://{domain}/api/chat/groups/{id} -v -u {name}:{password} -X DELETE",
1954         "type": "json"
1955       }
1956     ],
1957     "name": "DeleteGroups",
1958     "group": "Chat_Groups",
1959     "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>",
1960     "version": "0.0.0",
1961     "filename": "server/api/chatGroup/index.js",
1962     "groupTitle": "Chat_Groups"
1963   },
1964   {
1965     "type": "get",
1966     "url": "/api/chat/groups/describe",
1967     "title": "Gets table info about Groups",
1968     "examples": [
1969       {
1970         "title": "Example usage:",
1971         "content": "curl https://{domain}/api/chat/groups/describe -v -u {name}:{password}",
1972         "type": "json"
1973       }
1974     ],
1975     "name": "DescribeGroups",
1976     "group": "Chat_Groups",
1977     "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>",
1978     "version": "0.0.0",
1979     "filename": "server/api/chatGroup/index.js",
1980     "groupTitle": "Chat_Groups"
1981   },
1982   {
1983     "type": "get",
1984     "url": "/api/chat/groups",
1985     "title": "Gets a list of Groups",
1986     "examples": [
1987       {
1988         "title": "Example usage:",
1989         "content": "curl https://{domain}/api/chat/groups -v -u {name}:{password}",
1990         "type": "json"
1991       }
1992     ],
1993     "name": "GetGroups",
1994     "group": "Chat_Groups",
1995     "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>",
1996     "version": "0.0.0",
1997     "filename": "server/api/chatGroup/index.js",
1998     "groupTitle": "Chat_Groups"
1999   },
2000   {
2001     "type": "delete",
2002     "url": "/api/chat/groups/{id}/members",
2003     "title": "Removes members from a group",
2004     "examples": [
2005       {
2006         "title": "Example usage:",
2007         "content": "curl https://{domain}/api/chat/groups/{id}/members?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
2008         "type": "json"
2009       }
2010     ],
2011     "name": "RemoveMembers",
2012     "group": "Chat_Groups",
2013     "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>",
2014     "version": "0.0.0",
2015     "filename": "server/api/chatGroup/index.js",
2016     "groupTitle": "Chat_Groups"
2017   },
2018   {
2019     "type": "get",
2020     "url": "/api/chat/groups/{id}",
2021     "title": "Gets a single Group",
2022     "examples": [
2023       {
2024         "title": "Example usage:",
2025         "content": "curl https://{domain}/api/chat/groups/{id} -v -u {name}:{password}",
2026         "type": "json"
2027       }
2028     ],
2029     "name": "ShowGroups",
2030     "group": "Chat_Groups",
2031     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2032     "version": "0.0.0",
2033     "filename": "server/api/chatGroup/index.js",
2034     "groupTitle": "Chat_Groups"
2035   },
2036   {
2037     "type": "post",
2038     "url": "/api/chat/groups/{id}/members",
2039     "title": "Add members to chat group",
2040     "examples": [
2041       {
2042         "title": "Example usage:",
2043         "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",
2044         "type": "json"
2045       }
2046     ],
2047     "name": "addMembers",
2048     "group": "Chat_Groups",
2049     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2050     "version": "0.0.0",
2051     "filename": "server/api/chatGroup/index.js",
2052     "groupTitle": "Chat_Groups"
2053   },
2054   {
2055     "type": "post",
2056     "url": "/api/chat/groups/{id}/messages",
2057     "title": "Creates a new group message",
2058     "examples": [
2059       {
2060         "title": "Example usage:",
2061         "content": "curl https://{domain}/api/chat/groups/{id}/messages -d '{\"body\": \"Hi operator!\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
2062         "type": "json"
2063       }
2064     ],
2065     "name": "addMessage",
2066     "group": "Chat_Groups",
2067     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2068     "version": "0.0.0",
2069     "filename": "server/api/chatGroup/index.js",
2070     "groupTitle": "Chat_Groups"
2071   },
2072   {
2073     "type": "get",
2074     "url": "/api/chat/groups/{id}/members",
2075     "title": "Gets Members",
2076     "examples": [
2077       {
2078         "title": "Example usage:",
2079         "content": "curl https://{domain}/api/chat/groups/{id}/members -v -u {name}:{password} -X GET",
2080         "type": "json"
2081       }
2082     ],
2083     "name": "getMembers",
2084     "group": "Chat_Groups",
2085     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2086     "version": "0.0.0",
2087     "filename": "server/api/chatGroup/index.js",
2088     "groupTitle": "Chat_Groups"
2089   },
2090   {
2091     "type": "get",
2092     "url": "/api/chat/groups/{id}/messages",
2093     "title": "Gets Messages",
2094     "examples": [
2095       {
2096         "title": "Example usage:",
2097         "content": "curl https://{domain}/api/chat/groups/{id}/messages -v -u {name}:{password} -X GET",
2098         "type": "json"
2099       }
2100     ],
2101     "name": "getMessages",
2102     "group": "Chat_Groups",
2103     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2104     "version": "0.0.0",
2105     "filename": "server/api/chatGroup/index.js",
2106     "groupTitle": "Chat_Groups"
2107   },
2108   {
2109     "type": "get",
2110     "url": "/api/chat/groups/{id}/unread",
2111     "title": "Get unread chat group messages",
2112     "examples": [
2113       {
2114         "title": "Example usage:",
2115         "content": "curl https://{domain}/api/chat/groups/{id}/unread -H 'Content-Type: application/json' -v -u {name}:{password} -X GET",
2116         "type": "json"
2117       }
2118     ],
2119     "name": "getUread",
2120     "group": "Chat_Groups",
2121     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2122     "version": "0.0.0",
2123     "filename": "server/api/chatGroup/index.js",
2124     "groupTitle": "Chat_Groups"
2125   },
2126   {
2127     "type": "put",
2128     "url": "/api/chat/groups/{id}",
2129     "title": "Update an existing Group",
2130     "examples": [
2131       {
2132         "title": "Example usage:",
2133         "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",
2134         "type": "json"
2135       }
2136     ],
2137     "name": "updateGroups",
2138     "group": "Chat_Groups",
2139     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2140     "version": "0.0.0",
2141     "filename": "server/api/chatGroup/index.js",
2142     "groupTitle": "Chat_Groups"
2143   },
2144   {
2145     "type": "post",
2146     "url": "/api/chat/interactions/{id}/tags",
2147     "title": "Add tags to the interaction",
2148     "examples": [
2149       {
2150         "title": "Example usage:",
2151         "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",
2152         "type": "json"
2153       }
2154     ],
2155     "name": "AddTags",
2156     "group": "Chat_Interactions",
2157     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2158     "version": "0.0.0",
2159     "filename": "server/api/chatInteraction/index.js",
2160     "groupTitle": "Chat_Interactions"
2161   },
2162   {
2163     "type": "post",
2164     "url": "/api/chat/interactions",
2165     "title": "Creates a new Interaction",
2166     "examples": [
2167       {
2168         "title": "Example usage:",
2169         "content": "curl https://{domain}/api/chat/interactions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
2170         "type": "json"
2171       }
2172     ],
2173     "name": "CreateInteractions",
2174     "group": "Chat_Interactions",
2175     "parameter": {
2176       "fields": {
2177         "Body": [
2178           {
2179             "group": "Body",
2180             "type": "Boolean",
2181             "optional": true,
2182             "field": "closed",
2183             "description": ""
2184           },
2185           {
2186             "group": "Body",
2187             "type": "Integer",
2188             "optional": true,
2189             "field": "ratingValue",
2190             "description": ""
2191           },
2192           {
2193             "group": "Body",
2194             "type": "String",
2195             "allowedValues": [
2196               "\"star\"",
2197               "\"thumb\""
2198             ],
2199             "optional": true,
2200             "field": "ratingType",
2201             "description": ""
2202           },
2203           {
2204             "group": "Body",
2205             "type": "Text",
2206             "optional": true,
2207             "field": "ratingMessage",
2208             "description": ""
2209           },
2210           {
2211             "group": "Body",
2212             "type": "Text",
2213             "optional": true,
2214             "field": "pathTranscript",
2215             "description": ""
2216           },
2217           {
2218             "group": "Body",
2219             "type": "String",
2220             "optional": true,
2221             "field": "mailTranscript",
2222             "description": ""
2223           },
2224           {
2225             "group": "Body",
2226             "type": "String",
2227             "optional": true,
2228             "field": "closedAt",
2229             "description": ""
2230           },
2231           {
2232             "group": "Body",
2233             "type": "String",
2234             "optional": true,
2235             "field": "disposition",
2236             "description": ""
2237           },
2238           {
2239             "group": "Body",
2240             "type": "String",
2241             "optional": true,
2242             "field": "secondDisposition",
2243             "description": ""
2244           },
2245           {
2246             "group": "Body",
2247             "type": "String",
2248             "optional": true,
2249             "field": "thirdDisposition",
2250             "description": ""
2251           },
2252           {
2253             "group": "Body",
2254             "type": "String",
2255             "optional": true,
2256             "field": "note",
2257             "description": ""
2258           },
2259           {
2260             "group": "Body",
2261             "type": "String",
2262             "optional": true,
2263             "field": "browserName",
2264             "description": ""
2265           },
2266           {
2267             "group": "Body",
2268             "type": "String",
2269             "optional": true,
2270             "field": "browserVersion",
2271             "description": ""
2272           },
2273           {
2274             "group": "Body",
2275             "type": "String",
2276             "optional": true,
2277             "field": "osName",
2278             "description": ""
2279           },
2280           {
2281             "group": "Body",
2282             "type": "String",
2283             "optional": true,
2284             "field": "osVersion",
2285             "description": ""
2286           },
2287           {
2288             "group": "Body",
2289             "type": "String",
2290             "optional": true,
2291             "field": "deviceModel",
2292             "description": ""
2293           },
2294           {
2295             "group": "Body",
2296             "type": "String",
2297             "optional": true,
2298             "field": "deviceVendor",
2299             "description": ""
2300           },
2301           {
2302             "group": "Body",
2303             "type": "String",
2304             "optional": true,
2305             "field": "deviceType",
2306             "description": ""
2307           },
2308           {
2309             "group": "Body",
2310             "type": "Text",
2311             "optional": true,
2312             "field": "referer",
2313             "description": ""
2314           },
2315           {
2316             "group": "Body",
2317             "type": "String",
2318             "optional": true,
2319             "field": "customerIp",
2320             "description": ""
2321           },
2322           {
2323             "group": "Body",
2324             "type": "Text",
2325             "optional": true,
2326             "field": "formData",
2327             "description": ""
2328           },
2329           {
2330             "group": "Body",
2331             "type": "String",
2332             "optional": true,
2333             "field": "read1stAt",
2334             "description": ""
2335           },
2336           {
2337             "group": "Body",
2338             "type": "String",
2339             "optional": true,
2340             "field": "lastMsgAt",
2341             "description": ""
2342           },
2343           {
2344             "group": "Body",
2345             "type": "String",
2346             "allowedValues": [
2347               "\"in\"",
2348               "\"out\""
2349             ],
2350             "optional": false,
2351             "field": "lastMsgDirection",
2352             "description": ""
2353           },
2354           {
2355             "group": "Body",
2356             "type": "String",
2357             "optional": true,
2358             "field": "closeReason",
2359             "description": ""
2360           },
2361           {
2362             "group": "Body",
2363             "type": "String",
2364             "optional": true,
2365             "field": "customerPort",
2366             "description": ""
2367           },
2368           {
2369             "group": "Body",
2370             "type": "Text",
2371             "optional": true,
2372             "field": "vidaooSessionId",
2373             "description": ""
2374           },
2375           {
2376             "group": "Body",
2377             "type": "Boolean",
2378             "optional": true,
2379             "field": "autoreplyExecuted",
2380             "description": ""
2381           }
2382         ]
2383       }
2384     },
2385     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2386     "version": "0.0.0",
2387     "filename": "server/api/chatInteraction/index.js",
2388     "groupTitle": "Chat_Interactions"
2389   },
2390   {
2391     "type": "delete",
2392     "url": "/api/chat/interactions/{id}",
2393     "title": "Deletes a Interaction",
2394     "examples": [
2395       {
2396         "title": "Example usage:",
2397         "content": "curl https://{domain}/api/chat/interactions/{id} -v -u {name}:{password} -X DELETE",
2398         "type": "json"
2399       }
2400     ],
2401     "name": "DeleteInteractions",
2402     "group": "Chat_Interactions",
2403     "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>",
2404     "version": "0.0.0",
2405     "filename": "server/api/chatInteraction/index.js",
2406     "groupTitle": "Chat_Interactions"
2407   },
2408   {
2409     "type": "get",
2410     "url": "/api/chat/interactions/describe",
2411     "title": "Gets table info about Interactions",
2412     "examples": [
2413       {
2414         "title": "Example usage:",
2415         "content": "curl https://{domain}/api/chat/interactions/describe -v -u {name}:{password}",
2416         "type": "json"
2417       }
2418     ],
2419     "name": "DescribeInteractions",
2420     "group": "Chat_Interactions",
2421     "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>",
2422     "version": "0.0.0",
2423     "filename": "server/api/chatInteraction/index.js",
2424     "groupTitle": "Chat_Interactions"
2425   },
2426   {
2427     "type": "get",
2428     "url": "/api/chat/interactions",
2429     "title": "Gets a list of Interactions",
2430     "examples": [
2431       {
2432         "title": "Example usage:",
2433         "content": "curl https://{domain}/api/chat/interactions -v -u {name}:{password}",
2434         "type": "json"
2435       }
2436     ],
2437     "name": "GetInteractions",
2438     "group": "Chat_Interactions",
2439     "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>",
2440     "version": "0.0.0",
2441     "filename": "server/api/chatInteraction/index.js",
2442     "groupTitle": "Chat_Interactions"
2443   },
2444   {
2445     "type": "delete",
2446     "url": "/api/chat/interactions/{id}/tags",
2447     "title": "Removes tags from interaction",
2448     "examples": [
2449       {
2450         "title": "Example usage:",
2451         "content": "curl https://{domain}/api/chat/interactions/{id}/tags?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
2452         "type": "json"
2453       }
2454     ],
2455     "name": "RemoveTags",
2456     "group": "Chat_Interactions",
2457     "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>",
2458     "version": "0.0.0",
2459     "filename": "server/api/chatInteraction/index.js",
2460     "groupTitle": "Chat_Interactions"
2461   },
2462   {
2463     "type": "get",
2464     "url": "/api/chat/interactions/{id}",
2465     "title": "Gets a single Interaction",
2466     "examples": [
2467       {
2468         "title": "Example usage:",
2469         "content": "curl https://{domain}/api/chat/interactions/{id} -v -u {name}:{password}",
2470         "type": "json"
2471       }
2472     ],
2473     "name": "ShowInteractions",
2474     "group": "Chat_Interactions",
2475     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2476     "version": "0.0.0",
2477     "filename": "server/api/chatInteraction/index.js",
2478     "groupTitle": "Chat_Interactions"
2479   },
2480   {
2481     "type": "put",
2482     "url": "/api/chat/interactions/{id}/abandon",
2483     "title": "Abandon interaction",
2484     "examples": [
2485       {
2486         "title": "Example usage:",
2487         "content": "curl https://{domain}/api/chat/interactions/{id}/abandon -d '{\"channel\": \"chat\", \"...\": \"...\"}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
2488         "type": "json"
2489       }
2490     ],
2491     "name": "abandon",
2492     "group": "Chat_Interactions",
2493     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <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>",
2494     "version": "0.0.0",
2495     "filename": "server/api/chatInteraction/index.js",
2496     "groupTitle": "Chat_Interactions"
2497   },
2498   {
2499     "type": "post",
2500     "url": "/api/chat/interactions/{id}/messages",
2501     "title": "Creates new messages",
2502     "examples": [
2503       {
2504         "title": "Example usage:",
2505         "content": "curl https://{domain}/api/chat/interactions/{id}/messages -d '[{\"to\": \"+3901119886500\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
2506         "type": "json"
2507       }
2508     ],
2509     "name": "addMessage",
2510     "group": "Chat_Interactions",
2511     "parameter": {
2512       "fields": {
2513         "Body": [
2514           {
2515             "group": "Body",
2516             "type": "Text",
2517             "optional": false,
2518             "field": "body",
2519             "description": ""
2520           },
2521           {
2522             "group": "Body",
2523             "type": "Boolean",
2524             "optional": true,
2525             "field": "read",
2526             "description": ""
2527           },
2528           {
2529             "group": "Body",
2530             "type": "Boolean",
2531             "optional": true,
2532             "field": "secret",
2533             "description": ""
2534           },
2535           {
2536             "group": "Body",
2537             "type": "String",
2538             "allowedValues": [
2539               "\"in\"",
2540               "\"out\""
2541             ],
2542             "optional": false,
2543             "field": "direction",
2544             "description": ""
2545           },
2546           {
2547             "group": "Body",
2548             "type": "String",
2549             "optional": true,
2550             "field": "readAt",
2551             "description": ""
2552           },
2553           {
2554             "group": "Body",
2555             "type": "String",
2556             "optional": true,
2557             "field": "providerName",
2558             "description": ""
2559           },
2560           {
2561             "group": "Body",
2562             "type": "Text",
2563             "optional": true,
2564             "field": "providerResponse",
2565             "description": ""
2566           }
2567         ]
2568       }
2569     },
2570     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2571     "version": "0.0.0",
2572     "filename": "server/api/chatInteraction/index.js",
2573     "groupTitle": "Chat_Interactions"
2574   },
2575   {
2576     "type": "put",
2577     "url": "/api/chat/interactions/{id}/close",
2578     "title": "Close Interaction",
2579     "examples": [
2580       {
2581         "title": "Example usage:",
2582         "content": "curl https://{domain}/api/chat/interactions/{id}/close -d '[{\"to\": \"+3901119886500\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
2583         "type": "json"
2584       }
2585     ],
2586     "name": "addMessage",
2587     "group": "Chat_Interactions",
2588     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2589     "version": "0.0.0",
2590     "filename": "server/api/chatInteraction/index.js",
2591     "groupTitle": "Chat_Interactions"
2592   },
2593   {
2594     "type": "post",
2595     "url": "/api/chat/interactions/{id}/attachment_upload",
2596     "title": "Add attachment",
2597     "examples": [
2598       {
2599         "title": "Example usage:",
2600         "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",
2601         "type": "json"
2602       }
2603     ],
2604     "name": "attachmentUpload",
2605     "group": "Chat_Interactions",
2606     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2607     "version": "0.0.0",
2608     "filename": "server/api/chatInteraction/index.js",
2609     "groupTitle": "Chat_Interactions"
2610   },
2611   {
2612     "type": "post",
2613     "url": "/api/chat/interactions/{id}/vidaoo",
2614     "title": "Create Vidaoo Session",
2615     "examples": [
2616       {
2617         "title": "Example usage:",
2618         "content": "curl https://{domain}/api/chat/interactions/{id}/vidaoo  -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
2619         "type": "json"
2620       }
2621     ],
2622     "name": "createVidaooSession",
2623     "group": "Chat_Interactions",
2624     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2625     "version": "0.0.0",
2626     "filename": "server/api/chatInteraction/index.js",
2627     "groupTitle": "Chat_Interactions"
2628   },
2629   {
2630     "type": "put",
2631     "url": "/api/chat/interactions/{id}/custom_update",
2632     "title": "Update interaction",
2633     "examples": [
2634       {
2635         "title": "Example usage:",
2636         "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",
2637         "type": "json"
2638       }
2639     ],
2640     "name": "customUpdate",
2641     "group": "Chat_Interactions",
2642     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <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>",
2643     "version": "0.0.0",
2644     "filename": "server/api/chatInteraction/index.js",
2645     "groupTitle": "Chat_Interactions"
2646   },
2647   {
2648     "type": "get",
2649     "url": "/api/chat/interactions/{id}/download",
2650     "title": "Gets interaction",
2651     "examples": [
2652       {
2653         "title": "Example usage:",
2654         "content": "curl https://{domain}/api/chat/interactions/{id}/download -v -u {name}:{password} -X GET",
2655         "type": "json"
2656       }
2657     ],
2658     "name": "download",
2659     "group": "Chat_Interactions",
2660     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2661     "version": "0.0.0",
2662     "filename": "server/api/chatInteraction/index.js",
2663     "groupTitle": "Chat_Interactions"
2664   },
2665   {
2666     "type": "get",
2667     "url": "/api/chat/interactions/{id}/messages",
2668     "title": "Gets interaction messages",
2669     "examples": [
2670       {
2671         "title": "Example usage:",
2672         "content": "curl https://{domain}/api/chat/interactions/{id}/messages -v -u {name}:{password} -X GET",
2673         "type": "json"
2674       }
2675     ],
2676     "name": "getMessages",
2677     "group": "Chat_Interactions",
2678     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2679     "version": "0.0.0",
2680     "filename": "server/api/chatInteraction/index.js",
2681     "groupTitle": "Chat_Interactions"
2682   },
2683   {
2684     "type": "get",
2685     "url": "/api/chat/interactions/{id}/my_messages",
2686     "title": "Gets interaction messages",
2687     "examples": [
2688       {
2689         "title": "Example usage:",
2690         "content": "curl https://{domain}/api/chat/interactions/{id}/my_messages -v -u {name}:{password} -X GET",
2691         "type": "json"
2692       }
2693     ],
2694     "name": "getMyMessages",
2695     "group": "Chat_Interactions",
2696     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2697     "version": "0.0.0",
2698     "filename": "server/api/chatInteraction/index.js",
2699     "groupTitle": "Chat_Interactions"
2700   },
2701   {
2702     "type": "put",
2703     "url": "/api/chat/interactions/{id}",
2704     "title": "Update an existing Interaction",
2705     "examples": [
2706       {
2707         "title": "Example usage:",
2708         "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",
2709         "type": "json"
2710       }
2711     ],
2712     "name": "updateInteractions",
2713     "group": "Chat_Interactions",
2714     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2715     "version": "0.0.0",
2716     "filename": "server/api/chatInteraction/index.js",
2717     "groupTitle": "Chat_Interactions"
2718   },
2719   {
2720     "type": "post",
2721     "url": "/api/chat/internal/messages",
2722     "title": "Creates a new Message",
2723     "examples": [
2724       {
2725         "title": "Example usage:",
2726         "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",
2727         "type": "json"
2728       }
2729     ],
2730     "name": "CreateMessages",
2731     "group": "Chat_Internal_Messages",
2732     "parameter": {
2733       "fields": {
2734         "Body": [
2735           {
2736             "group": "Body",
2737             "type": "Text",
2738             "optional": false,
2739             "field": "body",
2740             "description": ""
2741           },
2742           {
2743             "group": "Body",
2744             "type": "Boolean",
2745             "optional": true,
2746             "field": "read",
2747             "description": ""
2748           },
2749           {
2750             "group": "Body",
2751             "type": "Integer",
2752             "optional": true,
2753             "field": "ChatInternalMessageId",
2754             "description": ""
2755           }
2756         ]
2757       }
2758     },
2759     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2760     "version": "0.0.0",
2761     "filename": "server/api/chatInternalMessage/index.js",
2762     "groupTitle": "Chat_Internal_Messages"
2763   },
2764   {
2765     "type": "delete",
2766     "url": "/api/chat/internal/messages/{id}",
2767     "title": "Deletes a Message",
2768     "examples": [
2769       {
2770         "title": "Example usage:",
2771         "content": "curl https://{domain}/api/chat/internal/messages/{id} -v -u {name}:{password} -X DELETE",
2772         "type": "json"
2773       }
2774     ],
2775     "name": "DeleteMessages",
2776     "group": "Chat_Internal_Messages",
2777     "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>",
2778     "version": "0.0.0",
2779     "filename": "server/api/chatInternalMessage/index.js",
2780     "groupTitle": "Chat_Internal_Messages"
2781   },
2782   {
2783     "type": "get",
2784     "url": "/api/chat/internal/messages/describe",
2785     "title": "Gets table info about Messages",
2786     "examples": [
2787       {
2788         "title": "Example usage:",
2789         "content": "curl https://{domain}/api/chat/internal/messages/describe -v -u {name}:{password}",
2790         "type": "json"
2791       }
2792     ],
2793     "name": "DescribeMessages",
2794     "group": "Chat_Internal_Messages",
2795     "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>",
2796     "version": "0.0.0",
2797     "filename": "server/api/chatInternalMessage/index.js",
2798     "groupTitle": "Chat_Internal_Messages"
2799   },
2800   {
2801     "type": "get",
2802     "url": "/api/chat/internal/messages",
2803     "title": "Gets a list of Messages",
2804     "examples": [
2805       {
2806         "title": "Example usage:",
2807         "content": "curl https://{domain}/api/chat/internal/messages -v -u {name}:{password}",
2808         "type": "json"
2809       }
2810     ],
2811     "name": "GetMessages",
2812     "group": "Chat_Internal_Messages",
2813     "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>",
2814     "version": "0.0.0",
2815     "filename": "server/api/chatInternalMessage/index.js",
2816     "groupTitle": "Chat_Internal_Messages"
2817   },
2818   {
2819     "type": "get",
2820     "url": "/api/chat/internal/messages/{id}",
2821     "title": "Gets a single Message",
2822     "examples": [
2823       {
2824         "title": "Example usage:",
2825         "content": "curl https://{domain}/api/chat/internal/messages/{id} -v -u {name}:{password}",
2826         "type": "json"
2827       }
2828     ],
2829     "name": "ShowMessages",
2830     "group": "Chat_Internal_Messages",
2831     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2832     "version": "0.0.0",
2833     "filename": "server/api/chatInternalMessage/index.js",
2834     "groupTitle": "Chat_Internal_Messages"
2835   },
2836   {
2837     "type": "put",
2838     "url": "/api/chat/internal/messages/{id}",
2839     "title": "Update an existing Message",
2840     "examples": [
2841       {
2842         "title": "Example usage:",
2843         "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",
2844         "type": "json"
2845       }
2846     ],
2847     "name": "updateMessages",
2848     "group": "Chat_Internal_Messages",
2849     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2850     "version": "0.0.0",
2851     "filename": "server/api/chatInternalMessage/index.js",
2852     "groupTitle": "Chat_Internal_Messages"
2853   },
2854   {
2855     "type": "post",
2856     "url": "/api/chat/messages",
2857     "title": "Creates a new Message",
2858     "examples": [
2859       {
2860         "title": "Example usage:",
2861         "content": "curl https://{domain}/api/chat/messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
2862         "type": "json"
2863       }
2864     ],
2865     "name": "CreateMessages",
2866     "group": "Chat_Messages",
2867     "parameter": {
2868       "fields": {
2869         "Body": [
2870           {
2871             "group": "Body",
2872             "type": "Text",
2873             "optional": false,
2874             "field": "body",
2875             "description": ""
2876           },
2877           {
2878             "group": "Body",
2879             "type": "Boolean",
2880             "optional": true,
2881             "field": "read",
2882             "description": ""
2883           },
2884           {
2885             "group": "Body",
2886             "type": "Boolean",
2887             "optional": true,
2888             "field": "secret",
2889             "description": ""
2890           },
2891           {
2892             "group": "Body",
2893             "type": "String",
2894             "allowedValues": [
2895               "\"in\"",
2896               "\"out\""
2897             ],
2898             "optional": false,
2899             "field": "direction",
2900             "description": ""
2901           },
2902           {
2903             "group": "Body",
2904             "type": "String",
2905             "optional": true,
2906             "field": "readAt",
2907             "description": ""
2908           },
2909           {
2910             "group": "Body",
2911             "type": "String",
2912             "optional": true,
2913             "field": "providerName",
2914             "description": ""
2915           },
2916           {
2917             "group": "Body",
2918             "type": "Text",
2919             "optional": true,
2920             "field": "providerResponse",
2921             "description": ""
2922           }
2923         ]
2924       }
2925     },
2926     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2927     "version": "0.0.0",
2928     "filename": "server/api/chatMessage/index.js",
2929     "groupTitle": "Chat_Messages"
2930   },
2931   {
2932     "type": "delete",
2933     "url": "/api/chat/messages/{id}",
2934     "title": "Deletes a Message",
2935     "examples": [
2936       {
2937         "title": "Example usage:",
2938         "content": "curl https://{domain}/api/chat/messages/{id} -v -u {name}:{password} -X DELETE",
2939         "type": "json"
2940       }
2941     ],
2942     "name": "DeleteMessages",
2943     "group": "Chat_Messages",
2944     "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>",
2945     "version": "0.0.0",
2946     "filename": "server/api/chatMessage/index.js",
2947     "groupTitle": "Chat_Messages"
2948   },
2949   {
2950     "type": "get",
2951     "url": "/api/chat/messages/describe",
2952     "title": "Gets table info about Messages",
2953     "examples": [
2954       {
2955         "title": "Example usage:",
2956         "content": "curl https://{domain}/api/chat/messages/describe -v -u {name}:{password}",
2957         "type": "json"
2958       }
2959     ],
2960     "name": "DescribeMessages",
2961     "group": "Chat_Messages",
2962     "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>",
2963     "version": "0.0.0",
2964     "filename": "server/api/chatMessage/index.js",
2965     "groupTitle": "Chat_Messages"
2966   },
2967   {
2968     "type": "get",
2969     "url": "/api/chat/messages",
2970     "title": "Gets a list of Messages",
2971     "examples": [
2972       {
2973         "title": "Example usage:",
2974         "content": "curl https://{domain}/api/chat/messages -v -u {name}:{password}",
2975         "type": "json"
2976       }
2977     ],
2978     "name": "GetMessages",
2979     "group": "Chat_Messages",
2980     "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>",
2981     "version": "0.0.0",
2982     "filename": "server/api/chatMessage/index.js",
2983     "groupTitle": "Chat_Messages"
2984   },
2985   {
2986     "type": "get",
2987     "url": "/api/chat/messages/{id}",
2988     "title": "Gets a single Message",
2989     "examples": [
2990       {
2991         "title": "Example usage:",
2992         "content": "curl https://{domain}/api/chat/messages/{id} -v -u {name}:{password}",
2993         "type": "json"
2994       }
2995     ],
2996     "name": "ShowMessages",
2997     "group": "Chat_Messages",
2998     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2999     "version": "0.0.0",
3000     "filename": "server/api/chatMessage/index.js",
3001     "groupTitle": "Chat_Messages"
3002   },
3003   {
3004     "type": "put",
3005     "url": "/api/chat/messages/{id}",
3006     "title": "Update an existing Message",
3007     "examples": [
3008       {
3009         "title": "Example usage:",
3010         "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",
3011         "type": "json"
3012       }
3013     ],
3014     "name": "updateMessages",
3015     "group": "Chat_Messages",
3016     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3017     "version": "0.0.0",
3018     "filename": "server/api/chatMessage/index.js",
3019     "groupTitle": "Chat_Messages"
3020   },
3021   {
3022     "type": "post",
3023     "url": "/api/chat/offline_messages",
3024     "title": "Creates a new OfflineMessage",
3025     "examples": [
3026       {
3027         "title": "Example usage:",
3028         "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",
3029         "type": "json"
3030       }
3031     ],
3032     "name": "CreateOfflineMessages",
3033     "group": "Chat_Offline_Messages",
3034     "parameter": {
3035       "fields": {
3036         "Body": [
3037           {
3038             "group": "Body",
3039             "type": "Text",
3040             "optional": false,
3041             "field": "body",
3042             "description": ""
3043           }
3044         ]
3045       }
3046     },
3047     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3048     "version": "0.0.0",
3049     "filename": "server/api/chatOfflineMessage/index.js",
3050     "groupTitle": "Chat_Offline_Messages"
3051   },
3052   {
3053     "type": "delete",
3054     "url": "/api/chat/offline_messages/{id}",
3055     "title": "Deletes a OfflineMessage",
3056     "examples": [
3057       {
3058         "title": "Example usage:",
3059         "content": "curl https://{domain}/api/chat/offline_messages/{id} -v -u {name}:{password} -X DELETE",
3060         "type": "json"
3061       }
3062     ],
3063     "name": "DeleteOfflineMessages",
3064     "group": "Chat_Offline_Messages",
3065     "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>",
3066     "version": "0.0.0",
3067     "filename": "server/api/chatOfflineMessage/index.js",
3068     "groupTitle": "Chat_Offline_Messages"
3069   },
3070   {
3071     "type": "get",
3072     "url": "/api/chat/offline_messages/describe",
3073     "title": "Gets table info about OfflineMessages",
3074     "examples": [
3075       {
3076         "title": "Example usage:",
3077         "content": "curl https://{domain}/api/chat/offline_messages/describe -v -u {name}:{password}",
3078         "type": "json"
3079       }
3080     ],
3081     "name": "DescribeOfflineMessages",
3082     "group": "Chat_Offline_Messages",
3083     "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>",
3084     "version": "0.0.0",
3085     "filename": "server/api/chatOfflineMessage/index.js",
3086     "groupTitle": "Chat_Offline_Messages"
3087   },
3088   {
3089     "type": "get",
3090     "url": "/api/chat/offline_messages",
3091     "title": "Gets a list of OfflineMessages",
3092     "examples": [
3093       {
3094         "title": "Example usage:",
3095         "content": "curl https://{domain}/api/chat/offline_messages -v -u {name}:{password}",
3096         "type": "json"
3097       }
3098     ],
3099     "name": "GetOfflineMessages",
3100     "group": "Chat_Offline_Messages",
3101     "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>",
3102     "version": "0.0.0",
3103     "filename": "server/api/chatOfflineMessage/index.js",
3104     "groupTitle": "Chat_Offline_Messages"
3105   },
3106   {
3107     "type": "get",
3108     "url": "/api/chat/offline_messages/{id}",
3109     "title": "Gets a single OfflineMessage",
3110     "examples": [
3111       {
3112         "title": "Example usage:",
3113         "content": "curl https://{domain}/api/chat/offline_messages/{id} -v -u {name}:{password}",
3114         "type": "json"
3115       }
3116     ],
3117     "name": "ShowOfflineMessages",
3118     "group": "Chat_Offline_Messages",
3119     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3120     "version": "0.0.0",
3121     "filename": "server/api/chatOfflineMessage/index.js",
3122     "groupTitle": "Chat_Offline_Messages"
3123   },
3124   {
3125     "type": "put",
3126     "url": "/api/chat/offline_messages/{id}",
3127     "title": "Update an existing OfflineMessage",
3128     "examples": [
3129       {
3130         "title": "Example usage:",
3131         "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",
3132         "type": "json"
3133       }
3134     ],
3135     "name": "updateOfflineMessages",
3136     "group": "Chat_Offline_Messages",
3137     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3138     "version": "0.0.0",
3139     "filename": "server/api/chatOfflineMessage/index.js",
3140     "groupTitle": "Chat_Offline_Messages"
3141   },
3142   {
3143     "type": "post",
3144     "url": "/api/chat/proactive_actions",
3145     "title": "Creates a new Proactive Action",
3146     "examples": [
3147       {
3148         "title": "Example usage:",
3149         "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",
3150         "type": "json"
3151       }
3152     ],
3153     "name": "CreateProactive_Actions",
3154     "group": "Chat_Proactive_Actions",
3155     "parameter": {
3156       "fields": {
3157         "Body": [
3158           {
3159             "group": "Body",
3160             "type": "String",
3161             "optional": false,
3162             "field": "name",
3163             "description": ""
3164           },
3165           {
3166             "group": "Body",
3167             "type": "String",
3168             "allowedValues": [
3169               "\"mouseOver\"",
3170               "\"timeout\""
3171             ],
3172             "optional": true,
3173             "field": "type",
3174             "description": ""
3175           },
3176           {
3177             "group": "Body",
3178             "type": "String",
3179             "optional": true,
3180             "field": "selector",
3181             "description": ""
3182           },
3183           {
3184             "group": "Body",
3185             "type": "Integer",
3186             "optional": true,
3187             "field": "timeout",
3188             "description": ""
3189           }
3190         ]
3191       }
3192     },
3193     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3194     "version": "0.0.0",
3195     "filename": "server/api/chatProactiveAction/index.js",
3196     "groupTitle": "Chat_Proactive_Actions"
3197   },
3198   {
3199     "type": "delete",
3200     "url": "/api/chat/proactive_actions/{id}",
3201     "title": "Deletes a Proactive Action",
3202     "examples": [
3203       {
3204         "title": "Example usage:",
3205         "content": "curl https://{domain}/api/chat/proactive_actions/{id} -v -u {name}:{password} -X DELETE",
3206         "type": "json"
3207       }
3208     ],
3209     "name": "DeleteProactive_Actions",
3210     "group": "Chat_Proactive_Actions",
3211     "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>",
3212     "version": "0.0.0",
3213     "filename": "server/api/chatProactiveAction/index.js",
3214     "groupTitle": "Chat_Proactive_Actions"
3215   },
3216   {
3217     "type": "get",
3218     "url": "/api/chat/proactive_actions/{id}",
3219     "title": "Gets a single Proactive Action",
3220     "examples": [
3221       {
3222         "title": "Example usage:",
3223         "content": "curl https://{domain}/api/chat/proactive_actions/{id} -v -u {name}:{password}",
3224         "type": "json"
3225       }
3226     ],
3227     "name": "ShowProactive_Actions",
3228     "group": "Chat_Proactive_Actions",
3229     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3230     "version": "0.0.0",
3231     "filename": "server/api/chatProactiveAction/index.js",
3232     "groupTitle": "Chat_Proactive_Actions"
3233   },
3234   {
3235     "type": "put",
3236     "url": "/api/chat/proactive_actions/{id}",
3237     "title": "Update an existing Proactive Action",
3238     "examples": [
3239       {
3240         "title": "Example usage:",
3241         "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",
3242         "type": "json"
3243       }
3244     ],
3245     "name": "updateProactive_Actions",
3246     "group": "Chat_Proactive_Actions",
3247     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3248     "version": "0.0.0",
3249     "filename": "server/api/chatProactiveAction/index.js",
3250     "groupTitle": "Chat_Proactive_Actions"
3251   },
3252   {
3253     "type": "post",
3254     "url": "/api/chat/reports/queue",
3255     "title": "Creates a new Chat Queue Report",
3256     "examples": [
3257       {
3258         "title": "Example usage:",
3259         "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",
3260         "type": "json"
3261       }
3262     ],
3263     "name": "CreateChat_Queue_Reports",
3264     "group": "Chat_Queue_Reports",
3265     "parameter": {
3266       "fields": {
3267         "Body": [
3268           {
3269             "group": "Body",
3270             "type": "String",
3271             "optional": false,
3272             "field": "uniqueid",
3273             "description": ""
3274           },
3275           {
3276             "group": "Body",
3277             "type": "String",
3278             "optional": true,
3279             "field": "from",
3280             "description": ""
3281           },
3282           {
3283             "group": "Body",
3284             "type": "String",
3285             "optional": true,
3286             "field": "joinAt",
3287             "description": ""
3288           },
3289           {
3290             "group": "Body",
3291             "type": "String",
3292             "optional": true,
3293             "field": "leaveAt",
3294             "description": ""
3295           },
3296           {
3297             "group": "Body",
3298             "type": "String",
3299             "optional": true,
3300             "field": "acceptAt",
3301             "description": ""
3302           },
3303           {
3304             "group": "Body",
3305             "type": "String",
3306             "optional": true,
3307             "field": "exitAt",
3308             "description": ""
3309           },
3310           {
3311             "group": "Body",
3312             "type": "String",
3313             "optional": true,
3314             "field": "reason",
3315             "description": ""
3316           }
3317         ]
3318       }
3319     },
3320     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3321     "version": "0.0.0",
3322     "filename": "server/api/chatQueueReport/index.js",
3323     "groupTitle": "Chat_Queue_Reports"
3324   },
3325   {
3326     "type": "delete",
3327     "url": "/api/chat/reports/queue/{id}",
3328     "title": "Deletes a Chat Queue Report",
3329     "examples": [
3330       {
3331         "title": "Example usage:",
3332         "content": "curl https://{domain}/api/chat/reports/queue/{id} -v -u {name}:{password} -X DELETE",
3333         "type": "json"
3334       }
3335     ],
3336     "name": "DeleteChat_Queue_Reports",
3337     "group": "Chat_Queue_Reports",
3338     "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>",
3339     "version": "0.0.0",
3340     "filename": "server/api/chatQueueReport/index.js",
3341     "groupTitle": "Chat_Queue_Reports"
3342   },
3343   {
3344     "type": "get",
3345     "url": "/api/chat/reports/queue/describe",
3346     "title": "Gets table info about Chat Queue Reports",
3347     "examples": [
3348       {
3349         "title": "Example usage:",
3350         "content": "curl https://{domain}/api/chat/reports/queue/describe -v -u {name}:{password}",
3351         "type": "json"
3352       }
3353     ],
3354     "name": "DescribeChat_Queue_Reports",
3355     "group": "Chat_Queue_Reports",
3356     "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>",
3357     "version": "0.0.0",
3358     "filename": "server/api/chatQueueReport/index.js",
3359     "groupTitle": "Chat_Queue_Reports"
3360   },
3361   {
3362     "type": "get",
3363     "url": "/api/chat/reports/queue",
3364     "title": "Gets a list of Chat Queue Reports",
3365     "examples": [
3366       {
3367         "title": "Example usage:",
3368         "content": "curl https://{domain}/api/chat/reports/queue -v -u {name}:{password}",
3369         "type": "json"
3370       }
3371     ],
3372     "name": "GetChat_Queue_Reports",
3373     "group": "Chat_Queue_Reports",
3374     "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>",
3375     "version": "0.0.0",
3376     "filename": "server/api/chatQueueReport/index.js",
3377     "groupTitle": "Chat_Queue_Reports"
3378   },
3379   {
3380     "type": "get",
3381     "url": "/api/chat/reports/queue/{id}",
3382     "title": "Gets a single Chat Queue Report",
3383     "examples": [
3384       {
3385         "title": "Example usage:",
3386         "content": "curl https://{domain}/api/chat/reports/queue/{id} -v -u {name}:{password}",
3387         "type": "json"
3388       }
3389     ],
3390     "name": "ShowChat_Queue_Reports",
3391     "group": "Chat_Queue_Reports",
3392     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3393     "version": "0.0.0",
3394     "filename": "server/api/chatQueueReport/index.js",
3395     "groupTitle": "Chat_Queue_Reports"
3396   },
3397   {
3398     "type": "put",
3399     "url": "/api/chat/reports/queue/{id}",
3400     "title": "Update an existing Chat Queue Report",
3401     "examples": [
3402       {
3403         "title": "Example usage:",
3404         "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",
3405         "type": "json"
3406       }
3407     ],
3408     "name": "updateChat_Queue_Reports",
3409     "group": "Chat_Queue_Reports",
3410     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3411     "version": "0.0.0",
3412     "filename": "server/api/chatQueueReport/index.js",
3413     "groupTitle": "Chat_Queue_Reports"
3414   },
3415   {
3416     "type": "post",
3417     "url": "/api/chat/queues/{id}/users",
3418     "title": "Add agents to a queue",
3419     "examples": [
3420       {
3421         "title": "Example usage:",
3422         "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",
3423         "type": "json"
3424       }
3425     ],
3426     "name": "AddAgents",
3427     "group": "Chat_Queues",
3428     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3429     "version": "0.0.0",
3430     "filename": "server/api/chatQueue/index.js",
3431     "groupTitle": "Chat_Queues"
3432   },
3433   {
3434     "type": "post",
3435     "url": "/api/chat/queues/{id}/teams",
3436     "title": "Add teams to a queue",
3437     "examples": [
3438       {
3439         "title": "Example usage:",
3440         "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",
3441         "type": "json"
3442       }
3443     ],
3444     "name": "AddTeams",
3445     "group": "Chat_Queues",
3446     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3447     "version": "0.0.0",
3448     "filename": "server/api/chatQueue/index.js",
3449     "groupTitle": "Chat_Queues"
3450   },
3451   {
3452     "type": "post",
3453     "url": "/api/chat/queues",
3454     "title": "Creates a new Queue",
3455     "examples": [
3456       {
3457         "title": "Example usage:",
3458         "content": "curl https://{domain}/api/chat/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
3459         "type": "json"
3460       }
3461     ],
3462     "name": "CreateQueues",
3463     "group": "Chat_Queues",
3464     "parameter": {
3465       "fields": {
3466         "Body": [
3467           {
3468             "group": "Body",
3469             "type": "String",
3470             "optional": false,
3471             "field": "name",
3472             "description": ""
3473           },
3474           {
3475             "group": "Body",
3476             "type": "String",
3477             "optional": true,
3478             "field": "description",
3479             "description": ""
3480           },
3481           {
3482             "group": "Body",
3483             "type": "Integer",
3484             "optional": true,
3485             "field": "timeout",
3486             "description": ""
3487           },
3488           {
3489             "group": "Body",
3490             "type": "String",
3491             "allowedValues": [
3492               "\"rrmemory\"",
3493               "\"beepall\"",
3494               "\"roundrobin\""
3495             ],
3496             "optional": true,
3497             "field": "strategy",
3498             "description": ""
3499           }
3500         ]
3501       }
3502     },
3503     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3504     "version": "0.0.0",
3505     "filename": "server/api/chatQueue/index.js",
3506     "groupTitle": "Chat_Queues"
3507   },
3508   {
3509     "type": "delete",
3510     "url": "/api/chat/queues/{id}",
3511     "title": "Deletes a Queue",
3512     "examples": [
3513       {
3514         "title": "Example usage:",
3515         "content": "curl https://{domain}/api/chat/queues/{id} -v -u {name}:{password} -X DELETE",
3516         "type": "json"
3517       }
3518     ],
3519     "name": "DeleteQueues",
3520     "group": "Chat_Queues",
3521     "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>",
3522     "version": "0.0.0",
3523     "filename": "server/api/chatQueue/index.js",
3524     "groupTitle": "Chat_Queues"
3525   },
3526   {
3527     "type": "get",
3528     "url": "/api/chat/queues/describe",
3529     "title": "Gets table info about Queues",
3530     "examples": [
3531       {
3532         "title": "Example usage:",
3533         "content": "curl https://{domain}/api/chat/queues/describe -v -u {name}:{password}",
3534         "type": "json"
3535       }
3536     ],
3537     "name": "DescribeQueues",
3538     "group": "Chat_Queues",
3539     "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>",
3540     "version": "0.0.0",
3541     "filename": "server/api/chatQueue/index.js",
3542     "groupTitle": "Chat_Queues"
3543   },
3544   {
3545     "type": "get",
3546     "url": "/api/chat/queues/{id}/users",
3547     "title": "Gets queue agents",
3548     "examples": [
3549       {
3550         "title": "Example usage:",
3551         "content": "curl https://{domain}/api/chat/queues/{id}/users -v -u {name}:{password} -X POST",
3552         "type": "json"
3553       }
3554     ],
3555     "name": "GetAgents",
3556     "group": "Chat_Queues",
3557     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3558     "version": "0.0.0",
3559     "filename": "server/api/chatQueue/index.js",
3560     "groupTitle": "Chat_Queues"
3561   },
3562   {
3563     "type": "get",
3564     "url": "/api/chat/queues/{id}/members",
3565     "title": "GetMembers",
3566     "examples": [
3567       {
3568         "title": "Example usage:",
3569         "content": "curl https://{domain}/api/chat/queues/{id}/members  -v -u {name}:{password}",
3570         "type": "json"
3571       }
3572     ],
3573     "name": "GetMembers",
3574     "group": "Chat_Queues",
3575     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3576     "version": "0.0.0",
3577     "filename": "server/api/chatQueue/index.js",
3578     "groupTitle": "Chat_Queues"
3579   },
3580   {
3581     "type": "get",
3582     "url": "/api/chat/queues",
3583     "title": "Gets a list of Queues",
3584     "examples": [
3585       {
3586         "title": "Example usage:",
3587         "content": "curl https://{domain}/api/chat/queues -v -u {name}:{password}",
3588         "type": "json"
3589       }
3590     ],
3591     "name": "GetQueues",
3592     "group": "Chat_Queues",
3593     "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>",
3594     "version": "0.0.0",
3595     "filename": "server/api/chatQueue/index.js",
3596     "groupTitle": "Chat_Queues"
3597   },
3598   {
3599     "type": "get",
3600     "url": "/api/chat/queues/{id}/teams",
3601     "title": "Gets queues list",
3602     "examples": [
3603       {
3604         "title": "Example usage:",
3605         "content": "curl https://{domain}/api/chat/queues/{id}/teams -v -u {name}:{password}",
3606         "type": "json"
3607       }
3608     ],
3609     "name": "GetTeams",
3610     "group": "Chat_Queues",
3611     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3612     "version": "0.0.0",
3613     "filename": "server/api/chatQueue/index.js",
3614     "groupTitle": "Chat_Queues"
3615   },
3616   {
3617     "type": "delete",
3618     "url": "/api/chat/queues/{id}/users",
3619     "title": "Removes agents from a queue",
3620     "examples": [
3621       {
3622         "title": "Example usage:",
3623         "content": "curl https://{domain}/api/chat/queues/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
3624         "type": "json"
3625       }
3626     ],
3627     "name": "RemoveAgents",
3628     "group": "Chat_Queues",
3629     "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>",
3630     "version": "0.0.0",
3631     "filename": "server/api/chatQueue/index.js",
3632     "groupTitle": "Chat_Queues"
3633   },
3634   {
3635     "type": "get",
3636     "url": "/api/chat/queues/{id}",
3637     "title": "Gets a single Queue",
3638     "examples": [
3639       {
3640         "title": "Example usage:",
3641         "content": "curl https://{domain}/api/chat/queues/{id} -v -u {name}:{password}",
3642         "type": "json"
3643       }
3644     ],
3645     "name": "ShowQueues",
3646     "group": "Chat_Queues",
3647     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3648     "version": "0.0.0",
3649     "filename": "server/api/chatQueue/index.js",
3650     "groupTitle": "Chat_Queues"
3651   },
3652   {
3653     "type": "put",
3654     "url": "/api/chat/queues/{id}",
3655     "title": "Update an existing Queue",
3656     "examples": [
3657       {
3658         "title": "Example usage:",
3659         "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",
3660         "type": "json"
3661       }
3662     ],
3663     "name": "updateQueues",
3664     "group": "Chat_Queues",
3665     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3666     "version": "0.0.0",
3667     "filename": "server/api/chatQueue/index.js",
3668     "groupTitle": "Chat_Queues"
3669   },
3670   {
3671     "type": "post",
3672     "url": "/api/chat/reports/transfer",
3673     "title": "Creates a new Chat Transfer Report",
3674     "examples": [
3675       {
3676         "title": "Example usage:",
3677         "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",
3678         "type": "json"
3679       }
3680     ],
3681     "name": "CreateChat_Transfer_Reports",
3682     "group": "Chat_Transfer_Reports",
3683     "parameter": {
3684       "fields": {
3685         "Body": [
3686           {
3687             "group": "Body",
3688             "type": "String",
3689             "optional": false,
3690             "field": "uniqueid",
3691             "description": ""
3692           },
3693           {
3694             "group": "Body",
3695             "type": "String",
3696             "allowedValues": [
3697               "\"account\"",
3698               "\"agent\"",
3699               "\"queue\""
3700             ],
3701             "optional": false,
3702             "field": "type",
3703             "description": ""
3704           },
3705           {
3706             "group": "Body",
3707             "type": "String",
3708             "optional": false,
3709             "field": "transferredAt",
3710             "description": ""
3711           }
3712         ]
3713       }
3714     },
3715     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3716     "version": "0.0.0",
3717     "filename": "server/api/chatTransferReport/index.js",
3718     "groupTitle": "Chat_Transfer_Reports"
3719   },
3720   {
3721     "type": "delete",
3722     "url": "/api/chat/reports/transfer/{id}",
3723     "title": "Deletes a Chat Transfer Report",
3724     "examples": [
3725       {
3726         "title": "Example usage:",
3727         "content": "curl https://{domain}/api/chat/reports/transfer/{id} -v -u {name}:{password} -X DELETE",
3728         "type": "json"
3729       }
3730     ],
3731     "name": "DeleteChat_Transfer_Reports",
3732     "group": "Chat_Transfer_Reports",
3733     "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>",
3734     "version": "0.0.0",
3735     "filename": "server/api/chatTransferReport/index.js",
3736     "groupTitle": "Chat_Transfer_Reports"
3737   },
3738   {
3739     "type": "get",
3740     "url": "/api/chat/reports/transfer/describe",
3741     "title": "Gets table info about Chat Transfer Reports",
3742     "examples": [
3743       {
3744         "title": "Example usage:",
3745         "content": "curl https://{domain}/api/chat/reports/transfer/describe -v -u {name}:{password}",
3746         "type": "json"
3747       }
3748     ],
3749     "name": "DescribeChat_Transfer_Reports",
3750     "group": "Chat_Transfer_Reports",
3751     "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>",
3752     "version": "0.0.0",
3753     "filename": "server/api/chatTransferReport/index.js",
3754     "groupTitle": "Chat_Transfer_Reports"
3755   },
3756   {
3757     "type": "get",
3758     "url": "/api/chat/reports/transfer",
3759     "title": "Gets a list of Chat Transfer Reports",
3760     "examples": [
3761       {
3762         "title": "Example usage:",
3763         "content": "curl https://{domain}/api/chat/reports/transfer -v -u {name}:{password}",
3764         "type": "json"
3765       }
3766     ],
3767     "name": "GetChat_Transfer_Reports",
3768     "group": "Chat_Transfer_Reports",
3769     "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>",
3770     "version": "0.0.0",
3771     "filename": "server/api/chatTransferReport/index.js",
3772     "groupTitle": "Chat_Transfer_Reports"
3773   },
3774   {
3775     "type": "get",
3776     "url": "/api/chat/reports/transfer/{id}",
3777     "title": "Gets a single Chat Transfer Report",
3778     "examples": [
3779       {
3780         "title": "Example usage:",
3781         "content": "curl https://{domain}/api/chat/reports/transfer/{id} -v -u {name}:{password}",
3782         "type": "json"
3783       }
3784     ],
3785     "name": "ShowChat_Transfer_Reports",
3786     "group": "Chat_Transfer_Reports",
3787     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3788     "version": "0.0.0",
3789     "filename": "server/api/chatTransferReport/index.js",
3790     "groupTitle": "Chat_Transfer_Reports"
3791   },
3792   {
3793     "type": "put",
3794     "url": "/api/chat/reports/transfer/{id}",
3795     "title": "Update an existing Chat Transfer Report",
3796     "examples": [
3797       {
3798         "title": "Example usage:",
3799         "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",
3800         "type": "json"
3801       }
3802     ],
3803     "name": "updateChat_Transfer_Reports",
3804     "group": "Chat_Transfer_Reports",
3805     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3806     "version": "0.0.0",
3807     "filename": "server/api/chatTransferReport/index.js",
3808     "groupTitle": "Chat_Transfer_Reports"
3809   },
3810   {
3811     "type": "post",
3812     "url": "/api/chat/websites/{id}/users",
3813     "title": "Add agents to a website",
3814     "examples": [
3815       {
3816         "title": "Example usage:",
3817         "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",
3818         "type": "json"
3819       }
3820     ],
3821     "name": "AddAgents",
3822     "group": "Chat_Websites",
3823     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3824     "version": "0.0.0",
3825     "filename": "server/api/chatWebsite/index.js",
3826     "groupTitle": "Chat_Websites"
3827   },
3828   {
3829     "type": "post",
3830     "url": "/api/chat/websites",
3831     "title": "Creates a new Website",
3832     "examples": [
3833       {
3834         "title": "Example usage:",
3835         "content": "curl https://{domain}/api/chat/websites -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
3836         "type": "json"
3837       }
3838     ],
3839     "name": "CreateWebsites",
3840     "group": "Chat_Websites",
3841     "parameter": {
3842       "fields": {
3843         "Body": [
3844           {
3845             "group": "Body",
3846             "type": "String",
3847             "optional": false,
3848             "field": "name",
3849             "description": ""
3850           },
3851           {
3852             "group": "Body",
3853             "type": "String",
3854             "optional": false,
3855             "field": "address",
3856             "description": ""
3857           },
3858           {
3859             "group": "Body",
3860             "type": "String",
3861             "optional": true,
3862             "field": "description",
3863             "description": ""
3864           },
3865           {
3866             "group": "Body",
3867             "type": "String",
3868             "optional": true,
3869             "field": "mapKey",
3870             "description": ""
3871           },
3872           {
3873             "group": "Body",
3874             "type": "String",
3875             "optional": true,
3876             "field": "mapKeyOffline",
3877             "description": ""
3878           },
3879           {
3880             "group": "Body",
3881             "type": "String",
3882             "optional": false,
3883             "field": "key",
3884             "description": ""
3885           },
3886           {
3887             "group": "Body",
3888             "type": "String",
3889             "optional": true,
3890             "field": "agentAlias",
3891             "description": ""
3892           },
3893           {
3894             "group": "Body",
3895             "type": "String",
3896             "optional": true,
3897             "field": "customerAlias",
3898             "description": ""
3899           },
3900           {
3901             "group": "Body",
3902             "type": "String",
3903             "optional": false,
3904             "field": "color",
3905             "description": ""
3906           },
3907           {
3908             "group": "Body",
3909             "type": "String",
3910             "optional": false,
3911             "field": "color_button",
3912             "description": ""
3913           },
3914           {
3915             "group": "Body",
3916             "type": "String",
3917             "optional": false,
3918             "field": "textColor",
3919             "description": ""
3920           },
3921           {
3922             "group": "Body",
3923             "type": "Integer",
3924             "optional": true,
3925             "field": "fontSize",
3926             "description": ""
3927           },
3928           {
3929             "group": "Body",
3930             "type": "String",
3931             "optional": true,
3932             "field": "remote",
3933             "description": ""
3934           },
3935           {
3936             "group": "Body",
3937             "type": "Boolean",
3938             "optional": true,
3939             "field": "animation",
3940             "description": ""
3941           },
3942           {
3943             "group": "Body",
3944             "type": "String",
3945             "allowedValues": [
3946               "\"rounded\"",
3947               "\"squared\""
3948             ],
3949             "optional": true,
3950             "field": "header_shape",
3951             "description": ""
3952           },
3953           {
3954             "group": "Body",
3955             "type": "String",
3956             "optional": true,
3957             "field": "header_online",
3958             "description": ""
3959           },
3960           {
3961             "group": "Body",
3962             "type": "String",
3963             "optional": true,
3964             "field": "start_chat_button",
3965             "description": ""
3966           },
3967           {
3968             "group": "Body",
3969             "type": "String",
3970             "optional": true,
3971             "field": "offline_chat_button",
3972             "description": ""
3973           },
3974           {
3975             "group": "Body",
3976             "type": "String",
3977             "optional": true,
3978             "field": "header_offline",
3979             "description": ""
3980           },
3981           {
3982             "group": "Body",
3983             "type": "Boolean",
3984             "optional": true,
3985             "field": "download_transcript",
3986             "description": ""
3987           },
3988           {
3989             "group": "Body",
3990             "type": "Integer",
3991             "optional": true,
3992             "field": "timeout",
3993             "description": ""
3994           },
3995           {
3996             "group": "Body",
3997             "type": "String",
3998             "optional": true,
3999             "field": "whiteLabel",
4000             "description": ""
4001           },
4002           {
4003             "group": "Body",
4004             "type": "Boolean",
4005             "optional": true,
4006             "field": "defaultWhiteLabel",
4007             "description": ""
4008           },
4009           {
4010             "group": "Body",
4011             "type": "Text",
4012             "optional": true,
4013             "field": "sitepic",
4014             "description": ""
4015           },
4016           {
4017             "group": "Body",
4018             "type": "String",
4019             "optional": true,
4020             "field": "closingQuestion",
4021             "description": ""
4022           },
4023           {
4024             "group": "Body",
4025             "type": "String",
4026             "optional": true,
4027             "field": "formSubmitSuccessMessage",
4028             "description": ""
4029           },
4030           {
4031             "group": "Body",
4032             "type": "String",
4033             "optional": true,
4034             "field": "formSubmitFailureMessage",
4035             "description": ""
4036           },
4037           {
4038             "group": "Body",
4039             "type": "String",
4040             "optional": true,
4041             "field": "noteTitle",
4042             "description": ""
4043           },
4044           {
4045             "group": "Body",
4046             "type": "String",
4047             "optional": true,
4048             "field": "placeholderMessage",
4049             "description": ""
4050           },
4051           {
4052             "group": "Body",
4053             "type": "String",
4054             "optional": true,
4055             "field": "closingMessage",
4056             "description": ""
4057           },
4058           {
4059             "group": "Body",
4060             "type": "String",
4061             "optional": true,
4062             "field": "closingMessageButton",
4063             "description": ""
4064           },
4065           {
4066             "group": "Body",
4067             "type": "String",
4068             "optional": true,
4069             "field": "skipMessageButton",
4070             "description": ""
4071           },
4072           {
4073             "group": "Body",
4074             "type": "Boolean",
4075             "optional": true,
4076             "field": "conditionAgreement",
4077             "description": ""
4078           },
4079           {
4080             "group": "Body",
4081             "type": "Boolean",
4082             "optional": true,
4083             "field": "enableRating",
4084             "description": ""
4085           },
4086           {
4087             "group": "Body",
4088             "type": "Boolean",
4089             "optional": true,
4090             "field": "enableFeedback",
4091             "description": ""
4092           },
4093           {
4094             "group": "Body",
4095             "type": "Boolean",
4096             "optional": true,
4097             "field": "enableSendButton",
4098             "description": ""
4099           },
4100           {
4101             "group": "Body",
4102             "type": "String",
4103             "optional": true,
4104             "field": "feedbackTitle",
4105             "description": ""
4106           },
4107           {
4108             "group": "Body",
4109             "type": "String",
4110             "allowedValues": [
4111               "\"star\"",
4112               "\"thumb\""
4113             ],
4114             "optional": true,
4115             "field": "ratingType",
4116             "description": ""
4117           },
4118           {
4119             "group": "Body",
4120             "type": "Integer",
4121             "optional": true,
4122             "field": "ratingStarsNumber",
4123             "description": ""
4124           },
4125           {
4126             "group": "Body",
4127             "type": "Text",
4128             "optional": true,
4129             "field": "onlineForm",
4130             "description": ""
4131           },
4132           {
4133             "group": "Body",
4134             "type": "Text",
4135             "optional": true,
4136             "field": "offlineForm",
4137             "description": ""
4138           },
4139           {
4140             "group": "Body",
4141             "type": "String",
4142             "optional": true,
4143             "field": "token",
4144             "description": ""
4145           },
4146           {
4147             "group": "Body",
4148             "type": "Boolean",
4149             "optional": true,
4150             "field": "autoclose",
4151             "description": ""
4152           },
4153           {
4154             "group": "Body",
4155             "type": "Boolean",
4156             "optional": true,
4157             "field": "enableCustomerWriting",
4158             "description": ""
4159           },
4160           {
4161             "group": "Body",
4162             "type": "Boolean",
4163             "optional": true,
4164             "field": "forwardTranscript",
4165             "description": ""
4166           },
4167           {
4168             "group": "Body",
4169             "type": "String",
4170             "optional": true,
4171             "field": "forwardTranscriptMessage",
4172             "description": ""
4173           },
4174           {
4175             "group": "Body",
4176             "type": "Boolean",
4177             "optional": true,
4178             "field": "forwardOffline",
4179             "description": ""
4180           },
4181           {
4182             "group": "Body",
4183             "type": "String",
4184             "optional": true,
4185             "field": "forwardOfflineAddress",
4186             "description": ""
4187           },
4188           {
4189             "group": "Body",
4190             "type": "String",
4191             "optional": true,
4192             "field": "waitingTitle",
4193             "description": ""
4194           },
4195           {
4196             "group": "Body",
4197             "type": "String",
4198             "optional": true,
4199             "field": "waitingMessage",
4200             "description": ""
4201           },
4202           {
4203             "group": "Body",
4204             "type": "String",
4205             "optional": true,
4206             "field": "offlineMessageSubject",
4207             "description": ""
4208           },
4209           {
4210             "group": "Body",
4211             "type": "String",
4212             "optional": true,
4213             "field": "offlineMessageBody",
4214             "description": ""
4215           },
4216           {
4217             "group": "Body",
4218             "type": "Boolean",
4219             "optional": true,
4220             "field": "enableUnmanagedNote",
4221             "description": ""
4222           },
4223           {
4224             "group": "Body",
4225             "type": "String",
4226             "optional": true,
4227             "field": "unmanagedMessage",
4228             "description": ""
4229           },
4230           {
4231             "group": "Body",
4232             "type": "String",
4233             "optional": true,
4234             "field": "skipUnmanaged",
4235             "description": ""
4236           },
4237           {
4238             "group": "Body",
4239             "type": "String",
4240             "optional": true,
4241             "field": "sendUnmanaged",
4242             "description": ""
4243           },
4244           {
4245             "group": "Body",
4246             "type": "Boolean",
4247             "optional": true,
4248             "field": "enableCustomerAttachment",
4249             "description": ""
4250           },
4251           {
4252             "group": "Body",
4253             "type": "Boolean",
4254             "optional": true,
4255             "field": "enableCustomerCheckmarks",
4256             "description": ""
4257           },
4258           {
4259             "group": "Body",
4260             "type": "Text",
4261             "optional": true,
4262             "field": "agentAvatar",
4263             "description": ""
4264           },
4265           {
4266             "group": "Body",
4267             "type": "Boolean",
4268             "optional": true,
4269             "field": "showAgentAvatar",
4270             "description": ""
4271           },
4272           {
4273             "group": "Body",
4274             "type": "String",
4275             "optional": true,
4276             "field": "timezone",
4277             "description": ""
4278           },
4279           {
4280             "group": "Body",
4281             "type": "Text",
4282             "optional": true,
4283             "field": "notificationTemplate",
4284             "description": ""
4285           },
4286           {
4287             "group": "Body",
4288             "type": "Boolean",
4289             "optional": true,
4290             "field": "notificationSound",
4291             "description": ""
4292           },
4293           {
4294             "group": "Body",
4295             "type": "Boolean",
4296             "optional": true,
4297             "field": "notificationShake",
4298             "description": ""
4299           },
4300           {
4301             "group": "Body",
4302             "type": "Boolean",
4303             "optional": true,
4304             "field": "hideWhenOffline",
4305             "description": ""
4306           },
4307           {
4308             "group": "Body",
4309             "type": "String",
4310             "optional": true,
4311             "field": "agentIdentifier",
4312             "description": ""
4313           },
4314           {
4315             "group": "Body",
4316             "type": "Integer",
4317             "optional": true,
4318             "field": "waitForTheAssignedAgent",
4319             "description": ""
4320           },
4321           {
4322             "group": "Body",
4323             "type": "String",
4324             "optional": true,
4325             "field": "alignment",
4326             "description": ""
4327           },
4328           {
4329             "group": "Body",
4330             "type": "Integer",
4331             "optional": true,
4332             "field": "verticalAlignment",
4333             "description": ""
4334           },
4335           {
4336             "group": "Body",
4337             "type": "String",
4338             "optional": true,
4339             "field": "labelText",
4340             "description": ""
4341           },
4342           {
4343             "group": "Body",
4344             "type": "String",
4345             "optional": true,
4346             "field": "messagesAlignment",
4347             "description": ""
4348           },
4349           {
4350             "group": "Body",
4351             "type": "String",
4352             "optional": true,
4353             "field": "defaultTitle",
4354             "description": ""
4355           },
4356           {
4357             "group": "Body",
4358             "type": "Text",
4359             "optional": true,
4360             "field": "customerAvatar",
4361             "description": ""
4362           },
4363           {
4364             "group": "Body",
4365             "type": "Boolean",
4366             "optional": true,
4367             "field": "showCustomerAvatar",
4368             "description": ""
4369           },
4370           {
4371             "group": "Body",
4372             "type": "Integer",
4373             "optional": true,
4374             "field": "messageFontSize",
4375             "description": ""
4376           },
4377           {
4378             "group": "Body",
4379             "type": "String",
4380             "optional": false,
4381             "field": "backgroundColor",
4382             "description": ""
4383           },
4384           {
4385             "group": "Body",
4386             "type": "Boolean",
4387             "optional": true,
4388             "field": "queueTransfer",
4389             "description": ""
4390           },
4391           {
4392             "group": "Body",
4393             "type": "Integer",
4394             "optional": true,
4395             "field": "queueTransferTimeout",
4396             "description": ""
4397           },
4398           {
4399             "group": "Body",
4400             "type": "Boolean",
4401             "optional": true,
4402             "field": "agentTransfer",
4403             "description": ""
4404           },
4405           {
4406             "group": "Body",
4407             "type": "Integer",
4408             "optional": true,
4409             "field": "agentTransferTimeout",
4410             "description": ""
4411           },
4412           {
4413             "group": "Body",
4414             "type": "String",
4415             "optional": true,
4416             "field": "systemAlias",
4417             "description": ""
4418           },
4419           {
4420             "group": "Body",
4421             "type": "Text",
4422             "optional": true,
4423             "field": "systemAvatar",
4424             "description": ""
4425           },
4426           {
4427             "group": "Body",
4428             "type": "Integer",
4429             "optional": true,
4430             "field": "mandatoryDispositionPauseId",
4431             "description": "<p>Status to put when mandatory disposition is enabled</p>"
4432           },
4433           {
4434             "group": "Body",
4435             "type": "Boolean",
4436             "optional": true,
4437             "field": "mandatoryDisposition",
4438             "description": "<p>Enabled/disables mandatory dispo on a queue</p>"
4439           },
4440           {
4441             "group": "Body",
4442             "type": "Boolean",
4443             "optional": true,
4444             "field": "vidaooEscalation",
4445             "description": ""
4446           },
4447           {
4448             "group": "Body",
4449             "type": "String",
4450             "optional": true,
4451             "field": "vidaooApiKey",
4452             "description": ""
4453           },
4454           {
4455             "group": "Body",
4456             "type": "String",
4457             "optional": false,
4458             "field": "vidaooTopic",
4459             "description": ""
4460           },
4461           {
4462             "group": "Body",
4463             "type": "String",
4464             "optional": true,
4465             "field": "vidaooNote",
4466             "description": ""
4467           },
4468           {
4469             "group": "Body",
4470             "type": "Text",
4471             "optional": true,
4472             "field": "vidaooMetadata",
4473             "description": ""
4474           },
4475           {
4476             "group": "Body",
4477             "type": "Boolean",
4478             "optional": true,
4479             "field": "openNewInteraction",
4480             "description": ""
4481           },
4482           {
4483             "group": "Body",
4484             "type": "Text",
4485             "optional": true,
4486             "field": "subjectOffline",
4487             "description": ""
4488           }
4489         ]
4490       }
4491     },
4492     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4493     "version": "0.0.0",
4494     "filename": "server/api/chatWebsite/index.js",
4495     "groupTitle": "Chat_Websites"
4496   },
4497   {
4498     "type": "delete",
4499     "url": "/api/chat/websites/{id}",
4500     "title": "Deletes a Website",
4501     "examples": [
4502       {
4503         "title": "Example usage:",
4504         "content": "curl https://{domain}/api/chat/websites/{id} -v -u {name}:{password} -X DELETE",
4505         "type": "json"
4506       }
4507     ],
4508     "name": "DeleteWebsites",
4509     "group": "Chat_Websites",
4510     "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>",
4511     "version": "0.0.0",
4512     "filename": "server/api/chatWebsite/index.js",
4513     "groupTitle": "Chat_Websites"
4514   },
4515   {
4516     "type": "get",
4517     "url": "/api/chat/websites/describe",
4518     "title": "Gets table info about Websites",
4519     "examples": [
4520       {
4521         "title": "Example usage:",
4522         "content": "curl https://{domain}/api/chat/websites/describe -v -u {name}:{password}",
4523         "type": "json"
4524       }
4525     ],
4526     "name": "DescribeWebsites",
4527     "group": "Chat_Websites",
4528     "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>",
4529     "version": "0.0.0",
4530     "filename": "server/api/chatWebsite/index.js",
4531     "groupTitle": "Chat_Websites"
4532   },
4533   {
4534     "type": "get",
4535     "url": "/api/chat/websites/{id}/users",
4536     "title": "Gets agents from website",
4537     "examples": [
4538       {
4539         "title": "Example usage:",
4540         "content": "curl https://{domain}/api/chat/websites/{id}/users -v -u {name}:{password} -X GET",
4541         "type": "json"
4542       }
4543     ],
4544     "name": "GetAgents",
4545     "group": "Chat_Websites",
4546     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4547     "version": "0.0.0",
4548     "filename": "server/api/chatWebsite/index.js",
4549     "groupTitle": "Chat_Websites"
4550   },
4551   {
4552     "type": "get",
4553     "url": "/api/chat/websites",
4554     "title": "Gets a list of Websites",
4555     "examples": [
4556       {
4557         "title": "Example usage:",
4558         "content": "curl https://{domain}/api/chat/websites -v -u {name}:{password}",
4559         "type": "json"
4560       }
4561     ],
4562     "name": "GetWebsites",
4563     "group": "Chat_Websites",
4564     "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>",
4565     "version": "0.0.0",
4566     "filename": "server/api/chatWebsite/index.js",
4567     "groupTitle": "Chat_Websites"
4568   },
4569   {
4570     "type": "delete",
4571     "url": "/api/chat/websites/{id}/users",
4572     "title": "Removes agents from a website",
4573     "examples": [
4574       {
4575         "title": "Example usage:",
4576         "content": "curl https://{domain}/api/chat/websites/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
4577         "type": "json"
4578       }
4579     ],
4580     "name": "RemoveAgents",
4581     "group": "Chat_Websites",
4582     "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>",
4583     "version": "0.0.0",
4584     "filename": "server/api/chatWebsite/index.js",
4585     "groupTitle": "Chat_Websites"
4586   },
4587   {
4588     "type": "delete",
4589     "url": "/api/chat/websites/{id}/canned_answers",
4590     "title": "Removes canned answers from account",
4591     "examples": [
4592       {
4593         "title": "Example usage:",
4594         "content": "curl https://{domain}/api/chat/websites/{id}/canned_answers?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
4595         "type": "json"
4596       }
4597     ],
4598     "name": "RemoveAnswers",
4599     "group": "Chat_Websites",
4600     "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>",
4601     "version": "0.0.0",
4602     "filename": "server/api/chatWebsite/index.js",
4603     "groupTitle": "Chat_Websites"
4604   },
4605   {
4606     "type": "delete",
4607     "url": "/api/chat/websites/{id}/dispositions",
4608     "title": "Removes canned answers from account",
4609     "examples": [
4610       {
4611         "title": "Example usage:",
4612         "content": "curl https://{domain}/api/chat/websites/{id}/dispositions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
4613         "type": "json"
4614       }
4615     ],
4616     "name": "RemoveDispositions",
4617     "group": "Chat_Websites",
4618     "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>",
4619     "version": "0.0.0",
4620     "filename": "server/api/chatWebsite/index.js",
4621     "groupTitle": "Chat_Websites"
4622   },
4623   {
4624     "type": "get",
4625     "url": "/api/chat/websites/{id}",
4626     "title": "Gets a single Website",
4627     "examples": [
4628       {
4629         "title": "Example usage:",
4630         "content": "curl https://{domain}/api/chat/websites/{id} -v -u {name}:{password}",
4631         "type": "json"
4632       }
4633     ],
4634     "name": "ShowWebsites",
4635     "group": "Chat_Websites",
4636     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4637     "version": "0.0.0",
4638     "filename": "server/api/chatWebsite/index.js",
4639     "groupTitle": "Chat_Websites"
4640   },
4641   {
4642     "type": "put",
4643     "url": "/api/chat/messages/{id}/accept",
4644     "title": "Accepts message",
4645     "examples": [
4646       {
4647         "title": "Example usage:",
4648         "content": "curl https://{domain}/api/chat/messages/{id}/accept \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
4649         "type": "json"
4650       }
4651     ],
4652     "name": "acceptMessage",
4653     "group": "Chat_Websites",
4654     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4655     "version": "0.0.0",
4656     "filename": "server/api/chatMessage/index.js",
4657     "groupTitle": "Chat_Websites"
4658   },
4659   {
4660     "type": "post",
4661     "url": "/api/chat/websites/{id}/canned_answers",
4662     "title": "Creates new canned answer",
4663     "examples": [
4664       {
4665         "title": "Example usage:",
4666         "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",
4667         "type": "json"
4668       }
4669     ],
4670     "name": "addAnswer",
4671     "group": "Chat_Websites",
4672     "parameter": {
4673       "fields": {
4674         "Body": [
4675           {
4676             "group": "Body",
4677             "type": "String",
4678             "optional": false,
4679             "field": "key",
4680             "description": ""
4681           },
4682           {
4683             "group": "Body",
4684             "type": "Text",
4685             "optional": false,
4686             "field": "value",
4687             "description": ""
4688           },
4689           {
4690             "group": "Body",
4691             "type": "String",
4692             "optional": true,
4693             "field": "description",
4694             "description": ""
4695           },
4696           {
4697             "group": "Body",
4698             "type": "Virtual",
4699             "optional": true,
4700             "field": "name",
4701             "description": ""
4702           }
4703         ]
4704       }
4705     },
4706     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4707     "version": "0.0.0",
4708     "filename": "server/api/chatWebsite/index.js",
4709     "groupTitle": "Chat_Websites"
4710   },
4711   {
4712     "type": "post",
4713     "url": "/api/chat/websites/{id}/applications",
4714     "title": "Creates new applications",
4715     "examples": [
4716       {
4717         "title": "Example usage:",
4718         "content": "curl https://{domain}/api/chat/websites/{id}/applications -d '[{\"app\": \"queue\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
4719         "type": "json"
4720       }
4721     ],
4722     "name": "addApplications",
4723     "group": "Chat_Websites",
4724     "parameter": {
4725       "fields": {
4726         "Body": [
4727           {
4728             "group": "Body",
4729             "type": "Integer",
4730             "optional": false,
4731             "field": "priority",
4732             "description": ""
4733           },
4734           {
4735             "group": "Body",
4736             "type": "String",
4737             "optional": false,
4738             "field": "app",
4739             "description": ""
4740           },
4741           {
4742             "group": "Body",
4743             "type": "Text",
4744             "optional": true,
4745             "field": "appdata",
4746             "description": ""
4747           },
4748           {
4749             "group": "Body",
4750             "type": "String",
4751             "optional": true,
4752             "field": "description",
4753             "description": ""
4754           },
4755           {
4756             "group": "Body",
4757             "type": "String",
4758             "optional": true,
4759             "field": "interval",
4760             "description": ""
4761           }
4762         ]
4763       }
4764     },
4765     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4766     "version": "0.0.0",
4767     "filename": "server/api/chatWebsite/index.js",
4768     "groupTitle": "Chat_Websites"
4769   },
4770   {
4771     "type": "post",
4772     "url": "/api/chat/websites/{id}/avatar",
4773     "title": "Add avatar",
4774     "examples": [
4775       {
4776         "title": "Example usage:",
4777         "content": "curl https://{domain}/api/chat/websites/{id}/avatar -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
4778         "type": "json"
4779       }
4780     ],
4781     "name": "addAvatar",
4782     "group": "Chat_Websites",
4783     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4784     "version": "0.0.0",
4785     "filename": "server/api/chatWebsite/index.js",
4786     "groupTitle": "Chat_Websites"
4787   },
4788   {
4789     "type": "post",
4790     "url": "/api/chat/websites/{id}/customer_avatar",
4791     "title": "Add customer avatar",
4792     "examples": [
4793       {
4794         "title": "Example usage:",
4795         "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",
4796         "type": "json"
4797       }
4798     ],
4799     "name": "addCustomerAvatar",
4800     "group": "Chat_Websites",
4801     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4802     "version": "0.0.0",
4803     "filename": "server/api/chatWebsite/index.js",
4804     "groupTitle": "Chat_Websites"
4805   },
4806   {
4807     "type": "post",
4808     "url": "/api/chat/websites/{id}/dispositions",
4809     "title": "Creates new disposition",
4810     "examples": [
4811       {
4812         "title": "Example usage:",
4813         "content": "curl https://{domain}/api/chat/websites/{id}/dispositions -d '{\"name\": \"vip\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
4814         "type": "json"
4815       }
4816     ],
4817     "name": "addDisposition",
4818     "group": "Chat_Websites",
4819     "parameter": {
4820       "fields": {
4821         "Body": [
4822           {
4823             "group": "Body",
4824             "type": "String",
4825             "optional": false,
4826             "field": "name",
4827             "description": ""
4828           },
4829           {
4830             "group": "Body",
4831             "type": "String",
4832             "allowedValues": [
4833               "\"first\"",
4834               "\"second\"",
4835               "\"third\""
4836             ],
4837             "optional": false,
4838             "field": "level",
4839             "description": ""
4840           },
4841           {
4842             "group": "Body",
4843             "type": "String",
4844             "optional": true,
4845             "field": "description",
4846             "description": ""
4847           }
4848         ]
4849       }
4850     },
4851     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4852     "version": "0.0.0",
4853     "filename": "server/api/chatWebsite/index.js",
4854     "groupTitle": "Chat_Websites"
4855   },
4856   {
4857     "type": "post",
4858     "url": "/api/chat/accounts/{id}/interactions",
4859     "title": "Creates new interactions",
4860     "examples": [
4861       {
4862         "title": "Example usage:",
4863         "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",
4864         "type": "json"
4865       }
4866     ],
4867     "name": "addInteraction",
4868     "group": "Chat_Websites",
4869     "parameter": {
4870       "fields": {
4871         "Body": [
4872           {
4873             "group": "Body",
4874             "type": "Boolean",
4875             "optional": true,
4876             "field": "closed",
4877             "description": ""
4878           },
4879           {
4880             "group": "Body",
4881             "type": "Integer",
4882             "optional": true,
4883             "field": "ratingValue",
4884             "description": ""
4885           },
4886           {
4887             "group": "Body",
4888             "type": "String",
4889             "allowedValues": [
4890               "\"star\"",
4891               "\"thumb\""
4892             ],
4893             "optional": true,
4894             "field": "ratingType",
4895             "description": ""
4896           },
4897           {
4898             "group": "Body",
4899             "type": "Text",
4900             "optional": true,
4901             "field": "ratingMessage",
4902             "description": ""
4903           },
4904           {
4905             "group": "Body",
4906             "type": "Text",
4907             "optional": true,
4908             "field": "pathTranscript",
4909             "description": ""
4910           },
4911           {
4912             "group": "Body",
4913             "type": "String",
4914             "optional": true,
4915             "field": "mailTranscript",
4916             "description": ""
4917           },
4918           {
4919             "group": "Body",
4920             "type": "String",
4921             "optional": true,
4922             "field": "closedAt",
4923             "description": ""
4924           },
4925           {
4926             "group": "Body",
4927             "type": "String",
4928             "optional": true,
4929             "field": "disposition",
4930             "description": ""
4931           },
4932           {
4933             "group": "Body",
4934             "type": "String",
4935             "optional": true,
4936             "field": "secondDisposition",
4937             "description": ""
4938           },
4939           {
4940             "group": "Body",
4941             "type": "String",
4942             "optional": true,
4943             "field": "thirdDisposition",
4944             "description": ""
4945           },
4946           {
4947             "group": "Body",
4948             "type": "String",
4949             "optional": true,
4950             "field": "note",
4951             "description": ""
4952           },
4953           {
4954             "group": "Body",
4955             "type": "String",
4956             "optional": true,
4957             "field": "browserName",
4958             "description": ""
4959           },
4960           {
4961             "group": "Body",
4962             "type": "String",
4963             "optional": true,
4964             "field": "browserVersion",
4965             "description": ""
4966           },
4967           {
4968             "group": "Body",
4969             "type": "String",
4970             "optional": true,
4971             "field": "osName",
4972             "description": ""
4973           },
4974           {
4975             "group": "Body",
4976             "type": "String",
4977             "optional": true,
4978             "field": "osVersion",
4979             "description": ""
4980           },
4981           {
4982             "group": "Body",
4983             "type": "String",
4984             "optional": true,
4985             "field": "deviceModel",
4986             "description": ""
4987           },
4988           {
4989             "group": "Body",
4990             "type": "String",
4991             "optional": true,
4992             "field": "deviceVendor",
4993             "description": ""
4994           },
4995           {
4996             "group": "Body",
4997             "type": "String",
4998             "optional": true,
4999             "field": "deviceType",
5000             "description": ""
5001           },
5002           {
5003             "group": "Body",
5004             "type": "Text",
5005             "optional": true,
5006             "field": "referer",
5007             "description": ""
5008           },
5009           {
5010             "group": "Body",
5011             "type": "String",
5012             "optional": true,
5013             "field": "customerIp",
5014             "description": ""
5015           },
5016           {
5017             "group": "Body",
5018             "type": "Text",
5019             "optional": true,
5020             "field": "formData",
5021             "description": ""
5022           },
5023           {
5024             "group": "Body",
5025             "type": "String",
5026             "optional": true,
5027             "field": "read1stAt",
5028             "description": ""
5029           },
5030           {
5031             "group": "Body",
5032             "type": "String",
5033             "optional": true,
5034             "field": "lastMsgAt",
5035             "description": ""
5036           },
5037           {
5038             "group": "Body",
5039             "type": "String",
5040             "allowedValues": [
5041               "\"in\"",
5042               "\"out\""
5043             ],
5044             "optional": false,
5045             "field": "lastMsgDirection",
5046             "description": ""
5047           },
5048           {
5049             "group": "Body",
5050             "type": "String",
5051             "optional": true,
5052             "field": "closeReason",
5053             "description": ""
5054           },
5055           {
5056             "group": "Body",
5057             "type": "String",
5058             "optional": true,
5059             "field": "customerPort",
5060             "description": ""
5061           },
5062           {
5063             "group": "Body",
5064             "type": "Text",
5065             "optional": true,
5066             "field": "vidaooSessionId",
5067             "description": ""
5068           },
5069           {
5070             "group": "Body",
5071             "type": "Boolean",
5072             "optional": true,
5073             "field": "autoreplyExecuted",
5074             "description": ""
5075           }
5076         ]
5077       }
5078     },
5079     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5080     "version": "0.0.0",
5081     "filename": "server/api/chatWebsite/index.js",
5082     "groupTitle": "Chat_Websites"
5083   },
5084   {
5085     "type": "post",
5086     "url": "/api/chat/websites/{id}/logo",
5087     "title": "Add logo",
5088     "examples": [
5089       {
5090         "title": "Example usage:",
5091         "content": "curl https://{domain}/api/chat/websites/{id}/logo -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
5092         "type": "json"
5093       }
5094     ],
5095     "name": "addLogo",
5096     "group": "Chat_Websites",
5097     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5098     "version": "0.0.0",
5099     "filename": "server/api/chatWebsite/index.js",
5100     "groupTitle": "Chat_Websites"
5101   },
5102   {
5103     "type": "post",
5104     "url": "/api/chat/websites/{id}/proactive_actions",
5105     "title": "Creates new Proactive Actions",
5106     "examples": [
5107       {
5108         "title": "Example usage:",
5109         "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",
5110         "type": "json"
5111       }
5112     ],
5113     "name": "addProactiveActions",
5114     "group": "Chat_Websites",
5115     "parameter": {
5116       "fields": {
5117         "Body": [
5118           {
5119             "group": "Body",
5120             "type": "String",
5121             "optional": false,
5122             "field": "name",
5123             "description": ""
5124           },
5125           {
5126             "group": "Body",
5127             "type": "String",
5128             "allowedValues": [
5129               "\"mouseOver\"",
5130               "\"timeout\""
5131             ],
5132             "optional": true,
5133             "field": "type",
5134             "description": ""
5135           },
5136           {
5137             "group": "Body",
5138             "type": "String",
5139             "optional": true,
5140             "field": "selector",
5141             "description": ""
5142           },
5143           {
5144             "group": "Body",
5145             "type": "Integer",
5146             "optional": true,
5147             "field": "timeout",
5148             "description": ""
5149           }
5150         ]
5151       }
5152     },
5153     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5154     "version": "0.0.0",
5155     "filename": "server/api/chatWebsite/index.js",
5156     "groupTitle": "Chat_Websites"
5157   },
5158   {
5159     "type": "post",
5160     "url": "/api/chat/websites/{id}/system_avatar",
5161     "title": "Add system avatar",
5162     "examples": [
5163       {
5164         "title": "Example usage:",
5165         "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",
5166         "type": "json"
5167       }
5168     ],
5169     "name": "addSystemAvatar",
5170     "group": "Chat_Websites",
5171     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5172     "version": "0.0.0",
5173     "filename": "server/api/chatWebsite/index.js",
5174     "groupTitle": "Chat_Websites"
5175   },
5176   {
5177     "type": "get",
5178     "url": "/api/chat/websites/{id}/canned_answers",
5179     "title": "Gets account canned answers",
5180     "examples": [
5181       {
5182         "title": "Example usage:",
5183         "content": "curl https://{domain}/api/chat/websites/{id}/canned_answers -v -u {name}:{password} -X GET",
5184         "type": "json"
5185       }
5186     ],
5187     "name": "getAnswers",
5188     "group": "Chat_Websites",
5189     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5190     "version": "0.0.0",
5191     "filename": "server/api/chatWebsite/index.js",
5192     "groupTitle": "Chat_Websites"
5193   },
5194   {
5195     "type": "get",
5196     "url": "/api/chat/websites/{id}/applications",
5197     "title": "Gets Website Applications",
5198     "examples": [
5199       {
5200         "title": "Example usage:",
5201         "content": "curl https://{domain}/api/chat/websites/{id}/applications -v -u {name}:{password} -X GET",
5202         "type": "json"
5203       }
5204     ],
5205     "name": "getApplications",
5206     "group": "Chat_Websites",
5207     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5208     "version": "0.0.0",
5209     "filename": "server/api/chatWebsite/index.js",
5210     "groupTitle": "Chat_Websites"
5211   },
5212   {
5213     "type": "get",
5214     "url": "/api/chat/websites/{id}/avatar",
5215     "title": "Get avatar",
5216     "examples": [
5217       {
5218         "title": "Example usage:",
5219         "content": "curl https://{domain}/api/chat/websites/{id}/avatar -v -u {name}:{password} -X GET",
5220         "type": "json"
5221       }
5222     ],
5223     "name": "getAvatar",
5224     "group": "Chat_Websites",
5225     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5226     "version": "0.0.0",
5227     "filename": "server/api/chatWebsite/index.js",
5228     "groupTitle": "Chat_Websites"
5229   },
5230   {
5231     "type": "get",
5232     "url": "/api/chat/websites/{id}/customer_avatar",
5233     "title": "Get Customer Avatar",
5234     "examples": [
5235       {
5236         "title": "Example usage:",
5237         "content": "curl https://{domain}/api/chat/websites/{id}/customer_avatar -v -u {name}:{password} -X GET",
5238         "type": "json"
5239       }
5240     ],
5241     "name": "getCustomerAvatar",
5242     "group": "Chat_Websites",
5243     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5244     "version": "0.0.0",
5245     "filename": "server/api/chatWebsite/index.js",
5246     "groupTitle": "Chat_Websites"
5247   },
5248   {
5249     "type": "get",
5250     "url": "/api/chat/websites/{id}/dispositions",
5251     "title": "Gets account dispositions",
5252     "examples": [
5253       {
5254         "title": "Example usage:",
5255         "content": "curl https://{domain}/api/chat/websites/{id}/dispositions -v -u {name}:{password} -X GET",
5256         "type": "json"
5257       }
5258     ],
5259     "name": "getDispositions",
5260     "group": "Chat_Websites",
5261     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5262     "version": "0.0.0",
5263     "filename": "server/api/chatWebsite/index.js",
5264     "groupTitle": "Chat_Websites"
5265   },
5266   {
5267     "type": "get",
5268     "url": "/api/chat/websites/{id}/fields",
5269     "title": "Gets Website Fields",
5270     "examples": [
5271       {
5272         "title": "Example usage:",
5273         "content": "curl https://{domain}/api/chat/websites/{id}/fields -v -u {name}:{password} -X GET",
5274         "type": "json"
5275       }
5276     ],
5277     "name": "getFields",
5278     "group": "Chat_Websites",
5279     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5280     "version": "0.0.0",
5281     "filename": "server/api/chatWebsite/index.js",
5282     "groupTitle": "Chat_Websites"
5283   },
5284   {
5285     "type": "get",
5286     "url": "/api/chat/websites/{id}/interactions",
5287     "title": "Gets Website Interactions",
5288     "examples": [
5289       {
5290         "title": "Example usage:",
5291         "content": "curl https://{domain}/api/chat/websites/{id}/interactions -v -u {name}:{password} -X GET",
5292         "type": "json"
5293       }
5294     ],
5295     "name": "getInteraction",
5296     "group": "Chat_Websites",
5297     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5298     "version": "0.0.0",
5299     "filename": "server/api/chatWebsite/index.js",
5300     "groupTitle": "Chat_Websites"
5301   },
5302   {
5303     "type": "get",
5304     "url": "/api/chat/websites/{id}/logo",
5305     "title": "Get logo",
5306     "examples": [
5307       {
5308         "title": "Example usage:",
5309         "content": "curl https://{domain}/api/chat/websites/{id}/logo -v -u {name}:{password} -X GET",
5310         "type": "json"
5311       }
5312     ],
5313     "name": "getLogo",
5314     "group": "Chat_Websites",
5315     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5316     "version": "0.0.0",
5317     "filename": "server/api/chatWebsite/index.js",
5318     "groupTitle": "Chat_Websites"
5319   },
5320   {
5321     "type": "get",
5322     "url": "/api/chat/websites/{id}/offline_messages",
5323     "title": "Gets Website Offline Messages",
5324     "examples": [
5325       {
5326         "title": "Example usage:",
5327         "content": "curl https://{domain}/api/chat/websites/{id}/offline_messages -v -u {name}:{password} -X GET",
5328         "type": "json"
5329       }
5330     ],
5331     "name": "getOfflineMessages",
5332     "group": "Chat_Websites",
5333     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5334     "version": "0.0.0",
5335     "filename": "server/api/chatWebsite/index.js",
5336     "groupTitle": "Chat_Websites"
5337   },
5338   {
5339     "type": "get",
5340     "url": "/api/chat/websites/{id}/proactive_actions",
5341     "title": "Gets Website Proactive Actions",
5342     "examples": [
5343       {
5344         "title": "Example usage:",
5345         "content": "curl https://{domain}/api/chat/websites/{id}/proactive_actions -v -u {name}:{password} -X GET",
5346         "type": "json"
5347       }
5348     ],
5349     "name": "getProactiveActions",
5350     "group": "Chat_Websites",
5351     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5352     "version": "0.0.0",
5353     "filename": "server/api/chatWebsite/index.js",
5354     "groupTitle": "Chat_Websites"
5355   },
5356   {
5357     "type": "get",
5358     "url": "/api/chat/websites/{id}/snippet",
5359     "title": "Gets Website Snippet",
5360     "examples": [
5361       {
5362         "title": "Example usage:",
5363         "content": "curl https://{domain}/api/chat/websites/{id}/snippet -v -u {name}:{password} -X GET",
5364         "type": "json"
5365       }
5366     ],
5367     "name": "getSnippet",
5368     "group": "Chat_Websites",
5369     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5370     "version": "0.0.0",
5371     "filename": "server/api/chatWebsite/index.js",
5372     "groupTitle": "Chat_Websites"
5373   },
5374   {
5375     "type": "get",
5376     "url": "/api/chat/websites/{id}/system_avatar",
5377     "title": "Get System Avatar",
5378     "examples": [
5379       {
5380         "title": "Example usage:",
5381         "content": "curl https://{domain}/api/chat/websites/{id}/system_avatar -v -u {name}:{password} -X GET",
5382         "type": "json"
5383       }
5384     ],
5385     "name": "getSystemAvatar",
5386     "group": "Chat_Websites",
5387     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5388     "version": "0.0.0",
5389     "filename": "server/api/chatWebsite/index.js",
5390     "groupTitle": "Chat_Websites"
5391   },
5392   {
5393     "type": "post",
5394     "url": "/api/chat/websites/{id}/notify",
5395     "title": "Notify new message",
5396     "examples": [
5397       {
5398         "title": "Example usage:",
5399         "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",
5400         "type": "json"
5401       }
5402     ],
5403     "name": "notify",
5404     "group": "Chat_Websites",
5405     "description": "<p>Motion 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>",
5406     "version": "0.0.0",
5407     "filename": "server/api/chatWebsite/index.js",
5408     "groupTitle": "Chat_Websites"
5409   },
5410   {
5411     "type": "post",
5412     "url": "/api/chat/websites/{id}/offline",
5413     "title": "Offline message",
5414     "examples": [
5415       {
5416         "title": "Example usage:",
5417         "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",
5418         "type": "json"
5419       }
5420     ],
5421     "name": "offline",
5422     "group": "Chat_Websites",
5423     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5424     "version": "0.0.0",
5425     "filename": "server/api/chatWebsite/index.js",
5426     "groupTitle": "Chat_Websites"
5427   },
5428   {
5429     "type": "put",
5430     "url": "/api/chat/messages/{id}/reject",
5431     "title": "Rejects message",
5432     "examples": [
5433       {
5434         "title": "Example usage:",
5435         "content": "curl https://{domain}/api/chat/messages/{id}/reject \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
5436         "type": "json"
5437       }
5438     ],
5439     "name": "rejectMessage",
5440     "group": "Chat_Websites",
5441     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5442     "version": "0.0.0",
5443     "filename": "server/api/chatMessage/index.js",
5444     "groupTitle": "Chat_Websites"
5445   },
5446   {
5447     "type": "put",
5448     "url": "/api/chat/websites/{id}",
5449     "title": "Update an existing Website",
5450     "examples": [
5451       {
5452         "title": "Example usage:",
5453         "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",
5454         "type": "json"
5455       }
5456     ],
5457     "name": "updateWebsites",
5458     "group": "Chat_Websites",
5459     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5460     "version": "0.0.0",
5461     "filename": "server/api/chatWebsite/index.js",
5462     "groupTitle": "Chat_Websites"
5463   },
5464   {
5465     "type": "post",
5466     "url": "/api/cloudProviders",
5467     "title": "Creates a new CloudProvider",
5468     "examples": [
5469       {
5470         "title": "Example usage:",
5471         "content": "curl https://{domain}/api/cloudProviders -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
5472         "type": "json"
5473       }
5474     ],
5475     "name": "CreateCloudProviders",
5476     "group": "CloudProviders",
5477     "parameter": {
5478       "fields": {
5479         "Body": [
5480           {
5481             "group": "Body",
5482             "type": "String",
5483             "optional": false,
5484             "field": "name",
5485             "description": ""
5486           },
5487           {
5488             "group": "Body",
5489             "type": "String",
5490             "allowedValues": [
5491               "\"AmazonAWS\"",
5492               "\"Google\""
5493             ],
5494             "optional": false,
5495             "field": "service",
5496             "description": ""
5497           },
5498           {
5499             "group": "Body",
5500             "type": "String",
5501             "optional": true,
5502             "field": "data1",
5503             "description": ""
5504           },
5505           {
5506             "group": "Body",
5507             "type": "String",
5508             "optional": true,
5509             "field": "data2",
5510             "description": ""
5511           }
5512         ]
5513       }
5514     },
5515     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5516     "version": "0.0.0",
5517     "filename": "server/api/cloudProvider/index.js",
5518     "groupTitle": "CloudProviders"
5519   },
5520   {
5521     "type": "delete",
5522     "url": "/api/cloudProviders/{id}",
5523     "title": "Deletes a CloudProvider",
5524     "examples": [
5525       {
5526         "title": "Example usage:",
5527         "content": "curl https://{domain}/api/cloudProviders/{id} -v -u {name}:{password} -X DELETE",
5528         "type": "json"
5529       }
5530     ],
5531     "name": "DeleteCloudProviders",
5532     "group": "CloudProviders",
5533     "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>",
5534     "version": "0.0.0",
5535     "filename": "server/api/cloudProvider/index.js",
5536     "groupTitle": "CloudProviders"
5537   },
5538   {
5539     "type": "get",
5540     "url": "/api/cloudProviders",
5541     "title": "Gets a list of CloudProviders",
5542     "examples": [
5543       {
5544         "title": "Example usage:",
5545         "content": "curl https://{domain}/api/cloudProviders -v -u {name}:{password}",
5546         "type": "json"
5547       }
5548     ],
5549     "name": "GetCloudProviders",
5550     "group": "CloudProviders",
5551     "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>",
5552     "version": "0.0.0",
5553     "filename": "server/api/cloudProvider/index.js",
5554     "groupTitle": "CloudProviders"
5555   },
5556   {
5557     "type": "get",
5558     "url": "/api/cloudProviders/oauth2/microsoft/authorize/{id}",
5559     "title": "Generates the Microsoft Identity platform authorization url",
5560     "examples": [
5561       {
5562         "title": "Example usage:",
5563         "content": "curl https://{domain}/api/cloudProviders/oauth2/microsoft/authorize/{id} -v -u {name}:{password}",
5564         "type": "json"
5565       }
5566     ],
5567     "name": "Oauth2MicrosoftAuthorize",
5568     "group": "CloudProviders",
5569     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5570     "version": "0.0.0",
5571     "filename": "server/api/cloudProvider/index.js",
5572     "groupTitle": "CloudProviders"
5573   },
5574   {
5575     "type": "post",
5576     "url": "/api/cloudProviders/oauth2/microsoft/callback",
5577     "title": "Receives an authorization code from Microsoft Identity platform",
5578     "name": "Oauth2MicrosoftCallback",
5579     "group": "CloudProviders",
5580     "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>",
5581     "version": "0.0.0",
5582     "filename": "server/api/cloudProvider/index.js",
5583     "groupTitle": "CloudProviders"
5584   },
5585   {
5586     "type": "get",
5587     "url": "/api/cloudProviders/{id}",
5588     "title": "Gets a single CloudProvider",
5589     "examples": [
5590       {
5591         "title": "Example usage:",
5592         "content": "curl https://{domain}/api/cloudProviders/{id} -v -u {name}:{password}",
5593         "type": "json"
5594       }
5595     ],
5596     "name": "ShowCloudProviders",
5597     "group": "CloudProviders",
5598     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5599     "version": "0.0.0",
5600     "filename": "server/api/cloudProvider/index.js",
5601     "groupTitle": "CloudProviders"
5602   },
5603   {
5604     "type": "put",
5605     "url": "/api/cloudProviders/{id}",
5606     "title": "Update an existing CloudProvider",
5607     "examples": [
5608       {
5609         "title": "Example usage:",
5610         "content": "curl https://{domain}/api/cloudProviders/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
5611         "type": "json"
5612       }
5613     ],
5614     "name": "updateCloudProviders",
5615     "group": "CloudProviders",
5616     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5617     "version": "0.0.0",
5618     "filename": "server/api/cloudProvider/index.js",
5619     "groupTitle": "CloudProviders"
5620   },
5621   {
5622     "type": "post",
5623     "url": "/api/cm_contact_has_items",
5624     "title": "Creates a new CmContactHasItem",
5625     "examples": [
5626       {
5627         "title": "Example usage:",
5628         "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",
5629         "type": "json"
5630       }
5631     ],
5632     "name": "CreateCmContactHasItems",
5633     "group": "CmContactHasItems",
5634     "parameter": {
5635       "fields": {
5636         "Body": [
5637           {
5638             "group": "Body",
5639             "type": "Integer",
5640             "optional": true,
5641             "field": "CmContactId",
5642             "description": ""
5643           },
5644           {
5645             "group": "Body",
5646             "type": "String",
5647             "optional": true,
5648             "field": "item",
5649             "description": ""
5650           },
5651           {
5652             "group": "Body",
5653             "type": "Integer",
5654             "optional": true,
5655             "field": "ItemTypeId",
5656             "description": ""
5657           },
5658           {
5659             "group": "Body",
5660             "type": "String",
5661             "optional": true,
5662             "field": "ItemClass",
5663             "description": ""
5664           },
5665           {
5666             "group": "Body",
5667             "type": "Integer",
5668             "optional": true,
5669             "field": "OrderBy",
5670             "description": ""
5671           },
5672           {
5673             "group": "Body",
5674             "type": "String",
5675             "optional": true,
5676             "field": "description",
5677             "description": ""
5678           }
5679         ]
5680       }
5681     },
5682     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5683     "version": "0.0.0",
5684     "filename": "server/api/cmContactHasItem/index.js",
5685     "groupTitle": "CmContactHasItems"
5686   },
5687   {
5688     "type": "delete",
5689     "url": "/api/cm_contact_has_items/{id}",
5690     "title": "Deletes a CmContactHasItem",
5691     "examples": [
5692       {
5693         "title": "Example usage:",
5694         "content": "curl https://{domain}/api/cm_contact_has_items/{id} -v -u {name}:{password} -X DELETE",
5695         "type": "json"
5696       }
5697     ],
5698     "name": "DeleteCmContactHasItems",
5699     "group": "CmContactHasItems",
5700     "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>",
5701     "version": "0.0.0",
5702     "filename": "server/api/cmContactHasItem/index.js",
5703     "groupTitle": "CmContactHasItems"
5704   },
5705   {
5706     "type": "get",
5707     "url": "/api/cm_contact_has_items",
5708     "title": "Gets a list of CmContactHasItems",
5709     "examples": [
5710       {
5711         "title": "Example usage:",
5712         "content": "curl https://{domain}/api/cm_contact_has_items -v -u {name}:{password}",
5713         "type": "json"
5714       }
5715     ],
5716     "name": "GetCmContactHasItems",
5717     "group": "CmContactHasItems",
5718     "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>",
5719     "version": "0.0.0",
5720     "filename": "server/api/cmContactHasItem/index.js",
5721     "groupTitle": "CmContactHasItems"
5722   },
5723   {
5724     "type": "get",
5725     "url": "/api/cm_contact_has_items/{id}",
5726     "title": "Gets a single CmContactHasItem",
5727     "examples": [
5728       {
5729         "title": "Example usage:",
5730         "content": "curl https://{domain}/api/cm_contact_has_items/{id} -v -u {name}:{password}",
5731         "type": "json"
5732       }
5733     ],
5734     "name": "ShowCmContactHasItems",
5735     "group": "CmContactHasItems",
5736     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5737     "version": "0.0.0",
5738     "filename": "server/api/cmContactHasItem/index.js",
5739     "groupTitle": "CmContactHasItems"
5740   },
5741   {
5742     "type": "put",
5743     "url": "/api/cm_contact_has_items/{id}",
5744     "title": "Update an existing CmContactHasItem",
5745     "examples": [
5746       {
5747         "title": "Example usage:",
5748         "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",
5749         "type": "json"
5750       }
5751     ],
5752     "name": "updateCmContactHasItems",
5753     "group": "CmContactHasItems",
5754     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5755     "version": "0.0.0",
5756     "filename": "server/api/cmContactHasItem/index.js",
5757     "groupTitle": "CmContactHasItems"
5758   },
5759   {
5760     "type": "post",
5761     "url": "/api/cm_hopper_additional_phones",
5762     "title": "Creates a new CmHopperAdditionalPhone",
5763     "examples": [
5764       {
5765         "title": "Example usage:",
5766         "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",
5767         "type": "json"
5768       }
5769     ],
5770     "name": "CreateCmHopperAdditionalPhones",
5771     "group": "CmHopperAdditionalPhones",
5772     "parameter": {
5773       "fields": {
5774         "Body": [
5775           {
5776             "group": "Body",
5777             "type": "Integer",
5778             "optional": true,
5779             "field": "CmHopperId",
5780             "description": ""
5781           },
5782           {
5783             "group": "Body",
5784             "type": "String",
5785             "optional": false,
5786             "field": "phone",
5787             "description": ""
5788           },
5789           {
5790             "group": "Body",
5791             "type": "Integer",
5792             "optional": true,
5793             "field": "OrderBy",
5794             "description": ""
5795           },
5796           {
5797             "group": "Body",
5798             "type": "String",
5799             "optional": true,
5800             "field": "scheduledat",
5801             "description": ""
5802           },
5803           {
5804             "group": "Body",
5805             "type": "Integer",
5806             "optional": true,
5807             "field": "countbusyretry",
5808             "description": ""
5809           },
5810           {
5811             "group": "Body",
5812             "type": "Integer",
5813             "optional": true,
5814             "field": "countcongestionretry",
5815             "description": ""
5816           },
5817           {
5818             "group": "Body",
5819             "type": "Integer",
5820             "optional": true,
5821             "field": "countnoanswerretry",
5822             "description": ""
5823           },
5824           {
5825             "group": "Body",
5826             "type": "Integer",
5827             "optional": true,
5828             "field": "countnosuchnumberretry",
5829             "description": ""
5830           },
5831           {
5832             "group": "Body",
5833             "type": "Integer",
5834             "optional": true,
5835             "field": "countdropretry",
5836             "description": ""
5837           },
5838           {
5839             "group": "Body",
5840             "type": "Integer",
5841             "optional": true,
5842             "field": "countabandonedretry",
5843             "description": ""
5844           },
5845           {
5846             "group": "Body",
5847             "type": "Integer",
5848             "optional": true,
5849             "field": "countmachineretry",
5850             "description": ""
5851           },
5852           {
5853             "group": "Body",
5854             "type": "Integer",
5855             "optional": true,
5856             "field": "countagentrejectretry",
5857             "description": ""
5858           }
5859         ]
5860       }
5861     },
5862     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5863     "version": "0.0.0",
5864     "filename": "server/api/cmHopperAdditionalPhone/index.js",
5865     "groupTitle": "CmHopperAdditionalPhones"
5866   },
5867   {
5868     "type": "delete",
5869     "url": "/api/cm_hopper_additional_phones/{id}",
5870     "title": "Deletes a CmHopperAdditionalPhone",
5871     "examples": [
5872       {
5873         "title": "Example usage:",
5874         "content": "curl https://{domain}/api/cm_hopper_additional_phones/{id} -v -u {name}:{password} -X DELETE",
5875         "type": "json"
5876       }
5877     ],
5878     "name": "DeleteCmHopperAdditionalPhones",
5879     "group": "CmHopperAdditionalPhones",
5880     "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>",
5881     "version": "0.0.0",
5882     "filename": "server/api/cmHopperAdditionalPhone/index.js",
5883     "groupTitle": "CmHopperAdditionalPhones"
5884   },
5885   {
5886     "type": "get",
5887     "url": "/api/cm_hopper_additional_phones",
5888     "title": "Gets a list of CmHopperAdditionalPhones",
5889     "examples": [
5890       {
5891         "title": "Example usage:",
5892         "content": "curl https://{domain}/api/cm_hopper_additional_phones -v -u {name}:{password}",
5893         "type": "json"
5894       }
5895     ],
5896     "name": "GetCmHopperAdditionalPhones",
5897     "group": "CmHopperAdditionalPhones",
5898     "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>",
5899     "version": "0.0.0",
5900     "filename": "server/api/cmHopperAdditionalPhone/index.js",
5901     "groupTitle": "CmHopperAdditionalPhones"
5902   },
5903   {
5904     "type": "get",
5905     "url": "/api/cm_hopper_additional_phones/{id}",
5906     "title": "Gets a single CmHopperAdditionalPhone",
5907     "examples": [
5908       {
5909         "title": "Example usage:",
5910         "content": "curl https://{domain}/api/cm_hopper_additional_phones/{id} -v -u {name}:{password}",
5911         "type": "json"
5912       }
5913     ],
5914     "name": "ShowCmHopperAdditionalPhones",
5915     "group": "CmHopperAdditionalPhones",
5916     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5917     "version": "0.0.0",
5918     "filename": "server/api/cmHopperAdditionalPhone/index.js",
5919     "groupTitle": "CmHopperAdditionalPhones"
5920   },
5921   {
5922     "type": "put",
5923     "url": "/api/cm_hopper_additional_phones/{id}",
5924     "title": "Update an existing CmHopperAdditionalPhone",
5925     "examples": [
5926       {
5927         "title": "Example usage:",
5928         "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",
5929         "type": "json"
5930       }
5931     ],
5932     "name": "updateCmHopperAdditionalPhones",
5933     "group": "CmHopperAdditionalPhones",
5934     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5935     "version": "0.0.0",
5936     "filename": "server/api/cmHopperAdditionalPhone/index.js",
5937     "groupTitle": "CmHopperAdditionalPhones"
5938   },
5939   {
5940     "type": "post",
5941     "url": "/api/cm/companies",
5942     "title": "Creates a new Company",
5943     "examples": [
5944       {
5945         "title": "Example usage:",
5946         "content": "curl https://{domain}/api/cm/companies -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
5947         "type": "json"
5948       }
5949     ],
5950     "name": "CreateCompanies",
5951     "group": "Cm_Companies",
5952     "parameter": {
5953       "fields": {
5954         "Body": [
5955           {
5956             "group": "Body",
5957             "type": "String",
5958             "optional": false,
5959             "field": "name",
5960             "description": ""
5961           },
5962           {
5963             "group": "Body",
5964             "type": "String",
5965             "optional": true,
5966             "field": "vat",
5967             "description": ""
5968           },
5969           {
5970             "group": "Body",
5971             "type": "String",
5972             "optional": true,
5973             "field": "companyId",
5974             "description": ""
5975           },
5976           {
5977             "group": "Body",
5978             "type": "String",
5979             "optional": true,
5980             "field": "website",
5981             "description": ""
5982           },
5983           {
5984             "group": "Body",
5985             "type": "String",
5986             "optional": true,
5987             "field": "phone",
5988             "description": ""
5989           },
5990           {
5991             "group": "Body",
5992             "type": "String",
5993             "optional": true,
5994             "field": "fax",
5995             "description": ""
5996           },
5997           {
5998             "group": "Body",
5999             "type": "String",
6000             "optional": true,
6001             "field": "type",
6002             "description": ""
6003           },
6004           {
6005             "group": "Body",
6006             "type": "String",
6007             "optional": true,
6008             "field": "street",
6009             "description": ""
6010           },
6011           {
6012             "group": "Body",
6013             "type": "String",
6014             "optional": true,
6015             "field": "postalCode",
6016             "description": ""
6017           },
6018           {
6019             "group": "Body",
6020             "type": "String",
6021             "optional": true,
6022             "field": "city",
6023             "description": ""
6024           },
6025           {
6026             "group": "Body",
6027             "type": "String",
6028             "optional": true,
6029             "field": "country",
6030             "description": ""
6031           },
6032           {
6033             "group": "Body",
6034             "type": "String",
6035             "optional": true,
6036             "field": "email",
6037             "description": ""
6038           },
6039           {
6040             "group": "Body",
6041             "type": "String",
6042             "optional": true,
6043             "field": "emailDomain",
6044             "description": ""
6045           },
6046           {
6047             "group": "Body",
6048             "type": "String",
6049             "optional": true,
6050             "field": "sStreet",
6051             "description": ""
6052           },
6053           {
6054             "group": "Body",
6055             "type": "String",
6056             "optional": true,
6057             "field": "sPostalCode",
6058             "description": ""
6059           },
6060           {
6061             "group": "Body",
6062             "type": "String",
6063             "optional": true,
6064             "field": "sCity",
6065             "description": ""
6066           },
6067           {
6068             "group": "Body",
6069             "type": "String",
6070             "optional": true,
6071             "field": "sCountry",
6072             "description": ""
6073           },
6074           {
6075             "group": "Body",
6076             "type": "String",
6077             "optional": true,
6078             "field": "description",
6079             "description": ""
6080           }
6081         ]
6082       }
6083     },
6084     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6085     "version": "0.0.0",
6086     "filename": "server/api/cmCompany/index.js",
6087     "groupTitle": "Cm_Companies"
6088   },
6089   {
6090     "type": "delete",
6091     "url": "/api/cm/companies/{id}",
6092     "title": "Deletes a Company",
6093     "examples": [
6094       {
6095         "title": "Example usage:",
6096         "content": "curl https://{domain}/api/cm/companies/{id} -v -u {name}:{password} -X DELETE",
6097         "type": "json"
6098       }
6099     ],
6100     "name": "DeleteCompanies",
6101     "group": "Cm_Companies",
6102     "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>",
6103     "version": "0.0.0",
6104     "filename": "server/api/cmCompany/index.js",
6105     "groupTitle": "Cm_Companies"
6106   },
6107   {
6108     "type": "get",
6109     "url": "/api/cm/companies/describe",
6110     "title": "Gets table info about Companies",
6111     "examples": [
6112       {
6113         "title": "Example usage:",
6114         "content": "curl https://{domain}/api/cm/companies/describe -v -u {name}:{password}",
6115         "type": "json"
6116       }
6117     ],
6118     "name": "DescribeCompanies",
6119     "group": "Cm_Companies",
6120     "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>",
6121     "version": "0.0.0",
6122     "filename": "server/api/cmCompany/index.js",
6123     "groupTitle": "Cm_Companies"
6124   },
6125   {
6126     "type": "get",
6127     "url": "/api/cm/companies",
6128     "title": "Gets a list of Companies",
6129     "examples": [
6130       {
6131         "title": "Example usage:",
6132         "content": "curl https://{domain}/api/cm/companies -v -u {name}:{password}",
6133         "type": "json"
6134       }
6135     ],
6136     "name": "GetCompanies",
6137     "group": "Cm_Companies",
6138     "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>",
6139     "version": "0.0.0",
6140     "filename": "server/api/cmCompany/index.js",
6141     "groupTitle": "Cm_Companies"
6142   },
6143   {
6144     "type": "get",
6145     "url": "/api/cm/companies/{id}",
6146     "title": "Gets a single Company",
6147     "examples": [
6148       {
6149         "title": "Example usage:",
6150         "content": "curl https://{domain}/api/cm/companies/{id} -v -u {name}:{password}",
6151         "type": "json"
6152       }
6153     ],
6154     "name": "ShowCompanies",
6155     "group": "Cm_Companies",
6156     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6157     "version": "0.0.0",
6158     "filename": "server/api/cmCompany/index.js",
6159     "groupTitle": "Cm_Companies"
6160   },
6161   {
6162     "type": "post",
6163     "url": "/api/cm/companies/{id}/contacts",
6164     "title": "Creates new contacts",
6165     "examples": [
6166       {
6167         "title": "Example usage:",
6168         "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",
6169         "type": "json"
6170       }
6171     ],
6172     "name": "addContacts",
6173     "group": "Cm_Companies",
6174     "parameter": {
6175       "fields": {
6176         "Body": [
6177           {
6178             "group": "Body",
6179             "type": "String",
6180             "optional": false,
6181             "field": "firstName",
6182             "description": ""
6183           },
6184           {
6185             "group": "Body",
6186             "type": "String",
6187             "optional": true,
6188             "field": "lastName",
6189             "description": ""
6190           },
6191           {
6192             "group": "Body",
6193             "type": "String",
6194             "optional": true,
6195             "field": "street",
6196             "description": ""
6197           },
6198           {
6199             "group": "Body",
6200             "type": "String",
6201             "optional": true,
6202             "field": "postalCode",
6203             "description": ""
6204           },
6205           {
6206             "group": "Body",
6207             "type": "String",
6208             "optional": true,
6209             "field": "city",
6210             "description": ""
6211           },
6212           {
6213             "group": "Body",
6214             "type": "String",
6215             "optional": true,
6216             "field": "country",
6217             "description": ""
6218           },
6219           {
6220             "group": "Body",
6221             "type": "String",
6222             "optional": true,
6223             "field": "dateOfBirth",
6224             "description": ""
6225           },
6226           {
6227             "group": "Body",
6228             "type": "Text",
6229             "optional": true,
6230             "field": "description",
6231             "description": ""
6232           },
6233           {
6234             "group": "Body",
6235             "type": "String",
6236             "optional": true,
6237             "field": "phone",
6238             "description": ""
6239           },
6240           {
6241             "group": "Body",
6242             "type": "String",
6243             "optional": true,
6244             "field": "mobile",
6245             "description": ""
6246           },
6247           {
6248             "group": "Body",
6249             "type": "String",
6250             "optional": true,
6251             "field": "fax",
6252             "description": ""
6253           },
6254           {
6255             "group": "Body",
6256             "type": "String",
6257             "optional": true,
6258             "field": "email",
6259             "description": ""
6260           },
6261           {
6262             "group": "Body",
6263             "type": "String",
6264             "optional": true,
6265             "field": "url",
6266             "description": ""
6267           },
6268           {
6269             "group": "Body",
6270             "type": "String",
6271             "optional": true,
6272             "field": "facebook",
6273             "description": ""
6274           },
6275           {
6276             "group": "Body",
6277             "type": "String",
6278             "optional": true,
6279             "field": "fb_data",
6280             "description": ""
6281           },
6282           {
6283             "group": "Body",
6284             "type": "String",
6285             "optional": true,
6286             "field": "twitter",
6287             "description": ""
6288           },
6289           {
6290             "group": "Body",
6291             "type": "String",
6292             "optional": true,
6293             "field": "skype",
6294             "description": ""
6295           },
6296           {
6297             "group": "Body",
6298             "type": "String",
6299             "optional": true,
6300             "field": "teams",
6301             "description": ""
6302           },
6303           {
6304             "group": "Body",
6305             "type": "String",
6306             "optional": true,
6307             "field": "viber",
6308             "description": ""
6309           },
6310           {
6311             "group": "Body",
6312             "type": "String",
6313             "optional": true,
6314             "field": "line",
6315             "description": ""
6316           },
6317           {
6318             "group": "Body",
6319             "type": "String",
6320             "optional": true,
6321             "field": "wechat",
6322             "description": ""
6323           },
6324           {
6325             "group": "Body",
6326             "type": "String",
6327             "optional": true,
6328             "field": "telegram",
6329             "description": ""
6330           },
6331           {
6332             "group": "Body",
6333             "type": "Integer",
6334             "optional": true,
6335             "field": "UserId",
6336             "description": ""
6337           },
6338           {
6339             "group": "Body",
6340             "type": "Integer",
6341             "optional": true,
6342             "field": "priority",
6343             "description": ""
6344           },
6345           {
6346             "group": "Body",
6347             "type": "String",
6348             "optional": true,
6349             "field": "scheduledat",
6350             "description": ""
6351           }
6352         ]
6353       }
6354     },
6355     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6356     "version": "0.0.0",
6357     "filename": "server/api/cmCompany/index.js",
6358     "groupTitle": "Cm_Companies"
6359   },
6360   {
6361     "type": "get",
6362     "url": "/api/cm/companies/{id}/contacts",
6363     "title": "Gets List Contacts",
6364     "examples": [
6365       {
6366         "title": "Example usage:",
6367         "content": "curl https://{domain}/api/fax/companies/{id}/contacts -v -u {name}:{password} -X GET",
6368         "type": "json"
6369       }
6370     ],
6371     "name": "getContacts",
6372     "group": "Cm_Companies",
6373     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6374     "version": "0.0.0",
6375     "filename": "server/api/cmCompany/index.js",
6376     "groupTitle": "Cm_Companies"
6377   },
6378   {
6379     "type": "put",
6380     "url": "/api/cm/companies/{id}",
6381     "title": "Update an existing Company",
6382     "examples": [
6383       {
6384         "title": "Example usage:",
6385         "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",
6386         "type": "json"
6387       }
6388     ],
6389     "name": "updateCompanies",
6390     "group": "Cm_Companies",
6391     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6392     "version": "0.0.0",
6393     "filename": "server/api/cmCompany/index.js",
6394     "groupTitle": "Cm_Companies"
6395   },
6396   {
6397     "type": "delete",
6398     "url": "/api/cm/contacts/{id}",
6399     "title": "Deletes a Contact",
6400     "examples": [
6401       {
6402         "title": "Example usage:",
6403         "content": "curl https://{domain}/api/cm/contacts/{id} -v -u {name}:{password} -X DELETE",
6404         "type": "json"
6405       }
6406     ],
6407     "name": "DeleteContacts",
6408     "group": "Cm_Contacts",
6409     "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>",
6410     "version": "0.0.0",
6411     "filename": "server/api/cmContact/index.js",
6412     "groupTitle": "Cm_Contacts"
6413   },
6414   {
6415     "type": "get",
6416     "url": "/api/cm/contacts/describe",
6417     "title": "Gets table info about Contacts",
6418     "examples": [
6419       {
6420         "title": "Example usage:",
6421         "content": "curl https://{domain}/api/cm/contacts/describe -v -u {name}:{password}",
6422         "type": "json"
6423       }
6424     ],
6425     "name": "DescribeContacts",
6426     "group": "Cm_Contacts",
6427     "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>",
6428     "version": "0.0.0",
6429     "filename": "server/api/cmContact/index.js",
6430     "groupTitle": "Cm_Contacts"
6431   },
6432   {
6433     "type": "get",
6434     "url": "/api/cm/contacts",
6435     "title": "Gets a list of Contacts",
6436     "examples": [
6437       {
6438         "title": "Example usage:",
6439         "content": "curl https://{domain}/api/cm/contacts -v -u {name}:{password}",
6440         "type": "json"
6441       }
6442     ],
6443     "name": "GetContacts",
6444     "group": "Cm_Contacts",
6445     "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>",
6446     "version": "0.0.0",
6447     "filename": "server/api/cmContact/index.js",
6448     "groupTitle": "Cm_Contacts"
6449   },
6450   {
6451     "type": "get",
6452     "url": "/api/cm/contacts/{id}/finals",
6453     "title": "Gets contact hopper finals",
6454     "examples": [
6455       {
6456         "title": "Example usage:",
6457         "content": "curl https://{domain}/api/cm/contacts/{id}/hopper_finals -v -u {name}:{password}  -X GET",
6458         "type": "json"
6459       }
6460     ],
6461     "name": "GetHopperFinals",
6462     "group": "Cm_Contacts",
6463     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6464     "version": "0.0.0",
6465     "filename": "server/api/cmContact/index.js",
6466     "groupTitle": "Cm_Contacts"
6467   },
6468   {
6469     "type": "get",
6470     "url": "/api/cm/contacts/{id}/hopper_histories",
6471     "title": "Gets contact hopper histories",
6472     "examples": [
6473       {
6474         "title": "Example usage:",
6475         "content": "curl https://{domain}/api/cm/contacts/{id}/hopper_histories -v -u {name}:{password} -X GET",
6476         "type": "json"
6477       }
6478     ],
6479     "name": "GetHopperHistories",
6480     "group": "Cm_Contacts",
6481     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6482     "version": "0.0.0",
6483     "filename": "server/api/cmContact/index.js",
6484     "groupTitle": "Cm_Contacts"
6485   },
6486   {
6487     "type": "get",
6488     "url": "/api/cm/contacts/{id}/hoppers",
6489     "title": "Gets contact hoppers",
6490     "examples": [
6491       {
6492         "title": "Example usage:",
6493         "content": "curl https://{domain}/api/cm/contacts/{id}/hoppers -v -u {name}:{password} -X GET",
6494         "type": "json"
6495       }
6496     ],
6497     "name": "GetHoppers",
6498     "group": "Cm_Contacts",
6499     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6500     "version": "0.0.0",
6501     "filename": "server/api/cmContact/index.js",
6502     "groupTitle": "Cm_Contacts"
6503   },
6504   {
6505     "type": "post",
6506     "url": "/api/cm/contacts/create_many",
6507     "title": "Create Contacts",
6508     "examples": [
6509       {
6510         "title": "Example usage:",
6511         "content": "curl https://{domain}/api/cm/contacts/create_many -d '[{\"firstName\": \"John\", \"lastName\": \"doe\", \"...\": \"...\"}]' -v -u {name}:{password} -X POST",
6512         "type": "json"
6513       }
6514     ],
6515     "name": "bulkCreate",
6516     "group": "Cm_Contacts",
6517     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6518     "version": "0.0.0",
6519     "filename": "server/api/cmContact/index.js",
6520     "groupTitle": "Cm_Contacts"
6521   },
6522   {
6523     "type": "post",
6524     "url": "/api/cm/contacts",
6525     "title": "Create Contact",
6526     "examples": [
6527       {
6528         "title": "Example usage:",
6529         "content": "curl https://{domain}/api/cm/contacts -d '{\"firstName\": \"John\", \"lastName\": \"doe\", \"...\": \"...\"}' -v -u {name}:{password} -X POST",
6530         "type": "json"
6531       }
6532     ],
6533     "name": "create",
6534     "group": "Cm_Contacts",
6535     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6536     "version": "0.0.0",
6537     "filename": "server/api/cmContact/index.js",
6538     "groupTitle": "Cm_Contacts"
6539   },
6540   {
6541     "type": "post",
6542     "url": "/api/cm/contacts/{id}/duplicatePhones",
6543     "title": "Sets new contact additional phones",
6544     "examples": [
6545       {
6546         "title": "Example usage:",
6547         "content": "curl https://{domain}/api/cm/contacts/{id}/duplicateAdditionalPhones -d '{\"phones\": [p1,p2]}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
6548         "type": "json"
6549       }
6550     ],
6551     "name": "duplicateAdditionalPhones",
6552     "group": "Cm_Contacts",
6553     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6554     "version": "0.0.0",
6555     "filename": "server/api/cmContact/index.js",
6556     "groupTitle": "Cm_Contacts"
6557   },
6558   {
6559     "type": "get",
6560     "url": "/api/cm/contacts/{id}/phones",
6561     "title": "Gets contact phones",
6562     "examples": [
6563       {
6564         "title": "Example usage:",
6565         "content": "curl https://{domain}/api/cm/contacts/{id}/phones -v -u {name}:{password} -X GET",
6566         "type": "json"
6567       }
6568     ],
6569     "name": "getAdditionalPhones",
6570     "group": "Cm_Contacts",
6571     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6572     "version": "0.0.0",
6573     "filename": "server/api/cmContact/index.js",
6574     "groupTitle": "Cm_Contacts"
6575   },
6576   {
6577     "type": "get",
6578     "url": "/api/cm/contacts/{id}/journey",
6579     "title": "Gets customer journey",
6580     "examples": [
6581       {
6582         "title": "Example usage:",
6583         "content": "curl https://{domain}/api/cm/contacts/{id}/journey -v -u {name}:{password}  -X GET",
6584         "type": "json"
6585       }
6586     ],
6587     "name": "getJourney",
6588     "group": "Cm_Contacts",
6589     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6590     "version": "0.0.0",
6591     "filename": "server/api/cmContact/index.js",
6592     "groupTitle": "Cm_Contacts"
6593   },
6594   {
6595     "type": "get",
6596     "url": "/api/cm/contacts/{id}/jscripty_sessions",
6597     "title": "Gets contact hopper blacks",
6598     "examples": [
6599       {
6600         "title": "Example usage:",
6601         "content": "curl https://{domain}/api/cm/contacts/{id}/hopper_black -v -u {name}:{password}  -X GET",
6602         "type": "json"
6603       }
6604     ],
6605     "name": "getJscriptySessions",
6606     "group": "Cm_Contacts",
6607     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6608     "version": "0.0.0",
6609     "filename": "server/api/cmContact/index.js",
6610     "groupTitle": "Cm_Contacts"
6611   },
6612   {
6613     "type": "get",
6614     "url": "/api/cm/contacts/{id}/tags",
6615     "title": "Gets configurations tags",
6616     "examples": [
6617       {
6618         "title": "Example usage:",
6619         "content": "curl https://{domain}/api/cm/contacts/{id}/tags -v -u {name}:{password} -X GET",
6620         "type": "json"
6621       }
6622     ],
6623     "name": "getTags",
6624     "group": "Cm_Contacts",
6625     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6626     "version": "0.0.0",
6627     "filename": "server/api/cmContact/index.js",
6628     "groupTitle": "Cm_Contacts"
6629   },
6630   {
6631     "type": "post",
6632     "url": "/api/cm/contacts/merge",
6633     "title": "Merge Contact",
6634     "examples": [
6635       {
6636         "title": "Example usage:",
6637         "content": "curl https://{domain}/api/cm/contacts/merge -d '{\"from\": 1, \"to\": 2}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
6638         "type": "json"
6639       }
6640     ],
6641     "name": "merge",
6642     "group": "Cm_Contacts",
6643     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6644     "version": "0.0.0",
6645     "filename": "server/api/cmContact/index.js",
6646     "groupTitle": "Cm_Contacts"
6647   },
6648   {
6649     "type": "post",
6650     "url": "/api/cm/contacts/{id}/rescheduleAdditionalPhones",
6651     "title": "Sets new contact additional phones",
6652     "examples": [
6653       {
6654         "title": "Example usage:",
6655         "content": "curl https://{domain}/api/cm/contacts/{id}/rescheduleAdditionalPhones -d '{\"phones\": [p1,p2]}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
6656         "type": "json"
6657       }
6658     ],
6659     "name": "rescheduleAdditionalPhones",
6660     "group": "Cm_Contacts",
6661     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6662     "version": "0.0.0",
6663     "filename": "server/api/cmContact/index.js",
6664     "groupTitle": "Cm_Contacts"
6665   },
6666   {
6667     "type": "post",
6668     "url": "/api/cm/contacts/{id}/phones",
6669     "title": "Sets new contact phones",
6670     "examples": [
6671       {
6672         "title": "Example usage:",
6673         "content": "curl https://{domain}/api/cm/contacts/{id}/phones -d '{\"phones\": [p1,p2]}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
6674         "type": "json"
6675       }
6676     ],
6677     "name": "setAdditionalPhones",
6678     "group": "Cm_Contacts",
6679     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6680     "version": "0.0.0",
6681     "filename": "server/api/cmContact/index.js",
6682     "groupTitle": "Cm_Contacts"
6683   },
6684   {
6685     "type": "post",
6686     "url": "/api/cm/contacts/{id}/tags",
6687     "title": "Sets new tags",
6688     "examples": [
6689       {
6690         "title": "Example usage:",
6691         "content": "curl https://{domain}/api/cm/contacts/{id}/tags -d '{\"ids\": [1,12]}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
6692         "type": "json"
6693       }
6694     ],
6695     "name": "setTags",
6696     "group": "Cm_Contacts",
6697     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6698     "version": "0.0.0",
6699     "filename": "server/api/cmContact/index.js",
6700     "groupTitle": "Cm_Contacts"
6701   },
6702   {
6703     "type": "get",
6704     "url": "/api/cm/contacts/{id}",
6705     "title": "Gets a single Contact",
6706     "examples": [
6707       {
6708         "title": "Example usage:",
6709         "content": "curl https://{domain}/api/cm/contacts/{id} -v -u {name}:{password} -X GET",
6710         "type": "json"
6711       }
6712     ],
6713     "name": "show",
6714     "group": "Cm_Contacts",
6715     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6716     "version": "0.0.0",
6717     "filename": "server/api/cmContact/index.js",
6718     "groupTitle": "Cm_Contacts"
6719   },
6720   {
6721     "type": "put",
6722     "url": "/api/cm/contacts/{id}",
6723     "title": "Update a single Contact",
6724     "examples": [
6725       {
6726         "title": "Example usage:",
6727         "content": "curl https://{domain}/api/cm/contacts/{id} -d '{\"firstName\": \"John\", \"lastName\": \"Doe\"}' -v -u {name}:{password} -X PUT",
6728         "type": "json"
6729       }
6730     ],
6731     "name": "update",
6732     "group": "Cm_Contacts",
6733     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6734     "version": "0.0.0",
6735     "filename": "server/api/cmContact/index.js",
6736     "groupTitle": "Cm_Contacts"
6737   },
6738   {
6739     "type": "delete",
6740     "url": "/api/cm/custom_fields/{id}",
6741     "title": "Deletes a Custom Field",
6742     "examples": [
6743       {
6744         "title": "Example usage:",
6745         "content": "curl https://{domain}/api/cm/custom_fields/{id} -v -u {name}:{password} -X DELETE",
6746         "type": "json"
6747       }
6748     ],
6749     "name": "DeleteCustom_Fields",
6750     "group": "Cm_Custom_Fields",
6751     "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>",
6752     "version": "0.0.0",
6753     "filename": "server/api/cmCustomField/index.js",
6754     "groupTitle": "Cm_Custom_Fields"
6755   },
6756   {
6757     "type": "get",
6758     "url": "/api/cm/custom_fields",
6759     "title": "Gets a list of Custom Fields",
6760     "examples": [
6761       {
6762         "title": "Example usage:",
6763         "content": "curl https://{domain}/api/cm/custom_fields -v -u {name}:{password}",
6764         "type": "json"
6765       }
6766     ],
6767     "name": "GetCustom_Fields",
6768     "group": "Cm_Custom_Fields",
6769     "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>",
6770     "version": "0.0.0",
6771     "filename": "server/api/cmCustomField/index.js",
6772     "groupTitle": "Cm_Custom_Fields"
6773   },
6774   {
6775     "type": "get",
6776     "url": "/api/cm/custom_fields/{id}",
6777     "title": "Gets a single Custom Field",
6778     "examples": [
6779       {
6780         "title": "Example usage:",
6781         "content": "curl https://{domain}/api/cm/custom_fields/{id} -v -u {name}:{password}",
6782         "type": "json"
6783       }
6784     ],
6785     "name": "ShowCustom_Fields",
6786     "group": "Cm_Custom_Fields",
6787     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6788     "version": "0.0.0",
6789     "filename": "server/api/cmCustomField/index.js",
6790     "groupTitle": "Cm_Custom_Fields"
6791   },
6792   {
6793     "type": "put",
6794     "url": "/api/cm/custom_fields/{id}",
6795     "title": "Update an existing Custom Field",
6796     "examples": [
6797       {
6798         "title": "Example usage:",
6799         "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",
6800         "type": "json"
6801       }
6802     ],
6803     "name": "updateCustom_Fields",
6804     "group": "Cm_Custom_Fields",
6805     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6806     "version": "0.0.0",
6807     "filename": "server/api/cmCustomField/index.js",
6808     "groupTitle": "Cm_Custom_Fields"
6809   },
6810   {
6811     "type": "post",
6812     "url": "/api/cm/hopper",
6813     "title": "Creates a new Hopper",
6814     "examples": [
6815       {
6816         "title": "Example usage:",
6817         "content": "curl https://{domain}/api/cm/hopper -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
6818         "type": "json"
6819       }
6820     ],
6821     "name": "CreateHopper",
6822     "group": "Cm_Hopper",
6823     "parameter": {
6824       "fields": {
6825         "Body": [
6826           {
6827             "group": "Body",
6828             "type": "String",
6829             "optional": false,
6830             "field": "phone",
6831             "description": ""
6832           },
6833           {
6834             "group": "Body",
6835             "type": "Boolean",
6836             "optional": true,
6837             "field": "active",
6838             "description": ""
6839           },
6840           {
6841             "group": "Body",
6842             "type": "String",
6843             "optional": true,
6844             "field": "scheduledat",
6845             "description": ""
6846           },
6847           {
6848             "group": "Body",
6849             "type": "Integer",
6850             "optional": true,
6851             "field": "countbusyretry",
6852             "description": ""
6853           },
6854           {
6855             "group": "Body",
6856             "type": "Integer",
6857             "optional": true,
6858             "field": "countcongestionretry",
6859             "description": ""
6860           },
6861           {
6862             "group": "Body",
6863             "type": "Integer",
6864             "optional": true,
6865             "field": "countnoanswerretry",
6866             "description": ""
6867           },
6868           {
6869             "group": "Body",
6870             "type": "Boolean",
6871             "optional": true,
6872             "field": "callback",
6873             "description": ""
6874           },
6875           {
6876             "group": "Body",
6877             "type": "String",
6878             "optional": true,
6879             "field": "callbackuniqueid",
6880             "description": ""
6881           },
6882           {
6883             "group": "Body",
6884             "type": "String",
6885             "optional": true,
6886             "field": "callbackat",
6887             "description": ""
6888           },
6889           {
6890             "group": "Body",
6891             "type": "Integer",
6892             "optional": true,
6893             "field": "priority",
6894             "description": ""
6895           },
6896           {
6897             "group": "Body",
6898             "type": "Boolean",
6899             "optional": true,
6900             "field": "recallme",
6901             "description": ""
6902           },
6903           {
6904             "group": "Body",
6905             "type": "Integer",
6906             "optional": true,
6907             "field": "ContactId",
6908             "description": ""
6909           },
6910           {
6911             "group": "Body",
6912             "type": "Integer",
6913             "optional": true,
6914             "field": "ListId",
6915             "description": ""
6916           },
6917           {
6918             "group": "Body",
6919             "type": "Integer",
6920             "optional": true,
6921             "field": "UserId",
6922             "description": ""
6923           },
6924           {
6925             "group": "Body",
6926             "type": "Integer",
6927             "optional": true,
6928             "field": "VoiceQueueId",
6929             "description": ""
6930           },
6931           {
6932             "group": "Body",
6933             "type": "Integer",
6934             "optional": true,
6935             "field": "CampaignId",
6936             "description": ""
6937           },
6938           {
6939             "group": "Body",
6940             "type": "Integer",
6941             "optional": true,
6942             "field": "countnosuchnumberretry",
6943             "description": ""
6944           },
6945           {
6946             "group": "Body",
6947             "type": "Integer",
6948             "optional": true,
6949             "field": "countdropretry",
6950             "description": ""
6951           },
6952           {
6953             "group": "Body",
6954             "type": "Integer",
6955             "optional": true,
6956             "field": "countabandonedretry",
6957             "description": ""
6958           },
6959           {
6960             "group": "Body",
6961             "type": "Integer",
6962             "optional": true,
6963             "field": "countmachineretry",
6964             "description": ""
6965           },
6966           {
6967             "group": "Body",
6968             "type": "Integer",
6969             "optional": true,
6970             "field": "countagentrejectretry",
6971             "description": ""
6972           },
6973           {
6974             "group": "Body",
6975             "type": "Integer",
6976             "optional": true,
6977             "field": "OrderBy",
6978             "description": ""
6979           },
6980           {
6981             "group": "Body",
6982             "type": "String",
6983             "optional": true,
6984             "field": "dialTimezone",
6985             "description": ""
6986           }
6987         ]
6988       }
6989     },
6990     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6991     "version": "0.0.0",
6992     "filename": "server/api/cmHopper/index.js",
6993     "groupTitle": "Cm_Hopper"
6994   },
6995   {
6996     "type": "get",
6997     "url": "/api/cm/hopper/describe",
6998     "title": "Gets table info about Hopper",
6999     "examples": [
7000       {
7001         "title": "Example usage:",
7002         "content": "curl https://{domain}/api/cm/hopper/describe -v -u {name}:{password}",
7003         "type": "json"
7004       }
7005     ],
7006     "name": "DescribeHopper",
7007     "group": "Cm_Hopper",
7008     "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>",
7009     "version": "0.0.0",
7010     "filename": "server/api/cmHopper/index.js",
7011     "groupTitle": "Cm_Hopper"
7012   },
7013   {
7014     "type": "get",
7015     "url": "/api/cm/hopper",
7016     "title": "Gets a list of Hopper",
7017     "examples": [
7018       {
7019         "title": "Example usage:",
7020         "content": "curl https://{domain}/api/cm/hopper -v -u {name}:{password}",
7021         "type": "json"
7022       }
7023     ],
7024     "name": "GetHopper",
7025     "group": "Cm_Hopper",
7026     "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>",
7027     "version": "0.0.0",
7028     "filename": "server/api/cmHopper/index.js",
7029     "groupTitle": "Cm_Hopper"
7030   },
7031   {
7032     "type": "get",
7033     "url": "/api/cm/hopper/{id}",
7034     "title": "Gets a single Hopper",
7035     "examples": [
7036       {
7037         "title": "Example usage:",
7038         "content": "curl https://{domain}/api/cm/hopper/{id} -v -u {name}:{password}",
7039         "type": "json"
7040       }
7041     ],
7042     "name": "ShowHopper",
7043     "group": "Cm_Hopper",
7044     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7045     "version": "0.0.0",
7046     "filename": "server/api/cmHopper/index.js",
7047     "groupTitle": "Cm_Hopper"
7048   },
7049   {
7050     "type": "delete",
7051     "url": "/api/cm/hopper_black/{id}",
7052     "title": "Deletes a Hopper Black",
7053     "examples": [
7054       {
7055         "title": "Example usage:",
7056         "content": "curl https://{domain}/api/cm/hopper_black/{id} -v -u {name}:{password} -X DELETE",
7057         "type": "json"
7058       }
7059     ],
7060     "name": "DeleteHopper_Black",
7061     "group": "Cm_Hopper_Black",
7062     "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>",
7063     "version": "0.0.0",
7064     "filename": "server/api/cmHopperBlack/index.js",
7065     "groupTitle": "Cm_Hopper_Black"
7066   },
7067   {
7068     "type": "get",
7069     "url": "/api/cm/hopper_black/describe",
7070     "title": "Gets table info about Hopper Black",
7071     "examples": [
7072       {
7073         "title": "Example usage:",
7074         "content": "curl https://{domain}/api/cm/hopper_black/describe -v -u {name}:{password}",
7075         "type": "json"
7076       }
7077     ],
7078     "name": "DescribeHopper_Black",
7079     "group": "Cm_Hopper_Black",
7080     "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>",
7081     "version": "0.0.0",
7082     "filename": "server/api/cmHopperBlack/index.js",
7083     "groupTitle": "Cm_Hopper_Black"
7084   },
7085   {
7086     "type": "get",
7087     "url": "/api/cm/hopper_black",
7088     "title": "Gets a list of Hopper Black",
7089     "examples": [
7090       {
7091         "title": "Example usage:",
7092         "content": "curl https://{domain}/api/cm/hopper_black -v -u {name}:{password}",
7093         "type": "json"
7094       }
7095     ],
7096     "name": "GetHopper_Black",
7097     "group": "Cm_Hopper_Black",
7098     "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>",
7099     "version": "0.0.0",
7100     "filename": "server/api/cmHopperBlack/index.js",
7101     "groupTitle": "Cm_Hopper_Black"
7102   },
7103   {
7104     "type": "get",
7105     "url": "/api/cm/hopper_black/{id}",
7106     "title": "Gets a single Hopper Black",
7107     "examples": [
7108       {
7109         "title": "Example usage:",
7110         "content": "curl https://{domain}/api/cm/hopper_black/{id} -v -u {name}:{password}",
7111         "type": "json"
7112       }
7113     ],
7114     "name": "ShowHopper_Black",
7115     "group": "Cm_Hopper_Black",
7116     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7117     "version": "0.0.0",
7118     "filename": "server/api/cmHopperBlack/index.js",
7119     "groupTitle": "Cm_Hopper_Black"
7120   },
7121   {
7122     "type": "put",
7123     "url": "/api/cm/hopper_black/{id}",
7124     "title": "Update an existing Hopper Black",
7125     "examples": [
7126       {
7127         "title": "Example usage:",
7128         "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",
7129         "type": "json"
7130       }
7131     ],
7132     "name": "updateHopper_Black",
7133     "group": "Cm_Hopper_Black",
7134     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7135     "version": "0.0.0",
7136     "filename": "server/api/cmHopperBlack/index.js",
7137     "groupTitle": "Cm_Hopper_Black"
7138   },
7139   {
7140     "type": "post",
7141     "url": "/api/cm/hopper_final/checkContactHopper",
7142     "title": "Check if contact is in hopper",
7143     "examples": [
7144       {
7145         "title": "Example usage:",
7146         "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",
7147         "type": "json"
7148       }
7149     ],
7150     "name": "/checkContactHopper",
7151     "group": "Cm_Hopper_Final",
7152     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7153     "version": "0.0.0",
7154     "filename": "server/api/cmHopperFinal/index.js",
7155     "groupTitle": "Cm_Hopper_Final"
7156   },
7157   {
7158     "type": "get",
7159     "url": "/api/cm/hopper_final/describe",
7160     "title": "Gets table info about HopperFinal",
7161     "examples": [
7162       {
7163         "title": "Example usage:",
7164         "content": "curl https://{domain}/api/cm/hopper_final/describe -v -u {name}:{password}",
7165         "type": "json"
7166       }
7167     ],
7168     "name": "DescribeHopperFinal",
7169     "group": "Cm_Hopper_Final",
7170     "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>",
7171     "version": "0.0.0",
7172     "filename": "server/api/cmHopperFinal/index.js",
7173     "groupTitle": "Cm_Hopper_Final"
7174   },
7175   {
7176     "type": "get",
7177     "url": "/api/cm/hopper_final",
7178     "title": "Gets a list of HopperFinal",
7179     "examples": [
7180       {
7181         "title": "Example usage:",
7182         "content": "curl https://{domain}/api/cm/hopper_final -v -u {name}:{password}",
7183         "type": "json"
7184       }
7185     ],
7186     "name": "GetHopperFinal",
7187     "group": "Cm_Hopper_Final",
7188     "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>",
7189     "version": "0.0.0",
7190     "filename": "server/api/cmHopperFinal/index.js",
7191     "groupTitle": "Cm_Hopper_Final"
7192   },
7193   {
7194     "type": "get",
7195     "url": "/api/cm/hopper_final/{id}",
7196     "title": "Gets a single HopperFinal",
7197     "examples": [
7198       {
7199         "title": "Example usage:",
7200         "content": "curl https://{domain}/api/cm/hopper_final/{id} -v -u {name}:{password}",
7201         "type": "json"
7202       }
7203     ],
7204     "name": "ShowHopperFinal",
7205     "group": "Cm_Hopper_Final",
7206     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7207     "version": "0.0.0",
7208     "filename": "server/api/cmHopperFinal/index.js",
7209     "groupTitle": "Cm_Hopper_Final"
7210   },
7211   {
7212     "type": "get",
7213     "url": "/api/cm/hopper_final/campaign/countAttributes/{id}",
7214     "title": "Return number contacts for attributes",
7215     "examples": [
7216       {
7217         "title": "Example usage:",
7218         "content": "curl https://{domain}/api/hopper_final/campaign/countAttributes/{id} -d '{\"disposition\": \"OK\"}' -v -u {name}:{password} -X GET",
7219         "type": "json"
7220       }
7221     ],
7222     "name": "countContactsIvrCampaignHopperFinal",
7223     "group": "Cm_Hopper_Final",
7224     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7225     "version": "0.0.0",
7226     "filename": "server/api/cmHopperFinal/index.js",
7227     "groupTitle": "Cm_Hopper_Final"
7228   },
7229   {
7230     "type": "get",
7231     "url": "/api/cm/hopper_final/voice/queue/countAttributes/{id}",
7232     "title": "Return number contacts for attributes",
7233     "examples": [
7234       {
7235         "title": "Example usage:",
7236         "content": "curl https://{domain}/api/hopper_final/voice/queue/countAttributes/{id} -d '{\"disposition\": \"OK\"}' -v -u {name}:{password} -X GET",
7237         "type": "json"
7238       }
7239     ],
7240     "name": "countContactsQueueCampaignHopperFinal",
7241     "group": "Cm_Hopper_Final",
7242     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7243     "version": "0.0.0",
7244     "filename": "server/api/cmHopperFinal/index.js",
7245     "groupTitle": "Cm_Hopper_Final"
7246   },
7247   {
7248     "type": "post",
7249     "url": "/api/cm/hopper_final/campaign/{id}",
7250     "title": "Move contacts in hopper",
7251     "examples": [
7252       {
7253         "title": "Example usage:",
7254         "content": "curl https://{domain}/api/hopper_final/campaign/moveContacts/{id} -d '{\"state\": \"state\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
7255         "type": "json"
7256       }
7257     ],
7258     "name": "moveContactsIvrCampaignHopperFinal",
7259     "group": "Cm_Hopper_Final",
7260     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7261     "version": "0.0.0",
7262     "filename": "server/api/cmHopperFinal/index.js",
7263     "groupTitle": "Cm_Hopper_Final"
7264   },
7265   {
7266     "type": "post",
7267     "url": "/api/cm/hopper_final/voice/queue/{id}",
7268     "title": "Move contacts in hopper",
7269     "examples": [
7270       {
7271         "title": "Example usage:",
7272         "content": "curl https://{domain}/api/hopper_final/voice/queue/moveContacts/{id} -d '{\"state\": \"state\"}' -H 'Content-Type: application/json' -v -u {name}:{password}",
7273         "type": "json"
7274       }
7275     ],
7276     "name": "moveContactsQueueCampaignHopperFinal",
7277     "group": "Cm_Hopper_Final",
7278     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7279     "version": "0.0.0",
7280     "filename": "server/api/cmHopperFinal/index.js",
7281     "groupTitle": "Cm_Hopper_Final"
7282   },
7283   {
7284     "type": "put",
7285     "url": "/api/cm/hopper_final/{id}",
7286     "title": "Update a single hopper final",
7287     "examples": [
7288       {
7289         "title": "Example usage:",
7290         "content": "curl https://{domain}/api/hopper_final/{id} -d '{\"disposition\": \"OK\"}' -v -u {name}:{password} -X PUT",
7291         "type": "json"
7292       }
7293     ],
7294     "name": "update",
7295     "group": "Cm_Hopper_Final",
7296     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7297     "version": "0.0.0",
7298     "filename": "server/api/cmHopperFinal/index.js",
7299     "groupTitle": "Cm_Hopper_Final"
7300   },
7301   {
7302     "type": "post",
7303     "url": "/api/cm/hopper_history",
7304     "title": "Creates a new HopperHistory",
7305     "examples": [
7306       {
7307         "title": "Example usage:",
7308         "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",
7309         "type": "json"
7310       }
7311     ],
7312     "name": "CreateHopperHistory",
7313     "group": "Cm_Hopper_History",
7314     "parameter": {
7315       "fields": {
7316         "Body": [
7317           {
7318             "group": "Body",
7319             "type": "Integer",
7320             "optional": true,
7321             "field": "state",
7322             "description": ""
7323           },
7324           {
7325             "group": "Body",
7326             "type": "String",
7327             "optional": true,
7328             "field": "statedesc",
7329             "description": ""
7330           },
7331           {
7332             "group": "Body",
7333             "type": "String",
7334             "optional": true,
7335             "field": "scheduledat",
7336             "description": ""
7337           },
7338           {
7339             "group": "Body",
7340             "type": "Integer",
7341             "optional": true,
7342             "field": "countbusyretry",
7343             "description": ""
7344           },
7345           {
7346             "group": "Body",
7347             "type": "Integer",
7348             "optional": true,
7349             "field": "countcongestionretry",
7350             "description": ""
7351           },
7352           {
7353             "group": "Body",
7354             "type": "Integer",
7355             "optional": true,
7356             "field": "countnoanswerretry",
7357             "description": ""
7358           },
7359           {
7360             "group": "Body",
7361             "type": "Integer",
7362             "optional": true,
7363             "field": "countglobal",
7364             "description": ""
7365           },
7366           {
7367             "group": "Body",
7368             "type": "String",
7369             "optional": true,
7370             "field": "uniqueid",
7371             "description": ""
7372           },
7373           {
7374             "group": "Body",
7375             "type": "String",
7376             "optional": true,
7377             "field": "originatecalleridnum",
7378             "description": ""
7379           },
7380           {
7381             "group": "Body",
7382             "type": "String",
7383             "optional": true,
7384             "field": "originatecalleridname",
7385             "description": ""
7386           },
7387           {
7388             "group": "Body",
7389             "type": "String",
7390             "optional": true,
7391             "field": "calleridnum",
7392             "description": ""
7393           },
7394           {
7395             "group": "Body",
7396             "type": "String",
7397             "optional": true,
7398             "field": "calleridname",
7399             "description": ""
7400           },
7401           {
7402             "group": "Body",
7403             "type": "String",
7404             "optional": true,
7405             "field": "starttime",
7406             "description": ""
7407           },
7408           {
7409             "group": "Body",
7410             "type": "String",
7411             "optional": true,
7412             "field": "responsetime",
7413             "description": ""
7414           },
7415           {
7416             "group": "Body",
7417             "type": "String",
7418             "optional": true,
7419             "field": "answertime",
7420             "description": ""
7421           },
7422           {
7423             "group": "Body",
7424             "type": "String",
7425             "optional": true,
7426             "field": "droptime",
7427             "description": ""
7428           },
7429           {
7430             "group": "Body",
7431             "type": "String",
7432             "optional": true,
7433             "field": "endtime",
7434             "description": ""
7435           },
7436           {
7437             "group": "Body",
7438             "type": "Integer",
7439             "optional": true,
7440             "field": "ringtime",
7441             "description": ""
7442           },
7443           {
7444             "group": "Body",
7445             "type": "Integer",
7446             "optional": true,
7447             "field": "holdtime",
7448             "description": ""
7449           },
7450           {
7451             "group": "Body",
7452             "type": "Integer",
7453             "optional": true,
7454             "field": "talktime",
7455             "description": ""
7456           },
7457           {
7458             "group": "Body",
7459             "type": "Integer",
7460             "optional": true,
7461             "field": "followuptime",
7462             "description": ""
7463           },
7464           {
7465             "group": "Body",
7466             "type": "String",
7467             "optional": true,
7468             "field": "dropreason",
7469             "description": ""
7470           },
7471           {
7472             "group": "Body",
7473             "type": "String",
7474             "optional": true,
7475             "field": "campaign",
7476             "description": ""
7477           },
7478           {
7479             "group": "Body",
7480             "type": "String",
7481             "optional": true,
7482             "field": "campaigntype",
7483             "description": ""
7484           },
7485           {
7486             "group": "Body",
7487             "type": "String",
7488             "optional": true,
7489             "field": "membername",
7490             "description": ""
7491           },
7492           {
7493             "group": "Body",
7494             "type": "String",
7495             "optional": true,
7496             "field": "reason",
7497             "description": ""
7498           },
7499           {
7500             "group": "Body",
7501             "type": "Boolean",
7502             "optional": true,
7503             "field": "amd",
7504             "description": ""
7505           },
7506           {
7507             "group": "Body",
7508             "type": "Boolean",
7509             "optional": true,
7510             "field": "fax",
7511             "description": ""
7512           },
7513           {
7514             "group": "Body",
7515             "type": "Boolean",
7516             "optional": true,
7517             "field": "callback",
7518             "description": ""
7519           },
7520           {
7521             "group": "Body",
7522             "type": "String",
7523             "optional": true,
7524             "field": "callbackuniqueid",
7525             "description": ""
7526           },
7527           {
7528             "group": "Body",
7529             "type": "String",
7530             "optional": true,
7531             "field": "callbackat",
7532             "description": ""
7533           },
7534           {
7535             "group": "Body",
7536             "type": "Boolean",
7537             "optional": true,
7538             "field": "recallme",
7539             "description": ""
7540           },
7541           {
7542             "group": "Body",
7543             "type": "String",
7544             "optional": true,
7545             "field": "editedat",
7546             "description": ""
7547           },
7548           {
7549             "group": "Body",
7550             "type": "Boolean",
7551             "optional": true,
7552             "field": "edited",
7553             "description": ""
7554           },
7555           {
7556             "group": "Body",
7557             "type": "Integer",
7558             "optional": true,
7559             "field": "countnosuchnumberretry",
7560             "description": ""
7561           },
7562           {
7563             "group": "Body",
7564             "type": "Integer",
7565             "optional": true,
7566             "field": "countdropretry",
7567             "description": ""
7568           },
7569           {
7570             "group": "Body",
7571             "type": "Integer",
7572             "optional": true,
7573             "field": "countabandonedretry",
7574             "description": ""
7575           },
7576           {
7577             "group": "Body",
7578             "type": "Integer",
7579             "optional": true,
7580             "field": "countmachineretry",
7581             "description": ""
7582           },
7583           {
7584             "group": "Body",
7585             "type": "Integer",
7586             "optional": true,
7587             "field": "countagentrejectretry",
7588             "description": ""
7589           }
7590         ]
7591       }
7592     },
7593     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7594     "version": "0.0.0",
7595     "filename": "server/api/cmHopperHistory/index.js",
7596     "groupTitle": "Cm_Hopper_History"
7597   },
7598   {
7599     "type": "get",
7600     "url": "/api/cm/hopper_history/describe",
7601     "title": "Gets table info about HopperHistory",
7602     "examples": [
7603       {
7604         "title": "Example usage:",
7605         "content": "curl https://{domain}/api/cm/hopper_history/describe -v -u {name}:{password}",
7606         "type": "json"
7607       }
7608     ],
7609     "name": "DescribeHopperHistory",
7610     "group": "Cm_Hopper_History",
7611     "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>",
7612     "version": "0.0.0",
7613     "filename": "server/api/cmHopperHistory/index.js",
7614     "groupTitle": "Cm_Hopper_History"
7615   },
7616   {
7617     "type": "get",
7618     "url": "/api/cm/hopper_history",
7619     "title": "Gets a list of HopperHistory",
7620     "examples": [
7621       {
7622         "title": "Example usage:",
7623         "content": "curl https://{domain}/api/cm/hopper_history -v -u {name}:{password}",
7624         "type": "json"
7625       }
7626     ],
7627     "name": "GetHopperHistory",
7628     "group": "Cm_Hopper_History",
7629     "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>",
7630     "version": "0.0.0",
7631     "filename": "server/api/cmHopperHistory/index.js",
7632     "groupTitle": "Cm_Hopper_History"
7633   },
7634   {
7635     "type": "get",
7636     "url": "/api/cm/hopper_history/{id}",
7637     "title": "Gets a single HopperHistory",
7638     "examples": [
7639       {
7640         "title": "Example usage:",
7641         "content": "curl https://{domain}/api/cm/hopper_history/{id} -v -u {name}:{password}",
7642         "type": "json"
7643       }
7644     ],
7645     "name": "ShowHopperHistory",
7646     "group": "Cm_Hopper_History",
7647     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7648     "version": "0.0.0",
7649     "filename": "server/api/cmHopperHistory/index.js",
7650     "groupTitle": "Cm_Hopper_History"
7651   },
7652   {
7653     "type": "put",
7654     "url": "/api/cm/hopper_history/{id}",
7655     "title": "Update a single hopper history",
7656     "examples": [
7657       {
7658         "title": "Example usage:",
7659         "content": "curl https://{domain}/api/hopper_history/{id} -d '{\"disposition\": \"OK\"}' -v -u {name}:{password} -X PUT",
7660         "type": "json"
7661       }
7662     ],
7663     "name": "update",
7664     "group": "Cm_Hopper_History",
7665     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7666     "version": "0.0.0",
7667     "filename": "server/api/cmHopperHistory/index.js",
7668     "groupTitle": "Cm_Hopper_History"
7669   },
7670   {
7671     "type": "delete",
7672     "url": "/api/cm/hopper/{id}",
7673     "title": "Delete Hopper",
7674     "examples": [
7675       {
7676         "title": "Example usage:",
7677         "content": "curl https://{domain}/api/cm/hopper/{id} -v -u {name}:{password} -X DELETE",
7678         "type": "json"
7679       }
7680     ],
7681     "name": "destroy",
7682     "group": "Cm_Hopper",
7683     "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>",
7684     "version": "0.0.0",
7685     "filename": "server/api/cmHopper/index.js",
7686     "groupTitle": "Cm_Hopper"
7687   },
7688   {
7689     "type": "get",
7690     "url": "/api/cm/hopper/opencontacts",
7691     "title": "Gets Open Contacts",
7692     "examples": [
7693       {
7694         "title": "Example usage:",
7695         "content": "curl https://{domain}/api/cm/hopper/opencontacts -v -u {name}:{password} -X GET",
7696         "type": "json"
7697       }
7698     ],
7699     "name": "getOpenContacts",
7700     "group": "Cm_Hopper",
7701     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7702     "version": "0.0.0",
7703     "filename": "server/api/cmHopper/index.js",
7704     "groupTitle": "Cm_Hopper"
7705   },
7706   {
7707     "type": "post",
7708     "url": "/api/cm/hopper/preview",
7709     "title": "Gets Preview Dialer Contacts",
7710     "examples": [
7711       {
7712         "title": "Example usage:",
7713         "content": "curl https://{domain}/api/cm/hopper/preview -d '{\"hopperIds\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X GET",
7714         "type": "json"
7715       }
7716     ],
7717     "name": "getPreview",
7718     "group": "Cm_Hopper",
7719     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7720     "version": "0.0.0",
7721     "filename": "server/api/cmHopper/index.js",
7722     "groupTitle": "Cm_Hopper"
7723   },
7724   {
7725     "type": "post",
7726     "url": "/api/cm/hopper/previewrecall",
7727     "title": "Gets Preview Dialer Contacts for Recall",
7728     "examples": [
7729       {
7730         "title": "Example usage:",
7731         "content": "curl https://{domain}/api/cm/hopper/previewrecall -d '{\"hopperId\": 1}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X GET",
7732         "type": "json"
7733       }
7734     ],
7735     "name": "getPreviewRecall",
7736     "group": "Cm_Hopper",
7737     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7738     "version": "0.0.0",
7739     "filename": "server/api/cmHopper/index.js",
7740     "groupTitle": "Cm_Hopper"
7741   },
7742   {
7743     "type": "get",
7744     "url": "/api/cm/hopper/timezones",
7745     "title": "Gets TZs list",
7746     "examples": [
7747       {
7748         "title": "Example usage:",
7749         "content": "curl https://{domain}/api/cm/hopper/timezones -v -u {name}:{password} -X GET",
7750         "type": "json"
7751       }
7752     ],
7753     "name": "getTimezones",
7754     "group": "Cm_Hopper",
7755     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7756     "version": "0.0.0",
7757     "filename": "server/api/cmHopper/index.js",
7758     "groupTitle": "Cm_Hopper"
7759   },
7760   {
7761     "type": "put",
7762     "url": "/api/cm/hopper/{id}",
7763     "title": "Update an existing Hopper",
7764     "examples": [
7765       {
7766         "title": "Example usage:",
7767         "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",
7768         "type": "json"
7769       }
7770     ],
7771     "name": "updateHopper",
7772     "group": "Cm_Hopper",
7773     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7774     "version": "0.0.0",
7775     "filename": "server/api/cmHopper/index.js",
7776     "groupTitle": "Cm_Hopper"
7777   },
7778   {
7779     "type": "post",
7780     "url": "/api/cm/lists",
7781     "title": "Creates a new List",
7782     "examples": [
7783       {
7784         "title": "Example usage:",
7785         "content": "curl https://{domain}/api/cm/lists -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
7786         "type": "json"
7787       }
7788     ],
7789     "name": "CreateLists",
7790     "group": "Cm_Lists",
7791     "parameter": {
7792       "fields": {
7793         "Body": [
7794           {
7795             "group": "Body",
7796             "type": "String",
7797             "optional": false,
7798             "field": "name",
7799             "description": ""
7800           },
7801           {
7802             "group": "Body",
7803             "type": "String",
7804             "optional": true,
7805             "field": "description",
7806             "description": ""
7807           },
7808           {
7809             "group": "Body",
7810             "type": "String",
7811             "optional": true,
7812             "field": "dialPrefix",
7813             "description": ""
7814           }
7815         ]
7816       }
7817     },
7818     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7819     "version": "0.0.0",
7820     "filename": "server/api/cmList/index.js",
7821     "groupTitle": "Cm_Lists"
7822   },
7823   {
7824     "type": "delete",
7825     "url": "/api/cm/lists/{id}",
7826     "title": "Deletes a List",
7827     "examples": [
7828       {
7829         "title": "Example usage:",
7830         "content": "curl https://{domain}/api/cm/lists/{id} -v -u {name}:{password} -X DELETE",
7831         "type": "json"
7832       }
7833     ],
7834     "name": "DeleteLists",
7835     "group": "Cm_Lists",
7836     "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>",
7837     "version": "0.0.0",
7838     "filename": "server/api/cmList/index.js",
7839     "groupTitle": "Cm_Lists"
7840   },
7841   {
7842     "type": "get",
7843     "url": "/api/cm/lists/describe",
7844     "title": "Gets table info about Lists",
7845     "examples": [
7846       {
7847         "title": "Example usage:",
7848         "content": "curl https://{domain}/api/cm/lists/describe -v -u {name}:{password}",
7849         "type": "json"
7850       }
7851     ],
7852     "name": "DescribeLists",
7853     "group": "Cm_Lists",
7854     "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>",
7855     "version": "0.0.0",
7856     "filename": "server/api/cmList/index.js",
7857     "groupTitle": "Cm_Lists"
7858   },
7859   {
7860     "type": "get",
7861     "url": "/api/cm/lists/{id}/users",
7862     "title": "Gets agents from list",
7863     "examples": [
7864       {
7865         "title": "Example usage:",
7866         "content": "curl https://{domain}/api/cm/lists/{id}/users -v -u {name}:{password} -X GET",
7867         "type": "json"
7868       }
7869     ],
7870     "name": "GetAgents",
7871     "group": "Cm_Lists",
7872     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7873     "version": "0.0.0",
7874     "filename": "server/api/cmList/index.js",
7875     "groupTitle": "Cm_Lists"
7876   },
7877   {
7878     "type": "get",
7879     "url": "/api/cm/lists",
7880     "title": "Gets a list of Lists",
7881     "examples": [
7882       {
7883         "title": "Example usage:",
7884         "content": "curl https://{domain}/api/cm/lists -v -u {name}:{password}",
7885         "type": "json"
7886       }
7887     ],
7888     "name": "GetLists",
7889     "group": "Cm_Lists",
7890     "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>",
7891     "version": "0.0.0",
7892     "filename": "server/api/cmList/index.js",
7893     "groupTitle": "Cm_Lists"
7894   },
7895   {
7896     "type": "delete",
7897     "url": "/api/cm/lists/{id}/users",
7898     "title": "Removes agents from a list",
7899     "examples": [
7900       {
7901         "title": "Example usage:",
7902         "content": "curl https://{domain}/api/cm/lists/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
7903         "type": "json"
7904       }
7905     ],
7906     "name": "RemoveAgents",
7907     "group": "Cm_Lists",
7908     "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>",
7909     "version": "0.0.0",
7910     "filename": "server/api/cmList/index.js",
7911     "groupTitle": "Cm_Lists"
7912   },
7913   {
7914     "type": "delete",
7915     "url": "/api/cm/lists/{id}/dispositions",
7916     "title": "Removes dispositions from account",
7917     "examples": [
7918       {
7919         "title": "Example usage:",
7920         "content": "curl https://{domain}/api/cm/lists/{id}/dispositions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
7921         "type": "json"
7922       }
7923     ],
7924     "name": "RemoveDispositions",
7925     "group": "Cm_Lists",
7926     "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>",
7927     "version": "0.0.0",
7928     "filename": "server/api/cmList/index.js",
7929     "groupTitle": "Cm_Lists"
7930   },
7931   {
7932     "type": "get",
7933     "url": "/api/cm/lists/{id}",
7934     "title": "Gets a single List",
7935     "examples": [
7936       {
7937         "title": "Example usage:",
7938         "content": "curl https://{domain}/api/cm/lists/{id} -v -u {name}:{password}",
7939         "type": "json"
7940       }
7941     ],
7942     "name": "ShowLists",
7943     "group": "Cm_Lists",
7944     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7945     "version": "0.0.0",
7946     "filename": "server/api/cmList/index.js",
7947     "groupTitle": "Cm_Lists"
7948   },
7949   {
7950     "type": "post",
7951     "url": "/api/cm/lists/{id}/users",
7952     "title": "Adds agents to a list",
7953     "examples": [
7954       {
7955         "title": "Example usage:",
7956         "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",
7957         "type": "json"
7958       }
7959     ],
7960     "name": "addAgents",
7961     "group": "Cm_Lists",
7962     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7963     "version": "0.0.0",
7964     "filename": "server/api/cmList/index.js",
7965     "groupTitle": "Cm_Lists"
7966   },
7967   {
7968     "type": "post",
7969     "url": "/api/cm/lists/{id}/contacts",
7970     "title": "Creates new contacts",
7971     "examples": [
7972       {
7973         "title": "Example usage:",
7974         "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",
7975         "type": "json"
7976       }
7977     ],
7978     "name": "addContacts",
7979     "group": "Cm_Lists",
7980     "parameter": {
7981       "fields": {
7982         "Body": [
7983           {
7984             "group": "Body",
7985             "type": "String",
7986             "optional": false,
7987             "field": "firstName",
7988             "description": ""
7989           },
7990           {
7991             "group": "Body",
7992             "type": "String",
7993             "optional": true,
7994             "field": "lastName",
7995             "description": ""
7996           },
7997           {
7998             "group": "Body",
7999             "type": "String",
8000             "optional": true,
8001             "field": "street",
8002             "description": ""
8003           },
8004           {
8005             "group": "Body",
8006             "type": "String",
8007             "optional": true,
8008             "field": "postalCode",
8009             "description": ""
8010           },
8011           {
8012             "group": "Body",
8013             "type": "String",
8014             "optional": true,
8015             "field": "city",
8016             "description": ""
8017           },
8018           {
8019             "group": "Body",
8020             "type": "String",
8021             "optional": true,
8022             "field": "country",
8023             "description": ""
8024           },
8025           {
8026             "group": "Body",
8027             "type": "String",
8028             "optional": true,
8029             "field": "dateOfBirth",
8030             "description": ""
8031           },
8032           {
8033             "group": "Body",
8034             "type": "Text",
8035             "optional": true,
8036             "field": "description",
8037             "description": ""
8038           },
8039           {
8040             "group": "Body",
8041             "type": "String",
8042             "optional": true,
8043             "field": "phone",
8044             "description": ""
8045           },
8046           {
8047             "group": "Body",
8048             "type": "String",
8049             "optional": true,
8050             "field": "mobile",
8051             "description": ""
8052           },
8053           {
8054             "group": "Body",
8055             "type": "String",
8056             "optional": true,
8057             "field": "fax",
8058             "description": ""
8059           },
8060           {
8061             "group": "Body",
8062             "type": "String",
8063             "optional": true,
8064             "field": "email",
8065             "description": ""
8066           },
8067           {
8068             "group": "Body",
8069             "type": "String",
8070             "optional": true,
8071             "field": "url",
8072             "description": ""
8073           },
8074           {
8075             "group": "Body",
8076             "type": "String",
8077             "optional": true,
8078             "field": "facebook",
8079             "description": ""
8080           },
8081           {
8082             "group": "Body",
8083             "type": "String",
8084             "optional": true,
8085             "field": "fb_data",
8086             "description": ""
8087           },
8088           {
8089             "group": "Body",
8090             "type": "String",
8091             "optional": true,
8092             "field": "twitter",
8093             "description": ""
8094           },
8095           {
8096             "group": "Body",
8097             "type": "String",
8098             "optional": true,
8099             "field": "skype",
8100             "description": ""
8101           },
8102           {
8103             "group": "Body",
8104             "type": "String",
8105             "optional": true,
8106             "field": "teams",
8107             "description": ""
8108           },
8109           {
8110             "group": "Body",
8111             "type": "String",
8112             "optional": true,
8113             "field": "viber",
8114             "description": ""
8115           },
8116           {
8117             "group": "Body",
8118             "type": "String",
8119             "optional": true,
8120             "field": "line",
8121             "description": ""
8122           },
8123           {
8124             "group": "Body",
8125             "type": "String",
8126             "optional": true,
8127             "field": "wechat",
8128             "description": ""
8129           },
8130           {
8131             "group": "Body",
8132             "type": "String",
8133             "optional": true,
8134             "field": "telegram",
8135             "description": ""
8136           },
8137           {
8138             "group": "Body",
8139             "type": "Integer",
8140             "optional": true,
8141             "field": "UserId",
8142             "description": ""
8143           },
8144           {
8145             "group": "Body",
8146             "type": "Integer",
8147             "optional": true,
8148             "field": "priority",
8149             "description": ""
8150           },
8151           {
8152             "group": "Body",
8153             "type": "String",
8154             "optional": true,
8155             "field": "scheduledat",
8156             "description": ""
8157           }
8158         ]
8159       }
8160     },
8161     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8162     "version": "0.0.0",
8163     "filename": "server/api/cmList/index.js",
8164     "groupTitle": "Cm_Lists"
8165   },
8166   {
8167     "type": "post",
8168     "url": "/api/cm/lists/{id}/fields",
8169     "title": "Creates a new custom field",
8170     "examples": [
8171       {
8172         "title": "Example usage:",
8173         "content": "curl https://{domain}/api/cm/lists/{id}/fields -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
8174         "type": "json"
8175       }
8176     ],
8177     "name": "addCustomField",
8178     "group": "Cm_Lists",
8179     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8180     "version": "0.0.0",
8181     "filename": "server/api/cmList/index.js",
8182     "groupTitle": "Cm_Lists"
8183   },
8184   {
8185     "type": "post",
8186     "url": "/api/cm/lists/{id}/dispositions",
8187     "title": "Creates new disposition",
8188     "examples": [
8189       {
8190         "title": "Example usage:",
8191         "content": "curl https://{domain}/api/cm/lists/{id}/dispositions -d '{\"name\": \"vip\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
8192         "type": "json"
8193       }
8194     ],
8195     "name": "addDisposition",
8196     "group": "Cm_Lists",
8197     "parameter": {
8198       "fields": {
8199         "Body": [
8200           {
8201             "group": "Body",
8202             "type": "String",
8203             "optional": false,
8204             "field": "name",
8205             "description": ""
8206           },
8207           {
8208             "group": "Body",
8209             "type": "String",
8210             "allowedValues": [
8211               "\"first\"",
8212               "\"second\"",
8213               "\"third\""
8214             ],
8215             "optional": false,
8216             "field": "level",
8217             "description": ""
8218           },
8219           {
8220             "group": "Body",
8221             "type": "String",
8222             "optional": true,
8223             "field": "description",
8224             "description": ""
8225           }
8226         ]
8227       }
8228     },
8229     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8230     "version": "0.0.0",
8231     "filename": "server/api/cmList/index.js",
8232     "groupTitle": "Cm_Lists"
8233   },
8234   {
8235     "type": "get",
8236     "url": "/api/cm/lists/{id}/contacts",
8237     "title": "Gets List Contacts",
8238     "examples": [
8239       {
8240         "title": "Example usage:",
8241         "content": "curl https://{domain}/api/cm/lists/{id}/contacts -v -u {name}:{password} -X GET",
8242         "type": "json"
8243       }
8244     ],
8245     "name": "getContacts",
8246     "group": "Cm_Lists",
8247     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8248     "version": "0.0.0",
8249     "filename": "server/api/cmList/index.js",
8250     "groupTitle": "Cm_Lists"
8251   },
8252   {
8253     "type": "get",
8254     "url": "/api/cm/lists/{id}/fields",
8255     "title": "Gets Custom Fields",
8256     "examples": [
8257       {
8258         "title": "Example usage:",
8259         "content": "curl https://{domain}/api/cm/lists/{id}/fields -v -u {name}:{password} -X GET",
8260         "type": "json"
8261       }
8262     ],
8263     "name": "getCustomFields",
8264     "group": "Cm_Lists",
8265     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8266     "version": "0.0.0",
8267     "filename": "server/api/cmList/index.js",
8268     "groupTitle": "Cm_Lists"
8269   },
8270   {
8271     "type": "get",
8272     "url": "/api/cm/lists/{id}/dispositions",
8273     "title": "Gets list dispositions",
8274     "examples": [
8275       {
8276         "title": "Example usage:",
8277         "content": "curl https://{domain}/api/cm/lists/{id}/dispositions -v -u {name}:{password} -X GET",
8278         "type": "json"
8279       }
8280     ],
8281     "name": "getDispositions",
8282     "group": "Cm_Lists",
8283     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8284     "version": "0.0.0",
8285     "filename": "server/api/cmList/index.js",
8286     "groupTitle": "Cm_Lists"
8287   },
8288   {
8289     "type": "get",
8290     "url": "/api/cm/lists/global_fields",
8291     "title": "Gets GLOBAL Custom Fields",
8292     "examples": [
8293       {
8294         "title": "Example usage:",
8295         "content": "curl https://{domain}/api/cm/lists/global_fields -v -u {name}:{password} -X GET",
8296         "type": "json"
8297       }
8298     ],
8299     "name": "getGlobalCustomFields",
8300     "group": "Cm_Lists",
8301     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8302     "version": "0.0.0",
8303     "filename": "server/api/cmList/index.js",
8304     "groupTitle": "Cm_Lists"
8305   },
8306   {
8307     "type": "get",
8308     "url": "/api/cm/lists/{id}/contacts/csv",
8309     "title": "Gets CSV List Contacts",
8310     "examples": [
8311       {
8312         "title": "Example usage:",
8313         "content": "curl https://{domain}/api/cm/lists/{id}/contacts/csv -v -u {name}:{password} -X GET",
8314         "type": "json"
8315       }
8316     ],
8317     "name": "grunt",
8318     "group": "Cm_Lists",
8319     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8320     "version": "0.0.0",
8321     "filename": "server/api/cmList/index.js",
8322     "groupTitle": "Cm_Lists"
8323   },
8324   {
8325     "type": "put",
8326     "url": "/api/cm/lists/{id}",
8327     "title": "Update an existing List",
8328     "examples": [
8329       {
8330         "title": "Example usage:",
8331         "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",
8332         "type": "json"
8333       }
8334     ],
8335     "name": "updateLists",
8336     "group": "Cm_Lists",
8337     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8338     "version": "0.0.0",
8339     "filename": "server/api/cmList/index.js",
8340     "groupTitle": "Cm_Lists"
8341   },
8342   {
8343     "type": "post",
8344     "url": "/api/cm/contacts/upload/:id",
8345     "title": "Import new contacts by csv",
8346     "examples": [
8347       {
8348         "title": "Example usage:",
8349         "content": "curl https://{domain}/api/cm/contacts/upload/:id -v -u {name}:{password} -X POST",
8350         "type": "json"
8351       }
8352     ],
8353     "name": "import",
8354     "group": "Cm_contacts",
8355     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8356     "version": "0.0.0",
8357     "filename": "server/api/cmContact/index.js",
8358     "groupTitle": "Cm_contacts"
8359   },
8360   {
8361     "type": "post",
8362     "url": "/api/cm/contacts/uploadUpdates/:id",
8363     "title": "Import existing contacts by csv",
8364     "examples": [
8365       {
8366         "title": "Example usage:",
8367         "content": "curl https://{domain}/api/cm/contacts/uploadUpdates/:id -v -u {name}:{password} -X POST",
8368         "type": "json"
8369       }
8370     ],
8371     "name": "importUpdates",
8372     "group": "Cm_contacts",
8373     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8374     "version": "0.0.0",
8375     "filename": "server/api/cmContact/index.js",
8376     "groupTitle": "Cm_contacts"
8377   },
8378   {
8379     "type": "post",
8380     "url": "/api/cm/contacts/upload",
8381     "title": "Upload csv",
8382     "examples": [
8383       {
8384         "title": "Example usage:",
8385         "content": "curl https://{domain}/api/cm/contacts/upload -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
8386         "type": "json"
8387       }
8388     ],
8389     "name": "upload",
8390     "group": "Cm_contacts",
8391     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8392     "version": "0.0.0",
8393     "filename": "server/api/cmContact/index.js",
8394     "groupTitle": "Cm_contacts"
8395   },
8396   {
8397     "type": "post",
8398     "url": "/api/cm/contacts/csv",
8399     "title": "Create new contacts by csv",
8400     "examples": [
8401       {
8402         "title": "Example usage:",
8403         "content": "curl https://{domain}/api/cm/contacts/csv -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
8404         "type": "json"
8405       }
8406     ],
8407     "name": "uploadCsv",
8408     "group": "Cm_contacts",
8409     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8410     "version": "0.0.0",
8411     "filename": "server/api/cmContact/index.js",
8412     "groupTitle": "Cm_contacts"
8413   },
8414   {
8415     "type": "delete",
8416     "url": "/api/conditions/{id}",
8417     "title": "Deletes a Condition",
8418     "examples": [
8419       {
8420         "title": "Example usage:",
8421         "content": "curl https://{domain}/api/conditions/{id} -v -u {name}:{password} -X DELETE",
8422         "type": "json"
8423       }
8424     ],
8425     "name": "DeleteConditions",
8426     "group": "Conditions",
8427     "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>",
8428     "version": "0.0.0",
8429     "filename": "server/api/condition/index.js",
8430     "groupTitle": "Conditions"
8431   },
8432   {
8433     "type": "put",
8434     "url": "/api/conditions/{id}",
8435     "title": "Update an existing Condition",
8436     "examples": [
8437       {
8438         "title": "Example usage:",
8439         "content": "curl https://{domain}/api/conditions/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
8440         "type": "json"
8441       }
8442     ],
8443     "name": "updateConditions",
8444     "group": "Conditions",
8445     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8446     "version": "0.0.0",
8447     "filename": "server/api/condition/index.js",
8448     "groupTitle": "Conditions"
8449   },
8450   {
8451     "type": "post",
8452     "url": "/api/contact_item_types",
8453     "title": "Creates a new ContactItemType",
8454     "examples": [
8455       {
8456         "title": "Example usage:",
8457         "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",
8458         "type": "json"
8459       }
8460     ],
8461     "name": "CreateContactItemTypes",
8462     "group": "ContactItemType",
8463     "parameter": {
8464       "fields": {
8465         "Body": [
8466           {
8467             "group": "Body",
8468             "type": "String",
8469             "optional": false,
8470             "field": "name",
8471             "description": ""
8472           },
8473           {
8474             "group": "Body",
8475             "type": "Integer",
8476             "optional": true,
8477             "field": "OrderBy",
8478             "description": ""
8479           },
8480           {
8481             "group": "Body",
8482             "type": "String",
8483             "optional": true,
8484             "field": "rgbBackgroundColor",
8485             "description": ""
8486           }
8487         ]
8488       }
8489     },
8490     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8491     "version": "0.0.0",
8492     "filename": "server/api/contactItemType/index.js",
8493     "groupTitle": "ContactItemType"
8494   },
8495   {
8496     "type": "delete",
8497     "url": "/api/contact_item_types/{id}",
8498     "title": "Deletes a ContactItemType",
8499     "examples": [
8500       {
8501         "title": "Example usage:",
8502         "content": "curl https://{domain}/api/contact_item_types/{id} -v -u {name}:{password} -X DELETE",
8503         "type": "json"
8504       }
8505     ],
8506     "name": "DeleteContactItemTypes",
8507     "group": "ContactItemType",
8508     "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>",
8509     "version": "0.0.0",
8510     "filename": "server/api/contactItemType/index.js",
8511     "groupTitle": "ContactItemType"
8512   },
8513   {
8514     "type": "get",
8515     "url": "/api/contact_item_types",
8516     "title": "Gets a list of ContactItemTypes",
8517     "examples": [
8518       {
8519         "title": "Example usage:",
8520         "content": "curl https://{domain}/api/contact_item_types -v -u {name}:{password}",
8521         "type": "json"
8522       }
8523     ],
8524     "name": "GetContactItemTypes",
8525     "group": "ContactItemType",
8526     "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>",
8527     "version": "0.0.0",
8528     "filename": "server/api/contactItemType/index.js",
8529     "groupTitle": "ContactItemType"
8530   },
8531   {
8532     "type": "get",
8533     "url": "/api/contact_item_types/{id}",
8534     "title": "Gets a single ContactItemType",
8535     "examples": [
8536       {
8537         "title": "Example usage:",
8538         "content": "curl https://{domain}/api/contact_item_types/{id} -v -u {name}:{password}",
8539         "type": "json"
8540       }
8541     ],
8542     "name": "ShowContactItemTypes",
8543     "group": "ContactItemType",
8544     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8545     "version": "0.0.0",
8546     "filename": "server/api/contactItemType/index.js",
8547     "groupTitle": "ContactItemType"
8548   },
8549   {
8550     "type": "put",
8551     "url": "/api/contact_item_types/{id}",
8552     "title": "Update an existing ContactItemType",
8553     "examples": [
8554       {
8555         "title": "Example usage:",
8556         "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",
8557         "type": "json"
8558       }
8559     ],
8560     "name": "updateContactItemTypes",
8561     "group": "ContactItemType",
8562     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8563     "version": "0.0.0",
8564     "filename": "server/api/contactItemType/index.js",
8565     "groupTitle": "ContactItemType"
8566   },
8567   {
8568     "type": "post",
8569     "url": "/api/cm/custom_field",
8570     "title": "Create a new custom field",
8571     "examples": [
8572       {
8573         "title": "Example usage:",
8574         "content": "curl https://{domain}/api/cm/custom_field  -d '{\"name\": \"mycf\", \"type\": \"text\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
8575         "type": "json"
8576       }
8577     ],
8578     "name": "CreateCustomField",
8579     "group": "Custom_Fields",
8580     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8581     "version": "0.0.0",
8582     "filename": "server/api/cmCustomField/index.js",
8583     "groupTitle": "Custom_Fields"
8584   },
8585   {
8586     "type": "post",
8587     "url": "/api/dashboards/items",
8588     "title": "Create dasboard item",
8589     "examples": [
8590       {
8591         "title": "Example usage:",
8592         "content": "curl https://{domain}/api/dashboards/items \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
8593         "type": "json"
8594       }
8595     ],
8596     "name": "Create",
8597     "group": "Dashboard_Items",
8598     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8599     "version": "0.0.0",
8600     "filename": "server/api/dashboardItem/index.js",
8601     "groupTitle": "Dashboard_Items"
8602   },
8603   {
8604     "type": "delete",
8605     "url": "/api/dashboards/items/{id}",
8606     "title": "Deletes a Dashboard Item",
8607     "examples": [
8608       {
8609         "title": "Example usage:",
8610         "content": "curl https://{domain}/api/dashboards/items/{id} -v -u {name}:{password} -X DELETE",
8611         "type": "json"
8612       }
8613     ],
8614     "name": "DeleteDashboard_Items",
8615     "group": "Dashboard_Items",
8616     "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>",
8617     "version": "0.0.0",
8618     "filename": "server/api/dashboardItem/index.js",
8619     "groupTitle": "Dashboard_Items"
8620   },
8621   {
8622     "type": "get",
8623     "url": "/api/dashboards/items/{id}",
8624     "title": "Gets a single Dashboard Item",
8625     "examples": [
8626       {
8627         "title": "Example usage:",
8628         "content": "curl https://{domain}/api/dashboards/items/{id} -v -u {name}:{password}",
8629         "type": "json"
8630       }
8631     ],
8632     "name": "ShowDashboard_Items",
8633     "group": "Dashboard_Items",
8634     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8635     "version": "0.0.0",
8636     "filename": "server/api/dashboardItem/index.js",
8637     "groupTitle": "Dashboard_Items"
8638   },
8639   {
8640     "type": "put",
8641     "url": "/api/dashboards/items/{id}",
8642     "title": "Update an existing item",
8643     "examples": [
8644       {
8645         "title": "Example usage:",
8646         "content": "curl https://{domain}/api/dashboards/items/{id} -v -u {name}:{password} -X PUT",
8647         "type": "json"
8648       }
8649     ],
8650     "name": "Update",
8651     "group": "Dashboard_Items",
8652     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8653     "version": "0.0.0",
8654     "filename": "server/api/dashboardItem/index.js",
8655     "groupTitle": "Dashboard_Items"
8656   },
8657   {
8658     "type": "post",
8659     "url": "/api/dashboards/clone",
8660     "title": "Clone an existing Dashboard",
8661     "examples": [
8662       {
8663         "title": "Example usage:",
8664         "content": "curl https://{domain}/api/dashboards/clone -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
8665         "type": "json"
8666       }
8667     ],
8668     "name": "CloneDashboards",
8669     "group": "Dashboards",
8670     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8671     "version": "0.0.0",
8672     "filename": "server/api/dashboard/index.js",
8673     "groupTitle": "Dashboards"
8674   },
8675   {
8676     "type": "post",
8677     "url": "/api/dashboards",
8678     "title": "Creates a new Dashboard",
8679     "examples": [
8680       {
8681         "title": "Example usage:",
8682         "content": "curl https://{domain}/api/dashboards -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
8683         "type": "json"
8684       }
8685     ],
8686     "name": "CreateDashboards",
8687     "group": "Dashboards",
8688     "parameter": {
8689       "fields": {
8690         "Body": [
8691           {
8692             "group": "Body",
8693             "type": "String",
8694             "optional": false,
8695             "field": "name",
8696             "description": ""
8697           },
8698           {
8699             "group": "Body",
8700             "type": "String",
8701             "optional": true,
8702             "field": "description",
8703             "description": ""
8704           }
8705         ]
8706       }
8707     },
8708     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8709     "version": "0.0.0",
8710     "filename": "server/api/dashboard/index.js",
8711     "groupTitle": "Dashboards"
8712   },
8713   {
8714     "type": "delete",
8715     "url": "/api/dashboards/{id}",
8716     "title": "Deletes a Dashboard",
8717     "examples": [
8718       {
8719         "title": "Example usage:",
8720         "content": "curl https://{domain}/api/dashboards/{id} -v -u {name}:{password} -X DELETE",
8721         "type": "json"
8722       }
8723     ],
8724     "name": "DeleteDashboards",
8725     "group": "Dashboards",
8726     "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>",
8727     "version": "0.0.0",
8728     "filename": "server/api/dashboard/index.js",
8729     "groupTitle": "Dashboards"
8730   },
8731   {
8732     "type": "get",
8733     "url": "/api/dashboards",
8734     "title": "Gets a list of Dashboards",
8735     "examples": [
8736       {
8737         "title": "Example usage:",
8738         "content": "curl https://{domain}/api/dashboards -v -u {name}:{password}",
8739         "type": "json"
8740       }
8741     ],
8742     "name": "GetDashboards",
8743     "group": "Dashboards",
8744     "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>",
8745     "version": "0.0.0",
8746     "filename": "server/api/dashboard/index.js",
8747     "groupTitle": "Dashboards"
8748   },
8749   {
8750     "type": "get",
8751     "url": "/api/dashboards/{id}",
8752     "title": "Gets a single Dashboard",
8753     "examples": [
8754       {
8755         "title": "Example usage:",
8756         "content": "curl https://{domain}/api/dashboards/{id} -v -u {name}:{password}",
8757         "type": "json"
8758       }
8759     ],
8760     "name": "ShowDashboards",
8761     "group": "Dashboards",
8762     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8763     "version": "0.0.0",
8764     "filename": "server/api/dashboard/index.js",
8765     "groupTitle": "Dashboards"
8766   },
8767   {
8768     "type": "post",
8769     "url": "/api/dashboards/{id}/items",
8770     "title": "Creates new item",
8771     "examples": [
8772       {
8773         "title": "Example usage:",
8774         "content": "curl https://{domain}/api/dashboards/{id}/items -d '{\"type\": \"counter\", \"...\": \"...\"}]' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
8775         "type": "json"
8776       }
8777     ],
8778     "name": "addItem",
8779     "group": "Dashboards",
8780     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8781     "version": "0.0.0",
8782     "filename": "server/api/dashboard/index.js",
8783     "groupTitle": "Dashboards"
8784   },
8785   {
8786     "type": "get",
8787     "url": "/api/dashboards/{id}/items",
8788     "title": "Gets items",
8789     "examples": [
8790       {
8791         "title": "Example usage:",
8792         "content": "curl https://{domain}/api/dashboards/{id}/items -v -u {name}:{password} -X GET",
8793         "type": "json"
8794       }
8795     ],
8796     "name": "getItems",
8797     "group": "Dashboards",
8798     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8799     "version": "0.0.0",
8800     "filename": "server/api/dashboard/index.js",
8801     "groupTitle": "Dashboards"
8802   },
8803   {
8804     "type": "put",
8805     "url": "/api/dashboards/{id}",
8806     "title": "Update an existing Dashboard",
8807     "examples": [
8808       {
8809         "title": "Example usage:",
8810         "content": "curl https://{domain}/api/dashboards/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
8811         "type": "json"
8812       }
8813     ],
8814     "name": "updateDashboards",
8815     "group": "Dashboards",
8816     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8817     "version": "0.0.0",
8818     "filename": "server/api/dashboard/index.js",
8819     "groupTitle": "Dashboards"
8820   },
8821   {
8822     "type": "post",
8823     "url": "/api/integrations/desk/accounts",
8824     "title": "Creates a new Desk Account",
8825     "examples": [
8826       {
8827         "title": "Example usage:",
8828         "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",
8829         "type": "json"
8830       }
8831     ],
8832     "name": "CreateDesk_Accounts",
8833     "group": "Desk_Accounts",
8834     "parameter": {
8835       "fields": {
8836         "Body": [
8837           {
8838             "group": "Body",
8839             "type": "String",
8840             "optional": true,
8841             "field": "name",
8842             "description": ""
8843           },
8844           {
8845             "group": "Body",
8846             "type": "String",
8847             "optional": true,
8848             "field": "description",
8849             "description": ""
8850           },
8851           {
8852             "group": "Body",
8853             "type": "String",
8854             "optional": true,
8855             "field": "username",
8856             "description": ""
8857           },
8858           {
8859             "group": "Body",
8860             "type": "String",
8861             "optional": true,
8862             "field": "remoteUri",
8863             "description": ""
8864           },
8865           {
8866             "group": "Body",
8867             "type": "String",
8868             "allowedValues": [
8869               "\"basic\""
8870             ],
8871             "optional": true,
8872             "field": "authType",
8873             "description": ""
8874           },
8875           {
8876             "group": "Body",
8877             "type": "String",
8878             "optional": true,
8879             "field": "password",
8880             "description": ""
8881           },
8882           {
8883             "group": "Body",
8884             "type": "String",
8885             "optional": true,
8886             "field": "consumerKey",
8887             "description": ""
8888           },
8889           {
8890             "group": "Body",
8891             "type": "String",
8892             "optional": true,
8893             "field": "consumerSecret",
8894             "description": ""
8895           },
8896           {
8897             "group": "Body",
8898             "type": "String",
8899             "optional": true,
8900             "field": "token",
8901             "description": ""
8902           },
8903           {
8904             "group": "Body",
8905             "type": "String",
8906             "optional": true,
8907             "field": "tokenSecret",
8908             "description": ""
8909           },
8910           {
8911             "group": "Body",
8912             "type": "String",
8913             "optional": false,
8914             "field": "serverUrl",
8915             "description": ""
8916           },
8917           {
8918             "group": "Body",
8919             "type": "String",
8920             "allowedValues": [
8921               "\"integrationTab\"",
8922               "\"newTab\""
8923             ],
8924             "optional": true,
8925             "field": "type",
8926             "description": ""
8927           }
8928         ]
8929       }
8930     },
8931     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8932     "version": "0.0.0",
8933     "filename": "server/api/intDeskAccount/index.js",
8934     "groupTitle": "Desk_Accounts"
8935   },
8936   {
8937     "type": "delete",
8938     "url": "/api/integrations/desk/accounts/{id}",
8939     "title": "Deletes a Desk Account",
8940     "examples": [
8941       {
8942         "title": "Example usage:",
8943         "content": "curl https://{domain}/api/integrations/desk/accounts/{id} -v -u {name}:{password} -X DELETE",
8944         "type": "json"
8945       }
8946     ],
8947     "name": "DeleteDesk_Accounts",
8948     "group": "Desk_Accounts",
8949     "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>",
8950     "version": "0.0.0",
8951     "filename": "server/api/intDeskAccount/index.js",
8952     "groupTitle": "Desk_Accounts"
8953   },
8954   {
8955     "type": "get",
8956     "url": "/api/integrations/desk/accounts",
8957     "title": "Gets a list of Desk Accounts",
8958     "examples": [
8959       {
8960         "title": "Example usage:",
8961         "content": "curl https://{domain}/api/integrations/desk/accounts -v -u {name}:{password}",
8962         "type": "json"
8963       }
8964     ],
8965     "name": "GetDesk_Accounts",
8966     "group": "Desk_Accounts",
8967     "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>",
8968     "version": "0.0.0",
8969     "filename": "server/api/intDeskAccount/index.js",
8970     "groupTitle": "Desk_Accounts"
8971   },
8972   {
8973     "type": "get",
8974     "url": "/api/integrations/desk/accounts/{id}",
8975     "title": "Gets a single Desk Account",
8976     "examples": [
8977       {
8978         "title": "Example usage:",
8979         "content": "curl https://{domain}/api/integrations/desk/accounts/{id} -v -u {name}:{password}",
8980         "type": "json"
8981       }
8982     ],
8983     "name": "ShowDesk_Accounts",
8984     "group": "Desk_Accounts",
8985     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8986     "version": "0.0.0",
8987     "filename": "server/api/intDeskAccount/index.js",
8988     "groupTitle": "Desk_Accounts"
8989   },
8990   {
8991     "type": "post",
8992     "url": "/api/integrations/desk/accounts/{id}/configurations",
8993     "title": "Creates new configuration",
8994     "examples": [
8995       {
8996         "title": "Example usage:",
8997         "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",
8998         "type": "json"
8999       }
9000     ],
9001     "name": "addConfiguration",
9002     "group": "Desk_Accounts",
9003     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9004     "version": "0.0.0",
9005     "filename": "server/api/intDeskAccount/index.js",
9006     "groupTitle": "Desk_Accounts"
9007   },
9008   {
9009     "type": "get",
9010     "url": "/api/integrations/desk/accounts/{id}/configurations",
9011     "title": "Gets account configurations",
9012     "examples": [
9013       {
9014         "title": "Example usage:",
9015         "content": "curl https://{domain}/api/integrations/desk/accounts/{id}/configurations -v -u {name}:{password} -X GET",
9016         "type": "json"
9017       }
9018     ],
9019     "name": "getConfigurations",
9020     "group": "Desk_Accounts",
9021     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9022     "version": "0.0.0",
9023     "filename": "server/api/intDeskAccount/index.js",
9024     "groupTitle": "Desk_Accounts"
9025   },
9026   {
9027     "type": "get",
9028     "url": "/api/integrations/desk/accounts/{id}/fields",
9029     "title": "Gets account fields",
9030     "examples": [
9031       {
9032         "title": "Example usage:",
9033         "content": "curl https://{domain}/api/integrations/desk/accounts/{id}/fields -v -u {name}:{password} -X GET",
9034         "type": "json"
9035       }
9036     ],
9037     "name": "getFields",
9038     "group": "Desk_Accounts",
9039     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9040     "version": "0.0.0",
9041     "filename": "server/api/intDeskAccount/index.js",
9042     "groupTitle": "Desk_Accounts"
9043   },
9044   {
9045     "type": "put",
9046     "url": "/api/integrations/desk/accounts/{id}",
9047     "title": "Update an existing Desk Account",
9048     "examples": [
9049       {
9050         "title": "Example usage:",
9051         "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",
9052         "type": "json"
9053       }
9054     ],
9055     "name": "updateDesk_Accounts",
9056     "group": "Desk_Accounts",
9057     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9058     "version": "0.0.0",
9059     "filename": "server/api/intDeskAccount/index.js",
9060     "groupTitle": "Desk_Accounts"
9061   },
9062   {
9063     "type": "post",
9064     "url": "/api/integrations/desk/configurations",
9065     "title": "Creates a new Desk Configuration",
9066     "examples": [
9067       {
9068         "title": "Example usage:",
9069         "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",
9070         "type": "json"
9071       }
9072     ],
9073     "name": "CreateDesk_Configurations",
9074     "group": "Desk_Configurations",
9075     "parameter": {
9076       "fields": {
9077         "Body": [
9078           {
9079             "group": "Body",
9080             "type": "String",
9081             "optional": true,
9082             "field": "name",
9083             "description": ""
9084           },
9085           {
9086             "group": "Body",
9087             "type": "String",
9088             "optional": true,
9089             "field": "description",
9090             "description": ""
9091           }
9092         ]
9093       }
9094     },
9095     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9096     "version": "0.0.0",
9097     "filename": "server/api/intDeskConfiguration/index.js",
9098     "groupTitle": "Desk_Configurations"
9099   },
9100   {
9101     "type": "delete",
9102     "url": "/api/integrations/desk/configurations/{id}",
9103     "title": "Deletes a Desk Configuration",
9104     "examples": [
9105       {
9106         "title": "Example usage:",
9107         "content": "curl https://{domain}/api/integrations/desk/configurations/{id} -v -u {name}:{password} -X DELETE",
9108         "type": "json"
9109       }
9110     ],
9111     "name": "DeleteDesk_Configurations",
9112     "group": "Desk_Configurations",
9113     "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>",
9114     "version": "0.0.0",
9115     "filename": "server/api/intDeskConfiguration/index.js",
9116     "groupTitle": "Desk_Configurations"
9117   },
9118   {
9119     "type": "get",
9120     "url": "/api/integrations/desk/configurations",
9121     "title": "Gets a list of Desk Configurations",
9122     "examples": [
9123       {
9124         "title": "Example usage:",
9125         "content": "curl https://{domain}/api/integrations/desk/configurations -v -u {name}:{password}",
9126         "type": "json"
9127       }
9128     ],
9129     "name": "GetDesk_Configurations",
9130     "group": "Desk_Configurations",
9131     "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>",
9132     "version": "0.0.0",
9133     "filename": "server/api/intDeskConfiguration/index.js",
9134     "groupTitle": "Desk_Configurations"
9135   },
9136   {
9137     "type": "get",
9138     "url": "/api/integrations/desk/configurations/{id}",
9139     "title": "Gets a single Desk Configuration",
9140     "examples": [
9141       {
9142         "title": "Example usage:",
9143         "content": "curl https://{domain}/api/integrations/desk/configurations/{id} -v -u {name}:{password}",
9144         "type": "json"
9145       }
9146     ],
9147     "name": "ShowDesk_Configurations",
9148     "group": "Desk_Configurations",
9149     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9150     "version": "0.0.0",
9151     "filename": "server/api/intDeskConfiguration/index.js",
9152     "groupTitle": "Desk_Configurations"
9153   },
9154   {
9155     "type": "get",
9156     "url": "/api/integrations/desk/configurations/{id}/descriptions",
9157     "title": "Gets configurations descriptions",
9158     "examples": [
9159       {
9160         "title": "Example usage:",
9161         "content": "curl https://{domain}/api/integrations/desk/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
9162         "type": "json"
9163       }
9164     ],
9165     "name": "getDescriptions",
9166     "group": "Desk_Configurations",
9167     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9168     "version": "0.0.0",
9169     "filename": "server/api/intDeskConfiguration/index.js",
9170     "groupTitle": "Desk_Configurations"
9171   },
9172   {
9173     "type": "get",
9174     "url": "/api/integrations/desk/configurations/{id}/fields",
9175     "title": "Gets configurations fields",
9176     "examples": [
9177       {
9178         "title": "Example usage:",
9179         "content": "curl https://{domain}/api/integrations/desk/configurations/{id}/fields -v -u {name}:{password} -X GET",
9180         "type": "json"
9181       }
9182     ],
9183     "name": "getFields",
9184     "group": "Desk_Configurations",
9185     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9186     "version": "0.0.0",
9187     "filename": "server/api/intDeskConfiguration/index.js",
9188     "groupTitle": "Desk_Configurations"
9189   },
9190   {
9191     "type": "get",
9192     "url": "/api/integrations/desk/configurations/{id}/subjects",
9193     "title": "Gets configurations subjects",
9194     "examples": [
9195       {
9196         "title": "Example usage:",
9197         "content": "curl https://{domain}/api/integrations/desk/configurations/{id}/subjects -v -u {name}:{password} -X GET",
9198         "type": "json"
9199       }
9200     ],
9201     "name": "getSubjects",
9202     "group": "Desk_Configurations",
9203     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9204     "version": "0.0.0",
9205     "filename": "server/api/intDeskConfiguration/index.js",
9206     "groupTitle": "Desk_Configurations"
9207   },
9208   {
9209     "type": "get",
9210     "url": "/api/integrations/desk/configurations/{id}/tags",
9211     "title": "Gets configurations tags",
9212     "examples": [
9213       {
9214         "title": "Example usage:",
9215         "content": "curl https://{domain}/api/integrations/desk/configurations/{id}/tags -v -u {name}:{password} -X GET",
9216         "type": "json"
9217       }
9218     ],
9219     "name": "getTags",
9220     "group": "Desk_Configurations",
9221     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9222     "version": "0.0.0",
9223     "filename": "server/api/intDeskConfiguration/index.js",
9224     "groupTitle": "Desk_Configurations"
9225   },
9226   {
9227     "type": "post",
9228     "url": "/api/integrations/desk/configurations/{id}/tags",
9229     "title": "Sets new tags",
9230     "examples": [
9231       {
9232         "title": "Example usage:",
9233         "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",
9234         "type": "json"
9235       }
9236     ],
9237     "name": "setTags",
9238     "group": "Desk_Configurations",
9239     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9240     "version": "0.0.0",
9241     "filename": "server/api/intDeskConfiguration/index.js",
9242     "groupTitle": "Desk_Configurations"
9243   },
9244   {
9245     "type": "put",
9246     "url": "/api/integrations/desk/configurations/{id}",
9247     "title": "Update an existing Desk Configuration",
9248     "examples": [
9249       {
9250         "title": "Example usage:",
9251         "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",
9252         "type": "json"
9253       }
9254     ],
9255     "name": "updateDesk_Configurations",
9256     "group": "Desk_Configurations",
9257     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9258     "version": "0.0.0",
9259     "filename": "server/api/intDeskConfiguration/index.js",
9260     "groupTitle": "Desk_Configurations"
9261   },
9262   {
9263     "type": "post",
9264     "url": "/api/integrations/desk/fields",
9265     "title": "Creates a new Desk Field",
9266     "examples": [
9267       {
9268         "title": "Example usage:",
9269         "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",
9270         "type": "json"
9271       }
9272     ],
9273     "name": "CreateDesk_Fields",
9274     "group": "Desk_Fields",
9275     "parameter": {
9276       "fields": {
9277         "Body": [
9278           {
9279             "group": "Body",
9280             "type": "String",
9281             "allowedValues": [
9282               "\"string\"",
9283               "\"variable\"",
9284               "\"customVariable\"",
9285               "\"keyValue\"",
9286               "\"picklist\""
9287             ],
9288             "optional": true,
9289             "field": "type",
9290             "description": ""
9291           },
9292           {
9293             "group": "Body",
9294             "type": "String",
9295             "optional": true,
9296             "field": "content",
9297             "description": ""
9298           },
9299           {
9300             "group": "Body",
9301             "type": "String",
9302             "optional": true,
9303             "field": "key",
9304             "description": ""
9305           },
9306           {
9307             "group": "Body",
9308             "type": "String",
9309             "allowedValues": [
9310               "\"string\"",
9311               "\"variable\"",
9312               "\"customVariable\""
9313             ],
9314             "optional": true,
9315             "field": "keyType",
9316             "description": ""
9317           },
9318           {
9319             "group": "Body",
9320             "type": "String",
9321             "optional": true,
9322             "field": "keyContent",
9323             "description": ""
9324           },
9325           {
9326             "group": "Body",
9327             "type": "String",
9328             "optional": true,
9329             "field": "idField",
9330             "description": ""
9331           },
9332           {
9333             "group": "Body",
9334             "type": "String",
9335             "optional": true,
9336             "field": "nameField",
9337             "description": ""
9338           },
9339           {
9340             "group": "Body",
9341             "type": "Boolean",
9342             "optional": true,
9343             "field": "customField",
9344             "description": ""
9345           },
9346           {
9347             "group": "Body",
9348             "type": "String",
9349             "optional": true,
9350             "field": "variableName",
9351             "description": ""
9352           }
9353         ]
9354       }
9355     },
9356     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9357     "version": "0.0.0",
9358     "filename": "server/api/intDeskField/index.js",
9359     "groupTitle": "Desk_Fields"
9360   },
9361   {
9362     "type": "delete",
9363     "url": "/api/integrations/desk/fields/{id}",
9364     "title": "Deletes a Desk Field",
9365     "examples": [
9366       {
9367         "title": "Example usage:",
9368         "content": "curl https://{domain}/api/integrations/desk/fields/{id} -v -u {name}:{password} -X DELETE",
9369         "type": "json"
9370       }
9371     ],
9372     "name": "DeleteDesk_Fields",
9373     "group": "Desk_Fields",
9374     "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>",
9375     "version": "0.0.0",
9376     "filename": "server/api/intDeskField/index.js",
9377     "groupTitle": "Desk_Fields"
9378   },
9379   {
9380     "type": "get",
9381     "url": "/api/integrations/desk/fields",
9382     "title": "Gets a list of Desk Fields",
9383     "examples": [
9384       {
9385         "title": "Example usage:",
9386         "content": "curl https://{domain}/api/integrations/desk/fields -v -u {name}:{password}",
9387         "type": "json"
9388       }
9389     ],
9390     "name": "GetDesk_Fields",
9391     "group": "Desk_Fields",
9392     "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>",
9393     "version": "0.0.0",
9394     "filename": "server/api/intDeskField/index.js",
9395     "groupTitle": "Desk_Fields"
9396   },
9397   {
9398     "type": "get",
9399     "url": "/api/integrations/desk/fields/{id}",
9400     "title": "Gets a single Desk Field",
9401     "examples": [
9402       {
9403         "title": "Example usage:",
9404         "content": "curl https://{domain}/api/integrations/desk/fields/{id} -v -u {name}:{password}",
9405         "type": "json"
9406       }
9407     ],
9408     "name": "ShowDesk_Fields",
9409     "group": "Desk_Fields",
9410     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9411     "version": "0.0.0",
9412     "filename": "server/api/intDeskField/index.js",
9413     "groupTitle": "Desk_Fields"
9414   },
9415   {
9416     "type": "put",
9417     "url": "/api/integrations/desk/fields/{id}",
9418     "title": "Update an existing Desk Field",
9419     "examples": [
9420       {
9421         "title": "Example usage:",
9422         "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",
9423         "type": "json"
9424       }
9425     ],
9426     "name": "updateDesk_Fields",
9427     "group": "Desk_Fields",
9428     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9429     "version": "0.0.0",
9430     "filename": "server/api/intDeskField/index.js",
9431     "groupTitle": "Desk_Fields"
9432   },
9433   {
9434     "type": "post",
9435     "url": "/api/dispositions",
9436     "title": "Creates a new Disposition",
9437     "examples": [
9438       {
9439         "title": "Example usage:",
9440         "content": "curl https://{domain}/api/dispositions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
9441         "type": "json"
9442       }
9443     ],
9444     "name": "CreateDispositions",
9445     "group": "Dispositions",
9446     "parameter": {
9447       "fields": {
9448         "Body": [
9449           {
9450             "group": "Body",
9451             "type": "String",
9452             "optional": false,
9453             "field": "name",
9454             "description": ""
9455           },
9456           {
9457             "group": "Body",
9458             "type": "String",
9459             "allowedValues": [
9460               "\"first\"",
9461               "\"second\"",
9462               "\"third\""
9463             ],
9464             "optional": false,
9465             "field": "level",
9466             "description": ""
9467           },
9468           {
9469             "group": "Body",
9470             "type": "String",
9471             "optional": true,
9472             "field": "description",
9473             "description": ""
9474           }
9475         ]
9476       }
9477     },
9478     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9479     "version": "0.0.0",
9480     "filename": "server/api/disposition/index.js",
9481     "groupTitle": "Dispositions"
9482   },
9483   {
9484     "type": "delete",
9485     "url": "/api/dispositions/{id}",
9486     "title": "Deletes a Disposition",
9487     "examples": [
9488       {
9489         "title": "Example usage:",
9490         "content": "curl https://{domain}/api/dispositions/{id} -v -u {name}:{password} -X DELETE",
9491         "type": "json"
9492       }
9493     ],
9494     "name": "DeleteDispositions",
9495     "group": "Dispositions",
9496     "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>",
9497     "version": "0.0.0",
9498     "filename": "server/api/disposition/index.js",
9499     "groupTitle": "Dispositions"
9500   },
9501   {
9502     "type": "get",
9503     "url": "/api/dispositions",
9504     "title": "Gets a list of Dispositions",
9505     "examples": [
9506       {
9507         "title": "Example usage:",
9508         "content": "curl https://{domain}/api/dispositions -v -u {name}:{password}",
9509         "type": "json"
9510       }
9511     ],
9512     "name": "GetDispositions",
9513     "group": "Dispositions",
9514     "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>",
9515     "version": "0.0.0",
9516     "filename": "server/api/disposition/index.js",
9517     "groupTitle": "Dispositions"
9518   },
9519   {
9520     "type": "get",
9521     "url": "/api/dispositions/{id}",
9522     "title": "Gets a single Disposition",
9523     "examples": [
9524       {
9525         "title": "Example usage:",
9526         "content": "curl https://{domain}/api/dispositions/{id} -v -u {name}:{password}",
9527         "type": "json"
9528       }
9529     ],
9530     "name": "ShowDispositions",
9531     "group": "Dispositions",
9532     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9533     "version": "0.0.0",
9534     "filename": "server/api/disposition/index.js",
9535     "groupTitle": "Dispositions"
9536   },
9537   {
9538     "type": "put",
9539     "url": "/api/dispositions/{id}",
9540     "title": "Update an existing Disposition",
9541     "examples": [
9542       {
9543         "title": "Example usage:",
9544         "content": "curl https://{domain}/api/dispositions/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
9545         "type": "json"
9546       }
9547     ],
9548     "name": "updateDispositions",
9549     "group": "Dispositions",
9550     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9551     "version": "0.0.0",
9552     "filename": "server/api/disposition/index.js",
9553     "groupTitle": "Dispositions"
9554   },
9555   {
9556     "type": "post",
9557     "url": "/api/integrations/dynamics365/accounts",
9558     "title": "Creates a new Dynamics365 Account",
9559     "examples": [
9560       {
9561         "title": "Example usage:",
9562         "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",
9563         "type": "json"
9564       }
9565     ],
9566     "name": "CreateDynamics365_Accounts",
9567     "group": "Dynamics365_Accounts",
9568     "parameter": {
9569       "fields": {
9570         "Body": [
9571           {
9572             "group": "Body",
9573             "type": "String",
9574             "optional": true,
9575             "field": "name",
9576             "description": ""
9577           },
9578           {
9579             "group": "Body",
9580             "type": "String",
9581             "optional": true,
9582             "field": "username",
9583             "description": ""
9584           },
9585           {
9586             "group": "Body",
9587             "type": "String",
9588             "optional": true,
9589             "field": "password",
9590             "description": ""
9591           },
9592           {
9593             "group": "Body",
9594             "type": "String",
9595             "optional": true,
9596             "field": "remoteUri",
9597             "description": ""
9598           },
9599           {
9600             "group": "Body",
9601             "type": "String",
9602             "optional": true,
9603             "field": "tenantId",
9604             "description": ""
9605           },
9606           {
9607             "group": "Body",
9608             "type": "String",
9609             "optional": true,
9610             "field": "clientId",
9611             "description": ""
9612           },
9613           {
9614             "group": "Body",
9615             "type": "String",
9616             "optional": true,
9617             "field": "clientSecret",
9618             "description": ""
9619           },
9620           {
9621             "group": "Body",
9622             "type": "String",
9623             "optional": false,
9624             "field": "serverUrl",
9625             "description": ""
9626           },
9627           {
9628             "group": "Body",
9629             "type": "String",
9630             "optional": true,
9631             "field": "description",
9632             "description": ""
9633           }
9634         ]
9635       }
9636     },
9637     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9638     "version": "0.0.0",
9639     "filename": "server/api/intDynamics365Account/index.js",
9640     "groupTitle": "Dynamics365_Accounts"
9641   },
9642   {
9643     "type": "delete",
9644     "url": "/api/integrations/dynamics365/accounts/{id}",
9645     "title": "Deletes a Dynamics365 Account",
9646     "examples": [
9647       {
9648         "title": "Example usage:",
9649         "content": "curl https://{domain}/api/integrations/dynamics365/accounts/{id} -v -u {name}:{password} -X DELETE",
9650         "type": "json"
9651       }
9652     ],
9653     "name": "DeleteDynamics365_Accounts",
9654     "group": "Dynamics365_Accounts",
9655     "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>",
9656     "version": "0.0.0",
9657     "filename": "server/api/intDynamics365Account/index.js",
9658     "groupTitle": "Dynamics365_Accounts"
9659   },
9660   {
9661     "type": "get",
9662     "url": "/api/integrations/dynamics365/accounts",
9663     "title": "Gets a list of Dynamics365 Accounts",
9664     "examples": [
9665       {
9666         "title": "Example usage:",
9667         "content": "curl https://{domain}/api/integrations/dynamics365/accounts -v -u {name}:{password}",
9668         "type": "json"
9669       }
9670     ],
9671     "name": "GetDynamics365_Accounts",
9672     "group": "Dynamics365_Accounts",
9673     "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>",
9674     "version": "0.0.0",
9675     "filename": "server/api/intDynamics365Account/index.js",
9676     "groupTitle": "Dynamics365_Accounts"
9677   },
9678   {
9679     "type": "get",
9680     "url": "/api/integrations/dynamics365/accounts/{id}",
9681     "title": "Gets a single Dynamics365 Account",
9682     "examples": [
9683       {
9684         "title": "Example usage:",
9685         "content": "curl https://{domain}/api/integrations/dynamics365/accounts/{id} -v -u {name}:{password}",
9686         "type": "json"
9687       }
9688     ],
9689     "name": "ShowDynamics365_Accounts",
9690     "group": "Dynamics365_Accounts",
9691     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9692     "version": "0.0.0",
9693     "filename": "server/api/intDynamics365Account/index.js",
9694     "groupTitle": "Dynamics365_Accounts"
9695   },
9696   {
9697     "type": "post",
9698     "url": "/api/integrations/dynamics365/accounts/{id}/configurations",
9699     "title": "Creates new configuration",
9700     "examples": [
9701       {
9702         "title": "Example usage:",
9703         "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",
9704         "type": "json"
9705       }
9706     ],
9707     "name": "addConfiguration",
9708     "group": "Dynamics365_Accounts",
9709     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9710     "version": "0.0.0",
9711     "filename": "server/api/intDynamics365Account/index.js",
9712     "groupTitle": "Dynamics365_Accounts"
9713   },
9714   {
9715     "type": "get",
9716     "url": "/api/integrations/dynamics365/accounts/{id}/configurations",
9717     "title": "Gets account configurations",
9718     "examples": [
9719       {
9720         "title": "Example usage:",
9721         "content": "curl https://{domain}/api/integrations/dynamics365/accounts/{id}/configurations -v -u {name}:{password} -X GET",
9722         "type": "json"
9723       }
9724     ],
9725     "name": "getConfigurations",
9726     "group": "Dynamics365_Accounts",
9727     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9728     "version": "0.0.0",
9729     "filename": "server/api/intDynamics365Account/index.js",
9730     "groupTitle": "Dynamics365_Accounts"
9731   },
9732   {
9733     "type": "get",
9734     "url": "/api/integrations/dynamics365/accounts/{id}/fields",
9735     "title": "Gets account fields",
9736     "examples": [
9737       {
9738         "title": "Example usage:",
9739         "content": "curl https://{domain}/api/integrations/dynamics365/accounts/{id}/fields -v -u {name}:{password} -X GET",
9740         "type": "json"
9741       }
9742     ],
9743     "name": "getFields",
9744     "group": "Dynamics365_Accounts",
9745     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9746     "version": "0.0.0",
9747     "filename": "server/api/intDynamics365Account/index.js",
9748     "groupTitle": "Dynamics365_Accounts"
9749   },
9750   {
9751     "type": "put",
9752     "url": "/api/integrations/dynamics365/accounts/{id}",
9753     "title": "Update an existing Dynamics365 Account",
9754     "examples": [
9755       {
9756         "title": "Example usage:",
9757         "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",
9758         "type": "json"
9759       }
9760     ],
9761     "name": "updateDynamics365_Accounts",
9762     "group": "Dynamics365_Accounts",
9763     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9764     "version": "0.0.0",
9765     "filename": "server/api/intDynamics365Account/index.js",
9766     "groupTitle": "Dynamics365_Accounts"
9767   },
9768   {
9769     "type": "post",
9770     "url": "/api/integrations/dynamics365/configurations",
9771     "title": "Creates a new Dynamics365 Configuration",
9772     "examples": [
9773       {
9774         "title": "Example usage:",
9775         "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",
9776         "type": "json"
9777       }
9778     ],
9779     "name": "CreateDynamics365_Configurations",
9780     "group": "Dynamics365_Configurations",
9781     "parameter": {
9782       "fields": {
9783         "Body": [
9784           {
9785             "group": "Body",
9786             "type": "String",
9787             "optional": true,
9788             "field": "name",
9789             "description": ""
9790           },
9791           {
9792             "group": "Body",
9793             "type": "String",
9794             "optional": true,
9795             "field": "description",
9796             "description": ""
9797           },
9798           {
9799             "group": "Body",
9800             "type": "String",
9801             "allowedValues": [
9802               "\"incident\"",
9803               "\"phonecall\""
9804             ],
9805             "optional": true,
9806             "field": "ticketType",
9807             "description": ""
9808           }
9809         ]
9810       }
9811     },
9812     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9813     "version": "0.0.0",
9814     "filename": "server/api/intDynamics365Configuration/index.js",
9815     "groupTitle": "Dynamics365_Configurations"
9816   },
9817   {
9818     "type": "delete",
9819     "url": "/api/integrations/dynamics365/configurations/{id}",
9820     "title": "Deletes a Dynamics365 Configuration",
9821     "examples": [
9822       {
9823         "title": "Example usage:",
9824         "content": "curl https://{domain}/api/integrations/dynamics365/configurations/{id} -v -u {name}:{password} -X DELETE",
9825         "type": "json"
9826       }
9827     ],
9828     "name": "DeleteDynamics365_Configurations",
9829     "group": "Dynamics365_Configurations",
9830     "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>",
9831     "version": "0.0.0",
9832     "filename": "server/api/intDynamics365Configuration/index.js",
9833     "groupTitle": "Dynamics365_Configurations"
9834   },
9835   {
9836     "type": "get",
9837     "url": "/api/integrations/dynamics365/configurations",
9838     "title": "Gets a list of Dynamics365 Configurations",
9839     "examples": [
9840       {
9841         "title": "Example usage:",
9842         "content": "curl https://{domain}/api/integrations/dynamics365/configurations -v -u {name}:{password}",
9843         "type": "json"
9844       }
9845     ],
9846     "name": "GetDynamics365_Configurations",
9847     "group": "Dynamics365_Configurations",
9848     "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>",
9849     "version": "0.0.0",
9850     "filename": "server/api/intDynamics365Configuration/index.js",
9851     "groupTitle": "Dynamics365_Configurations"
9852   },
9853   {
9854     "type": "get",
9855     "url": "/api/integrations/dynamics365/configurations/{id}",
9856     "title": "Gets a single Dynamics365 Configuration",
9857     "examples": [
9858       {
9859         "title": "Example usage:",
9860         "content": "curl https://{domain}/api/integrations/dynamics365/configurations/{id} -v -u {name}:{password}",
9861         "type": "json"
9862       }
9863     ],
9864     "name": "ShowDynamics365_Configurations",
9865     "group": "Dynamics365_Configurations",
9866     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9867     "version": "0.0.0",
9868     "filename": "server/api/intDynamics365Configuration/index.js",
9869     "groupTitle": "Dynamics365_Configurations"
9870   },
9871   {
9872     "type": "get",
9873     "url": "/api/integrations/dynamics365/configurations/{id}/descriptions",
9874     "title": "Gets configurations descriptions",
9875     "examples": [
9876       {
9877         "title": "Example usage:",
9878         "content": "curl https://{domain}/api/integrations/dynamics365/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
9879         "type": "json"
9880       }
9881     ],
9882     "name": "getDescriptions",
9883     "group": "Dynamics365_Configurations",
9884     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9885     "version": "0.0.0",
9886     "filename": "server/api/intDynamics365Configuration/index.js",
9887     "groupTitle": "Dynamics365_Configurations"
9888   },
9889   {
9890     "type": "get",
9891     "url": "/api/integrations/dynamics365/configurations/{id}/fields",
9892     "title": "Gets configurations fields",
9893     "examples": [
9894       {
9895         "title": "Example usage:",
9896         "content": "curl https://{domain}/api/integrations/zoho/configurations/{id}/fields -v -u {name}:{password} -X GET",
9897         "type": "json"
9898       }
9899     ],
9900     "name": "getFields",
9901     "group": "Dynamics365_Configurations",
9902     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9903     "version": "0.0.0",
9904     "filename": "server/api/intDynamics365Configuration/index.js",
9905     "groupTitle": "Dynamics365_Configurations"
9906   },
9907   {
9908     "type": "get",
9909     "url": "/api/integrations/zoho/configurations/{id}/subjects",
9910     "title": "Gets configurations subjects",
9911     "examples": [
9912       {
9913         "title": "Example usage:",
9914         "content": "curl https://{domain}/api/integrations/dynamics365/configurations/{id}/subjects -v -u {name}:{password} -X GET",
9915         "type": "json"
9916       }
9917     ],
9918     "name": "getSubjects",
9919     "group": "Dynamics365_Configurations",
9920     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9921     "version": "0.0.0",
9922     "filename": "server/api/intDynamics365Configuration/index.js",
9923     "groupTitle": "Dynamics365_Configurations"
9924   },
9925   {
9926     "type": "put",
9927     "url": "/api/integrations/dynamics365/configurations/{id}",
9928     "title": "Update an existing Dynamics365 Configuration",
9929     "examples": [
9930       {
9931         "title": "Example usage:",
9932         "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",
9933         "type": "json"
9934       }
9935     ],
9936     "name": "updateDynamics365_Configurations",
9937     "group": "Dynamics365_Configurations",
9938     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9939     "version": "0.0.0",
9940     "filename": "server/api/intDynamics365Configuration/index.js",
9941     "groupTitle": "Dynamics365_Configurations"
9942   },
9943   {
9944     "type": "post",
9945     "url": "/api/integrations/dynamics365/fields",
9946     "title": "Creates a new Dynamics365 Field",
9947     "examples": [
9948       {
9949         "title": "Example usage:",
9950         "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",
9951         "type": "json"
9952       }
9953     ],
9954     "name": "CreateDynamics365_Fields",
9955     "group": "Dynamics365_Fields",
9956     "parameter": {
9957       "fields": {
9958         "Body": [
9959           {
9960             "group": "Body",
9961             "type": "String",
9962             "allowedValues": [
9963               "\"string\"",
9964               "\"variable\"",
9965               "\"customVariable\"",
9966               "\"keyValue\"",
9967               "\"picklist\""
9968             ],
9969             "optional": true,
9970             "field": "type",
9971             "description": ""
9972           },
9973           {
9974             "group": "Body",
9975             "type": "String",
9976             "optional": true,
9977             "field": "content",
9978             "description": ""
9979           },
9980           {
9981             "group": "Body",
9982             "type": "String",
9983             "optional": true,
9984             "field": "key",
9985             "description": ""
9986           },
9987           {
9988             "group": "Body",
9989             "type": "String",
9990             "allowedValues": [
9991               "\"string\"",
9992               "\"variable\"",
9993               "\"customVariable\""
9994             ],
9995             "optional": true,
9996             "field": "keyType",
9997             "description": ""
9998           },
9999           {
10000             "group": "Body",
10001             "type": "String",
10002             "optional": true,
10003             "field": "keyContent",
10004             "description": ""
10005           },
10006           {
10007             "group": "Body",
10008             "type": "String",
10009             "optional": true,
10010             "field": "idField",
10011             "description": ""
10012           },
10013           {
10014             "group": "Body",
10015             "type": "String",
10016             "optional": true,
10017             "field": "nameField",
10018             "description": ""
10019           },
10020           {
10021             "group": "Body",
10022             "type": "Boolean",
10023             "optional": true,
10024             "field": "customField",
10025             "description": ""
10026           },
10027           {
10028             "group": "Body",
10029             "type": "String",
10030             "optional": true,
10031             "field": "variableName",
10032             "description": ""
10033           }
10034         ]
10035       }
10036     },
10037     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10038     "version": "0.0.0",
10039     "filename": "server/api/intDynamics365Field/index.js",
10040     "groupTitle": "Dynamics365_Fields"
10041   },
10042   {
10043     "type": "delete",
10044     "url": "/api/integrations/dynamics365/fields/{id}",
10045     "title": "Deletes a Dynamics365 Field",
10046     "examples": [
10047       {
10048         "title": "Example usage:",
10049         "content": "curl https://{domain}/api/integrations/dynamics365/fields/{id} -v -u {name}:{password} -X DELETE",
10050         "type": "json"
10051       }
10052     ],
10053     "name": "DeleteDynamics365_Fields",
10054     "group": "Dynamics365_Fields",
10055     "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>",
10056     "version": "0.0.0",
10057     "filename": "server/api/intDynamics365Field/index.js",
10058     "groupTitle": "Dynamics365_Fields"
10059   },
10060   {
10061     "type": "get",
10062     "url": "/api/integrations/dynamics365/fields",
10063     "title": "Gets a list of Dynamics365 Fields",
10064     "examples": [
10065       {
10066         "title": "Example usage:",
10067         "content": "curl https://{domain}/api/integrations/dynamics365/fields -v -u {name}:{password}",
10068         "type": "json"
10069       }
10070     ],
10071     "name": "GetDynamics365_Fields",
10072     "group": "Dynamics365_Fields",
10073     "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>",
10074     "version": "0.0.0",
10075     "filename": "server/api/intDynamics365Field/index.js",
10076     "groupTitle": "Dynamics365_Fields"
10077   },
10078   {
10079     "type": "get",
10080     "url": "/api/integrations/dynamics365/fields/{id}",
10081     "title": "Gets a single Dynamics365 Field",
10082     "examples": [
10083       {
10084         "title": "Example usage:",
10085         "content": "curl https://{domain}/api/integrations/dynamics365/fields/{id} -v -u {name}:{password}",
10086         "type": "json"
10087       }
10088     ],
10089     "name": "ShowDynamics365_Fields",
10090     "group": "Dynamics365_Fields",
10091     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10092     "version": "0.0.0",
10093     "filename": "server/api/intDynamics365Field/index.js",
10094     "groupTitle": "Dynamics365_Fields"
10095   },
10096   {
10097     "type": "put",
10098     "url": "/api/integrations/dynamics365/fields/{id}",
10099     "title": "Update an existing Dynamics365 Field",
10100     "examples": [
10101       {
10102         "title": "Example usage:",
10103         "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",
10104         "type": "json"
10105       }
10106     ],
10107     "name": "updateDynamics365_Fields",
10108     "group": "Dynamics365_Fields",
10109     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10110     "version": "0.0.0",
10111     "filename": "server/api/intDynamics365Field/index.js",
10112     "groupTitle": "Dynamics365_Fields"
10113   },
10114   {
10115     "type": "post",
10116     "url": "/api/fax/accounts/{id}/users",
10117     "title": "Add agents to a fax account",
10118     "examples": [
10119       {
10120         "title": "Example usage:",
10121         "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",
10122         "type": "json"
10123       }
10124     ],
10125     "name": "AddAgents",
10126     "group": "Fax_Accounts",
10127     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10128     "version": "0.0.0",
10129     "filename": "server/api/faxAccount/index.js",
10130     "groupTitle": "Fax_Accounts"
10131   },
10132   {
10133     "type": "post",
10134     "url": "/api/fax/accounts",
10135     "title": "Creates a new Account",
10136     "examples": [
10137       {
10138         "title": "Example usage:",
10139         "content": "curl https://{domain}/api/fax/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
10140         "type": "json"
10141       }
10142     ],
10143     "name": "CreateAccounts",
10144     "group": "Fax_Accounts",
10145     "parameter": {
10146       "fields": {
10147         "Body": [
10148           {
10149             "group": "Body",
10150             "type": "String",
10151             "optional": false,
10152             "field": "name",
10153             "description": ""
10154           },
10155           {
10156             "group": "Body",
10157             "type": "String",
10158             "optional": true,
10159             "field": "description",
10160             "description": ""
10161           },
10162           {
10163             "group": "Body",
10164             "type": "String",
10165             "allowedValues": [
10166               "\"yes\"",
10167               "\"no\""
10168             ],
10169             "optional": true,
10170             "field": "ecm",
10171             "description": ""
10172           },
10173           {
10174             "group": "Body",
10175             "type": "String",
10176             "optional": true,
10177             "field": "headerinfo",
10178             "description": ""
10179           },
10180           {
10181             "group": "Body",
10182             "type": "String",
10183             "optional": true,
10184             "field": "localstationid",
10185             "description": ""
10186           },
10187           {
10188             "group": "Body",
10189             "type": "String",
10190             "allowedValues": [
10191               "\"2400\"",
10192               "\"4800\"",
10193               "\"7200\"",
10194               "\"9600\"",
10195               "\"12000\"",
10196               "\"14400\""
10197             ],
10198             "optional": true,
10199             "field": "minrate",
10200             "description": ""
10201           },
10202           {
10203             "group": "Body",
10204             "type": "String",
10205             "allowedValues": [
10206               "\"2400\"",
10207               "\"4800\"",
10208               "\"7200\"",
10209               "\"9600\"",
10210               "\"12000\"",
10211               "\"14400\""
10212             ],
10213             "optional": true,
10214             "field": "maxrate",
10215             "description": ""
10216           },
10217           {
10218             "group": "Body",
10219             "type": "String",
10220             "optional": true,
10221             "field": "modem",
10222             "description": ""
10223           },
10224           {
10225             "group": "Body",
10226             "type": "String",
10227             "optional": true,
10228             "field": "gateway",
10229             "description": ""
10230           },
10231           {
10232             "group": "Body",
10233             "type": "String",
10234             "optional": true,
10235             "field": "faxdetect",
10236             "description": ""
10237           },
10238           {
10239             "group": "Body",
10240             "type": "Integer",
10241             "optional": true,
10242             "field": "t38timeout",
10243             "description": ""
10244           },
10245           {
10246             "group": "Body",
10247             "type": "String",
10248             "allowedValues": [
10249               "\"SIP\"",
10250               "\"IAX\"",
10251               "\"DADHI\"",
10252               "\"KHOMP\""
10253             ],
10254             "optional": true,
10255             "field": "tech",
10256             "description": ""
10257           },
10258           {
10259             "group": "Body",
10260             "type": "String",
10261             "optional": false,
10262             "field": "key",
10263             "description": ""
10264           },
10265           {
10266             "group": "Body",
10267             "type": "Text",
10268             "optional": true,
10269             "field": "notificationTemplate",
10270             "description": ""
10271           },
10272           {
10273             "group": "Body",
10274             "type": "Boolean",
10275             "optional": true,
10276             "field": "notificationSound",
10277             "description": ""
10278           },
10279           {
10280             "group": "Body",
10281             "type": "Boolean",
10282             "optional": true,
10283             "field": "notificationShake",
10284             "description": ""
10285           },
10286           {
10287             "group": "Body",
10288             "type": "Integer",
10289             "optional": true,
10290             "field": "waitForTheAssignedAgent",
10291             "description": ""
10292           },
10293           {
10294             "group": "Body",
10295             "type": "Boolean",
10296             "optional": true,
10297             "field": "queueTransfer",
10298             "description": ""
10299           },
10300           {
10301             "group": "Body",
10302             "type": "Integer",
10303             "optional": true,
10304             "field": "queueTransferTimeout",
10305             "description": ""
10306           },
10307           {
10308             "group": "Body",
10309             "type": "Boolean",
10310             "optional": true,
10311             "field": "agentTransfer",
10312             "description": ""
10313           },
10314           {
10315             "group": "Body",
10316             "type": "Integer",
10317             "optional": true,
10318             "field": "agentTransferTimeout",
10319             "description": ""
10320           },
10321           {
10322             "group": "Body",
10323             "type": "Integer",
10324             "optional": true,
10325             "field": "mandatoryDispositionPauseId",
10326             "description": "<p>Status to put when mandatory disposition is enabled</p>"
10327           },
10328           {
10329             "group": "Body",
10330             "type": "Boolean",
10331             "optional": true,
10332             "field": "mandatoryDisposition",
10333             "description": "<p>Enabled/disables mandatory dispo on a queue</p>"
10334           }
10335         ]
10336       }
10337     },
10338     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10339     "version": "0.0.0",
10340     "filename": "server/api/faxAccount/index.js",
10341     "groupTitle": "Fax_Accounts"
10342   },
10343   {
10344     "type": "delete",
10345     "url": "/api/fax/accounts/{id}",
10346     "title": "Deletes a Account",
10347     "examples": [
10348       {
10349         "title": "Example usage:",
10350         "content": "curl https://{domain}/api/fax/accounts/{id} -v -u {name}:{password} -X DELETE",
10351         "type": "json"
10352       }
10353     ],
10354     "name": "DeleteAccounts",
10355     "group": "Fax_Accounts",
10356     "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>",
10357     "version": "0.0.0",
10358     "filename": "server/api/faxAccount/index.js",
10359     "groupTitle": "Fax_Accounts"
10360   },
10361   {
10362     "type": "get",
10363     "url": "/api/fax/accounts/describe",
10364     "title": "Gets table info about Accounts",
10365     "examples": [
10366       {
10367         "title": "Example usage:",
10368         "content": "curl https://{domain}/api/fax/accounts/describe -v -u {name}:{password}",
10369         "type": "json"
10370       }
10371     ],
10372     "name": "DescribeAccounts",
10373     "group": "Fax_Accounts",
10374     "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>",
10375     "version": "0.0.0",
10376     "filename": "server/api/faxAccount/index.js",
10377     "groupTitle": "Fax_Accounts"
10378   },
10379   {
10380     "type": "get",
10381     "url": "/api/fax/accounts",
10382     "title": "Gets a list of Accounts",
10383     "examples": [
10384       {
10385         "title": "Example usage:",
10386         "content": "curl https://{domain}/api/fax/accounts -v -u {name}:{password}",
10387         "type": "json"
10388       }
10389     ],
10390     "name": "GetAccounts",
10391     "group": "Fax_Accounts",
10392     "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>",
10393     "version": "0.0.0",
10394     "filename": "server/api/faxAccount/index.js",
10395     "groupTitle": "Fax_Accounts"
10396   },
10397   {
10398     "type": "get",
10399     "url": "/api/fax/accounts/{id}/users",
10400     "title": "Gets agents from fax account",
10401     "examples": [
10402       {
10403         "title": "Example usage:",
10404         "content": "curl https://{domain}/api/fax/accounts/{id}/users -v -u {name}:{password} -X GET",
10405         "type": "json"
10406       }
10407     ],
10408     "name": "GetAgents",
10409     "group": "Fax_Accounts",
10410     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10411     "version": "0.0.0",
10412     "filename": "server/api/faxAccount/index.js",
10413     "groupTitle": "Fax_Accounts"
10414   },
10415   {
10416     "type": "delete",
10417     "url": "/api/fax/accounts/{id}/users",
10418     "title": "Removes agents from a fax account",
10419     "examples": [
10420       {
10421         "title": "Example usage:",
10422         "content": "curl https://{domain}/api/fax/accounts/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
10423         "type": "json"
10424       }
10425     ],
10426     "name": "RemoveAgents",
10427     "group": "Fax_Accounts",
10428     "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>",
10429     "version": "0.0.0",
10430     "filename": "server/api/faxAccount/index.js",
10431     "groupTitle": "Fax_Accounts"
10432   },
10433   {
10434     "type": "delete",
10435     "url": "/api/fax/accounts/{id}/canned_answers",
10436     "title": "Removes canned answers from account",
10437     "examples": [
10438       {
10439         "title": "Example usage:",
10440         "content": "curl https://{domain}/api/fax/accounts/{id}/canned_answers?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
10441         "type": "json"
10442       }
10443     ],
10444     "name": "RemoveAnswers",
10445     "group": "Fax_Accounts",
10446     "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>",
10447     "version": "0.0.0",
10448     "filename": "server/api/faxAccount/index.js",
10449     "groupTitle": "Fax_Accounts"
10450   },
10451   {
10452     "type": "delete",
10453     "url": "/api/fax/accounts/{id}/dispositions",
10454     "title": "Removes dispositions from account",
10455     "examples": [
10456       {
10457         "title": "Example usage:",
10458         "content": "curl https://{domain}/api/fax/accounts/{id}/dispositions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
10459         "type": "json"
10460       }
10461     ],
10462     "name": "RemoveDispositions",
10463     "group": "Fax_Accounts",
10464     "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>",
10465     "version": "0.0.0",
10466     "filename": "server/api/faxAccount/index.js",
10467     "groupTitle": "Fax_Accounts"
10468   },
10469   {
10470     "type": "get",
10471     "url": "/api/fax/accounts/{id}",
10472     "title": "Gets a single Account",
10473     "examples": [
10474       {
10475         "title": "Example usage:",
10476         "content": "curl https://{domain}/api/fax/accounts/{id} -v -u {name}:{password}",
10477         "type": "json"
10478       }
10479     ],
10480     "name": "ShowAccounts",
10481     "group": "Fax_Accounts",
10482     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10483     "version": "0.0.0",
10484     "filename": "server/api/faxAccount/index.js",
10485     "groupTitle": "Fax_Accounts"
10486   },
10487   {
10488     "type": "post",
10489     "url": "/api/fax/accounts/{id}/canned_answers",
10490     "title": "Creates new canned answer",
10491     "examples": [
10492       {
10493         "title": "Example usage:",
10494         "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",
10495         "type": "json"
10496       }
10497     ],
10498     "name": "addAnswer",
10499     "group": "Fax_Accounts",
10500     "parameter": {
10501       "fields": {
10502         "Body": [
10503           {
10504             "group": "Body",
10505             "type": "String",
10506             "optional": false,
10507             "field": "key",
10508             "description": ""
10509           },
10510           {
10511             "group": "Body",
10512             "type": "Text",
10513             "optional": false,
10514             "field": "value",
10515             "description": ""
10516           },
10517           {
10518             "group": "Body",
10519             "type": "String",
10520             "optional": true,
10521             "field": "description",
10522             "description": ""
10523           },
10524           {
10525             "group": "Body",
10526             "type": "Virtual",
10527             "optional": true,
10528             "field": "name",
10529             "description": ""
10530           }
10531         ]
10532       }
10533     },
10534     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10535     "version": "0.0.0",
10536     "filename": "server/api/faxAccount/index.js",
10537     "groupTitle": "Fax_Accounts"
10538   },
10539   {
10540     "type": "post",
10541     "url": "/api/fax/accounts/addaccountapplications",
10542     "title": "Creates new account and applications",
10543     "examples": [
10544       {
10545         "title": "Example usage:",
10546         "content": "curl https://{domain}/api/fax/accounts/addaccountapplications -d '[{\"name\": \"name\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
10547         "type": "json"
10548       }
10549     ],
10550     "name": "addApplications",
10551     "group": "Fax_Accounts",
10552     "parameter": {
10553       "fields": {
10554         "Body": [
10555           {
10556             "group": "Body",
10557             "type": "Integer",
10558             "optional": false,
10559             "field": "priority",
10560             "description": ""
10561           },
10562           {
10563             "group": "Body",
10564             "type": "String",
10565             "optional": false,
10566             "field": "app",
10567             "description": ""
10568           },
10569           {
10570             "group": "Body",
10571             "type": "Text",
10572             "optional": true,
10573             "field": "appdata",
10574             "description": ""
10575           },
10576           {
10577             "group": "Body",
10578             "type": "String",
10579             "optional": true,
10580             "field": "description",
10581             "description": ""
10582           },
10583           {
10584             "group": "Body",
10585             "type": "String",
10586             "optional": true,
10587             "field": "interval",
10588             "description": ""
10589           }
10590         ]
10591       }
10592     },
10593     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10594     "version": "0.0.0",
10595     "filename": "server/api/faxAccount/index.js",
10596     "groupTitle": "Fax_Accounts"
10597   },
10598   {
10599     "type": "post",
10600     "url": "/api/fax/accounts/{id}/applications",
10601     "title": "Creates new applications",
10602     "examples": [
10603       {
10604         "title": "Example usage:",
10605         "content": "curl https://{domain}/api/fax/accounts/{id}/applications -d '[{\"app\": \"queue\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
10606         "type": "json"
10607       }
10608     ],
10609     "name": "addApplications",
10610     "group": "Fax_Accounts",
10611     "parameter": {
10612       "fields": {
10613         "Body": [
10614           {
10615             "group": "Body",
10616             "type": "Integer",
10617             "optional": false,
10618             "field": "priority",
10619             "description": ""
10620           },
10621           {
10622             "group": "Body",
10623             "type": "String",
10624             "optional": false,
10625             "field": "app",
10626             "description": ""
10627           },
10628           {
10629             "group": "Body",
10630             "type": "Text",
10631             "optional": true,
10632             "field": "appdata",
10633             "description": ""
10634           },
10635           {
10636             "group": "Body",
10637             "type": "String",
10638             "optional": true,
10639             "field": "description",
10640             "description": ""
10641           },
10642           {
10643             "group": "Body",
10644             "type": "String",
10645             "optional": true,
10646             "field": "interval",
10647             "description": ""
10648           }
10649         ]
10650       }
10651     },
10652     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10653     "version": "0.0.0",
10654     "filename": "server/api/faxAccount/index.js",
10655     "groupTitle": "Fax_Accounts"
10656   },
10657   {
10658     "type": "post",
10659     "url": "/api/fax/accounts/{id}/dispositions",
10660     "title": "Creates new disposition",
10661     "examples": [
10662       {
10663         "title": "Example usage:",
10664         "content": "curl https://{domain}/api/fax/accounts/{id}/dispositions -d '{\"name\": \"vip\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
10665         "type": "json"
10666       }
10667     ],
10668     "name": "addDisposition",
10669     "group": "Fax_Accounts",
10670     "parameter": {
10671       "fields": {
10672         "Body": [
10673           {
10674             "group": "Body",
10675             "type": "String",
10676             "optional": false,
10677             "field": "name",
10678             "description": ""
10679           },
10680           {
10681             "group": "Body",
10682             "type": "String",
10683             "allowedValues": [
10684               "\"first\"",
10685               "\"second\"",
10686               "\"third\""
10687             ],
10688             "optional": false,
10689             "field": "level",
10690             "description": ""
10691           },
10692           {
10693             "group": "Body",
10694             "type": "String",
10695             "optional": true,
10696             "field": "description",
10697             "description": ""
10698           }
10699         ]
10700       }
10701     },
10702     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10703     "version": "0.0.0",
10704     "filename": "server/api/faxAccount/index.js",
10705     "groupTitle": "Fax_Accounts"
10706   },
10707   {
10708     "type": "post",
10709     "url": "/api/fax/accounts/{id}/interactions",
10710     "title": "Creates new interactions",
10711     "examples": [
10712       {
10713         "title": "Example usage:",
10714         "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",
10715         "type": "json"
10716       }
10717     ],
10718     "name": "addInteraction",
10719     "group": "Fax_Accounts",
10720     "parameter": {
10721       "fields": {
10722         "Body": [
10723           {
10724             "group": "Body",
10725             "type": "Boolean",
10726             "optional": true,
10727             "field": "closed",
10728             "description": ""
10729           },
10730           {
10731             "group": "Body",
10732             "type": "String",
10733             "optional": true,
10734             "field": "closedAt",
10735             "description": ""
10736           },
10737           {
10738             "group": "Body",
10739             "type": "String",
10740             "optional": true,
10741             "field": "disposition",
10742             "description": ""
10743           },
10744           {
10745             "group": "Body",
10746             "type": "String",
10747             "optional": true,
10748             "field": "secondDisposition",
10749             "description": ""
10750           },
10751           {
10752             "group": "Body",
10753             "type": "String",
10754             "optional": true,
10755             "field": "thirdDisposition",
10756             "description": ""
10757           },
10758           {
10759             "group": "Body",
10760             "type": "String",
10761             "optional": true,
10762             "field": "note",
10763             "description": ""
10764           },
10765           {
10766             "group": "Body",
10767             "type": "String",
10768             "optional": true,
10769             "field": "read1stAt",
10770             "description": ""
10771           },
10772           {
10773             "group": "Body",
10774             "type": "String",
10775             "optional": true,
10776             "field": "fax",
10777             "description": ""
10778           },
10779           {
10780             "group": "Body",
10781             "type": "String",
10782             "allowedValues": [
10783               "\"in\"",
10784               "\"out\""
10785             ],
10786             "optional": false,
10787             "field": "firstMsgDirection",
10788             "description": ""
10789           },
10790           {
10791             "group": "Body",
10792             "type": "String",
10793             "optional": true,
10794             "field": "lastMsgAt",
10795             "description": ""
10796           },
10797           {
10798             "group": "Body",
10799             "type": "String",
10800             "allowedValues": [
10801               "\"in\"",
10802               "\"out\""
10803             ],
10804             "optional": false,
10805             "field": "lastMsgDirection",
10806             "description": ""
10807           }
10808         ]
10809       }
10810     },
10811     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10812     "version": "0.0.0",
10813     "filename": "server/api/faxAccount/index.js",
10814     "groupTitle": "Fax_Accounts"
10815   },
10816   {
10817     "type": "get",
10818     "url": "/api/fax/accounts/{id}/canned_answers",
10819     "title": "Gets account canned answers",
10820     "examples": [
10821       {
10822         "title": "Example usage:",
10823         "content": "curl https://{domain}/api/fax/accounts/{id}/canned_answers -v -u {name}:{password} -X GET",
10824         "type": "json"
10825       }
10826     ],
10827     "name": "getAnswers",
10828     "group": "Fax_Accounts",
10829     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10830     "version": "0.0.0",
10831     "filename": "server/api/faxAccount/index.js",
10832     "groupTitle": "Fax_Accounts"
10833   },
10834   {
10835     "type": "get",
10836     "url": "/api/fax/accounts/{id}/applications",
10837     "title": "Gets account pplications",
10838     "examples": [
10839       {
10840         "title": "Example usage:",
10841         "content": "curl https://{domain}/api/fax/accounts/{id}/applications -v -u {name}:{password} -X GET",
10842         "type": "json"
10843       }
10844     ],
10845     "name": "getApplications",
10846     "group": "Fax_Accounts",
10847     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10848     "version": "0.0.0",
10849     "filename": "server/api/faxAccount/index.js",
10850     "groupTitle": "Fax_Accounts"
10851   },
10852   {
10853     "type": "get",
10854     "url": "/api/fax/accounts/{id}/dispositions",
10855     "title": "Gets account dispositions",
10856     "examples": [
10857       {
10858         "title": "Example usage:",
10859         "content": "curl https://{domain}/api/fax/accounts/{id}/dispositions -v -u {name}:{password} -X GET",
10860         "type": "json"
10861       }
10862     ],
10863     "name": "getDispositions",
10864     "group": "Fax_Accounts",
10865     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10866     "version": "0.0.0",
10867     "filename": "server/api/faxAccount/index.js",
10868     "groupTitle": "Fax_Accounts"
10869   },
10870   {
10871     "type": "get",
10872     "url": "/api/fax/accounts/{id}/interactions",
10873     "title": "Gets account interactions",
10874     "examples": [
10875       {
10876         "title": "Example usage:",
10877         "content": "curl https://{domain}/api/fax/accounts/{id}/interactions -v -u {name}:{password} -X GET",
10878         "type": "json"
10879       }
10880     ],
10881     "name": "getInteraction",
10882     "group": "Fax_Accounts",
10883     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10884     "version": "0.0.0",
10885     "filename": "server/api/faxAccount/index.js",
10886     "groupTitle": "Fax_Accounts"
10887   },
10888   {
10889     "type": "get",
10890     "url": "/api/fax/accounts/{id}/messages",
10891     "title": "Gets account messages",
10892     "examples": [
10893       {
10894         "title": "Example usage:",
10895         "content": "curl https://{domain}/api/fax/accounts/{id}/messages -v -u {name}:{password} -X GET",
10896         "type": "json"
10897       }
10898     ],
10899     "name": "getMessages",
10900     "group": "Fax_Accounts",
10901     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10902     "version": "0.0.0",
10903     "filename": "server/api/faxAccount/index.js",
10904     "groupTitle": "Fax_Accounts"
10905   },
10906   {
10907     "type": "post",
10908     "url": "/api/fax/accounts/{id}/send",
10909     "title": "Send new fax",
10910     "examples": [
10911       {
10912         "title": "Example usage:",
10913         "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",
10914         "type": "json"
10915       }
10916     ],
10917     "name": "sendFax",
10918     "group": "Fax_Accounts",
10919     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10920     "version": "0.0.0",
10921     "filename": "server/api/faxAccount/index.js",
10922     "groupTitle": "Fax_Accounts"
10923   },
10924   {
10925     "type": "put",
10926     "url": "/api/fax/accounts/{id}",
10927     "title": "Update an existing Account",
10928     "examples": [
10929       {
10930         "title": "Example usage:",
10931         "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",
10932         "type": "json"
10933       }
10934     ],
10935     "name": "updateAccounts",
10936     "group": "Fax_Accounts",
10937     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10938     "version": "0.0.0",
10939     "filename": "server/api/faxAccount/index.js",
10940     "groupTitle": "Fax_Accounts"
10941   },
10942   {
10943     "type": "post",
10944     "url": "/api/fax/accounts/updateaccountapplications",
10945     "title": "Update account and applications",
10946     "examples": [
10947       {
10948         "title": "Example usage:",
10949         "content": "curl https://{domain}/api/fax/accounts/updateaccountapplications -d '[{\"name\": \"name\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
10950         "type": "json"
10951       }
10952     ],
10953     "name": "updateApplications",
10954     "group": "Fax_Accounts",
10955     "parameter": {
10956       "fields": {
10957         "Body": [
10958           {
10959             "group": "Body",
10960             "type": "Integer",
10961             "optional": false,
10962             "field": "priority",
10963             "description": ""
10964           },
10965           {
10966             "group": "Body",
10967             "type": "String",
10968             "optional": false,
10969             "field": "app",
10970             "description": ""
10971           },
10972           {
10973             "group": "Body",
10974             "type": "Text",
10975             "optional": true,
10976             "field": "appdata",
10977             "description": ""
10978           },
10979           {
10980             "group": "Body",
10981             "type": "String",
10982             "optional": true,
10983             "field": "description",
10984             "description": ""
10985           },
10986           {
10987             "group": "Body",
10988             "type": "String",
10989             "optional": true,
10990             "field": "interval",
10991             "description": ""
10992           }
10993         ]
10994       }
10995     },
10996     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10997     "version": "0.0.0",
10998     "filename": "server/api/faxAccount/index.js",
10999     "groupTitle": "Fax_Accounts"
11000   },
11001   {
11002     "type": "post",
11003     "url": "/api/fax/applications",
11004     "title": "Creates a new Application",
11005     "examples": [
11006       {
11007         "title": "Example usage:",
11008         "content": "curl https://{domain}/api/fax/applications -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
11009         "type": "json"
11010       }
11011     ],
11012     "name": "CreateApplications",
11013     "group": "Fax_Applications",
11014     "parameter": {
11015       "fields": {
11016         "Body": [
11017           {
11018             "group": "Body",
11019             "type": "Integer",
11020             "optional": false,
11021             "field": "priority",
11022             "description": ""
11023           },
11024           {
11025             "group": "Body",
11026             "type": "String",
11027             "optional": false,
11028             "field": "app",
11029             "description": ""
11030           },
11031           {
11032             "group": "Body",
11033             "type": "Text",
11034             "optional": true,
11035             "field": "appdata",
11036             "description": ""
11037           },
11038           {
11039             "group": "Body",
11040             "type": "String",
11041             "optional": true,
11042             "field": "description",
11043             "description": ""
11044           },
11045           {
11046             "group": "Body",
11047             "type": "String",
11048             "optional": true,
11049             "field": "interval",
11050             "description": ""
11051           }
11052         ]
11053       }
11054     },
11055     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11056     "version": "0.0.0",
11057     "filename": "server/api/faxApplication/index.js",
11058     "groupTitle": "Fax_Applications"
11059   },
11060   {
11061     "type": "delete",
11062     "url": "/api/fax/applications/{id}",
11063     "title": "Deletes a Application",
11064     "examples": [
11065       {
11066         "title": "Example usage:",
11067         "content": "curl https://{domain}/api/fax/applications/{id} -v -u {name}:{password} -X DELETE",
11068         "type": "json"
11069       }
11070     ],
11071     "name": "DeleteApplications",
11072     "group": "Fax_Applications",
11073     "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>",
11074     "version": "0.0.0",
11075     "filename": "server/api/faxApplication/index.js",
11076     "groupTitle": "Fax_Applications"
11077   },
11078   {
11079     "type": "get",
11080     "url": "/api/fax/applications",
11081     "title": "Gets a list of Applications",
11082     "examples": [
11083       {
11084         "title": "Example usage:",
11085         "content": "curl https://{domain}/api/fax/applications -v -u {name}:{password}",
11086         "type": "json"
11087       }
11088     ],
11089     "name": "GetApplications",
11090     "group": "Fax_Applications",
11091     "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>",
11092     "version": "0.0.0",
11093     "filename": "server/api/faxApplication/index.js",
11094     "groupTitle": "Fax_Applications"
11095   },
11096   {
11097     "type": "get",
11098     "url": "/api/fax/applications/{id}",
11099     "title": "Gets a single Application",
11100     "examples": [
11101       {
11102         "title": "Example usage:",
11103         "content": "curl https://{domain}/api/fax/applications/{id} -v -u {name}:{password}",
11104         "type": "json"
11105       }
11106     ],
11107     "name": "ShowApplications",
11108     "group": "Fax_Applications",
11109     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11110     "version": "0.0.0",
11111     "filename": "server/api/faxApplication/index.js",
11112     "groupTitle": "Fax_Applications"
11113   },
11114   {
11115     "type": "put",
11116     "url": "/api/fax/applications/{id}",
11117     "title": "Update an existing Application",
11118     "examples": [
11119       {
11120         "title": "Example usage:",
11121         "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",
11122         "type": "json"
11123       }
11124     ],
11125     "name": "updateApplications",
11126     "group": "Fax_Applications",
11127     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11128     "version": "0.0.0",
11129     "filename": "server/api/faxApplication/index.js",
11130     "groupTitle": "Fax_Applications"
11131   },
11132   {
11133     "type": "post",
11134     "url": "/api/fax/interactions/{id}/tags",
11135     "title": "Add tags to the interaction",
11136     "examples": [
11137       {
11138         "title": "Example usage:",
11139         "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",
11140         "type": "json"
11141       }
11142     ],
11143     "name": "AddTags",
11144     "group": "Fax_Interactions",
11145     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11146     "version": "0.0.0",
11147     "filename": "server/api/faxInteraction/index.js",
11148     "groupTitle": "Fax_Interactions"
11149   },
11150   {
11151     "type": "post",
11152     "url": "/api/fax/interactions",
11153     "title": "Creates a new Interaction",
11154     "examples": [
11155       {
11156         "title": "Example usage:",
11157         "content": "curl https://{domain}/api/fax/interactions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
11158         "type": "json"
11159       }
11160     ],
11161     "name": "CreateInteractions",
11162     "group": "Fax_Interactions",
11163     "parameter": {
11164       "fields": {
11165         "Body": [
11166           {
11167             "group": "Body",
11168             "type": "Boolean",
11169             "optional": true,
11170             "field": "closed",
11171             "description": ""
11172           },
11173           {
11174             "group": "Body",
11175             "type": "String",
11176             "optional": true,
11177             "field": "closedAt",
11178             "description": ""
11179           },
11180           {
11181             "group": "Body",
11182             "type": "String",
11183             "optional": true,
11184             "field": "disposition",
11185             "description": ""
11186           },
11187           {
11188             "group": "Body",
11189             "type": "String",
11190             "optional": true,
11191             "field": "secondDisposition",
11192             "description": ""
11193           },
11194           {
11195             "group": "Body",
11196             "type": "String",
11197             "optional": true,
11198             "field": "thirdDisposition",
11199             "description": ""
11200           },
11201           {
11202             "group": "Body",
11203             "type": "String",
11204             "optional": true,
11205             "field": "note",
11206             "description": ""
11207           },
11208           {
11209             "group": "Body",
11210             "type": "String",
11211             "optional": true,
11212             "field": "read1stAt",
11213             "description": ""
11214           },
11215           {
11216             "group": "Body",
11217             "type": "String",
11218             "optional": true,
11219             "field": "fax",
11220             "description": ""
11221           },
11222           {
11223             "group": "Body",
11224             "type": "String",
11225             "allowedValues": [
11226               "\"in\"",
11227               "\"out\""
11228             ],
11229             "optional": false,
11230             "field": "firstMsgDirection",
11231             "description": ""
11232           },
11233           {
11234             "group": "Body",
11235             "type": "String",
11236             "optional": true,
11237             "field": "lastMsgAt",
11238             "description": ""
11239           },
11240           {
11241             "group": "Body",
11242             "type": "String",
11243             "allowedValues": [
11244               "\"in\"",
11245               "\"out\""
11246             ],
11247             "optional": false,
11248             "field": "lastMsgDirection",
11249             "description": ""
11250           }
11251         ]
11252       }
11253     },
11254     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11255     "version": "0.0.0",
11256     "filename": "server/api/faxInteraction/index.js",
11257     "groupTitle": "Fax_Interactions"
11258   },
11259   {
11260     "type": "delete",
11261     "url": "/api/fax/interactions/{id}",
11262     "title": "Deletes a Interaction",
11263     "examples": [
11264       {
11265         "title": "Example usage:",
11266         "content": "curl https://{domain}/api/fax/interactions/{id} -v -u {name}:{password} -X DELETE",
11267         "type": "json"
11268       }
11269     ],
11270     "name": "DeleteInteractions",
11271     "group": "Fax_Interactions",
11272     "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>",
11273     "version": "0.0.0",
11274     "filename": "server/api/faxInteraction/index.js",
11275     "groupTitle": "Fax_Interactions"
11276   },
11277   {
11278     "type": "get",
11279     "url": "/api/fax/interactions/describe",
11280     "title": "Gets table info about Interactions",
11281     "examples": [
11282       {
11283         "title": "Example usage:",
11284         "content": "curl https://{domain}/api/fax/interactions/describe -v -u {name}:{password}",
11285         "type": "json"
11286       }
11287     ],
11288     "name": "DescribeInteractions",
11289     "group": "Fax_Interactions",
11290     "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>",
11291     "version": "0.0.0",
11292     "filename": "server/api/faxInteraction/index.js",
11293     "groupTitle": "Fax_Interactions"
11294   },
11295   {
11296     "type": "get",
11297     "url": "/api/fax/interactions",
11298     "title": "Gets a list of Interactions",
11299     "examples": [
11300       {
11301         "title": "Example usage:",
11302         "content": "curl https://{domain}/api/fax/interactions -v -u {name}:{password}",
11303         "type": "json"
11304       }
11305     ],
11306     "name": "GetInteractions",
11307     "group": "Fax_Interactions",
11308     "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>",
11309     "version": "0.0.0",
11310     "filename": "server/api/faxInteraction/index.js",
11311     "groupTitle": "Fax_Interactions"
11312   },
11313   {
11314     "type": "delete",
11315     "url": "/api/fax/interactions/{id}/tags",
11316     "title": "Removes tags from interaction",
11317     "examples": [
11318       {
11319         "title": "Example usage:",
11320         "content": "curl https://{domain}/api/fax/interactions/{id}/tags?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
11321         "type": "json"
11322       }
11323     ],
11324     "name": "RemoveTags",
11325     "group": "Fax_Interactions",
11326     "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>",
11327     "version": "0.0.0",
11328     "filename": "server/api/faxInteraction/index.js",
11329     "groupTitle": "Fax_Interactions"
11330   },
11331   {
11332     "type": "get",
11333     "url": "/api/fax/interactions/{id}",
11334     "title": "Gets a single Interaction",
11335     "examples": [
11336       {
11337         "title": "Example usage:",
11338         "content": "curl https://{domain}/api/fax/interactions/{id} -v -u {name}:{password}",
11339         "type": "json"
11340       }
11341     ],
11342     "name": "ShowInteractions",
11343     "group": "Fax_Interactions",
11344     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11345     "version": "0.0.0",
11346     "filename": "server/api/faxInteraction/index.js",
11347     "groupTitle": "Fax_Interactions"
11348   },
11349   {
11350     "type": "post",
11351     "url": "/api/fax/interactions/{id}/messages",
11352     "title": "Creates new messages",
11353     "examples": [
11354       {
11355         "title": "Example usage:",
11356         "content": "curl https://{domain}/api/fax/interactions/{id}/messages -d '[{\"to\": \"+3901119886500\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
11357         "type": "json"
11358       }
11359     ],
11360     "name": "addMessage",
11361     "group": "Fax_Interactions",
11362     "parameter": {
11363       "fields": {
11364         "Body": [
11365           {
11366             "group": "Body",
11367             "type": "Text",
11368             "optional": false,
11369             "field": "body",
11370             "description": ""
11371           },
11372           {
11373             "group": "Body",
11374             "type": "Boolean",
11375             "optional": true,
11376             "field": "read",
11377             "description": ""
11378           },
11379           {
11380             "group": "Body",
11381             "type": "String",
11382             "allowedValues": [
11383               "\"in\"",
11384               "\"out\""
11385             ],
11386             "optional": false,
11387             "field": "direction",
11388             "description": ""
11389           },
11390           {
11391             "group": "Body",
11392             "type": "Text",
11393             "optional": true,
11394             "field": "failMessage",
11395             "description": ""
11396           },
11397           {
11398             "group": "Body",
11399             "type": "String",
11400             "optional": true,
11401             "field": "readAt",
11402             "description": ""
11403           }
11404         ]
11405       }
11406     },
11407     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11408     "version": "0.0.0",
11409     "filename": "server/api/faxInteraction/index.js",
11410     "groupTitle": "Fax_Interactions"
11411   },
11412   {
11413     "type": "get",
11414     "url": "/api/fax/interactions/{id}/download",
11415     "title": "Get interactions",
11416     "examples": [
11417       {
11418         "title": "Example usage:",
11419         "content": "curl https://{domain}/api/fax/interactions/{id}/download -v -u {name}:{password} -X GET",
11420         "type": "json"
11421       }
11422     ],
11423     "name": "download",
11424     "group": "Fax_Interactions",
11425     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11426     "version": "0.0.0",
11427     "filename": "server/api/faxInteraction/index.js",
11428     "groupTitle": "Fax_Interactions"
11429   },
11430   {
11431     "type": "get",
11432     "url": "/api/fax/interactions/{id}/messages",
11433     "title": "Gets interaction messages",
11434     "examples": [
11435       {
11436         "title": "Example usage:",
11437         "content": "curl https://{domain}/api/fax/interactions/{id}/messages -v -u {name}:{password} -X GET",
11438         "type": "json"
11439       }
11440     ],
11441     "name": "getMessages",
11442     "group": "Fax_Interactions",
11443     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11444     "version": "0.0.0",
11445     "filename": "server/api/faxInteraction/index.js",
11446     "groupTitle": "Fax_Interactions"
11447   },
11448   {
11449     "type": "put",
11450     "url": "/api/fax/interactions/{id}",
11451     "title": "Update an existing Interaction",
11452     "examples": [
11453       {
11454         "title": "Example usage:",
11455         "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",
11456         "type": "json"
11457       }
11458     ],
11459     "name": "updateInteractions",
11460     "group": "Fax_Interactions",
11461     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11462     "version": "0.0.0",
11463     "filename": "server/api/faxInteraction/index.js",
11464     "groupTitle": "Fax_Interactions"
11465   },
11466   {
11467     "type": "get",
11468     "url": "/api/fax/messages/{id}/download",
11469     "title": "Get message",
11470     "examples": [
11471       {
11472         "title": "Example usage:",
11473         "content": "curl https://{domain}/api/fax/messages/{id}/download -v -u {name}:{password} -X GET",
11474         "type": "json"
11475       }
11476     ],
11477     "name": "download",
11478     "group": "Fax_Message",
11479     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11480     "version": "0.0.0",
11481     "filename": "server/api/faxMessage/index.js",
11482     "groupTitle": "Fax_Message"
11483   },
11484   {
11485     "type": "delete",
11486     "url": "/api/fax/messages/{id}",
11487     "title": "Deletes a Message",
11488     "examples": [
11489       {
11490         "title": "Example usage:",
11491         "content": "curl https://{domain}/api/fax/messages/{id} -v -u {name}:{password} -X DELETE",
11492         "type": "json"
11493       }
11494     ],
11495     "name": "DeleteMessages",
11496     "group": "Fax_Messages",
11497     "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>",
11498     "version": "0.0.0",
11499     "filename": "server/api/faxMessage/index.js",
11500     "groupTitle": "Fax_Messages"
11501   },
11502   {
11503     "type": "get",
11504     "url": "/api/fax/messages/describe",
11505     "title": "Gets table info about Messages",
11506     "examples": [
11507       {
11508         "title": "Example usage:",
11509         "content": "curl https://{domain}/api/fax/messages/describe -v -u {name}:{password}",
11510         "type": "json"
11511       }
11512     ],
11513     "name": "DescribeMessages",
11514     "group": "Fax_Messages",
11515     "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>",
11516     "version": "0.0.0",
11517     "filename": "server/api/faxMessage/index.js",
11518     "groupTitle": "Fax_Messages"
11519   },
11520   {
11521     "type": "get",
11522     "url": "/api/fax/messages",
11523     "title": "Gets a list of Messages",
11524     "examples": [
11525       {
11526         "title": "Example usage:",
11527         "content": "curl https://{domain}/api/fax/messages -v -u {name}:{password}",
11528         "type": "json"
11529       }
11530     ],
11531     "name": "GetMessages",
11532     "group": "Fax_Messages",
11533     "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>",
11534     "version": "0.0.0",
11535     "filename": "server/api/faxMessage/index.js",
11536     "groupTitle": "Fax_Messages"
11537   },
11538   {
11539     "type": "get",
11540     "url": "/api/fax/messages/{id}",
11541     "title": "Gets a single Message",
11542     "examples": [
11543       {
11544         "title": "Example usage:",
11545         "content": "curl https://{domain}/api/fax/messages/{id} -v -u {name}:{password}",
11546         "type": "json"
11547       }
11548     ],
11549     "name": "ShowMessages",
11550     "group": "Fax_Messages",
11551     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11552     "version": "0.0.0",
11553     "filename": "server/api/faxMessage/index.js",
11554     "groupTitle": "Fax_Messages"
11555   },
11556   {
11557     "type": "put",
11558     "url": "/api/fax/messages/{id}/accept",
11559     "title": "Accepts message",
11560     "examples": [
11561       {
11562         "title": "Example usage:",
11563         "content": "curl https://{domain}/api/fax/messages/{id}/accept \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
11564         "type": "json"
11565       }
11566     ],
11567     "name": "acceptMessage",
11568     "group": "Fax_Messages",
11569     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11570     "version": "0.0.0",
11571     "filename": "server/api/faxMessage/index.js",
11572     "groupTitle": "Fax_Messages"
11573   },
11574   {
11575     "type": "post",
11576     "url": "/api/fax/messages",
11577     "title": "Create message and send Fax",
11578     "examples": [
11579       {
11580         "title": "Example usage:",
11581         "content": "curl https://{domain}/api/fax/messages/{id}/reject \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
11582         "type": "json"
11583       }
11584     ],
11585     "name": "rejectMessage",
11586     "group": "Fax_Messages",
11587     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11588     "version": "0.0.0",
11589     "filename": "server/api/faxMessage/index.js",
11590     "groupTitle": "Fax_Messages"
11591   },
11592   {
11593     "type": "put",
11594     "url": "/api/fax/messages/{id}/reject",
11595     "title": "Rejects message",
11596     "examples": [
11597       {
11598         "title": "Example usage:",
11599         "content": "curl https://{domain}/api/fax/messages/{id}/reject \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
11600         "type": "json"
11601       }
11602     ],
11603     "name": "rejectMessage",
11604     "group": "Fax_Messages",
11605     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11606     "version": "0.0.0",
11607     "filename": "server/api/faxMessage/index.js",
11608     "groupTitle": "Fax_Messages"
11609   },
11610   {
11611     "type": "put",
11612     "url": "/api/fax/messages/{id}",
11613     "title": "Update an existing Message",
11614     "examples": [
11615       {
11616         "title": "Example usage:",
11617         "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",
11618         "type": "json"
11619       }
11620     ],
11621     "name": "updateMessages",
11622     "group": "Fax_Messages",
11623     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11624     "version": "0.0.0",
11625     "filename": "server/api/faxMessage/index.js",
11626     "groupTitle": "Fax_Messages"
11627   },
11628   {
11629     "type": "post",
11630     "url": "/api/fax/reports/queue",
11631     "title": "Creates a new Fax Queue Report",
11632     "examples": [
11633       {
11634         "title": "Example usage:",
11635         "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",
11636         "type": "json"
11637       }
11638     ],
11639     "name": "CreateFax_Queue_Reports",
11640     "group": "Fax_Queue_Reports",
11641     "parameter": {
11642       "fields": {
11643         "Body": [
11644           {
11645             "group": "Body",
11646             "type": "String",
11647             "optional": false,
11648             "field": "uniqueid",
11649             "description": ""
11650           },
11651           {
11652             "group": "Body",
11653             "type": "String",
11654             "optional": true,
11655             "field": "from",
11656             "description": ""
11657           },
11658           {
11659             "group": "Body",
11660             "type": "String",
11661             "optional": true,
11662             "field": "joinAt",
11663             "description": ""
11664           },
11665           {
11666             "group": "Body",
11667             "type": "String",
11668             "optional": true,
11669             "field": "leaveAt",
11670             "description": ""
11671           },
11672           {
11673             "group": "Body",
11674             "type": "String",
11675             "optional": true,
11676             "field": "acceptAt",
11677             "description": ""
11678           },
11679           {
11680             "group": "Body",
11681             "type": "String",
11682             "optional": true,
11683             "field": "exitAt",
11684             "description": ""
11685           },
11686           {
11687             "group": "Body",
11688             "type": "String",
11689             "optional": true,
11690             "field": "reason",
11691             "description": ""
11692           }
11693         ]
11694       }
11695     },
11696     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11697     "version": "0.0.0",
11698     "filename": "server/api/faxQueueReport/index.js",
11699     "groupTitle": "Fax_Queue_Reports"
11700   },
11701   {
11702     "type": "delete",
11703     "url": "/api/fax/reports/queue/{id}",
11704     "title": "Deletes a Fax Queue Report",
11705     "examples": [
11706       {
11707         "title": "Example usage:",
11708         "content": "curl https://{domain}/api/fax/reports/queue/{id} -v -u {name}:{password} -X DELETE",
11709         "type": "json"
11710       }
11711     ],
11712     "name": "DeleteFax_Queue_Reports",
11713     "group": "Fax_Queue_Reports",
11714     "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>",
11715     "version": "0.0.0",
11716     "filename": "server/api/faxQueueReport/index.js",
11717     "groupTitle": "Fax_Queue_Reports"
11718   },
11719   {
11720     "type": "get",
11721     "url": "/api/fax/reports/queue/describe",
11722     "title": "Gets table info about Fax Queue Reports",
11723     "examples": [
11724       {
11725         "title": "Example usage:",
11726         "content": "curl https://{domain}/api/fax/reports/queue/describe -v -u {name}:{password}",
11727         "type": "json"
11728       }
11729     ],
11730     "name": "DescribeFax_Queue_Reports",
11731     "group": "Fax_Queue_Reports",
11732     "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>",
11733     "version": "0.0.0",
11734     "filename": "server/api/faxQueueReport/index.js",
11735     "groupTitle": "Fax_Queue_Reports"
11736   },
11737   {
11738     "type": "get",
11739     "url": "/api/fax/reports/queue",
11740     "title": "Gets a list of Fax Queue Reports",
11741     "examples": [
11742       {
11743         "title": "Example usage:",
11744         "content": "curl https://{domain}/api/fax/reports/queue -v -u {name}:{password}",
11745         "type": "json"
11746       }
11747     ],
11748     "name": "GetFax_Queue_Reports",
11749     "group": "Fax_Queue_Reports",
11750     "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>",
11751     "version": "0.0.0",
11752     "filename": "server/api/faxQueueReport/index.js",
11753     "groupTitle": "Fax_Queue_Reports"
11754   },
11755   {
11756     "type": "get",
11757     "url": "/api/fax/reports/queue/{id}",
11758     "title": "Gets a single Fax Queue Report",
11759     "examples": [
11760       {
11761         "title": "Example usage:",
11762         "content": "curl https://{domain}/api/fax/reports/queue/{id} -v -u {name}:{password}",
11763         "type": "json"
11764       }
11765     ],
11766     "name": "ShowFax_Queue_Reports",
11767     "group": "Fax_Queue_Reports",
11768     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11769     "version": "0.0.0",
11770     "filename": "server/api/faxQueueReport/index.js",
11771     "groupTitle": "Fax_Queue_Reports"
11772   },
11773   {
11774     "type": "put",
11775     "url": "/api/fax/reports/queue/{id}",
11776     "title": "Update an existing Fax Queue Report",
11777     "examples": [
11778       {
11779         "title": "Example usage:",
11780         "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",
11781         "type": "json"
11782       }
11783     ],
11784     "name": "updateFax_Queue_Reports",
11785     "group": "Fax_Queue_Reports",
11786     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11787     "version": "0.0.0",
11788     "filename": "server/api/faxQueueReport/index.js",
11789     "groupTitle": "Fax_Queue_Reports"
11790   },
11791   {
11792     "type": "post",
11793     "url": "/api/fax/queues/{id}/users",
11794     "title": "Add agents to a queue",
11795     "examples": [
11796       {
11797         "title": "Example usage:",
11798         "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",
11799         "type": "json"
11800       }
11801     ],
11802     "name": "AddAgents",
11803     "group": "Fax_Queues",
11804     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11805     "version": "0.0.0",
11806     "filename": "server/api/faxQueue/index.js",
11807     "groupTitle": "Fax_Queues"
11808   },
11809   {
11810     "type": "post",
11811     "url": "/api/fax/queues/{id}/teams",
11812     "title": "Add teams to a queue",
11813     "examples": [
11814       {
11815         "title": "Example usage:",
11816         "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",
11817         "type": "json"
11818       }
11819     ],
11820     "name": "AddTeams",
11821     "group": "Fax_Queues",
11822     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11823     "version": "0.0.0",
11824     "filename": "server/api/faxQueue/index.js",
11825     "groupTitle": "Fax_Queues"
11826   },
11827   {
11828     "type": "post",
11829     "url": "/api/fax/queues",
11830     "title": "Creates a new Queue",
11831     "examples": [
11832       {
11833         "title": "Example usage:",
11834         "content": "curl https://{domain}/api/fax/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
11835         "type": "json"
11836       }
11837     ],
11838     "name": "CreateQueues",
11839     "group": "Fax_Queues",
11840     "parameter": {
11841       "fields": {
11842         "Body": [
11843           {
11844             "group": "Body",
11845             "type": "String",
11846             "optional": false,
11847             "field": "name",
11848             "description": ""
11849           },
11850           {
11851             "group": "Body",
11852             "type": "String",
11853             "optional": true,
11854             "field": "description",
11855             "description": ""
11856           },
11857           {
11858             "group": "Body",
11859             "type": "Integer",
11860             "optional": false,
11861             "field": "timeout",
11862             "description": ""
11863           },
11864           {
11865             "group": "Body",
11866             "type": "String",
11867             "allowedValues": [
11868               "\"rrmemory\"",
11869               "\"beepall\"",
11870               "\"roundrobin\""
11871             ],
11872             "optional": false,
11873             "field": "strategy",
11874             "description": ""
11875           },
11876           {
11877             "group": "Body",
11878             "type": "Integer",
11879             "optional": true,
11880             "field": "lastAgent",
11881             "description": ""
11882           }
11883         ]
11884       }
11885     },
11886     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11887     "version": "0.0.0",
11888     "filename": "server/api/faxQueue/index.js",
11889     "groupTitle": "Fax_Queues"
11890   },
11891   {
11892     "type": "delete",
11893     "url": "/api/fax/queues/{id}",
11894     "title": "Deletes a Queue",
11895     "examples": [
11896       {
11897         "title": "Example usage:",
11898         "content": "curl https://{domain}/api/fax/queues/{id} -v -u {name}:{password} -X DELETE",
11899         "type": "json"
11900       }
11901     ],
11902     "name": "DeleteQueues",
11903     "group": "Fax_Queues",
11904     "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>",
11905     "version": "0.0.0",
11906     "filename": "server/api/faxQueue/index.js",
11907     "groupTitle": "Fax_Queues"
11908   },
11909   {
11910     "type": "get",
11911     "url": "/api/fax/queues/describe",
11912     "title": "Gets table info about Queues",
11913     "examples": [
11914       {
11915         "title": "Example usage:",
11916         "content": "curl https://{domain}/api/fax/queues/describe -v -u {name}:{password}",
11917         "type": "json"
11918       }
11919     ],
11920     "name": "DescribeQueues",
11921     "group": "Fax_Queues",
11922     "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>",
11923     "version": "0.0.0",
11924     "filename": "server/api/faxQueue/index.js",
11925     "groupTitle": "Fax_Queues"
11926   },
11927   {
11928     "type": "get",
11929     "url": "/api/fax/queues/{id}/users",
11930     "title": "Gets queue agents",
11931     "examples": [
11932       {
11933         "title": "Example usage:",
11934         "content": "curl https://{domain}/api/fax/queues/{id}/users -v -u {name}:{password} -X POST",
11935         "type": "json"
11936       }
11937     ],
11938     "name": "GetAgents",
11939     "group": "Fax_Queues",
11940     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11941     "version": "0.0.0",
11942     "filename": "server/api/faxQueue/index.js",
11943     "groupTitle": "Fax_Queues"
11944   },
11945   {
11946     "type": "get",
11947     "url": "/api/fax/queues/{id}/members",
11948     "title": "GetMembers",
11949     "examples": [
11950       {
11951         "title": "Example usage:",
11952         "content": "curl https://{domain}/api/fax/queues/{id}/members  -v -u {name}:{password}",
11953         "type": "json"
11954       }
11955     ],
11956     "name": "GetMembers",
11957     "group": "Fax_Queues",
11958     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11959     "version": "0.0.0",
11960     "filename": "server/api/faxQueue/index.js",
11961     "groupTitle": "Fax_Queues"
11962   },
11963   {
11964     "type": "get",
11965     "url": "/api/fax/queues",
11966     "title": "Gets a list of Queues",
11967     "examples": [
11968       {
11969         "title": "Example usage:",
11970         "content": "curl https://{domain}/api/fax/queues -v -u {name}:{password}",
11971         "type": "json"
11972       }
11973     ],
11974     "name": "GetQueues",
11975     "group": "Fax_Queues",
11976     "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>",
11977     "version": "0.0.0",
11978     "filename": "server/api/faxQueue/index.js",
11979     "groupTitle": "Fax_Queues"
11980   },
11981   {
11982     "type": "get",
11983     "url": "/api/fax/queues/{id}/teams",
11984     "title": "Gets queues list",
11985     "examples": [
11986       {
11987         "title": "Example usage:",
11988         "content": "curl https://{domain}/api/fax/queues/{id}/teams -v -u {name}:{password}",
11989         "type": "json"
11990       }
11991     ],
11992     "name": "GetTeams",
11993     "group": "Fax_Queues",
11994     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11995     "version": "0.0.0",
11996     "filename": "server/api/faxQueue/index.js",
11997     "groupTitle": "Fax_Queues"
11998   },
11999   {
12000     "type": "delete",
12001     "url": "/api/fax/queues/{id}/users",
12002     "title": "Removes agents from a queue",
12003     "examples": [
12004       {
12005         "title": "Example usage:",
12006         "content": "curl https://{domain}/api/fax/queues/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
12007         "type": "json"
12008       }
12009     ],
12010     "name": "RemoveAgents",
12011     "group": "Fax_Queues",
12012     "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>",
12013     "version": "0.0.0",
12014     "filename": "server/api/faxQueue/index.js",
12015     "groupTitle": "Fax_Queues"
12016   },
12017   {
12018     "type": "get",
12019     "url": "/api/fax/queues/{id}",
12020     "title": "Gets a single Queue",
12021     "examples": [
12022       {
12023         "title": "Example usage:",
12024         "content": "curl https://{domain}/api/fax/queues/{id} -v -u {name}:{password}",
12025         "type": "json"
12026       }
12027     ],
12028     "name": "ShowQueues",
12029     "group": "Fax_Queues",
12030     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12031     "version": "0.0.0",
12032     "filename": "server/api/faxQueue/index.js",
12033     "groupTitle": "Fax_Queues"
12034   },
12035   {
12036     "type": "put",
12037     "url": "/api/fax/queues/{id}",
12038     "title": "Update an existing Queue",
12039     "examples": [
12040       {
12041         "title": "Example usage:",
12042         "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",
12043         "type": "json"
12044       }
12045     ],
12046     "name": "updateQueues",
12047     "group": "Fax_Queues",
12048     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12049     "version": "0.0.0",
12050     "filename": "server/api/faxQueue/index.js",
12051     "groupTitle": "Fax_Queues"
12052   },
12053   {
12054     "type": "post",
12055     "url": "/api/fax/reports/transfer",
12056     "title": "Creates a new Fax Transfer Report",
12057     "examples": [
12058       {
12059         "title": "Example usage:",
12060         "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",
12061         "type": "json"
12062       }
12063     ],
12064     "name": "CreateFax_Transfer_Reports",
12065     "group": "Fax_Transfer_Reports",
12066     "parameter": {
12067       "fields": {
12068         "Body": [
12069           {
12070             "group": "Body",
12071             "type": "String",
12072             "optional": false,
12073             "field": "uniqueid",
12074             "description": ""
12075           },
12076           {
12077             "group": "Body",
12078             "type": "String",
12079             "allowedValues": [
12080               "\"account\"",
12081               "\"agent\"",
12082               "\"queue\""
12083             ],
12084             "optional": false,
12085             "field": "type",
12086             "description": ""
12087           },
12088           {
12089             "group": "Body",
12090             "type": "String",
12091             "optional": false,
12092             "field": "transferredAt",
12093             "description": ""
12094           }
12095         ]
12096       }
12097     },
12098     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12099     "version": "0.0.0",
12100     "filename": "server/api/faxTransferReport/index.js",
12101     "groupTitle": "Fax_Transfer_Reports"
12102   },
12103   {
12104     "type": "delete",
12105     "url": "/api/fax/reports/transfer/{id}",
12106     "title": "Deletes a Fax Transfer Report",
12107     "examples": [
12108       {
12109         "title": "Example usage:",
12110         "content": "curl https://{domain}/api/fax/reports/transfer/{id} -v -u {name}:{password} -X DELETE",
12111         "type": "json"
12112       }
12113     ],
12114     "name": "DeleteFax_Transfer_Reports",
12115     "group": "Fax_Transfer_Reports",
12116     "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>",
12117     "version": "0.0.0",
12118     "filename": "server/api/faxTransferReport/index.js",
12119     "groupTitle": "Fax_Transfer_Reports"
12120   },
12121   {
12122     "type": "get",
12123     "url": "/api/fax/reports/transfer/describe",
12124     "title": "Gets table info about Fax Transfer Reports",
12125     "examples": [
12126       {
12127         "title": "Example usage:",
12128         "content": "curl https://{domain}/api/fax/reports/transfer/describe -v -u {name}:{password}",
12129         "type": "json"
12130       }
12131     ],
12132     "name": "DescribeFax_Transfer_Reports",
12133     "group": "Fax_Transfer_Reports",
12134     "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>",
12135     "version": "0.0.0",
12136     "filename": "server/api/faxTransferReport/index.js",
12137     "groupTitle": "Fax_Transfer_Reports"
12138   },
12139   {
12140     "type": "get",
12141     "url": "/api/fax/reports/transfer",
12142     "title": "Gets a list of Fax Transfer Reports",
12143     "examples": [
12144       {
12145         "title": "Example usage:",
12146         "content": "curl https://{domain}/api/fax/reports/transfer -v -u {name}:{password}",
12147         "type": "json"
12148       }
12149     ],
12150     "name": "GetFax_Transfer_Reports",
12151     "group": "Fax_Transfer_Reports",
12152     "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>",
12153     "version": "0.0.0",
12154     "filename": "server/api/faxTransferReport/index.js",
12155     "groupTitle": "Fax_Transfer_Reports"
12156   },
12157   {
12158     "type": "get",
12159     "url": "/api/fax/reports/transfer/{id}",
12160     "title": "Gets a single Fax Transfer Report",
12161     "examples": [
12162       {
12163         "title": "Example usage:",
12164         "content": "curl https://{domain}/api/fax/reports/transfer/{id} -v -u {name}:{password}",
12165         "type": "json"
12166       }
12167     ],
12168     "name": "ShowFax_Transfer_Reports",
12169     "group": "Fax_Transfer_Reports",
12170     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12171     "version": "0.0.0",
12172     "filename": "server/api/faxTransferReport/index.js",
12173     "groupTitle": "Fax_Transfer_Reports"
12174   },
12175   {
12176     "type": "put",
12177     "url": "/api/fax/reports/transfer/{id}",
12178     "title": "Update an existing Fax Transfer Report",
12179     "examples": [
12180       {
12181         "title": "Example usage:",
12182         "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",
12183         "type": "json"
12184       }
12185     ],
12186     "name": "updateFax_Transfer_Reports",
12187     "group": "Fax_Transfer_Reports",
12188     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12189     "version": "0.0.0",
12190     "filename": "server/api/faxTransferReport/index.js",
12191     "groupTitle": "Fax_Transfer_Reports"
12192   },
12193   {
12194     "type": "post",
12195     "url": "/api/integrations/freshdesk/accounts",
12196     "title": "Creates a new Freshdesk Account",
12197     "examples": [
12198       {
12199         "title": "Example usage:",
12200         "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",
12201         "type": "json"
12202       }
12203     ],
12204     "name": "CreateFreshdesk_Accounts",
12205     "group": "Freshdesk_Accounts",
12206     "parameter": {
12207       "fields": {
12208         "Body": [
12209           {
12210             "group": "Body",
12211             "type": "String",
12212             "optional": true,
12213             "field": "name",
12214             "description": ""
12215           },
12216           {
12217             "group": "Body",
12218             "type": "String",
12219             "optional": true,
12220             "field": "description",
12221             "description": ""
12222           },
12223           {
12224             "group": "Body",
12225             "type": "String",
12226             "optional": true,
12227             "field": "username",
12228             "description": ""
12229           },
12230           {
12231             "group": "Body",
12232             "type": "String",
12233             "optional": true,
12234             "field": "apiKey",
12235             "description": ""
12236           },
12237           {
12238             "group": "Body",
12239             "type": "String",
12240             "optional": true,
12241             "field": "remoteUri",
12242             "description": ""
12243           },
12244           {
12245             "group": "Body",
12246             "type": "String",
12247             "optional": false,
12248             "field": "serverUrl",
12249             "description": ""
12250           }
12251         ]
12252       }
12253     },
12254     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12255     "version": "0.0.0",
12256     "filename": "server/api/intFreshdeskAccount/index.js",
12257     "groupTitle": "Freshdesk_Accounts"
12258   },
12259   {
12260     "type": "delete",
12261     "url": "/api/integrations/freshdesk/accounts/{id}",
12262     "title": "Deletes a Freshdesk Account",
12263     "examples": [
12264       {
12265         "title": "Example usage:",
12266         "content": "curl https://{domain}/api/integrations/freshdesk/accounts/{id} -v -u {name}:{password} -X DELETE",
12267         "type": "json"
12268       }
12269     ],
12270     "name": "DeleteFreshdesk_Accounts",
12271     "group": "Freshdesk_Accounts",
12272     "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>",
12273     "version": "0.0.0",
12274     "filename": "server/api/intFreshdeskAccount/index.js",
12275     "groupTitle": "Freshdesk_Accounts"
12276   },
12277   {
12278     "type": "get",
12279     "url": "/api/integrations/freshdesk/accounts",
12280     "title": "Gets a list of Freshdesk Accounts",
12281     "examples": [
12282       {
12283         "title": "Example usage:",
12284         "content": "curl https://{domain}/api/integrations/freshdesk/accounts -v -u {name}:{password}",
12285         "type": "json"
12286       }
12287     ],
12288     "name": "GetFreshdesk_Accounts",
12289     "group": "Freshdesk_Accounts",
12290     "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>",
12291     "version": "0.0.0",
12292     "filename": "server/api/intFreshdeskAccount/index.js",
12293     "groupTitle": "Freshdesk_Accounts"
12294   },
12295   {
12296     "type": "get",
12297     "url": "/api/integrations/freshdesk/accounts/{id}",
12298     "title": "Gets a single Freshdesk Account",
12299     "examples": [
12300       {
12301         "title": "Example usage:",
12302         "content": "curl https://{domain}/api/integrations/freshdesk/accounts/{id} -v -u {name}:{password}",
12303         "type": "json"
12304       }
12305     ],
12306     "name": "ShowFreshdesk_Accounts",
12307     "group": "Freshdesk_Accounts",
12308     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12309     "version": "0.0.0",
12310     "filename": "server/api/intFreshdeskAccount/index.js",
12311     "groupTitle": "Freshdesk_Accounts"
12312   },
12313   {
12314     "type": "post",
12315     "url": "/api/integrations/freshdesk/accounts/{id}/configurations",
12316     "title": "Creates new configuration",
12317     "examples": [
12318       {
12319         "title": "Example usage:",
12320         "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",
12321         "type": "json"
12322       }
12323     ],
12324     "name": "addConfiguration",
12325     "group": "Freshdesk_Accounts",
12326     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12327     "version": "0.0.0",
12328     "filename": "server/api/intFreshdeskAccount/index.js",
12329     "groupTitle": "Freshdesk_Accounts"
12330   },
12331   {
12332     "type": "get",
12333     "url": "/api/integrations/freshdesk/accounts/{id}/configurations",
12334     "title": "Gets account configurations",
12335     "examples": [
12336       {
12337         "title": "Example usage:",
12338         "content": "curl https://{domain}/api/integrations/freshdesk/accounts/{id}/configurations -v -u {name}:{password} -X GET",
12339         "type": "json"
12340       }
12341     ],
12342     "name": "getConfigurations",
12343     "group": "Freshdesk_Accounts",
12344     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12345     "version": "0.0.0",
12346     "filename": "server/api/intFreshdeskAccount/index.js",
12347     "groupTitle": "Freshdesk_Accounts"
12348   },
12349   {
12350     "type": "get",
12351     "url": "/api/integrations/freshdesk/accounts/{id}/fields",
12352     "title": "Gets account fields",
12353     "examples": [
12354       {
12355         "title": "Example usage:",
12356         "content": "curl https://{domain}/api/integrations/freshdesk/accounts/{id}/fields -v -u {name}:{password} -X GET",
12357         "type": "json"
12358       }
12359     ],
12360     "name": "getFields",
12361     "group": "Freshdesk_Accounts",
12362     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12363     "version": "0.0.0",
12364     "filename": "server/api/intFreshdeskAccount/index.js",
12365     "groupTitle": "Freshdesk_Accounts"
12366   },
12367   {
12368     "type": "put",
12369     "url": "/api/integrations/freshdesk/accounts/{id}",
12370     "title": "Update an existing Freshdesk Account",
12371     "examples": [
12372       {
12373         "title": "Example usage:",
12374         "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",
12375         "type": "json"
12376       }
12377     ],
12378     "name": "updateFreshdesk_Accounts",
12379     "group": "Freshdesk_Accounts",
12380     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12381     "version": "0.0.0",
12382     "filename": "server/api/intFreshdeskAccount/index.js",
12383     "groupTitle": "Freshdesk_Accounts"
12384   },
12385   {
12386     "type": "post",
12387     "url": "/api/integrations/freshdesk/configurations",
12388     "title": "Creates a new Freshdesk Configuration",
12389     "examples": [
12390       {
12391         "title": "Example usage:",
12392         "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",
12393         "type": "json"
12394       }
12395     ],
12396     "name": "CreateFreshdesk_Configurations",
12397     "group": "Freshdesk_Configurations",
12398     "parameter": {
12399       "fields": {
12400         "Body": [
12401           {
12402             "group": "Body",
12403             "type": "String",
12404             "optional": true,
12405             "field": "name",
12406             "description": ""
12407           },
12408           {
12409             "group": "Body",
12410             "type": "String",
12411             "optional": true,
12412             "field": "description",
12413             "description": ""
12414           }
12415         ]
12416       }
12417     },
12418     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12419     "version": "0.0.0",
12420     "filename": "server/api/intFreshdeskConfiguration/index.js",
12421     "groupTitle": "Freshdesk_Configurations"
12422   },
12423   {
12424     "type": "delete",
12425     "url": "/api/integrations/freshdesk/configurations/{id}",
12426     "title": "Deletes a Freshdesk Configuration",
12427     "examples": [
12428       {
12429         "title": "Example usage:",
12430         "content": "curl https://{domain}/api/integrations/freshdesk/configurations/{id} -v -u {name}:{password} -X DELETE",
12431         "type": "json"
12432       }
12433     ],
12434     "name": "DeleteFreshdesk_Configurations",
12435     "group": "Freshdesk_Configurations",
12436     "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>",
12437     "version": "0.0.0",
12438     "filename": "server/api/intFreshdeskConfiguration/index.js",
12439     "groupTitle": "Freshdesk_Configurations"
12440   },
12441   {
12442     "type": "get",
12443     "url": "/api/integrations/freshdesk/configurations",
12444     "title": "Gets a list of Freshdesk Configurations",
12445     "examples": [
12446       {
12447         "title": "Example usage:",
12448         "content": "curl https://{domain}/api/integrations/freshdesk/configurations -v -u {name}:{password}",
12449         "type": "json"
12450       }
12451     ],
12452     "name": "GetFreshdesk_Configurations",
12453     "group": "Freshdesk_Configurations",
12454     "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>",
12455     "version": "0.0.0",
12456     "filename": "server/api/intFreshdeskConfiguration/index.js",
12457     "groupTitle": "Freshdesk_Configurations"
12458   },
12459   {
12460     "type": "get",
12461     "url": "/api/integrations/freshdesk/configurations/{id}",
12462     "title": "Gets a single Freshdesk Configuration",
12463     "examples": [
12464       {
12465         "title": "Example usage:",
12466         "content": "curl https://{domain}/api/integrations/freshdesk/configurations/{id} -v -u {name}:{password}",
12467         "type": "json"
12468       }
12469     ],
12470     "name": "ShowFreshdesk_Configurations",
12471     "group": "Freshdesk_Configurations",
12472     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12473     "version": "0.0.0",
12474     "filename": "server/api/intFreshdeskConfiguration/index.js",
12475     "groupTitle": "Freshdesk_Configurations"
12476   },
12477   {
12478     "type": "get",
12479     "url": "/api/integrations/freshdesk/configurations/{id}/descriptions",
12480     "title": "Gets configurations descriptions",
12481     "examples": [
12482       {
12483         "title": "Example usage:",
12484         "content": "curl https://{domain}/api/integrations/freshdesk/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
12485         "type": "json"
12486       }
12487     ],
12488     "name": "getDescriptions",
12489     "group": "Freshdesk_Configurations",
12490     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12491     "version": "0.0.0",
12492     "filename": "server/api/intFreshdeskConfiguration/index.js",
12493     "groupTitle": "Freshdesk_Configurations"
12494   },
12495   {
12496     "type": "get",
12497     "url": "/api/integrations/freshdesk/configurations/{id}/fields",
12498     "title": "Gets configurations fields",
12499     "examples": [
12500       {
12501         "title": "Example usage:",
12502         "content": "curl https://{domain}/api/integrations/freshdesk/configurations/{id}/fields -v -u {name}:{password} -X GET",
12503         "type": "json"
12504       }
12505     ],
12506     "name": "getFields",
12507     "group": "Freshdesk_Configurations",
12508     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12509     "version": "0.0.0",
12510     "filename": "server/api/intFreshdeskConfiguration/index.js",
12511     "groupTitle": "Freshdesk_Configurations"
12512   },
12513   {
12514     "type": "get",
12515     "url": "/api/integrations/freshdesk/configurations/{id}/subjects",
12516     "title": "Gets configurations subjects",
12517     "examples": [
12518       {
12519         "title": "Example usage:",
12520         "content": "curl https://{domain}/api/integrations/freshdesk/configurations/{id}/subjects -v -u {name}:{password} -X GET",
12521         "type": "json"
12522       }
12523     ],
12524     "name": "getSubjects",
12525     "group": "Freshdesk_Configurations",
12526     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12527     "version": "0.0.0",
12528     "filename": "server/api/intFreshdeskConfiguration/index.js",
12529     "groupTitle": "Freshdesk_Configurations"
12530   },
12531   {
12532     "type": "get",
12533     "url": "/api/integrations/freshdesk/configurations/{id}/tags",
12534     "title": "Gets configurations tags",
12535     "examples": [
12536       {
12537         "title": "Example usage:",
12538         "content": "curl https://{domain}/api/integrations/freshdesk/configurations/{id}/tags -v -u {name}:{password} -X GET",
12539         "type": "json"
12540       }
12541     ],
12542     "name": "getTags",
12543     "group": "Freshdesk_Configurations",
12544     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12545     "version": "0.0.0",
12546     "filename": "server/api/intFreshdeskConfiguration/index.js",
12547     "groupTitle": "Freshdesk_Configurations"
12548   },
12549   {
12550     "type": "post",
12551     "url": "/api/integrations/freshdesk/configurations/{id}/tags",
12552     "title": "Sets new tags",
12553     "examples": [
12554       {
12555         "title": "Example usage:",
12556         "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",
12557         "type": "json"
12558       }
12559     ],
12560     "name": "setTags",
12561     "group": "Freshdesk_Configurations",
12562     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12563     "version": "0.0.0",
12564     "filename": "server/api/intFreshdeskConfiguration/index.js",
12565     "groupTitle": "Freshdesk_Configurations"
12566   },
12567   {
12568     "type": "put",
12569     "url": "/api/integrations/freshdesk/configurations/{id}",
12570     "title": "Update an existing Freshdesk Configuration",
12571     "examples": [
12572       {
12573         "title": "Example usage:",
12574         "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",
12575         "type": "json"
12576       }
12577     ],
12578     "name": "updateFreshdesk_Configurations",
12579     "group": "Freshdesk_Configurations",
12580     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12581     "version": "0.0.0",
12582     "filename": "server/api/intFreshdeskConfiguration/index.js",
12583     "groupTitle": "Freshdesk_Configurations"
12584   },
12585   {
12586     "type": "post",
12587     "url": "/api/integrations/freshdesk/fields",
12588     "title": "Creates a new Freshdesk Field",
12589     "examples": [
12590       {
12591         "title": "Example usage:",
12592         "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",
12593         "type": "json"
12594       }
12595     ],
12596     "name": "CreateFreshdesk_Fields",
12597     "group": "Freshdesk_Fields",
12598     "parameter": {
12599       "fields": {
12600         "Body": [
12601           {
12602             "group": "Body",
12603             "type": "String",
12604             "allowedValues": [
12605               "\"string\"",
12606               "\"variable\"",
12607               "\"customVariable\"",
12608               "\"keyValue\"",
12609               "\"picklist\""
12610             ],
12611             "optional": true,
12612             "field": "type",
12613             "description": ""
12614           },
12615           {
12616             "group": "Body",
12617             "type": "String",
12618             "optional": true,
12619             "field": "content",
12620             "description": ""
12621           },
12622           {
12623             "group": "Body",
12624             "type": "String",
12625             "optional": true,
12626             "field": "key",
12627             "description": ""
12628           },
12629           {
12630             "group": "Body",
12631             "type": "String",
12632             "allowedValues": [
12633               "\"string\"",
12634               "\"variable\"",
12635               "\"customVariable\""
12636             ],
12637             "optional": true,
12638             "field": "keyType",
12639             "description": ""
12640           },
12641           {
12642             "group": "Body",
12643             "type": "String",
12644             "optional": true,
12645             "field": "keyContent",
12646             "description": ""
12647           },
12648           {
12649             "group": "Body",
12650             "type": "String",
12651             "optional": true,
12652             "field": "idField",
12653             "description": ""
12654           },
12655           {
12656             "group": "Body",
12657             "type": "String",
12658             "optional": true,
12659             "field": "nameField",
12660             "description": ""
12661           },
12662           {
12663             "group": "Body",
12664             "type": "Boolean",
12665             "optional": true,
12666             "field": "customField",
12667             "description": ""
12668           },
12669           {
12670             "group": "Body",
12671             "type": "String",
12672             "optional": true,
12673             "field": "variableName",
12674             "description": ""
12675           }
12676         ]
12677       }
12678     },
12679     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12680     "version": "0.0.0",
12681     "filename": "server/api/intFreshdeskField/index.js",
12682     "groupTitle": "Freshdesk_Fields"
12683   },
12684   {
12685     "type": "delete",
12686     "url": "/api/integrations/freshdesk/fields/{id}",
12687     "title": "Deletes a Freshdesk Field",
12688     "examples": [
12689       {
12690         "title": "Example usage:",
12691         "content": "curl https://{domain}/api/integrations/freshdesk/fields/{id} -v -u {name}:{password} -X DELETE",
12692         "type": "json"
12693       }
12694     ],
12695     "name": "DeleteFreshdesk_Fields",
12696     "group": "Freshdesk_Fields",
12697     "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>",
12698     "version": "0.0.0",
12699     "filename": "server/api/intFreshdeskField/index.js",
12700     "groupTitle": "Freshdesk_Fields"
12701   },
12702   {
12703     "type": "get",
12704     "url": "/api/integrations/freshdesk/fields",
12705     "title": "Gets a list of Freshdesk Fields",
12706     "examples": [
12707       {
12708         "title": "Example usage:",
12709         "content": "curl https://{domain}/api/integrations/freshdesk/fields -v -u {name}:{password}",
12710         "type": "json"
12711       }
12712     ],
12713     "name": "GetFreshdesk_Fields",
12714     "group": "Freshdesk_Fields",
12715     "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>",
12716     "version": "0.0.0",
12717     "filename": "server/api/intFreshdeskField/index.js",
12718     "groupTitle": "Freshdesk_Fields"
12719   },
12720   {
12721     "type": "get",
12722     "url": "/api/integrations/freshdesk/fields/{id}",
12723     "title": "Gets a single Freshdesk Field",
12724     "examples": [
12725       {
12726         "title": "Example usage:",
12727         "content": "curl https://{domain}/api/integrations/freshdesk/fields/{id} -v -u {name}:{password}",
12728         "type": "json"
12729       }
12730     ],
12731     "name": "ShowFreshdesk_Fields",
12732     "group": "Freshdesk_Fields",
12733     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12734     "version": "0.0.0",
12735     "filename": "server/api/intFreshdeskField/index.js",
12736     "groupTitle": "Freshdesk_Fields"
12737   },
12738   {
12739     "type": "put",
12740     "url": "/api/integrations/freshdesk/fields/{id}",
12741     "title": "Update an existing Freshdesk Field",
12742     "examples": [
12743       {
12744         "title": "Example usage:",
12745         "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",
12746         "type": "json"
12747       }
12748     ],
12749     "name": "updateFreshdesk_Fields",
12750     "group": "Freshdesk_Fields",
12751     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12752     "version": "0.0.0",
12753     "filename": "server/api/intFreshdeskField/index.js",
12754     "groupTitle": "Freshdesk_Fields"
12755   },
12756   {
12757     "type": "post",
12758     "url": "/api/integrations/freshsales/accounts",
12759     "title": "Creates a new Freshsales Account",
12760     "examples": [
12761       {
12762         "title": "Example usage:",
12763         "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",
12764         "type": "json"
12765       }
12766     ],
12767     "name": "CreateFreshsales_Accounts",
12768     "group": "Freshsales_Accounts",
12769     "parameter": {
12770       "fields": {
12771         "Body": [
12772           {
12773             "group": "Body",
12774             "type": "String",
12775             "optional": true,
12776             "field": "name",
12777             "description": ""
12778           },
12779           {
12780             "group": "Body",
12781             "type": "String",
12782             "optional": true,
12783             "field": "description",
12784             "description": ""
12785           },
12786           {
12787             "group": "Body",
12788             "type": "String",
12789             "optional": true,
12790             "field": "username",
12791             "description": ""
12792           },
12793           {
12794             "group": "Body",
12795             "type": "String",
12796             "optional": true,
12797             "field": "apiKey",
12798             "description": ""
12799           },
12800           {
12801             "group": "Body",
12802             "type": "String",
12803             "optional": true,
12804             "field": "remoteUri",
12805             "description": ""
12806           },
12807           {
12808             "group": "Body",
12809             "type": "String",
12810             "optional": false,
12811             "field": "serverUrl",
12812             "description": ""
12813           }
12814         ]
12815       }
12816     },
12817     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12818     "version": "0.0.0",
12819     "filename": "server/api/intFreshsalesAccount/index.js",
12820     "groupTitle": "Freshsales_Accounts"
12821   },
12822   {
12823     "type": "delete",
12824     "url": "/api/integrations/freshsales/accounts/{id}",
12825     "title": "Deletes a Freshsales Account",
12826     "examples": [
12827       {
12828         "title": "Example usage:",
12829         "content": "curl https://{domain}/api/integrations/freshsales/accounts/{id} -v -u {name}:{password} -X DELETE",
12830         "type": "json"
12831       }
12832     ],
12833     "name": "DeleteFreshsales_Accounts",
12834     "group": "Freshsales_Accounts",
12835     "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>",
12836     "version": "0.0.0",
12837     "filename": "server/api/intFreshsalesAccount/index.js",
12838     "groupTitle": "Freshsales_Accounts"
12839   },
12840   {
12841     "type": "get",
12842     "url": "/api/integrations/freshsales/accounts",
12843     "title": "Gets a list of Freshsales Accounts",
12844     "examples": [
12845       {
12846         "title": "Example usage:",
12847         "content": "curl https://{domain}/api/integrations/freshsales/accounts -v -u {name}:{password}",
12848         "type": "json"
12849       }
12850     ],
12851     "name": "GetFreshsales_Accounts",
12852     "group": "Freshsales_Accounts",
12853     "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>",
12854     "version": "0.0.0",
12855     "filename": "server/api/intFreshsalesAccount/index.js",
12856     "groupTitle": "Freshsales_Accounts"
12857   },
12858   {
12859     "type": "get",
12860     "url": "/api/integrations/freshsales/accounts/{id}",
12861     "title": "Gets a single Freshsales Account",
12862     "examples": [
12863       {
12864         "title": "Example usage:",
12865         "content": "curl https://{domain}/api/integrations/freshsales/accounts/{id} -v -u {name}:{password}",
12866         "type": "json"
12867       }
12868     ],
12869     "name": "ShowFreshsales_Accounts",
12870     "group": "Freshsales_Accounts",
12871     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12872     "version": "0.0.0",
12873     "filename": "server/api/intFreshsalesAccount/index.js",
12874     "groupTitle": "Freshsales_Accounts"
12875   },
12876   {
12877     "type": "post",
12878     "url": "/api/integrations/freshsales/accounts/{id}/configurations",
12879     "title": "Creates new configuration",
12880     "examples": [
12881       {
12882         "title": "Example usage:",
12883         "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",
12884         "type": "json"
12885       }
12886     ],
12887     "name": "addConfiguration",
12888     "group": "Freshsales_Accounts",
12889     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12890     "version": "0.0.0",
12891     "filename": "server/api/intFreshsalesAccount/index.js",
12892     "groupTitle": "Freshsales_Accounts"
12893   },
12894   {
12895     "type": "get",
12896     "url": "/api/integrations/freshsales/accounts/{id}/configurations",
12897     "title": "Gets account configurations",
12898     "examples": [
12899       {
12900         "title": "Example usage:",
12901         "content": "curl https://{domain}/api/integrations/freshsales/accounts/{id}/configurations -v -u {name}:{password} -X GET",
12902         "type": "json"
12903       }
12904     ],
12905     "name": "getConfigurations",
12906     "group": "Freshsales_Accounts",
12907     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12908     "version": "0.0.0",
12909     "filename": "server/api/intFreshsalesAccount/index.js",
12910     "groupTitle": "Freshsales_Accounts"
12911   },
12912   {
12913     "type": "get",
12914     "url": "/api/integrations/freshsales/accounts/{id}/fields",
12915     "title": "Gets account fields",
12916     "examples": [
12917       {
12918         "title": "Example usage:",
12919         "content": "curl https://{domain}/api/integrations/freshsales/accounts/{id}/fields -v -u {name}:{password} -X GET",
12920         "type": "json"
12921       }
12922     ],
12923     "name": "getFields",
12924     "group": "Freshsales_Accounts",
12925     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12926     "version": "0.0.0",
12927     "filename": "server/api/intFreshsalesAccount/index.js",
12928     "groupTitle": "Freshsales_Accounts"
12929   },
12930   {
12931     "type": "put",
12932     "url": "/api/integrations/freshsales/accounts/{id}",
12933     "title": "Update an existing Freshsales Account",
12934     "examples": [
12935       {
12936         "title": "Example usage:",
12937         "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",
12938         "type": "json"
12939       }
12940     ],
12941     "name": "updateFreshsales_Accounts",
12942     "group": "Freshsales_Accounts",
12943     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12944     "version": "0.0.0",
12945     "filename": "server/api/intFreshsalesAccount/index.js",
12946     "groupTitle": "Freshsales_Accounts"
12947   },
12948   {
12949     "type": "post",
12950     "url": "/api/integrations/freshsales/configurations",
12951     "title": "Creates a new Freshsales Configuration",
12952     "examples": [
12953       {
12954         "title": "Example usage:",
12955         "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",
12956         "type": "json"
12957       }
12958     ],
12959     "name": "CreateFreshsales_Configurations",
12960     "group": "Freshsales_Configurations",
12961     "parameter": {
12962       "fields": {
12963         "Body": [
12964           {
12965             "group": "Body",
12966             "type": "String",
12967             "optional": true,
12968             "field": "name",
12969             "description": ""
12970           },
12971           {
12972             "group": "Body",
12973             "type": "String",
12974             "optional": true,
12975             "field": "description",
12976             "description": ""
12977           }
12978         ]
12979       }
12980     },
12981     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12982     "version": "0.0.0",
12983     "filename": "server/api/intFreshsalesConfiguration/index.js",
12984     "groupTitle": "Freshsales_Configurations"
12985   },
12986   {
12987     "type": "delete",
12988     "url": "/api/integrations/freshsales/configurations/{id}",
12989     "title": "Deletes a Freshsales Configuration",
12990     "examples": [
12991       {
12992         "title": "Example usage:",
12993         "content": "curl https://{domain}/api/integrations/freshsales/configurations/{id} -v -u {name}:{password} -X DELETE",
12994         "type": "json"
12995       }
12996     ],
12997     "name": "DeleteFreshsales_Configurations",
12998     "group": "Freshsales_Configurations",
12999     "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>",
13000     "version": "0.0.0",
13001     "filename": "server/api/intFreshsalesConfiguration/index.js",
13002     "groupTitle": "Freshsales_Configurations"
13003   },
13004   {
13005     "type": "get",
13006     "url": "/api/integrations/freshsales/configurations",
13007     "title": "Gets a list of Freshsales Configurations",
13008     "examples": [
13009       {
13010         "title": "Example usage:",
13011         "content": "curl https://{domain}/api/integrations/freshsales/configurations -v -u {name}:{password}",
13012         "type": "json"
13013       }
13014     ],
13015     "name": "GetFreshsales_Configurations",
13016     "group": "Freshsales_Configurations",
13017     "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>",
13018     "version": "0.0.0",
13019     "filename": "server/api/intFreshsalesConfiguration/index.js",
13020     "groupTitle": "Freshsales_Configurations"
13021   },
13022   {
13023     "type": "get",
13024     "url": "/api/integrations/freshsales/configurations/{id}",
13025     "title": "Gets a single Freshsales Configuration",
13026     "examples": [
13027       {
13028         "title": "Example usage:",
13029         "content": "curl https://{domain}/api/integrations/freshsales/configurations/{id} -v -u {name}:{password}",
13030         "type": "json"
13031       }
13032     ],
13033     "name": "ShowFreshsales_Configurations",
13034     "group": "Freshsales_Configurations",
13035     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13036     "version": "0.0.0",
13037     "filename": "server/api/intFreshsalesConfiguration/index.js",
13038     "groupTitle": "Freshsales_Configurations"
13039   },
13040   {
13041     "type": "get",
13042     "url": "/api/integrations/freshsales/configurations/{id}/descriptions",
13043     "title": "Gets configurations descriptions",
13044     "examples": [
13045       {
13046         "title": "Example usage:",
13047         "content": "curl https://{domain}/api/integrations/freshsales/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
13048         "type": "json"
13049       }
13050     ],
13051     "name": "getDescriptions",
13052     "group": "Freshsales_Configurations",
13053     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13054     "version": "0.0.0",
13055     "filename": "server/api/intFreshsalesConfiguration/index.js",
13056     "groupTitle": "Freshsales_Configurations"
13057   },
13058   {
13059     "type": "get",
13060     "url": "/api/integrations/freshsales/configurations/{id}/fields",
13061     "title": "Gets configurations fields",
13062     "examples": [
13063       {
13064         "title": "Example usage:",
13065         "content": "curl https://{domain}/api/integrations/freshsales/configurations/{id}/fields -v -u {name}:{password} -X GET",
13066         "type": "json"
13067       }
13068     ],
13069     "name": "getFields",
13070     "group": "Freshsales_Configurations",
13071     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13072     "version": "0.0.0",
13073     "filename": "server/api/intFreshsalesConfiguration/index.js",
13074     "groupTitle": "Freshsales_Configurations"
13075   },
13076   {
13077     "type": "get",
13078     "url": "/api/integrations/freshsales/configurations/{id}/subjects",
13079     "title": "Gets configurations subjects",
13080     "examples": [
13081       {
13082         "title": "Example usage:",
13083         "content": "curl https://{domain}/api/integrations/freshsales/configurations/{id}/subjects -v -u {name}:{password} -X GET",
13084         "type": "json"
13085       }
13086     ],
13087     "name": "getSubjects",
13088     "group": "Freshsales_Configurations",
13089     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13090     "version": "0.0.0",
13091     "filename": "server/api/intFreshsalesConfiguration/index.js",
13092     "groupTitle": "Freshsales_Configurations"
13093   },
13094   {
13095     "type": "put",
13096     "url": "/api/integrations/freshsales/configurations/{id}",
13097     "title": "Update an existing Freshsales Configuration",
13098     "examples": [
13099       {
13100         "title": "Example usage:",
13101         "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",
13102         "type": "json"
13103       }
13104     ],
13105     "name": "updateFreshsales_Configurations",
13106     "group": "Freshsales_Configurations",
13107     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13108     "version": "0.0.0",
13109     "filename": "server/api/intFreshsalesConfiguration/index.js",
13110     "groupTitle": "Freshsales_Configurations"
13111   },
13112   {
13113     "type": "post",
13114     "url": "/api/integrations/freshsales/fields",
13115     "title": "Creates a new Freshsales Field",
13116     "examples": [
13117       {
13118         "title": "Example usage:",
13119         "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",
13120         "type": "json"
13121       }
13122     ],
13123     "name": "CreateFreshsales_Fields",
13124     "group": "Freshsales_Fields",
13125     "parameter": {
13126       "fields": {
13127         "Body": [
13128           {
13129             "group": "Body",
13130             "type": "String",
13131             "allowedValues": [
13132               "\"string\"",
13133               "\"variable\"",
13134               "\"customVariable\"",
13135               "\"keyValue\"",
13136               "\"picklist\""
13137             ],
13138             "optional": true,
13139             "field": "type",
13140             "description": ""
13141           },
13142           {
13143             "group": "Body",
13144             "type": "String",
13145             "optional": true,
13146             "field": "content",
13147             "description": ""
13148           },
13149           {
13150             "group": "Body",
13151             "type": "String",
13152             "optional": true,
13153             "field": "key",
13154             "description": ""
13155           },
13156           {
13157             "group": "Body",
13158             "type": "String",
13159             "allowedValues": [
13160               "\"string\"",
13161               "\"variable\"",
13162               "\"customVariable\""
13163             ],
13164             "optional": true,
13165             "field": "keyType",
13166             "description": ""
13167           },
13168           {
13169             "group": "Body",
13170             "type": "String",
13171             "optional": true,
13172             "field": "keyContent",
13173             "description": ""
13174           },
13175           {
13176             "group": "Body",
13177             "type": "String",
13178             "optional": true,
13179             "field": "idField",
13180             "description": ""
13181           },
13182           {
13183             "group": "Body",
13184             "type": "String",
13185             "optional": true,
13186             "field": "nameField",
13187             "description": ""
13188           },
13189           {
13190             "group": "Body",
13191             "type": "Boolean",
13192             "optional": true,
13193             "field": "customField",
13194             "description": ""
13195           },
13196           {
13197             "group": "Body",
13198             "type": "String",
13199             "optional": true,
13200             "field": "variableName",
13201             "description": ""
13202           }
13203         ]
13204       }
13205     },
13206     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13207     "version": "0.0.0",
13208     "filename": "server/api/intFreshsalesField/index.js",
13209     "groupTitle": "Freshsales_Fields"
13210   },
13211   {
13212     "type": "delete",
13213     "url": "/api/integrations/freshsales/fields/{id}",
13214     "title": "Deletes a Freshsales Field",
13215     "examples": [
13216       {
13217         "title": "Example usage:",
13218         "content": "curl https://{domain}/api/integrations/freshsales/fields/{id} -v -u {name}:{password} -X DELETE",
13219         "type": "json"
13220       }
13221     ],
13222     "name": "DeleteFreshsales_Fields",
13223     "group": "Freshsales_Fields",
13224     "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>",
13225     "version": "0.0.0",
13226     "filename": "server/api/intFreshsalesField/index.js",
13227     "groupTitle": "Freshsales_Fields"
13228   },
13229   {
13230     "type": "get",
13231     "url": "/api/integrations/freshsales/fields",
13232     "title": "Gets a list of Freshsales Fields",
13233     "examples": [
13234       {
13235         "title": "Example usage:",
13236         "content": "curl https://{domain}/api/integrations/freshsales/fields -v -u {name}:{password}",
13237         "type": "json"
13238       }
13239     ],
13240     "name": "GetFreshsales_Fields",
13241     "group": "Freshsales_Fields",
13242     "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>",
13243     "version": "0.0.0",
13244     "filename": "server/api/intFreshsalesField/index.js",
13245     "groupTitle": "Freshsales_Fields"
13246   },
13247   {
13248     "type": "get",
13249     "url": "/api/integrations/freshsales/fields/{id}",
13250     "title": "Gets a single Freshsales Field",
13251     "examples": [
13252       {
13253         "title": "Example usage:",
13254         "content": "curl https://{domain}/api/integrations/freshsales/fields/{id} -v -u {name}:{password}",
13255         "type": "json"
13256       }
13257     ],
13258     "name": "ShowFreshsales_Fields",
13259     "group": "Freshsales_Fields",
13260     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13261     "version": "0.0.0",
13262     "filename": "server/api/intFreshsalesField/index.js",
13263     "groupTitle": "Freshsales_Fields"
13264   },
13265   {
13266     "type": "put",
13267     "url": "/api/integrations/freshsales/fields/{id}",
13268     "title": "Update an existing Freshsales Field",
13269     "examples": [
13270       {
13271         "title": "Example usage:",
13272         "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",
13273         "type": "json"
13274       }
13275     ],
13276     "name": "updateFreshsales_Fields",
13277     "group": "Freshsales_Fields",
13278     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13279     "version": "0.0.0",
13280     "filename": "server/api/intFreshsalesField/index.js",
13281     "groupTitle": "Freshsales_Fields"
13282   },
13283   {
13284     "type": "post",
13285     "url": "/api/campaigns/{id}/blacklists",
13286     "title": "Add blacklists to an IVR campaign",
13287     "examples": [
13288       {
13289         "title": "Example usage:",
13290         "content": "curl https://{domain}/api/campaigns/{id}/blacklists -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
13291         "type": "json"
13292       }
13293     ],
13294     "name": "AddBlackLists",
13295     "group": "IVR_Campaigns",
13296     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13297     "version": "0.0.0",
13298     "filename": "server/api/campaign/index.js",
13299     "groupTitle": "IVR_Campaigns"
13300   },
13301   {
13302     "type": "post",
13303     "url": "/api/campaigns/{id}/lists",
13304     "title": "Add lists to an IVR campaign",
13305     "examples": [
13306       {
13307         "title": "Example usage:",
13308         "content": "curl https://{domain}/api/campaigns/{id}/lists -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
13309         "type": "json"
13310       }
13311     ],
13312     "name": "AddLists",
13313     "group": "IVR_Campaigns",
13314     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13315     "version": "0.0.0",
13316     "filename": "server/api/campaign/index.js",
13317     "groupTitle": "IVR_Campaigns"
13318   },
13319   {
13320     "type": "post",
13321     "url": "/api/campaigns/clone",
13322     "title": "Clone an existing IVR Campaign",
13323     "examples": [
13324       {
13325         "title": "Example usage:",
13326         "content": "curl https://{domain}/api/campaigns/clone -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
13327         "type": "json"
13328       }
13329     ],
13330     "name": "CloneIVR_Campaigns",
13331     "group": "IVR_Campaigns",
13332     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13333     "version": "0.0.0",
13334     "filename": "server/api/campaign/index.js",
13335     "groupTitle": "IVR_Campaigns"
13336   },
13337   {
13338     "type": "post",
13339     "url": "/api/campaigns",
13340     "title": "Creates a new IVR Campaign",
13341     "examples": [
13342       {
13343         "title": "Example usage:",
13344         "content": "curl https://{domain}/api/campaigns -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
13345         "type": "json"
13346       }
13347     ],
13348     "name": "CreateIVR_Campaigns",
13349     "group": "IVR_Campaigns",
13350     "parameter": {
13351       "fields": {
13352         "Body": [
13353           {
13354             "group": "Body",
13355             "type": "String",
13356             "optional": false,
13357             "field": "name",
13358             "description": ""
13359           },
13360           {
13361             "group": "Body",
13362             "type": "String",
13363             "allowedValues": [
13364               "\"ivr\""
13365             ],
13366             "optional": false,
13367             "field": "type",
13368             "description": ""
13369           },
13370           {
13371             "group": "Body",
13372             "type": "String",
13373             "optional": true,
13374             "field": "description",
13375             "description": ""
13376           },
13377           {
13378             "group": "Body",
13379             "type": "Boolean",
13380             "optional": true,
13381             "field": "active",
13382             "description": "<p>Active/Disactive Campaign</p>"
13383           },
13384           {
13385             "group": "Body",
13386             "type": "Integer",
13387             "optional": true,
13388             "field": "limitCalls",
13389             "description": "<p>Max 200 calls.</p>"
13390           },
13391           {
13392             "group": "Body",
13393             "type": "String",
13394             "optional": true,
13395             "field": "dialOriginateCallerIdName",
13396             "description": ""
13397           },
13398           {
13399             "group": "Body",
13400             "type": "String",
13401             "optional": true,
13402             "field": "dialOriginateCallerIdNumber",
13403             "description": ""
13404           },
13405           {
13406             "group": "Body",
13407             "type": "Integer",
13408             "optional": true,
13409             "field": "dialOriginateTimeout",
13410             "description": "<p>Originate Timeout Seconds (min:1, max:999)</p>"
13411           },
13412           {
13413             "group": "Body",
13414             "type": "Integer",
13415             "optional": true,
13416             "field": "dialCongestionMaxRetry",
13417             "description": "<p>#Congestion Retry (min:1, max:999)</p>"
13418           },
13419           {
13420             "group": "Body",
13421             "type": "Integer",
13422             "optional": true,
13423             "field": "dialCongestionRetryFrequency",
13424             "description": "<p>Congestion Retry Frequency Minutes (min:1, max:99999)</p>"
13425           },
13426           {
13427             "group": "Body",
13428             "type": "Integer",
13429             "optional": true,
13430             "field": "dialBusyMaxRetry",
13431             "description": "<p>#Busy Retry (min:1, max:999)</p>"
13432           },
13433           {
13434             "group": "Body",
13435             "type": "Integer",
13436             "optional": true,
13437             "field": "dialBusyRetryFrequency",
13438             "description": "<p>Busy Retry Frequency Minutes (min:1, max:99999)</p>"
13439           },
13440           {
13441             "group": "Body",
13442             "type": "Integer",
13443             "optional": true,
13444             "field": "dialNoAnswerMaxRetry",
13445             "description": "<p>#NoAnswer Retry (min:1, max:999)</p>"
13446           },
13447           {
13448             "group": "Body",
13449             "type": "Integer",
13450             "optional": true,
13451             "field": "dialNoAnswerRetryFrequency",
13452             "description": "<p>NoAnswer Retry Frequency Minutes (min:1, max:99999)</p>"
13453           },
13454           {
13455             "group": "Body",
13456             "type": "Integer",
13457             "optional": true,
13458             "field": "dialGlobalMaxRetry",
13459             "description": "<p>#Global Max Retry (min:1, max:999)</p>"
13460           },
13461           {
13462             "group": "Body",
13463             "type": "String",
13464             "optional": true,
13465             "field": "dialTimezone",
13466             "description": ""
13467           },
13468           {
13469             "group": "Body",
13470             "type": "String",
13471             "optional": true,
13472             "field": "dialGlobalInterval",
13473             "description": ""
13474           },
13475           {
13476             "group": "Body",
13477             "type": "String",
13478             "allowedValues": [
13479               "\"always\"",
13480               "\"never\"",
13481               "\"onlyIfOpen\""
13482             ],
13483             "optional": true,
13484             "field": "dialCheckDuplicateType",
13485             "description": ""
13486           },
13487           {
13488             "group": "Body",
13489             "type": "Boolean",
13490             "optional": true,
13491             "field": "dialAMDActive",
13492             "description": "<p>Active/Disactive AMD</p>"
13493           },
13494           {
13495             "group": "Body",
13496             "type": "Integer",
13497             "optional": true,
13498             "field": "dialAMDInitialSilence",
13499             "description": "<p>#AMD Initial Silence</p>"
13500           },
13501           {
13502             "group": "Body",
13503             "type": "Integer",
13504             "optional": true,
13505             "field": "dialAMDGreeting",
13506             "description": "<p>#AMD Greeting</p>"
13507           },
13508           {
13509             "group": "Body",
13510             "type": "Integer",
13511             "optional": true,
13512             "field": "dialAMDAfterGreetingSilence",
13513             "description": "<p>#AMD After Greeting Silence</p>"
13514           },
13515           {
13516             "group": "Body",
13517             "type": "Integer",
13518             "optional": true,
13519             "field": "dialAMDTotalAnalysisTime",
13520             "description": "<p>#AMD Total Analysis Time</p>"
13521           },
13522           {
13523             "group": "Body",
13524             "type": "Integer",
13525             "optional": true,
13526             "field": "dialAMDMinWordLength",
13527             "description": "<p>#AMD Min Word Length</p>"
13528           },
13529           {
13530             "group": "Body",
13531             "type": "Integer",
13532             "optional": true,
13533             "field": "dialAMDBetweenWordsSilence",
13534             "description": "<p>#AMD Between Words Silence</p>"
13535           },
13536           {
13537             "group": "Body",
13538             "type": "Integer",
13539             "optional": true,
13540             "field": "dialAMDMaximumNumberOfWords",
13541             "description": "<p>#AMD Maximum Number Of Words</p>"
13542           },
13543           {
13544             "group": "Body",
13545             "type": "Integer",
13546             "optional": true,
13547             "field": "dialAMDSilenceThreshold",
13548             "description": "<p>#AMD Silence Threshold (min:0, max:32767)</p>"
13549           },
13550           {
13551             "group": "Body",
13552             "type": "Integer",
13553             "optional": true,
13554             "field": "dialAMDMaximumWordLength",
13555             "description": "<p>#AMD Maximum Word Length</p>"
13556           },
13557           {
13558             "group": "Body",
13559             "type": "String",
13560             "allowedValues": [
13561               "\"DESC\"",
13562               "\"ASC\""
13563             ],
13564             "optional": true,
13565             "field": "dialOrderByScheduledAt",
13566             "description": ""
13567           },
13568           {
13569             "group": "Body",
13570             "type": "String",
13571             "optional": true,
13572             "field": "dialPrefix",
13573             "description": ""
13574           },
13575           {
13576             "group": "Body",
13577             "type": "Integer",
13578             "optional": true,
13579             "field": "dialRandomLastDigitCallerIdNumber",
13580             "description": "<p>Random Last Digit (min:1, max:15)</p>"
13581           },
13582           {
13583             "group": "Body",
13584             "type": "Integer",
13585             "optional": true,
13586             "field": "dialCutDigit",
13587             "description": "<p>Cut Digit (min:1, max:15)</p>"
13588           },
13589           {
13590             "group": "Body",
13591             "type": "Integer",
13592             "optional": true,
13593             "field": "dialNoSuchNumberMaxRetry",
13594             "description": "<p>#NoSuchNumber Retry (min:1, max:999)</p>"
13595           },
13596           {
13597             "group": "Body",
13598             "type": "Integer",
13599             "optional": true,
13600             "field": "dialNoSuchNumberRetryFrequency",
13601             "description": "<p>NoSuchNumber Retry Frequency Minutes (min:1, max:99999)</p>"
13602           },
13603           {
13604             "group": "Body",
13605             "type": "Integer",
13606             "optional": true,
13607             "field": "dialDropMaxRetry",
13608             "description": "<p>#Drop Retry (min:1, max:999)</p>"
13609           },
13610           {
13611             "group": "Body",
13612             "type": "Integer",
13613             "optional": true,
13614             "field": "dialDropRetryFrequency",
13615             "description": "<p>Drop Retry Frequency Minutes (min:1, max:99999)</p>"
13616           },
13617           {
13618             "group": "Body",
13619             "type": "Integer",
13620             "optional": true,
13621             "field": "dialAbandonedMaxRetry",
13622             "description": "<p>#Abandoned Retry (min:1, max:999)</p>"
13623           },
13624           {
13625             "group": "Body",
13626             "type": "Integer",
13627             "optional": true,
13628             "field": "dialAbandonedRetryFrequency",
13629             "description": "<p>Abandoned Retry Frequency Minutes (min:1, max:99999)</p>"
13630           },
13631           {
13632             "group": "Body",
13633             "type": "Integer",
13634             "optional": true,
13635             "field": "dialMachineMaxRetry",
13636             "description": "<p>#Machine Retry (min:1, max:999)</p>"
13637           },
13638           {
13639             "group": "Body",
13640             "type": "Integer",
13641             "optional": true,
13642             "field": "dialMachineRetryFrequency",
13643             "description": "<p>Machine Retry Frequency Minutes (min:1, max:99999)</p>"
13644           },
13645           {
13646             "group": "Body",
13647             "type": "Integer",
13648             "optional": true,
13649             "field": "dialAgentRejectMaxRetry",
13650             "description": "<p>#AgentReject Retry (min:1, max:999)</p>"
13651           },
13652           {
13653             "group": "Body",
13654             "type": "Integer",
13655             "optional": true,
13656             "field": "dialAgentRejectRetryFrequency",
13657             "description": "<p>AgentReject Retry Frequency Minutes (min:1, max:99999)</p>"
13658           }
13659         ]
13660       }
13661     },
13662     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13663     "version": "0.0.0",
13664     "filename": "server/api/campaign/index.js",
13665     "groupTitle": "IVR_Campaigns"
13666   },
13667   {
13668     "type": "delete",
13669     "url": "/api/campaigns/{id}",
13670     "title": "Deletes a IVR Campaign",
13671     "examples": [
13672       {
13673         "title": "Example usage:",
13674         "content": "curl https://{domain}/api/campaigns/{id} -v -u {name}:{password} -X DELETE",
13675         "type": "json"
13676       }
13677     ],
13678     "name": "DeleteIVR_Campaigns",
13679     "group": "IVR_Campaigns",
13680     "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>",
13681     "version": "0.0.0",
13682     "filename": "server/api/campaign/index.js",
13683     "groupTitle": "IVR_Campaigns"
13684   },
13685   {
13686     "type": "get",
13687     "url": "/api/campaigns/{id}/blacklists",
13688     "title": "Get IVR campaign blacklists",
13689     "examples": [
13690       {
13691         "title": "Example usage:",
13692         "content": "curl https://{domain}/api/campaigns/{id}/blacklists -v -u {name}:{password} -X GET",
13693         "type": "json"
13694       }
13695     ],
13696     "name": "GetBlackLists",
13697     "group": "IVR_Campaigns",
13698     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13699     "version": "0.0.0",
13700     "filename": "server/api/campaign/index.js",
13701     "groupTitle": "IVR_Campaigns"
13702   },
13703   {
13704     "type": "get",
13705     "url": "/api/campaigns/{id}/finals",
13706     "title": "Gets IVR campaign hopper finals",
13707     "examples": [
13708       {
13709         "title": "Example usage:",
13710         "content": "curl https://{domain}/api/campaigns/{id}/hopper_finals -v -u {name}:{password}  -X GET",
13711         "type": "json"
13712       }
13713     ],
13714     "name": "GetHopperFinals",
13715     "group": "IVR_Campaigns",
13716     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13717     "version": "0.0.0",
13718     "filename": "server/api/campaign/index.js",
13719     "groupTitle": "IVR_Campaigns"
13720   },
13721   {
13722     "type": "get",
13723     "url": "/api/campaigns/{id}/hopper_histories",
13724     "title": "Gets IVR campaign hopper histories",
13725     "examples": [
13726       {
13727         "title": "Example usage:",
13728         "content": "curl https://{domain}/api/campaigns/{id}/hopper_histories -v -u {name}:{password} -X GET",
13729         "type": "json"
13730       }
13731     ],
13732     "name": "GetHopperHistories",
13733     "group": "IVR_Campaigns",
13734     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13735     "version": "0.0.0",
13736     "filename": "server/api/campaign/index.js",
13737     "groupTitle": "IVR_Campaigns"
13738   },
13739   {
13740     "type": "get",
13741     "url": "/api/campaigns/{id}/hoppers",
13742     "title": "Gets IVR campaign hoppers",
13743     "examples": [
13744       {
13745         "title": "Example usage:",
13746         "content": "curl https://{domain}/api/campaigns/{id}/hoppers -v -u {name}:{password} -X GET",
13747         "type": "json"
13748       }
13749     ],
13750     "name": "GetHoppers",
13751     "group": "IVR_Campaigns",
13752     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13753     "version": "0.0.0",
13754     "filename": "server/api/campaign/index.js",
13755     "groupTitle": "IVR_Campaigns"
13756   },
13757   {
13758     "type": "get",
13759     "url": "/api/campaigns",
13760     "title": "Gets a list of IVR Campaigns",
13761     "examples": [
13762       {
13763         "title": "Example usage:",
13764         "content": "curl https://{domain}/api/campaigns -v -u {name}:{password}",
13765         "type": "json"
13766       }
13767     ],
13768     "name": "GetIVR_Campaigns",
13769     "group": "IVR_Campaigns",
13770     "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>",
13771     "version": "0.0.0",
13772     "filename": "server/api/campaign/index.js",
13773     "groupTitle": "IVR_Campaigns"
13774   },
13775   {
13776     "type": "get",
13777     "url": "/api/campaigns/{id}/lists",
13778     "title": "Get IVR campaign lists",
13779     "examples": [
13780       {
13781         "title": "Example usage:",
13782         "content": "curl https://{domain}/api/campaigns/{id}/lists -v -u {name}:{password} -X GET",
13783         "type": "json"
13784       }
13785     ],
13786     "name": "GetLists",
13787     "group": "IVR_Campaigns",
13788     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13789     "version": "0.0.0",
13790     "filename": "server/api/campaign/index.js",
13791     "groupTitle": "IVR_Campaigns"
13792   },
13793   {
13794     "type": "delete",
13795     "url": "/api/campaigns/{id}/blacklists",
13796     "title": "Remove blacklists from an IVR Campaign",
13797     "examples": [
13798       {
13799         "title": "Example usage:",
13800         "content": "curl https://{domain}/api/campaigns/{id}/blacklists?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
13801         "type": "json"
13802       }
13803     ],
13804     "name": "RemoveBlackLists",
13805     "group": "IVR_Campaigns",
13806     "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>",
13807     "version": "0.0.0",
13808     "filename": "server/api/campaign/index.js",
13809     "groupTitle": "IVR_Campaigns"
13810   },
13811   {
13812     "type": "delete",
13813     "url": "/api/campaigns/{id}/lists",
13814     "title": "Remove lists from an IVR Campaign",
13815     "examples": [
13816       {
13817         "title": "Example usage:",
13818         "content": "curl https://{domain}/api/campaigns/{id}/lists?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
13819         "type": "json"
13820       }
13821     ],
13822     "name": "RemoveLists",
13823     "group": "IVR_Campaigns",
13824     "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>",
13825     "version": "0.0.0",
13826     "filename": "server/api/campaign/index.js",
13827     "groupTitle": "IVR_Campaigns"
13828   },
13829   {
13830     "type": "get",
13831     "url": "/api/campaigns/{id}",
13832     "title": "Gets a single IVR Campaign",
13833     "examples": [
13834       {
13835         "title": "Example usage:",
13836         "content": "curl https://{domain}/api/campaigns/{id} -v -u {name}:{password}",
13837         "type": "json"
13838       }
13839     ],
13840     "name": "ShowIVR_Campaigns",
13841     "group": "IVR_Campaigns",
13842     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13843     "version": "0.0.0",
13844     "filename": "server/api/campaign/index.js",
13845     "groupTitle": "IVR_Campaigns"
13846   },
13847   {
13848     "type": "get",
13849     "url": "/api/campaigns/{id}/blacks",
13850     "title": "Gets IVR campaign hopper blacks",
13851     "examples": [
13852       {
13853         "title": "Example usage:",
13854         "content": "curl https://{domain}/api/campaigns/{id}/hopper_black -v -u {name}:{password}  -X GET",
13855         "type": "json"
13856       }
13857     ],
13858     "name": "getHopperBlacks",
13859     "group": "IVR_Campaigns",
13860     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13861     "version": "0.0.0",
13862     "filename": "server/api/campaign/index.js",
13863     "groupTitle": "IVR_Campaigns"
13864   },
13865   {
13866     "type": "put",
13867     "url": "/api/campaigns/{id}",
13868     "title": "Update an existing IVR Campaign",
13869     "examples": [
13870       {
13871         "title": "Example usage:",
13872         "content": "curl https://{domain}/api/campaigns/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
13873         "type": "json"
13874       }
13875     ],
13876     "name": "updateIVR_Campaigns",
13877     "group": "IVR_Campaigns",
13878     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13879     "version": "0.0.0",
13880     "filename": "server/api/campaign/index.js",
13881     "groupTitle": "IVR_Campaigns"
13882   },
13883   {
13884     "type": "post",
13885     "url": "/api/integrations/reports",
13886     "title": "Creates a new Integration Report",
13887     "examples": [
13888       {
13889         "title": "Example usage:",
13890         "content": "curl https://{domain}/api/integrations/reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
13891         "type": "json"
13892       }
13893     ],
13894     "name": "CreateIntegration_Reports",
13895     "group": "Integration_Reports",
13896     "parameter": {
13897       "fields": {
13898         "Body": [
13899           {
13900             "group": "Body",
13901             "type": "String",
13902             "optional": true,
13903             "field": "integration",
13904             "description": ""
13905           },
13906           {
13907             "group": "Body",
13908             "type": "String",
13909             "optional": true,
13910             "field": "eventChannel",
13911             "description": ""
13912           },
13913           {
13914             "group": "Body",
13915             "type": "String",
13916             "optional": true,
13917             "field": "exitStatus",
13918             "description": ""
13919           },
13920           {
13921             "group": "Body",
13922             "type": "String",
13923             "optional": true,
13924             "field": "ticketId",
13925             "description": ""
13926           },
13927           {
13928             "group": "Body",
13929             "type": "Integer",
13930             "optional": true,
13931             "field": "integrationId",
13932             "description": ""
13933           },
13934           {
13935             "group": "Body",
13936             "type": "String",
13937             "optional": true,
13938             "field": "contacts",
13939             "description": ""
13940           },
13941           {
13942             "group": "Body",
13943             "type": "String",
13944             "optional": true,
13945             "field": "uniqueid",
13946             "description": ""
13947           },
13948           {
13949             "group": "Body",
13950             "type": "String",
13951             "optional": true,
13952             "field": "calleridnum",
13953             "description": ""
13954           },
13955           {
13956             "group": "Body",
13957             "type": "String",
13958             "optional": true,
13959             "field": "calleridname",
13960             "description": ""
13961           },
13962           {
13963             "group": "Body",
13964             "type": "String",
13965             "optional": true,
13966             "field": "queue",
13967             "description": ""
13968           },
13969           {
13970             "group": "Body",
13971             "type": "String",
13972             "optional": true,
13973             "field": "interface",
13974             "description": ""
13975           },
13976           {
13977             "group": "Body",
13978             "type": "String",
13979             "optional": true,
13980             "field": "membername",
13981             "description": ""
13982           },
13983           {
13984             "group": "Body",
13985             "type": "String",
13986             "optional": true,
13987             "field": "agentcalledAt",
13988             "description": ""
13989           },
13990           {
13991             "group": "Body",
13992             "type": "String",
13993             "optional": true,
13994             "field": "agentconnectAt",
13995             "description": ""
13996           },
13997           {
13998             "group": "Body",
13999             "type": "Integer",
14000             "optional": true,
14001             "field": "holdtime",
14002             "description": ""
14003           },
14004           {
14005             "group": "Body",
14006             "type": "Boolean",
14007             "optional": true,
14008             "field": "agentcomplete",
14009             "description": ""
14010           },
14011           {
14012             "group": "Body",
14013             "type": "String",
14014             "optional": true,
14015             "field": "agentcompleteAt",
14016             "description": ""
14017           },
14018           {
14019             "group": "Body",
14020             "type": "Integer",
14021             "optional": true,
14022             "field": "talktime",
14023             "description": ""
14024           },
14025           {
14026             "group": "Body",
14027             "type": "Boolean",
14028             "optional": true,
14029             "field": "agentacw",
14030             "description": ""
14031           },
14032           {
14033             "group": "Body",
14034             "type": "Integer",
14035             "optional": true,
14036             "field": "acwtime",
14037             "description": ""
14038           },
14039           {
14040             "group": "Body",
14041             "type": "String",
14042             "optional": true,
14043             "field": "reason",
14044             "description": ""
14045           },
14046           {
14047             "group": "Body",
14048             "type": "Boolean",
14049             "optional": true,
14050             "field": "agentringnoanswer",
14051             "description": ""
14052           },
14053           {
14054             "group": "Body",
14055             "type": "String",
14056             "optional": true,
14057             "field": "agentringnoanswerAt",
14058             "description": ""
14059           },
14060           {
14061             "group": "Body",
14062             "type": "Boolean",
14063             "optional": true,
14064             "field": "agentdump",
14065             "description": ""
14066           },
14067           {
14068             "group": "Body",
14069             "type": "String",
14070             "optional": true,
14071             "field": "agentdumpAt",
14072             "description": ""
14073           },
14074           {
14075             "group": "Body",
14076             "type": "String",
14077             "optional": true,
14078             "field": "lastevent",
14079             "description": ""
14080           },
14081           {
14082             "group": "Body",
14083             "type": "String",
14084             "optional": true,
14085             "field": "channel",
14086             "description": ""
14087           },
14088           {
14089             "group": "Body",
14090             "type": "Integer",
14091             "optional": true,
14092             "field": "channelstate",
14093             "description": ""
14094           },
14095           {
14096             "group": "Body",
14097             "type": "String",
14098             "optional": true,
14099             "field": "channelstatedesc",
14100             "description": ""
14101           },
14102           {
14103             "group": "Body",
14104             "type": "String",
14105             "optional": true,
14106             "field": "connectedlinenum",
14107             "description": ""
14108           },
14109           {
14110             "group": "Body",
14111             "type": "String",
14112             "optional": true,
14113             "field": "connectedlinename",
14114             "description": ""
14115           },
14116           {
14117             "group": "Body",
14118             "type": "String",
14119             "optional": true,
14120             "field": "language",
14121             "description": ""
14122           },
14123           {
14124             "group": "Body",
14125             "type": "String",
14126             "optional": true,
14127             "field": "accountcode",
14128             "description": ""
14129           },
14130           {
14131             "group": "Body",
14132             "type": "String",
14133             "optional": true,
14134             "field": "context",
14135             "description": ""
14136           },
14137           {
14138             "group": "Body",
14139             "type": "String",
14140             "optional": true,
14141             "field": "exten",
14142             "description": ""
14143           },
14144           {
14145             "group": "Body",
14146             "type": "String",
14147             "optional": true,
14148             "field": "priority",
14149             "description": ""
14150           },
14151           {
14152             "group": "Body",
14153             "type": "String",
14154             "optional": true,
14155             "field": "destchannel",
14156             "description": ""
14157           },
14158           {
14159             "group": "Body",
14160             "type": "Integer",
14161             "optional": true,
14162             "field": "destchannelstate",
14163             "description": ""
14164           },
14165           {
14166             "group": "Body",
14167             "type": "String",
14168             "optional": true,
14169             "field": "destchannelstatedesc",
14170             "description": ""
14171           },
14172           {
14173             "group": "Body",
14174             "type": "String",
14175             "optional": true,
14176             "field": "destcalleridnum",
14177             "description": ""
14178           },
14179           {
14180             "group": "Body",
14181             "type": "String",
14182             "optional": true,
14183             "field": "destcalleridname",
14184             "description": ""
14185           },
14186           {
14187             "group": "Body",
14188             "type": "String",
14189             "optional": true,
14190             "field": "destconnectedlinenum",
14191             "description": ""
14192           },
14193           {
14194             "group": "Body",
14195             "type": "String",
14196             "optional": true,
14197             "field": "destconnectedlinename",
14198             "description": ""
14199           },
14200           {
14201             "group": "Body",
14202             "type": "String",
14203             "optional": true,
14204             "field": "destlanguage",
14205             "description": ""
14206           },
14207           {
14208             "group": "Body",
14209             "type": "String",
14210             "optional": true,
14211             "field": "destaccountcode",
14212             "description": ""
14213           },
14214           {
14215             "group": "Body",
14216             "type": "String",
14217             "optional": true,
14218             "field": "destcontext",
14219             "description": ""
14220           },
14221           {
14222             "group": "Body",
14223             "type": "String",
14224             "optional": true,
14225             "field": "destexten",
14226             "description": ""
14227           },
14228           {
14229             "group": "Body",
14230             "type": "String",
14231             "optional": true,
14232             "field": "destpriority",
14233             "description": ""
14234           },
14235           {
14236             "group": "Body",
14237             "type": "String",
14238             "optional": true,
14239             "field": "destuniqueid",
14240             "description": ""
14241           },
14242           {
14243             "group": "Body",
14244             "type": "String",
14245             "optional": true,
14246             "field": "messageId",
14247             "description": ""
14248           },
14249           {
14250             "group": "Body",
14251             "type": "String",
14252             "optional": true,
14253             "field": "inReplyTo",
14254             "description": ""
14255           },
14256           {
14257             "group": "Body",
14258             "type": "String",
14259             "optional": true,
14260             "field": "subject",
14261             "description": ""
14262           },
14263           {
14264             "group": "Body",
14265             "type": "String",
14266             "optional": true,
14267             "field": "from",
14268             "description": ""
14269           },
14270           {
14271             "group": "Body",
14272             "type": "String",
14273             "optional": true,
14274             "field": "to",
14275             "description": ""
14276           },
14277           {
14278             "group": "Body",
14279             "type": "String",
14280             "optional": true,
14281             "field": "cc",
14282             "description": ""
14283           },
14284           {
14285             "group": "Body",
14286             "type": "Text",
14287             "optional": true,
14288             "field": "attachment",
14289             "description": ""
14290           },
14291           {
14292             "group": "Body",
14293             "type": "Text",
14294             "optional": true,
14295             "field": "html",
14296             "description": ""
14297           },
14298           {
14299             "group": "Body",
14300             "type": "Text",
14301             "optional": true,
14302             "field": "text",
14303             "description": ""
14304           },
14305           {
14306             "group": "Body",
14307             "type": "String",
14308             "allowedValues": [
14309               "\"SENT\"",
14310               "\"SENDING\"",
14311               "\"RECEIVED\"",
14312               "\"FAILED\""
14313             ],
14314             "optional": true,
14315             "field": "status",
14316             "description": ""
14317           },
14318           {
14319             "group": "Body",
14320             "type": "String",
14321             "optional": true,
14322             "field": "url",
14323             "description": ""
14324           },
14325           {
14326             "group": "Body",
14327             "type": "String",
14328             "optional": true,
14329             "field": "app",
14330             "description": ""
14331           },
14332           {
14333             "group": "Body",
14334             "type": "String",
14335             "optional": true,
14336             "field": "appdata",
14337             "description": ""
14338           },
14339           {
14340             "group": "Body",
14341             "type": "Integer",
14342             "optional": true,
14343             "field": "projectId",
14344             "description": ""
14345           }
14346         ]
14347       }
14348     },
14349     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14350     "version": "0.0.0",
14351     "filename": "server/api/integrationReport/index.js",
14352     "groupTitle": "Integration_Reports"
14353   },
14354   {
14355     "type": "delete",
14356     "url": "/api/integrations/reports/{id}",
14357     "title": "Deletes a Integration Report",
14358     "examples": [
14359       {
14360         "title": "Example usage:",
14361         "content": "curl https://{domain}/api/integrations/reports/{id} -v -u {name}:{password} -X DELETE",
14362         "type": "json"
14363       }
14364     ],
14365     "name": "DeleteIntegration_Reports",
14366     "group": "Integration_Reports",
14367     "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>",
14368     "version": "0.0.0",
14369     "filename": "server/api/integrationReport/index.js",
14370     "groupTitle": "Integration_Reports"
14371   },
14372   {
14373     "type": "get",
14374     "url": "/api/integrations/reports/describe",
14375     "title": "Gets table info about Integration Reports",
14376     "examples": [
14377       {
14378         "title": "Example usage:",
14379         "content": "curl https://{domain}/api/integrations/reports/describe -v -u {name}:{password}",
14380         "type": "json"
14381       }
14382     ],
14383     "name": "DescribeIntegration_Reports",
14384     "group": "Integration_Reports",
14385     "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>",
14386     "version": "0.0.0",
14387     "filename": "server/api/integrationReport/index.js",
14388     "groupTitle": "Integration_Reports"
14389   },
14390   {
14391     "type": "get",
14392     "url": "/api/integrations/reports",
14393     "title": "Gets a list of Integration Reports",
14394     "examples": [
14395       {
14396         "title": "Example usage:",
14397         "content": "curl https://{domain}/api/integrations/reports -v -u {name}:{password}",
14398         "type": "json"
14399       }
14400     ],
14401     "name": "GetIntegration_Reports",
14402     "group": "Integration_Reports",
14403     "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>",
14404     "version": "0.0.0",
14405     "filename": "server/api/integrationReport/index.js",
14406     "groupTitle": "Integration_Reports"
14407   },
14408   {
14409     "type": "get",
14410     "url": "/api/integrations/reports/{id}",
14411     "title": "Gets a single Integration Report",
14412     "examples": [
14413       {
14414         "title": "Example usage:",
14415         "content": "curl https://{domain}/api/integrations/reports/{id} -v -u {name}:{password}",
14416         "type": "json"
14417       }
14418     ],
14419     "name": "ShowIntegration_Reports",
14420     "group": "Integration_Reports",
14421     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14422     "version": "0.0.0",
14423     "filename": "server/api/integrationReport/index.js",
14424     "groupTitle": "Integration_Reports"
14425   },
14426   {
14427     "type": "put",
14428     "url": "/api/integrations/reports/{id}",
14429     "title": "Update an existing Integration Report",
14430     "examples": [
14431       {
14432         "title": "Example usage:",
14433         "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",
14434         "type": "json"
14435       }
14436     ],
14437     "name": "updateIntegration_Reports",
14438     "group": "Integration_Reports",
14439     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14440     "version": "0.0.0",
14441     "filename": "server/api/integrationReport/index.js",
14442     "groupTitle": "Integration_Reports"
14443   },
14444   {
14445     "type": "post",
14446     "url": "/api/intervals",
14447     "title": "Creates a new Interval",
14448     "examples": [
14449       {
14450         "title": "Example usage:",
14451         "content": "curl https://{domain}/api/intervals -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
14452         "type": "json"
14453       }
14454     ],
14455     "name": "CreateIntervals",
14456     "group": "Intervals",
14457     "parameter": {
14458       "fields": {
14459         "Body": [
14460           {
14461             "group": "Body",
14462             "type": "String",
14463             "optional": true,
14464             "field": "name",
14465             "description": ""
14466           },
14467           {
14468             "group": "Body",
14469             "type": "String",
14470             "optional": true,
14471             "field": "description",
14472             "description": ""
14473           },
14474           {
14475             "group": "Body",
14476             "type": "String",
14477             "optional": true,
14478             "field": "interval",
14479             "description": ""
14480           }
14481         ]
14482       }
14483     },
14484     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14485     "version": "0.0.0",
14486     "filename": "server/api/interval/index.js",
14487     "groupTitle": "Intervals"
14488   },
14489   {
14490     "type": "delete",
14491     "url": "/api/intervals/{id}",
14492     "title": "Deletes a Interval",
14493     "examples": [
14494       {
14495         "title": "Example usage:",
14496         "content": "curl https://{domain}/api/intervals/{id} -v -u {name}:{password} -X DELETE",
14497         "type": "json"
14498       }
14499     ],
14500     "name": "DeleteIntervals",
14501     "group": "Intervals",
14502     "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>",
14503     "version": "0.0.0",
14504     "filename": "server/api/interval/index.js",
14505     "groupTitle": "Intervals"
14506   },
14507   {
14508     "type": "get",
14509     "url": "/api/intervals",
14510     "title": "Gets a list of Intervals",
14511     "examples": [
14512       {
14513         "title": "Example usage:",
14514         "content": "curl https://{domain}/api/intervals -v -u {name}:{password}",
14515         "type": "json"
14516       }
14517     ],
14518     "name": "GetIntervals",
14519     "group": "Intervals",
14520     "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>",
14521     "version": "0.0.0",
14522     "filename": "server/api/interval/index.js",
14523     "groupTitle": "Intervals"
14524   },
14525   {
14526     "type": "get",
14527     "url": "/api/intervals/{id}",
14528     "title": "Gets a single Interval",
14529     "examples": [
14530       {
14531         "title": "Example usage:",
14532         "content": "curl https://{domain}/api/intervals/{id} -v -u {name}:{password}",
14533         "type": "json"
14534       }
14535     ],
14536     "name": "ShowIntervals",
14537     "group": "Intervals",
14538     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14539     "version": "0.0.0",
14540     "filename": "server/api/interval/index.js",
14541     "groupTitle": "Intervals"
14542   },
14543   {
14544     "type": "post",
14545     "url": "/api/intervals/{id}/sub_intervals",
14546     "title": "Creates a new sub interval",
14547     "examples": [
14548       {
14549         "title": "Example usage:",
14550         "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",
14551         "type": "json"
14552       }
14553     ],
14554     "name": "addInterval",
14555     "group": "Intervals",
14556     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14557     "version": "0.0.0",
14558     "filename": "server/api/interval/index.js",
14559     "groupTitle": "Intervals"
14560   },
14561   {
14562     "type": "post",
14563     "url": "/api/intervals/{id}/sub_intervals/create_many",
14564     "title": "Create new sub intervals set",
14565     "examples": [
14566       {
14567         "title": "Example usage:",
14568         "content": "curl https://{domain}/api/intervals/{id}/sub_intervals -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
14569         "type": "json"
14570       }
14571     ],
14572     "name": "addIntervals",
14573     "group": "Intervals",
14574     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14575     "version": "0.0.0",
14576     "filename": "server/api/interval/index.js",
14577     "groupTitle": "Intervals"
14578   },
14579   {
14580     "type": "get",
14581     "url": "/api/intervals/{id}/sub_intervals",
14582     "title": "Get sub intervals set",
14583     "examples": [
14584       {
14585         "title": "Example usage:",
14586         "content": "curl https://{domain}/api/intervals/{id}/sub_intervals -v -u {name}:{password} -X GET",
14587         "type": "json"
14588       }
14589     ],
14590     "name": "getIntervals",
14591     "group": "Intervals",
14592     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14593     "version": "0.0.0",
14594     "filename": "server/api/interval/index.js",
14595     "groupTitle": "Intervals"
14596   },
14597   {
14598     "type": "put",
14599     "url": "/api/intervals/{id}",
14600     "title": "Update an existing Interval",
14601     "examples": [
14602       {
14603         "title": "Example usage:",
14604         "content": "curl https://{domain}/api/intervals/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
14605         "type": "json"
14606       }
14607     ],
14608     "name": "updateIntervals",
14609     "group": "Intervals",
14610     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14611     "version": "0.0.0",
14612     "filename": "server/api/interval/index.js",
14613     "groupTitle": "Intervals"
14614   },
14615   {
14616     "type": "post",
14617     "url": "/api/jira",
14618     "title": "Creates a new issue",
14619     "examples": [
14620       {
14621         "title": "Example usage:",
14622         "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}",
14623         "type": "json"
14624       }
14625     ],
14626     "name": "Creates_Issue",
14627     "group": "Issue",
14628     "parameter": {
14629       "fields": {
14630         "Body": [
14631           {
14632             "group": "Body",
14633             "type": "String",
14634             "allowedValues": [
14635               "\"Bug\""
14636             ],
14637             "optional": true,
14638             "field": "issuetype",
14639             "description": ""
14640           },
14641           {
14642             "group": "Body",
14643             "type": "String",
14644             "optional": false,
14645             "field": "summary",
14646             "description": ""
14647           },
14648           {
14649             "group": "Body",
14650             "type": "String",
14651             "optional": false,
14652             "field": "description",
14653             "description": ""
14654           }
14655         ]
14656       }
14657     },
14658     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14659     "version": "0.0.0",
14660     "filename": "server/api/jira/index.js",
14661     "groupTitle": "Issue"
14662   },
14663   {
14664     "type": "post",
14665     "url": "/api/jscripty/answers/reports",
14666     "title": "Creates a new Report",
14667     "examples": [
14668       {
14669         "title": "Example usage:",
14670         "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",
14671         "type": "json"
14672       }
14673     ],
14674     "name": "CreateReports",
14675     "group": "JscriptyAnswerReport",
14676     "parameter": {
14677       "fields": {
14678         "Body": [
14679           {
14680             "group": "Body",
14681             "type": "Text",
14682             "optional": true,
14683             "field": "question",
14684             "description": ""
14685           },
14686           {
14687             "group": "Body",
14688             "type": "Text",
14689             "optional": true,
14690             "field": "answer",
14691             "description": ""
14692           },
14693           {
14694             "group": "Body",
14695             "type": "String",
14696             "optional": true,
14697             "field": "membername",
14698             "description": ""
14699           },
14700           {
14701             "group": "Body",
14702             "type": "String",
14703             "optional": true,
14704             "field": "projectname",
14705             "description": ""
14706           },
14707           {
14708             "group": "Body",
14709             "type": "String",
14710             "optional": true,
14711             "field": "queue",
14712             "description": ""
14713           },
14714           {
14715             "group": "Body",
14716             "type": "String",
14717             "optional": true,
14718             "field": "uniqueid",
14719             "description": ""
14720           },
14721           {
14722             "group": "Body",
14723             "type": "String",
14724             "optional": true,
14725             "field": "calleridname",
14726             "description": ""
14727           },
14728           {
14729             "group": "Body",
14730             "type": "String",
14731             "optional": true,
14732             "field": "calleridnum",
14733             "description": ""
14734           },
14735           {
14736             "group": "Body",
14737             "type": "String",
14738             "optional": true,
14739             "field": "questionId",
14740             "description": ""
14741           }
14742         ]
14743       }
14744     },
14745     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14746     "version": "0.0.0",
14747     "filename": "server/api/jscriptyAnswerReport/index.js",
14748     "groupTitle": "JscriptyAnswerReport"
14749   },
14750   {
14751     "type": "delete",
14752     "url": "/api/jscripty/answers/reports/{id}",
14753     "title": "Deletes a Report",
14754     "examples": [
14755       {
14756         "title": "Example usage:",
14757         "content": "curl https://{domain}/api/jscripty/answers/reports/{id} -v -u {name}:{password} -X DELETE",
14758         "type": "json"
14759       }
14760     ],
14761     "name": "DeleteReports",
14762     "group": "JscriptyAnswerReport",
14763     "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>",
14764     "version": "0.0.0",
14765     "filename": "server/api/jscriptyAnswerReport/index.js",
14766     "groupTitle": "JscriptyAnswerReport"
14767   },
14768   {
14769     "type": "get",
14770     "url": "/api/jscripty/answers/reports/describe",
14771     "title": "Gets table info about Reports",
14772     "examples": [
14773       {
14774         "title": "Example usage:",
14775         "content": "curl https://{domain}/api/jscripty/answers/reports/describe -v -u {name}:{password}",
14776         "type": "json"
14777       }
14778     ],
14779     "name": "DescribeReports",
14780     "group": "JscriptyAnswerReport",
14781     "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>",
14782     "version": "0.0.0",
14783     "filename": "server/api/jscriptyAnswerReport/index.js",
14784     "groupTitle": "JscriptyAnswerReport"
14785   },
14786   {
14787     "type": "get",
14788     "url": "/api/jscripty/answers/reports",
14789     "title": "Gets a list of Reports",
14790     "examples": [
14791       {
14792         "title": "Example usage:",
14793         "content": "curl https://{domain}/api/jscripty/answers/reports -v -u {name}:{password}",
14794         "type": "json"
14795       }
14796     ],
14797     "name": "GetReports",
14798     "group": "JscriptyAnswerReport",
14799     "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>",
14800     "version": "0.0.0",
14801     "filename": "server/api/jscriptyAnswerReport/index.js",
14802     "groupTitle": "JscriptyAnswerReport"
14803   },
14804   {
14805     "type": "get",
14806     "url": "/api/jscripty/answers/reports/{id}",
14807     "title": "Gets a single Report",
14808     "examples": [
14809       {
14810         "title": "Example usage:",
14811         "content": "curl https://{domain}/api/jscripty/answers/reports/{id} -v -u {name}:{password}",
14812         "type": "json"
14813       }
14814     ],
14815     "name": "ShowReports",
14816     "group": "JscriptyAnswerReport",
14817     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14818     "version": "0.0.0",
14819     "filename": "server/api/jscriptyAnswerReport/index.js",
14820     "groupTitle": "JscriptyAnswerReport"
14821   },
14822   {
14823     "type": "put",
14824     "url": "/api/jscripty/answers/reports/{id}",
14825     "title": "Update an existing Report",
14826     "examples": [
14827       {
14828         "title": "Example usage:",
14829         "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",
14830         "type": "json"
14831       }
14832     ],
14833     "name": "updateReports",
14834     "group": "JscriptyAnswerReport",
14835     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14836     "version": "0.0.0",
14837     "filename": "server/api/jscriptyAnswerReport/index.js",
14838     "groupTitle": "JscriptyAnswerReport"
14839   },
14840   {
14841     "type": "post",
14842     "url": "/api/jscripty/questions/reports",
14843     "title": "Creates a new Report",
14844     "examples": [
14845       {
14846         "title": "Example usage:",
14847         "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",
14848         "type": "json"
14849       }
14850     ],
14851     "name": "CreateReports",
14852     "group": "JscriptyQuestionReport",
14853     "parameter": {
14854       "fields": {
14855         "Body": [
14856           {
14857             "group": "Body",
14858             "type": "Text",
14859             "optional": true,
14860             "field": "question",
14861             "description": ""
14862           },
14863           {
14864             "group": "Body",
14865             "type": "Text",
14866             "optional": true,
14867             "field": "answer",
14868             "description": ""
14869           },
14870           {
14871             "group": "Body",
14872             "type": "String",
14873             "optional": true,
14874             "field": "membername",
14875             "description": ""
14876           },
14877           {
14878             "group": "Body",
14879             "type": "String",
14880             "optional": true,
14881             "field": "projectname",
14882             "description": ""
14883           },
14884           {
14885             "group": "Body",
14886             "type": "String",
14887             "optional": true,
14888             "field": "queue",
14889             "description": ""
14890           },
14891           {
14892             "group": "Body",
14893             "type": "String",
14894             "optional": true,
14895             "field": "uniqueid",
14896             "description": ""
14897           },
14898           {
14899             "group": "Body",
14900             "type": "String",
14901             "optional": true,
14902             "field": "calleridname",
14903             "description": ""
14904           },
14905           {
14906             "group": "Body",
14907             "type": "String",
14908             "optional": true,
14909             "field": "calleridnum",
14910             "description": ""
14911           },
14912           {
14913             "group": "Body",
14914             "type": "String",
14915             "optional": true,
14916             "field": "questionId",
14917             "description": ""
14918           }
14919         ]
14920       }
14921     },
14922     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14923     "version": "0.0.0",
14924     "filename": "server/api/jscriptyQuestionReport/index.js",
14925     "groupTitle": "JscriptyQuestionReport"
14926   },
14927   {
14928     "type": "delete",
14929     "url": "/api/jscripty/questions/reports/{id}",
14930     "title": "Deletes a Report",
14931     "examples": [
14932       {
14933         "title": "Example usage:",
14934         "content": "curl https://{domain}/api/jscripty/questions/reports/{id} -v -u {name}:{password} -X DELETE",
14935         "type": "json"
14936       }
14937     ],
14938     "name": "DeleteReports",
14939     "group": "JscriptyQuestionReport",
14940     "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>",
14941     "version": "0.0.0",
14942     "filename": "server/api/jscriptyQuestionReport/index.js",
14943     "groupTitle": "JscriptyQuestionReport"
14944   },
14945   {
14946     "type": "get",
14947     "url": "/api/jscripty/questions/reports/describe",
14948     "title": "Gets table info about Reports",
14949     "examples": [
14950       {
14951         "title": "Example usage:",
14952         "content": "curl https://{domain}/api/jscripty/questions/reports/describe -v -u {name}:{password}",
14953         "type": "json"
14954       }
14955     ],
14956     "name": "DescribeReports",
14957     "group": "JscriptyQuestionReport",
14958     "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>",
14959     "version": "0.0.0",
14960     "filename": "server/api/jscriptyQuestionReport/index.js",
14961     "groupTitle": "JscriptyQuestionReport"
14962   },
14963   {
14964     "type": "get",
14965     "url": "/api/jscripty/questions/reports",
14966     "title": "Gets a list of Reports",
14967     "examples": [
14968       {
14969         "title": "Example usage:",
14970         "content": "curl https://{domain}/api/jscripty/questions/reports -v -u {name}:{password}",
14971         "type": "json"
14972       }
14973     ],
14974     "name": "GetReports",
14975     "group": "JscriptyQuestionReport",
14976     "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>",
14977     "version": "0.0.0",
14978     "filename": "server/api/jscriptyQuestionReport/index.js",
14979     "groupTitle": "JscriptyQuestionReport"
14980   },
14981   {
14982     "type": "get",
14983     "url": "/api/jscripty/questions/reports/{id}",
14984     "title": "Gets a single Report",
14985     "examples": [
14986       {
14987         "title": "Example usage:",
14988         "content": "curl https://{domain}/api/jscripty/questions/reports/{id} -v -u {name}:{password}",
14989         "type": "json"
14990       }
14991     ],
14992     "name": "ShowReports",
14993     "group": "JscriptyQuestionReport",
14994     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14995     "version": "0.0.0",
14996     "filename": "server/api/jscriptyQuestionReport/index.js",
14997     "groupTitle": "JscriptyQuestionReport"
14998   },
14999   {
15000     "type": "put",
15001     "url": "/api/jscripty/questions/reports/{id}",
15002     "title": "Update an existing Report",
15003     "examples": [
15004       {
15005         "title": "Example usage:",
15006         "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",
15007         "type": "json"
15008       }
15009     ],
15010     "name": "updateReports",
15011     "group": "JscriptyQuestionReport",
15012     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15013     "version": "0.0.0",
15014     "filename": "server/api/jscriptyQuestionReport/index.js",
15015     "groupTitle": "JscriptyQuestionReport"
15016   },
15017   {
15018     "type": "post",
15019     "url": "/api/jscripty/sessions/reports",
15020     "title": "Creates a new Report",
15021     "examples": [
15022       {
15023         "title": "Example usage:",
15024         "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",
15025         "type": "json"
15026       }
15027     ],
15028     "name": "CreateReports",
15029     "group": "JscriptySessionReport",
15030     "parameter": {
15031       "fields": {
15032         "Body": [
15033           {
15034             "group": "Body",
15035             "type": "String",
15036             "optional": true,
15037             "field": "starttime",
15038             "description": ""
15039           },
15040           {
15041             "group": "Body",
15042             "type": "String",
15043             "optional": true,
15044             "field": "endtime",
15045             "description": ""
15046           },
15047           {
15048             "group": "Body",
15049             "type": "String",
15050             "optional": true,
15051             "field": "membername",
15052             "description": ""
15053           },
15054           {
15055             "group": "Body",
15056             "type": "String",
15057             "optional": true,
15058             "field": "projectname",
15059             "description": ""
15060           },
15061           {
15062             "group": "Body",
15063             "type": "String",
15064             "optional": true,
15065             "field": "queue",
15066             "description": ""
15067           },
15068           {
15069             "group": "Body",
15070             "type": "String",
15071             "optional": true,
15072             "field": "uniqueid",
15073             "description": ""
15074           },
15075           {
15076             "group": "Body",
15077             "type": "String",
15078             "optional": true,
15079             "field": "calleridname",
15080             "description": ""
15081           },
15082           {
15083             "group": "Body",
15084             "type": "String",
15085             "optional": true,
15086             "field": "calleridnum",
15087             "description": ""
15088           },
15089           {
15090             "group": "Body",
15091             "type": "Boolean",
15092             "optional": true,
15093             "field": "completed",
15094             "description": ""
15095           }
15096         ]
15097       }
15098     },
15099     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15100     "version": "0.0.0",
15101     "filename": "server/api/jscriptySessionReport/index.js",
15102     "groupTitle": "JscriptySessionReport"
15103   },
15104   {
15105     "type": "delete",
15106     "url": "/api/jscripty/sessions/reports/{id}",
15107     "title": "Deletes a Report",
15108     "examples": [
15109       {
15110         "title": "Example usage:",
15111         "content": "curl https://{domain}/api/jscripty/sessions/reports/{id} -v -u {name}:{password} -X DELETE",
15112         "type": "json"
15113       }
15114     ],
15115     "name": "DeleteReports",
15116     "group": "JscriptySessionReport",
15117     "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>",
15118     "version": "0.0.0",
15119     "filename": "server/api/jscriptySessionReport/index.js",
15120     "groupTitle": "JscriptySessionReport"
15121   },
15122   {
15123     "type": "get",
15124     "url": "/api/jscripty/sessions/reports/describe",
15125     "title": "Gets table info about Reports",
15126     "examples": [
15127       {
15128         "title": "Example usage:",
15129         "content": "curl https://{domain}/api/jscripty/sessions/reports/describe -v -u {name}:{password}",
15130         "type": "json"
15131       }
15132     ],
15133     "name": "DescribeReports",
15134     "group": "JscriptySessionReport",
15135     "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>",
15136     "version": "0.0.0",
15137     "filename": "server/api/jscriptySessionReport/index.js",
15138     "groupTitle": "JscriptySessionReport"
15139   },
15140   {
15141     "type": "get",
15142     "url": "/api/jscripty/sessions/reports",
15143     "title": "Gets a list of Reports",
15144     "examples": [
15145       {
15146         "title": "Example usage:",
15147         "content": "curl https://{domain}/api/jscripty/sessions/reports -v -u {name}:{password}",
15148         "type": "json"
15149       }
15150     ],
15151     "name": "GetReports",
15152     "group": "JscriptySessionReport",
15153     "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>",
15154     "version": "0.0.0",
15155     "filename": "server/api/jscriptySessionReport/index.js",
15156     "groupTitle": "JscriptySessionReport"
15157   },
15158   {
15159     "type": "get",
15160     "url": "/api/jscripty/sessions/reports/{id}",
15161     "title": "Gets a single Report",
15162     "examples": [
15163       {
15164         "title": "Example usage:",
15165         "content": "curl https://{domain}/api/jscripty/sessions/reports/{id} -v -u {name}:{password}",
15166         "type": "json"
15167       }
15168     ],
15169     "name": "ShowReports",
15170     "group": "JscriptySessionReport",
15171     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15172     "version": "0.0.0",
15173     "filename": "server/api/jscriptySessionReport/index.js",
15174     "groupTitle": "JscriptySessionReport"
15175   },
15176   {
15177     "type": "get",
15178     "url": "/api/jscripty/sessions/reports/{id}/questions",
15179     "title": "Gets Jscripty Session questions",
15180     "examples": [
15181       {
15182         "title": "Example usage:",
15183         "content": "curl https://{domain}/api/jscripty/sessions/reports/{id}/questions -v -u {name}:{password}  -X GET",
15184         "type": "json"
15185       }
15186     ],
15187     "name": "getQuestions",
15188     "group": "JscriptySessionReport",
15189     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15190     "version": "0.0.0",
15191     "filename": "server/api/jscriptySessionReport/index.js",
15192     "groupTitle": "JscriptySessionReport"
15193   },
15194   {
15195     "type": "put",
15196     "url": "/api/jscripty/sessions/reports/{id}",
15197     "title": "Update an existing Report",
15198     "examples": [
15199       {
15200         "title": "Example usage:",
15201         "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",
15202         "type": "json"
15203       }
15204     ],
15205     "name": "updateReports",
15206     "group": "JscriptySessionReport",
15207     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15208     "version": "0.0.0",
15209     "filename": "server/api/jscriptySessionReport/index.js",
15210     "groupTitle": "JscriptySessionReport"
15211   },
15212   {
15213     "type": "post",
15214     "url": "/api/jscripty/projects/clone",
15215     "title": "Clone an existing Project",
15216     "examples": [
15217       {
15218         "title": "Example usage:",
15219         "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",
15220         "type": "json"
15221       }
15222     ],
15223     "name": "CloneProjects",
15224     "group": "Jscripty_Projects",
15225     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15226     "version": "0.0.0",
15227     "filename": "server/api/jscriptyProject/index.js",
15228     "groupTitle": "Jscripty_Projects"
15229   },
15230   {
15231     "type": "post",
15232     "url": "/api/jscripty/projects",
15233     "title": "Creates a new Project",
15234     "examples": [
15235       {
15236         "title": "Example usage:",
15237         "content": "curl https://{domain}/api/jscripty/projects -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
15238         "type": "json"
15239       }
15240     ],
15241     "name": "CreateProjects",
15242     "group": "Jscripty_Projects",
15243     "parameter": {
15244       "fields": {
15245         "Body": [
15246           {
15247             "group": "Body",
15248             "type": "String",
15249             "optional": true,
15250             "field": "name",
15251             "description": ""
15252           },
15253           {
15254             "group": "Body",
15255             "type": "String",
15256             "optional": true,
15257             "field": "description",
15258             "description": ""
15259           },
15260           {
15261             "group": "Body",
15262             "type": "Text",
15263             "optional": true,
15264             "field": "formData",
15265             "description": ""
15266           },
15267           {
15268             "group": "Body",
15269             "type": "Boolean",
15270             "optional": true,
15271             "field": "enableUncompleteSave",
15272             "description": ""
15273           },
15274           {
15275             "group": "Body",
15276             "type": "Boolean",
15277             "optional": true,
15278             "field": "sendUnpauseOnSubmit",
15279             "description": ""
15280           }
15281         ]
15282       }
15283     },
15284     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15285     "version": "0.0.0",
15286     "filename": "server/api/jscriptyProject/index.js",
15287     "groupTitle": "Jscripty_Projects"
15288   },
15289   {
15290     "type": "delete",
15291     "url": "/api/jscripty/projects/{id}",
15292     "title": "Deletes a Project",
15293     "examples": [
15294       {
15295         "title": "Example usage:",
15296         "content": "curl https://{domain}/api/jscripty/projects/{id} -v -u {name}:{password} -X DELETE",
15297         "type": "json"
15298       }
15299     ],
15300     "name": "DeleteProjects",
15301     "group": "Jscripty_Projects",
15302     "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>",
15303     "version": "0.0.0",
15304     "filename": "server/api/jscriptyProject/index.js",
15305     "groupTitle": "Jscripty_Projects"
15306   },
15307   {
15308     "type": "get",
15309     "url": "/api/jscripty/projects",
15310     "title": "Gets a list of Projects",
15311     "examples": [
15312       {
15313         "title": "Example usage:",
15314         "content": "curl https://{domain}/api/jscripty/projects -v -u {name}:{password}",
15315         "type": "json"
15316       }
15317     ],
15318     "name": "GetProjects",
15319     "group": "Jscripty_Projects",
15320     "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>",
15321     "version": "0.0.0",
15322     "filename": "server/api/jscriptyProject/index.js",
15323     "groupTitle": "Jscripty_Projects"
15324   },
15325   {
15326     "type": "get",
15327     "url": "/api/jscripty/projects/{id}",
15328     "title": "Gets a single Project",
15329     "examples": [
15330       {
15331         "title": "Example usage:",
15332         "content": "curl https://{domain}/api/jscripty/projects/{id} -v -u {name}:{password}",
15333         "type": "json"
15334       }
15335     ],
15336     "name": "ShowProjects",
15337     "group": "Jscripty_Projects",
15338     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15339     "version": "0.0.0",
15340     "filename": "server/api/jscriptyProject/index.js",
15341     "groupTitle": "Jscripty_Projects"
15342   },
15343   {
15344     "type": "get",
15345     "url": "/api/jscripty/projects/{id}/answers",
15346     "title": "Gets jscripty project answers",
15347     "examples": [
15348       {
15349         "title": "Example usage:",
15350         "content": "curl https://{domain}/api/jscripty/projects/{id}/answers -v -u {name}:{password}  -X GET",
15351         "type": "json"
15352       }
15353     ],
15354     "name": "getAnswers",
15355     "group": "Jscripty_Projects",
15356     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15357     "version": "0.0.0",
15358     "filename": "server/api/jscriptyProject/index.js",
15359     "groupTitle": "Jscripty_Projects"
15360   },
15361   {
15362     "type": "get",
15363     "url": "/api/jscripty/projects/{id}/sessions",
15364     "title": "Gets jscripty project sessions",
15365     "examples": [
15366       {
15367         "title": "Example usage:",
15368         "content": "curl https://{domain}/api/jscripty/projects/{id}/sessions -v -u {name}:{password}  -X GET",
15369         "type": "json"
15370       }
15371     ],
15372     "name": "getSessions",
15373     "group": "Jscripty_Projects",
15374     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15375     "version": "0.0.0",
15376     "filename": "server/api/jscriptyProject/index.js",
15377     "groupTitle": "Jscripty_Projects"
15378   },
15379   {
15380     "type": "get",
15381     "url": "/api/jscripty/projects/{id}/summary",
15382     "title": "Gets jscripty project summary",
15383     "examples": [
15384       {
15385         "title": "Example usage:",
15386         "content": "curl https://{domain}/api/jscripty/projects/{id}/summary -v -u {name}:{password}  -X GET",
15387         "type": "json"
15388       }
15389     ],
15390     "name": "getSummary",
15391     "group": "Jscripty_Projects",
15392     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15393     "version": "0.0.0",
15394     "filename": "server/api/jscriptyProject/index.js",
15395     "groupTitle": "Jscripty_Projects"
15396   },
15397   {
15398     "type": "put",
15399     "url": "/api/jscripty/projects/{id}",
15400     "title": "Update an existing Project",
15401     "examples": [
15402       {
15403         "title": "Example usage:",
15404         "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",
15405         "type": "json"
15406       }
15407     ],
15408     "name": "updateProjects",
15409     "group": "Jscripty_Projects",
15410     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15411     "version": "0.0.0",
15412     "filename": "server/api/jscriptyProject/index.js",
15413     "groupTitle": "Jscripty_Projects"
15414   },
15415   {
15416     "type": "get",
15417     "url": "/api/license",
15418     "title": "Gets License Info",
15419     "examples": [
15420       {
15421         "title": "Example usage:",
15422         "content": "curl https://{domain}/api/license -v -u {name}:{password} -X GET",
15423         "type": "json"
15424       }
15425     ],
15426     "name": "index",
15427     "group": "License",
15428     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15429     "version": "0.0.0",
15430     "filename": "server/api/license/index.js",
15431     "groupTitle": "License"
15432   },
15433   {
15434     "type": "put",
15435     "url": "/api/license/{id}",
15436     "title": "Update License Info",
15437     "examples": [
15438       {
15439         "title": "Example usage:",
15440         "content": "curl https://{domain}/api/license/{id} -v -u {name}:{password} -X PUT",
15441         "type": "json"
15442       }
15443     ],
15444     "name": "update",
15445     "group": "License",
15446     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15447     "version": "0.0.0",
15448     "filename": "server/api/license/index.js",
15449     "groupTitle": "License"
15450   },
15451   {
15452     "type": "post",
15453     "url": "/api/mail/accounts/{id}/users",
15454     "title": "Add agents to a mail account",
15455     "examples": [
15456       {
15457         "title": "Example usage:",
15458         "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",
15459         "type": "json"
15460       }
15461     ],
15462     "name": "AddAgents",
15463     "group": "Mail_Accounts",
15464     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15465     "version": "0.0.0",
15466     "filename": "server/api/mailAccount/index.js",
15467     "groupTitle": "Mail_Accounts"
15468   },
15469   {
15470     "type": "post",
15471     "url": "/api/mail/accounts/{id}/in_servers",
15472     "title": "Creates a new IMAP server",
15473     "examples": [
15474       {
15475         "title": "Example usage:",
15476         "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",
15477         "type": "json"
15478       }
15479     ],
15480     "name": "AddImap",
15481     "group": "Mail_Accounts",
15482     "parameter": {
15483       "fields": {
15484         "Body": [
15485           {
15486             "group": "Body",
15487             "type": "String",
15488             "optional": true,
15489             "field": "description",
15490             "description": ""
15491           },
15492           {
15493             "group": "Body",
15494             "type": "String",
15495             "optional": true,
15496             "field": "host",
15497             "description": ""
15498           },
15499           {
15500             "group": "Body",
15501             "type": "Boolean",
15502             "optional": true,
15503             "field": "authentication",
15504             "description": ""
15505           },
15506           {
15507             "group": "Body",
15508             "type": "String",
15509             "optional": true,
15510             "field": "user",
15511             "description": ""
15512           },
15513           {
15514             "group": "Body",
15515             "type": "String",
15516             "optional": true,
15517             "field": "password",
15518             "description": ""
15519           },
15520           {
15521             "group": "Body",
15522             "type": "Integer",
15523             "optional": true,
15524             "field": "port",
15525             "description": ""
15526           },
15527           {
15528             "group": "Body",
15529             "type": "Boolean",
15530             "optional": true,
15531             "field": "tls",
15532             "description": ""
15533           },
15534           {
15535             "group": "Body",
15536             "type": "String",
15537             "optional": true,
15538             "field": "mailbox",
15539             "description": ""
15540           },
15541           {
15542             "group": "Body",
15543             "type": "Integer",
15544             "optional": true,
15545             "field": "connTimeout",
15546             "description": ""
15547           },
15548           {
15549             "group": "Body",
15550             "type": "Integer",
15551             "optional": true,
15552             "field": "authTimeout",
15553             "description": ""
15554           },
15555           {
15556             "group": "Body",
15557             "type": "String",
15558             "optional": true,
15559             "field": "service",
15560             "description": ""
15561           }
15562         ]
15563       }
15564     },
15565     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15566     "version": "0.0.0",
15567     "filename": "server/api/mailAccount/index.js",
15568     "groupTitle": "Mail_Accounts"
15569   },
15570   {
15571     "type": "post",
15572     "url": "/api/mail/accounts/{id}/out_servers",
15573     "title": "Creates a new SMTP server",
15574     "examples": [
15575       {
15576         "title": "Example usage:",
15577         "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",
15578         "type": "json"
15579       }
15580     ],
15581     "name": "AddSmtp",
15582     "group": "Mail_Accounts",
15583     "parameter": {
15584       "fields": {
15585         "Body": [
15586           {
15587             "group": "Body",
15588             "type": "String",
15589             "optional": true,
15590             "field": "description",
15591             "description": ""
15592           },
15593           {
15594             "group": "Body",
15595             "type": "String",
15596             "optional": true,
15597             "field": "host",
15598             "description": ""
15599           },
15600           {
15601             "group": "Body",
15602             "type": "String",
15603             "optional": true,
15604             "field": "user",
15605             "description": ""
15606           },
15607           {
15608             "group": "Body",
15609             "type": "String",
15610             "optional": true,
15611             "field": "pass",
15612             "description": ""
15613           },
15614           {
15615             "group": "Body",
15616             "type": "Integer",
15617             "optional": true,
15618             "field": "port",
15619             "description": ""
15620           },
15621           {
15622             "group": "Body",
15623             "type": "Boolean",
15624             "optional": true,
15625             "field": "secure",
15626             "description": ""
15627           },
15628           {
15629             "group": "Body",
15630             "type": "String",
15631             "optional": true,
15632             "field": "service",
15633             "description": ""
15634           },
15635           {
15636             "group": "Body",
15637             "type": "Boolean",
15638             "optional": true,
15639             "field": "authentication",
15640             "description": ""
15641           }
15642         ]
15643       }
15644     },
15645     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15646     "version": "0.0.0",
15647     "filename": "server/api/mailAccount/index.js",
15648     "groupTitle": "Mail_Accounts"
15649   },
15650   {
15651     "type": "delete",
15652     "url": "/api/mail/accounts/{id}",
15653     "title": "Deletes a mail account",
15654     "examples": [
15655       {
15656         "title": "Example usage:",
15657         "content": "curl https://{domain}/api/mail/accounts/{id} -v -u {name}:{password} -X DELETE",
15658         "type": "json"
15659       }
15660     ],
15661     "name": "DeleteMailAccounts",
15662     "group": "Mail_Accounts",
15663     "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>",
15664     "version": "0.0.0",
15665     "filename": "server/api/mailAccount/index.js",
15666     "groupTitle": "Mail_Accounts"
15667   },
15668   {
15669     "type": "get",
15670     "url": "/api/mail/accounts/describe",
15671     "title": "Gets table info about Accounts",
15672     "examples": [
15673       {
15674         "title": "Example usage:",
15675         "content": "curl https://{domain}/api/mail/accounts/describe -v -u {name}:{password}",
15676         "type": "json"
15677       }
15678     ],
15679     "name": "DescribeAccounts",
15680     "group": "Mail_Accounts",
15681     "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>",
15682     "version": "0.0.0",
15683     "filename": "server/api/mailAccount/index.js",
15684     "groupTitle": "Mail_Accounts"
15685   },
15686   {
15687     "type": "get",
15688     "url": "/api/mail/accounts",
15689     "title": "Gets a list of Accounts",
15690     "examples": [
15691       {
15692         "title": "Example usage:",
15693         "content": "curl https://{domain}/api/mail/accounts -v -u {name}:{password}",
15694         "type": "json"
15695       }
15696     ],
15697     "name": "GetAccounts",
15698     "group": "Mail_Accounts",
15699     "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>",
15700     "version": "0.0.0",
15701     "filename": "server/api/mailAccount/index.js",
15702     "groupTitle": "Mail_Accounts"
15703   },
15704   {
15705     "type": "get",
15706     "url": "/api/mail/accounts/{id}/users",
15707     "title": "Gets agents from mail account",
15708     "examples": [
15709       {
15710         "title": "Example usage:",
15711         "content": "curl https://{domain}/api/mail/accounts/{id}/users -v -u {name}:{password} -X GET",
15712         "type": "json"
15713       }
15714     ],
15715     "name": "GetAgents",
15716     "group": "Mail_Accounts",
15717     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15718     "version": "0.0.0",
15719     "filename": "server/api/mailAccount/index.js",
15720     "groupTitle": "Mail_Accounts"
15721   },
15722   {
15723     "type": "get",
15724     "url": "/api/mail/accounts/{id}/in_servers",
15725     "title": "Gets account IMAP server",
15726     "examples": [
15727       {
15728         "title": "Example usage:",
15729         "content": "curl https://{domain}/api/mail/accounts/{id}/in_servers -v -u {name}:{password} -X GET",
15730         "type": "json"
15731       }
15732     ],
15733     "name": "GetImap",
15734     "group": "Mail_Accounts",
15735     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15736     "version": "0.0.0",
15737     "filename": "server/api/mailAccount/index.js",
15738     "groupTitle": "Mail_Accounts"
15739   },
15740   {
15741     "type": "get",
15742     "url": "/api/mail/accounts/{id}/out_servers",
15743     "title": "Gets account SMTP server",
15744     "examples": [
15745       {
15746         "title": "Example usage:",
15747         "content": "curl https://{domain}/api/mail/accounts/{id}/out_servers -v -u {name}:{password} -X GET",
15748         "type": "json"
15749       }
15750     ],
15751     "name": "GetSmtp",
15752     "group": "Mail_Accounts",
15753     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15754     "version": "0.0.0",
15755     "filename": "server/api/mailAccount/index.js",
15756     "groupTitle": "Mail_Accounts"
15757   },
15758   {
15759     "type": "delete",
15760     "url": "/api/mail/accounts/{id}/users",
15761     "title": "Removes agents from a mail account",
15762     "examples": [
15763       {
15764         "title": "Example usage:",
15765         "content": "curl https://{domain}/api/mail/accounts/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
15766         "type": "json"
15767       }
15768     ],
15769     "name": "RemoveAgents",
15770     "group": "Mail_Accounts",
15771     "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>",
15772     "version": "0.0.0",
15773     "filename": "server/api/mailAccount/index.js",
15774     "groupTitle": "Mail_Accounts"
15775   },
15776   {
15777     "type": "delete",
15778     "url": "/api/mail/accounts/{id}/canned_answers",
15779     "title": "Removes canned answers from account",
15780     "examples": [
15781       {
15782         "title": "Example usage:",
15783         "content": "curl https://{domain}/api/mail/accounts/{id}/canned_answers?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
15784         "type": "json"
15785       }
15786     ],
15787     "name": "RemoveAnswers",
15788     "group": "Mail_Accounts",
15789     "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>",
15790     "version": "0.0.0",
15791     "filename": "server/api/mailAccount/index.js",
15792     "groupTitle": "Mail_Accounts"
15793   },
15794   {
15795     "type": "delete",
15796     "url": "/api/mail/accounts/{id}/dispositions",
15797     "title": "Removes dispositions from account",
15798     "examples": [
15799       {
15800         "title": "Example usage:",
15801         "content": "curl https://{domain}/api/mail/accounts/{id}/dispositions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
15802         "type": "json"
15803       }
15804     ],
15805     "name": "RemoveDispositions",
15806     "group": "Mail_Accounts",
15807     "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>",
15808     "version": "0.0.0",
15809     "filename": "server/api/mailAccount/index.js",
15810     "groupTitle": "Mail_Accounts"
15811   },
15812   {
15813     "type": "delete",
15814     "url": "/api/mail/accounts/{id}/in_servers",
15815     "title": "Removes IMAP server from an account",
15816     "examples": [
15817       {
15818         "title": "Example usage:",
15819         "content": "curl https://{domain}/api/mail/accounts/{id}/in_servers -v -u {name}:{password} -X DELETE",
15820         "type": "json"
15821       }
15822     ],
15823     "name": "RemoveImmap",
15824     "group": "Mail_Accounts",
15825     "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>",
15826     "version": "0.0.0",
15827     "filename": "server/api/mailAccount/index.js",
15828     "groupTitle": "Mail_Accounts"
15829   },
15830   {
15831     "type": "delete",
15832     "url": "/api/mail/accounts/{id}/out_servers",
15833     "title": "Removes SMTP server from an account",
15834     "examples": [
15835       {
15836         "title": "Example usage:",
15837         "content": "curl https://{domain}/api/mail/accounts/{id}/out_servers -v -u {name}:{password} -X DELETE",
15838         "type": "json"
15839       }
15840     ],
15841     "name": "RemoveSmtp",
15842     "group": "Mail_Accounts",
15843     "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>",
15844     "version": "0.0.0",
15845     "filename": "server/api/mailAccount/index.js",
15846     "groupTitle": "Mail_Accounts"
15847   },
15848   {
15849     "type": "get",
15850     "url": "/api/mail/accounts/{id}",
15851     "title": "Gets a single Account",
15852     "examples": [
15853       {
15854         "title": "Example usage:",
15855         "content": "curl https://{domain}/api/mail/accounts/{id} -v -u {name}:{password}",
15856         "type": "json"
15857       }
15858     ],
15859     "name": "ShowAccounts",
15860     "group": "Mail_Accounts",
15861     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15862     "version": "0.0.0",
15863     "filename": "server/api/mailAccount/index.js",
15864     "groupTitle": "Mail_Accounts"
15865   },
15866   {
15867     "type": "post",
15868     "url": "/api/mail/accounts/{id}/canned_answers",
15869     "title": "Creates new canned answer",
15870     "examples": [
15871       {
15872         "title": "Example usage:",
15873         "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",
15874         "type": "json"
15875       }
15876     ],
15877     "name": "addAnswer",
15878     "group": "Mail_Accounts",
15879     "parameter": {
15880       "fields": {
15881         "Body": [
15882           {
15883             "group": "Body",
15884             "type": "String",
15885             "optional": false,
15886             "field": "key",
15887             "description": ""
15888           },
15889           {
15890             "group": "Body",
15891             "type": "Text",
15892             "optional": false,
15893             "field": "value",
15894             "description": ""
15895           },
15896           {
15897             "group": "Body",
15898             "type": "String",
15899             "optional": true,
15900             "field": "description",
15901             "description": ""
15902           },
15903           {
15904             "group": "Body",
15905             "type": "Virtual",
15906             "optional": true,
15907             "field": "name",
15908             "description": ""
15909           }
15910         ]
15911       }
15912     },
15913     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15914     "version": "0.0.0",
15915     "filename": "server/api/mailAccount/index.js",
15916     "groupTitle": "Mail_Accounts"
15917   },
15918   {
15919     "type": "post",
15920     "url": "/api/mail/accounts/{id}/applications",
15921     "title": "Creates new applications",
15922     "examples": [
15923       {
15924         "title": "Example usage:",
15925         "content": "curl https://{domain}/api/mail/accounts/{id}/applications -d '[{\"app\": \"queue\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
15926         "type": "json"
15927       }
15928     ],
15929     "name": "addApplications",
15930     "group": "Mail_Accounts",
15931     "parameter": {
15932       "fields": {
15933         "Body": [
15934           {
15935             "group": "Body",
15936             "type": "Integer",
15937             "optional": false,
15938             "field": "priority",
15939             "description": ""
15940           },
15941           {
15942             "group": "Body",
15943             "type": "String",
15944             "optional": false,
15945             "field": "app",
15946             "description": ""
15947           },
15948           {
15949             "group": "Body",
15950             "type": "Text",
15951             "optional": true,
15952             "field": "appdata",
15953             "description": ""
15954           },
15955           {
15956             "group": "Body",
15957             "type": "String",
15958             "optional": true,
15959             "field": "description",
15960             "description": ""
15961           },
15962           {
15963             "group": "Body",
15964             "type": "String",
15965             "optional": true,
15966             "field": "interval",
15967             "description": ""
15968           }
15969         ]
15970       }
15971     },
15972     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15973     "version": "0.0.0",
15974     "filename": "server/api/mailAccount/index.js",
15975     "groupTitle": "Mail_Accounts"
15976   },
15977   {
15978     "type": "post",
15979     "url": "/api/mail/accounts/{id}/dispositions",
15980     "title": "Creates new disposition",
15981     "examples": [
15982       {
15983         "title": "Example usage:",
15984         "content": "curl https://{domain}/api/mail/accounts/{id}/dispositions -d '{\"name\": \"vip\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
15985         "type": "json"
15986       }
15987     ],
15988     "name": "addDisposition",
15989     "group": "Mail_Accounts",
15990     "parameter": {
15991       "fields": {
15992         "Body": [
15993           {
15994             "group": "Body",
15995             "type": "String",
15996             "optional": false,
15997             "field": "name",
15998             "description": ""
15999           },
16000           {
16001             "group": "Body",
16002             "type": "String",
16003             "allowedValues": [
16004               "\"first\"",
16005               "\"second\"",
16006               "\"third\""
16007             ],
16008             "optional": false,
16009             "field": "level",
16010             "description": ""
16011           },
16012           {
16013             "group": "Body",
16014             "type": "String",
16015             "optional": true,
16016             "field": "description",
16017             "description": ""
16018           }
16019         ]
16020       }
16021     },
16022     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16023     "version": "0.0.0",
16024     "filename": "server/api/mailAccount/index.js",
16025     "groupTitle": "Mail_Accounts"
16026   },
16027   {
16028     "type": "post",
16029     "url": "/api/mail/accounts/{id}/interactions",
16030     "title": "Creates new interactions",
16031     "examples": [
16032       {
16033         "title": "Example usage:",
16034         "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",
16035         "type": "json"
16036       }
16037     ],
16038     "name": "addInteraction",
16039     "group": "Mail_Accounts",
16040     "parameter": {
16041       "fields": {
16042         "Body": [
16043           {
16044             "group": "Body",
16045             "type": "Boolean",
16046             "optional": true,
16047             "field": "closed",
16048             "description": ""
16049           },
16050           {
16051             "group": "Body",
16052             "type": "String",
16053             "optional": true,
16054             "field": "closedAt",
16055             "description": ""
16056           },
16057           {
16058             "group": "Body",
16059             "type": "String",
16060             "optional": true,
16061             "field": "disposition",
16062             "description": ""
16063           },
16064           {
16065             "group": "Body",
16066             "type": "String",
16067             "optional": true,
16068             "field": "secondDisposition",
16069             "description": ""
16070           },
16071           {
16072             "group": "Body",
16073             "type": "String",
16074             "optional": true,
16075             "field": "thirdDisposition",
16076             "description": ""
16077           },
16078           {
16079             "group": "Body",
16080             "type": "String",
16081             "optional": true,
16082             "field": "note",
16083             "description": ""
16084           },
16085           {
16086             "group": "Body",
16087             "type": "String",
16088             "optional": true,
16089             "field": "inReplyTo",
16090             "description": ""
16091           },
16092           {
16093             "group": "Body",
16094             "type": "String",
16095             "optional": true,
16096             "field": "to",
16097             "description": ""
16098           },
16099           {
16100             "group": "Body",
16101             "type": "Text",
16102             "optional": true,
16103             "field": "cc",
16104             "description": ""
16105           },
16106           {
16107             "group": "Body",
16108             "type": "Text",
16109             "optional": true,
16110             "field": "subject",
16111             "description": ""
16112           },
16113           {
16114             "group": "Body",
16115             "type": "Boolean",
16116             "optional": true,
16117             "field": "attach",
16118             "description": ""
16119           },
16120           {
16121             "group": "Body",
16122             "type": "String",
16123             "optional": true,
16124             "field": "read1stAt",
16125             "description": ""
16126           },
16127           {
16128             "group": "Body",
16129             "type": "String",
16130             "optional": true,
16131             "field": "substatus",
16132             "description": ""
16133           },
16134           {
16135             "group": "Body",
16136             "type": "String",
16137             "optional": true,
16138             "field": "substatusAt",
16139             "description": ""
16140           },
16141           {
16142             "group": "Body",
16143             "type": "String",
16144             "allowedValues": [
16145               "\"in\"",
16146               "\"out\""
16147             ],
16148             "optional": false,
16149             "field": "firstMsgDirection",
16150             "description": ""
16151           },
16152           {
16153             "group": "Body",
16154             "type": "String",
16155             "optional": true,
16156             "field": "lastMsgAt",
16157             "description": ""
16158           },
16159           {
16160             "group": "Body",
16161             "type": "String",
16162             "allowedValues": [
16163               "\"in\"",
16164               "\"out\""
16165             ],
16166             "optional": false,
16167             "field": "lastMsgDirection",
16168             "description": ""
16169           },
16170           {
16171             "group": "Body",
16172             "type": "Boolean",
16173             "optional": true,
16174             "field": "autoreplyExecuted",
16175             "description": ""
16176           }
16177         ]
16178       }
16179     },
16180     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16181     "version": "0.0.0",
16182     "filename": "server/api/mailAccount/index.js",
16183     "groupTitle": "Mail_Accounts"
16184   },
16185   {
16186     "type": "post",
16187     "url": "/api/mail/accounts",
16188     "title": "Create a mail account",
16189     "examples": [
16190       {
16191         "title": "Example usage:",
16192         "content": "curl https://{domain}/api/mail/accounts \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
16193         "type": "json"
16194       }
16195     ],
16196     "name": "create",
16197     "group": "Mail_Accounts",
16198     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16199     "version": "0.0.0",
16200     "filename": "server/api/mailAccount/index.js",
16201     "groupTitle": "Mail_Accounts"
16202   },
16203   {
16204     "type": "get",
16205     "url": "/api/mail/accounts/{id}/canned_answers",
16206     "title": "Gets account canned answers",
16207     "examples": [
16208       {
16209         "title": "Example usage:",
16210         "content": "curl https://{domain}/api/mail/accounts/{id}/canned_answers -v -u {name}:{password} -X GET",
16211         "type": "json"
16212       }
16213     ],
16214     "name": "getAnswers",
16215     "group": "Mail_Accounts",
16216     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16217     "version": "0.0.0",
16218     "filename": "server/api/mailAccount/index.js",
16219     "groupTitle": "Mail_Accounts"
16220   },
16221   {
16222     "type": "get",
16223     "url": "/api/mail/accounts/{id}/applications",
16224     "title": "Gets account applications",
16225     "examples": [
16226       {
16227         "title": "Example usage:",
16228         "content": "curl https://{domain}/api/mail/accounts/{id}/applications -v -u {name}:{password} -X GET",
16229         "type": "json"
16230       }
16231     ],
16232     "name": "getApplications",
16233     "group": "Mail_Accounts",
16234     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16235     "version": "0.0.0",
16236     "filename": "server/api/mailAccount/index.js",
16237     "groupTitle": "Mail_Accounts"
16238   },
16239   {
16240     "type": "get",
16241     "url": "/api/mail/accounts/{id}/dispositions",
16242     "title": "Gets account dispositions",
16243     "examples": [
16244       {
16245         "title": "Example usage:",
16246         "content": "curl https://{domain}/api/mail/accounts/{id}/dispositions -v -u {name}:{password} -X GET",
16247         "type": "json"
16248       }
16249     ],
16250     "name": "getDispositions",
16251     "group": "Mail_Accounts",
16252     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16253     "version": "0.0.0",
16254     "filename": "server/api/mailAccount/index.js",
16255     "groupTitle": "Mail_Accounts"
16256   },
16257   {
16258     "type": "get",
16259     "url": "/api/mail/accounts/{id}/interactions",
16260     "title": "Gets account interactions",
16261     "examples": [
16262       {
16263         "title": "Example usage:",
16264         "content": "curl https://{domain}/api/mail/accounts/{id}/interactions -v -u {name}:{password} -X GET",
16265         "type": "json"
16266       }
16267     ],
16268     "name": "getInteraction",
16269     "group": "Mail_Accounts",
16270     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16271     "version": "0.0.0",
16272     "filename": "server/api/mailAccount/index.js",
16273     "groupTitle": "Mail_Accounts"
16274   },
16275   {
16276     "type": "get",
16277     "url": "/api/mail/accounts/{id}/messages",
16278     "title": "Gets account messages",
16279     "examples": [
16280       {
16281         "title": "Example usage:",
16282         "content": "curl https://{domain}/api/mail/accounts/{id}/messages -v -u {name}:{password} -X GET",
16283         "type": "json"
16284       }
16285     ],
16286     "name": "getMessages",
16287     "group": "Mail_Accounts",
16288     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16289     "version": "0.0.0",
16290     "filename": "server/api/mailAccount/index.js",
16291     "groupTitle": "Mail_Accounts"
16292   },
16293   {
16294     "type": "post",
16295     "url": "/api/mail/accounts/{id}/send",
16296     "title": "Send new mail",
16297     "examples": [
16298       {
16299         "title": "Example usage:",
16300         "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",
16301         "type": "json"
16302       }
16303     ],
16304     "name": "sendMail",
16305     "group": "Mail_Accounts",
16306     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16307     "version": "0.0.0",
16308     "filename": "server/api/mailAccount/index.js",
16309     "groupTitle": "Mail_Accounts"
16310   },
16311   {
16312     "type": "put",
16313     "url": "/api/mail/accounts/{id}",
16314     "title": "Update an existing Account",
16315     "examples": [
16316       {
16317         "title": "Example usage:",
16318         "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",
16319         "type": "json"
16320       }
16321     ],
16322     "name": "updateAccounts",
16323     "group": "Mail_Accounts",
16324     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16325     "version": "0.0.0",
16326     "filename": "server/api/mailAccount/index.js",
16327     "groupTitle": "Mail_Accounts"
16328   },
16329   {
16330     "type": "get",
16331     "url": "/api/mail/accounts/{id}/verify",
16332     "title": "Verify mail account",
16333     "examples": [
16334       {
16335         "title": "Example usage:",
16336         "content": "curl https://{domain}/api/mail/accounts/{id}/verify -v -u {name}:{password} -X GET",
16337         "type": "json"
16338       }
16339     ],
16340     "name": "verifySmtp",
16341     "group": "Mail_Accounts",
16342     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16343     "version": "0.0.0",
16344     "filename": "server/api/mailAccount/index.js",
16345     "groupTitle": "Mail_Accounts"
16346   },
16347   {
16348     "type": "delete",
16349     "url": "/api/mail/applications/{id}",
16350     "title": "Deletes a Application",
16351     "examples": [
16352       {
16353         "title": "Example usage:",
16354         "content": "curl https://{domain}/api/mail/applications/{id} -v -u {name}:{password} -X DELETE",
16355         "type": "json"
16356       }
16357     ],
16358     "name": "DeleteApplications",
16359     "group": "Mail_Applications",
16360     "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>",
16361     "version": "0.0.0",
16362     "filename": "server/api/mailApplication/index.js",
16363     "groupTitle": "Mail_Applications"
16364   },
16365   {
16366     "type": "get",
16367     "url": "/api/mail/applications/{id}",
16368     "title": "Gets a single Application",
16369     "examples": [
16370       {
16371         "title": "Example usage:",
16372         "content": "curl https://{domain}/api/mail/applications/{id} -v -u {name}:{password}",
16373         "type": "json"
16374       }
16375     ],
16376     "name": "ShowApplications",
16377     "group": "Mail_Applications",
16378     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16379     "version": "0.0.0",
16380     "filename": "server/api/mailApplication/index.js",
16381     "groupTitle": "Mail_Applications"
16382   },
16383   {
16384     "type": "put",
16385     "url": "/api/mail/applications/{id}",
16386     "title": "Update an existing Application",
16387     "examples": [
16388       {
16389         "title": "Example usage:",
16390         "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",
16391         "type": "json"
16392       }
16393     ],
16394     "name": "updateApplications",
16395     "group": "Mail_Applications",
16396     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16397     "version": "0.0.0",
16398     "filename": "server/api/mailApplication/index.js",
16399     "groupTitle": "Mail_Applications"
16400   },
16401   {
16402     "type": "post",
16403     "url": "/api/mail/interactions/{id}/tags",
16404     "title": "Add tags to the interaction",
16405     "examples": [
16406       {
16407         "title": "Example usage:",
16408         "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",
16409         "type": "json"
16410       }
16411     ],
16412     "name": "AddTags",
16413     "group": "Mail_Interactions",
16414     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16415     "version": "0.0.0",
16416     "filename": "server/api/mailInteraction/index.js",
16417     "groupTitle": "Mail_Interactions"
16418   },
16419   {
16420     "type": "post",
16421     "url": "/api/mail/interactions",
16422     "title": "Creates a new Interaction",
16423     "examples": [
16424       {
16425         "title": "Example usage:",
16426         "content": "curl https://{domain}/api/mail/interactions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
16427         "type": "json"
16428       }
16429     ],
16430     "name": "CreateInteractions",
16431     "group": "Mail_Interactions",
16432     "parameter": {
16433       "fields": {
16434         "Body": [
16435           {
16436             "group": "Body",
16437             "type": "Boolean",
16438             "optional": true,
16439             "field": "closed",
16440             "description": ""
16441           },
16442           {
16443             "group": "Body",
16444             "type": "String",
16445             "optional": true,
16446             "field": "closedAt",
16447             "description": ""
16448           },
16449           {
16450             "group": "Body",
16451             "type": "String",
16452             "optional": true,
16453             "field": "disposition",
16454             "description": ""
16455           },
16456           {
16457             "group": "Body",
16458             "type": "String",
16459             "optional": true,
16460             "field": "secondDisposition",
16461             "description": ""
16462           },
16463           {
16464             "group": "Body",
16465             "type": "String",
16466             "optional": true,
16467             "field": "thirdDisposition",
16468             "description": ""
16469           },
16470           {
16471             "group": "Body",
16472             "type": "String",
16473             "optional": true,
16474             "field": "note",
16475             "description": ""
16476           },
16477           {
16478             "group": "Body",
16479             "type": "String",
16480             "optional": true,
16481             "field": "inReplyTo",
16482             "description": ""
16483           },
16484           {
16485             "group": "Body",
16486             "type": "String",
16487             "optional": true,
16488             "field": "to",
16489             "description": ""
16490           },
16491           {
16492             "group": "Body",
16493             "type": "Text",
16494             "optional": true,
16495             "field": "cc",
16496             "description": ""
16497           },
16498           {
16499             "group": "Body",
16500             "type": "Text",
16501             "optional": true,
16502             "field": "subject",
16503             "description": ""
16504           },
16505           {
16506             "group": "Body",
16507             "type": "Boolean",
16508             "optional": true,
16509             "field": "attach",
16510             "description": ""
16511           },
16512           {
16513             "group": "Body",
16514             "type": "String",
16515             "optional": true,
16516             "field": "read1stAt",
16517             "description": ""
16518           },
16519           {
16520             "group": "Body",
16521             "type": "String",
16522             "optional": true,
16523             "field": "substatus",
16524             "description": ""
16525           },
16526           {
16527             "group": "Body",
16528             "type": "String",
16529             "optional": true,
16530             "field": "substatusAt",
16531             "description": ""
16532           },
16533           {
16534             "group": "Body",
16535             "type": "String",
16536             "allowedValues": [
16537               "\"in\"",
16538               "\"out\""
16539             ],
16540             "optional": false,
16541             "field": "firstMsgDirection",
16542             "description": ""
16543           },
16544           {
16545             "group": "Body",
16546             "type": "String",
16547             "optional": true,
16548             "field": "lastMsgAt",
16549             "description": ""
16550           },
16551           {
16552             "group": "Body",
16553             "type": "String",
16554             "allowedValues": [
16555               "\"in\"",
16556               "\"out\""
16557             ],
16558             "optional": false,
16559             "field": "lastMsgDirection",
16560             "description": ""
16561           },
16562           {
16563             "group": "Body",
16564             "type": "Boolean",
16565             "optional": true,
16566             "field": "autoreplyExecuted",
16567             "description": ""
16568           }
16569         ]
16570       }
16571     },
16572     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16573     "version": "0.0.0",
16574     "filename": "server/api/mailInteraction/index.js",
16575     "groupTitle": "Mail_Interactions"
16576   },
16577   {
16578     "type": "delete",
16579     "url": "/api/mail/interactions/{id}",
16580     "title": "Deletes a Interaction",
16581     "examples": [
16582       {
16583         "title": "Example usage:",
16584         "content": "curl https://{domain}/api/mail/interactions/{id} -v -u {name}:{password} -X DELETE",
16585         "type": "json"
16586       }
16587     ],
16588     "name": "DeleteInteractions",
16589     "group": "Mail_Interactions",
16590     "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>",
16591     "version": "0.0.0",
16592     "filename": "server/api/mailInteraction/index.js",
16593     "groupTitle": "Mail_Interactions"
16594   },
16595   {
16596     "type": "get",
16597     "url": "/api/mail/interactions/describe",
16598     "title": "Gets table info about Interactions",
16599     "examples": [
16600       {
16601         "title": "Example usage:",
16602         "content": "curl https://{domain}/api/mail/interactions/describe -v -u {name}:{password}",
16603         "type": "json"
16604       }
16605     ],
16606     "name": "DescribeInteractions",
16607     "group": "Mail_Interactions",
16608     "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>",
16609     "version": "0.0.0",
16610     "filename": "server/api/mailInteraction/index.js",
16611     "groupTitle": "Mail_Interactions"
16612   },
16613   {
16614     "type": "get",
16615     "url": "/api/mail/interactions",
16616     "title": "Gets a list of Interactions",
16617     "examples": [
16618       {
16619         "title": "Example usage:",
16620         "content": "curl https://{domain}/api/mail/interactions -v -u {name}:{password}",
16621         "type": "json"
16622       }
16623     ],
16624     "name": "GetInteractions",
16625     "group": "Mail_Interactions",
16626     "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>",
16627     "version": "0.0.0",
16628     "filename": "server/api/mailInteraction/index.js",
16629     "groupTitle": "Mail_Interactions"
16630   },
16631   {
16632     "type": "delete",
16633     "url": "/api/mail/interactions/{id}/tags",
16634     "title": "Removes tags from interaction",
16635     "examples": [
16636       {
16637         "title": "Example usage:",
16638         "content": "curl https://{domain}/api/mail/interactions/{id}/tags?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
16639         "type": "json"
16640       }
16641     ],
16642     "name": "RemoveTags",
16643     "group": "Mail_Interactions",
16644     "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>",
16645     "version": "0.0.0",
16646     "filename": "server/api/mailInteraction/index.js",
16647     "groupTitle": "Mail_Interactions"
16648   },
16649   {
16650     "type": "get",
16651     "url": "/api/mail/interactions/{id}",
16652     "title": "Gets a single Interaction",
16653     "examples": [
16654       {
16655         "title": "Example usage:",
16656         "content": "curl https://{domain}/api/mail/interactions/{id} -v -u {name}:{password}",
16657         "type": "json"
16658       }
16659     ],
16660     "name": "ShowInteractions",
16661     "group": "Mail_Interactions",
16662     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16663     "version": "0.0.0",
16664     "filename": "server/api/mailInteraction/index.js",
16665     "groupTitle": "Mail_Interactions"
16666   },
16667   {
16668     "type": "post",
16669     "url": "/api/mail/interactions/{id}/messages",
16670     "title": "Creates new message",
16671     "examples": [
16672       {
16673         "title": "Example usage:",
16674         "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",
16675         "type": "json"
16676       }
16677     ],
16678     "name": "addMessage",
16679     "group": "Mail_Interactions",
16680     "parameter": {
16681       "fields": {
16682         "Body": [
16683           {
16684             "group": "Body",
16685             "type": "Text",
16686             "optional": false,
16687             "field": "body",
16688             "description": ""
16689           },
16690           {
16691             "group": "Body",
16692             "type": "Text",
16693             "optional": true,
16694             "field": "plainBody",
16695             "description": ""
16696           },
16697           {
16698             "group": "Body",
16699             "type": "Boolean",
16700             "optional": true,
16701             "field": "read",
16702             "description": ""
16703           },
16704           {
16705             "group": "Body",
16706             "type": "String",
16707             "allowedValues": [
16708               "\"in\"",
16709               "\"out\""
16710             ],
16711             "optional": false,
16712             "field": "direction",
16713             "description": ""
16714           },
16715           {
16716             "group": "Body",
16717             "type": "String",
16718             "optional": true,
16719             "field": "messageId",
16720             "description": ""
16721           },
16722           {
16723             "group": "Body",
16724             "type": "String",
16725             "optional": true,
16726             "field": "from",
16727             "description": ""
16728           },
16729           {
16730             "group": "Body",
16731             "type": "Text",
16732             "optional": true,
16733             "field": "to",
16734             "description": ""
16735           },
16736           {
16737             "group": "Body",
16738             "type": "Text",
16739             "optional": true,
16740             "field": "cc",
16741             "description": ""
16742           },
16743           {
16744             "group": "Body",
16745             "type": "Text",
16746             "optional": true,
16747             "field": "bcc",
16748             "description": ""
16749           },
16750           {
16751             "group": "Body",
16752             "type": "Text",
16753             "optional": true,
16754             "field": "subject",
16755             "description": ""
16756           },
16757           {
16758             "group": "Body",
16759             "type": "String",
16760             "optional": true,
16761             "field": "sentAt",
16762             "description": ""
16763           },
16764           {
16765             "group": "Body",
16766             "type": "Integer",
16767             "optional": true,
16768             "field": "attach",
16769             "description": ""
16770           },
16771           {
16772             "group": "Body",
16773             "type": "Boolean",
16774             "optional": true,
16775             "field": "secret",
16776             "description": ""
16777           },
16778           {
16779             "group": "Body",
16780             "type": "String",
16781             "optional": true,
16782             "field": "readAt",
16783             "description": ""
16784           },
16785           {
16786             "group": "Body",
16787             "type": "Text",
16788             "optional": true,
16789             "field": "originTo",
16790             "description": ""
16791           },
16792           {
16793             "group": "Body",
16794             "type": "Text",
16795             "optional": true,
16796             "field": "originCc",
16797             "description": ""
16798           },
16799           {
16800             "group": "Body",
16801             "type": "String",
16802             "allowedValues": [
16803               "\"Email\"",
16804               "\"Chat\""
16805             ],
16806             "optional": false,
16807             "field": "originChannel",
16808             "description": ""
16809           }
16810         ]
16811       }
16812     },
16813     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16814     "version": "0.0.0",
16815     "filename": "server/api/mailInteraction/index.js",
16816     "groupTitle": "Mail_Interactions"
16817   },
16818   {
16819     "type": "get",
16820     "url": "/api/mail/interactions/{id}/download",
16821     "title": "Gets interaction",
16822     "examples": [
16823       {
16824         "title": "Example usage:",
16825         "content": "curl https://{domain}/api/mail/interactions/{id}/download -v -u {name}:{password} -X GET",
16826         "type": "json"
16827       }
16828     ],
16829     "name": "download",
16830     "group": "Mail_Interactions",
16831     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16832     "version": "0.0.0",
16833     "filename": "server/api/mailInteraction/index.js",
16834     "groupTitle": "Mail_Interactions"
16835   },
16836   {
16837     "type": "get",
16838     "url": "/api/mail/interactions/{id}/messages",
16839     "title": "Gets interaction messages",
16840     "examples": [
16841       {
16842         "title": "Example usage:",
16843         "content": "curl https://{domain}/api/mail/interactions/{id}/messages -v -u {name}:{password} -X GET",
16844         "type": "json"
16845       }
16846     ],
16847     "name": "getMessages",
16848     "group": "Mail_Interactions",
16849     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16850     "version": "0.0.0",
16851     "filename": "server/api/mailInteraction/index.js",
16852     "groupTitle": "Mail_Interactions"
16853   },
16854   {
16855     "type": "put",
16856     "url": "/api/mail/interactions/{id}",
16857     "title": "Update an existing Interaction",
16858     "examples": [
16859       {
16860         "title": "Example usage:",
16861         "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",
16862         "type": "json"
16863       }
16864     ],
16865     "name": "updateInteractions",
16866     "group": "Mail_Interactions",
16867     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16868     "version": "0.0.0",
16869     "filename": "server/api/mailInteraction/index.js",
16870     "groupTitle": "Mail_Interactions"
16871   },
16872   {
16873     "type": "delete",
16874     "url": "/api/mail/messages/{id}",
16875     "title": "Deletes a Message",
16876     "examples": [
16877       {
16878         "title": "Example usage:",
16879         "content": "curl https://{domain}/api/mail/messages/{id} -v -u {name}:{password} -X DELETE",
16880         "type": "json"
16881       }
16882     ],
16883     "name": "DeleteMessages",
16884     "group": "Mail_Messages",
16885     "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>",
16886     "version": "0.0.0",
16887     "filename": "server/api/mailMessage/index.js",
16888     "groupTitle": "Mail_Messages"
16889   },
16890   {
16891     "type": "get",
16892     "url": "/api/mail/messages/describe",
16893     "title": "Gets table info about Messages",
16894     "examples": [
16895       {
16896         "title": "Example usage:",
16897         "content": "curl https://{domain}/api/mail/messages/describe -v -u {name}:{password}",
16898         "type": "json"
16899       }
16900     ],
16901     "name": "DescribeMessages",
16902     "group": "Mail_Messages",
16903     "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>",
16904     "version": "0.0.0",
16905     "filename": "server/api/mailMessage/index.js",
16906     "groupTitle": "Mail_Messages"
16907   },
16908   {
16909     "type": "get",
16910     "url": "/api/mail/messages",
16911     "title": "Gets a list of Messages",
16912     "examples": [
16913       {
16914         "title": "Example usage:",
16915         "content": "curl https://{domain}/api/mail/messages -v -u {name}:{password}",
16916         "type": "json"
16917       }
16918     ],
16919     "name": "GetMessages",
16920     "group": "Mail_Messages",
16921     "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>",
16922     "version": "0.0.0",
16923     "filename": "server/api/mailMessage/index.js",
16924     "groupTitle": "Mail_Messages"
16925   },
16926   {
16927     "type": "get",
16928     "url": "/api/mail/messages/{id}",
16929     "title": "Gets a single Message",
16930     "examples": [
16931       {
16932         "title": "Example usage:",
16933         "content": "curl https://{domain}/api/mail/messages/{id} -v -u {name}:{password}",
16934         "type": "json"
16935       }
16936     ],
16937     "name": "ShowMessages",
16938     "group": "Mail_Messages",
16939     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16940     "version": "0.0.0",
16941     "filename": "server/api/mailMessage/index.js",
16942     "groupTitle": "Mail_Messages"
16943   },
16944   {
16945     "type": "put",
16946     "url": "/api/mail/messages/{id}/accept",
16947     "title": "Accepts message",
16948     "examples": [
16949       {
16950         "title": "Example usage:",
16951         "content": "curl https://{domain}/api/mail/messages/{id}/accept \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
16952         "type": "json"
16953       }
16954     ],
16955     "name": "acceptMessage",
16956     "group": "Mail_Messages",
16957     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16958     "version": "0.0.0",
16959     "filename": "server/api/mailMessage/index.js",
16960     "groupTitle": "Mail_Messages"
16961   },
16962   {
16963     "type": "post",
16964     "url": "/api/mail/messages",
16965     "title": "Create a message",
16966     "examples": [
16967       {
16968         "title": "Example usage:",
16969         "content": "curl https://{domain}/api/mail/messages \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
16970         "type": "json"
16971       }
16972     ],
16973     "name": "createMessage",
16974     "group": "Mail_Messages",
16975     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16976     "version": "0.0.0",
16977     "filename": "server/api/mailMessage/index.js",
16978     "groupTitle": "Mail_Messages"
16979   },
16980   {
16981     "type": "get",
16982     "url": "/api/mail/messages/{id}/download",
16983     "title": "Gets message",
16984     "examples": [
16985       {
16986         "title": "Example usage:",
16987         "content": "curl https://{domain}/api/mail/messages/{id}/download -v -u {name}:{password} -X GET",
16988         "type": "json"
16989       }
16990     ],
16991     "name": "download",
16992     "group": "Mail_Messages",
16993     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16994     "version": "0.0.0",
16995     "filename": "server/api/mailMessage/index.js",
16996     "groupTitle": "Mail_Messages"
16997   },
16998   {
16999     "type": "put",
17000     "url": "/api/mail/messages/{id}/reject",
17001     "title": "Rejects message",
17002     "examples": [
17003       {
17004         "title": "Example usage:",
17005         "content": "curl https://{domain}/api/mail/messages/{id}/reject \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
17006         "type": "json"
17007       }
17008     ],
17009     "name": "rejectMessage",
17010     "group": "Mail_Messages",
17011     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17012     "version": "0.0.0",
17013     "filename": "server/api/mailMessage/index.js",
17014     "groupTitle": "Mail_Messages"
17015   },
17016   {
17017     "type": "put",
17018     "url": "/api/mail/messages/{id}",
17019     "title": "Update an existing Message",
17020     "examples": [
17021       {
17022         "title": "Example usage:",
17023         "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",
17024         "type": "json"
17025       }
17026     ],
17027     "name": "updateMessages",
17028     "group": "Mail_Messages",
17029     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17030     "version": "0.0.0",
17031     "filename": "server/api/mailMessage/index.js",
17032     "groupTitle": "Mail_Messages"
17033   },
17034   {
17035     "type": "post",
17036     "url": "/api/mail/reports/queue",
17037     "title": "Creates a new Mail Queue Report",
17038     "examples": [
17039       {
17040         "title": "Example usage:",
17041         "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",
17042         "type": "json"
17043       }
17044     ],
17045     "name": "CreateMail_Queue_Reports",
17046     "group": "Mail_Queue_Reports",
17047     "parameter": {
17048       "fields": {
17049         "Body": [
17050           {
17051             "group": "Body",
17052             "type": "String",
17053             "optional": false,
17054             "field": "uniqueid",
17055             "description": ""
17056           },
17057           {
17058             "group": "Body",
17059             "type": "String",
17060             "optional": true,
17061             "field": "from",
17062             "description": ""
17063           },
17064           {
17065             "group": "Body",
17066             "type": "String",
17067             "optional": true,
17068             "field": "joinAt",
17069             "description": ""
17070           },
17071           {
17072             "group": "Body",
17073             "type": "String",
17074             "optional": true,
17075             "field": "leaveAt",
17076             "description": ""
17077           },
17078           {
17079             "group": "Body",
17080             "type": "String",
17081             "optional": true,
17082             "field": "acceptAt",
17083             "description": ""
17084           },
17085           {
17086             "group": "Body",
17087             "type": "String",
17088             "optional": true,
17089             "field": "exitAt",
17090             "description": ""
17091           },
17092           {
17093             "group": "Body",
17094             "type": "String",
17095             "optional": true,
17096             "field": "reason",
17097             "description": ""
17098           }
17099         ]
17100       }
17101     },
17102     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17103     "version": "0.0.0",
17104     "filename": "server/api/mailQueueReport/index.js",
17105     "groupTitle": "Mail_Queue_Reports"
17106   },
17107   {
17108     "type": "delete",
17109     "url": "/api/mail/reports/queue/{id}",
17110     "title": "Deletes a Mail Queue Report",
17111     "examples": [
17112       {
17113         "title": "Example usage:",
17114         "content": "curl https://{domain}/api/mail/reports/queue/{id} -v -u {name}:{password} -X DELETE",
17115         "type": "json"
17116       }
17117     ],
17118     "name": "DeleteMail_Queue_Reports",
17119     "group": "Mail_Queue_Reports",
17120     "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>",
17121     "version": "0.0.0",
17122     "filename": "server/api/mailQueueReport/index.js",
17123     "groupTitle": "Mail_Queue_Reports"
17124   },
17125   {
17126     "type": "get",
17127     "url": "/api/mail/reports/queue/describe",
17128     "title": "Gets table info about Mail Queue Reports",
17129     "examples": [
17130       {
17131         "title": "Example usage:",
17132         "content": "curl https://{domain}/api/mail/reports/queue/describe -v -u {name}:{password}",
17133         "type": "json"
17134       }
17135     ],
17136     "name": "DescribeMail_Queue_Reports",
17137     "group": "Mail_Queue_Reports",
17138     "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>",
17139     "version": "0.0.0",
17140     "filename": "server/api/mailQueueReport/index.js",
17141     "groupTitle": "Mail_Queue_Reports"
17142   },
17143   {
17144     "type": "get",
17145     "url": "/api/mail/reports/queue",
17146     "title": "Gets a list of Mail Queue Reports",
17147     "examples": [
17148       {
17149         "title": "Example usage:",
17150         "content": "curl https://{domain}/api/mail/reports/queue -v -u {name}:{password}",
17151         "type": "json"
17152       }
17153     ],
17154     "name": "GetMail_Queue_Reports",
17155     "group": "Mail_Queue_Reports",
17156     "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>",
17157     "version": "0.0.0",
17158     "filename": "server/api/mailQueueReport/index.js",
17159     "groupTitle": "Mail_Queue_Reports"
17160   },
17161   {
17162     "type": "get",
17163     "url": "/api/mail/reports/queue/{id}",
17164     "title": "Gets a single Mail Queue Report",
17165     "examples": [
17166       {
17167         "title": "Example usage:",
17168         "content": "curl https://{domain}/api/mail/reports/queue/{id} -v -u {name}:{password}",
17169         "type": "json"
17170       }
17171     ],
17172     "name": "ShowMail_Queue_Reports",
17173     "group": "Mail_Queue_Reports",
17174     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17175     "version": "0.0.0",
17176     "filename": "server/api/mailQueueReport/index.js",
17177     "groupTitle": "Mail_Queue_Reports"
17178   },
17179   {
17180     "type": "put",
17181     "url": "/api/mail/reports/queue/{id}",
17182     "title": "Update an existing Mail Queue Report",
17183     "examples": [
17184       {
17185         "title": "Example usage:",
17186         "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",
17187         "type": "json"
17188       }
17189     ],
17190     "name": "updateMail_Queue_Reports",
17191     "group": "Mail_Queue_Reports",
17192     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17193     "version": "0.0.0",
17194     "filename": "server/api/mailQueueReport/index.js",
17195     "groupTitle": "Mail_Queue_Reports"
17196   },
17197   {
17198     "type": "post",
17199     "url": "/api/mail/queues/{id}/users",
17200     "title": "Add agents to a queue",
17201     "examples": [
17202       {
17203         "title": "Example usage:",
17204         "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",
17205         "type": "json"
17206       }
17207     ],
17208     "name": "AddAgents",
17209     "group": "Mail_Queues",
17210     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17211     "version": "0.0.0",
17212     "filename": "server/api/mailQueue/index.js",
17213     "groupTitle": "Mail_Queues"
17214   },
17215   {
17216     "type": "post",
17217     "url": "/api/mail/queues/{id}/teams",
17218     "title": "Add teams to a queue",
17219     "examples": [
17220       {
17221         "title": "Example usage:",
17222         "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",
17223         "type": "json"
17224       }
17225     ],
17226     "name": "AddTeams",
17227     "group": "Mail_Queues",
17228     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17229     "version": "0.0.0",
17230     "filename": "server/api/mailQueue/index.js",
17231     "groupTitle": "Mail_Queues"
17232   },
17233   {
17234     "type": "post",
17235     "url": "/api/mail/queues",
17236     "title": "Creates a new Queue",
17237     "examples": [
17238       {
17239         "title": "Example usage:",
17240         "content": "curl https://{domain}/api/mail/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
17241         "type": "json"
17242       }
17243     ],
17244     "name": "CreateQueues",
17245     "group": "Mail_Queues",
17246     "parameter": {
17247       "fields": {
17248         "Body": [
17249           {
17250             "group": "Body",
17251             "type": "String",
17252             "optional": true,
17253             "field": "name",
17254             "description": ""
17255           },
17256           {
17257             "group": "Body",
17258             "type": "String",
17259             "optional": true,
17260             "field": "description",
17261             "description": ""
17262           },
17263           {
17264             "group": "Body",
17265             "type": "Integer",
17266             "optional": true,
17267             "field": "timeout",
17268             "description": ""
17269           },
17270           {
17271             "group": "Body",
17272             "type": "String",
17273             "allowedValues": [
17274               "\"rrmemory\"",
17275               "\"beepall\"",
17276               "\"roundrobin\""
17277             ],
17278             "optional": true,
17279             "field": "strategy",
17280             "description": ""
17281           }
17282         ]
17283       }
17284     },
17285     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17286     "version": "0.0.0",
17287     "filename": "server/api/mailQueue/index.js",
17288     "groupTitle": "Mail_Queues"
17289   },
17290   {
17291     "type": "delete",
17292     "url": "/api/mail/queues/{id}",
17293     "title": "Deletes a Queue",
17294     "examples": [
17295       {
17296         "title": "Example usage:",
17297         "content": "curl https://{domain}/api/mail/queues/{id} -v -u {name}:{password} -X DELETE",
17298         "type": "json"
17299       }
17300     ],
17301     "name": "DeleteQueues",
17302     "group": "Mail_Queues",
17303     "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>",
17304     "version": "0.0.0",
17305     "filename": "server/api/mailQueue/index.js",
17306     "groupTitle": "Mail_Queues"
17307   },
17308   {
17309     "type": "get",
17310     "url": "/api/mail/queues/describe",
17311     "title": "Gets table info about Queues",
17312     "examples": [
17313       {
17314         "title": "Example usage:",
17315         "content": "curl https://{domain}/api/mail/queues/describe -v -u {name}:{password}",
17316         "type": "json"
17317       }
17318     ],
17319     "name": "DescribeQueues",
17320     "group": "Mail_Queues",
17321     "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>",
17322     "version": "0.0.0",
17323     "filename": "server/api/mailQueue/index.js",
17324     "groupTitle": "Mail_Queues"
17325   },
17326   {
17327     "type": "get",
17328     "url": "/api/mail/queues/{id}/users",
17329     "title": "Gets queue agents",
17330     "examples": [
17331       {
17332         "title": "Example usage:",
17333         "content": "curl https://{domain}/api/mail/queues/{id}/users -v -u {name}:{password} -X POST",
17334         "type": "json"
17335       }
17336     ],
17337     "name": "GetAgents",
17338     "group": "Mail_Queues",
17339     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17340     "version": "0.0.0",
17341     "filename": "server/api/mailQueue/index.js",
17342     "groupTitle": "Mail_Queues"
17343   },
17344   {
17345     "type": "get",
17346     "url": "/api/mail/queues/{id}/members",
17347     "title": "GetMembers",
17348     "examples": [
17349       {
17350         "title": "Example usage:",
17351         "content": "curl https://{domain}/api/mail/queues/{id}/members  -v -u {name}:{password}",
17352         "type": "json"
17353       }
17354     ],
17355     "name": "GetMembers",
17356     "group": "Mail_Queues",
17357     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17358     "version": "0.0.0",
17359     "filename": "server/api/mailQueue/index.js",
17360     "groupTitle": "Mail_Queues"
17361   },
17362   {
17363     "type": "get",
17364     "url": "/api/mail/queues",
17365     "title": "Gets a list of Queues",
17366     "examples": [
17367       {
17368         "title": "Example usage:",
17369         "content": "curl https://{domain}/api/mail/queues -v -u {name}:{password}",
17370         "type": "json"
17371       }
17372     ],
17373     "name": "GetQueues",
17374     "group": "Mail_Queues",
17375     "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>",
17376     "version": "0.0.0",
17377     "filename": "server/api/mailQueue/index.js",
17378     "groupTitle": "Mail_Queues"
17379   },
17380   {
17381     "type": "get",
17382     "url": "/api/mail/queues/{id}/teams",
17383     "title": "Gets queues list",
17384     "examples": [
17385       {
17386         "title": "Example usage:",
17387         "content": "curl https://{domain}/api/mail/queues/{id}/teams -v -u {name}:{password}",
17388         "type": "json"
17389       }
17390     ],
17391     "name": "GetTeams",
17392     "group": "Mail_Queues",
17393     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17394     "version": "0.0.0",
17395     "filename": "server/api/mailQueue/index.js",
17396     "groupTitle": "Mail_Queues"
17397   },
17398   {
17399     "type": "delete",
17400     "url": "/api/mail/queues/{id}/users",
17401     "title": "Removes agents from a queue",
17402     "examples": [
17403       {
17404         "title": "Example usage:",
17405         "content": "curl https://{domain}/api/mail/queues/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
17406         "type": "json"
17407       }
17408     ],
17409     "name": "RemoveAgents",
17410     "group": "Mail_Queues",
17411     "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>",
17412     "version": "0.0.0",
17413     "filename": "server/api/mailQueue/index.js",
17414     "groupTitle": "Mail_Queues"
17415   },
17416   {
17417     "type": "get",
17418     "url": "/api/mail/queues/{id}",
17419     "title": "Gets a single Queue",
17420     "examples": [
17421       {
17422         "title": "Example usage:",
17423         "content": "curl https://{domain}/api/mail/queues/{id} -v -u {name}:{password}",
17424         "type": "json"
17425       }
17426     ],
17427     "name": "ShowQueues",
17428     "group": "Mail_Queues",
17429     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17430     "version": "0.0.0",
17431     "filename": "server/api/mailQueue/index.js",
17432     "groupTitle": "Mail_Queues"
17433   },
17434   {
17435     "type": "put",
17436     "url": "/api/mail/queues/{id}",
17437     "title": "Update an existing Queue",
17438     "examples": [
17439       {
17440         "title": "Example usage:",
17441         "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",
17442         "type": "json"
17443       }
17444     ],
17445     "name": "updateQueues",
17446     "group": "Mail_Queues",
17447     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17448     "version": "0.0.0",
17449     "filename": "server/api/mailQueue/index.js",
17450     "groupTitle": "Mail_Queues"
17451   },
17452   {
17453     "type": "post",
17454     "url": "/api/mail/out_servers",
17455     "title": "Creates a new SMTP",
17456     "examples": [
17457       {
17458         "title": "Example usage:",
17459         "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",
17460         "type": "json"
17461       }
17462     ],
17463     "name": "CreateSMTPs",
17464     "group": "Mail_SMTP",
17465     "parameter": {
17466       "fields": {
17467         "Body": [
17468           {
17469             "group": "Body",
17470             "type": "String",
17471             "optional": true,
17472             "field": "description",
17473             "description": ""
17474           },
17475           {
17476             "group": "Body",
17477             "type": "String",
17478             "optional": true,
17479             "field": "host",
17480             "description": ""
17481           },
17482           {
17483             "group": "Body",
17484             "type": "String",
17485             "optional": true,
17486             "field": "user",
17487             "description": ""
17488           },
17489           {
17490             "group": "Body",
17491             "type": "String",
17492             "optional": true,
17493             "field": "pass",
17494             "description": ""
17495           },
17496           {
17497             "group": "Body",
17498             "type": "Integer",
17499             "optional": true,
17500             "field": "port",
17501             "description": ""
17502           },
17503           {
17504             "group": "Body",
17505             "type": "Boolean",
17506             "optional": true,
17507             "field": "secure",
17508             "description": ""
17509           },
17510           {
17511             "group": "Body",
17512             "type": "String",
17513             "optional": true,
17514             "field": "service",
17515             "description": ""
17516           },
17517           {
17518             "group": "Body",
17519             "type": "Boolean",
17520             "optional": true,
17521             "field": "authentication",
17522             "description": ""
17523           }
17524         ]
17525       }
17526     },
17527     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17528     "version": "0.0.0",
17529     "filename": "server/api/mailServerOut/index.js",
17530     "groupTitle": "Mail_SMTP"
17531   },
17532   {
17533     "type": "delete",
17534     "url": "/api/mail/out_servers/{id}",
17535     "title": "Deletes a SMTP",
17536     "examples": [
17537       {
17538         "title": "Example usage:",
17539         "content": "curl https://{domain}/api/mail/out_servers/{id} -v -u {name}:{password} -X DELETE",
17540         "type": "json"
17541       }
17542     ],
17543     "name": "DeleteSMTPs",
17544     "group": "Mail_SMTP",
17545     "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>",
17546     "version": "0.0.0",
17547     "filename": "server/api/mailServerOut/index.js",
17548     "groupTitle": "Mail_SMTP"
17549   },
17550   {
17551     "type": "get",
17552     "url": "/api/mail/out_servers",
17553     "title": "Gets a list of SMTPs",
17554     "examples": [
17555       {
17556         "title": "Example usage:",
17557         "content": "curl https://{domain}/api/mail/out_servers -v -u {name}:{password}",
17558         "type": "json"
17559       }
17560     ],
17561     "name": "GetSMTPs",
17562     "group": "Mail_SMTP",
17563     "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>",
17564     "version": "0.0.0",
17565     "filename": "server/api/mailServerOut/index.js",
17566     "groupTitle": "Mail_SMTP"
17567   },
17568   {
17569     "type": "get",
17570     "url": "/api/mail/out_servers/{id}",
17571     "title": "Gets a single SMTP",
17572     "examples": [
17573       {
17574         "title": "Example usage:",
17575         "content": "curl https://{domain}/api/mail/out_servers/{id} -v -u {name}:{password}",
17576         "type": "json"
17577       }
17578     ],
17579     "name": "ShowSMTPs",
17580     "group": "Mail_SMTP",
17581     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17582     "version": "0.0.0",
17583     "filename": "server/api/mailServerOut/index.js",
17584     "groupTitle": "Mail_SMTP"
17585   },
17586   {
17587     "type": "put",
17588     "url": "/api/mail/out_servers/{id}",
17589     "title": "Update an existing SMTP",
17590     "examples": [
17591       {
17592         "title": "Example usage:",
17593         "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",
17594         "type": "json"
17595       }
17596     ],
17597     "name": "updateSMTPs",
17598     "group": "Mail_SMTP",
17599     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17600     "version": "0.0.0",
17601     "filename": "server/api/mailServerOut/index.js",
17602     "groupTitle": "Mail_SMTP"
17603   },
17604   {
17605     "type": "post",
17606     "url": "/api/mail/substatuses",
17607     "title": "Creates a new Queue",
17608     "examples": [
17609       {
17610         "title": "Example usage:",
17611         "content": "curl https://{domain}/api/mail/substatuses -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
17612         "type": "json"
17613       }
17614     ],
17615     "name": "CreateSubstatuses",
17616     "group": "Mail_Substatuses",
17617     "parameter": {
17618       "fields": {
17619         "Body": [
17620           {
17621             "group": "Body",
17622             "type": "String",
17623             "optional": false,
17624             "field": "name",
17625             "description": ""
17626           },
17627           {
17628             "group": "Body",
17629             "type": "String",
17630             "optional": true,
17631             "field": "description",
17632             "description": ""
17633           }
17634         ]
17635       }
17636     },
17637     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17638     "version": "0.0.0",
17639     "filename": "server/api/mailSubstatus/index.js",
17640     "groupTitle": "Mail_Substatuses"
17641   },
17642   {
17643     "type": "delete",
17644     "url": "/api/mail/substatuses/{id}",
17645     "title": "Deletes a Queue",
17646     "examples": [
17647       {
17648         "title": "Example usage:",
17649         "content": "curl https://{domain}/api/mail/substatuses/{id} -v -u {name}:{password} -X DELETE",
17650         "type": "json"
17651       }
17652     ],
17653     "name": "DeleteSubstatuses",
17654     "group": "Mail_Substatuses",
17655     "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>",
17656     "version": "0.0.0",
17657     "filename": "server/api/mailSubstatus/index.js",
17658     "groupTitle": "Mail_Substatuses"
17659   },
17660   {
17661     "type": "get",
17662     "url": "/api/mail/substatuses/describe",
17663     "title": "Gets table info about Substatuses",
17664     "examples": [
17665       {
17666         "title": "Example usage:",
17667         "content": "curl https://{domain}/api/mail/substatuses/describe -v -u {name}:{password}",
17668         "type": "json"
17669       }
17670     ],
17671     "name": "DescribeSubstatuses",
17672     "group": "Mail_Substatuses",
17673     "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>",
17674     "version": "0.0.0",
17675     "filename": "server/api/mailSubstatus/index.js",
17676     "groupTitle": "Mail_Substatuses"
17677   },
17678   {
17679     "type": "get",
17680     "url": "/api/mail/substatuses",
17681     "title": "Gets a list of Substatuses",
17682     "examples": [
17683       {
17684         "title": "Example usage:",
17685         "content": "curl https://{domain}/api/mail/substatuses -v -u {name}:{password}",
17686         "type": "json"
17687       }
17688     ],
17689     "name": "GetSubstatuses",
17690     "group": "Mail_Substatuses",
17691     "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>",
17692     "version": "0.0.0",
17693     "filename": "server/api/mailSubstatus/index.js",
17694     "groupTitle": "Mail_Substatuses"
17695   },
17696   {
17697     "type": "get",
17698     "url": "/api/mail/substatuses/{id}",
17699     "title": "Gets a single Queue",
17700     "examples": [
17701       {
17702         "title": "Example usage:",
17703         "content": "curl https://{domain}/api/mail/substatuses/{id} -v -u {name}:{password}",
17704         "type": "json"
17705       }
17706     ],
17707     "name": "ShowSubstatuses",
17708     "group": "Mail_Substatuses",
17709     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17710     "version": "0.0.0",
17711     "filename": "server/api/mailSubstatus/index.js",
17712     "groupTitle": "Mail_Substatuses"
17713   },
17714   {
17715     "type": "put",
17716     "url": "/api/mail/substatuses/{id}",
17717     "title": "Update an existing Queue",
17718     "examples": [
17719       {
17720         "title": "Example usage:",
17721         "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",
17722         "type": "json"
17723       }
17724     ],
17725     "name": "updateSubstatuses",
17726     "group": "Mail_Substatuses",
17727     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17728     "version": "0.0.0",
17729     "filename": "server/api/mailSubstatus/index.js",
17730     "groupTitle": "Mail_Substatuses"
17731   },
17732   {
17733     "type": "post",
17734     "url": "/api/mail/reports/transfer",
17735     "title": "Creates a new Mail Transfer Report",
17736     "examples": [
17737       {
17738         "title": "Example usage:",
17739         "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",
17740         "type": "json"
17741       }
17742     ],
17743     "name": "CreateMail_Transfer_Reports",
17744     "group": "Mail_Transfer_Reports",
17745     "parameter": {
17746       "fields": {
17747         "Body": [
17748           {
17749             "group": "Body",
17750             "type": "String",
17751             "optional": false,
17752             "field": "uniqueid",
17753             "description": ""
17754           },
17755           {
17756             "group": "Body",
17757             "type": "String",
17758             "allowedValues": [
17759               "\"account\"",
17760               "\"agent\"",
17761               "\"queue\""
17762             ],
17763             "optional": false,
17764             "field": "type",
17765             "description": ""
17766           },
17767           {
17768             "group": "Body",
17769             "type": "String",
17770             "optional": false,
17771             "field": "transferredAt",
17772             "description": ""
17773           }
17774         ]
17775       }
17776     },
17777     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17778     "version": "0.0.0",
17779     "filename": "server/api/mailTransferReport/index.js",
17780     "groupTitle": "Mail_Transfer_Reports"
17781   },
17782   {
17783     "type": "delete",
17784     "url": "/api/mail/reports/transfer/{id}",
17785     "title": "Deletes a Mail Transfer Report",
17786     "examples": [
17787       {
17788         "title": "Example usage:",
17789         "content": "curl https://{domain}/api/mail/reports/transfer/{id} -v -u {name}:{password} -X DELETE",
17790         "type": "json"
17791       }
17792     ],
17793     "name": "DeleteMail_Transfer_Reports",
17794     "group": "Mail_Transfer_Reports",
17795     "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>",
17796     "version": "0.0.0",
17797     "filename": "server/api/mailTransferReport/index.js",
17798     "groupTitle": "Mail_Transfer_Reports"
17799   },
17800   {
17801     "type": "get",
17802     "url": "/api/mail/reports/transfer/describe",
17803     "title": "Gets table info about Mail Transfer Reports",
17804     "examples": [
17805       {
17806         "title": "Example usage:",
17807         "content": "curl https://{domain}/api/mail/reports/transfer/describe -v -u {name}:{password}",
17808         "type": "json"
17809       }
17810     ],
17811     "name": "DescribeMail_Transfer_Reports",
17812     "group": "Mail_Transfer_Reports",
17813     "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>",
17814     "version": "0.0.0",
17815     "filename": "server/api/mailTransferReport/index.js",
17816     "groupTitle": "Mail_Transfer_Reports"
17817   },
17818   {
17819     "type": "get",
17820     "url": "/api/mail/reports/transfer",
17821     "title": "Gets a list of Mail Transfer Reports",
17822     "examples": [
17823       {
17824         "title": "Example usage:",
17825         "content": "curl https://{domain}/api/mail/reports/transfer -v -u {name}:{password}",
17826         "type": "json"
17827       }
17828     ],
17829     "name": "GetMail_Transfer_Reports",
17830     "group": "Mail_Transfer_Reports",
17831     "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>",
17832     "version": "0.0.0",
17833     "filename": "server/api/mailTransferReport/index.js",
17834     "groupTitle": "Mail_Transfer_Reports"
17835   },
17836   {
17837     "type": "get",
17838     "url": "/api/mail/reports/transfer/{id}",
17839     "title": "Gets a single Mail Transfer Report",
17840     "examples": [
17841       {
17842         "title": "Example usage:",
17843         "content": "curl https://{domain}/api/mail/reports/transfer/{id} -v -u {name}:{password}",
17844         "type": "json"
17845       }
17846     ],
17847     "name": "ShowMail_Transfer_Reports",
17848     "group": "Mail_Transfer_Reports",
17849     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17850     "version": "0.0.0",
17851     "filename": "server/api/mailTransferReport/index.js",
17852     "groupTitle": "Mail_Transfer_Reports"
17853   },
17854   {
17855     "type": "put",
17856     "url": "/api/mail/reports/transfer/{id}",
17857     "title": "Update an existing Mail Transfer Report",
17858     "examples": [
17859       {
17860         "title": "Example usage:",
17861         "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",
17862         "type": "json"
17863       }
17864     ],
17865     "name": "updateMail_Transfer_Reports",
17866     "group": "Mail_Transfer_Reports",
17867     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17868     "version": "0.0.0",
17869     "filename": "server/api/mailTransferReport/index.js",
17870     "groupTitle": "Mail_Transfer_Reports"
17871   },
17872   {
17873     "type": "get",
17874     "url": "/api/members/reports/describe",
17875     "title": "Gets table info about Member Reports",
17876     "examples": [
17877       {
17878         "title": "Example usage:",
17879         "content": "curl https://{domain}/api/members/reports/describe -v -u {name}:{password}",
17880         "type": "json"
17881       }
17882     ],
17883     "name": "DescribeMember_Reports",
17884     "group": "Member_Reports",
17885     "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>",
17886     "version": "0.0.0",
17887     "filename": "server/api/memberReport/index.js",
17888     "groupTitle": "Member_Reports"
17889   },
17890   {
17891     "type": "get",
17892     "url": "/api/members/reports",
17893     "title": "Gets a list of Member Reports",
17894     "examples": [
17895       {
17896         "title": "Example usage:",
17897         "content": "curl https://{domain}/api/members/reports -v -u {name}:{password}",
17898         "type": "json"
17899       }
17900     ],
17901     "name": "GetMember_Reports",
17902     "group": "Member_Reports",
17903     "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>",
17904     "version": "0.0.0",
17905     "filename": "server/api/memberReport/index.js",
17906     "groupTitle": "Member_Reports"
17907   },
17908   {
17909     "type": "get",
17910     "url": "/api/members/reports/{id}",
17911     "title": "Gets a single Member Report",
17912     "examples": [
17913       {
17914         "title": "Example usage:",
17915         "content": "curl https://{domain}/api/members/reports/{id} -v -u {name}:{password}",
17916         "type": "json"
17917       }
17918     ],
17919     "name": "ShowMember_Reports",
17920     "group": "Member_Reports",
17921     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17922     "version": "0.0.0",
17923     "filename": "server/api/memberReport/index.js",
17924     "groupTitle": "Member_Reports"
17925   },
17926   {
17927     "type": "get",
17928     "url": "/api/migrations",
17929     "title": "Gets a list of Migrations",
17930     "examples": [
17931       {
17932         "title": "Example usage:",
17933         "content": "curl https://{domain}/api/migrations -v -u {name}:{password}",
17934         "type": "json"
17935       }
17936     ],
17937     "name": "GetMigrations",
17938     "group": "Migrations",
17939     "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>",
17940     "version": "0.0.0",
17941     "filename": "server/api/migration/index.js",
17942     "groupTitle": "Migrations"
17943   },
17944   {
17945     "type": "post",
17946     "url": "/api/voice/networks",
17947     "title": "Create a new network",
17948     "examples": [
17949       {
17950         "title": "Example usage:",
17951         "content": "curl https://{domain}/api/voice/networks -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
17952         "type": "json"
17953       }
17954     ],
17955     "name": "Create",
17956     "group": "Networks",
17957     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17958     "version": "0.0.0",
17959     "filename": "server/api/network/index.js",
17960     "groupTitle": "Networks"
17961   },
17962   {
17963     "type": "delete",
17964     "url": "/api/voice/networks/{id}",
17965     "title": "Deletes a network",
17966     "examples": [
17967       {
17968         "title": "Example usage:",
17969         "content": "curl https://{domain}/api/voice/networks/{id} -v -u {name}:{password} -X DELETE",
17970         "type": "json"
17971       }
17972     ],
17973     "name": "Delete",
17974     "group": "Networks",
17975     "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>",
17976     "version": "0.0.0",
17977     "filename": "server/api/network/index.js",
17978     "groupTitle": "Networks"
17979   },
17980   {
17981     "type": "get",
17982     "url": "/api/networks",
17983     "title": "Gets a list of Networks",
17984     "examples": [
17985       {
17986         "title": "Example usage:",
17987         "content": "curl https://{domain}/api/networks -v -u {name}:{password}",
17988         "type": "json"
17989       }
17990     ],
17991     "name": "GetNetworks",
17992     "group": "Networks",
17993     "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>",
17994     "version": "0.0.0",
17995     "filename": "server/api/network/index.js",
17996     "groupTitle": "Networks"
17997   },
17998   {
17999     "type": "get",
18000     "url": "/api/networks/{id}",
18001     "title": "Gets a single Network",
18002     "examples": [
18003       {
18004         "title": "Example usage:",
18005         "content": "curl https://{domain}/api/networks/{id} -v -u {name}:{password}",
18006         "type": "json"
18007       }
18008     ],
18009     "name": "ShowNetworks",
18010     "group": "Networks",
18011     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18012     "version": "0.0.0",
18013     "filename": "server/api/network/index.js",
18014     "groupTitle": "Networks"
18015   },
18016   {
18017     "type": "put",
18018     "url": "/api/voice/networks/{id}",
18019     "title": "Update an existing network",
18020     "examples": [
18021       {
18022         "title": "Example usage:",
18023         "content": "curl https://{domain}/api/voice/networks/{id} -v -u {name}:{password} -X PUT",
18024         "type": "json"
18025       }
18026     ],
18027     "name": "Update",
18028     "group": "Networks",
18029     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18030     "version": "0.0.0",
18031     "filename": "server/api/network/index.js",
18032     "groupTitle": "Networks"
18033   },
18034   {
18035     "type": "post",
18036     "url": "/api/openchannel/accounts/{id}/users",
18037     "title": "Add agents to a openchannel account",
18038     "examples": [
18039       {
18040         "title": "Example usage:",
18041         "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",
18042         "type": "json"
18043       }
18044     ],
18045     "name": "AddAgents",
18046     "group": "Openchannel_Accounts",
18047     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18048     "version": "0.0.0",
18049     "filename": "server/api/openchannelAccount/index.js",
18050     "groupTitle": "Openchannel_Accounts"
18051   },
18052   {
18053     "type": "post",
18054     "url": "/api/openchannel/accounts",
18055     "title": "Creates a new Account",
18056     "examples": [
18057       {
18058         "title": "Example usage:",
18059         "content": "curl https://{domain}/api/openchannel/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
18060         "type": "json"
18061       }
18062     ],
18063     "name": "CreateAccounts",
18064     "group": "Openchannel_Accounts",
18065     "parameter": {
18066       "fields": {
18067         "Body": [
18068           {
18069             "group": "Body",
18070             "type": "String",
18071             "optional": false,
18072             "field": "name",
18073             "description": ""
18074           },
18075           {
18076             "group": "Body",
18077             "type": "String",
18078             "optional": true,
18079             "field": "description",
18080             "description": ""
18081           },
18082           {
18083             "group": "Body",
18084             "type": "String",
18085             "optional": true,
18086             "field": "token",
18087             "description": ""
18088           },
18089           {
18090             "group": "Body",
18091             "type": "String",
18092             "optional": true,
18093             "field": "replyUri",
18094             "description": ""
18095           },
18096           {
18097             "group": "Body",
18098             "type": "String",
18099             "optional": false,
18100             "field": "key",
18101             "description": ""
18102           },
18103           {
18104             "group": "Body",
18105             "type": "Text",
18106             "optional": true,
18107             "field": "notificationTemplate",
18108             "description": ""
18109           },
18110           {
18111             "group": "Body",
18112             "type": "Boolean",
18113             "optional": true,
18114             "field": "notificationSound",
18115             "description": ""
18116           },
18117           {
18118             "group": "Body",
18119             "type": "Boolean",
18120             "optional": true,
18121             "field": "notificationShake",
18122             "description": ""
18123           },
18124           {
18125             "group": "Body",
18126             "type": "Integer",
18127             "optional": true,
18128             "field": "waitForTheAssignedAgent",
18129             "description": ""
18130           },
18131           {
18132             "group": "Body",
18133             "type": "String",
18134             "optional": true,
18135             "field": "mapKey",
18136             "description": ""
18137           },
18138           {
18139             "group": "Body",
18140             "type": "Boolean",
18141             "optional": true,
18142             "field": "queueTransfer",
18143             "description": ""
18144           },
18145           {
18146             "group": "Body",
18147             "type": "Integer",
18148             "optional": true,
18149             "field": "queueTransferTimeout",
18150             "description": ""
18151           },
18152           {
18153             "group": "Body",
18154             "type": "Boolean",
18155             "optional": true,
18156             "field": "agentTransfer",
18157             "description": ""
18158           },
18159           {
18160             "group": "Body",
18161             "type": "Integer",
18162             "optional": true,
18163             "field": "agentTransferTimeout",
18164             "description": ""
18165           },
18166           {
18167             "group": "Body",
18168             "type": "Integer",
18169             "optional": true,
18170             "field": "mandatoryDispositionPauseId",
18171             "description": "<p>Status to put when mandatory disposition is enabled</p>"
18172           },
18173           {
18174             "group": "Body",
18175             "type": "Boolean",
18176             "optional": true,
18177             "field": "mandatoryDisposition",
18178             "description": "<p>Enabled/disables mandatory dispo on a queue</p>"
18179           }
18180         ]
18181       }
18182     },
18183     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18184     "version": "0.0.0",
18185     "filename": "server/api/openchannelAccount/index.js",
18186     "groupTitle": "Openchannel_Accounts"
18187   },
18188   {
18189     "type": "delete",
18190     "url": "/api/openchannel/accounts/{id}",
18191     "title": "Deletes a Account",
18192     "examples": [
18193       {
18194         "title": "Example usage:",
18195         "content": "curl https://{domain}/api/openchannel/accounts/{id} -v -u {name}:{password} -X DELETE",
18196         "type": "json"
18197       }
18198     ],
18199     "name": "DeleteAccounts",
18200     "group": "Openchannel_Accounts",
18201     "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>",
18202     "version": "0.0.0",
18203     "filename": "server/api/openchannelAccount/index.js",
18204     "groupTitle": "Openchannel_Accounts"
18205   },
18206   {
18207     "type": "get",
18208     "url": "/api/openchannel/accounts/describe",
18209     "title": "Gets table info about Accounts",
18210     "examples": [
18211       {
18212         "title": "Example usage:",
18213         "content": "curl https://{domain}/api/openchannel/accounts/describe -v -u {name}:{password}",
18214         "type": "json"
18215       }
18216     ],
18217     "name": "DescribeAccounts",
18218     "group": "Openchannel_Accounts",
18219     "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>",
18220     "version": "0.0.0",
18221     "filename": "server/api/openchannelAccount/index.js",
18222     "groupTitle": "Openchannel_Accounts"
18223   },
18224   {
18225     "type": "get",
18226     "url": "/api/openchannel/accounts",
18227     "title": "Gets a list of Accounts",
18228     "examples": [
18229       {
18230         "title": "Example usage:",
18231         "content": "curl https://{domain}/api/openchannel/accounts -v -u {name}:{password}",
18232         "type": "json"
18233       }
18234     ],
18235     "name": "GetAccounts",
18236     "group": "Openchannel_Accounts",
18237     "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>",
18238     "version": "0.0.0",
18239     "filename": "server/api/openchannelAccount/index.js",
18240     "groupTitle": "Openchannel_Accounts"
18241   },
18242   {
18243     "type": "get",
18244     "url": "/api/openchannel/accounts/{id}/users",
18245     "title": "Gets agents from openchannel account",
18246     "examples": [
18247       {
18248         "title": "Example usage:",
18249         "content": "curl https://{domain}/api/openchannel/accounts/{id}/users -v -u {name}:{password} -X GET",
18250         "type": "json"
18251       }
18252     ],
18253     "name": "GetAgents",
18254     "group": "Openchannel_Accounts",
18255     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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}/users",
18263     "title": "Removes agents from a openchannel account",
18264     "examples": [
18265       {
18266         "title": "Example usage:",
18267         "content": "curl https://{domain}/api/openchannel/accounts/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
18268         "type": "json"
18269       }
18270     ],
18271     "name": "RemoveAgents",
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": "delete",
18280     "url": "/api/openchannel/accounts/{id}/canned_answers",
18281     "title": "Removes canned answers from account",
18282     "examples": [
18283       {
18284         "title": "Example usage:",
18285         "content": "curl https://{domain}/api/openchannel/accounts/{id}/canned_answers?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
18286         "type": "json"
18287       }
18288     ],
18289     "name": "RemoveAnswers",
18290     "group": "Openchannel_Accounts",
18291     "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>",
18292     "version": "0.0.0",
18293     "filename": "server/api/openchannelAccount/index.js",
18294     "groupTitle": "Openchannel_Accounts"
18295   },
18296   {
18297     "type": "delete",
18298     "url": "/api/openchannel/accounts/{id}/dispositions",
18299     "title": "Removes dispositions from account",
18300     "examples": [
18301       {
18302         "title": "Example usage:",
18303         "content": "curl https://{domain}/api/openchannel/accounts/{id}/dispositions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
18304         "type": "json"
18305       }
18306     ],
18307     "name": "RemoveDispositions",
18308     "group": "Openchannel_Accounts",
18309     "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>",
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}",
18317     "title": "Gets a single Account",
18318     "examples": [
18319       {
18320         "title": "Example usage:",
18321         "content": "curl https://{domain}/api/openchannel/accounts/{id} -v -u {name}:{password}",
18322         "type": "json"
18323       }
18324     ],
18325     "name": "ShowAccounts",
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": "post",
18334     "url": "/api/openchannel/accounts/{id}/canned_answers",
18335     "title": "Creates new canned answer",
18336     "examples": [
18337       {
18338         "title": "Example usage:",
18339         "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",
18340         "type": "json"
18341       }
18342     ],
18343     "name": "addAnswer",
18344     "group": "Openchannel_Accounts",
18345     "parameter": {
18346       "fields": {
18347         "Body": [
18348           {
18349             "group": "Body",
18350             "type": "String",
18351             "optional": false,
18352             "field": "key",
18353             "description": ""
18354           },
18355           {
18356             "group": "Body",
18357             "type": "Text",
18358             "optional": false,
18359             "field": "value",
18360             "description": ""
18361           },
18362           {
18363             "group": "Body",
18364             "type": "String",
18365             "optional": true,
18366             "field": "description",
18367             "description": ""
18368           },
18369           {
18370             "group": "Body",
18371             "type": "Virtual",
18372             "optional": true,
18373             "field": "name",
18374             "description": ""
18375           }
18376         ]
18377       }
18378     },
18379     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18380     "version": "0.0.0",
18381     "filename": "server/api/openchannelAccount/index.js",
18382     "groupTitle": "Openchannel_Accounts"
18383   },
18384   {
18385     "type": "post",
18386     "url": "/api/openchannel/accounts/{id}/applications",
18387     "title": "Creates new applications",
18388     "examples": [
18389       {
18390         "title": "Example usage:",
18391         "content": "curl https://{domain}/api/openchannel/accounts/{id}/applications -d '[{\"app\": \"queue\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
18392         "type": "json"
18393       }
18394     ],
18395     "name": "addApplications",
18396     "group": "Openchannel_Accounts",
18397     "parameter": {
18398       "fields": {
18399         "Body": [
18400           {
18401             "group": "Body",
18402             "type": "Integer",
18403             "optional": false,
18404             "field": "priority",
18405             "description": ""
18406           },
18407           {
18408             "group": "Body",
18409             "type": "String",
18410             "optional": false,
18411             "field": "app",
18412             "description": ""
18413           },
18414           {
18415             "group": "Body",
18416             "type": "Text",
18417             "optional": true,
18418             "field": "appdata",
18419             "description": ""
18420           },
18421           {
18422             "group": "Body",
18423             "type": "String",
18424             "optional": true,
18425             "field": "description",
18426             "description": ""
18427           },
18428           {
18429             "group": "Body",
18430             "type": "String",
18431             "optional": true,
18432             "field": "interval",
18433             "description": ""
18434           }
18435         ]
18436       }
18437     },
18438     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18439     "version": "0.0.0",
18440     "filename": "server/api/openchannelAccount/index.js",
18441     "groupTitle": "Openchannel_Accounts"
18442   },
18443   {
18444     "type": "post",
18445     "url": "/api/openchannel/accounts/{id}/dispositions",
18446     "title": "Creates new disposition",
18447     "examples": [
18448       {
18449         "title": "Example usage:",
18450         "content": "curl https://{domain}/api/openchannel/accounts/{id}/dispositions -d '{\"name\": \"vip\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
18451         "type": "json"
18452       }
18453     ],
18454     "name": "addDisposition",
18455     "group": "Openchannel_Accounts",
18456     "parameter": {
18457       "fields": {
18458         "Body": [
18459           {
18460             "group": "Body",
18461             "type": "String",
18462             "optional": false,
18463             "field": "name",
18464             "description": ""
18465           },
18466           {
18467             "group": "Body",
18468             "type": "String",
18469             "allowedValues": [
18470               "\"first\"",
18471               "\"second\"",
18472               "\"third\""
18473             ],
18474             "optional": false,
18475             "field": "level",
18476             "description": ""
18477           },
18478           {
18479             "group": "Body",
18480             "type": "String",
18481             "optional": true,
18482             "field": "description",
18483             "description": ""
18484           }
18485         ]
18486       }
18487     },
18488     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18489     "version": "0.0.0",
18490     "filename": "server/api/openchannelAccount/index.js",
18491     "groupTitle": "Openchannel_Accounts"
18492   },
18493   {
18494     "type": "get",
18495     "url": "/api/openchannel/accounts/{id}/canned_answers",
18496     "title": "Gets account canned answers",
18497     "examples": [
18498       {
18499         "title": "Example usage:",
18500         "content": "curl https://{domain}/api/openchannel/accounts/{id}/canned_answers -v -u {name}:{password} -X GET",
18501         "type": "json"
18502       }
18503     ],
18504     "name": "getAnswers",
18505     "group": "Openchannel_Accounts",
18506     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18507     "version": "0.0.0",
18508     "filename": "server/api/openchannelAccount/index.js",
18509     "groupTitle": "Openchannel_Accounts"
18510   },
18511   {
18512     "type": "get",
18513     "url": "/api/openchannel/accounts/{id}/applications",
18514     "title": "Gets account applications",
18515     "examples": [
18516       {
18517         "title": "Example usage:",
18518         "content": "curl https://{domain}/api/openchannel/accounts/{id}/applications -v -u {name}:{password} -X GET",
18519         "type": "json"
18520       }
18521     ],
18522     "name": "getApplications",
18523     "group": "Openchannel_Accounts",
18524     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18525     "version": "0.0.0",
18526     "filename": "server/api/openchannelAccount/index.js",
18527     "groupTitle": "Openchannel_Accounts"
18528   },
18529   {
18530     "type": "get",
18531     "url": "/api/openchannel/accounts/{id}/dispositions",
18532     "title": "Gets account dispositions",
18533     "examples": [
18534       {
18535         "title": "Example usage:",
18536         "content": "curl https://{domain}/api/openchannel/accounts/{id}/dispositions -v -u {name}:{password} -X GET",
18537         "type": "json"
18538       }
18539     ],
18540     "name": "getDispositions",
18541     "group": "Openchannel_Accounts",
18542     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18543     "version": "0.0.0",
18544     "filename": "server/api/openchannelAccount/index.js",
18545     "groupTitle": "Openchannel_Accounts"
18546   },
18547   {
18548     "type": "get",
18549     "url": "/api/openchannel/accounts/{id}/interactions",
18550     "title": "Gets Openchannel Account Interactions",
18551     "examples": [
18552       {
18553         "title": "Example usage:",
18554         "content": "curl https://{domain}/api/openchannel/accounts/{id}/interactions -v -u {name}:{password} -X GET",
18555         "type": "json"
18556       }
18557     ],
18558     "name": "getInteractions",
18559     "group": "Openchannel_Accounts",
18560     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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": "post",
18567     "url": "/api/openchannel/accounts/{id}/notify",
18568     "title": "Notify new message",
18569     "examples": [
18570       {
18571         "title": "Example usage:",
18572         "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",
18573         "type": "json"
18574       }
18575     ],
18576     "name": "notify",
18577     "group": "Openchannel_Accounts",
18578     "description": "<p>Motion 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>",
18579     "version": "0.0.0",
18580     "filename": "server/api/openchannelAccount/index.js",
18581     "groupTitle": "Openchannel_Accounts"
18582   },
18583   {
18584     "type": "post",
18585     "url": "/api/openchannel/accounts/{id}/send",
18586     "title": "Send new openchannel message",
18587     "examples": [
18588       {
18589         "title": "Example usage:",
18590         "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",
18591         "type": "json"
18592       }
18593     ],
18594     "name": "sendOpenchannel",
18595     "group": "Openchannel_Accounts",
18596     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</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": "put",
18603     "url": "/api/openchannel/accounts/{id}",
18604     "title": "Update an existing Account",
18605     "examples": [
18606       {
18607         "title": "Example usage:",
18608         "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",
18609         "type": "json"
18610       }
18611     ],
18612     "name": "updateAccounts",
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": "post",
18621     "url": "/api/openchannel/applications",
18622     "title": "Creates a new Application",
18623     "examples": [
18624       {
18625         "title": "Example usage:",
18626         "content": "curl https://{domain}/api/openchannel/applications -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
18627         "type": "json"
18628       }
18629     ],
18630     "name": "CreateApplications",
18631     "group": "Openchannel_Applications",
18632     "parameter": {
18633       "fields": {
18634         "Body": [
18635           {
18636             "group": "Body",
18637             "type": "Integer",
18638             "optional": false,
18639             "field": "priority",
18640             "description": ""
18641           },
18642           {
18643             "group": "Body",
18644             "type": "String",
18645             "optional": false,
18646             "field": "app",
18647             "description": ""
18648           },
18649           {
18650             "group": "Body",
18651             "type": "Text",
18652             "optional": true,
18653             "field": "appdata",
18654             "description": ""
18655           },
18656           {
18657             "group": "Body",
18658             "type": "String",
18659             "optional": true,
18660             "field": "description",
18661             "description": ""
18662           },
18663           {
18664             "group": "Body",
18665             "type": "String",
18666             "optional": true,
18667             "field": "interval",
18668             "description": ""
18669           }
18670         ]
18671       }
18672     },
18673     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18674     "version": "0.0.0",
18675     "filename": "server/api/openchannelApplication/index.js",
18676     "groupTitle": "Openchannel_Applications"
18677   },
18678   {
18679     "type": "delete",
18680     "url": "/api/openchannel/applications/{id}",
18681     "title": "Deletes a Application",
18682     "examples": [
18683       {
18684         "title": "Example usage:",
18685         "content": "curl https://{domain}/api/openchannel/applications/{id} -v -u {name}:{password} -X DELETE",
18686         "type": "json"
18687       }
18688     ],
18689     "name": "DeleteApplications",
18690     "group": "Openchannel_Applications",
18691     "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>",
18692     "version": "0.0.0",
18693     "filename": "server/api/openchannelApplication/index.js",
18694     "groupTitle": "Openchannel_Applications"
18695   },
18696   {
18697     "type": "get",
18698     "url": "/api/openchannel/applications",
18699     "title": "Gets a list of Applications",
18700     "examples": [
18701       {
18702         "title": "Example usage:",
18703         "content": "curl https://{domain}/api/openchannel/applications -v -u {name}:{password}",
18704         "type": "json"
18705       }
18706     ],
18707     "name": "GetApplications",
18708     "group": "Openchannel_Applications",
18709     "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>",
18710     "version": "0.0.0",
18711     "filename": "server/api/openchannelApplication/index.js",
18712     "groupTitle": "Openchannel_Applications"
18713   },
18714   {
18715     "type": "get",
18716     "url": "/api/openchannel/applications/{id}",
18717     "title": "Gets a single Application",
18718     "examples": [
18719       {
18720         "title": "Example usage:",
18721         "content": "curl https://{domain}/api/openchannel/applications/{id} -v -u {name}:{password}",
18722         "type": "json"
18723       }
18724     ],
18725     "name": "ShowApplications",
18726     "group": "Openchannel_Applications",
18727     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18728     "version": "0.0.0",
18729     "filename": "server/api/openchannelApplication/index.js",
18730     "groupTitle": "Openchannel_Applications"
18731   },
18732   {
18733     "type": "put",
18734     "url": "/api/openchannel/applications/{id}",
18735     "title": "Update an existing Application",
18736     "examples": [
18737       {
18738         "title": "Example usage:",
18739         "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",
18740         "type": "json"
18741       }
18742     ],
18743     "name": "updateApplications",
18744     "group": "Openchannel_Applications",
18745     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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": "post",
18752     "url": "/api/openchannel/interactions/{id}/tags",
18753     "title": "Add tags to the interaction",
18754     "examples": [
18755       {
18756         "title": "Example usage:",
18757         "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",
18758         "type": "json"
18759       }
18760     ],
18761     "name": "AddTags",
18762     "group": "Openchannel_Interactions",
18763     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18764     "version": "0.0.0",
18765     "filename": "server/api/openchannelInteraction/index.js",
18766     "groupTitle": "Openchannel_Interactions"
18767   },
18768   {
18769     "type": "post",
18770     "url": "/api/openchannel/interactions",
18771     "title": "Creates a new Interaction",
18772     "examples": [
18773       {
18774         "title": "Example usage:",
18775         "content": "curl https://{domain}/api/openchannel/interactions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
18776         "type": "json"
18777       }
18778     ],
18779     "name": "CreateInteractions",
18780     "group": "Openchannel_Interactions",
18781     "parameter": {
18782       "fields": {
18783         "Body": [
18784           {
18785             "group": "Body",
18786             "type": "Boolean",
18787             "optional": true,
18788             "field": "closed",
18789             "description": ""
18790           },
18791           {
18792             "group": "Body",
18793             "type": "String",
18794             "optional": true,
18795             "field": "closedAt",
18796             "description": ""
18797           },
18798           {
18799             "group": "Body",
18800             "type": "String",
18801             "optional": true,
18802             "field": "disposition",
18803             "description": ""
18804           },
18805           {
18806             "group": "Body",
18807             "type": "String",
18808             "optional": true,
18809             "field": "secondDisposition",
18810             "description": ""
18811           },
18812           {
18813             "group": "Body",
18814             "type": "String",
18815             "optional": true,
18816             "field": "thirdDisposition",
18817             "description": ""
18818           },
18819           {
18820             "group": "Body",
18821             "type": "String",
18822             "optional": true,
18823             "field": "note",
18824             "description": ""
18825           },
18826           {
18827             "group": "Body",
18828             "type": "String",
18829             "optional": true,
18830             "field": "read1stAt",
18831             "description": ""
18832           },
18833           {
18834             "group": "Body",
18835             "type": "String",
18836             "optional": true,
18837             "field": "threadId",
18838             "description": ""
18839           },
18840           {
18841             "group": "Body",
18842             "type": "String",
18843             "optional": true,
18844             "field": "externalUrl",
18845             "description": ""
18846           },
18847           {
18848             "group": "Body",
18849             "type": "String",
18850             "optional": true,
18851             "field": "lastMsgAt",
18852             "description": ""
18853           },
18854           {
18855             "group": "Body",
18856             "type": "String",
18857             "allowedValues": [
18858               "\"in\"",
18859               "\"out\""
18860             ],
18861             "optional": false,
18862             "field": "lastMsgDirection",
18863             "description": ""
18864           },
18865           {
18866             "group": "Body",
18867             "type": "String",
18868             "optional": true,
18869             "field": "from",
18870             "description": ""
18871           },
18872           {
18873             "group": "Body",
18874             "type": "Boolean",
18875             "optional": true,
18876             "field": "autoreplyExecuted",
18877             "description": ""
18878           }
18879         ]
18880       }
18881     },
18882     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18883     "version": "0.0.0",
18884     "filename": "server/api/openchannelInteraction/index.js",
18885     "groupTitle": "Openchannel_Interactions"
18886   },
18887   {
18888     "type": "delete",
18889     "url": "/api/openchannel/interactions/{id}",
18890     "title": "Deletes a Interaction",
18891     "examples": [
18892       {
18893         "title": "Example usage:",
18894         "content": "curl https://{domain}/api/openchannel/interactions/{id} -v -u {name}:{password} -X DELETE",
18895         "type": "json"
18896       }
18897     ],
18898     "name": "DeleteInteractions",
18899     "group": "Openchannel_Interactions",
18900     "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>",
18901     "version": "0.0.0",
18902     "filename": "server/api/openchannelInteraction/index.js",
18903     "groupTitle": "Openchannel_Interactions"
18904   },
18905   {
18906     "type": "get",
18907     "url": "/api/openchannel/interactions/describe",
18908     "title": "Gets table info about Interactions",
18909     "examples": [
18910       {
18911         "title": "Example usage:",
18912         "content": "curl https://{domain}/api/openchannel/interactions/describe -v -u {name}:{password}",
18913         "type": "json"
18914       }
18915     ],
18916     "name": "DescribeInteractions",
18917     "group": "Openchannel_Interactions",
18918     "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>",
18919     "version": "0.0.0",
18920     "filename": "server/api/openchannelInteraction/index.js",
18921     "groupTitle": "Openchannel_Interactions"
18922   },
18923   {
18924     "type": "get",
18925     "url": "/api/openchannel/interactions",
18926     "title": "Gets a list of Interactions",
18927     "examples": [
18928       {
18929         "title": "Example usage:",
18930         "content": "curl https://{domain}/api/openchannel/interactions -v -u {name}:{password}",
18931         "type": "json"
18932       }
18933     ],
18934     "name": "GetInteractions",
18935     "group": "Openchannel_Interactions",
18936     "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>",
18937     "version": "0.0.0",
18938     "filename": "server/api/openchannelInteraction/index.js",
18939     "groupTitle": "Openchannel_Interactions"
18940   },
18941   {
18942     "type": "delete",
18943     "url": "/api/openchannel/interactions/{id}/tags",
18944     "title": "Removes tags from interaction",
18945     "examples": [
18946       {
18947         "title": "Example usage:",
18948         "content": "curl https://{domain}/api/openchannel/interactions/{id}/tags?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
18949         "type": "json"
18950       }
18951     ],
18952     "name": "RemoveTags",
18953     "group": "Openchannel_Interactions",
18954     "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>",
18955     "version": "0.0.0",
18956     "filename": "server/api/openchannelInteraction/index.js",
18957     "groupTitle": "Openchannel_Interactions"
18958   },
18959   {
18960     "type": "get",
18961     "url": "/api/openchannel/interactions/{id}",
18962     "title": "Gets a single Interaction",
18963     "examples": [
18964       {
18965         "title": "Example usage:",
18966         "content": "curl https://{domain}/api/openchannel/interactions/{id} -v -u {name}:{password}",
18967         "type": "json"
18968       }
18969     ],
18970     "name": "ShowInteractions",
18971     "group": "Openchannel_Interactions",
18972     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <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": "post",
18979     "url": "/api/openchannel/interactions/{id}/messages",
18980     "title": "Creates new messages",
18981     "examples": [
18982       {
18983         "title": "Example usage:",
18984         "content": "curl https://{domain}/api/openchannel/interactions/{id}/messages -d '[{\"to\": \"+3901119886500\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
18985         "type": "json"
18986       }
18987     ],
18988     "name": "addMessage",
18989     "group": "Openchannel_Interactions",
18990     "parameter": {
18991       "fields": {
18992         "Body": [
18993           {
18994             "group": "Body",
18995             "type": "Text",
18996             "optional": false,
18997             "field": "body",
18998             "description": ""
18999           },
19000           {
19001             "group": "Body",
19002             "type": "Boolean",
19003             "optional": true,
19004             "field": "read",
19005             "description": ""
19006           },
19007           {
19008             "group": "Body",
19009             "type": "Boolean",
19010             "optional": true,
19011             "field": "secret",
19012             "description": ""
19013           },
19014           {
19015             "group": "Body",
19016             "type": "String",
19017             "allowedValues": [
19018               "\"in\"",
19019               "\"out\""
19020             ],
19021             "optional": false,
19022             "field": "direction",
19023             "description": ""
19024           },
19025           {
19026             "group": "Body",
19027             "type": "String",
19028             "optional": true,
19029             "field": "readAt",
19030             "description": ""
19031           },
19032           {
19033             "group": "Body",
19034             "type": "String",
19035             "optional": true,
19036             "field": "providerName",
19037             "description": ""
19038           },
19039           {
19040             "group": "Body",
19041             "type": "Text",
19042             "optional": true,
19043             "field": "providerResponse",
19044             "description": ""
19045           }
19046         ]
19047       }
19048     },
19049     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19050     "version": "0.0.0",
19051     "filename": "server/api/openchannelInteraction/index.js",
19052     "groupTitle": "Openchannel_Interactions"
19053   },
19054   {
19055     "type": "get",
19056     "url": "/api/openchannel/interactions/{id}/download",
19057     "title": "Gets interaction",
19058     "examples": [
19059       {
19060         "title": "Example usage:",
19061         "content": "curl https://{domain}/api/openchannel/interactions/{id}/download -v -u {name}:{password} -X GET",
19062         "type": "json"
19063       }
19064     ],
19065     "name": "download",
19066     "group": "Openchannel_Interactions",
19067     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19068     "version": "0.0.0",
19069     "filename": "server/api/openchannelInteraction/index.js",
19070     "groupTitle": "Openchannel_Interactions"
19071   },
19072   {
19073     "type": "get",
19074     "url": "/api/openchannel/interactions/{id}/messages",
19075     "title": "Gets interaction messages",
19076     "examples": [
19077       {
19078         "title": "Example usage:",
19079         "content": "curl https://{domain}/api/openchannel/interactions/{id}/messages -v -u {name}:{password} -X GET",
19080         "type": "json"
19081       }
19082     ],
19083     "name": "getMessages",
19084     "group": "Openchannel_Interactions",
19085     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19086     "version": "0.0.0",
19087     "filename": "server/api/openchannelInteraction/index.js",
19088     "groupTitle": "Openchannel_Interactions"
19089   },
19090   {
19091     "type": "put",
19092     "url": "/api/openchannel/interactions/{id}",
19093     "title": "Update an existing Interaction",
19094     "examples": [
19095       {
19096         "title": "Example usage:",
19097         "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",
19098         "type": "json"
19099       }
19100     ],
19101     "name": "updateInteractions",
19102     "group": "Openchannel_Interactions",
19103     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19104     "version": "0.0.0",
19105     "filename": "server/api/openchannelInteraction/index.js",
19106     "groupTitle": "Openchannel_Interactions"
19107   },
19108   {
19109     "type": "post",
19110     "url": "/api/openchannel/messages",
19111     "title": "Creates a new Message",
19112     "examples": [
19113       {
19114         "title": "Example usage:",
19115         "content": "curl https://{domain}/api/openchannel/messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
19116         "type": "json"
19117       }
19118     ],
19119     "name": "CreateMessages",
19120     "group": "Openchannel_Messages",
19121     "parameter": {
19122       "fields": {
19123         "Body": [
19124           {
19125             "group": "Body",
19126             "type": "Text",
19127             "optional": false,
19128             "field": "body",
19129             "description": ""
19130           },
19131           {
19132             "group": "Body",
19133             "type": "Boolean",
19134             "optional": true,
19135             "field": "read",
19136             "description": ""
19137           },
19138           {
19139             "group": "Body",
19140             "type": "Boolean",
19141             "optional": true,
19142             "field": "secret",
19143             "description": ""
19144           },
19145           {
19146             "group": "Body",
19147             "type": "String",
19148             "allowedValues": [
19149               "\"in\"",
19150               "\"out\""
19151             ],
19152             "optional": false,
19153             "field": "direction",
19154             "description": ""
19155           },
19156           {
19157             "group": "Body",
19158             "type": "String",
19159             "optional": true,
19160             "field": "readAt",
19161             "description": ""
19162           },
19163           {
19164             "group": "Body",
19165             "type": "String",
19166             "optional": true,
19167             "field": "providerName",
19168             "description": ""
19169           },
19170           {
19171             "group": "Body",
19172             "type": "Text",
19173             "optional": true,
19174             "field": "providerResponse",
19175             "description": ""
19176           }
19177         ]
19178       }
19179     },
19180     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19181     "version": "0.0.0",
19182     "filename": "server/api/openchannelMessage/index.js",
19183     "groupTitle": "Openchannel_Messages"
19184   },
19185   {
19186     "type": "delete",
19187     "url": "/api/openchannel/messages/{id}",
19188     "title": "Deletes a Message",
19189     "examples": [
19190       {
19191         "title": "Example usage:",
19192         "content": "curl https://{domain}/api/openchannel/messages/{id} -v -u {name}:{password} -X DELETE",
19193         "type": "json"
19194       }
19195     ],
19196     "name": "DeleteMessages",
19197     "group": "Openchannel_Messages",
19198     "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>",
19199     "version": "0.0.0",
19200     "filename": "server/api/openchannelMessage/index.js",
19201     "groupTitle": "Openchannel_Messages"
19202   },
19203   {
19204     "type": "get",
19205     "url": "/api/openchannel/messages/describe",
19206     "title": "Gets table info about Messages",
19207     "examples": [
19208       {
19209         "title": "Example usage:",
19210         "content": "curl https://{domain}/api/openchannel/messages/describe -v -u {name}:{password}",
19211         "type": "json"
19212       }
19213     ],
19214     "name": "DescribeMessages",
19215     "group": "Openchannel_Messages",
19216     "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>",
19217     "version": "0.0.0",
19218     "filename": "server/api/openchannelMessage/index.js",
19219     "groupTitle": "Openchannel_Messages"
19220   },
19221   {
19222     "type": "get",
19223     "url": "/api/openchannel/messages",
19224     "title": "Gets a list of Messages",
19225     "examples": [
19226       {
19227         "title": "Example usage:",
19228         "content": "curl https://{domain}/api/openchannel/messages -v -u {name}:{password}",
19229         "type": "json"
19230       }
19231     ],
19232     "name": "GetMessages",
19233     "group": "Openchannel_Messages",
19234     "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>",
19235     "version": "0.0.0",
19236     "filename": "server/api/openchannelMessage/index.js",
19237     "groupTitle": "Openchannel_Messages"
19238   },
19239   {
19240     "type": "get",
19241     "url": "/api/openchannel/messages/{id}",
19242     "title": "Gets a single Message",
19243     "examples": [
19244       {
19245         "title": "Example usage:",
19246         "content": "curl https://{domain}/api/openchannel/messages/{id} -v -u {name}:{password}",
19247         "type": "json"
19248       }
19249     ],
19250     "name": "ShowMessages",
19251     "group": "Openchannel_Messages",
19252     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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": "put",
19259     "url": "/api/openchannel/messages/{id}/accept",
19260     "title": "Accepts message",
19261     "examples": [
19262       {
19263         "title": "Example usage:",
19264         "content": "curl https://{domain}/api/openchannel/messages/{id}/accept \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
19265         "type": "json"
19266       }
19267     ],
19268     "name": "acceptMessage",
19269     "group": "Openchannel_Messages",
19270     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <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": "put",
19277     "url": "/api/openchannel/messages/{id}/reject",
19278     "title": "Rejects message",
19279     "examples": [
19280       {
19281         "title": "Example usage:",
19282         "content": "curl https://{domain}/api/openchannel/messages/{id}/reject \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
19283         "type": "json"
19284       }
19285     ],
19286     "name": "rejectMessage",
19287     "group": "Openchannel_Messages",
19288     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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": "put",
19295     "url": "/api/openchannel/messages/{id}",
19296     "title": "Update an existing Message",
19297     "examples": [
19298       {
19299         "title": "Example usage:",
19300         "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",
19301         "type": "json"
19302       }
19303     ],
19304     "name": "updateMessages",
19305     "group": "Openchannel_Messages",
19306     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19307     "version": "0.0.0",
19308     "filename": "server/api/openchannelMessage/index.js",
19309     "groupTitle": "Openchannel_Messages"
19310   },
19311   {
19312     "type": "post",
19313     "url": "/api/openchannel/reports/queue",
19314     "title": "Creates a new Openchannel Queue Report",
19315     "examples": [
19316       {
19317         "title": "Example usage:",
19318         "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",
19319         "type": "json"
19320       }
19321     ],
19322     "name": "CreateOpenchannel_Queue_Reports",
19323     "group": "Openchannel_Queue_Reports",
19324     "parameter": {
19325       "fields": {
19326         "Body": [
19327           {
19328             "group": "Body",
19329             "type": "String",
19330             "optional": false,
19331             "field": "uniqueid",
19332             "description": ""
19333           },
19334           {
19335             "group": "Body",
19336             "type": "String",
19337             "optional": true,
19338             "field": "from",
19339             "description": ""
19340           },
19341           {
19342             "group": "Body",
19343             "type": "String",
19344             "optional": true,
19345             "field": "joinAt",
19346             "description": ""
19347           },
19348           {
19349             "group": "Body",
19350             "type": "String",
19351             "optional": true,
19352             "field": "leaveAt",
19353             "description": ""
19354           },
19355           {
19356             "group": "Body",
19357             "type": "String",
19358             "optional": true,
19359             "field": "acceptAt",
19360             "description": ""
19361           },
19362           {
19363             "group": "Body",
19364             "type": "String",
19365             "optional": true,
19366             "field": "exitAt",
19367             "description": ""
19368           },
19369           {
19370             "group": "Body",
19371             "type": "String",
19372             "optional": true,
19373             "field": "reason",
19374             "description": ""
19375           }
19376         ]
19377       }
19378     },
19379     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19380     "version": "0.0.0",
19381     "filename": "server/api/openchannelQueueReport/index.js",
19382     "groupTitle": "Openchannel_Queue_Reports"
19383   },
19384   {
19385     "type": "delete",
19386     "url": "/api/openchannel/reports/queue/{id}",
19387     "title": "Deletes a Openchannel Queue Report",
19388     "examples": [
19389       {
19390         "title": "Example usage:",
19391         "content": "curl https://{domain}/api/openchannel/reports/queue/{id} -v -u {name}:{password} -X DELETE",
19392         "type": "json"
19393       }
19394     ],
19395     "name": "DeleteOpenchannel_Queue_Reports",
19396     "group": "Openchannel_Queue_Reports",
19397     "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>",
19398     "version": "0.0.0",
19399     "filename": "server/api/openchannelQueueReport/index.js",
19400     "groupTitle": "Openchannel_Queue_Reports"
19401   },
19402   {
19403     "type": "get",
19404     "url": "/api/openchannel/reports/queue/describe",
19405     "title": "Gets table info about Openchannel Queue Reports",
19406     "examples": [
19407       {
19408         "title": "Example usage:",
19409         "content": "curl https://{domain}/api/openchannel/reports/queue/describe -v -u {name}:{password}",
19410         "type": "json"
19411       }
19412     ],
19413     "name": "DescribeOpenchannel_Queue_Reports",
19414     "group": "Openchannel_Queue_Reports",
19415     "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>",
19416     "version": "0.0.0",
19417     "filename": "server/api/openchannelQueueReport/index.js",
19418     "groupTitle": "Openchannel_Queue_Reports"
19419   },
19420   {
19421     "type": "get",
19422     "url": "/api/openchannel/reports/queue",
19423     "title": "Gets a list of Openchannel Queue Reports",
19424     "examples": [
19425       {
19426         "title": "Example usage:",
19427         "content": "curl https://{domain}/api/openchannel/reports/queue -v -u {name}:{password}",
19428         "type": "json"
19429       }
19430     ],
19431     "name": "GetOpenchannel_Queue_Reports",
19432     "group": "Openchannel_Queue_Reports",
19433     "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>",
19434     "version": "0.0.0",
19435     "filename": "server/api/openchannelQueueReport/index.js",
19436     "groupTitle": "Openchannel_Queue_Reports"
19437   },
19438   {
19439     "type": "get",
19440     "url": "/api/openchannel/reports/queue/{id}",
19441     "title": "Gets a single Openchannel Queue Report",
19442     "examples": [
19443       {
19444         "title": "Example usage:",
19445         "content": "curl https://{domain}/api/openchannel/reports/queue/{id} -v -u {name}:{password}",
19446         "type": "json"
19447       }
19448     ],
19449     "name": "ShowOpenchannel_Queue_Reports",
19450     "group": "Openchannel_Queue_Reports",
19451     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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": "put",
19458     "url": "/api/openchannel/reports/queue/{id}",
19459     "title": "Update an existing Openchannel Queue Report",
19460     "examples": [
19461       {
19462         "title": "Example usage:",
19463         "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",
19464         "type": "json"
19465       }
19466     ],
19467     "name": "updateOpenchannel_Queue_Reports",
19468     "group": "Openchannel_Queue_Reports",
19469     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <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": "post",
19476     "url": "/api/openchannel/queues/{id}/users",
19477     "title": "Add agents to a queue",
19478     "examples": [
19479       {
19480         "title": "Example usage:",
19481         "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",
19482         "type": "json"
19483       }
19484     ],
19485     "name": "AddAgents",
19486     "group": "Openchannel_Queues",
19487     "description": "<p>Motion will return a HTTP status code <code>201</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/openchannelQueue/index.js",
19490     "groupTitle": "Openchannel_Queues"
19491   },
19492   {
19493     "type": "post",
19494     "url": "/api/openchannel/queues/{id}/teams",
19495     "title": "Add teams to a queue",
19496     "examples": [
19497       {
19498         "title": "Example usage:",
19499         "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",
19500         "type": "json"
19501       }
19502     ],
19503     "name": "AddTeams",
19504     "group": "Openchannel_Queues",
19505     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19506     "version": "0.0.0",
19507     "filename": "server/api/openchannelQueue/index.js",
19508     "groupTitle": "Openchannel_Queues"
19509   },
19510   {
19511     "type": "post",
19512     "url": "/api/openchannel/queues",
19513     "title": "Creates a new Queue",
19514     "examples": [
19515       {
19516         "title": "Example usage:",
19517         "content": "curl https://{domain}/api/openchannel/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
19518         "type": "json"
19519       }
19520     ],
19521     "name": "CreateQueues",
19522     "group": "Openchannel_Queues",
19523     "parameter": {
19524       "fields": {
19525         "Body": [
19526           {
19527             "group": "Body",
19528             "type": "String",
19529             "optional": true,
19530             "field": "name",
19531             "description": ""
19532           },
19533           {
19534             "group": "Body",
19535             "type": "String",
19536             "optional": true,
19537             "field": "description",
19538             "description": ""
19539           },
19540           {
19541             "group": "Body",
19542             "type": "Integer",
19543             "optional": true,
19544             "field": "timeout",
19545             "description": ""
19546           },
19547           {
19548             "group": "Body",
19549             "type": "String",
19550             "allowedValues": [
19551               "\"rrmemory\"",
19552               "\"beepall\"",
19553               "\"roundrobin\""
19554             ],
19555             "optional": true,
19556             "field": "strategy",
19557             "description": ""
19558           }
19559         ]
19560       }
19561     },
19562     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19563     "version": "0.0.0",
19564     "filename": "server/api/openchannelQueue/index.js",
19565     "groupTitle": "Openchannel_Queues"
19566   },
19567   {
19568     "type": "delete",
19569     "url": "/api/openchannel/queues/{id}",
19570     "title": "Deletes a Queue",
19571     "examples": [
19572       {
19573         "title": "Example usage:",
19574         "content": "curl https://{domain}/api/openchannel/queues/{id} -v -u {name}:{password} -X DELETE",
19575         "type": "json"
19576       }
19577     ],
19578     "name": "DeleteQueues",
19579     "group": "Openchannel_Queues",
19580     "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>",
19581     "version": "0.0.0",
19582     "filename": "server/api/openchannelQueue/index.js",
19583     "groupTitle": "Openchannel_Queues"
19584   },
19585   {
19586     "type": "get",
19587     "url": "/api/openchannel/queues/describe",
19588     "title": "Gets table info about Queues",
19589     "examples": [
19590       {
19591         "title": "Example usage:",
19592         "content": "curl https://{domain}/api/openchannel/queues/describe -v -u {name}:{password}",
19593         "type": "json"
19594       }
19595     ],
19596     "name": "DescribeQueues",
19597     "group": "Openchannel_Queues",
19598     "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>",
19599     "version": "0.0.0",
19600     "filename": "server/api/openchannelQueue/index.js",
19601     "groupTitle": "Openchannel_Queues"
19602   },
19603   {
19604     "type": "get",
19605     "url": "/api/openchannel/queues/{id}/users",
19606     "title": "Gets queue agents",
19607     "examples": [
19608       {
19609         "title": "Example usage:",
19610         "content": "curl https://{domain}/api/openchannel/queues/{id}/users -v -u {name}:{password} -X POST",
19611         "type": "json"
19612       }
19613     ],
19614     "name": "GetAgents",
19615     "group": "Openchannel_Queues",
19616     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19617     "version": "0.0.0",
19618     "filename": "server/api/openchannelQueue/index.js",
19619     "groupTitle": "Openchannel_Queues"
19620   },
19621   {
19622     "type": "get",
19623     "url": "/api/openchannel/queues/{id}/members",
19624     "title": "GetMembers",
19625     "examples": [
19626       {
19627         "title": "Example usage:",
19628         "content": "curl https://{domain}/api/openchannel/queues/{id}/members  -v -u {name}:{password}",
19629         "type": "json"
19630       }
19631     ],
19632     "name": "GetMembers",
19633     "group": "Openchannel_Queues",
19634     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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": "get",
19641     "url": "/api/openchannel/queues",
19642     "title": "Gets a list of Queues",
19643     "examples": [
19644       {
19645         "title": "Example usage:",
19646         "content": "curl https://{domain}/api/openchannel/queues -v -u {name}:{password}",
19647         "type": "json"
19648       }
19649     ],
19650     "name": "GetQueues",
19651     "group": "Openchannel_Queues",
19652     "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>",
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/{id}/teams",
19660     "title": "Gets queues list",
19661     "examples": [
19662       {
19663         "title": "Example usage:",
19664         "content": "curl https://{domain}/api/openchannel/queues/{id}/teams -v -u {name}:{password}",
19665         "type": "json"
19666       }
19667     ],
19668     "name": "GetTeams",
19669     "group": "Openchannel_Queues",
19670     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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": "delete",
19677     "url": "/api/openchannel/queues/{id}/users",
19678     "title": "Removes agents from a queue",
19679     "examples": [
19680       {
19681         "title": "Example usage:",
19682         "content": "curl https://{domain}/api/openchannel/queues/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
19683         "type": "json"
19684       }
19685     ],
19686     "name": "RemoveAgents",
19687     "group": "Openchannel_Queues",
19688     "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>",
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}",
19696     "title": "Gets a single Queue",
19697     "examples": [
19698       {
19699         "title": "Example usage:",
19700         "content": "curl https://{domain}/api/openchannel/queues/{id} -v -u {name}:{password}",
19701         "type": "json"
19702       }
19703     ],
19704     "name": "ShowQueues",
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": "put",
19713     "url": "/api/openchannel/queues/{id}",
19714     "title": "Update an existing Queue",
19715     "examples": [
19716       {
19717         "title": "Example usage:",
19718         "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",
19719         "type": "json"
19720       }
19721     ],
19722     "name": "updateQueues",
19723     "group": "Openchannel_Queues",
19724     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19725     "version": "0.0.0",
19726     "filename": "server/api/openchannelQueue/index.js",
19727     "groupTitle": "Openchannel_Queues"
19728   },
19729   {
19730     "type": "post",
19731     "url": "/api/openchannel/reports/transfer",
19732     "title": "Creates a new Openchannel Transfer Report",
19733     "examples": [
19734       {
19735         "title": "Example usage:",
19736         "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",
19737         "type": "json"
19738       }
19739     ],
19740     "name": "CreateOpenchannel_Transfer_Reports",
19741     "group": "Openchannel_Transfer_Reports",
19742     "parameter": {
19743       "fields": {
19744         "Body": [
19745           {
19746             "group": "Body",
19747             "type": "String",
19748             "optional": false,
19749             "field": "uniqueid",
19750             "description": ""
19751           },
19752           {
19753             "group": "Body",
19754             "type": "String",
19755             "allowedValues": [
19756               "\"account\"",
19757               "\"agent\"",
19758               "\"queue\""
19759             ],
19760             "optional": false,
19761             "field": "type",
19762             "description": ""
19763           },
19764           {
19765             "group": "Body",
19766             "type": "String",
19767             "optional": false,
19768             "field": "transferredAt",
19769             "description": ""
19770           }
19771         ]
19772       }
19773     },
19774     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19775     "version": "0.0.0",
19776     "filename": "server/api/openchannelTransferReport/index.js",
19777     "groupTitle": "Openchannel_Transfer_Reports"
19778   },
19779   {
19780     "type": "delete",
19781     "url": "/api/openchannel/reports/transfer/{id}",
19782     "title": "Deletes a Openchannel Transfer Report",
19783     "examples": [
19784       {
19785         "title": "Example usage:",
19786         "content": "curl https://{domain}/api/openchannel/reports/transfer/{id} -v -u {name}:{password} -X DELETE",
19787         "type": "json"
19788       }
19789     ],
19790     "name": "DeleteOpenchannel_Transfer_Reports",
19791     "group": "Openchannel_Transfer_Reports",
19792     "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>",
19793     "version": "0.0.0",
19794     "filename": "server/api/openchannelTransferReport/index.js",
19795     "groupTitle": "Openchannel_Transfer_Reports"
19796   },
19797   {
19798     "type": "get",
19799     "url": "/api/openchannel/reports/transfer/describe",
19800     "title": "Gets table info about Openchannel Transfer Reports",
19801     "examples": [
19802       {
19803         "title": "Example usage:",
19804         "content": "curl https://{domain}/api/openchannel/reports/transfer/describe -v -u {name}:{password}",
19805         "type": "json"
19806       }
19807     ],
19808     "name": "DescribeOpenchannel_Transfer_Reports",
19809     "group": "Openchannel_Transfer_Reports",
19810     "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>",
19811     "version": "0.0.0",
19812     "filename": "server/api/openchannelTransferReport/index.js",
19813     "groupTitle": "Openchannel_Transfer_Reports"
19814   },
19815   {
19816     "type": "get",
19817     "url": "/api/openchannel/reports/transfer",
19818     "title": "Gets a list of Openchannel Transfer Reports",
19819     "examples": [
19820       {
19821         "title": "Example usage:",
19822         "content": "curl https://{domain}/api/openchannel/reports/transfer -v -u {name}:{password}",
19823         "type": "json"
19824       }
19825     ],
19826     "name": "GetOpenchannel_Transfer_Reports",
19827     "group": "Openchannel_Transfer_Reports",
19828     "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>",
19829     "version": "0.0.0",
19830     "filename": "server/api/openchannelTransferReport/index.js",
19831     "groupTitle": "Openchannel_Transfer_Reports"
19832   },
19833   {
19834     "type": "get",
19835     "url": "/api/openchannel/reports/transfer/{id}",
19836     "title": "Gets a single Openchannel Transfer Report",
19837     "examples": [
19838       {
19839         "title": "Example usage:",
19840         "content": "curl https://{domain}/api/openchannel/reports/transfer/{id} -v -u {name}:{password}",
19841         "type": "json"
19842       }
19843     ],
19844     "name": "ShowOpenchannel_Transfer_Reports",
19845     "group": "Openchannel_Transfer_Reports",
19846     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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": "put",
19853     "url": "/api/openchannel/reports/transfer/{id}",
19854     "title": "Update an existing Openchannel Transfer Report",
19855     "examples": [
19856       {
19857         "title": "Example usage:",
19858         "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",
19859         "type": "json"
19860       }
19861     ],
19862     "name": "updateOpenchannel_Transfer_Reports",
19863     "group": "Openchannel_Transfer_Reports",
19864     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <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": "post",
19871     "url": "/api/pauses",
19872     "title": "Creates a new Pause",
19873     "examples": [
19874       {
19875         "title": "Example usage:",
19876         "content": "curl https://{domain}/api/pauses -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
19877         "type": "json"
19878       }
19879     ],
19880     "name": "CreatePauses",
19881     "group": "Pauses",
19882     "parameter": {
19883       "fields": {
19884         "Body": [
19885           {
19886             "group": "Body",
19887             "type": "String",
19888             "optional": false,
19889             "field": "name",
19890             "description": ""
19891           },
19892           {
19893             "group": "Body",
19894             "type": "String",
19895             "optional": true,
19896             "field": "description",
19897             "description": ""
19898           }
19899         ]
19900       }
19901     },
19902     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19903     "version": "0.0.0",
19904     "filename": "server/api/pause/index.js",
19905     "groupTitle": "Pauses"
19906   },
19907   {
19908     "type": "delete",
19909     "url": "/api/pauses/{id}",
19910     "title": "Deletes a Pause",
19911     "examples": [
19912       {
19913         "title": "Example usage:",
19914         "content": "curl https://{domain}/api/pauses/{id} -v -u {name}:{password} -X DELETE",
19915         "type": "json"
19916       }
19917     ],
19918     "name": "DeletePauses",
19919     "group": "Pauses",
19920     "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>",
19921     "version": "0.0.0",
19922     "filename": "server/api/pause/index.js",
19923     "groupTitle": "Pauses"
19924   },
19925   {
19926     "type": "get",
19927     "url": "/api/pauses",
19928     "title": "Gets a list of Pauses",
19929     "examples": [
19930       {
19931         "title": "Example usage:",
19932         "content": "curl https://{domain}/api/pauses -v -u {name}:{password}",
19933         "type": "json"
19934       }
19935     ],
19936     "name": "GetPauses",
19937     "group": "Pauses",
19938     "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>",
19939     "version": "0.0.0",
19940     "filename": "server/api/pause/index.js",
19941     "groupTitle": "Pauses"
19942   },
19943   {
19944     "type": "get",
19945     "url": "/api/pauses/{id}",
19946     "title": "Gets a single Pause",
19947     "examples": [
19948       {
19949         "title": "Example usage:",
19950         "content": "curl https://{domain}/api/pauses/{id} -v -u {name}:{password}",
19951         "type": "json"
19952       }
19953     ],
19954     "name": "ShowPauses",
19955     "group": "Pauses",
19956     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19957     "version": "0.0.0",
19958     "filename": "server/api/pause/index.js",
19959     "groupTitle": "Pauses"
19960   },
19961   {
19962     "type": "put",
19963     "url": "/api/pauses/{id}",
19964     "title": "Update an existing Pause",
19965     "examples": [
19966       {
19967         "title": "Example usage:",
19968         "content": "curl https://{domain}/api/pauses/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
19969         "type": "json"
19970       }
19971     ],
19972     "name": "updatePauses",
19973     "group": "Pauses",
19974     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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": "get",
19981     "url": "/api/plugins",
19982     "title": "Gets a list of Plugins",
19983     "examples": [
19984       {
19985         "title": "Example usage:",
19986         "content": "curl https://{domain}/api/plugins -v -u {name}:{password}",
19987         "type": "json"
19988       }
19989     ],
19990     "name": "GetPlugins",
19991     "group": "Plugins",
19992     "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>",
19993     "version": "0.0.0",
19994     "filename": "server/api/plugin/index.js",
19995     "groupTitle": "Plugins"
19996   },
19997   {
19998     "type": "get",
19999     "url": "/api/plugins/{id}",
20000     "title": "Gets a single Plugin",
20001     "examples": [
20002       {
20003         "title": "Example usage:",
20004         "content": "curl https://{domain}/api/plugins/{id} -v -u {name}:{password}",
20005         "type": "json"
20006       }
20007     ],
20008     "name": "ShowPlugins",
20009     "group": "Plugins",
20010     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20011     "version": "0.0.0",
20012     "filename": "server/api/plugin/index.js",
20013     "groupTitle": "Plugins"
20014   },
20015   {
20016     "type": "delete",
20017     "url": "/api/plugins/{id}",
20018     "title": "Delete a plugin",
20019     "examples": [
20020       {
20021         "title": "Example usage:",
20022         "content": "curl https://{domain}/api/plugins/{id} -v -u {name}:{password} -X DELETE",
20023         "type": "json"
20024       }
20025     ],
20026     "name": "destroyPlugin",
20027     "group": "Plugins",
20028     "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>",
20029     "version": "0.0.0",
20030     "filename": "server/api/plugin/index.js",
20031     "groupTitle": "Plugins"
20032   },
20033   {
20034     "type": "get",
20035     "url": "/api/plugins/{id}/download",
20036     "title": "Download plugin source code",
20037     "examples": [
20038       {
20039         "title": "Example usage:",
20040         "content": "curl https://{domain}/api/plugins/{id}/download -v -u {name}:{password} -X GET",
20041         "type": "json"
20042       }
20043     ],
20044     "name": "download",
20045     "group": "Plugins",
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/plugin/index.js",
20049     "groupTitle": "Plugins"
20050   },
20051   {
20052     "type": "put",
20053     "url": "/api/plugins/{id}",
20054     "title": "Update an existing plugin",
20055     "examples": [
20056       {
20057         "title": "Example usage:",
20058         "content": "curl https://{domain}/api/plugins/{id} -v -u {name}:{password} -X PUT",
20059         "type": "json"
20060       }
20061     ],
20062     "name": "updatePlugin",
20063     "group": "Plugins",
20064     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20065     "version": "0.0.0",
20066     "filename": "server/api/plugin/index.js",
20067     "groupTitle": "Plugins"
20068   },
20069   {
20070     "type": "post",
20071     "url": "/api/plugins",
20072     "title": "Upload new plugin",
20073     "examples": [
20074       {
20075         "title": "Example usage:",
20076         "content": "curl https://{domain}/api/plugins -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
20077         "type": "json"
20078       }
20079     ],
20080     "name": "uploadPlugin",
20081     "group": "Plugins",
20082     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</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": "get",
20089     "url": "/api/plugins/webhook?hostname={host}&port={port}&encoding={encoding}&json={json}&path={path}",
20090     "title": "Redirect a plugin request to the specified path",
20091     "examples": [
20092       {
20093         "title": "Example usage:",
20094         "content": "curl https://{domain}/api/plugins/webhook?port={port}&path={path} -v -u {name}:{password} -X GET",
20095         "type": "json"
20096       }
20097     ],
20098     "name": "webhookPlugin",
20099     "group": "Plugins",
20100     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <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": "post",
20107     "url": "/api/plugins/webhook?hostname={host}&port={port}&encoding={encoding}&json={json}&path={path}",
20108     "title": "Redirect a plugin request to the specified path",
20109     "examples": [
20110       {
20111         "title": "Example usage:",
20112         "content": "curl https://{domain}/api/plugins/webhook?port={port}&path={path} -H 'Content-Type: application/json' -X POST",
20113         "type": "json"
20114       }
20115     ],
20116     "name": "webhookPlugin",
20117     "group": "Plugins",
20118     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</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": "delete",
20125     "url": "/api/pm2/{id}",
20126     "title": "Deletes an existing process",
20127     "examples": [
20128       {
20129         "title": "Example usage:",
20130         "content": "curl https://{domain}/api/pm2/{id} -v -u {name}:{password} -X DELETE",
20131         "type": "json"
20132       }
20133     ],
20134     "name": "DeletePm2Process",
20135     "group": "Pm2",
20136     "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>",
20137     "version": "0.0.0",
20138     "filename": "server/api/pm2/index.js",
20139     "groupTitle": "Pm2"
20140   },
20141   {
20142     "type": "get",
20143     "url": "/api/pm2/{id}",
20144     "title": "Gets a single pm2 process",
20145     "examples": [
20146       {
20147         "title": "Example usage:",
20148         "content": "curl https://{domain}/api/pm2/{id} -v -u {name}:{password}",
20149         "type": "json"
20150       }
20151     ],
20152     "name": "GetPm2Process",
20153     "group": "Pm2",
20154     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20155     "version": "0.0.0",
20156     "filename": "server/api/pm2/index.js",
20157     "groupTitle": "Pm2"
20158   },
20159   {
20160     "type": "get",
20161     "url": "/api/pm2",
20162     "title": "Gets pm2 processes",
20163     "examples": [
20164       {
20165         "title": "Example usage:",
20166         "content": "curl https://{domain}/api/pm2 -v -u {name}:{password}",
20167         "type": "json"
20168       }
20169     ],
20170     "name": "GetPm2Processes",
20171     "group": "Pm2",
20172     "description": "<p>Motion returns the pm2 processes list.</p>",
20173     "version": "0.0.0",
20174     "filename": "server/api/pm2/index.js",
20175     "groupTitle": "Pm2"
20176   },
20177   {
20178     "type": "post",
20179     "url": "/api/pm2",
20180     "title": "Start a single pm2 process",
20181     "examples": [
20182       {
20183         "title": "Example usage:",
20184         "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",
20185         "type": "json"
20186       }
20187     ],
20188     "name": "StartPm2Process",
20189     "group": "Pm2",
20190     "parameter": {
20191       "fields": {
20192         "Body": [
20193           {
20194             "group": "Body",
20195             "type": "String",
20196             "optional": false,
20197             "field": "name",
20198             "description": ""
20199           },
20200           {
20201             "group": "Body",
20202             "type": "String",
20203             "optional": false,
20204             "field": "script",
20205             "description": ""
20206           }
20207         ]
20208       }
20209     },
20210     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20211     "version": "0.0.0",
20212     "filename": "server/api/pm2/index.js",
20213     "groupTitle": "Pm2"
20214   },
20215   {
20216     "type": "put",
20217     "url": "/api/pm2/{id}",
20218     "title": "Update an existing process",
20219     "examples": [
20220       {
20221         "title": "Example usage:",
20222         "content": "curl https://{domain}/api/pm2/{id} -d '{\"status\": \"online\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
20223         "type": "json"
20224       }
20225     ],
20226     "name": "UpdatePm2Process",
20227     "group": "Pm2",
20228     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20229     "version": "0.0.0",
20230     "filename": "server/api/pm2/index.js",
20231     "groupTitle": "Pm2"
20232   },
20233   {
20234     "type": "get",
20235     "url": "/api/rpc/campaigns/",
20236     "title": "Gets a list of campaigns",
20237     "examples": [
20238       {
20239         "title": "Example usage:",
20240         "content": "curl https://{domain}/api/rpc/campaigns -v -u {name}:{password}",
20241         "type": "json"
20242       }
20243     ],
20244     "name": "Campaigns",
20245     "group": "RPC_Realtime",
20246     "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>",
20247     "version": "0.0.0",
20248     "filename": "server/api/rpc/index.js",
20249     "groupTitle": "RPC_Realtime"
20250   },
20251   {
20252     "type": "get",
20253     "url": "/api/rpc/fax/accounts",
20254     "title": "Gets a list of FaxAccounts",
20255     "examples": [
20256       {
20257         "title": "Example usage:",
20258         "content": "curl https://{domain}/api/rpc/fax/accounts -v -u {name}:{password}",
20259         "type": "json"
20260       }
20261     ],
20262     "name": "FaxAccounts",
20263     "group": "RPC_Realtime",
20264     "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>",
20265     "version": "0.0.0",
20266     "filename": "server/api/rpc/index.js",
20267     "groupTitle": "RPC_Realtime"
20268   },
20269   {
20270     "type": "put",
20271     "url": "/api/rpc/agents/:id/capacity",
20272     "title": "Sets agent capacity",
20273     "examples": [
20274       {
20275         "title": "Example usage:",
20276         "content": "curl https://{domain}/api/rpc/agents/:id/capacity -v -u {name}:{password}",
20277         "type": "json"
20278       }
20279     ],
20280     "name": "RTAgentCapacity",
20281     "group": "RPC_Realtime",
20282     "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>",
20283     "version": "0.0.0",
20284     "filename": "server/api/rpc/index.js",
20285     "groupTitle": "RPC_Realtime"
20286   },
20287   {
20288     "type": "get",
20289     "url": "/api/rpc/agents",
20290     "title": "Gets a list of RTAgents",
20291     "examples": [
20292       {
20293         "title": "Example usage:",
20294         "content": "curl https://{domain}/api/rpc/agents -v -u {name}:{password}",
20295         "type": "json"
20296       }
20297     ],
20298     "name": "RTAgents",
20299     "group": "RPC_Realtime",
20300     "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>",
20301     "version": "0.0.0",
20302     "filename": "server/api/rpc/index.js",
20303     "groupTitle": "RPC_Realtime"
20304   },
20305   {
20306     "type": "get",
20307     "url": "/api/rpc/chat/queues",
20308     "title": "Gets a list of RTChatQueues",
20309     "examples": [
20310       {
20311         "title": "Example usage:",
20312         "content": "curl https://{domain}/api/rpc/chat/queues -v -u {name}:{password}",
20313         "type": "json"
20314       }
20315     ],
20316     "name": "RTChatQueues",
20317     "group": "RPC_Realtime",
20318     "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>",
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/queues",
20326     "title": "Gets a list of RTFaxQueues",
20327     "examples": [
20328       {
20329         "title": "Example usage:",
20330         "content": "curl https://{domain}/api/rpc/fax/queues -v -u {name}:{password}",
20331         "type": "json"
20332       }
20333     ],
20334     "name": "RTFaxQueues",
20335     "group": "RPC_Realtime",
20336     "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>",
20337     "version": "0.0.0",
20338     "filename": "server/api/rpc/index.js",
20339     "groupTitle": "RPC_Realtime"
20340   },
20341   {
20342     "type": "get",
20343     "url": "/api/rpc/mail/accounts",
20344     "title": "Gets a list of RTMailAccounts",
20345     "examples": [
20346       {
20347         "title": "Example usage:",
20348         "content": "curl https://{domain}/api/rpc/mail/accounts -v -u {name}:{password}",
20349         "type": "json"
20350       }
20351     ],
20352     "name": "RTMailAccounts",
20353     "group": "RPC_Realtime",
20354     "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>",
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/mail/queues",
20362     "title": "Gets a list of RTMailQueues",
20363     "examples": [
20364       {
20365         "title": "Example usage:",
20366         "content": "curl https://{domain}/api/rpc/mail/queues -v -u {name}:{password}",
20367         "type": "json"
20368       }
20369     ],
20370     "name": "RTMailQueues",
20371     "group": "RPC_Realtime",
20372     "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>",
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/openchannel/queues",
20380     "title": "Gets a list of RTOpenchannelQueues",
20381     "examples": [
20382       {
20383         "title": "Example usage:",
20384         "content": "curl https://{domain}/api/rpc/openchannel/queues -v -u {name}:{password}",
20385         "type": "json"
20386       }
20387     ],
20388     "name": "RTOpenchannelQueues",
20389     "group": "RPC_Realtime",
20390     "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>",
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/outbound/channels",
20398     "title": "Gets a list of RTOutboundChannels",
20399     "examples": [
20400       {
20401         "title": "Example usage:",
20402         "content": "curl https://{domain}/api/rpc/outbound/channels -v -u {name}:{password}",
20403         "type": "json"
20404       }
20405     ],
20406     "name": "RTOutboundChannels",
20407     "group": "RPC_Realtime",
20408     "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>",
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/sms/queues",
20416     "title": "Gets a list of RTSmsQueues",
20417     "examples": [
20418       {
20419         "title": "Example usage:",
20420         "content": "curl https://{domain}/api/rpc/sms/queues -v -u {name}:{password}",
20421         "type": "json"
20422       }
20423     ],
20424     "name": "RTSmsQueues",
20425     "group": "RPC_Realtime",
20426     "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>",
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/telephones",
20434     "title": "Gets a list of RTTelephones",
20435     "examples": [
20436       {
20437         "title": "Example usage:",
20438         "content": "curl https://{domain}/api/rpc/telephones -v -u {name}:{password}",
20439         "type": "json"
20440       }
20441     ],
20442     "name": "RTTelephones",
20443     "group": "RPC_Realtime",
20444     "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>",
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/trunks",
20452     "title": "Gets a list of RTTrunks",
20453     "examples": [
20454       {
20455         "title": "Example usage:",
20456         "content": "curl https://{domain}/api/rpc/trunks -v -u {name}:{password}",
20457         "type": "json"
20458       }
20459     ],
20460     "name": "RTTrunks",
20461     "group": "RPC_Realtime",
20462     "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>",
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/voice/channels",
20470     "title": "Gets a list of RTVoiceChannelMixMonitor",
20471     "examples": [
20472       {
20473         "title": "Example usage:",
20474         "content": "curl https://{domain}/api/rpc/voice/channels/{uniqueid}/mixmonitor -v -u {name}:{password}",
20475         "type": "json"
20476       }
20477     ],
20478     "name": "RTVoiceChannelMixMonitor",
20479     "group": "RPC_Realtime",
20480     "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>",
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/voice/channels",
20488     "title": "Gets a list of RTVoiceChannelStopMixMonitor",
20489     "examples": [
20490       {
20491         "title": "Example usage:",
20492         "content": "curl https://{domain}/api/rpc/voice/channels/{uniqueid}/stopmixmonitor -v -u {name}:{password}",
20493         "type": "json"
20494       }
20495     ],
20496     "name": "RTVoiceChannelStopMixMonitor",
20497     "group": "RPC_Realtime",
20498     "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>",
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/voice/channels",
20506     "title": "Gets a list of RTVoiceChannels",
20507     "examples": [
20508       {
20509         "title": "Example usage:",
20510         "content": "curl https://{domain}/api/rpc/voice/channels -v -u {name}:{password}",
20511         "type": "json"
20512       }
20513     ],
20514     "name": "RTVoiceChannels",
20515     "group": "RPC_Realtime",
20516     "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>",
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/voice/queues/channels/{uniqueid}",
20524     "title": "Gets a single RTVoiceQueueChannel",
20525     "examples": [
20526       {
20527         "title": "Example usage:",
20528         "content": "curl https://{domain}/api/rpc/voice/queues/channels/{uniqueid} -v -u {name}:{password}",
20529         "type": "json"
20530       }
20531     ],
20532     "name": "RTVoiceQueueChannel",
20533     "group": "RPC_Realtime",
20534     "description": "<p>Motion will return a specific realtime voice queue channel.</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/queues/channels/{uniqueid}/hangup",
20542     "title": "Hangup a single RTVoiceQueueChannel",
20543     "examples": [
20544       {
20545         "title": "Example usage:",
20546         "content": "curl https://{domain}/api/rpc/voice/queues/channels/{uniqueid}/hangup -v -u {name}:{password}",
20547         "type": "json"
20548       }
20549     ],
20550     "name": "RTVoiceQueueChannelHangup",
20551     "group": "RPC_Realtime",
20552     "description": "<p>Motion will hangup a specific realtime voice queue channel.</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/queues/channels/{uniqueid}/redirect/{exten}",
20560     "title": "Hangup a single RTVoiceQueueChannel",
20561     "examples": [
20562       {
20563         "title": "Example usage:",
20564         "content": "curl https://{domain}/api/rpc/voice/queues/channels/{uniqueid}/redirect/{exten} -v -u {name}:{password}",
20565         "type": "json"
20566       }
20567     ],
20568     "name": "RTVoiceQueueChannelRedirect",
20569     "group": "RPC_Realtime",
20570     "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>",
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/queues/preview/{id}",
20578     "title": "Gets a single preview contact",
20579     "examples": [
20580       {
20581         "title": "Example usage:",
20582         "content": "curl https://{domain}/api/rpc/voice/queues/preview/{id} -v -u {name}:{password}",
20583         "type": "json"
20584       }
20585     ],
20586     "name": "RTVoiceQueuePreview",
20587     "group": "RPC_Realtime",
20588     "description": "<p>Motion will return a specific preview contact.</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",
20596     "title": "Gets a list of RTVoiceQueues",
20597     "examples": [
20598       {
20599         "title": "Example usage:",
20600         "content": "curl https://{domain}/api/rpc/voice/queues -v -u {name}:{password}",
20601         "type": "json"
20602       }
20603     ],
20604     "name": "RTVoiceQueues",
20605     "group": "RPC_Realtime",
20606     "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>",
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/outbound",
20614     "title": "Gets a list of RTOutbound",
20615     "examples": [
20616       {
20617         "title": "Example usage:",
20618         "content": "curl https://{domain}/api/rpc/outbound -v -u {name}:{password}",
20619         "type": "json"
20620       }
20621     ],
20622     "name": "RTVoiceQueues",
20623     "group": "RPC_Realtime",
20624     "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>",
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",
20632     "title": "Gets a list of RTVoiceQueuesChannels",
20633     "examples": [
20634       {
20635         "title": "Example usage:",
20636         "content": "curl https://{domain}/api/rpc/voice/queues/channels -v -u {name}:{password}",
20637         "type": "json"
20638       }
20639     ],
20640     "name": "RTVoiceQueuesChannels",
20641     "group": "RPC_Realtime",
20642     "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>",
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/chat/queues/{id}",
20650     "title": "Gets a single RTChatQueue",
20651     "examples": [
20652       {
20653         "title": "Example usage:",
20654         "content": "curl https://{domain}/api/rpc/chat/queues/{id} -v -u {name}:{password}",
20655         "type": "json"
20656       }
20657     ],
20658     "name": "ShowRTChatQueues",
20659     "group": "RPC_Realtime",
20660     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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/fax/queues/{id}",
20668     "title": "Gets a single RTFaxQueue",
20669     "examples": [
20670       {
20671         "title": "Example usage:",
20672         "content": "curl https://{domain}/api/rpc/fax/queues/{id} -v -u {name}:{password}",
20673         "type": "json"
20674       }
20675     ],
20676     "name": "ShowRTFaxQueues",
20677     "group": "RPC_Realtime",
20678     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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/mail/queues/{id}",
20686     "title": "Gets a single RTMailQueue",
20687     "examples": [
20688       {
20689         "title": "Example usage:",
20690         "content": "curl https://{domain}/api/rpc/mail/queues/{id} -v -u {name}:{password}",
20691         "type": "json"
20692       }
20693     ],
20694     "name": "ShowRTMailQueues",
20695     "group": "RPC_Realtime",
20696     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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/openchannel/queues/{id}",
20704     "title": "Gets a single RTOpenchannelQueue",
20705     "examples": [
20706       {
20707         "title": "Example usage:",
20708         "content": "curl https://{domain}/api/rpc/openchannel/queues/{id} -v -u {name}:{password}",
20709         "type": "json"
20710       }
20711     ],
20712     "name": "ShowRTOpenchannelQueues",
20713     "group": "RPC_Realtime",
20714     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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/sms/queues/{id}",
20722     "title": "Gets a single RTSmsQueue",
20723     "examples": [
20724       {
20725         "title": "Example usage:",
20726         "content": "curl https://{domain}/api/rpc/sms/queues/{id} -v -u {name}:{password}",
20727         "type": "json"
20728       }
20729     ],
20730     "name": "ShowRTSmsQueues",
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/voice/queues/{id}",
20740     "title": "Gets a single RTVoiceQueue",
20741     "examples": [
20742       {
20743         "title": "Example usage:",
20744         "content": "curl https://{domain}/api/rpc/voice/queues/{id} -v -u {name}:{password}",
20745         "type": "json"
20746       }
20747     ],
20748     "name": "ShowRTVoiceQueues",
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": "put",
20757     "url": "/api/rpc/voice/{id}/queues",
20758     "title": "Updates a single VoiceQueue",
20759     "examples": [
20760       {
20761         "title": "Example usage:",
20762         "content": "curl https://{domain}/api/rpc/voice/queues/{id} -v -u {name}:{password}",
20763         "type": "json"
20764       }
20765     ],
20766     "name": "UpdateVoiceQueues",
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": "post",
20775     "url": "/api/rpc/agents/:id/notify",
20776     "title": "Notify message to a specific agent",
20777     "examples": [
20778       {
20779         "title": "Example usage:",
20780         "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",
20781         "type": "json"
20782       }
20783     ],
20784     "name": "agentNotify",
20785     "group": "RPC_Realtime",
20786     "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>",
20787     "version": "0.0.0",
20788     "filename": "server/api/rpc/index.js",
20789     "groupTitle": "RPC_Realtime"
20790   },
20791   {
20792     "type": "post",
20793     "url": "/api/rpc/chat/queues/:id/notify",
20794     "title": "Notify message to a specific queue",
20795     "examples": [
20796       {
20797         "title": "Example usage:",
20798         "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",
20799         "type": "json"
20800       }
20801     ],
20802     "name": "chatQueueNotify",
20803     "group": "RPC_Realtime",
20804     "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>",
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/chat/queues/waitinginteractions",
20812     "title": "Gets a list of chatQueuesWaitingInteractions",
20813     "examples": [
20814       {
20815         "title": "Example usage:",
20816         "content": "curl https://{domain}/api/rpc/chat/queues/waitinginteractions -v -u {name}:{password}",
20817         "type": "json"
20818       }
20819     ],
20820     "name": "chatQueuesWaitingInteractions",
20821     "group": "RPC_Realtime",
20822     "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>",
20823     "version": "0.0.0",
20824     "filename": "server/api/rpc/index.js",
20825     "groupTitle": "RPC_Realtime"
20826   },
20827   {
20828     "type": "post",
20829     "url": "/api/rpc/fax/queues/:id/notify",
20830     "title": "Notify message to a specific queue",
20831     "examples": [
20832       {
20833         "title": "Example usage:",
20834         "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",
20835         "type": "json"
20836       }
20837     ],
20838     "name": "faxQueueNotify",
20839     "group": "RPC_Realtime",
20840     "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>",
20841     "version": "0.0.0",
20842     "filename": "server/api/rpc/index.js",
20843     "groupTitle": "RPC_Realtime"
20844   },
20845   {
20846     "type": "get",
20847     "url": "/api/rpc/fax/queues/waitinginteractions",
20848     "title": "Gets a list of faxQueuesWaitingInteractions",
20849     "examples": [
20850       {
20851         "title": "Example usage:",
20852         "content": "curl https://{domain}/api/rpc/fax/queues/waitinginteractions -v -u {name}:{password}",
20853         "type": "json"
20854       }
20855     ],
20856     "name": "faxQueuesWaitingInteractions",
20857     "group": "RPC_Realtime",
20858     "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>",
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/mail/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/mail/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": "mailQueueNotify",
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/mail/queues/waitinginteractions",
20884     "title": "Gets a list of mailQueuesWaitingInteractions",
20885     "examples": [
20886       {
20887         "title": "Example usage:",
20888         "content": "curl https://{domain}/api/rpc/mail/queues/waitinginteractions -v -u {name}:{password}",
20889         "type": "json"
20890       }
20891     ],
20892     "name": "mailQueuesWaitingInteractions",
20893     "group": "RPC_Realtime",
20894     "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>",
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/openchannel/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/openchannel/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": "openchannelQueueNotify",
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/openchannel/queues/:id/waitinginteractions",
20920     "title": "Gets a list of openchannelQueuesIdWaitingInteractions",
20921     "examples": [
20922       {
20923         "title": "Example usage:",
20924         "content": "curl https://{domain}/api/rpc/openchannel/queues/:id/waitinginteractions -v -u {name}:{password}",
20925         "type": "json"
20926       }
20927     ],
20928     "name": "openchannelQueuesIdWaitingInteractions",
20929     "group": "RPC_Realtime",
20930     "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>",
20931     "version": "0.0.0",
20932     "filename": "server/api/rpc/index.js",
20933     "groupTitle": "RPC_Realtime"
20934   },
20935   {
20936     "type": "get",
20937     "url": "/api/rpc/openchannel/queues/waitinginteractions",
20938     "title": "Gets a list of openchannelQueuesWaitingInteractions",
20939     "examples": [
20940       {
20941         "title": "Example usage:",
20942         "content": "curl https://{domain}/api/rpc/openchannel/queues/waitinginteractions -v -u {name}:{password}",
20943         "type": "json"
20944       }
20945     ],
20946     "name": "openchannelQueuesWaitingInteractions",
20947     "group": "RPC_Realtime",
20948     "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>",
20949     "version": "0.0.0",
20950     "filename": "server/api/rpc/index.js",
20951     "groupTitle": "RPC_Realtime"
20952   },
20953   {
20954     "type": "post",
20955     "url": "/api/rpc/sms/queues/:id/notify",
20956     "title": "Notify message to a specific queue",
20957     "examples": [
20958       {
20959         "title": "Example usage:",
20960         "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",
20961         "type": "json"
20962       }
20963     ],
20964     "name": "smsQueueNotify",
20965     "group": "RPC_Realtime",
20966     "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>",
20967     "version": "0.0.0",
20968     "filename": "server/api/rpc/index.js",
20969     "groupTitle": "RPC_Realtime"
20970   },
20971   {
20972     "type": "get",
20973     "url": "/api/rpc/sms/queues/waitinginteractions",
20974     "title": "Gets a list of smsQueuesWaitingInteractions",
20975     "examples": [
20976       {
20977         "title": "Example usage:",
20978         "content": "curl https://{domain}/api/rpc/sms/queues/waitinginteractions -v -u {name}:{password}",
20979         "type": "json"
20980       }
20981     ],
20982     "name": "smsQueuesWaitingInteractions",
20983     "group": "RPC_Realtime",
20984     "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>",
20985     "version": "0.0.0",
20986     "filename": "server/api/rpc/index.js",
20987     "groupTitle": "RPC_Realtime"
20988   },
20989   {
20990     "type": "get",
20991     "url": "/api/realtime/agents",
20992     "title": "Gets realtime agents info",
20993     "examples": [
20994       {
20995         "title": "Example usage:",
20996         "content": "curl https://{domain}/api/realtime/agents -v -u {name}:{password}  -X GET",
20997         "type": "json"
20998       }
20999     ],
21000     "name": "getAgents",
21001     "group": "Realtime",
21002     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21003     "version": "0.0.0",
21004     "filename": "server/api/realtime/index.js",
21005     "groupTitle": "Realtime"
21006   },
21007   {
21008     "type": "get",
21009     "url": "/api/realtime/queues",
21010     "title": "Gets realtime queues info",
21011     "examples": [
21012       {
21013         "title": "Example usage:",
21014         "content": "curl https://{domain}/api/realtime/queues -v -u {name}:{password}  -X GET",
21015         "type": "json"
21016       }
21017     ],
21018     "name": "getQueues",
21019     "group": "Realtime",
21020     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21021     "version": "0.0.0",
21022     "filename": "server/api/realtime/index.js",
21023     "groupTitle": "Realtime"
21024   },
21025   {
21026     "type": "post",
21027     "url": "/api/integrations/salesforce/accounts",
21028     "title": "Creates a new Salesforce Account",
21029     "examples": [
21030       {
21031         "title": "Example usage:",
21032         "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",
21033         "type": "json"
21034       }
21035     ],
21036     "name": "CreateSalesforce_Accounts",
21037     "group": "Salesforce_Accounts",
21038     "parameter": {
21039       "fields": {
21040         "Body": [
21041           {
21042             "group": "Body",
21043             "type": "String",
21044             "optional": true,
21045             "field": "name",
21046             "description": ""
21047           },
21048           {
21049             "group": "Body",
21050             "type": "String",
21051             "optional": true,
21052             "field": "description",
21053             "description": ""
21054           },
21055           {
21056             "group": "Body",
21057             "type": "String",
21058             "optional": true,
21059             "field": "username",
21060             "description": ""
21061           },
21062           {
21063             "group": "Body",
21064             "type": "String",
21065             "optional": true,
21066             "field": "remoteUri",
21067             "description": ""
21068           },
21069           {
21070             "group": "Body",
21071             "type": "String",
21072             "optional": true,
21073             "field": "password",
21074             "description": ""
21075           },
21076           {
21077             "group": "Body",
21078             "type": "String",
21079             "optional": true,
21080             "field": "clientId",
21081             "description": ""
21082           },
21083           {
21084             "group": "Body",
21085             "type": "String",
21086             "optional": true,
21087             "field": "clientSecret",
21088             "description": ""
21089           },
21090           {
21091             "group": "Body",
21092             "type": "String",
21093             "optional": true,
21094             "field": "securityToken",
21095             "description": ""
21096           },
21097           {
21098             "group": "Body",
21099             "type": "String",
21100             "optional": false,
21101             "field": "serverUrl",
21102             "description": ""
21103           },
21104           {
21105             "group": "Body",
21106             "type": "String",
21107             "allowedValues": [
21108               "\"integrationTab\"",
21109               "\"newTab\""
21110             ],
21111             "optional": true,
21112             "field": "type",
21113             "description": ""
21114           }
21115         ]
21116       }
21117     },
21118     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21119     "version": "0.0.0",
21120     "filename": "server/api/intSalesforceAccount/index.js",
21121     "groupTitle": "Salesforce_Accounts"
21122   },
21123   {
21124     "type": "delete",
21125     "url": "/api/integrations/salesforce/accounts/{id}",
21126     "title": "Deletes a Salesforce Account",
21127     "examples": [
21128       {
21129         "title": "Example usage:",
21130         "content": "curl https://{domain}/api/integrations/salesforce/accounts/{id} -v -u {name}:{password} -X DELETE",
21131         "type": "json"
21132       }
21133     ],
21134     "name": "DeleteSalesforce_Accounts",
21135     "group": "Salesforce_Accounts",
21136     "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>",
21137     "version": "0.0.0",
21138     "filename": "server/api/intSalesforceAccount/index.js",
21139     "groupTitle": "Salesforce_Accounts"
21140   },
21141   {
21142     "type": "get",
21143     "url": "/api/integrations/salesforce/accounts",
21144     "title": "Gets a list of Salesforce Accounts",
21145     "examples": [
21146       {
21147         "title": "Example usage:",
21148         "content": "curl https://{domain}/api/integrations/salesforce/accounts -v -u {name}:{password}",
21149         "type": "json"
21150       }
21151     ],
21152     "name": "GetSalesforce_Accounts",
21153     "group": "Salesforce_Accounts",
21154     "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>",
21155     "version": "0.0.0",
21156     "filename": "server/api/intSalesforceAccount/index.js",
21157     "groupTitle": "Salesforce_Accounts"
21158   },
21159   {
21160     "type": "get",
21161     "url": "/api/integrations/salesforce/accounts/{id}",
21162     "title": "Gets a single Salesforce Account",
21163     "examples": [
21164       {
21165         "title": "Example usage:",
21166         "content": "curl https://{domain}/api/integrations/salesforce/accounts/{id} -v -u {name}:{password}",
21167         "type": "json"
21168       }
21169     ],
21170     "name": "ShowSalesforce_Accounts",
21171     "group": "Salesforce_Accounts",
21172     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21173     "version": "0.0.0",
21174     "filename": "server/api/intSalesforceAccount/index.js",
21175     "groupTitle": "Salesforce_Accounts"
21176   },
21177   {
21178     "type": "post",
21179     "url": "/api/integrations/salesforce/accounts/{id}/configurations",
21180     "title": "Creates new configuration",
21181     "examples": [
21182       {
21183         "title": "Example usage:",
21184         "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",
21185         "type": "json"
21186       }
21187     ],
21188     "name": "addConfiguration",
21189     "group": "Salesforce_Accounts",
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": "get",
21197     "url": "/api/integrations/salesforce/accounts/{id}/configurations",
21198     "title": "Gets account configurations",
21199     "examples": [
21200       {
21201         "title": "Example usage:",
21202         "content": "curl https://{domain}/api/integrations/salesforce/accounts/{id}/configurations -v -u {name}:{password} -X GET",
21203         "type": "json"
21204       }
21205     ],
21206     "name": "getConfigurations",
21207     "group": "Salesforce_Accounts",
21208     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <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/{id}/fields",
21216     "title": "Gets account fields",
21217     "examples": [
21218       {
21219         "title": "Example usage:",
21220         "content": "curl https://{domain}/api/integrations/salesforce/accounts/{id}/fields -v -u {name}:{password} -X GET",
21221         "type": "json"
21222       }
21223     ],
21224     "name": "getFields",
21225     "group": "Salesforce_Accounts",
21226     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21227     "version": "0.0.0",
21228     "filename": "server/api/intSalesforceAccount/index.js",
21229     "groupTitle": "Salesforce_Accounts"
21230   },
21231   {
21232     "type": "put",
21233     "url": "/api/integrations/salesforce/accounts/{id}",
21234     "title": "Update an existing Salesforce Account",
21235     "examples": [
21236       {
21237         "title": "Example usage:",
21238         "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",
21239         "type": "json"
21240       }
21241     ],
21242     "name": "updateSalesforce_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/configurations",
21252     "title": "Creates a new Salesforce Configuration",
21253     "examples": [
21254       {
21255         "title": "Example usage:",
21256         "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",
21257         "type": "json"
21258       }
21259     ],
21260     "name": "CreateSalesforce_Configurations",
21261     "group": "Salesforce_Configurations",
21262     "parameter": {
21263       "fields": {
21264         "Body": [
21265           {
21266             "group": "Body",
21267             "type": "String",
21268             "optional": true,
21269             "field": "name",
21270             "description": ""
21271           },
21272           {
21273             "group": "Body",
21274             "type": "String",
21275             "optional": true,
21276             "field": "description",
21277             "description": ""
21278           },
21279           {
21280             "group": "Body",
21281             "type": "String",
21282             "allowedValues": [
21283               "\"Task\"",
21284               "\"Case\""
21285             ],
21286             "optional": true,
21287             "field": "ticketType",
21288             "description": ""
21289           },
21290           {
21291             "group": "Body",
21292             "type": "String",
21293             "allowedValues": [
21294               "\"contact_lead\"",
21295               "\"contact\"",
21296               "\"lead\"",
21297               "\"account_contact_lead\"",
21298               "\"account\""
21299             ],
21300             "optional": true,
21301             "field": "moduleSearch",
21302             "description": ""
21303           },
21304           {
21305             "group": "Body",
21306             "type": "String",
21307             "allowedValues": [
21308               "\"nothing\"",
21309               "\"contact\"",
21310               "\"lead\"",
21311               "\"account\""
21312             ],
21313             "optional": true,
21314             "field": "moduleCreate",
21315             "description": ""
21316           },
21317           {
21318             "group": "Body",
21319             "type": "String",
21320             "optional": true,
21321             "field": "leadId",
21322             "description": ""
21323           },
21324           {
21325             "group": "Body",
21326             "type": "String",
21327             "optional": true,
21328             "field": "additionalSearchAccount",
21329             "description": ""
21330           },
21331           {
21332             "group": "Body",
21333             "type": "String",
21334             "optional": true,
21335             "field": "additionalSearchContact",
21336             "description": ""
21337           },
21338           {
21339             "group": "Body",
21340             "type": "String",
21341             "optional": true,
21342             "field": "additionalSearchLead",
21343             "description": ""
21344           }
21345         ]
21346       }
21347     },
21348     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21349     "version": "0.0.0",
21350     "filename": "server/api/intSalesforceConfiguration/index.js",
21351     "groupTitle": "Salesforce_Configurations"
21352   },
21353   {
21354     "type": "delete",
21355     "url": "/api/integrations/salesforce/configurations/{id}",
21356     "title": "Deletes a Salesforce Configuration",
21357     "examples": [
21358       {
21359         "title": "Example usage:",
21360         "content": "curl https://{domain}/api/integrations/salesforce/configurations/{id} -v -u {name}:{password} -X DELETE",
21361         "type": "json"
21362       }
21363     ],
21364     "name": "DeleteSalesforce_Configurations",
21365     "group": "Salesforce_Configurations",
21366     "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>",
21367     "version": "0.0.0",
21368     "filename": "server/api/intSalesforceConfiguration/index.js",
21369     "groupTitle": "Salesforce_Configurations"
21370   },
21371   {
21372     "type": "get",
21373     "url": "/api/integrations/salesforce/configurations",
21374     "title": "Gets a list of Salesforce Configurations",
21375     "examples": [
21376       {
21377         "title": "Example usage:",
21378         "content": "curl https://{domain}/api/integrations/salesforce/configurations -v -u {name}:{password}",
21379         "type": "json"
21380       }
21381     ],
21382     "name": "GetSalesforce_Configurations",
21383     "group": "Salesforce_Configurations",
21384     "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>",
21385     "version": "0.0.0",
21386     "filename": "server/api/intSalesforceConfiguration/index.js",
21387     "groupTitle": "Salesforce_Configurations"
21388   },
21389   {
21390     "type": "get",
21391     "url": "/api/integrations/salesforce/configurations/{id}",
21392     "title": "Gets a single Salesforce Configuration",
21393     "examples": [
21394       {
21395         "title": "Example usage:",
21396         "content": "curl https://{domain}/api/integrations/salesforce/configurations/{id} -v -u {name}:{password}",
21397         "type": "json"
21398       }
21399     ],
21400     "name": "ShowSalesforce_Configurations",
21401     "group": "Salesforce_Configurations",
21402     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21403     "version": "0.0.0",
21404     "filename": "server/api/intSalesforceConfiguration/index.js",
21405     "groupTitle": "Salesforce_Configurations"
21406   },
21407   {
21408     "type": "get",
21409     "url": "/api/integrations/salesforce/configurations/{id}/descriptions",
21410     "title": "Gets configurations descriptions",
21411     "examples": [
21412       {
21413         "title": "Example usage:",
21414         "content": "curl https://{domain}/api/integrations/salesforce/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
21415         "type": "json"
21416       }
21417     ],
21418     "name": "getDescriptions",
21419     "group": "Salesforce_Configurations",
21420     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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": "get",
21427     "url": "/api/integrations/salesforce/configurations/{id}/fields",
21428     "title": "Gets configurations fields",
21429     "examples": [
21430       {
21431         "title": "Example usage:",
21432         "content": "curl https://{domain}/api/integrations/salesforce/configurations/{id}/fields -v -u {name}:{password} -X GET",
21433         "type": "json"
21434       }
21435     ],
21436     "name": "getFields",
21437     "group": "Salesforce_Configurations",
21438     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <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/{id}/subjects",
21446     "title": "Gets configurations subjects",
21447     "examples": [
21448       {
21449         "title": "Example usage:",
21450         "content": "curl https://{domain}/api/integrations/salesforce/configurations/{id}/subjects -v -u {name}:{password} -X GET",
21451         "type": "json"
21452       }
21453     ],
21454     "name": "getSubjects",
21455     "group": "Salesforce_Configurations",
21456     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21457     "version": "0.0.0",
21458     "filename": "server/api/intSalesforceConfiguration/index.js",
21459     "groupTitle": "Salesforce_Configurations"
21460   },
21461   {
21462     "type": "put",
21463     "url": "/api/integrations/salesforce/configurations/{id}",
21464     "title": "Update an existing Salesforce Configuration",
21465     "examples": [
21466       {
21467         "title": "Example usage:",
21468         "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",
21469         "type": "json"
21470       }
21471     ],
21472     "name": "updateSalesforce_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": "post",
21481     "url": "/api/integrations/salesforce/fields",
21482     "title": "Creates a new Salesforce Field",
21483     "examples": [
21484       {
21485         "title": "Example usage:",
21486         "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",
21487         "type": "json"
21488       }
21489     ],
21490     "name": "CreateSalesforce_Fields",
21491     "group": "Salesforce_Fields",
21492     "parameter": {
21493       "fields": {
21494         "Body": [
21495           {
21496             "group": "Body",
21497             "type": "String",
21498             "allowedValues": [
21499               "\"string\"",
21500               "\"variable\"",
21501               "\"customVariable\"",
21502               "\"keyValue\"",
21503               "\"picklist\""
21504             ],
21505             "optional": true,
21506             "field": "type",
21507             "description": ""
21508           },
21509           {
21510             "group": "Body",
21511             "type": "String",
21512             "optional": true,
21513             "field": "content",
21514             "description": ""
21515           },
21516           {
21517             "group": "Body",
21518             "type": "String",
21519             "optional": true,
21520             "field": "key",
21521             "description": ""
21522           },
21523           {
21524             "group": "Body",
21525             "type": "String",
21526             "allowedValues": [
21527               "\"string\"",
21528               "\"variable\"",
21529               "\"customVariable\""
21530             ],
21531             "optional": true,
21532             "field": "keyType",
21533             "description": ""
21534           },
21535           {
21536             "group": "Body",
21537             "type": "String",
21538             "optional": true,
21539             "field": "keyContent",
21540             "description": ""
21541           },
21542           {
21543             "group": "Body",
21544             "type": "String",
21545             "optional": true,
21546             "field": "idField",
21547             "description": ""
21548           },
21549           {
21550             "group": "Body",
21551             "type": "String",
21552             "optional": true,
21553             "field": "variableName",
21554             "description": ""
21555           }
21556         ]
21557       }
21558     },
21559     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21560     "version": "0.0.0",
21561     "filename": "server/api/intSalesforceField/index.js",
21562     "groupTitle": "Salesforce_Fields"
21563   },
21564   {
21565     "type": "delete",
21566     "url": "/api/integrations/salesforce/fields/{id}",
21567     "title": "Deletes a Salesforce Field",
21568     "examples": [
21569       {
21570         "title": "Example usage:",
21571         "content": "curl https://{domain}/api/integrations/salesforce/fields/{id} -v -u {name}:{password} -X DELETE",
21572         "type": "json"
21573       }
21574     ],
21575     "name": "DeleteSalesforce_Fields",
21576     "group": "Salesforce_Fields",
21577     "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>",
21578     "version": "0.0.0",
21579     "filename": "server/api/intSalesforceField/index.js",
21580     "groupTitle": "Salesforce_Fields"
21581   },
21582   {
21583     "type": "get",
21584     "url": "/api/integrations/salesforce/fields",
21585     "title": "Gets a list of Salesforce Fields",
21586     "examples": [
21587       {
21588         "title": "Example usage:",
21589         "content": "curl https://{domain}/api/integrations/salesforce/fields -v -u {name}:{password}",
21590         "type": "json"
21591       }
21592     ],
21593     "name": "GetSalesforce_Fields",
21594     "group": "Salesforce_Fields",
21595     "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>",
21596     "version": "0.0.0",
21597     "filename": "server/api/intSalesforceField/index.js",
21598     "groupTitle": "Salesforce_Fields"
21599   },
21600   {
21601     "type": "get",
21602     "url": "/api/integrations/salesforce/fields/{id}",
21603     "title": "Gets a single Salesforce Field",
21604     "examples": [
21605       {
21606         "title": "Example usage:",
21607         "content": "curl https://{domain}/api/integrations/salesforce/fields/{id} -v -u {name}:{password}",
21608         "type": "json"
21609       }
21610     ],
21611     "name": "ShowSalesforce_Fields",
21612     "group": "Salesforce_Fields",
21613     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21614     "version": "0.0.0",
21615     "filename": "server/api/intSalesforceField/index.js",
21616     "groupTitle": "Salesforce_Fields"
21617   },
21618   {
21619     "type": "put",
21620     "url": "/api/integrations/salesforce/fields/{id}",
21621     "title": "Update an existing Salesforce Field",
21622     "examples": [
21623       {
21624         "title": "Example usage:",
21625         "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",
21626         "type": "json"
21627       }
21628     ],
21629     "name": "updateSalesforce_Fields",
21630     "group": "Salesforce_Fields",
21631     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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": "post",
21638     "url": "/api/schedules",
21639     "title": "Creates a new Schedule",
21640     "examples": [
21641       {
21642         "title": "Example usage:",
21643         "content": "curl https://{domain}/api/schedules -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
21644         "type": "json"
21645       }
21646     ],
21647     "name": "CreateSchedules",
21648     "group": "Schedules",
21649     "parameter": {
21650       "fields": {
21651         "Body": [
21652           {
21653             "group": "Body",
21654             "type": "String",
21655             "optional": false,
21656             "field": "name",
21657             "description": ""
21658           },
21659           {
21660             "group": "Body",
21661             "type": "String",
21662             "optional": true,
21663             "field": "description",
21664             "description": ""
21665           },
21666           {
21667             "group": "Body",
21668             "type": "Boolean",
21669             "optional": false,
21670             "field": "active",
21671             "description": ""
21672           },
21673           {
21674             "group": "Body",
21675             "type": "String",
21676             "optional": false,
21677             "field": "cron",
21678             "description": ""
21679           },
21680           {
21681             "group": "Body",
21682             "type": "String",
21683             "optional": false,
21684             "field": "startAt",
21685             "description": ""
21686           },
21687           {
21688             "group": "Body",
21689             "type": "String",
21690             "optional": false,
21691             "field": "endAt",
21692             "description": ""
21693           },
21694           {
21695             "group": "Body",
21696             "type": "Integer",
21697             "optional": false,
21698             "field": "subtractNumber",
21699             "description": ""
21700           },
21701           {
21702             "group": "Body",
21703             "type": "String",
21704             "allowedValues": [
21705               "\"years\"",
21706               "\"quarters\"",
21707               "\"months\"",
21708               "\"weeks\"",
21709               "\"days\"",
21710               "\"hours\"",
21711               "\"minutes\""
21712             ],
21713             "optional": false,
21714             "field": "subtractUnit",
21715             "description": ""
21716           },
21717           {
21718             "group": "Body",
21719             "type": "String",
21720             "allowedValues": [
21721               "\"csv\"",
21722               "\"pdf\"",
21723               "\"xlsx\""
21724             ],
21725             "optional": false,
21726             "field": "output",
21727             "description": ""
21728           },
21729           {
21730             "group": "Body",
21731             "type": "String",
21732             "allowedValues": [
21733               "\"custom\"",
21734               "\"default\""
21735             ],
21736             "optional": false,
21737             "field": "type",
21738             "description": ""
21739           },
21740           {
21741             "group": "Body",
21742             "type": "Boolean",
21743             "optional": true,
21744             "field": "sendMail",
21745             "description": ""
21746           },
21747           {
21748             "group": "Body",
21749             "type": "String",
21750             "optional": true,
21751             "field": "email",
21752             "description": ""
21753           },
21754           {
21755             "group": "Body",
21756             "type": "Text",
21757             "optional": true,
21758             "field": "cc",
21759             "description": ""
21760           },
21761           {
21762             "group": "Body",
21763             "type": "Text",
21764             "optional": true,
21765             "field": "bcc",
21766             "description": ""
21767           },
21768           {
21769             "group": "Body",
21770             "type": "Boolean",
21771             "optional": true,
21772             "field": "sendIfEmpty",
21773             "description": ""
21774           }
21775         ]
21776       }
21777     },
21778     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21779     "version": "0.0.0",
21780     "filename": "server/api/schedule/index.js",
21781     "groupTitle": "Schedules"
21782   },
21783   {
21784     "type": "delete",
21785     "url": "/api/schedules/{id}",
21786     "title": "Deletes a Schedule",
21787     "examples": [
21788       {
21789         "title": "Example usage:",
21790         "content": "curl https://{domain}/api/schedules/{id} -v -u {name}:{password} -X DELETE",
21791         "type": "json"
21792       }
21793     ],
21794     "name": "DeleteSchedules",
21795     "group": "Schedules",
21796     "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>",
21797     "version": "0.0.0",
21798     "filename": "server/api/schedule/index.js",
21799     "groupTitle": "Schedules"
21800   },
21801   {
21802     "type": "get",
21803     "url": "/api/schedules",
21804     "title": "Gets a list of Schedules",
21805     "examples": [
21806       {
21807         "title": "Example usage:",
21808         "content": "curl https://{domain}/api/schedules -v -u {name}:{password}",
21809         "type": "json"
21810       }
21811     ],
21812     "name": "GetSchedules",
21813     "group": "Schedules",
21814     "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>",
21815     "version": "0.0.0",
21816     "filename": "server/api/schedule/index.js",
21817     "groupTitle": "Schedules"
21818   },
21819   {
21820     "type": "get",
21821     "url": "/api/schedules/{id}",
21822     "title": "Gets a single Schedule",
21823     "examples": [
21824       {
21825         "title": "Example usage:",
21826         "content": "curl https://{domain}/api/schedules/{id} -v -u {name}:{password}",
21827         "type": "json"
21828       }
21829     ],
21830     "name": "ShowSchedules",
21831     "group": "Schedules",
21832     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21833     "version": "0.0.0",
21834     "filename": "server/api/schedule/index.js",
21835     "groupTitle": "Schedules"
21836   },
21837   {
21838     "type": "get",
21839     "url": "/api/schedules/{id}/run",
21840     "title": "Run Scheduler",
21841     "examples": [
21842       {
21843         "title": "Example usage:",
21844         "content": "curl https://{domain}/api/schedules/{id}/run -v -u {name}:{password} -X GET",
21845         "type": "json"
21846       }
21847     ],
21848     "name": "run",
21849     "group": "Schedules",
21850     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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": "put",
21857     "url": "/api/schedules/{id}",
21858     "title": "Update an existing Schedule",
21859     "examples": [
21860       {
21861         "title": "Example usage:",
21862         "content": "curl https://{domain}/api/schedules/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
21863         "type": "json"
21864       }
21865     ],
21866     "name": "updateSchedules",
21867     "group": "Schedules",
21868     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <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": "post",
21875     "url": "/api/screen/recordings",
21876     "title": "Creates a new Recording",
21877     "examples": [
21878       {
21879         "title": "Example usage:",
21880         "content": "curl https://{domain}/api/screen/recordings -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
21881         "type": "json"
21882       }
21883     ],
21884     "name": "CreateRecordings",
21885     "group": "Screen_Recordings",
21886     "parameter": {
21887       "fields": {
21888         "Body": [
21889           {
21890             "group": "Body",
21891             "type": "Virtual",
21892             "optional": true,
21893             "field": "format",
21894             "description": ""
21895           },
21896           {
21897             "group": "Body",
21898             "type": "String",
21899             "optional": true,
21900             "field": "interactionid",
21901             "description": ""
21902           },
21903           {
21904             "group": "Body",
21905             "type": "String",
21906             "optional": true,
21907             "field": "channel",
21908             "description": ""
21909           },
21910           {
21911             "group": "Body",
21912             "type": "String",
21913             "optional": true,
21914             "field": "value",
21915             "description": ""
21916           },
21917           {
21918             "group": "Body",
21919             "type": "Integer",
21920             "optional": true,
21921             "field": "rating",
21922             "description": ""
21923           },
21924           {
21925             "group": "Body",
21926             "type": "Integer",
21927             "optional": true,
21928             "field": "duration",
21929             "description": ""
21930           },
21931           {
21932             "group": "Body",
21933             "type": "String",
21934             "optional": true,
21935             "field": "startedAt",
21936             "description": ""
21937           },
21938           {
21939             "group": "Body",
21940             "type": "String",
21941             "optional": true,
21942             "field": "closedAt",
21943             "description": ""
21944           },
21945           {
21946             "group": "Body",
21947             "type": "String",
21948             "optional": true,
21949             "field": "createdAt",
21950             "description": ""
21951           },
21952           {
21953             "group": "Body",
21954             "type": "String",
21955             "optional": true,
21956             "field": "updatedAt",
21957             "description": ""
21958           }
21959         ]
21960       }
21961     },
21962     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21963     "version": "0.0.0",
21964     "filename": "server/api/screenRecording/index.js",
21965     "groupTitle": "Screen_Recordings"
21966   },
21967   {
21968     "type": "get",
21969     "url": "/api/screen/recordings/describe",
21970     "title": "Gets table info about Recordings",
21971     "examples": [
21972       {
21973         "title": "Example usage:",
21974         "content": "curl https://{domain}/api/screen/recordings/describe -v -u {name}:{password}",
21975         "type": "json"
21976       }
21977     ],
21978     "name": "DescribeRecordings",
21979     "group": "Screen_Recordings",
21980     "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>",
21981     "version": "0.0.0",
21982     "filename": "server/api/screenRecording/index.js",
21983     "groupTitle": "Screen_Recordings"
21984   },
21985   {
21986     "type": "get",
21987     "url": "/api/screen/recordings",
21988     "title": "Gets a list of Recordings",
21989     "examples": [
21990       {
21991         "title": "Example usage:",
21992         "content": "curl https://{domain}/api/screen/recordings -v -u {name}:{password}",
21993         "type": "json"
21994       }
21995     ],
21996     "name": "GetRecordings",
21997     "group": "Screen_Recordings",
21998     "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>",
21999     "version": "0.0.0",
22000     "filename": "server/api/screenRecording/index.js",
22001     "groupTitle": "Screen_Recordings"
22002   },
22003   {
22004     "type": "get",
22005     "url": "/api/screen/recordings/{id}",
22006     "title": "Gets a single Recording",
22007     "examples": [
22008       {
22009         "title": "Example usage:",
22010         "content": "curl https://{domain}/api/screen/recordings/{id} -v -u {name}:{password}",
22011         "type": "json"
22012       }
22013     ],
22014     "name": "ShowRecordings",
22015     "group": "Screen_Recordings",
22016     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22017     "version": "0.0.0",
22018     "filename": "server/api/screenRecording/index.js",
22019     "groupTitle": "Screen_Recordings"
22020   },
22021   {
22022     "type": "delete",
22023     "url": "/api/screen/recordings/{id}",
22024     "title": "Delete screen recording",
22025     "examples": [
22026       {
22027         "title": "Example usage:",
22028         "content": "curl https://{domain}/api/screen/recordings/{id} -v -u {name}:{password} -X DELETE",
22029         "type": "json"
22030       }
22031     ],
22032     "name": "destroy",
22033     "group": "Screen_Recordings",
22034     "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>",
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/{id}/download",
22042     "title": "Download Recording",
22043     "examples": [
22044       {
22045         "title": "Example usage:",
22046         "content": "curl https://{domain}/api/screen/recordings/{id}/download -v -u {name}:{password} -X GET",
22047         "type": "json"
22048       }
22049     ],
22050     "name": "download",
22051     "group": "Screen_Recordings",
22052     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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": "put",
22059     "url": "/api/screen/recordings/{id}",
22060     "title": "Update an existing Recording",
22061     "examples": [
22062       {
22063         "title": "Example usage:",
22064         "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",
22065         "type": "json"
22066       }
22067     ],
22068     "name": "updateRecordings",
22069     "group": "Screen_Recordings",
22070     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22071     "version": "0.0.0",
22072     "filename": "server/api/screenRecording/index.js",
22073     "groupTitle": "Screen_Recordings"
22074   },
22075   {
22076     "type": "post",
22077     "url": "/api/integrations/servicenow/accounts",
22078     "title": "Creates a new Servicenow Account",
22079     "examples": [
22080       {
22081         "title": "Example usage:",
22082         "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",
22083         "type": "json"
22084       }
22085     ],
22086     "name": "CreateServicenow_Accounts",
22087     "group": "Servicenow_Accounts",
22088     "parameter": {
22089       "fields": {
22090         "Body": [
22091           {
22092             "group": "Body",
22093             "type": "String",
22094             "optional": true,
22095             "field": "name",
22096             "description": ""
22097           },
22098           {
22099             "group": "Body",
22100             "type": "String",
22101             "optional": true,
22102             "field": "description",
22103             "description": ""
22104           },
22105           {
22106             "group": "Body",
22107             "type": "String",
22108             "optional": true,
22109             "field": "username",
22110             "description": ""
22111           },
22112           {
22113             "group": "Body",
22114             "type": "String",
22115             "optional": true,
22116             "field": "password",
22117             "description": ""
22118           },
22119           {
22120             "group": "Body",
22121             "type": "String",
22122             "optional": true,
22123             "field": "email",
22124             "description": ""
22125           },
22126           {
22127             "group": "Body",
22128             "type": "String",
22129             "optional": true,
22130             "field": "remoteUri",
22131             "description": ""
22132           },
22133           {
22134             "group": "Body",
22135             "type": "String",
22136             "optional": false,
22137             "field": "serverUrl",
22138             "description": ""
22139           }
22140         ]
22141       }
22142     },
22143     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22144     "version": "0.0.0",
22145     "filename": "server/api/intServicenowAccount/index.js",
22146     "groupTitle": "Servicenow_Accounts"
22147   },
22148   {
22149     "type": "delete",
22150     "url": "/api/integrations/servicenow/accounts/{id}",
22151     "title": "Deletes a Servicenow Account",
22152     "examples": [
22153       {
22154         "title": "Example usage:",
22155         "content": "curl https://{domain}/api/integrations/servicenow/accounts/{id} -v -u {name}:{password} -X DELETE",
22156         "type": "json"
22157       }
22158     ],
22159     "name": "DeleteServicenow_Accounts",
22160     "group": "Servicenow_Accounts",
22161     "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>",
22162     "version": "0.0.0",
22163     "filename": "server/api/intServicenowAccount/index.js",
22164     "groupTitle": "Servicenow_Accounts"
22165   },
22166   {
22167     "type": "get",
22168     "url": "/api/integrations/servicenow/accounts",
22169     "title": "Gets a list of Servicenow Accounts",
22170     "examples": [
22171       {
22172         "title": "Example usage:",
22173         "content": "curl https://{domain}/api/integrations/servicenow/accounts -v -u {name}:{password}",
22174         "type": "json"
22175       }
22176     ],
22177     "name": "GetServicenow_Accounts",
22178     "group": "Servicenow_Accounts",
22179     "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>",
22180     "version": "0.0.0",
22181     "filename": "server/api/intServicenowAccount/index.js",
22182     "groupTitle": "Servicenow_Accounts"
22183   },
22184   {
22185     "type": "get",
22186     "url": "/api/integrations/servicenow/accounts/{id}",
22187     "title": "Gets a single Servicenow Account",
22188     "examples": [
22189       {
22190         "title": "Example usage:",
22191         "content": "curl https://{domain}/api/integrations/servicenow/accounts/{id} -v -u {name}:{password}",
22192         "type": "json"
22193       }
22194     ],
22195     "name": "ShowServicenow_Accounts",
22196     "group": "Servicenow_Accounts",
22197     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22198     "version": "0.0.0",
22199     "filename": "server/api/intServicenowAccount/index.js",
22200     "groupTitle": "Servicenow_Accounts"
22201   },
22202   {
22203     "type": "post",
22204     "url": "/api/integrations/servicenow/accounts/{id}/configurations",
22205     "title": "Creates new configuration",
22206     "examples": [
22207       {
22208         "title": "Example usage:",
22209         "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",
22210         "type": "json"
22211       }
22212     ],
22213     "name": "addConfiguration",
22214     "group": "Servicenow_Accounts",
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": "get",
22222     "url": "/api/integrations/servicenow/accounts/{id}/configurations",
22223     "title": "Gets account configurations",
22224     "examples": [
22225       {
22226         "title": "Example usage:",
22227         "content": "curl https://{domain}/api/integrations/servicenow/accounts/{id}/configurations -v -u {name}:{password} -X GET",
22228         "type": "json"
22229       }
22230     ],
22231     "name": "getConfigurations",
22232     "group": "Servicenow_Accounts",
22233     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <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/{id}/fields",
22241     "title": "Gets account fields",
22242     "examples": [
22243       {
22244         "title": "Example usage:",
22245         "content": "curl https://{domain}/api/integrations/servicenow/accounts/{id}/fields -v -u {name}:{password} -X GET",
22246         "type": "json"
22247       }
22248     ],
22249     "name": "getFields",
22250     "group": "Servicenow_Accounts",
22251     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22252     "version": "0.0.0",
22253     "filename": "server/api/intServicenowAccount/index.js",
22254     "groupTitle": "Servicenow_Accounts"
22255   },
22256   {
22257     "type": "put",
22258     "url": "/api/integrations/servicenow/accounts/{id}",
22259     "title": "Update an existing Servicenow Account",
22260     "examples": [
22261       {
22262         "title": "Example usage:",
22263         "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",
22264         "type": "json"
22265       }
22266     ],
22267     "name": "updateServicenow_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/configurations",
22277     "title": "Creates a new Servicenow Configuration",
22278     "examples": [
22279       {
22280         "title": "Example usage:",
22281         "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",
22282         "type": "json"
22283       }
22284     ],
22285     "name": "CreateServicenow_Configurations",
22286     "group": "Servicenow_Configurations",
22287     "parameter": {
22288       "fields": {
22289         "Body": [
22290           {
22291             "group": "Body",
22292             "type": "String",
22293             "optional": true,
22294             "field": "name",
22295             "description": ""
22296           },
22297           {
22298             "group": "Body",
22299             "type": "String",
22300             "optional": true,
22301             "field": "description",
22302             "description": ""
22303           }
22304         ]
22305       }
22306     },
22307     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22308     "version": "0.0.0",
22309     "filename": "server/api/intServicenowConfiguration/index.js",
22310     "groupTitle": "Servicenow_Configurations"
22311   },
22312   {
22313     "type": "delete",
22314     "url": "/api/integrations/servicenow/configurations/{id}",
22315     "title": "Deletes a Servicenow Configuration",
22316     "examples": [
22317       {
22318         "title": "Example usage:",
22319         "content": "curl https://{domain}/api/integrations/servicenow/configurations/{id} -v -u {name}:{password} -X DELETE",
22320         "type": "json"
22321       }
22322     ],
22323     "name": "DeleteServicenow_Configurations",
22324     "group": "Servicenow_Configurations",
22325     "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>",
22326     "version": "0.0.0",
22327     "filename": "server/api/intServicenowConfiguration/index.js",
22328     "groupTitle": "Servicenow_Configurations"
22329   },
22330   {
22331     "type": "get",
22332     "url": "/api/integrations/servicenow/configurations",
22333     "title": "Gets a list of Servicenow Configurations",
22334     "examples": [
22335       {
22336         "title": "Example usage:",
22337         "content": "curl https://{domain}/api/integrations/servicenow/configurations -v -u {name}:{password}",
22338         "type": "json"
22339       }
22340     ],
22341     "name": "GetServicenow_Configurations",
22342     "group": "Servicenow_Configurations",
22343     "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>",
22344     "version": "0.0.0",
22345     "filename": "server/api/intServicenowConfiguration/index.js",
22346     "groupTitle": "Servicenow_Configurations"
22347   },
22348   {
22349     "type": "get",
22350     "url": "/api/integrations/servicenow/configurations/{id}",
22351     "title": "Gets a single Servicenow Configuration",
22352     "examples": [
22353       {
22354         "title": "Example usage:",
22355         "content": "curl https://{domain}/api/integrations/servicenow/configurations/{id} -v -u {name}:{password}",
22356         "type": "json"
22357       }
22358     ],
22359     "name": "ShowServicenow_Configurations",
22360     "group": "Servicenow_Configurations",
22361     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22362     "version": "0.0.0",
22363     "filename": "server/api/intServicenowConfiguration/index.js",
22364     "groupTitle": "Servicenow_Configurations"
22365   },
22366   {
22367     "type": "get",
22368     "url": "/api/integrations/servicenow/configurations/{id}/descriptions",
22369     "title": "Gets configurations descriptions",
22370     "examples": [
22371       {
22372         "title": "Example usage:",
22373         "content": "curl https://{domain}/api/integrations/servicenow/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
22374         "type": "json"
22375       }
22376     ],
22377     "name": "getDescriptions",
22378     "group": "Servicenow_Configurations",
22379     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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": "get",
22386     "url": "/api/integrations/servicenow/configurations/{id}/fields",
22387     "title": "Gets configurations fields",
22388     "examples": [
22389       {
22390         "title": "Example usage:",
22391         "content": "curl https://{domain}/api/integrations/servicenow/configurations/{id}/fields -v -u {name}:{password} -X GET",
22392         "type": "json"
22393       }
22394     ],
22395     "name": "getFields",
22396     "group": "Servicenow_Configurations",
22397     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <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/{id}/subjects",
22405     "title": "Gets configurations subjects",
22406     "examples": [
22407       {
22408         "title": "Example usage:",
22409         "content": "curl https://{domain}/api/integrations/servicenow/configurations/{id}/subjects -v -u {name}:{password} -X GET",
22410         "type": "json"
22411       }
22412     ],
22413     "name": "getSubjects",
22414     "group": "Servicenow_Configurations",
22415     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22416     "version": "0.0.0",
22417     "filename": "server/api/intServicenowConfiguration/index.js",
22418     "groupTitle": "Servicenow_Configurations"
22419   },
22420   {
22421     "type": "put",
22422     "url": "/api/integrations/servicenow/configurations/{id}",
22423     "title": "Update an existing Servicenow Configuration",
22424     "examples": [
22425       {
22426         "title": "Example usage:",
22427         "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",
22428         "type": "json"
22429       }
22430     ],
22431     "name": "updateServicenow_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": "post",
22440     "url": "/api/integrations/servicenow/fields",
22441     "title": "Creates a new Servicenow Field",
22442     "examples": [
22443       {
22444         "title": "Example usage:",
22445         "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",
22446         "type": "json"
22447       }
22448     ],
22449     "name": "CreateServicenow_Fields",
22450     "group": "Servicenow_Fields",
22451     "parameter": {
22452       "fields": {
22453         "Body": [
22454           {
22455             "group": "Body",
22456             "type": "String",
22457             "allowedValues": [
22458               "\"string\"",
22459               "\"variable\"",
22460               "\"customVariable\"",
22461               "\"keyValue\"",
22462               "\"picklist\""
22463             ],
22464             "optional": true,
22465             "field": "type",
22466             "description": ""
22467           },
22468           {
22469             "group": "Body",
22470             "type": "String",
22471             "optional": true,
22472             "field": "content",
22473             "description": ""
22474           },
22475           {
22476             "group": "Body",
22477             "type": "String",
22478             "optional": true,
22479             "field": "key",
22480             "description": ""
22481           },
22482           {
22483             "group": "Body",
22484             "type": "String",
22485             "allowedValues": [
22486               "\"string\"",
22487               "\"variable\"",
22488               "\"customVariable\""
22489             ],
22490             "optional": true,
22491             "field": "keyType",
22492             "description": ""
22493           },
22494           {
22495             "group": "Body",
22496             "type": "String",
22497             "optional": true,
22498             "field": "keyContent",
22499             "description": ""
22500           },
22501           {
22502             "group": "Body",
22503             "type": "String",
22504             "optional": true,
22505             "field": "idField",
22506             "description": ""
22507           },
22508           {
22509             "group": "Body",
22510             "type": "String",
22511             "optional": true,
22512             "field": "nameField",
22513             "description": ""
22514           },
22515           {
22516             "group": "Body",
22517             "type": "Boolean",
22518             "optional": true,
22519             "field": "customField",
22520             "description": ""
22521           },
22522           {
22523             "group": "Body",
22524             "type": "String",
22525             "optional": true,
22526             "field": "variableName",
22527             "description": ""
22528           }
22529         ]
22530       }
22531     },
22532     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22533     "version": "0.0.0",
22534     "filename": "server/api/intServicenowField/index.js",
22535     "groupTitle": "Servicenow_Fields"
22536   },
22537   {
22538     "type": "delete",
22539     "url": "/api/integrations/servicenow/fields/{id}",
22540     "title": "Deletes a Servicenow Field",
22541     "examples": [
22542       {
22543         "title": "Example usage:",
22544         "content": "curl https://{domain}/api/integrations/servicenow/fields/{id} -v -u {name}:{password} -X DELETE",
22545         "type": "json"
22546       }
22547     ],
22548     "name": "DeleteServicenow_Fields",
22549     "group": "Servicenow_Fields",
22550     "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>",
22551     "version": "0.0.0",
22552     "filename": "server/api/intServicenowField/index.js",
22553     "groupTitle": "Servicenow_Fields"
22554   },
22555   {
22556     "type": "get",
22557     "url": "/api/integrations/servicenow/fields",
22558     "title": "Gets a list of Servicenow Fields",
22559     "examples": [
22560       {
22561         "title": "Example usage:",
22562         "content": "curl https://{domain}/api/integrations/servicenow/fields -v -u {name}:{password}",
22563         "type": "json"
22564       }
22565     ],
22566     "name": "GetServicenow_Fields",
22567     "group": "Servicenow_Fields",
22568     "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>",
22569     "version": "0.0.0",
22570     "filename": "server/api/intServicenowField/index.js",
22571     "groupTitle": "Servicenow_Fields"
22572   },
22573   {
22574     "type": "get",
22575     "url": "/api/integrations/servicenow/fields/{id}",
22576     "title": "Gets a single Servicenow Field",
22577     "examples": [
22578       {
22579         "title": "Example usage:",
22580         "content": "curl https://{domain}/api/integrations/servicenow/fields/{id} -v -u {name}:{password}",
22581         "type": "json"
22582       }
22583     ],
22584     "name": "ShowServicenow_Fields",
22585     "group": "Servicenow_Fields",
22586     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22587     "version": "0.0.0",
22588     "filename": "server/api/intServicenowField/index.js",
22589     "groupTitle": "Servicenow_Fields"
22590   },
22591   {
22592     "type": "put",
22593     "url": "/api/integrations/servicenow/fields/{id}",
22594     "title": "Update an existing Servicenow Field",
22595     "examples": [
22596       {
22597         "title": "Example usage:",
22598         "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",
22599         "type": "json"
22600       }
22601     ],
22602     "name": "updateServicenow_Fields",
22603     "group": "Servicenow_Fields",
22604     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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": "get",
22611     "url": "/api/settings",
22612     "title": "Gets a list of Settings",
22613     "examples": [
22614       {
22615         "title": "Example usage:",
22616         "content": "curl https://{domain}/api/settings -v -u {name}:{password}",
22617         "type": "json"
22618       }
22619     ],
22620     "name": "GetSettings",
22621     "group": "Settings",
22622     "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>",
22623     "version": "0.0.0",
22624     "filename": "server/api/setting/index.js",
22625     "groupTitle": "Settings"
22626   },
22627   {
22628     "type": "get",
22629     "url": "/api/settings/{id}",
22630     "title": "Gets a single Setting",
22631     "examples": [
22632       {
22633         "title": "Example usage:",
22634         "content": "curl https://{domain}/api/settings/{id} -v -u {name}:{password}",
22635         "type": "json"
22636       }
22637     ],
22638     "name": "ShowSettings",
22639     "group": "Settings",
22640     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22641     "version": "0.0.0",
22642     "filename": "server/api/setting/index.js",
22643     "groupTitle": "Settings"
22644   },
22645   {
22646     "type": "post",
22647     "url": "/api/settings/{id}/favicon",
22648     "title": "Add Favicon",
22649     "examples": [
22650       {
22651         "title": "Example usage:",
22652         "content": "curl https://{domain}/api/settings/{id}/favicon -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
22653         "type": "json"
22654       }
22655     ],
22656     "name": "addFavicon",
22657     "group": "Settings",
22658     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22659     "version": "0.0.0",
22660     "filename": "server/api/setting/index.js",
22661     "groupTitle": "Settings"
22662   },
22663   {
22664     "type": "post",
22665     "url": "/api/settings/{id}/logo",
22666     "title": "Add logo",
22667     "examples": [
22668       {
22669         "title": "Example usage:",
22670         "content": "curl https://{domain}/api/settings/{id}/logo -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
22671         "type": "json"
22672       }
22673     ],
22674     "name": "addLogo",
22675     "group": "Settings",
22676     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22677     "version": "0.0.0",
22678     "filename": "server/api/setting/index.js",
22679     "groupTitle": "Settings"
22680   },
22681   {
22682     "type": "post",
22683     "url": "/api/settings/{id}/logo_login",
22684     "title": "Add logo login",
22685     "examples": [
22686       {
22687         "title": "Example usage:",
22688         "content": "curl https://{domain}/api/settings/{id}/logo_login -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
22689         "type": "json"
22690       }
22691     ],
22692     "name": "addLogoLogin",
22693     "group": "Settings",
22694     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22695     "version": "0.0.0",
22696     "filename": "server/api/setting/index.js",
22697     "groupTitle": "Settings"
22698   },
22699   {
22700     "type": "post",
22701     "url": "/api/settings/{id}/preferred",
22702     "title": "Add Preferred",
22703     "examples": [
22704       {
22705         "title": "Example usage:",
22706         "content": "curl https://{domain}/api/settings/{id}/preferred -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
22707         "type": "json"
22708       }
22709     ],
22710     "name": "addPreferred",
22711     "group": "Settings",
22712     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</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": "get",
22719     "url": "/api/settings/now",
22720     "title": "Get Server Current Date",
22721     "examples": [
22722       {
22723         "title": "Example usage:",
22724         "content": "curl https://{domain}/api/settings/now -v -X GET",
22725         "type": "json"
22726       }
22727     ],
22728     "name": "getDate",
22729     "group": "Settings",
22730     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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": "get",
22737     "url": "/api/settings/{id}/favicon",
22738     "title": "Get Favicon",
22739     "examples": [
22740       {
22741         "title": "Example usage:",
22742         "content": "curl https://{domain}/api/settings/{id}/favicon -v -X GET",
22743         "type": "json"
22744       }
22745     ],
22746     "name": "getFavicon",
22747     "group": "Settings",
22748     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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": "get",
22755     "url": "/api/settings/{id}/gdpr",
22756     "title": "Get gdpr settings",
22757     "examples": [
22758       {
22759         "title": "Example usage:",
22760         "content": "curl https://{domain}/api/settings/{id}/gdpr -v -u {name}:{password} -X GET",
22761         "type": "json"
22762       }
22763     ],
22764     "name": "getGdpr",
22765     "group": "Settings",
22766     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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": "get",
22773     "url": "/api/settings/{id}/logo",
22774     "title": "Get logo",
22775     "examples": [
22776       {
22777         "title": "Example usage:",
22778         "content": "curl https://{domain}/api/settings/{id}/logo -v -X GET",
22779         "type": "json"
22780       }
22781     ],
22782     "name": "getLogo",
22783     "group": "Settings",
22784     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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/{id}/logo_login",
22792     "title": "Get logo login",
22793     "examples": [
22794       {
22795         "title": "Example usage:",
22796         "content": "curl https://{domain}/api/settings/{id}/logo_login -v -X GET",
22797         "type": "json"
22798       }
22799     ],
22800     "name": "getLogoLogin",
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}/preferred",
22810     "title": "Get Preferred",
22811     "examples": [
22812       {
22813         "title": "Example usage:",
22814         "content": "curl https://{domain}/api/settings/{id}/preferred -v -X GET",
22815         "type": "json"
22816       }
22817     ],
22818     "name": "getPreferred",
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": "put",
22827     "url": "/api/settings/{id}",
22828     "title": "Update an existing Setting",
22829     "examples": [
22830       {
22831         "title": "Example usage:",
22832         "content": "curl https://{domain}/api/settings/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
22833         "type": "json"
22834       }
22835     ],
22836     "name": "updateSettings",
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": "post",
22845     "url": "/api/sms/accounts/{id}/users",
22846     "title": "Add agents to a sms account",
22847     "examples": [
22848       {
22849         "title": "Example usage:",
22850         "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",
22851         "type": "json"
22852       }
22853     ],
22854     "name": "AddAgents",
22855     "group": "Sms_Accounts",
22856     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22857     "version": "0.0.0",
22858     "filename": "server/api/smsAccount/index.js",
22859     "groupTitle": "Sms_Accounts"
22860   },
22861   {
22862     "type": "post",
22863     "url": "/api/sms/accounts",
22864     "title": "Creates a new Account",
22865     "examples": [
22866       {
22867         "title": "Example usage:",
22868         "content": "curl https://{domain}/api/sms/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
22869         "type": "json"
22870       }
22871     ],
22872     "name": "CreateAccounts",
22873     "group": "Sms_Accounts",
22874     "parameter": {
22875       "fields": {
22876         "Body": [
22877           {
22878             "group": "Body",
22879             "type": "String",
22880             "optional": false,
22881             "field": "name",
22882             "description": ""
22883           },
22884           {
22885             "group": "Body",
22886             "type": "String",
22887             "optional": false,
22888             "field": "key",
22889             "description": ""
22890           },
22891           {
22892             "group": "Body",
22893             "type": "String",
22894             "optional": false,
22895             "field": "remote",
22896             "description": ""
22897           },
22898           {
22899             "group": "Body",
22900             "type": "String",
22901             "optional": true,
22902             "field": "token",
22903             "description": ""
22904           },
22905           {
22906             "group": "Body",
22907             "type": "String",
22908             "optional": true,
22909             "field": "phone",
22910             "description": ""
22911           },
22912           {
22913             "group": "Body",
22914             "type": "String",
22915             "allowedValues": [
22916               "\"twilio\"",
22917               "\"skebby\"",
22918               "\"connectel\"",
22919               "\"clicksend\"",
22920               "\"plivo\"",
22921               "\"clickatell\"",
22922               "\"bandwidth\"",
22923               "\"csc\"",
22924               "\"infobip\"",
22925               "\"intelepeer\""
22926             ],
22927             "optional": true,
22928             "field": "type",
22929             "description": ""
22930           },
22931           {
22932             "group": "Body",
22933             "type": "String",
22934             "optional": true,
22935             "field": "accountSid",
22936             "description": ""
22937           },
22938           {
22939             "group": "Body",
22940             "type": "String",
22941             "optional": true,
22942             "field": "authId",
22943             "description": ""
22944           },
22945           {
22946             "group": "Body",
22947             "type": "String",
22948             "optional": true,
22949             "field": "authToken",
22950             "description": ""
22951           },
22952           {
22953             "group": "Body",
22954             "type": "String",
22955             "allowedValues": [
22956               "\"SI\"",
22957               "\"TI\"",
22958               "\"GP\""
22959             ],
22960             "optional": true,
22961             "field": "smsMethod",
22962             "description": ""
22963           },
22964           {
22965             "group": "Body",
22966             "type": "String",
22967             "optional": true,
22968             "field": "username",
22969             "description": ""
22970           },
22971           {
22972             "group": "Body",
22973             "type": "String",
22974             "optional": true,
22975             "field": "password",
22976             "description": ""
22977           },
22978           {
22979             "group": "Body",
22980             "type": "String",
22981             "optional": true,
22982             "field": "apiKey",
22983             "description": ""
22984           },
22985           {
22986             "group": "Body",
22987             "type": "String",
22988             "optional": true,
22989             "field": "applicationId",
22990             "description": ""
22991           },
22992           {
22993             "group": "Body",
22994             "type": "String",
22995             "optional": true,
22996             "field": "accountId",
22997             "description": ""
22998           },
22999           {
23000             "group": "Body",
23001             "type": "String",
23002             "optional": true,
23003             "field": "senderString",
23004             "description": ""
23005           },
23006           {
23007             "group": "Body",
23008             "type": "Boolean",
23009             "optional": true,
23010             "field": "deliveryReport",
23011             "description": ""
23012           },
23013           {
23014             "group": "Body",
23015             "type": "String",
23016             "optional": true,
23017             "field": "description",
23018             "description": ""
23019           },
23020           {
23021             "group": "Body",
23022             "type": "Text",
23023             "optional": true,
23024             "field": "notificationTemplate",
23025             "description": ""
23026           },
23027           {
23028             "group": "Body",
23029             "type": "Boolean",
23030             "optional": true,
23031             "field": "notificationSound",
23032             "description": ""
23033           },
23034           {
23035             "group": "Body",
23036             "type": "Boolean",
23037             "optional": true,
23038             "field": "notificationShake",
23039             "description": ""
23040           },
23041           {
23042             "group": "Body",
23043             "type": "Integer",
23044             "optional": true,
23045             "field": "waitForTheAssignedAgent",
23046             "description": ""
23047           },
23048           {
23049             "group": "Body",
23050             "type": "Boolean",
23051             "optional": true,
23052             "field": "queueTransfer",
23053             "description": ""
23054           },
23055           {
23056             "group": "Body",
23057             "type": "Integer",
23058             "optional": true,
23059             "field": "queueTransferTimeout",
23060             "description": ""
23061           },
23062           {
23063             "group": "Body",
23064             "type": "Boolean",
23065             "optional": true,
23066             "field": "agentTransfer",
23067             "description": ""
23068           },
23069           {
23070             "group": "Body",
23071             "type": "Integer",
23072             "optional": true,
23073             "field": "agentTransferTimeout",
23074             "description": ""
23075           },
23076           {
23077             "group": "Body",
23078             "type": "String",
23079             "optional": true,
23080             "field": "baseUrl",
23081             "description": ""
23082           },
23083           {
23084             "group": "Body",
23085             "type": "Integer",
23086             "optional": true,
23087             "field": "mandatoryDispositionPauseId",
23088             "description": "<p>Status to put when mandatory disposition is enabled</p>"
23089           },
23090           {
23091             "group": "Body",
23092             "type": "Boolean",
23093             "optional": true,
23094             "field": "mandatoryDisposition",
23095             "description": "<p>Enabled/disables mandatory dispo on a queue</p>"
23096           }
23097         ]
23098       }
23099     },
23100     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23101     "version": "0.0.0",
23102     "filename": "server/api/smsAccount/index.js",
23103     "groupTitle": "Sms_Accounts"
23104   },
23105   {
23106     "type": "delete",
23107     "url": "/api/sms/accounts/{id}",
23108     "title": "Deletes a Account",
23109     "examples": [
23110       {
23111         "title": "Example usage:",
23112         "content": "curl https://{domain}/api/sms/accounts/{id} -v -u {name}:{password} -X DELETE",
23113         "type": "json"
23114       }
23115     ],
23116     "name": "DeleteAccounts",
23117     "group": "Sms_Accounts",
23118     "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>",
23119     "version": "0.0.0",
23120     "filename": "server/api/smsAccount/index.js",
23121     "groupTitle": "Sms_Accounts"
23122   },
23123   {
23124     "type": "get",
23125     "url": "/api/sms/accounts/describe",
23126     "title": "Gets table info about Accounts",
23127     "examples": [
23128       {
23129         "title": "Example usage:",
23130         "content": "curl https://{domain}/api/sms/accounts/describe -v -u {name}:{password}",
23131         "type": "json"
23132       }
23133     ],
23134     "name": "DescribeAccounts",
23135     "group": "Sms_Accounts",
23136     "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>",
23137     "version": "0.0.0",
23138     "filename": "server/api/smsAccount/index.js",
23139     "groupTitle": "Sms_Accounts"
23140   },
23141   {
23142     "type": "get",
23143     "url": "/api/sms/accounts",
23144     "title": "Gets a list of Accounts",
23145     "examples": [
23146       {
23147         "title": "Example usage:",
23148         "content": "curl https://{domain}/api/sms/accounts -v -u {name}:{password}",
23149         "type": "json"
23150       }
23151     ],
23152     "name": "GetAccounts",
23153     "group": "Sms_Accounts",
23154     "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>",
23155     "version": "0.0.0",
23156     "filename": "server/api/smsAccount/index.js",
23157     "groupTitle": "Sms_Accounts"
23158   },
23159   {
23160     "type": "get",
23161     "url": "/api/sms/accounts/{id}/users",
23162     "title": "Gets agents from sms account",
23163     "examples": [
23164       {
23165         "title": "Example usage:",
23166         "content": "curl https://{domain}/api/sms/accounts/{id}/users -v -u {name}:{password} -X GET",
23167         "type": "json"
23168       }
23169     ],
23170     "name": "GetAgents",
23171     "group": "Sms_Accounts",
23172     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23173     "version": "0.0.0",
23174     "filename": "server/api/smsAccount/index.js",
23175     "groupTitle": "Sms_Accounts"
23176   },
23177   {
23178     "type": "delete",
23179     "url": "/api/sms/accounts/{id}/users",
23180     "title": "Removes agents from a sms account",
23181     "examples": [
23182       {
23183         "title": "Example usage:",
23184         "content": "curl https://{domain}/api/sms/accounts/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
23185         "type": "json"
23186       }
23187     ],
23188     "name": "RemoveAgents",
23189     "group": "Sms_Accounts",
23190     "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>",
23191     "version": "0.0.0",
23192     "filename": "server/api/smsAccount/index.js",
23193     "groupTitle": "Sms_Accounts"
23194   },
23195   {
23196     "type": "delete",
23197     "url": "/api/sms/accounts/{id}/canned_answers",
23198     "title": "Removes canned answers from account",
23199     "examples": [
23200       {
23201         "title": "Example usage:",
23202         "content": "curl https://{domain}/api/sms/accounts/{id}/canned_answers?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
23203         "type": "json"
23204       }
23205     ],
23206     "name": "RemoveAnswers",
23207     "group": "Sms_Accounts",
23208     "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>",
23209     "version": "0.0.0",
23210     "filename": "server/api/smsAccount/index.js",
23211     "groupTitle": "Sms_Accounts"
23212   },
23213   {
23214     "type": "delete",
23215     "url": "/api/sms/accounts/{id}/dispositions",
23216     "title": "Removes dispositions from account",
23217     "examples": [
23218       {
23219         "title": "Example usage:",
23220         "content": "curl https://{domain}/api/sms/accounts/{id}/dispositions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
23221         "type": "json"
23222       }
23223     ],
23224     "name": "RemoveDispositions",
23225     "group": "Sms_Accounts",
23226     "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>",
23227     "version": "0.0.0",
23228     "filename": "server/api/smsAccount/index.js",
23229     "groupTitle": "Sms_Accounts"
23230   },
23231   {
23232     "type": "get",
23233     "url": "/api/sms/accounts/{id}",
23234     "title": "Gets a single Account",
23235     "examples": [
23236       {
23237         "title": "Example usage:",
23238         "content": "curl https://{domain}/api/sms/accounts/{id} -v -u {name}:{password}",
23239         "type": "json"
23240       }
23241     ],
23242     "name": "ShowAccounts",
23243     "group": "Sms_Accounts",
23244     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23245     "version": "0.0.0",
23246     "filename": "server/api/smsAccount/index.js",
23247     "groupTitle": "Sms_Accounts"
23248   },
23249   {
23250     "type": "put",
23251     "url": "/api/sms/messages/{id}/accept",
23252     "title": "Accepts message",
23253     "examples": [
23254       {
23255         "title": "Example usage:",
23256         "content": "curl https://{domain}/api/sms/messages/{id}/accept \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
23257         "type": "json"
23258       }
23259     ],
23260     "name": "acceptMessage",
23261     "group": "Sms_Accounts",
23262     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23263     "version": "0.0.0",
23264     "filename": "server/api/smsMessage/index.js",
23265     "groupTitle": "Sms_Accounts"
23266   },
23267   {
23268     "type": "post",
23269     "url": "/api/sms/accounts/{id}/canned_answers",
23270     "title": "Creates new canned answer",
23271     "examples": [
23272       {
23273         "title": "Example usage:",
23274         "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",
23275         "type": "json"
23276       }
23277     ],
23278     "name": "addAnswer",
23279     "group": "Sms_Accounts",
23280     "parameter": {
23281       "fields": {
23282         "Body": [
23283           {
23284             "group": "Body",
23285             "type": "String",
23286             "optional": false,
23287             "field": "key",
23288             "description": ""
23289           },
23290           {
23291             "group": "Body",
23292             "type": "Text",
23293             "optional": false,
23294             "field": "value",
23295             "description": ""
23296           },
23297           {
23298             "group": "Body",
23299             "type": "String",
23300             "optional": true,
23301             "field": "description",
23302             "description": ""
23303           },
23304           {
23305             "group": "Body",
23306             "type": "Virtual",
23307             "optional": true,
23308             "field": "name",
23309             "description": ""
23310           }
23311         ]
23312       }
23313     },
23314     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23315     "version": "0.0.0",
23316     "filename": "server/api/smsAccount/index.js",
23317     "groupTitle": "Sms_Accounts"
23318   },
23319   {
23320     "type": "post",
23321     "url": "/api/sms/accounts/{id}/applications",
23322     "title": "Creates new applications",
23323     "examples": [
23324       {
23325         "title": "Example usage:",
23326         "content": "curl https://{domain}/api/sms/accounts/{id}/applications -d '[{\"app\": \"queue\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
23327         "type": "json"
23328       }
23329     ],
23330     "name": "addApplications",
23331     "group": "Sms_Accounts",
23332     "parameter": {
23333       "fields": {
23334         "Body": [
23335           {
23336             "group": "Body",
23337             "type": "Integer",
23338             "optional": false,
23339             "field": "priority",
23340             "description": ""
23341           },
23342           {
23343             "group": "Body",
23344             "type": "String",
23345             "optional": false,
23346             "field": "app",
23347             "description": ""
23348           },
23349           {
23350             "group": "Body",
23351             "type": "Text",
23352             "optional": true,
23353             "field": "appdata",
23354             "description": ""
23355           },
23356           {
23357             "group": "Body",
23358             "type": "String",
23359             "optional": true,
23360             "field": "description",
23361             "description": ""
23362           },
23363           {
23364             "group": "Body",
23365             "type": "String",
23366             "optional": true,
23367             "field": "interval",
23368             "description": ""
23369           }
23370         ]
23371       }
23372     },
23373     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23374     "version": "0.0.0",
23375     "filename": "server/api/smsAccount/index.js",
23376     "groupTitle": "Sms_Accounts"
23377   },
23378   {
23379     "type": "post",
23380     "url": "/api/sms/accounts/{id}/dispositions",
23381     "title": "Creates new disposition",
23382     "examples": [
23383       {
23384         "title": "Example usage:",
23385         "content": "curl https://{domain}/api/sms/accounts/{id}/dispositions -d '{\"name\": \"vip\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
23386         "type": "json"
23387       }
23388     ],
23389     "name": "addDisposition",
23390     "group": "Sms_Accounts",
23391     "parameter": {
23392       "fields": {
23393         "Body": [
23394           {
23395             "group": "Body",
23396             "type": "String",
23397             "optional": false,
23398             "field": "name",
23399             "description": ""
23400           },
23401           {
23402             "group": "Body",
23403             "type": "String",
23404             "allowedValues": [
23405               "\"first\"",
23406               "\"second\"",
23407               "\"third\""
23408             ],
23409             "optional": false,
23410             "field": "level",
23411             "description": ""
23412           },
23413           {
23414             "group": "Body",
23415             "type": "String",
23416             "optional": true,
23417             "field": "description",
23418             "description": ""
23419           }
23420         ]
23421       }
23422     },
23423     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23424     "version": "0.0.0",
23425     "filename": "server/api/smsAccount/index.js",
23426     "groupTitle": "Sms_Accounts"
23427   },
23428   {
23429     "type": "get",
23430     "url": "/api/sms/accounts/{id}/canned_answers",
23431     "title": "Gets account canned answers",
23432     "examples": [
23433       {
23434         "title": "Example usage:",
23435         "content": "curl https://{domain}/api/sms/accounts/{id}/canned_answers -v -u {name}:{password} -X GET",
23436         "type": "json"
23437       }
23438     ],
23439     "name": "getAnswers",
23440     "group": "Sms_Accounts",
23441     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23442     "version": "0.0.0",
23443     "filename": "server/api/smsAccount/index.js",
23444     "groupTitle": "Sms_Accounts"
23445   },
23446   {
23447     "type": "get",
23448     "url": "/api/sms/accounts/{id}/applications",
23449     "title": "Gets account applications",
23450     "examples": [
23451       {
23452         "title": "Example usage:",
23453         "content": "curl https://{domain}/api/sms/accounts/{id}/applications -v -u {name}:{password} -X GET",
23454         "type": "json"
23455       }
23456     ],
23457     "name": "getApplications",
23458     "group": "Sms_Accounts",
23459     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23460     "version": "0.0.0",
23461     "filename": "server/api/smsAccount/index.js",
23462     "groupTitle": "Sms_Accounts"
23463   },
23464   {
23465     "type": "get",
23466     "url": "/api/sms/accounts/{id}/dispositions",
23467     "title": "Gets account dispositions",
23468     "examples": [
23469       {
23470         "title": "Example usage:",
23471         "content": "curl https://{domain}/api/sms/accounts/{id}/dispositions -v -u {name}:{password} -X GET",
23472         "type": "json"
23473       }
23474     ],
23475     "name": "getDispositions",
23476     "group": "Sms_Accounts",
23477     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23478     "version": "0.0.0",
23479     "filename": "server/api/smsAccount/index.js",
23480     "groupTitle": "Sms_Accounts"
23481   },
23482   {
23483     "type": "get",
23484     "url": "/api/sms/accounts/{id}/interactions",
23485     "title": "Gets Sms Account interactions",
23486     "examples": [
23487       {
23488         "title": "Example usage:",
23489         "content": "curl https://{domain}/api/sms/accounts/{id}/interactions -v -u {name}:{password} -X GET",
23490         "type": "json"
23491       }
23492     ],
23493     "name": "getInteractions",
23494     "group": "Sms_Accounts",
23495     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23496     "version": "0.0.0",
23497     "filename": "server/api/smsAccount/index.js",
23498     "groupTitle": "Sms_Accounts"
23499   },
23500   {
23501     "type": "post",
23502     "url": "/api/sms/accounts/{id}/notify",
23503     "title": "Notify new message",
23504     "examples": [
23505       {
23506         "title": "Example usage:",
23507         "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",
23508         "type": "json"
23509       }
23510     ],
23511     "name": "notify",
23512     "group": "Sms_Accounts",
23513     "description": "<p>Motion 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>",
23514     "version": "0.0.0",
23515     "filename": "server/api/smsAccount/index.js",
23516     "groupTitle": "Sms_Accounts"
23517   },
23518   {
23519     "type": "put",
23520     "url": "/api/sms/messages/{id}/reject",
23521     "title": "Rejects message",
23522     "examples": [
23523       {
23524         "title": "Example usage:",
23525         "content": "curl https://{domain}/api/sms/messages/{id}/reject \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
23526         "type": "json"
23527       }
23528     ],
23529     "name": "rejectMessage",
23530     "group": "Sms_Accounts",
23531     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23532     "version": "0.0.0",
23533     "filename": "server/api/smsMessage/index.js",
23534     "groupTitle": "Sms_Accounts"
23535   },
23536   {
23537     "type": "post",
23538     "url": "/api/sms/accounts/{id}/send",
23539     "title": "Send new sms message",
23540     "examples": [
23541       {
23542         "title": "Example usage:",
23543         "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",
23544         "type": "json"
23545       }
23546     ],
23547     "name": "sendSms",
23548     "group": "Sms_Accounts",
23549     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23550     "version": "0.0.0",
23551     "filename": "server/api/smsAccount/index.js",
23552     "groupTitle": "Sms_Accounts"
23553   },
23554   {
23555     "type": "post",
23556     "url": "/api/sms/messages/{id}/status",
23557     "title": "Receive message status",
23558     "examples": [
23559       {
23560         "title": "Example usage:",
23561         "content": "curl https://{domain}/api/sms/messages/{id}/status \\ \n -H 'Content-Type: application/json' -v -X POST",
23562         "type": "json"
23563       }
23564     ],
23565     "name": "statusMessage",
23566     "group": "Sms_Accounts",
23567     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23568     "version": "0.0.0",
23569     "filename": "server/api/smsMessage/index.js",
23570     "groupTitle": "Sms_Accounts"
23571   },
23572   {
23573     "type": "post",
23574     "url": "/api/sms/accounts/{id}/status",
23575     "title": "Receive message status",
23576     "examples": [
23577       {
23578         "title": "Example usage:",
23579         "content": "curl https://{domain}/api/sms/accounts/{id}/status -H 'Content-Type: application/json' -v -X POST",
23580         "type": "json"
23581       }
23582     ],
23583     "name": "statusMessage",
23584     "group": "Sms_Accounts",
23585     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23586     "version": "0.0.0",
23587     "filename": "server/api/smsAccount/index.js",
23588     "groupTitle": "Sms_Accounts"
23589   },
23590   {
23591     "type": "get",
23592     "url": "/api/sms/accounts/{id}/status",
23593     "title": "Receive message status as get request",
23594     "examples": [
23595       {
23596         "title": "Example usage:",
23597         "content": "curl https://{domain}/api/sms/accounts/{id}/status -H 'Content-Type: application/json' -v -X GET",
23598         "type": "json"
23599       }
23600     ],
23601     "name": "statusMessage",
23602     "group": "Sms_Accounts",
23603     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23604     "version": "0.0.0",
23605     "filename": "server/api/smsAccount/index.js",
23606     "groupTitle": "Sms_Accounts"
23607   },
23608   {
23609     "type": "put",
23610     "url": "/api/sms/accounts/{id}",
23611     "title": "Update an existing Account",
23612     "examples": [
23613       {
23614         "title": "Example usage:",
23615         "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",
23616         "type": "json"
23617       }
23618     ],
23619     "name": "updateAccounts",
23620     "group": "Sms_Accounts",
23621     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23622     "version": "0.0.0",
23623     "filename": "server/api/smsAccount/index.js",
23624     "groupTitle": "Sms_Accounts"
23625   },
23626   {
23627     "type": "post",
23628     "url": "/api/sms/applications",
23629     "title": "Creates a new Application",
23630     "examples": [
23631       {
23632         "title": "Example usage:",
23633         "content": "curl https://{domain}/api/sms/applications -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
23634         "type": "json"
23635       }
23636     ],
23637     "name": "CreateApplications",
23638     "group": "Sms_Applications",
23639     "parameter": {
23640       "fields": {
23641         "Body": [
23642           {
23643             "group": "Body",
23644             "type": "Integer",
23645             "optional": false,
23646             "field": "priority",
23647             "description": ""
23648           },
23649           {
23650             "group": "Body",
23651             "type": "String",
23652             "optional": false,
23653             "field": "app",
23654             "description": ""
23655           },
23656           {
23657             "group": "Body",
23658             "type": "Text",
23659             "optional": true,
23660             "field": "appdata",
23661             "description": ""
23662           },
23663           {
23664             "group": "Body",
23665             "type": "String",
23666             "optional": true,
23667             "field": "description",
23668             "description": ""
23669           },
23670           {
23671             "group": "Body",
23672             "type": "String",
23673             "optional": true,
23674             "field": "interval",
23675             "description": ""
23676           }
23677         ]
23678       }
23679     },
23680     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23681     "version": "0.0.0",
23682     "filename": "server/api/smsApplication/index.js",
23683     "groupTitle": "Sms_Applications"
23684   },
23685   {
23686     "type": "delete",
23687     "url": "/api/sms/applications/{id}",
23688     "title": "Deletes a Application",
23689     "examples": [
23690       {
23691         "title": "Example usage:",
23692         "content": "curl https://{domain}/api/sms/applications/{id} -v -u {name}:{password} -X DELETE",
23693         "type": "json"
23694       }
23695     ],
23696     "name": "DeleteApplications",
23697     "group": "Sms_Applications",
23698     "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>",
23699     "version": "0.0.0",
23700     "filename": "server/api/smsApplication/index.js",
23701     "groupTitle": "Sms_Applications"
23702   },
23703   {
23704     "type": "get",
23705     "url": "/api/sms/applications",
23706     "title": "Gets a list of Applications",
23707     "examples": [
23708       {
23709         "title": "Example usage:",
23710         "content": "curl https://{domain}/api/sms/applications -v -u {name}:{password}",
23711         "type": "json"
23712       }
23713     ],
23714     "name": "GetApplications",
23715     "group": "Sms_Applications",
23716     "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>",
23717     "version": "0.0.0",
23718     "filename": "server/api/smsApplication/index.js",
23719     "groupTitle": "Sms_Applications"
23720   },
23721   {
23722     "type": "get",
23723     "url": "/api/sms/applications/{id}",
23724     "title": "Gets a single Application",
23725     "examples": [
23726       {
23727         "title": "Example usage:",
23728         "content": "curl https://{domain}/api/sms/applications/{id} -v -u {name}:{password}",
23729         "type": "json"
23730       }
23731     ],
23732     "name": "ShowApplications",
23733     "group": "Sms_Applications",
23734     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23735     "version": "0.0.0",
23736     "filename": "server/api/smsApplication/index.js",
23737     "groupTitle": "Sms_Applications"
23738   },
23739   {
23740     "type": "put",
23741     "url": "/api/sms/applications/{id}",
23742     "title": "Update an existing Application",
23743     "examples": [
23744       {
23745         "title": "Example usage:",
23746         "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",
23747         "type": "json"
23748       }
23749     ],
23750     "name": "updateApplications",
23751     "group": "Sms_Applications",
23752     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23753     "version": "0.0.0",
23754     "filename": "server/api/smsApplication/index.js",
23755     "groupTitle": "Sms_Applications"
23756   },
23757   {
23758     "type": "post",
23759     "url": "/api/sms/interactions/{id}/tags",
23760     "title": "Add tags to the interaction",
23761     "examples": [
23762       {
23763         "title": "Example usage:",
23764         "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",
23765         "type": "json"
23766       }
23767     ],
23768     "name": "AddTags",
23769     "group": "Sms_Interactions",
23770     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23771     "version": "0.0.0",
23772     "filename": "server/api/smsInteraction/index.js",
23773     "groupTitle": "Sms_Interactions"
23774   },
23775   {
23776     "type": "post",
23777     "url": "/api/sms/interactions",
23778     "title": "Creates a new Interaction",
23779     "examples": [
23780       {
23781         "title": "Example usage:",
23782         "content": "curl https://{domain}/api/sms/interactions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
23783         "type": "json"
23784       }
23785     ],
23786     "name": "CreateInteractions",
23787     "group": "Sms_Interactions",
23788     "parameter": {
23789       "fields": {
23790         "Body": [
23791           {
23792             "group": "Body",
23793             "type": "Boolean",
23794             "optional": true,
23795             "field": "closed",
23796             "description": ""
23797           },
23798           {
23799             "group": "Body",
23800             "type": "String",
23801             "optional": true,
23802             "field": "closedAt",
23803             "description": ""
23804           },
23805           {
23806             "group": "Body",
23807             "type": "String",
23808             "optional": true,
23809             "field": "disposition",
23810             "description": ""
23811           },
23812           {
23813             "group": "Body",
23814             "type": "String",
23815             "optional": true,
23816             "field": "secondDisposition",
23817             "description": ""
23818           },
23819           {
23820             "group": "Body",
23821             "type": "String",
23822             "optional": true,
23823             "field": "thirdDisposition",
23824             "description": ""
23825           },
23826           {
23827             "group": "Body",
23828             "type": "String",
23829             "optional": true,
23830             "field": "note",
23831             "description": ""
23832           },
23833           {
23834             "group": "Body",
23835             "type": "String",
23836             "optional": true,
23837             "field": "phone",
23838             "description": ""
23839           },
23840           {
23841             "group": "Body",
23842             "type": "String",
23843             "optional": true,
23844             "field": "read1stAt",
23845             "description": ""
23846           },
23847           {
23848             "group": "Body",
23849             "type": "String",
23850             "allowedValues": [
23851               "\"in\"",
23852               "\"out\""
23853             ],
23854             "optional": false,
23855             "field": "firstMsgDirection",
23856             "description": ""
23857           },
23858           {
23859             "group": "Body",
23860             "type": "String",
23861             "optional": true,
23862             "field": "lastMsgAt",
23863             "description": ""
23864           },
23865           {
23866             "group": "Body",
23867             "type": "String",
23868             "allowedValues": [
23869               "\"in\"",
23870               "\"out\""
23871             ],
23872             "optional": false,
23873             "field": "lastMsgDirection",
23874             "description": ""
23875           },
23876           {
23877             "group": "Body",
23878             "type": "Boolean",
23879             "optional": true,
23880             "field": "autoreplyExecuted",
23881             "description": ""
23882           }
23883         ]
23884       }
23885     },
23886     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23887     "version": "0.0.0",
23888     "filename": "server/api/smsInteraction/index.js",
23889     "groupTitle": "Sms_Interactions"
23890   },
23891   {
23892     "type": "delete",
23893     "url": "/api/sms/interactions/{id}",
23894     "title": "Deletes a Interaction",
23895     "examples": [
23896       {
23897         "title": "Example usage:",
23898         "content": "curl https://{domain}/api/sms/interactions/{id} -v -u {name}:{password} -X DELETE",
23899         "type": "json"
23900       }
23901     ],
23902     "name": "DeleteInteractions",
23903     "group": "Sms_Interactions",
23904     "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>",
23905     "version": "0.0.0",
23906     "filename": "server/api/smsInteraction/index.js",
23907     "groupTitle": "Sms_Interactions"
23908   },
23909   {
23910     "type": "get",
23911     "url": "/api/sms/interactions/describe",
23912     "title": "Gets table info about Interactions",
23913     "examples": [
23914       {
23915         "title": "Example usage:",
23916         "content": "curl https://{domain}/api/sms/interactions/describe -v -u {name}:{password}",
23917         "type": "json"
23918       }
23919     ],
23920     "name": "DescribeInteractions",
23921     "group": "Sms_Interactions",
23922     "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>",
23923     "version": "0.0.0",
23924     "filename": "server/api/smsInteraction/index.js",
23925     "groupTitle": "Sms_Interactions"
23926   },
23927   {
23928     "type": "get",
23929     "url": "/api/sms/interactions",
23930     "title": "Gets a list of Interactions",
23931     "examples": [
23932       {
23933         "title": "Example usage:",
23934         "content": "curl https://{domain}/api/sms/interactions -v -u {name}:{password}",
23935         "type": "json"
23936       }
23937     ],
23938     "name": "GetInteractions",
23939     "group": "Sms_Interactions",
23940     "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>",
23941     "version": "0.0.0",
23942     "filename": "server/api/smsInteraction/index.js",
23943     "groupTitle": "Sms_Interactions"
23944   },
23945   {
23946     "type": "delete",
23947     "url": "/api/sms/interactions/{id}/tags",
23948     "title": "Removes tags from interaction",
23949     "examples": [
23950       {
23951         "title": "Example usage:",
23952         "content": "curl https://{domain}/api/sms/interactions/{id}/tags?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
23953         "type": "json"
23954       }
23955     ],
23956     "name": "RemoveTags",
23957     "group": "Sms_Interactions",
23958     "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>",
23959     "version": "0.0.0",
23960     "filename": "server/api/smsInteraction/index.js",
23961     "groupTitle": "Sms_Interactions"
23962   },
23963   {
23964     "type": "get",
23965     "url": "/api/sms/interactions/{id}",
23966     "title": "Gets a single Interaction",
23967     "examples": [
23968       {
23969         "title": "Example usage:",
23970         "content": "curl https://{domain}/api/sms/interactions/{id} -v -u {name}:{password}",
23971         "type": "json"
23972       }
23973     ],
23974     "name": "ShowInteractions",
23975     "group": "Sms_Interactions",
23976     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23977     "version": "0.0.0",
23978     "filename": "server/api/smsInteraction/index.js",
23979     "groupTitle": "Sms_Interactions"
23980   },
23981   {
23982     "type": "post",
23983     "url": "/api/sms/interactions/{id}/messages",
23984     "title": "Creates new messages",
23985     "examples": [
23986       {
23987         "title": "Example usage:",
23988         "content": "curl https://{domain}/api/sms/interactions/{id}/messages -d '[{\"to\": \"+3901119886500\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
23989         "type": "json"
23990       }
23991     ],
23992     "name": "addMessage",
23993     "group": "Sms_Interactions",
23994     "parameter": {
23995       "fields": {
23996         "Body": [
23997           {
23998             "group": "Body",
23999             "type": "Text",
24000             "optional": false,
24001             "field": "body",
24002             "description": ""
24003           },
24004           {
24005             "group": "Body",
24006             "type": "Boolean",
24007             "optional": true,
24008             "field": "read",
24009             "description": ""
24010           },
24011           {
24012             "group": "Body",
24013             "type": "String",
24014             "allowedValues": [
24015               "\"in\"",
24016               "\"out\""
24017             ],
24018             "optional": false,
24019             "field": "direction",
24020             "description": ""
24021           },
24022           {
24023             "group": "Body",
24024             "type": "String",
24025             "optional": true,
24026             "field": "messageId",
24027             "description": ""
24028           },
24029           {
24030             "group": "Body",
24031             "type": "String",
24032             "optional": true,
24033             "field": "phone",
24034             "description": ""
24035           },
24036           {
24037             "group": "Body",
24038             "type": "String",
24039             "optional": true,
24040             "field": "readAt",
24041             "description": ""
24042           },
24043           {
24044             "group": "Body",
24045             "type": "Boolean",
24046             "optional": true,
24047             "field": "secret",
24048             "description": ""
24049           },
24050           {
24051             "group": "Body",
24052             "type": "String",
24053             "optional": true,
24054             "field": "providerName",
24055             "description": ""
24056           },
24057           {
24058             "group": "Body",
24059             "type": "Text",
24060             "optional": true,
24061             "field": "providerResponse",
24062             "description": ""
24063           }
24064         ]
24065       }
24066     },
24067     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24068     "version": "0.0.0",
24069     "filename": "server/api/smsInteraction/index.js",
24070     "groupTitle": "Sms_Interactions"
24071   },
24072   {
24073     "type": "get",
24074     "url": "/api/sms/interactions/{id}/download",
24075     "title": "Gets interaction",
24076     "examples": [
24077       {
24078         "title": "Example usage:",
24079         "content": "curl https://{domain}/api/sms/interactions/{id}/download -v -u {name}:{password} -X GET",
24080         "type": "json"
24081       }
24082     ],
24083     "name": "download",
24084     "group": "Sms_Interactions",
24085     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24086     "version": "0.0.0",
24087     "filename": "server/api/smsInteraction/index.js",
24088     "groupTitle": "Sms_Interactions"
24089   },
24090   {
24091     "type": "get",
24092     "url": "/api/sms/interactions/{id}/messages",
24093     "title": "Gets interaction messages",
24094     "examples": [
24095       {
24096         "title": "Example usage:",
24097         "content": "curl https://{domain}/api/sms/interactions/{id}/messages -v -u {name}:{password} -X GET",
24098         "type": "json"
24099       }
24100     ],
24101     "name": "getMessages",
24102     "group": "Sms_Interactions",
24103     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24104     "version": "0.0.0",
24105     "filename": "server/api/smsInteraction/index.js",
24106     "groupTitle": "Sms_Interactions"
24107   },
24108   {
24109     "type": "put",
24110     "url": "/api/sms/interactions/{id}",
24111     "title": "Update an existing Interaction",
24112     "examples": [
24113       {
24114         "title": "Example usage:",
24115         "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",
24116         "type": "json"
24117       }
24118     ],
24119     "name": "updateInteractions",
24120     "group": "Sms_Interactions",
24121     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24122     "version": "0.0.0",
24123     "filename": "server/api/smsInteraction/index.js",
24124     "groupTitle": "Sms_Interactions"
24125   },
24126   {
24127     "type": "post",
24128     "url": "/api/sms/messages",
24129     "title": "Creates a new Message",
24130     "examples": [
24131       {
24132         "title": "Example usage:",
24133         "content": "curl https://{domain}/api/sms/messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
24134         "type": "json"
24135       }
24136     ],
24137     "name": "CreateMessages",
24138     "group": "Sms_Messages",
24139     "parameter": {
24140       "fields": {
24141         "Body": [
24142           {
24143             "group": "Body",
24144             "type": "Text",
24145             "optional": false,
24146             "field": "body",
24147             "description": ""
24148           },
24149           {
24150             "group": "Body",
24151             "type": "Boolean",
24152             "optional": true,
24153             "field": "read",
24154             "description": ""
24155           },
24156           {
24157             "group": "Body",
24158             "type": "String",
24159             "allowedValues": [
24160               "\"in\"",
24161               "\"out\""
24162             ],
24163             "optional": false,
24164             "field": "direction",
24165             "description": ""
24166           },
24167           {
24168             "group": "Body",
24169             "type": "String",
24170             "optional": true,
24171             "field": "messageId",
24172             "description": ""
24173           },
24174           {
24175             "group": "Body",
24176             "type": "String",
24177             "optional": true,
24178             "field": "phone",
24179             "description": ""
24180           },
24181           {
24182             "group": "Body",
24183             "type": "String",
24184             "optional": true,
24185             "field": "readAt",
24186             "description": ""
24187           },
24188           {
24189             "group": "Body",
24190             "type": "Boolean",
24191             "optional": true,
24192             "field": "secret",
24193             "description": ""
24194           },
24195           {
24196             "group": "Body",
24197             "type": "String",
24198             "optional": true,
24199             "field": "providerName",
24200             "description": ""
24201           },
24202           {
24203             "group": "Body",
24204             "type": "Text",
24205             "optional": true,
24206             "field": "providerResponse",
24207             "description": ""
24208           }
24209         ]
24210       }
24211     },
24212     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24213     "version": "0.0.0",
24214     "filename": "server/api/smsMessage/index.js",
24215     "groupTitle": "Sms_Messages"
24216   },
24217   {
24218     "type": "delete",
24219     "url": "/api/sms/messages/{id}",
24220     "title": "Deletes a Message",
24221     "examples": [
24222       {
24223         "title": "Example usage:",
24224         "content": "curl https://{domain}/api/sms/messages/{id} -v -u {name}:{password} -X DELETE",
24225         "type": "json"
24226       }
24227     ],
24228     "name": "DeleteMessages",
24229     "group": "Sms_Messages",
24230     "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>",
24231     "version": "0.0.0",
24232     "filename": "server/api/smsMessage/index.js",
24233     "groupTitle": "Sms_Messages"
24234   },
24235   {
24236     "type": "get",
24237     "url": "/api/sms/messages/describe",
24238     "title": "Gets table info about Messages",
24239     "examples": [
24240       {
24241         "title": "Example usage:",
24242         "content": "curl https://{domain}/api/sms/messages/describe -v -u {name}:{password}",
24243         "type": "json"
24244       }
24245     ],
24246     "name": "DescribeMessages",
24247     "group": "Sms_Messages",
24248     "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>",
24249     "version": "0.0.0",
24250     "filename": "server/api/smsMessage/index.js",
24251     "groupTitle": "Sms_Messages"
24252   },
24253   {
24254     "type": "get",
24255     "url": "/api/sms/messages",
24256     "title": "Gets a list of Messages",
24257     "examples": [
24258       {
24259         "title": "Example usage:",
24260         "content": "curl https://{domain}/api/sms/messages -v -u {name}:{password}",
24261         "type": "json"
24262       }
24263     ],
24264     "name": "GetMessages",
24265     "group": "Sms_Messages",
24266     "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>",
24267     "version": "0.0.0",
24268     "filename": "server/api/smsMessage/index.js",
24269     "groupTitle": "Sms_Messages"
24270   },
24271   {
24272     "type": "get",
24273     "url": "/api/sms/messages/{id}",
24274     "title": "Gets a single Message",
24275     "examples": [
24276       {
24277         "title": "Example usage:",
24278         "content": "curl https://{domain}/api/sms/messages/{id} -v -u {name}:{password}",
24279         "type": "json"
24280       }
24281     ],
24282     "name": "ShowMessages",
24283     "group": "Sms_Messages",
24284     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24285     "version": "0.0.0",
24286     "filename": "server/api/smsMessage/index.js",
24287     "groupTitle": "Sms_Messages"
24288   },
24289   {
24290     "type": "put",
24291     "url": "/api/sms/messages/{id}",
24292     "title": "Update an existing Message",
24293     "examples": [
24294       {
24295         "title": "Example usage:",
24296         "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",
24297         "type": "json"
24298       }
24299     ],
24300     "name": "updateMessages",
24301     "group": "Sms_Messages",
24302     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24303     "version": "0.0.0",
24304     "filename": "server/api/smsMessage/index.js",
24305     "groupTitle": "Sms_Messages"
24306   },
24307   {
24308     "type": "post",
24309     "url": "/api/sms/reports/queue",
24310     "title": "Creates a new Sms Queue Report",
24311     "examples": [
24312       {
24313         "title": "Example usage:",
24314         "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",
24315         "type": "json"
24316       }
24317     ],
24318     "name": "CreateSms_Queue_Reports",
24319     "group": "Sms_Queue_Reports",
24320     "parameter": {
24321       "fields": {
24322         "Body": [
24323           {
24324             "group": "Body",
24325             "type": "String",
24326             "optional": false,
24327             "field": "uniqueid",
24328             "description": ""
24329           },
24330           {
24331             "group": "Body",
24332             "type": "String",
24333             "optional": true,
24334             "field": "from",
24335             "description": ""
24336           },
24337           {
24338             "group": "Body",
24339             "type": "String",
24340             "optional": true,
24341             "field": "joinAt",
24342             "description": ""
24343           },
24344           {
24345             "group": "Body",
24346             "type": "String",
24347             "optional": true,
24348             "field": "leaveAt",
24349             "description": ""
24350           },
24351           {
24352             "group": "Body",
24353             "type": "String",
24354             "optional": true,
24355             "field": "acceptAt",
24356             "description": ""
24357           },
24358           {
24359             "group": "Body",
24360             "type": "String",
24361             "optional": true,
24362             "field": "exitAt",
24363             "description": ""
24364           },
24365           {
24366             "group": "Body",
24367             "type": "String",
24368             "optional": true,
24369             "field": "reason",
24370             "description": ""
24371           }
24372         ]
24373       }
24374     },
24375     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24376     "version": "0.0.0",
24377     "filename": "server/api/smsQueueReport/index.js",
24378     "groupTitle": "Sms_Queue_Reports"
24379   },
24380   {
24381     "type": "delete",
24382     "url": "/api/sms/reports/queue/{id}",
24383     "title": "Deletes a Sms Queue Report",
24384     "examples": [
24385       {
24386         "title": "Example usage:",
24387         "content": "curl https://{domain}/api/sms/reports/queue/{id} -v -u {name}:{password} -X DELETE",
24388         "type": "json"
24389       }
24390     ],
24391     "name": "DeleteSms_Queue_Reports",
24392     "group": "Sms_Queue_Reports",
24393     "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>",
24394     "version": "0.0.0",
24395     "filename": "server/api/smsQueueReport/index.js",
24396     "groupTitle": "Sms_Queue_Reports"
24397   },
24398   {
24399     "type": "get",
24400     "url": "/api/sms/reports/queue/describe",
24401     "title": "Gets table info about Sms Queue Reports",
24402     "examples": [
24403       {
24404         "title": "Example usage:",
24405         "content": "curl https://{domain}/api/sms/reports/queue/describe -v -u {name}:{password}",
24406         "type": "json"
24407       }
24408     ],
24409     "name": "DescribeSms_Queue_Reports",
24410     "group": "Sms_Queue_Reports",
24411     "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>",
24412     "version": "0.0.0",
24413     "filename": "server/api/smsQueueReport/index.js",
24414     "groupTitle": "Sms_Queue_Reports"
24415   },
24416   {
24417     "type": "get",
24418     "url": "/api/sms/reports/queue",
24419     "title": "Gets a list of Sms Queue Reports",
24420     "examples": [
24421       {
24422         "title": "Example usage:",
24423         "content": "curl https://{domain}/api/sms/reports/queue -v -u {name}:{password}",
24424         "type": "json"
24425       }
24426     ],
24427     "name": "GetSms_Queue_Reports",
24428     "group": "Sms_Queue_Reports",
24429     "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>",
24430     "version": "0.0.0",
24431     "filename": "server/api/smsQueueReport/index.js",
24432     "groupTitle": "Sms_Queue_Reports"
24433   },
24434   {
24435     "type": "get",
24436     "url": "/api/sms/reports/queue/{id}",
24437     "title": "Gets a single Sms Queue Report",
24438     "examples": [
24439       {
24440         "title": "Example usage:",
24441         "content": "curl https://{domain}/api/sms/reports/queue/{id} -v -u {name}:{password}",
24442         "type": "json"
24443       }
24444     ],
24445     "name": "ShowSms_Queue_Reports",
24446     "group": "Sms_Queue_Reports",
24447     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24448     "version": "0.0.0",
24449     "filename": "server/api/smsQueueReport/index.js",
24450     "groupTitle": "Sms_Queue_Reports"
24451   },
24452   {
24453     "type": "put",
24454     "url": "/api/sms/reports/queue/{id}",
24455     "title": "Update an existing Sms Queue Report",
24456     "examples": [
24457       {
24458         "title": "Example usage:",
24459         "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",
24460         "type": "json"
24461       }
24462     ],
24463     "name": "updateSms_Queue_Reports",
24464     "group": "Sms_Queue_Reports",
24465     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24466     "version": "0.0.0",
24467     "filename": "server/api/smsQueueReport/index.js",
24468     "groupTitle": "Sms_Queue_Reports"
24469   },
24470   {
24471     "type": "post",
24472     "url": "/api/sms/queues/{id}/users",
24473     "title": "Add agents to a queue",
24474     "examples": [
24475       {
24476         "title": "Example usage:",
24477         "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",
24478         "type": "json"
24479       }
24480     ],
24481     "name": "AddAgents",
24482     "group": "Sms_Queues",
24483     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24484     "version": "0.0.0",
24485     "filename": "server/api/smsQueue/index.js",
24486     "groupTitle": "Sms_Queues"
24487   },
24488   {
24489     "type": "post",
24490     "url": "/api/sms/queues/{id}/teams",
24491     "title": "Add teams to a queue",
24492     "examples": [
24493       {
24494         "title": "Example usage:",
24495         "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",
24496         "type": "json"
24497       }
24498     ],
24499     "name": "AddTeams",
24500     "group": "Sms_Queues",
24501     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24502     "version": "0.0.0",
24503     "filename": "server/api/smsQueue/index.js",
24504     "groupTitle": "Sms_Queues"
24505   },
24506   {
24507     "type": "post",
24508     "url": "/api/sms/queues",
24509     "title": "Creates a new Queue",
24510     "examples": [
24511       {
24512         "title": "Example usage:",
24513         "content": "curl https://{domain}/api/sms/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
24514         "type": "json"
24515       }
24516     ],
24517     "name": "CreateQueues",
24518     "group": "Sms_Queues",
24519     "parameter": {
24520       "fields": {
24521         "Body": [
24522           {
24523             "group": "Body",
24524             "type": "String",
24525             "optional": true,
24526             "field": "name",
24527             "description": ""
24528           },
24529           {
24530             "group": "Body",
24531             "type": "String",
24532             "optional": true,
24533             "field": "description",
24534             "description": ""
24535           },
24536           {
24537             "group": "Body",
24538             "type": "Integer",
24539             "optional": true,
24540             "field": "timeout",
24541             "description": ""
24542           },
24543           {
24544             "group": "Body",
24545             "type": "String",
24546             "allowedValues": [
24547               "\"rrmemory\"",
24548               "\"beepall\"",
24549               "\"roundrobin\""
24550             ],
24551             "optional": true,
24552             "field": "strategy",
24553             "description": ""
24554           }
24555         ]
24556       }
24557     },
24558     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24559     "version": "0.0.0",
24560     "filename": "server/api/smsQueue/index.js",
24561     "groupTitle": "Sms_Queues"
24562   },
24563   {
24564     "type": "delete",
24565     "url": "/api/sms/queues/{id}",
24566     "title": "Deletes a Queue",
24567     "examples": [
24568       {
24569         "title": "Example usage:",
24570         "content": "curl https://{domain}/api/sms/queues/{id} -v -u {name}:{password} -X DELETE",
24571         "type": "json"
24572       }
24573     ],
24574     "name": "DeleteQueues",
24575     "group": "Sms_Queues",
24576     "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>",
24577     "version": "0.0.0",
24578     "filename": "server/api/smsQueue/index.js",
24579     "groupTitle": "Sms_Queues"
24580   },
24581   {
24582     "type": "get",
24583     "url": "/api/sms/queues/describe",
24584     "title": "Gets table info about Queues",
24585     "examples": [
24586       {
24587         "title": "Example usage:",
24588         "content": "curl https://{domain}/api/sms/queues/describe -v -u {name}:{password}",
24589         "type": "json"
24590       }
24591     ],
24592     "name": "DescribeQueues",
24593     "group": "Sms_Queues",
24594     "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>",
24595     "version": "0.0.0",
24596     "filename": "server/api/smsQueue/index.js",
24597     "groupTitle": "Sms_Queues"
24598   },
24599   {
24600     "type": "get",
24601     "url": "/api/sms/queues/{id}/users",
24602     "title": "Gets queue agents",
24603     "examples": [
24604       {
24605         "title": "Example usage:",
24606         "content": "curl https://{domain}/api/sms/queues/{id}/users -v -u {name}:{password} -X POST",
24607         "type": "json"
24608       }
24609     ],
24610     "name": "GetAgents",
24611     "group": "Sms_Queues",
24612     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24613     "version": "0.0.0",
24614     "filename": "server/api/smsQueue/index.js",
24615     "groupTitle": "Sms_Queues"
24616   },
24617   {
24618     "type": "get",
24619     "url": "/api/sms/queues/{id}/members",
24620     "title": "GetMembers",
24621     "examples": [
24622       {
24623         "title": "Example usage:",
24624         "content": "curl https://{domain}/api/sms/queues/{id}/members  -v -u {name}:{password}",
24625         "type": "json"
24626       }
24627     ],
24628     "name": "GetMembers",
24629     "group": "Sms_Queues",
24630     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24631     "version": "0.0.0",
24632     "filename": "server/api/smsQueue/index.js",
24633     "groupTitle": "Sms_Queues"
24634   },
24635   {
24636     "type": "get",
24637     "url": "/api/sms/queues",
24638     "title": "Gets a list of Queues",
24639     "examples": [
24640       {
24641         "title": "Example usage:",
24642         "content": "curl https://{domain}/api/sms/queues -v -u {name}:{password}",
24643         "type": "json"
24644       }
24645     ],
24646     "name": "GetQueues",
24647     "group": "Sms_Queues",
24648     "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>",
24649     "version": "0.0.0",
24650     "filename": "server/api/smsQueue/index.js",
24651     "groupTitle": "Sms_Queues"
24652   },
24653   {
24654     "type": "get",
24655     "url": "/api/sms/queues/{id}/teams",
24656     "title": "Gets queues list",
24657     "examples": [
24658       {
24659         "title": "Example usage:",
24660         "content": "curl https://{domain}/api/sms/queues/{id}/teams -v -u {name}:{password}",
24661         "type": "json"
24662       }
24663     ],
24664     "name": "GetTeams",
24665     "group": "Sms_Queues",
24666     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24667     "version": "0.0.0",
24668     "filename": "server/api/smsQueue/index.js",
24669     "groupTitle": "Sms_Queues"
24670   },
24671   {
24672     "type": "delete",
24673     "url": "/api/sms/queues/{id}/users",
24674     "title": "Removes agents from a queue",
24675     "examples": [
24676       {
24677         "title": "Example usage:",
24678         "content": "curl https://{domain}/api/sms/queues/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
24679         "type": "json"
24680       }
24681     ],
24682     "name": "RemoveAgents",
24683     "group": "Sms_Queues",
24684     "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>",
24685     "version": "0.0.0",
24686     "filename": "server/api/smsQueue/index.js",
24687     "groupTitle": "Sms_Queues"
24688   },
24689   {
24690     "type": "get",
24691     "url": "/api/sms/queues/{id}",
24692     "title": "Gets a single Queue",
24693     "examples": [
24694       {
24695         "title": "Example usage:",
24696         "content": "curl https://{domain}/api/sms/queues/{id} -v -u {name}:{password}",
24697         "type": "json"
24698       }
24699     ],
24700     "name": "ShowQueues",
24701     "group": "Sms_Queues",
24702     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24703     "version": "0.0.0",
24704     "filename": "server/api/smsQueue/index.js",
24705     "groupTitle": "Sms_Queues"
24706   },
24707   {
24708     "type": "put",
24709     "url": "/api/sms/queues/{id}",
24710     "title": "Update an existing Queue",
24711     "examples": [
24712       {
24713         "title": "Example usage:",
24714         "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",
24715         "type": "json"
24716       }
24717     ],
24718     "name": "updateQueues",
24719     "group": "Sms_Queues",
24720     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24721     "version": "0.0.0",
24722     "filename": "server/api/smsQueue/index.js",
24723     "groupTitle": "Sms_Queues"
24724   },
24725   {
24726     "type": "post",
24727     "url": "/api/sms/reports/transfer",
24728     "title": "Creates a new Sms Transfer Report",
24729     "examples": [
24730       {
24731         "title": "Example usage:",
24732         "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",
24733         "type": "json"
24734       }
24735     ],
24736     "name": "CreateSms_Transfer_Reports",
24737     "group": "Sms_Transfer_Reports",
24738     "parameter": {
24739       "fields": {
24740         "Body": [
24741           {
24742             "group": "Body",
24743             "type": "String",
24744             "optional": false,
24745             "field": "uniqueid",
24746             "description": ""
24747           },
24748           {
24749             "group": "Body",
24750             "type": "String",
24751             "allowedValues": [
24752               "\"account\"",
24753               "\"agent\"",
24754               "\"queue\""
24755             ],
24756             "optional": false,
24757             "field": "type",
24758             "description": ""
24759           },
24760           {
24761             "group": "Body",
24762             "type": "String",
24763             "optional": false,
24764             "field": "transferredAt",
24765             "description": ""
24766           }
24767         ]
24768       }
24769     },
24770     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24771     "version": "0.0.0",
24772     "filename": "server/api/smsTransferReport/index.js",
24773     "groupTitle": "Sms_Transfer_Reports"
24774   },
24775   {
24776     "type": "delete",
24777     "url": "/api/sms/reports/transfer/{id}",
24778     "title": "Deletes a Sms Transfer Report",
24779     "examples": [
24780       {
24781         "title": "Example usage:",
24782         "content": "curl https://{domain}/api/sms/reports/transfer/{id} -v -u {name}:{password} -X DELETE",
24783         "type": "json"
24784       }
24785     ],
24786     "name": "DeleteSms_Transfer_Reports",
24787     "group": "Sms_Transfer_Reports",
24788     "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>",
24789     "version": "0.0.0",
24790     "filename": "server/api/smsTransferReport/index.js",
24791     "groupTitle": "Sms_Transfer_Reports"
24792   },
24793   {
24794     "type": "get",
24795     "url": "/api/sms/reports/transfer/describe",
24796     "title": "Gets table info about Sms Transfer Reports",
24797     "examples": [
24798       {
24799         "title": "Example usage:",
24800         "content": "curl https://{domain}/api/sms/reports/transfer/describe -v -u {name}:{password}",
24801         "type": "json"
24802       }
24803     ],
24804     "name": "DescribeSms_Transfer_Reports",
24805     "group": "Sms_Transfer_Reports",
24806     "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>",
24807     "version": "0.0.0",
24808     "filename": "server/api/smsTransferReport/index.js",
24809     "groupTitle": "Sms_Transfer_Reports"
24810   },
24811   {
24812     "type": "get",
24813     "url": "/api/sms/reports/transfer",
24814     "title": "Gets a list of Sms Transfer Reports",
24815     "examples": [
24816       {
24817         "title": "Example usage:",
24818         "content": "curl https://{domain}/api/sms/reports/transfer -v -u {name}:{password}",
24819         "type": "json"
24820       }
24821     ],
24822     "name": "GetSms_Transfer_Reports",
24823     "group": "Sms_Transfer_Reports",
24824     "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>",
24825     "version": "0.0.0",
24826     "filename": "server/api/smsTransferReport/index.js",
24827     "groupTitle": "Sms_Transfer_Reports"
24828   },
24829   {
24830     "type": "get",
24831     "url": "/api/sms/reports/transfer/{id}",
24832     "title": "Gets a single Sms Transfer Report",
24833     "examples": [
24834       {
24835         "title": "Example usage:",
24836         "content": "curl https://{domain}/api/sms/reports/transfer/{id} -v -u {name}:{password}",
24837         "type": "json"
24838       }
24839     ],
24840     "name": "ShowSms_Transfer_Reports",
24841     "group": "Sms_Transfer_Reports",
24842     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24843     "version": "0.0.0",
24844     "filename": "server/api/smsTransferReport/index.js",
24845     "groupTitle": "Sms_Transfer_Reports"
24846   },
24847   {
24848     "type": "put",
24849     "url": "/api/sms/reports/transfer/{id}",
24850     "title": "Update an existing Sms Transfer Report",
24851     "examples": [
24852       {
24853         "title": "Example usage:",
24854         "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",
24855         "type": "json"
24856       }
24857     ],
24858     "name": "updateSms_Transfer_Reports",
24859     "group": "Sms_Transfer_Reports",
24860     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24861     "version": "0.0.0",
24862     "filename": "server/api/smsTransferReport/index.js",
24863     "groupTitle": "Sms_Transfer_Reports"
24864   },
24865   {
24866     "type": "get",
24867     "url": "/api/sounds",
24868     "title": "Gets a list of Sounds",
24869     "examples": [
24870       {
24871         "title": "Example usage:",
24872         "content": "curl https://{domain}/api/sounds -v -u {name}:{password}",
24873         "type": "json"
24874       }
24875     ],
24876     "name": "GetSounds",
24877     "group": "Sounds",
24878     "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>",
24879     "version": "0.0.0",
24880     "filename": "server/api/sound/index.js",
24881     "groupTitle": "Sounds"
24882   },
24883   {
24884     "type": "get",
24885     "url": "/api/sounds/{id}",
24886     "title": "Gets a single Sound",
24887     "examples": [
24888       {
24889         "title": "Example usage:",
24890         "content": "curl https://{domain}/api/sounds/{id} -v -u {name}:{password}",
24891         "type": "json"
24892       }
24893     ],
24894     "name": "ShowSounds",
24895     "group": "Sounds",
24896     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24897     "version": "0.0.0",
24898     "filename": "server/api/sound/index.js",
24899     "groupTitle": "Sounds"
24900   },
24901   {
24902     "type": "post",
24903     "url": "/api/sounds",
24904     "title": "Create a new sound",
24905     "examples": [
24906       {
24907         "title": "Example usage:",
24908         "content": "curl https://{domain}/api/sounds -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
24909         "type": "json"
24910       }
24911     ],
24912     "name": "addSound",
24913     "group": "Sounds",
24914     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24915     "version": "0.0.0",
24916     "filename": "server/api/sound/index.js",
24917     "groupTitle": "Sounds"
24918   },
24919   {
24920     "type": "delete",
24921     "url": "/api/sounds/{id}",
24922     "title": "Deletes a sound",
24923     "examples": [
24924       {
24925         "title": "Example usage:",
24926         "content": "curl https://{domain}/api/sounds/{id} -v -u {name}:{password} -X DELETE",
24927         "type": "json"
24928       }
24929     ],
24930     "name": "destroySound",
24931     "group": "Sounds",
24932     "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>",
24933     "version": "0.0.0",
24934     "filename": "server/api/sound/index.js",
24935     "groupTitle": "Sounds"
24936   },
24937   {
24938     "type": "get",
24939     "url": "/api/sounds/{id}/download",
24940     "title": "Download Sound",
24941     "examples": [
24942       {
24943         "title": "Example usage:",
24944         "content": "curl https://{domain}/api/sounds/{id}/download -v -u {name}:{password} -X GET",
24945         "type": "json"
24946       }
24947     ],
24948     "name": "download",
24949     "group": "Sounds",
24950     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24951     "version": "0.0.0",
24952     "filename": "server/api/sound/index.js",
24953     "groupTitle": "Sounds"
24954   },
24955   {
24956     "type": "put",
24957     "url": "/api/sounds",
24958     "title": "Update an existing new sound",
24959     "examples": [
24960       {
24961         "title": "Example usage:",
24962         "content": "curl https://{domain}/api/sounds -d '[\"name\": \"sound_name\", \"description\": \"sound_desc\"]' -v -u {name}:{password} -X PUT",
24963         "type": "json"
24964       }
24965     ],
24966     "name": "updateSound",
24967     "group": "Sounds",
24968     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24969     "version": "0.0.0",
24970     "filename": "server/api/sound/index.js",
24971     "groupTitle": "Sounds"
24972   },
24973   {
24974     "type": "post",
24975     "url": "/api/square/details/reports",
24976     "title": "Creates a new Square Detail Report",
24977     "examples": [
24978       {
24979         "title": "Example usage:",
24980         "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",
24981         "type": "json"
24982       }
24983     ],
24984     "name": "CreateSquare_Detail_Reports",
24985     "group": "Square_Details_Reports",
24986     "parameter": {
24987       "fields": {
24988         "Body": [
24989           {
24990             "group": "Body",
24991             "type": "String",
24992             "optional": true,
24993             "field": "uniqueid",
24994             "description": ""
24995           },
24996           {
24997             "group": "Body",
24998             "type": "String",
24999             "optional": true,
25000             "field": "node",
25001             "description": ""
25002           },
25003           {
25004             "group": "Body",
25005             "type": "String",
25006             "optional": true,
25007             "field": "application",
25008             "description": ""
25009           },
25010           {
25011             "group": "Body",
25012             "type": "Text",
25013             "optional": true,
25014             "field": "data",
25015             "description": ""
25016           },
25017           {
25018             "group": "Body",
25019             "type": "String",
25020             "optional": true,
25021             "field": "project_name",
25022             "description": ""
25023           },
25024           {
25025             "group": "Body",
25026             "type": "String",
25027             "optional": true,
25028             "field": "callerid",
25029             "description": ""
25030           }
25031         ]
25032       }
25033     },
25034     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25035     "version": "0.0.0",
25036     "filename": "server/api/squareReportDetail/index.js",
25037     "groupTitle": "Square_Details_Reports"
25038   },
25039   {
25040     "type": "delete",
25041     "url": "/api/square/details/reports/{id}",
25042     "title": "Deletes a Square Detail Report",
25043     "examples": [
25044       {
25045         "title": "Example usage:",
25046         "content": "curl https://{domain}/api/square/details/reports/{id} -v -u {name}:{password} -X DELETE",
25047         "type": "json"
25048       }
25049     ],
25050     "name": "DeleteSquare_Detail_Reports",
25051     "group": "Square_Details_Reports",
25052     "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>",
25053     "version": "0.0.0",
25054     "filename": "server/api/squareReportDetail/index.js",
25055     "groupTitle": "Square_Details_Reports"
25056   },
25057   {
25058     "type": "get",
25059     "url": "/api/square/details/reports/describe",
25060     "title": "Gets table info about Square Detail Reports",
25061     "examples": [
25062       {
25063         "title": "Example usage:",
25064         "content": "curl https://{domain}/api/square/details/reports/describe -v -u {name}:{password}",
25065         "type": "json"
25066       }
25067     ],
25068     "name": "DescribeSquare_Detail_Reports",
25069     "group": "Square_Details_Reports",
25070     "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>",
25071     "version": "0.0.0",
25072     "filename": "server/api/squareReportDetail/index.js",
25073     "groupTitle": "Square_Details_Reports"
25074   },
25075   {
25076     "type": "get",
25077     "url": "/api/square/details/reports",
25078     "title": "Gets a list of Square Detail Reports",
25079     "examples": [
25080       {
25081         "title": "Example usage:",
25082         "content": "curl https://{domain}/api/square/details/reports -v -u {name}:{password}",
25083         "type": "json"
25084       }
25085     ],
25086     "name": "GetSquare_Detail_Reports",
25087     "group": "Square_Details_Reports",
25088     "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>",
25089     "version": "0.0.0",
25090     "filename": "server/api/squareReportDetail/index.js",
25091     "groupTitle": "Square_Details_Reports"
25092   },
25093   {
25094     "type": "get",
25095     "url": "/api/square/details/reports/{id}",
25096     "title": "Gets a single Square Detail Report",
25097     "examples": [
25098       {
25099         "title": "Example usage:",
25100         "content": "curl https://{domain}/api/square/details/reports/{id} -v -u {name}:{password}",
25101         "type": "json"
25102       }
25103     ],
25104     "name": "ShowSquare_Detail_Reports",
25105     "group": "Square_Details_Reports",
25106     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25107     "version": "0.0.0",
25108     "filename": "server/api/squareReportDetail/index.js",
25109     "groupTitle": "Square_Details_Reports"
25110   },
25111   {
25112     "type": "put",
25113     "url": "/api/square/details/reports/{id}",
25114     "title": "Update an existing Square Detail Report",
25115     "examples": [
25116       {
25117         "title": "Example usage:",
25118         "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",
25119         "type": "json"
25120       }
25121     ],
25122     "name": "updateSquare_Detail_Reports",
25123     "group": "Square_Details_Reports",
25124     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25125     "version": "0.0.0",
25126     "filename": "server/api/squareReportDetail/index.js",
25127     "groupTitle": "Square_Details_Reports"
25128   },
25129   {
25130     "type": "post",
25131     "url": "/api/square/messages",
25132     "title": "Creates a new Message",
25133     "examples": [
25134       {
25135         "title": "Example usage:",
25136         "content": "curl https://{domain}/api/square/messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
25137         "type": "json"
25138       }
25139     ],
25140     "name": "CreateMessages",
25141     "group": "Square_Messages",
25142     "parameter": {
25143       "fields": {
25144         "Body": [
25145           {
25146             "group": "Body",
25147             "type": "String",
25148             "optional": true,
25149             "field": "uniqueid",
25150             "description": ""
25151           },
25152           {
25153             "group": "Body",
25154             "type": "Text",
25155             "optional": false,
25156             "field": "body",
25157             "description": ""
25158           },
25159           {
25160             "group": "Body",
25161             "type": "String",
25162             "allowedValues": [
25163               "\"in\"",
25164               "\"out\""
25165             ],
25166             "optional": false,
25167             "field": "direction",
25168             "description": ""
25169           },
25170           {
25171             "group": "Body",
25172             "type": "String",
25173             "optional": true,
25174             "field": "providerName",
25175             "description": ""
25176           },
25177           {
25178             "group": "Body",
25179             "type": "Text",
25180             "optional": true,
25181             "field": "providerResponse",
25182             "description": ""
25183           }
25184         ]
25185       }
25186     },
25187     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25188     "version": "0.0.0",
25189     "filename": "server/api/squareMessage/index.js",
25190     "groupTitle": "Square_Messages"
25191   },
25192   {
25193     "type": "delete",
25194     "url": "/api/square/messages/{id}",
25195     "title": "Deletes a Message",
25196     "examples": [
25197       {
25198         "title": "Example usage:",
25199         "content": "curl https://{domain}/api/square/messages/{id} -v -u {name}:{password} -X DELETE",
25200         "type": "json"
25201       }
25202     ],
25203     "name": "DeleteMessages",
25204     "group": "Square_Messages",
25205     "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>",
25206     "version": "0.0.0",
25207     "filename": "server/api/squareMessage/index.js",
25208     "groupTitle": "Square_Messages"
25209   },
25210   {
25211     "type": "get",
25212     "url": "/api/square/messages",
25213     "title": "Gets a list of Messages",
25214     "examples": [
25215       {
25216         "title": "Example usage:",
25217         "content": "curl https://{domain}/api/square/messages -v -u {name}:{password}",
25218         "type": "json"
25219       }
25220     ],
25221     "name": "GetMessages",
25222     "group": "Square_Messages",
25223     "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>",
25224     "version": "0.0.0",
25225     "filename": "server/api/squareMessage/index.js",
25226     "groupTitle": "Square_Messages"
25227   },
25228   {
25229     "type": "get",
25230     "url": "/api/square/messages/{id}",
25231     "title": "Gets a single Message",
25232     "examples": [
25233       {
25234         "title": "Example usage:",
25235         "content": "curl https://{domain}/api/square/messages/{id} -v -u {name}:{password}",
25236         "type": "json"
25237       }
25238     ],
25239     "name": "ShowMessages",
25240     "group": "Square_Messages",
25241     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25242     "version": "0.0.0",
25243     "filename": "server/api/squareMessage/index.js",
25244     "groupTitle": "Square_Messages"
25245   },
25246   {
25247     "type": "put",
25248     "url": "/api/square/messages/{id}",
25249     "title": "Update an existing Message",
25250     "examples": [
25251       {
25252         "title": "Example usage:",
25253         "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",
25254         "type": "json"
25255       }
25256     ],
25257     "name": "updateMessages",
25258     "group": "Square_Messages",
25259     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25260     "version": "0.0.0",
25261     "filename": "server/api/squareMessage/index.js",
25262     "groupTitle": "Square_Messages"
25263   },
25264   {
25265     "type": "post",
25266     "url": "/api/square/odbc",
25267     "title": "Creates a new ODBC",
25268     "examples": [
25269       {
25270         "title": "Example usage:",
25271         "content": "curl https://{domain}/api/square/odbc -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
25272         "type": "json"
25273       }
25274     ],
25275     "name": "CreateODBCs",
25276     "group": "Square_ODBC",
25277     "parameter": {
25278       "fields": {
25279         "Body": [
25280           {
25281             "group": "Body",
25282             "type": "String",
25283             "optional": false,
25284             "field": "name",
25285             "description": ""
25286           },
25287           {
25288             "group": "Body",
25289             "type": "String",
25290             "optional": true,
25291             "field": "dsn",
25292             "description": ""
25293           },
25294           {
25295             "group": "Body",
25296             "type": "String",
25297             "optional": true,
25298             "field": "description",
25299             "description": ""
25300           }
25301         ]
25302       }
25303     },
25304     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25305     "version": "0.0.0",
25306     "filename": "server/api/squareOdbc/index.js",
25307     "groupTitle": "Square_ODBC"
25308   },
25309   {
25310     "type": "delete",
25311     "url": "/api/square/odbc/{id}",
25312     "title": "Deletes a ODBC",
25313     "examples": [
25314       {
25315         "title": "Example usage:",
25316         "content": "curl https://{domain}/api/square/odbc/{id} -v -u {name}:{password} -X DELETE",
25317         "type": "json"
25318       }
25319     ],
25320     "name": "DeleteODBCs",
25321     "group": "Square_ODBC",
25322     "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>",
25323     "version": "0.0.0",
25324     "filename": "server/api/squareOdbc/index.js",
25325     "groupTitle": "Square_ODBC"
25326   },
25327   {
25328     "type": "get",
25329     "url": "/api/square/odbc",
25330     "title": "Gets a list of ODBCs",
25331     "examples": [
25332       {
25333         "title": "Example usage:",
25334         "content": "curl https://{domain}/api/square/odbc -v -u {name}:{password}",
25335         "type": "json"
25336       }
25337     ],
25338     "name": "GetODBCs",
25339     "group": "Square_ODBC",
25340     "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>",
25341     "version": "0.0.0",
25342     "filename": "server/api/squareOdbc/index.js",
25343     "groupTitle": "Square_ODBC"
25344   },
25345   {
25346     "type": "get",
25347     "url": "/api/square/odbc/{id}",
25348     "title": "Gets a single ODBC",
25349     "examples": [
25350       {
25351         "title": "Example usage:",
25352         "content": "curl https://{domain}/api/square/odbc/{id} -v -u {name}:{password}",
25353         "type": "json"
25354       }
25355     ],
25356     "name": "ShowODBCs",
25357     "group": "Square_ODBC",
25358     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25359     "version": "0.0.0",
25360     "filename": "server/api/squareOdbc/index.js",
25361     "groupTitle": "Square_ODBC"
25362   },
25363   {
25364     "type": "get",
25365     "url": "/api/square/odbc/{id}/test",
25366     "title": "Test Odbc",
25367     "examples": [
25368       {
25369         "title": "Example usage:",
25370         "content": "curl https://{domain}/api/square/odbc/{id}/test -v -u {name}:{password} -X GET",
25371         "type": "json"
25372       }
25373     ],
25374     "name": "test",
25375     "group": "Square_ODBC",
25376     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25377     "version": "0.0.0",
25378     "filename": "server/api/squareOdbc/index.js",
25379     "groupTitle": "Square_ODBC"
25380   },
25381   {
25382     "type": "put",
25383     "url": "/api/square/odbc/{id}",
25384     "title": "Update an existing ODBC",
25385     "examples": [
25386       {
25387         "title": "Example usage:",
25388         "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",
25389         "type": "json"
25390       }
25391     ],
25392     "name": "updateODBCs",
25393     "group": "Square_ODBC",
25394     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25395     "version": "0.0.0",
25396     "filename": "server/api/squareOdbc/index.js",
25397     "groupTitle": "Square_ODBC"
25398   },
25399   {
25400     "type": "post",
25401     "url": "/api/square/projects",
25402     "title": "Creates a new Project",
25403     "examples": [
25404       {
25405         "title": "Example usage:",
25406         "content": "curl https://{domain}/api/square/projects -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
25407         "type": "json"
25408       }
25409     ],
25410     "name": "CreateProjects",
25411     "group": "Square_Projects",
25412     "parameter": {
25413       "fields": {
25414         "Body": [
25415           {
25416             "group": "Body",
25417             "type": "String",
25418             "optional": false,
25419             "field": "name",
25420             "description": ""
25421           },
25422           {
25423             "group": "Body",
25424             "type": "String",
25425             "optional": true,
25426             "field": "description",
25427             "description": ""
25428           },
25429           {
25430             "group": "Body",
25431             "type": "Text",
25432             "optional": true,
25433             "field": "notes",
25434             "description": ""
25435           },
25436           {
25437             "group": "Body",
25438             "type": "Blob",
25439             "optional": true,
25440             "field": "preproduction",
25441             "description": ""
25442           },
25443           {
25444             "group": "Body",
25445             "type": "Blob",
25446             "optional": true,
25447             "field": "production",
25448             "description": ""
25449           },
25450           {
25451             "group": "Body",
25452             "type": "String",
25453             "optional": true,
25454             "field": "savedAt",
25455             "description": ""
25456           },
25457           {
25458             "group": "Body",
25459             "type": "String",
25460             "optional": true,
25461             "field": "publishedAt",
25462             "description": ""
25463           }
25464         ]
25465       }
25466     },
25467     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25468     "version": "0.0.0",
25469     "filename": "server/api/squareProject/index.js",
25470     "groupTitle": "Square_Projects"
25471   },
25472   {
25473     "type": "delete",
25474     "url": "/api/square/projects/{id}",
25475     "title": "Deletes a Project",
25476     "examples": [
25477       {
25478         "title": "Example usage:",
25479         "content": "curl https://{domain}/api/square/projects/{id} -v -u {name}:{password} -X DELETE",
25480         "type": "json"
25481       }
25482     ],
25483     "name": "DeleteProjects",
25484     "group": "Square_Projects",
25485     "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>",
25486     "version": "0.0.0",
25487     "filename": "server/api/squareProject/index.js",
25488     "groupTitle": "Square_Projects"
25489   },
25490   {
25491     "type": "get",
25492     "url": "/api/square/projects",
25493     "title": "Gets a list of Projects",
25494     "examples": [
25495       {
25496         "title": "Example usage:",
25497         "content": "curl https://{domain}/api/square/projects -v -u {name}:{password}",
25498         "type": "json"
25499       }
25500     ],
25501     "name": "GetProjects",
25502     "group": "Square_Projects",
25503     "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>",
25504     "version": "0.0.0",
25505     "filename": "server/api/squareProject/index.js",
25506     "groupTitle": "Square_Projects"
25507   },
25508   {
25509     "type": "get",
25510     "url": "/api/square/projects/{id}",
25511     "title": "Gets a single Project",
25512     "examples": [
25513       {
25514         "title": "Example usage:",
25515         "content": "curl https://{domain}/api/square/projects/{id} -v -u {name}:{password}",
25516         "type": "json"
25517       }
25518     ],
25519     "name": "ShowProjects",
25520     "group": "Square_Projects",
25521     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25522     "version": "0.0.0",
25523     "filename": "server/api/squareProject/index.js",
25524     "groupTitle": "Square_Projects"
25525   },
25526   {
25527     "type": "post",
25528     "url": "/api/square/projects/{id}/users",
25529     "title": "Adds user permissions to a Project",
25530     "examples": [
25531       {
25532         "title": "Example usage:",
25533         "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",
25534         "type": "json"
25535       }
25536     ],
25537     "name": "addUsers",
25538     "group": "Square_Projects",
25539     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25540     "version": "0.0.0",
25541     "filename": "server/api/squareProject/index.js",
25542     "groupTitle": "Square_Projects"
25543   },
25544   {
25545     "type": "get",
25546     "url": "/api/square/projects/{id}/users",
25547     "title": "Gets users permissions from Project",
25548     "examples": [
25549       {
25550         "title": "Example usage:",
25551         "content": "curl https://{domain}/api/square/projects/{id}/users -v -u {name}:{password} -X GET",
25552         "type": "json"
25553       }
25554     ],
25555     "name": "getUsers",
25556     "group": "Square_Projects",
25557     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25558     "version": "0.0.0",
25559     "filename": "server/api/squareProject/index.js",
25560     "groupTitle": "Square_Projects"
25561   },
25562   {
25563     "type": "delete",
25564     "url": "/api/square/projects/{id}/users",
25565     "title": "Removes user permissions from a Project",
25566     "examples": [
25567       {
25568         "title": "Example usage:",
25569         "content": "curl https://{domain}/api/square/projects/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
25570         "type": "json"
25571       }
25572     ],
25573     "name": "removeUsers",
25574     "group": "Square_Projects",
25575     "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>",
25576     "version": "0.0.0",
25577     "filename": "server/api/squareProject/index.js",
25578     "groupTitle": "Square_Projects"
25579   },
25580   {
25581     "type": "put",
25582     "url": "/api/square/projects/{id}",
25583     "title": "Update an existing Project",
25584     "examples": [
25585       {
25586         "title": "Example usage:",
25587         "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",
25588         "type": "json"
25589       }
25590     ],
25591     "name": "updateProjects",
25592     "group": "Square_Projects",
25593     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25594     "version": "0.0.0",
25595     "filename": "server/api/squareProject/index.js",
25596     "groupTitle": "Square_Projects"
25597   },
25598   {
25599     "type": "post",
25600     "url": "/api/square/recordings",
25601     "title": "Creates a new Recording",
25602     "examples": [
25603       {
25604         "title": "Example usage:",
25605         "content": "curl https://{domain}/api/square/recordings -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
25606         "type": "json"
25607       }
25608     ],
25609     "name": "CreateRecordings",
25610     "group": "Square_Recordings",
25611     "parameter": {
25612       "fields": {
25613         "Body": [
25614           {
25615             "group": "Body",
25616             "type": "String",
25617             "optional": true,
25618             "field": "uniqueid",
25619             "description": ""
25620           },
25621           {
25622             "group": "Body",
25623             "type": "String",
25624             "optional": true,
25625             "field": "callerid",
25626             "description": ""
25627           },
25628           {
25629             "group": "Body",
25630             "type": "String",
25631             "optional": true,
25632             "field": "calleridname",
25633             "description": ""
25634           },
25635           {
25636             "group": "Body",
25637             "type": "String",
25638             "optional": true,
25639             "field": "context",
25640             "description": ""
25641           },
25642           {
25643             "group": "Body",
25644             "type": "String",
25645             "optional": true,
25646             "field": "extension",
25647             "description": ""
25648           },
25649           {
25650             "group": "Body",
25651             "type": "String",
25652             "optional": true,
25653             "field": "priority",
25654             "description": ""
25655           },
25656           {
25657             "group": "Body",
25658             "type": "String",
25659             "optional": true,
25660             "field": "accountcode",
25661             "description": ""
25662           },
25663           {
25664             "group": "Body",
25665             "type": "String",
25666             "optional": true,
25667             "field": "dnid",
25668             "description": ""
25669           },
25670           {
25671             "group": "Body",
25672             "type": "String",
25673             "optional": true,
25674             "field": "projectName",
25675             "description": ""
25676           },
25677           {
25678             "group": "Body",
25679             "type": "String",
25680             "optional": true,
25681             "field": "saveName",
25682             "description": ""
25683           },
25684           {
25685             "group": "Body",
25686             "type": "String",
25687             "optional": true,
25688             "field": "filename",
25689             "description": ""
25690           },
25691           {
25692             "group": "Body",
25693             "type": "String",
25694             "optional": true,
25695             "field": "savePath",
25696             "description": ""
25697           },
25698           {
25699             "group": "Body",
25700             "type": "Virtual",
25701             "optional": true,
25702             "field": "format",
25703             "description": ""
25704           }
25705         ]
25706       }
25707     },
25708     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25709     "version": "0.0.0",
25710     "filename": "server/api/squareRecording/index.js",
25711     "groupTitle": "Square_Recordings"
25712   },
25713   {
25714     "type": "get",
25715     "url": "/api/square/recordings",
25716     "title": "Gets a list of Recordings",
25717     "examples": [
25718       {
25719         "title": "Example usage:",
25720         "content": "curl https://{domain}/api/square/recordings -v -u {name}:{password}",
25721         "type": "json"
25722       }
25723     ],
25724     "name": "GetRecordings",
25725     "group": "Square_Recordings",
25726     "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>",
25727     "version": "0.0.0",
25728     "filename": "server/api/squareRecording/index.js",
25729     "groupTitle": "Square_Recordings"
25730   },
25731   {
25732     "type": "get",
25733     "url": "/api/square/recordings/{id}",
25734     "title": "Gets a single Recording",
25735     "examples": [
25736       {
25737         "title": "Example usage:",
25738         "content": "curl https://{domain}/api/square/recordings/{id} -v -u {name}:{password}",
25739         "type": "json"
25740       }
25741     ],
25742     "name": "ShowRecordings",
25743     "group": "Square_Recordings",
25744     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25745     "version": "0.0.0",
25746     "filename": "server/api/squareRecording/index.js",
25747     "groupTitle": "Square_Recordings"
25748   },
25749   {
25750     "type": "delete",
25751     "url": "/api/square/recordings/{id}",
25752     "title": "Delete recording",
25753     "examples": [
25754       {
25755         "title": "Example usage:",
25756         "content": "curl https://{domain}/api/square/recordings/{id} -v -u {name}:{password} -X DELETE",
25757         "type": "json"
25758       }
25759     ],
25760     "name": "destroy",
25761     "group": "Square_Recordings",
25762     "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>",
25763     "version": "0.0.0",
25764     "filename": "server/api/squareRecording/index.js",
25765     "groupTitle": "Square_Recordings"
25766   },
25767   {
25768     "type": "get",
25769     "url": "/api/square/recordings/{id}/download",
25770     "title": "Download Recording",
25771     "examples": [
25772       {
25773         "title": "Example usage:",
25774         "content": "curl https://{domain}/api/square/recordings/{id}/download -v -u {name}:{password} -X GET",
25775         "type": "json"
25776       }
25777     ],
25778     "name": "download",
25779     "group": "Square_Recordings",
25780     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25781     "version": "0.0.0",
25782     "filename": "server/api/squareRecording/index.js",
25783     "groupTitle": "Square_Recordings"
25784   },
25785   {
25786     "type": "put",
25787     "url": "/api/square/recordings/{id}",
25788     "title": "Update an existing Recording",
25789     "examples": [
25790       {
25791         "title": "Example usage:",
25792         "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",
25793         "type": "json"
25794       }
25795     ],
25796     "name": "updateRecordings",
25797     "group": "Square_Recordings",
25798     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25799     "version": "0.0.0",
25800     "filename": "server/api/squareRecording/index.js",
25801     "groupTitle": "Square_Recordings"
25802   },
25803   {
25804     "type": "post",
25805     "url": "/api/square/reports",
25806     "title": "Creates a new Square Report",
25807     "examples": [
25808       {
25809         "title": "Example usage:",
25810         "content": "curl https://{domain}/api/square/reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
25811         "type": "json"
25812       }
25813     ],
25814     "name": "CreateSquare_Reports",
25815     "group": "Square_Reports",
25816     "parameter": {
25817       "fields": {
25818         "Body": [
25819           {
25820             "group": "Body",
25821             "type": "String",
25822             "optional": true,
25823             "field": "network",
25824             "description": ""
25825           },
25826           {
25827             "group": "Body",
25828             "type": "String",
25829             "optional": true,
25830             "field": "network_script",
25831             "description": ""
25832           },
25833           {
25834             "group": "Body",
25835             "type": "String",
25836             "optional": true,
25837             "field": "request",
25838             "description": ""
25839           },
25840           {
25841             "group": "Body",
25842             "type": "String",
25843             "optional": true,
25844             "field": "channel",
25845             "description": ""
25846           },
25847           {
25848             "group": "Body",
25849             "type": "String",
25850             "optional": true,
25851             "field": "language",
25852             "description": ""
25853           },
25854           {
25855             "group": "Body",
25856             "type": "String",
25857             "optional": true,
25858             "field": "type",
25859             "description": ""
25860           },
25861           {
25862             "group": "Body",
25863             "type": "String",
25864             "optional": true,
25865             "field": "uniqueid",
25866             "description": ""
25867           },
25868           {
25869             "group": "Body",
25870             "type": "String",
25871             "optional": true,
25872             "field": "version",
25873             "description": ""
25874           },
25875           {
25876             "group": "Body",
25877             "type": "String",
25878             "optional": true,
25879             "field": "callerid",
25880             "description": ""
25881           },
25882           {
25883             "group": "Body",
25884             "type": "String",
25885             "optional": true,
25886             "field": "calleridname",
25887             "description": ""
25888           },
25889           {
25890             "group": "Body",
25891             "type": "String",
25892             "optional": true,
25893             "field": "callingpres",
25894             "description": ""
25895           },
25896           {
25897             "group": "Body",
25898             "type": "String",
25899             "optional": true,
25900             "field": "callingani2",
25901             "description": ""
25902           },
25903           {
25904             "group": "Body",
25905             "type": "String",
25906             "optional": true,
25907             "field": "callington",
25908             "description": ""
25909           },
25910           {
25911             "group": "Body",
25912             "type": "String",
25913             "optional": true,
25914             "field": "callingtns",
25915             "description": ""
25916           },
25917           {
25918             "group": "Body",
25919             "type": "String",
25920             "optional": true,
25921             "field": "dnid",
25922             "description": ""
25923           },
25924           {
25925             "group": "Body",
25926             "type": "String",
25927             "optional": true,
25928             "field": "rdnis",
25929             "description": ""
25930           },
25931           {
25932             "group": "Body",
25933             "type": "String",
25934             "optional": true,
25935             "field": "context",
25936             "description": ""
25937           },
25938           {
25939             "group": "Body",
25940             "type": "String",
25941             "optional": true,
25942             "field": "extension",
25943             "description": ""
25944           },
25945           {
25946             "group": "Body",
25947             "type": "String",
25948             "optional": true,
25949             "field": "priority",
25950             "description": ""
25951           },
25952           {
25953             "group": "Body",
25954             "type": "String",
25955             "optional": true,
25956             "field": "enhanced",
25957             "description": ""
25958           },
25959           {
25960             "group": "Body",
25961             "type": "String",
25962             "optional": true,
25963             "field": "accountcode",
25964             "description": ""
25965           },
25966           {
25967             "group": "Body",
25968             "type": "String",
25969             "optional": true,
25970             "field": "threadid",
25971             "description": ""
25972           },
25973           {
25974             "group": "Body",
25975             "type": "String",
25976             "optional": true,
25977             "field": "project_name",
25978             "description": ""
25979           },
25980           {
25981             "group": "Body",
25982             "type": "String",
25983             "optional": true,
25984             "field": "joinAt",
25985             "description": ""
25986           },
25987           {
25988             "group": "Body",
25989             "type": "String",
25990             "optional": true,
25991             "field": "leaveAt",
25992             "description": ""
25993           },
25994           {
25995             "group": "Body",
25996             "type": "Boolean",
25997             "optional": true,
25998             "field": "bot",
25999             "description": ""
26000           }
26001         ]
26002       }
26003     },
26004     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26005     "version": "0.0.0",
26006     "filename": "server/api/squareReport/index.js",
26007     "groupTitle": "Square_Reports"
26008   },
26009   {
26010     "type": "delete",
26011     "url": "/api/square/reports/{id}",
26012     "title": "Deletes a Square Report",
26013     "examples": [
26014       {
26015         "title": "Example usage:",
26016         "content": "curl https://{domain}/api/square/reports/{id} -v -u {name}:{password} -X DELETE",
26017         "type": "json"
26018       }
26019     ],
26020     "name": "DeleteSquare_Reports",
26021     "group": "Square_Reports",
26022     "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>",
26023     "version": "0.0.0",
26024     "filename": "server/api/squareReport/index.js",
26025     "groupTitle": "Square_Reports"
26026   },
26027   {
26028     "type": "get",
26029     "url": "/api/square/reports/describe",
26030     "title": "Gets table info about Square Reports",
26031     "examples": [
26032       {
26033         "title": "Example usage:",
26034         "content": "curl https://{domain}/api/square/reports/describe -v -u {name}:{password}",
26035         "type": "json"
26036       }
26037     ],
26038     "name": "DescribeSquare_Reports",
26039     "group": "Square_Reports",
26040     "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>",
26041     "version": "0.0.0",
26042     "filename": "server/api/squareReport/index.js",
26043     "groupTitle": "Square_Reports"
26044   },
26045   {
26046     "type": "get",
26047     "url": "/api/square/reports",
26048     "title": "Gets a list of Square Reports",
26049     "examples": [
26050       {
26051         "title": "Example usage:",
26052         "content": "curl https://{domain}/api/square/reports -v -u {name}:{password}",
26053         "type": "json"
26054       }
26055     ],
26056     "name": "GetSquare_Reports",
26057     "group": "Square_Reports",
26058     "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>",
26059     "version": "0.0.0",
26060     "filename": "server/api/squareReport/index.js",
26061     "groupTitle": "Square_Reports"
26062   },
26063   {
26064     "type": "get",
26065     "url": "/api/square/reports/{id}",
26066     "title": "Gets a single Square Report",
26067     "examples": [
26068       {
26069         "title": "Example usage:",
26070         "content": "curl https://{domain}/api/square/reports/{id} -v -u {name}:{password}",
26071         "type": "json"
26072       }
26073     ],
26074     "name": "ShowSquare_Reports",
26075     "group": "Square_Reports",
26076     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26077     "version": "0.0.0",
26078     "filename": "server/api/squareReport/index.js",
26079     "groupTitle": "Square_Reports"
26080   },
26081   {
26082     "type": "put",
26083     "url": "/api/square/reports/{id}",
26084     "title": "Update an existing Square Report",
26085     "examples": [
26086       {
26087         "title": "Example usage:",
26088         "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",
26089         "type": "json"
26090       }
26091     ],
26092     "name": "updateSquare_Reports",
26093     "group": "Square_Reports",
26094     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26095     "version": "0.0.0",
26096     "filename": "server/api/squareReport/index.js",
26097     "groupTitle": "Square_Reports"
26098   },
26099   {
26100     "type": "post",
26101     "url": "/api/integrations/sugarcrm/configurations",
26102     "title": "Creates a new SugarCRM Configuration",
26103     "examples": [
26104       {
26105         "title": "Example usage:",
26106         "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",
26107         "type": "json"
26108       }
26109     ],
26110     "name": "CreateSugarCRM_Configurations",
26111     "group": "SugarCRM_Configurations",
26112     "parameter": {
26113       "fields": {
26114         "Body": [
26115           {
26116             "group": "Body",
26117             "type": "String",
26118             "optional": true,
26119             "field": "name",
26120             "description": ""
26121           },
26122           {
26123             "group": "Body",
26124             "type": "String",
26125             "optional": true,
26126             "field": "description",
26127             "description": ""
26128           }
26129         ]
26130       }
26131     },
26132     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26133     "version": "0.0.0",
26134     "filename": "server/api/intSugarcrmConfiguration/index.js",
26135     "groupTitle": "SugarCRM_Configurations"
26136   },
26137   {
26138     "type": "delete",
26139     "url": "/api/integrations/sugarcrm/configurations/{id}",
26140     "title": "Deletes a SugarCRM Configuration",
26141     "examples": [
26142       {
26143         "title": "Example usage:",
26144         "content": "curl https://{domain}/api/integrations/sugarcrm/configurations/{id} -v -u {name}:{password} -X DELETE",
26145         "type": "json"
26146       }
26147     ],
26148     "name": "DeleteSugarCRM_Configurations",
26149     "group": "SugarCRM_Configurations",
26150     "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>",
26151     "version": "0.0.0",
26152     "filename": "server/api/intSugarcrmConfiguration/index.js",
26153     "groupTitle": "SugarCRM_Configurations"
26154   },
26155   {
26156     "type": "get",
26157     "url": "/api/integrations/sugarcrm/configurations",
26158     "title": "Gets a list of SugarCRM Configurations",
26159     "examples": [
26160       {
26161         "title": "Example usage:",
26162         "content": "curl https://{domain}/api/integrations/sugarcrm/configurations -v -u {name}:{password}",
26163         "type": "json"
26164       }
26165     ],
26166     "name": "GetSugarCRM_Configurations",
26167     "group": "SugarCRM_Configurations",
26168     "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>",
26169     "version": "0.0.0",
26170     "filename": "server/api/intSugarcrmConfiguration/index.js",
26171     "groupTitle": "SugarCRM_Configurations"
26172   },
26173   {
26174     "type": "get",
26175     "url": "/api/integrations/sugarcrm/configurations/{id}",
26176     "title": "Gets a single SugarCRM Configuration",
26177     "examples": [
26178       {
26179         "title": "Example usage:",
26180         "content": "curl https://{domain}/api/integrations/sugarcrm/configurations/{id} -v -u {name}:{password}",
26181         "type": "json"
26182       }
26183     ],
26184     "name": "ShowSugarCRM_Configurations",
26185     "group": "SugarCRM_Configurations",
26186     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26187     "version": "0.0.0",
26188     "filename": "server/api/intSugarcrmConfiguration/index.js",
26189     "groupTitle": "SugarCRM_Configurations"
26190   },
26191   {
26192     "type": "put",
26193     "url": "/api/integrations/sugarcrm/configurations/{id}",
26194     "title": "Update an existing SugarCRM Configuration",
26195     "examples": [
26196       {
26197         "title": "Example usage:",
26198         "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",
26199         "type": "json"
26200       }
26201     ],
26202     "name": "updateSugarCRM_Configurations",
26203     "group": "SugarCRM_Configurations",
26204     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26205     "version": "0.0.0",
26206     "filename": "server/api/intSugarcrmConfiguration/index.js",
26207     "groupTitle": "SugarCRM_Configurations"
26208   },
26209   {
26210     "type": "post",
26211     "url": "/api/integrations/sugarcrm/accounts",
26212     "title": "Creates a new Sugarcrm Account",
26213     "examples": [
26214       {
26215         "title": "Example usage:",
26216         "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",
26217         "type": "json"
26218       }
26219     ],
26220     "name": "CreateSugarcrm_Accounts",
26221     "group": "Sugarcrm_Accounts",
26222     "parameter": {
26223       "fields": {
26224         "Body": [
26225           {
26226             "group": "Body",
26227             "type": "String",
26228             "optional": true,
26229             "field": "name",
26230             "description": ""
26231           },
26232           {
26233             "group": "Body",
26234             "type": "String",
26235             "optional": true,
26236             "field": "description",
26237             "description": ""
26238           },
26239           {
26240             "group": "Body",
26241             "type": "String",
26242             "optional": true,
26243             "field": "username",
26244             "description": ""
26245           },
26246           {
26247             "group": "Body",
26248             "type": "String",
26249             "optional": true,
26250             "field": "password",
26251             "description": ""
26252           },
26253           {
26254             "group": "Body",
26255             "type": "String",
26256             "optional": true,
26257             "field": "remoteUri",
26258             "description": ""
26259           },
26260           {
26261             "group": "Body",
26262             "type": "String",
26263             "optional": false,
26264             "field": "serverUrl",
26265             "description": ""
26266           }
26267         ]
26268       }
26269     },
26270     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26271     "version": "0.0.0",
26272     "filename": "server/api/intSugarcrmAccount/index.js",
26273     "groupTitle": "Sugarcrm_Accounts"
26274   },
26275   {
26276     "type": "delete",
26277     "url": "/api/integrations/sugarcrm/accounts/{id}",
26278     "title": "Deletes a Sugarcrm Account",
26279     "examples": [
26280       {
26281         "title": "Example usage:",
26282         "content": "curl https://{domain}/api/integrations/sugarcrm/accounts/{id} -v -u {name}:{password} -X DELETE",
26283         "type": "json"
26284       }
26285     ],
26286     "name": "DeleteSugarcrm_Accounts",
26287     "group": "Sugarcrm_Accounts",
26288     "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>",
26289     "version": "0.0.0",
26290     "filename": "server/api/intSugarcrmAccount/index.js",
26291     "groupTitle": "Sugarcrm_Accounts"
26292   },
26293   {
26294     "type": "get",
26295     "url": "/api/integrations/sugarcrm/accounts",
26296     "title": "Gets a list of Sugarcrm Accounts",
26297     "examples": [
26298       {
26299         "title": "Example usage:",
26300         "content": "curl https://{domain}/api/integrations/sugarcrm/accounts -v -u {name}:{password}",
26301         "type": "json"
26302       }
26303     ],
26304     "name": "GetSugarcrm_Accounts",
26305     "group": "Sugarcrm_Accounts",
26306     "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>",
26307     "version": "0.0.0",
26308     "filename": "server/api/intSugarcrmAccount/index.js",
26309     "groupTitle": "Sugarcrm_Accounts"
26310   },
26311   {
26312     "type": "get",
26313     "url": "/api/integrations/sugarcrm/accounts/{id}",
26314     "title": "Gets a single Sugarcrm Account",
26315     "examples": [
26316       {
26317         "title": "Example usage:",
26318         "content": "curl https://{domain}/api/integrations/sugarcrm/accounts/{id} -v -u {name}:{password}",
26319         "type": "json"
26320       }
26321     ],
26322     "name": "ShowSugarcrm_Accounts",
26323     "group": "Sugarcrm_Accounts",
26324     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26325     "version": "0.0.0",
26326     "filename": "server/api/intSugarcrmAccount/index.js",
26327     "groupTitle": "Sugarcrm_Accounts"
26328   },
26329   {
26330     "type": "post",
26331     "url": "/api/integrations/sugarcrm/accounts/{id}/configurations",
26332     "title": "Creates new configuration",
26333     "examples": [
26334       {
26335         "title": "Example usage:",
26336         "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",
26337         "type": "json"
26338       }
26339     ],
26340     "name": "addConfiguration",
26341     "group": "Sugarcrm_Accounts",
26342     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26343     "version": "0.0.0",
26344     "filename": "server/api/intSugarcrmAccount/index.js",
26345     "groupTitle": "Sugarcrm_Accounts"
26346   },
26347   {
26348     "type": "get",
26349     "url": "/api/integrations/sugarcrm/accounts/{id}/configurations",
26350     "title": "Gets account configurations",
26351     "examples": [
26352       {
26353         "title": "Example usage:",
26354         "content": "curl https://{domain}/api/integrations/sugarcrm/accounts/{id}/configurations -v -u {name}:{password} -X GET",
26355         "type": "json"
26356       }
26357     ],
26358     "name": "getConfigurations",
26359     "group": "Sugarcrm_Accounts",
26360     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26361     "version": "0.0.0",
26362     "filename": "server/api/intSugarcrmAccount/index.js",
26363     "groupTitle": "Sugarcrm_Accounts"
26364   },
26365   {
26366     "type": "get",
26367     "url": "/api/integrations/sugarcrm/accounts/{id}/fields",
26368     "title": "Gets account fields",
26369     "examples": [
26370       {
26371         "title": "Example usage:",
26372         "content": "curl https://{domain}/api/integrations/sugarcrm/accounts/{id}/fields -v -u {name}:{password} -X GET",
26373         "type": "json"
26374       }
26375     ],
26376     "name": "getFields",
26377     "group": "Sugarcrm_Accounts",
26378     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26379     "version": "0.0.0",
26380     "filename": "server/api/intSugarcrmAccount/index.js",
26381     "groupTitle": "Sugarcrm_Accounts"
26382   },
26383   {
26384     "type": "put",
26385     "url": "/api/integrations/sugarcrm/accounts/{id}",
26386     "title": "Update an existing Sugarcrm Account",
26387     "examples": [
26388       {
26389         "title": "Example usage:",
26390         "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",
26391         "type": "json"
26392       }
26393     ],
26394     "name": "updateSugarcrm_Accounts",
26395     "group": "Sugarcrm_Accounts",
26396     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26397     "version": "0.0.0",
26398     "filename": "server/api/intSugarcrmAccount/index.js",
26399     "groupTitle": "Sugarcrm_Accounts"
26400   },
26401   {
26402     "type": "get",
26403     "url": "/api/integrations/sugarcrm/configurations/{id}/descriptions",
26404     "title": "Gets configurations descriptions",
26405     "examples": [
26406       {
26407         "title": "Example usage:",
26408         "content": "curl https://{domain}/api/integrations/sugarcrm/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
26409         "type": "json"
26410       }
26411     ],
26412     "name": "getDescriptions",
26413     "group": "Sugarcrm_Configurations",
26414     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26415     "version": "0.0.0",
26416     "filename": "server/api/intSugarcrmConfiguration/index.js",
26417     "groupTitle": "Sugarcrm_Configurations"
26418   },
26419   {
26420     "type": "get",
26421     "url": "/api/integrations/sugarcrm/configurations/{id}/fields",
26422     "title": "Gets configurations fields",
26423     "examples": [
26424       {
26425         "title": "Example usage:",
26426         "content": "curl https://{domain}/api/integrations/sugarcrm/configurations/{id}/fields -v -u {name}:{password} -X GET",
26427         "type": "json"
26428       }
26429     ],
26430     "name": "getFields",
26431     "group": "Sugarcrm_Configurations",
26432     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26433     "version": "0.0.0",
26434     "filename": "server/api/intSugarcrmConfiguration/index.js",
26435     "groupTitle": "Sugarcrm_Configurations"
26436   },
26437   {
26438     "type": "get",
26439     "url": "/api/integrations/sugarcrm/configurations/{id}/subjects",
26440     "title": "Gets configurations subjects",
26441     "examples": [
26442       {
26443         "title": "Example usage:",
26444         "content": "curl https://{domain}/api/integrations/sugarcrm/configurations/{id}/subjects -v -u {name}:{password} -X GET",
26445         "type": "json"
26446       }
26447     ],
26448     "name": "getSubjects",
26449     "group": "Sugarcrm_Configurations",
26450     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26451     "version": "0.0.0",
26452     "filename": "server/api/intSugarcrmConfiguration/index.js",
26453     "groupTitle": "Sugarcrm_Configurations"
26454   },
26455   {
26456     "type": "post",
26457     "url": "/api/integrations/sugarcrm/fields",
26458     "title": "Creates a new Sugarcrm Field",
26459     "examples": [
26460       {
26461         "title": "Example usage:",
26462         "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",
26463         "type": "json"
26464       }
26465     ],
26466     "name": "CreateSugarcrm_Fields",
26467     "group": "Sugarcrm_Fields",
26468     "parameter": {
26469       "fields": {
26470         "Body": [
26471           {
26472             "group": "Body",
26473             "type": "String",
26474             "allowedValues": [
26475               "\"string\"",
26476               "\"variable\"",
26477               "\"customVariable\"",
26478               "\"keyValue\"",
26479               "\"picklist\""
26480             ],
26481             "optional": true,
26482             "field": "type",
26483             "description": ""
26484           },
26485           {
26486             "group": "Body",
26487             "type": "String",
26488             "optional": true,
26489             "field": "content",
26490             "description": ""
26491           },
26492           {
26493             "group": "Body",
26494             "type": "String",
26495             "optional": true,
26496             "field": "key",
26497             "description": ""
26498           },
26499           {
26500             "group": "Body",
26501             "type": "String",
26502             "allowedValues": [
26503               "\"string\"",
26504               "\"variable\"",
26505               "\"customVariable\""
26506             ],
26507             "optional": true,
26508             "field": "keyType",
26509             "description": ""
26510           },
26511           {
26512             "group": "Body",
26513             "type": "String",
26514             "optional": true,
26515             "field": "keyContent",
26516             "description": ""
26517           },
26518           {
26519             "group": "Body",
26520             "type": "String",
26521             "optional": true,
26522             "field": "idField",
26523             "description": ""
26524           },
26525           {
26526             "group": "Body",
26527             "type": "String",
26528             "optional": true,
26529             "field": "nameField",
26530             "description": ""
26531           },
26532           {
26533             "group": "Body",
26534             "type": "Boolean",
26535             "optional": true,
26536             "field": "customField",
26537             "description": ""
26538           },
26539           {
26540             "group": "Body",
26541             "type": "String",
26542             "optional": true,
26543             "field": "variableName",
26544             "description": ""
26545           }
26546         ]
26547       }
26548     },
26549     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26550     "version": "0.0.0",
26551     "filename": "server/api/intSugarcrmField/index.js",
26552     "groupTitle": "Sugarcrm_Fields"
26553   },
26554   {
26555     "type": "delete",
26556     "url": "/api/integrations/sugarcrm/fields/{id}",
26557     "title": "Deletes a Sugarcrm Field",
26558     "examples": [
26559       {
26560         "title": "Example usage:",
26561         "content": "curl https://{domain}/api/integrations/sugarcrm/fields/{id} -v -u {name}:{password} -X DELETE",
26562         "type": "json"
26563       }
26564     ],
26565     "name": "DeleteSugarcrm_Fields",
26566     "group": "Sugarcrm_Fields",
26567     "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>",
26568     "version": "0.0.0",
26569     "filename": "server/api/intSugarcrmField/index.js",
26570     "groupTitle": "Sugarcrm_Fields"
26571   },
26572   {
26573     "type": "get",
26574     "url": "/api/integrations/sugarcrm/fields",
26575     "title": "Gets a list of Sugarcrm Fields",
26576     "examples": [
26577       {
26578         "title": "Example usage:",
26579         "content": "curl https://{domain}/api/integrations/sugarcrm/fields -v -u {name}:{password}",
26580         "type": "json"
26581       }
26582     ],
26583     "name": "GetSugarcrm_Fields",
26584     "group": "Sugarcrm_Fields",
26585     "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>",
26586     "version": "0.0.0",
26587     "filename": "server/api/intSugarcrmField/index.js",
26588     "groupTitle": "Sugarcrm_Fields"
26589   },
26590   {
26591     "type": "get",
26592     "url": "/api/integrations/sugarcrm/fields/{id}",
26593     "title": "Gets a single Sugarcrm Field",
26594     "examples": [
26595       {
26596         "title": "Example usage:",
26597         "content": "curl https://{domain}/api/integrations/sugarcrm/fields/{id} -v -u {name}:{password}",
26598         "type": "json"
26599       }
26600     ],
26601     "name": "ShowSugarcrm_Fields",
26602     "group": "Sugarcrm_Fields",
26603     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26604     "version": "0.0.0",
26605     "filename": "server/api/intSugarcrmField/index.js",
26606     "groupTitle": "Sugarcrm_Fields"
26607   },
26608   {
26609     "type": "put",
26610     "url": "/api/integrations/sugarcrm/fields/{id}",
26611     "title": "Update an existing Sugarcrm Field",
26612     "examples": [
26613       {
26614         "title": "Example usage:",
26615         "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",
26616         "type": "json"
26617       }
26618     ],
26619     "name": "updateSugarcrm_Fields",
26620     "group": "Sugarcrm_Fields",
26621     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26622     "version": "0.0.0",
26623     "filename": "server/api/intSugarcrmField/index.js",
26624     "groupTitle": "Sugarcrm_Fields"
26625   },
26626   {
26627     "type": "get",
26628     "url": "/api/system/process",
26629     "title": "Gets system information",
26630     "examples": [
26631       {
26632         "title": "Example usage:",
26633         "content": "curl https://{domain}/api/system -v -u {name}:{password}",
26634         "type": "json"
26635       }
26636     ],
26637     "name": "GetSystemInformation",
26638     "group": "System_Information",
26639     "description": "<p>Motion returns the system information.</p>",
26640     "version": "0.0.0",
26641     "filename": "server/api/system/index.js",
26642     "groupTitle": "System_Information"
26643   },
26644   {
26645     "type": "get",
26646     "url": "/api/system",
26647     "title": "Gets system information",
26648     "examples": [
26649       {
26650         "title": "Example usage:",
26651         "content": "curl https://{domain}/api/system -v -u {name}:{password}",
26652         "type": "json"
26653       }
26654     ],
26655     "name": "GetSystemInformation",
26656     "group": "System_Information",
26657     "description": "<p>Motion returns the system information.</p>",
26658     "version": "0.0.0",
26659     "filename": "server/api/system/index.js",
26660     "groupTitle": "System_Information"
26661   },
26662   {
26663     "type": "post",
26664     "url": "/api/tags",
26665     "title": "Creates a new Tag",
26666     "examples": [
26667       {
26668         "title": "Example usage:",
26669         "content": "curl https://{domain}/api/tags -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
26670         "type": "json"
26671       }
26672     ],
26673     "name": "CreateTags",
26674     "group": "Tags",
26675     "parameter": {
26676       "fields": {
26677         "Body": [
26678           {
26679             "group": "Body",
26680             "type": "String",
26681             "optional": false,
26682             "field": "name",
26683             "description": ""
26684           },
26685           {
26686             "group": "Body",
26687             "type": "String",
26688             "optional": true,
26689             "field": "color",
26690             "description": ""
26691           },
26692           {
26693             "group": "Body",
26694             "type": "String",
26695             "optional": true,
26696             "field": "description",
26697             "description": ""
26698           }
26699         ]
26700       }
26701     },
26702     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26703     "version": "0.0.0",
26704     "filename": "server/api/tag/index.js",
26705     "groupTitle": "Tags"
26706   },
26707   {
26708     "type": "delete",
26709     "url": "/api/tags/{id}",
26710     "title": "Deletes a Tag",
26711     "examples": [
26712       {
26713         "title": "Example usage:",
26714         "content": "curl https://{domain}/api/tags/{id} -v -u {name}:{password} -X DELETE",
26715         "type": "json"
26716       }
26717     ],
26718     "name": "DeleteTags",
26719     "group": "Tags",
26720     "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>",
26721     "version": "0.0.0",
26722     "filename": "server/api/tag/index.js",
26723     "groupTitle": "Tags"
26724   },
26725   {
26726     "type": "get",
26727     "url": "/api/tags",
26728     "title": "Gets a list of Tags",
26729     "examples": [
26730       {
26731         "title": "Example usage:",
26732         "content": "curl https://{domain}/api/tags -v -u {name}:{password}",
26733         "type": "json"
26734       }
26735     ],
26736     "name": "GetTags",
26737     "group": "Tags",
26738     "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>",
26739     "version": "0.0.0",
26740     "filename": "server/api/tag/index.js",
26741     "groupTitle": "Tags"
26742   },
26743   {
26744     "type": "get",
26745     "url": "/api/tags/{id}",
26746     "title": "Gets a single Tag",
26747     "examples": [
26748       {
26749         "title": "Example usage:",
26750         "content": "curl https://{domain}/api/tags/{id} -v -u {name}:{password}",
26751         "type": "json"
26752       }
26753     ],
26754     "name": "ShowTags",
26755     "group": "Tags",
26756     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26757     "version": "0.0.0",
26758     "filename": "server/api/tag/index.js",
26759     "groupTitle": "Tags"
26760   },
26761   {
26762     "type": "put",
26763     "url": "/api/tags/{id}",
26764     "title": "Update an existing Tag",
26765     "examples": [
26766       {
26767         "title": "Example usage:",
26768         "content": "curl https://{domain}/api/tags/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
26769         "type": "json"
26770       }
26771     ],
26772     "name": "updateTags",
26773     "group": "Tags",
26774     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26775     "version": "0.0.0",
26776     "filename": "server/api/tag/index.js",
26777     "groupTitle": "Tags"
26778   },
26779   {
26780     "type": "post",
26781     "url": "/api/teams/{id}/queues",
26782     "title": "Add queues to a team",
26783     "examples": [
26784       {
26785         "title": "Example usage:",
26786         "content": "curl https://{domain}/api/teams/{id}/queues -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
26787         "type": "json"
26788       }
26789     ],
26790     "name": "AddQueues",
26791     "group": "Teams",
26792     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26793     "version": "0.0.0",
26794     "filename": "server/api/team/index.js",
26795     "groupTitle": "Teams"
26796   },
26797   {
26798     "type": "post",
26799     "url": "/api/teams",
26800     "title": "Creates a new Team",
26801     "examples": [
26802       {
26803         "title": "Example usage:",
26804         "content": "curl https://{domain}/api/teams -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
26805         "type": "json"
26806       }
26807     ],
26808     "name": "CreateTeams",
26809     "group": "Teams",
26810     "parameter": {
26811       "fields": {
26812         "Body": [
26813           {
26814             "group": "Body",
26815             "type": "String",
26816             "optional": false,
26817             "field": "name",
26818             "description": ""
26819           },
26820           {
26821             "group": "Body",
26822             "type": "String",
26823             "optional": true,
26824             "field": "description",
26825             "description": ""
26826           }
26827         ]
26828       }
26829     },
26830     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26831     "version": "0.0.0",
26832     "filename": "server/api/team/index.js",
26833     "groupTitle": "Teams"
26834   },
26835   {
26836     "type": "delete",
26837     "url": "/api/teams/{id}",
26838     "title": "Deletes a Team",
26839     "examples": [
26840       {
26841         "title": "Example usage:",
26842         "content": "curl https://{domain}/api/teams/{id} -v -u {name}:{password} -X DELETE",
26843         "type": "json"
26844       }
26845     ],
26846     "name": "DeleteTeams",
26847     "group": "Teams",
26848     "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>",
26849     "version": "0.0.0",
26850     "filename": "server/api/team/index.js",
26851     "groupTitle": "Teams"
26852   },
26853   {
26854     "type": "get",
26855     "url": "/api/teams/{id}/users",
26856     "title": "Gets agents from team",
26857     "examples": [
26858       {
26859         "title": "Example usage:",
26860         "content": "curl https://{domain}/api/teams/{id}/users -v -u {name}:{password} -X GET",
26861         "type": "json"
26862       }
26863     ],
26864     "name": "GetAgents",
26865     "group": "Teams",
26866     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26867     "version": "0.0.0",
26868     "filename": "server/api/team/index.js",
26869     "groupTitle": "Teams"
26870   },
26871   {
26872     "type": "get",
26873     "url": "/api/teams/{id}/queues?channel={channel}",
26874     "title": "Gets Queues list",
26875     "examples": [
26876       {
26877         "title": "Example usage:",
26878         "content": "curl https://{domain}/api/teams/{id}/queues?channel={channel} -v -u {name}:{password}",
26879         "type": "json"
26880       }
26881     ],
26882     "name": "GetQueues",
26883     "group": "Teams",
26884     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26885     "version": "0.0.0",
26886     "filename": "server/api/team/index.js",
26887     "groupTitle": "Teams"
26888   },
26889   {
26890     "type": "get",
26891     "url": "/api/teams",
26892     "title": "Gets a list of Teams",
26893     "examples": [
26894       {
26895         "title": "Example usage:",
26896         "content": "curl https://{domain}/api/teams -v -u {name}:{password}",
26897         "type": "json"
26898       }
26899     ],
26900     "name": "GetTeams",
26901     "group": "Teams",
26902     "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>",
26903     "version": "0.0.0",
26904     "filename": "server/api/team/index.js",
26905     "groupTitle": "Teams"
26906   },
26907   {
26908     "type": "delete",
26909     "url": "/api/teams/{id}/users",
26910     "title": "Removes agents from a team",
26911     "examples": [
26912       {
26913         "title": "Example usage:",
26914         "content": "curl https://{domain}/api/teams/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
26915         "type": "json"
26916       }
26917     ],
26918     "name": "RemoveAgents",
26919     "group": "Teams",
26920     "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>",
26921     "version": "0.0.0",
26922     "filename": "server/api/team/index.js",
26923     "groupTitle": "Teams"
26924   },
26925   {
26926     "type": "delete",
26927     "url": "/api/teams/{id}/queues",
26928     "title": "Remove queues to a team",
26929     "examples": [
26930       {
26931         "title": "Example usage:",
26932         "content": "curl https://{domain}/api/teams/{id}/queues?channel=voice&ids=1&ids=2 -v -u {name}:{password} -X DELETE",
26933         "type": "json"
26934       }
26935     ],
26936     "name": "RemoveQueues",
26937     "group": "Teams",
26938     "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>",
26939     "version": "0.0.0",
26940     "filename": "server/api/team/index.js",
26941     "groupTitle": "Teams"
26942   },
26943   {
26944     "type": "delete",
26945     "url": "/api/mail/queues/{id}/teams",
26946     "title": "Remove teams from a queue",
26947     "examples": [
26948       {
26949         "title": "Example usage:",
26950         "content": "curl https://{domain}/api/mail/queues/{id}/teams -v -u {name}:{password} -X DELETE",
26951         "type": "json"
26952       }
26953     ],
26954     "name": "RemoveTeams",
26955     "group": "Teams",
26956     "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>",
26957     "version": "0.0.0",
26958     "filename": "server/api/mailQueue/index.js",
26959     "groupTitle": "Teams"
26960   },
26961   {
26962     "type": "delete",
26963     "url": "/api/voice/Prefixes/{id}/teams",
26964     "title": "Remove teams from a voice prefix",
26965     "examples": [
26966       {
26967         "title": "Example usage:",
26968         "content": "curl https://{domain}/api/voice/prefixes/{id}/teams -v -u {name}:{password} -X DELETE",
26969         "type": "json"
26970       }
26971     ],
26972     "name": "RemoveTeams",
26973     "group": "Teams",
26974     "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>",
26975     "version": "0.0.0",
26976     "filename": "server/api/voicePrefix/index.js",
26977     "groupTitle": "Teams"
26978   },
26979   {
26980     "type": "delete",
26981     "url": "/api/chat/queues/{id}/teams",
26982     "title": "Remove teams from a queue",
26983     "examples": [
26984       {
26985         "title": "Example usage:",
26986         "content": "curl https://{domain}/api/chat/queues/{id}/teams -v -u {name}:{password} -X DELETE",
26987         "type": "json"
26988       }
26989     ],
26990     "name": "RemoveTeams",
26991     "group": "Teams",
26992     "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>",
26993     "version": "0.0.0",
26994     "filename": "server/api/chatQueue/index.js",
26995     "groupTitle": "Teams"
26996   },
26997   {
26998     "type": "delete",
26999     "url": "/api/sms/queues/{id}/teams",
27000     "title": "Remove teams from a queue",
27001     "examples": [
27002       {
27003         "title": "Example usage:",
27004         "content": "curl https://{domain}/api/sms/queues/{id}/teams -v -u {name}:{password} -X DELETE",
27005         "type": "json"
27006       }
27007     ],
27008     "name": "RemoveTeams",
27009     "group": "Teams",
27010     "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>",
27011     "version": "0.0.0",
27012     "filename": "server/api/smsQueue/index.js",
27013     "groupTitle": "Teams"
27014   },
27015   {
27016     "type": "delete",
27017     "url": "/api/fax/queues/{id}/teams",
27018     "title": "Remove teams from a queue",
27019     "examples": [
27020       {
27021         "title": "Example usage:",
27022         "content": "curl https://{domain}/api/fax/queues/{id}/teams -v -u {name}:{password} -X DELETE",
27023         "type": "json"
27024       }
27025     ],
27026     "name": "RemoveTeams",
27027     "group": "Teams",
27028     "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>",
27029     "version": "0.0.0",
27030     "filename": "server/api/faxQueue/index.js",
27031     "groupTitle": "Teams"
27032   },
27033   {
27034     "type": "delete",
27035     "url": "/api/openchannel/queues/{id}/teams",
27036     "title": "Remove teams from a queue",
27037     "examples": [
27038       {
27039         "title": "Example usage:",
27040         "content": "curl https://{domain}/api/openchannel/queues/{id}/teams -v -u {name}:{password} -X DELETE",
27041         "type": "json"
27042       }
27043     ],
27044     "name": "RemoveTeams",
27045     "group": "Teams",
27046     "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>",
27047     "version": "0.0.0",
27048     "filename": "server/api/openchannelQueue/index.js",
27049     "groupTitle": "Teams"
27050   },
27051   {
27052     "type": "delete",
27053     "url": "/api/whatsapp/queues/{id}/teams",
27054     "title": "Remove teams from a queue",
27055     "examples": [
27056       {
27057         "title": "Example usage:",
27058         "content": "curl https://{domain}/api/whatsapp/queues/{id}/teams -v -u {name}:{password} -X DELETE",
27059         "type": "json"
27060       }
27061     ],
27062     "name": "RemoveTeams",
27063     "group": "Teams",
27064     "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>",
27065     "version": "0.0.0",
27066     "filename": "server/api/whatsappQueue/index.js",
27067     "groupTitle": "Teams"
27068   },
27069   {
27070     "type": "delete",
27071     "url": "/api/voice/queues/{id}/teams",
27072     "title": "Remove teams from a queue",
27073     "examples": [
27074       {
27075         "title": "Example usage:",
27076         "content": "curl https://{domain}/api/voice/queues/{id}/teams -v -u {name}:{password} -X DELETE",
27077         "type": "json"
27078       }
27079     ],
27080     "name": "RemoveTeams",
27081     "group": "Teams",
27082     "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>",
27083     "version": "0.0.0",
27084     "filename": "server/api/voiceQueue/index.js",
27085     "groupTitle": "Teams"
27086   },
27087   {
27088     "type": "get",
27089     "url": "/api/teams/{id}",
27090     "title": "Gets a single Team",
27091     "examples": [
27092       {
27093         "title": "Example usage:",
27094         "content": "curl https://{domain}/api/teams/{id} -v -u {name}:{password}",
27095         "type": "json"
27096       }
27097     ],
27098     "name": "ShowTeams",
27099     "group": "Teams",
27100     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27101     "version": "0.0.0",
27102     "filename": "server/api/team/index.js",
27103     "groupTitle": "Teams"
27104   },
27105   {
27106     "type": "post",
27107     "url": "/api/teams/{id}/users",
27108     "title": "Adds agents to a team",
27109     "examples": [
27110       {
27111         "title": "Example usage:",
27112         "content": "curl https://{domain}/api/teams/{id}/users -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
27113         "type": "json"
27114       }
27115     ],
27116     "name": "addAgents",
27117     "group": "Teams",
27118     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27119     "version": "0.0.0",
27120     "filename": "server/api/team/index.js",
27121     "groupTitle": "Teams"
27122   },
27123   {
27124     "type": "put",
27125     "url": "/api/teams/{id}",
27126     "title": "Update an existing Team",
27127     "examples": [
27128       {
27129         "title": "Example usage:",
27130         "content": "curl https://{domain}/api/teams/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
27131         "type": "json"
27132       }
27133     ],
27134     "name": "updateTeams",
27135     "group": "Teams",
27136     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27137     "version": "0.0.0",
27138     "filename": "server/api/team/index.js",
27139     "groupTitle": "Teams"
27140   },
27141   {
27142     "type": "post",
27143     "url": "/api/templates",
27144     "title": "Creates a new Template",
27145     "examples": [
27146       {
27147         "title": "Example usage:",
27148         "content": "curl https://{domain}/api/templates -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
27149         "type": "json"
27150       }
27151     ],
27152     "name": "CreateTemplates",
27153     "group": "Templates",
27154     "parameter": {
27155       "fields": {
27156         "Body": [
27157           {
27158             "group": "Body",
27159             "type": "String",
27160             "optional": true,
27161             "field": "name",
27162             "description": ""
27163           },
27164           {
27165             "group": "Body",
27166             "type": "String",
27167             "optional": true,
27168             "field": "description",
27169             "description": ""
27170           },
27171           {
27172             "group": "Body",
27173             "type": "Text",
27174             "optional": true,
27175             "field": "html",
27176             "description": ""
27177           }
27178         ]
27179       }
27180     },
27181     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27182     "version": "0.0.0",
27183     "filename": "server/api/template/index.js",
27184     "groupTitle": "Templates"
27185   },
27186   {
27187     "type": "delete",
27188     "url": "/api/templates/{id}",
27189     "title": "Deletes a Template",
27190     "examples": [
27191       {
27192         "title": "Example usage:",
27193         "content": "curl https://{domain}/api/templates/{id} -v -u {name}:{password} -X DELETE",
27194         "type": "json"
27195       }
27196     ],
27197     "name": "DeleteTemplates",
27198     "group": "Templates",
27199     "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>",
27200     "version": "0.0.0",
27201     "filename": "server/api/template/index.js",
27202     "groupTitle": "Templates"
27203   },
27204   {
27205     "type": "get",
27206     "url": "/api/templates",
27207     "title": "Gets a list of Templates",
27208     "examples": [
27209       {
27210         "title": "Example usage:",
27211         "content": "curl https://{domain}/api/templates -v -u {name}:{password}",
27212         "type": "json"
27213       }
27214     ],
27215     "name": "GetTemplates",
27216     "group": "Templates",
27217     "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>",
27218     "version": "0.0.0",
27219     "filename": "server/api/template/index.js",
27220     "groupTitle": "Templates"
27221   },
27222   {
27223     "type": "get",
27224     "url": "/api/templates/{id}",
27225     "title": "Gets a single Template",
27226     "examples": [
27227       {
27228         "title": "Example usage:",
27229         "content": "curl https://{domain}/api/templates/{id} -v -u {name}:{password}",
27230         "type": "json"
27231       }
27232     ],
27233     "name": "ShowTemplates",
27234     "group": "Templates",
27235     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27236     "version": "0.0.0",
27237     "filename": "server/api/template/index.js",
27238     "groupTitle": "Templates"
27239   },
27240   {
27241     "type": "put",
27242     "url": "/api/templates/{id}",
27243     "title": "Update an existing Template",
27244     "examples": [
27245       {
27246         "title": "Example usage:",
27247         "content": "curl https://{domain}/api/templates/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
27248         "type": "json"
27249       }
27250     ],
27251     "name": "updateTemplates",
27252     "group": "Templates",
27253     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27254     "version": "0.0.0",
27255     "filename": "server/api/template/index.js",
27256     "groupTitle": "Templates"
27257   },
27258   {
27259     "type": "post",
27260     "url": "/api/triggers",
27261     "title": "Creates a new Trigger",
27262     "examples": [
27263       {
27264         "title": "Example usage:",
27265         "content": "curl https://{domain}/api/triggers -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
27266         "type": "json"
27267       }
27268     ],
27269     "name": "CreateTriggers",
27270     "group": "Triggers",
27271     "parameter": {
27272       "fields": {
27273         "Body": [
27274           {
27275             "group": "Body",
27276             "type": "String",
27277             "optional": true,
27278             "field": "name",
27279             "description": ""
27280           },
27281           {
27282             "group": "Body",
27283             "type": "String",
27284             "optional": true,
27285             "field": "channel",
27286             "description": ""
27287           },
27288           {
27289             "group": "Body",
27290             "type": "String",
27291             "optional": true,
27292             "field": "description",
27293             "description": ""
27294           },
27295           {
27296             "group": "Body",
27297             "type": "Boolean",
27298             "optional": true,
27299             "field": "status",
27300             "description": ""
27301           }
27302         ]
27303       }
27304     },
27305     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27306     "version": "0.0.0",
27307     "filename": "server/api/trigger/index.js",
27308     "groupTitle": "Triggers"
27309   },
27310   {
27311     "type": "delete",
27312     "url": "/api/triggers/{id}",
27313     "title": "Deletes a Trigger",
27314     "examples": [
27315       {
27316         "title": "Example usage:",
27317         "content": "curl https://{domain}/api/triggers/{id} -v -u {name}:{password} -X DELETE",
27318         "type": "json"
27319       }
27320     ],
27321     "name": "DeleteTriggers",
27322     "group": "Triggers",
27323     "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>",
27324     "version": "0.0.0",
27325     "filename": "server/api/trigger/index.js",
27326     "groupTitle": "Triggers"
27327   },
27328   {
27329     "type": "get",
27330     "url": "/api/triggers",
27331     "title": "Gets a list of Triggers",
27332     "examples": [
27333       {
27334         "title": "Example usage:",
27335         "content": "curl https://{domain}/api/triggers -v -u {name}:{password}",
27336         "type": "json"
27337       }
27338     ],
27339     "name": "GetTriggers",
27340     "group": "Triggers",
27341     "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>",
27342     "version": "0.0.0",
27343     "filename": "server/api/trigger/index.js",
27344     "groupTitle": "Triggers"
27345   },
27346   {
27347     "type": "get",
27348     "url": "/api/triggers/{id}",
27349     "title": "Gets a single Trigger",
27350     "examples": [
27351       {
27352         "title": "Example usage:",
27353         "content": "curl https://{domain}/api/triggers/{id} -v -u {name}:{password}",
27354         "type": "json"
27355       }
27356     ],
27357     "name": "ShowTriggers",
27358     "group": "Triggers",
27359     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27360     "version": "0.0.0",
27361     "filename": "server/api/trigger/index.js",
27362     "groupTitle": "Triggers"
27363   },
27364   {
27365     "type": "post",
27366     "url": "/api/triggers/{id}/actions",
27367     "title": "Creates new actions",
27368     "examples": [
27369       {
27370         "title": "Example usage:",
27371         "content": "curl https://{domain}/api/triggers/{id}/actions -d '{\"action\": \"contactManager\",\"data1\": \"1\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
27372         "type": "json"
27373       }
27374     ],
27375     "name": "addAction",
27376     "group": "Triggers",
27377     "parameter": {
27378       "fields": {
27379         "Body": [
27380           {
27381             "group": "Body",
27382             "type": "Virtual",
27383             "optional": true,
27384             "field": "name",
27385             "description": ""
27386           },
27387           {
27388             "group": "Body",
27389             "type": "String",
27390             "optional": false,
27391             "field": "action",
27392             "description": "<p>Allowed values: contactManager, integration, motionbar, jscripty, urlForward, browser, bot, script</p>"
27393           },
27394           {
27395             "group": "Body",
27396             "type": "String",
27397             "optional": true,
27398             "field": "data1",
27399             "description": "<p>contactManager[ListId], integration[intName(zendesk)], motionbar[Popup(0),URL(1),WinApp(2)], urlForward[GET,POST], browser[TemplateId(0),URL(1)]</p>"
27400           },
27401           {
27402             "group": "Body",
27403             "type": "String",
27404             "optional": true,
27405             "field": "data2",
27406             "description": "<p>integration[AccountId], motionbar[TemplateId,URL,WinAppPath], urlForward[URL]</p>"
27407           },
27408           {
27409             "group": "Body",
27410             "type": "String",
27411             "optional": true,
27412             "field": "data3",
27413             "description": "<p>motionbar[NULL,NULL,WinAppArguments]</p>"
27414           },
27415           {
27416             "group": "Body",
27417             "type": "String",
27418             "optional": true,
27419             "field": "data4",
27420             "description": ""
27421           },
27422           {
27423             "group": "Body",
27424             "type": "String",
27425             "optional": true,
27426             "field": "data5",
27427             "description": ""
27428           },
27429           {
27430             "group": "Body",
27431             "type": "String",
27432             "optional": true,
27433             "field": "data6",
27434             "description": ""
27435           },
27436           {
27437             "group": "Body",
27438             "type": "Text",
27439             "optional": true,
27440             "field": "data7",
27441             "description": ""
27442           }
27443         ]
27444       }
27445     },
27446     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27447     "version": "0.0.0",
27448     "filename": "server/api/trigger/index.js",
27449     "groupTitle": "Triggers"
27450   },
27451   {
27452     "type": "post",
27453     "url": "/api/triggers/{id}/all_conditions",
27454     "title": "Creates a new \"AND\"condition",
27455     "examples": [
27456       {
27457         "title": "Example usage:",
27458         "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",
27459         "type": "json"
27460       }
27461     ],
27462     "name": "addAllCondition",
27463     "group": "Triggers",
27464     "parameter": {
27465       "fields": {
27466         "Body": [
27467           {
27468             "group": "Body",
27469             "type": "Virtual",
27470             "optional": true,
27471             "field": "name",
27472             "description": ""
27473           },
27474           {
27475             "group": "Body",
27476             "type": "String",
27477             "optional": false,
27478             "field": "field",
27479             "description": ""
27480           },
27481           {
27482             "group": "Body",
27483             "type": "String",
27484             "optional": false,
27485             "field": "operator",
27486             "description": ""
27487           },
27488           {
27489             "group": "Body",
27490             "type": "String",
27491             "optional": false,
27492             "field": "value",
27493             "description": ""
27494           }
27495         ]
27496       }
27497     },
27498     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27499     "version": "0.0.0",
27500     "filename": "server/api/trigger/index.js",
27501     "groupTitle": "Triggers"
27502   },
27503   {
27504     "type": "post",
27505     "url": "/api/triggers/{id}/any_conditions",
27506     "title": "Creates a new \"OR\"condition",
27507     "examples": [
27508       {
27509         "title": "Example usage:",
27510         "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",
27511         "type": "json"
27512       }
27513     ],
27514     "name": "addAnyCondition",
27515     "group": "Triggers",
27516     "parameter": {
27517       "fields": {
27518         "Body": [
27519           {
27520             "group": "Body",
27521             "type": "Virtual",
27522             "optional": true,
27523             "field": "name",
27524             "description": ""
27525           },
27526           {
27527             "group": "Body",
27528             "type": "String",
27529             "optional": false,
27530             "field": "field",
27531             "description": ""
27532           },
27533           {
27534             "group": "Body",
27535             "type": "String",
27536             "optional": false,
27537             "field": "operator",
27538             "description": ""
27539           },
27540           {
27541             "group": "Body",
27542             "type": "String",
27543             "optional": false,
27544             "field": "value",
27545             "description": ""
27546           }
27547         ]
27548       }
27549     },
27550     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27551     "version": "0.0.0",
27552     "filename": "server/api/trigger/index.js",
27553     "groupTitle": "Triggers"
27554   },
27555   {
27556     "type": "get",
27557     "url": "/api/triggers/{id}/actions",
27558     "title": "Gets Trigger Actions",
27559     "examples": [
27560       {
27561         "title": "Example usage:",
27562         "content": "curl https://{domain}/api/triggers/{id}/actions -v -u {name}:{password} -X GET",
27563         "type": "json"
27564       }
27565     ],
27566     "name": "getActions",
27567     "group": "Triggers",
27568     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27569     "version": "0.0.0",
27570     "filename": "server/api/trigger/index.js",
27571     "groupTitle": "Triggers"
27572   },
27573   {
27574     "type": "get",
27575     "url": "/api/triggers/{id}/all_conditions",
27576     "title": "Gets \"AND\" Trigger Conditions",
27577     "examples": [
27578       {
27579         "title": "Example usage:",
27580         "content": "curl https://{domain}/api/triggers/{id}/all_conditions -v -u {name}:{password} -X GET",
27581         "type": "json"
27582       }
27583     ],
27584     "name": "getAllConditions",
27585     "group": "Triggers",
27586     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27587     "version": "0.0.0",
27588     "filename": "server/api/trigger/index.js",
27589     "groupTitle": "Triggers"
27590   },
27591   {
27592     "type": "get",
27593     "url": "/api/triggers/{id}/any_conditions",
27594     "title": "Gets \"OR\" Trigger Conditions",
27595     "examples": [
27596       {
27597         "title": "Example usage:",
27598         "content": "curl https://{domain}/api/triggers/{id}/any_conditions -v -u {name}:{password} -X GET",
27599         "type": "json"
27600       }
27601     ],
27602     "name": "getAnyConditions",
27603     "group": "Triggers",
27604     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27605     "version": "0.0.0",
27606     "filename": "server/api/trigger/index.js",
27607     "groupTitle": "Triggers"
27608   },
27609   {
27610     "type": "put",
27611     "url": "/api/triggers/{id}",
27612     "title": "Update an existing Trigger",
27613     "examples": [
27614       {
27615         "title": "Example usage:",
27616         "content": "curl https://{domain}/api/triggers/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
27617         "type": "json"
27618       }
27619     ],
27620     "name": "updateTriggers",
27621     "group": "Triggers",
27622     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27623     "version": "0.0.0",
27624     "filename": "server/api/trigger/index.js",
27625     "groupTitle": "Triggers"
27626   },
27627   {
27628     "type": "post",
27629     "url": "/api/trunks/clone",
27630     "title": "Clone an existing Trunk",
27631     "examples": [
27632       {
27633         "title": "Example usage:",
27634         "content": "curl https://{domain}/api/trunks/clone -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
27635         "type": "json"
27636       }
27637     ],
27638     "name": "CloneTrunks",
27639     "group": "Trunks",
27640     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27641     "version": "0.0.0",
27642     "filename": "server/api/trunk/index.js",
27643     "groupTitle": "Trunks"
27644   },
27645   {
27646     "type": "post",
27647     "url": "/api/trunks",
27648     "title": "Create a new trunk",
27649     "examples": [
27650       {
27651         "title": "Example usage:",
27652         "content": "curl https://{domain}/api/trunks -v -u {name}:{password} -X POST",
27653         "type": "json"
27654       }
27655     ],
27656     "name": "Create",
27657     "group": "Trunks",
27658     "parameter": {
27659       "fields": {
27660         "Body": [
27661           {
27662             "group": "Body",
27663             "type": "String",
27664             "optional": false,
27665             "field": "name",
27666             "description": ""
27667           },
27668           {
27669             "group": "Body",
27670             "type": "String",
27671             "allowedValues": [
27672               "\"friend\"",
27673               "\"user\"",
27674               "\"peer\""
27675             ],
27676             "optional": false,
27677             "field": "type",
27678             "description": ""
27679           },
27680           {
27681             "group": "Body",
27682             "type": "String",
27683             "optional": false,
27684             "field": "context",
27685             "description": ""
27686           },
27687           {
27688             "group": "Body",
27689             "type": "String",
27690             "allowedValues": [
27691               "\"ALLOWED_NOT_SCREENED\"",
27692               "\"ALLOWED_PASSED_SCREEN\"",
27693               "\"ALLOWED_FAILED_SCREEN\"",
27694               "\"ALLOWED\"",
27695               "\"PROHIB_NOT_SCREENED\"",
27696               "\"PROHIB_PASSED_SCREEN\"",
27697               "\"PROHIB_FAILED_SCREEN\"",
27698               "\"PROHIB\""
27699             ],
27700             "optional": true,
27701             "field": "callingpres",
27702             "description": ""
27703           },
27704           {
27705             "group": "Body",
27706             "type": "String",
27707             "optional": true,
27708             "field": "deny",
27709             "description": ""
27710           },
27711           {
27712             "group": "Body",
27713             "type": "String",
27714             "optional": true,
27715             "field": "permit",
27716             "description": ""
27717           },
27718           {
27719             "group": "Body",
27720             "type": "String",
27721             "optional": true,
27722             "field": "secret",
27723             "description": ""
27724           },
27725           {
27726             "group": "Body",
27727             "type": "String",
27728             "optional": true,
27729             "field": "md5secret",
27730             "description": ""
27731           },
27732           {
27733             "group": "Body",
27734             "type": "String",
27735             "optional": true,
27736             "field": "remotesecret",
27737             "description": ""
27738           },
27739           {
27740             "group": "Body",
27741             "type": "String",
27742             "optional": true,
27743             "field": "transport",
27744             "description": "<p>String is deprecated. Please use an Array as [&quot;udp&quot;, &quot;tcp&quot;]</p>"
27745           },
27746           {
27747             "group": "Body",
27748             "type": "String",
27749             "allowedValues": [
27750               "\"rfc2833\"",
27751               "\"info\"",
27752               "\"shortinfo\"",
27753               "\"inband\"",
27754               "\"auto\""
27755             ],
27756             "optional": true,
27757             "field": "dtmfmode",
27758             "description": ""
27759           },
27760           {
27761             "group": "Body",
27762             "type": "String",
27763             "allowedValues": [
27764               "\"yes\"",
27765               "\"no\"",
27766               "\"nonat\"",
27767               "\"update\"",
27768               "\"outgoing\""
27769             ],
27770             "optional": true,
27771             "field": "directmedia",
27772             "description": ""
27773           },
27774           {
27775             "group": "Body",
27776             "type": "String",
27777             "allowedValues": [
27778               "\"yes\"",
27779               "\"no\""
27780             ],
27781             "optional": true,
27782             "field": "directrtpsetup",
27783             "description": ""
27784           },
27785           {
27786             "group": "Body",
27787             "type": "String",
27788             "optional": true,
27789             "field": "directmediapermit",
27790             "description": ""
27791           },
27792           {
27793             "group": "Body",
27794             "type": "String",
27795             "optional": true,
27796             "field": "directmediadeny",
27797             "description": ""
27798           },
27799           {
27800             "group": "Body",
27801             "type": "String",
27802             "optional": true,
27803             "field": "nat",
27804             "description": "<p>String is deprecated. Please use an Array as [&quot;force_rport&quot;, &quot;comedia&quot;]</p>"
27805           },
27806           {
27807             "group": "Body",
27808             "type": "String",
27809             "optional": true,
27810             "field": "callgroup",
27811             "description": ""
27812           },
27813           {
27814             "group": "Body",
27815             "type": "String",
27816             "optional": true,
27817             "field": "namedcallgroup",
27818             "description": ""
27819           },
27820           {
27821             "group": "Body",
27822             "type": "String",
27823             "optional": true,
27824             "field": "pickupgroup",
27825             "description": ""
27826           },
27827           {
27828             "group": "Body",
27829             "type": "String",
27830             "optional": true,
27831             "field": "namedpickupgroup",
27832             "description": ""
27833           },
27834           {
27835             "group": "Body",
27836             "type": "String",
27837             "optional": true,
27838             "field": "language",
27839             "description": ""
27840           },
27841           {
27842             "group": "Body",
27843             "type": "String",
27844             "optional": true,
27845             "field": "tonezone",
27846             "description": ""
27847           },
27848           {
27849             "group": "Body",
27850             "type": "String",
27851             "optional": true,
27852             "field": "disallow",
27853             "description": ""
27854           },
27855           {
27856             "group": "Body",
27857             "type": "String",
27858             "optional": false,
27859             "field": "allow",
27860             "description": "<p>String is deprecated. Please use an Array as [&quot;ulaw&quot;, &quot;alaw&quot;, &quot;alaw&quot;]</p>"
27861           },
27862           {
27863             "group": "Body",
27864             "type": "String",
27865             "allowedValues": [
27866               "\"yes\"",
27867               "\"no\""
27868             ],
27869             "optional": true,
27870             "field": "autoframing",
27871             "description": ""
27872           },
27873           {
27874             "group": "Body",
27875             "type": "String",
27876             "optional": true,
27877             "field": "insecure",
27878             "description": "<p>String is deprecated. Please use an Array as [&quot;port&quot;, &quot;invite&quot;]</p>"
27879           },
27880           {
27881             "group": "Body",
27882             "type": "String",
27883             "allowedValues": [
27884               "\"yes\"",
27885               "\"no\""
27886             ],
27887             "optional": true,
27888             "field": "trustrpid",
27889             "description": ""
27890           },
27891           {
27892             "group": "Body",
27893             "type": "String",
27894             "allowedValues": [
27895               "\"yes\"",
27896               "\"no\""
27897             ],
27898             "optional": true,
27899             "field": "trust_id_outbound",
27900             "description": ""
27901           },
27902           {
27903             "group": "Body",
27904             "type": "String",
27905             "allowedValues": [
27906               "\"yes\"",
27907               "\"no\"",
27908               "\"never\""
27909             ],
27910             "optional": true,
27911             "field": "progressinband",
27912             "description": ""
27913           },
27914           {
27915             "group": "Body",
27916             "type": "String",
27917             "allowedValues": [
27918               "\"yes\"",
27919               "\"no\""
27920             ],
27921             "optional": true,
27922             "field": "promiscredir",
27923             "description": ""
27924           },
27925           {
27926             "group": "Body",
27927             "type": "String",
27928             "allowedValues": [
27929               "\"yes\"",
27930               "\"no\""
27931             ],
27932             "optional": true,
27933             "field": "useclientcode",
27934             "description": ""
27935           },
27936           {
27937             "group": "Body",
27938             "type": "Integer",
27939             "optional": true,
27940             "field": "accountcode",
27941             "description": ""
27942           },
27943           {
27944             "group": "Body",
27945             "type": "String",
27946             "optional": true,
27947             "field": "setvar",
27948             "description": ""
27949           },
27950           {
27951             "group": "Body",
27952             "type": "String",
27953             "optional": true,
27954             "field": "callerid",
27955             "description": ""
27956           },
27957           {
27958             "group": "Body",
27959             "type": "String",
27960             "optional": true,
27961             "field": "amaflags",
27962             "description": ""
27963           },
27964           {
27965             "group": "Body",
27966             "type": "String",
27967             "allowedValues": [
27968               "\"yes\"",
27969               "\"no\""
27970             ],
27971             "optional": true,
27972             "field": "callcounter",
27973             "description": ""
27974           },
27975           {
27976             "group": "Body",
27977             "type": "Integer",
27978             "optional": true,
27979             "field": "busylevel",
27980             "description": ""
27981           },
27982           {
27983             "group": "Body",
27984             "type": "String",
27985             "allowedValues": [
27986               "\"yes\"",
27987               "\"no\""
27988             ],
27989             "optional": true,
27990             "field": "allowoverlap",
27991             "description": ""
27992           },
27993           {
27994             "group": "Body",
27995             "type": "String",
27996             "allowedValues": [
27997               "\"yes\"",
27998               "\"no\""
27999             ],
28000             "optional": true,
28001             "field": "allowsubscribe",
28002             "description": ""
28003           },
28004           {
28005             "group": "Body",
28006             "type": "String",
28007             "allowedValues": [
28008               "\"yes\"",
28009               "\"no\""
28010             ],
28011             "optional": true,
28012             "field": "allowtransfer",
28013             "description": ""
28014           },
28015           {
28016             "group": "Body",
28017             "type": "String",
28018             "allowedValues": [
28019               "\"yes\"",
28020               "\"no\""
28021             ],
28022             "optional": true,
28023             "field": "ignoresdpversion",
28024             "description": ""
28025           },
28026           {
28027             "group": "Body",
28028             "type": "String",
28029             "optional": true,
28030             "field": "subscribecontext",
28031             "description": ""
28032           },
28033           {
28034             "group": "Body",
28035             "type": "String",
28036             "optional": true,
28037             "field": "template",
28038             "description": ""
28039           },
28040           {
28041             "group": "Body",
28042             "type": "String",
28043             "allowedValues": [
28044               "\"yes\"",
28045               "\"no\"",
28046               "\"always\""
28047             ],
28048             "optional": true,
28049             "field": "videosupport",
28050             "description": ""
28051           },
28052           {
28053             "group": "Body",
28054             "type": "Integer",
28055             "optional": true,
28056             "field": "maxcallbitrate",
28057             "description": ""
28058           },
28059           {
28060             "group": "Body",
28061             "type": "String",
28062             "allowedValues": [
28063               "\"yes\"",
28064               "\"no\""
28065             ],
28066             "optional": true,
28067             "field": "rfc2833compensate",
28068             "description": ""
28069           },
28070           {
28071             "group": "Body",
28072             "type": "String",
28073             "optional": true,
28074             "field": "mailbox",
28075             "description": ""
28076           },
28077           {
28078             "group": "Body",
28079             "type": "String",
28080             "allowedValues": [
28081               "\"accept\"",
28082               "\"refuse\"",
28083               "\"originate\""
28084             ],
28085             "optional": true,
28086             "field": "session_timers",
28087             "description": ""
28088           },
28089           {
28090             "group": "Body",
28091             "type": "Integer",
28092             "optional": true,
28093             "field": "session_expires",
28094             "description": ""
28095           },
28096           {
28097             "group": "Body",
28098             "type": "Integer",
28099             "optional": true,
28100             "field": "session_minse",
28101             "description": ""
28102           },
28103           {
28104             "group": "Body",
28105             "type": "String",
28106             "allowedValues": [
28107               "\"uac\"",
28108               "\"uas\""
28109             ],
28110             "optional": true,
28111             "field": "session_refresher",
28112             "description": ""
28113           },
28114           {
28115             "group": "Body",
28116             "type": "String",
28117             "optional": true,
28118             "field": "t38pt_usertpsource",
28119             "description": ""
28120           },
28121           {
28122             "group": "Body",
28123             "type": "String",
28124             "optional": true,
28125             "field": "regexten",
28126             "description": ""
28127           },
28128           {
28129             "group": "Body",
28130             "type": "String",
28131             "optional": true,
28132             "field": "fromdomain",
28133             "description": ""
28134           },
28135           {
28136             "group": "Body",
28137             "type": "String",
28138             "optional": true,
28139             "field": "fromuser",
28140             "description": ""
28141           },
28142           {
28143             "group": "Body",
28144             "type": "Integer",
28145             "optional": true,
28146             "field": "port",
28147             "description": ""
28148           },
28149           {
28150             "group": "Body",
28151             "type": "String",
28152             "allowedValues": [
28153               "\"yes\"",
28154               "\"no\""
28155             ],
28156             "optional": true,
28157             "field": "qualify",
28158             "description": ""
28159           },
28160           {
28161             "group": "Body",
28162             "type": "Integer",
28163             "optional": true,
28164             "field": "keepalive",
28165             "description": ""
28166           },
28167           {
28168             "group": "Body",
28169             "type": "String",
28170             "optional": true,
28171             "field": "defaultip",
28172             "description": ""
28173           },
28174           {
28175             "group": "Body",
28176             "type": "String",
28177             "optional": true,
28178             "field": "defaultuser",
28179             "description": ""
28180           },
28181           {
28182             "group": "Body",
28183             "type": "Integer",
28184             "optional": true,
28185             "field": "rtptimeout",
28186             "description": ""
28187           },
28188           {
28189             "group": "Body",
28190             "type": "Integer",
28191             "optional": true,
28192             "field": "rtpholdtimeout",
28193             "description": ""
28194           },
28195           {
28196             "group": "Body",
28197             "type": "Integer",
28198             "optional": true,
28199             "field": "rtpkeepalive",
28200             "description": ""
28201           },
28202           {
28203             "group": "Body",
28204             "type": "String",
28205             "allowedValues": [
28206               "\"yes\"",
28207               "\"no\"",
28208               "\"pai\""
28209             ],
28210             "optional": true,
28211             "field": "sendrpid",
28212             "description": ""
28213           },
28214           {
28215             "group": "Body",
28216             "type": "String",
28217             "optional": true,
28218             "field": "outboundproxy",
28219             "description": ""
28220           },
28221           {
28222             "group": "Body",
28223             "type": "String",
28224             "optional": true,
28225             "field": "callbackextension",
28226             "description": ""
28227           },
28228           {
28229             "group": "Body",
28230             "type": "Integer",
28231             "optional": true,
28232             "field": "timert1",
28233             "description": ""
28234           },
28235           {
28236             "group": "Body",
28237             "type": "Integer",
28238             "optional": true,
28239             "field": "timerb",
28240             "description": ""
28241           },
28242           {
28243             "group": "Body",
28244             "type": "Integer",
28245             "optional": true,
28246             "field": "qualifyfreq",
28247             "description": ""
28248           },
28249           {
28250             "group": "Body",
28251             "type": "String",
28252             "optional": true,
28253             "field": "contactpermit",
28254             "description": ""
28255           },
28256           {
28257             "group": "Body",
28258             "type": "String",
28259             "optional": true,
28260             "field": "contactdeny",
28261             "description": ""
28262           },
28263           {
28264             "group": "Body",
28265             "type": "String",
28266             "optional": true,
28267             "field": "contactacl",
28268             "description": ""
28269           },
28270           {
28271             "group": "Body",
28272             "type": "String",
28273             "optional": true,
28274             "field": "unsolicited_mailbox",
28275             "description": ""
28276           },
28277           {
28278             "group": "Body",
28279             "type": "String",
28280             "optional": true,
28281             "field": "use_q850_reason",
28282             "description": ""
28283           },
28284           {
28285             "group": "Body",
28286             "type": "Integer",
28287             "optional": true,
28288             "field": "maxforwards",
28289             "description": ""
28290           },
28291           {
28292             "group": "Body",
28293             "type": "String",
28294             "allowedValues": [
28295               "\"yes\"",
28296               "\"no\""
28297             ],
28298             "optional": true,
28299             "field": "encryption",
28300             "description": ""
28301           },
28302           {
28303             "group": "Body",
28304             "type": "String",
28305             "allowedValues": [
28306               "\"yes\"",
28307               "\"no\""
28308             ],
28309             "optional": true,
28310             "field": "avpf",
28311             "description": ""
28312           },
28313           {
28314             "group": "Body",
28315             "type": "String",
28316             "allowedValues": [
28317               "\"yes\"",
28318               "\"no\""
28319             ],
28320             "optional": true,
28321             "field": "force_avp",
28322             "description": ""
28323           },
28324           {
28325             "group": "Body",
28326             "type": "String",
28327             "allowedValues": [
28328               "\"yes\"",
28329               "\"no\""
28330             ],
28331             "optional": true,
28332             "field": "icesupport",
28333             "description": ""
28334           },
28335           {
28336             "group": "Body",
28337             "type": "String",
28338             "allowedValues": [
28339               "\"yes\"",
28340               "\"no\""
28341             ],
28342             "optional": true,
28343             "field": "dtlsenable",
28344             "description": ""
28345           },
28346           {
28347             "group": "Body",
28348             "type": "String",
28349             "allowedValues": [
28350               "\"yes\"",
28351               "\"no\"",
28352               "\"fingerprint\"",
28353               "\"certificate\""
28354             ],
28355             "optional": true,
28356             "field": "dtlsverify",
28357             "description": ""
28358           },
28359           {
28360             "group": "Body",
28361             "type": "Integer",
28362             "optional": true,
28363             "field": "dtlsrekey",
28364             "description": ""
28365           },
28366           {
28367             "group": "Body",
28368             "type": "String",
28369             "optional": true,
28370             "field": "dtlscertfile",
28371             "description": ""
28372           },
28373           {
28374             "group": "Body",
28375             "type": "String",
28376             "optional": true,
28377             "field": "dtlsprivatekey",
28378             "description": ""
28379           },
28380           {
28381             "group": "Body",
28382             "type": "String",
28383             "optional": true,
28384             "field": "dtlscipher",
28385             "description": ""
28386           },
28387           {
28388             "group": "Body",
28389             "type": "String",
28390             "optional": true,
28391             "field": "dtlscafile",
28392             "description": ""
28393           },
28394           {
28395             "group": "Body",
28396             "type": "String",
28397             "optional": true,
28398             "field": "dtlscapath",
28399             "description": ""
28400           },
28401           {
28402             "group": "Body",
28403             "type": "String",
28404             "allowedValues": [
28405               "\"active\"",
28406               "\"passive\"",
28407               "\"actpass\""
28408             ],
28409             "optional": true,
28410             "field": "dtlssetup",
28411             "description": ""
28412           },
28413           {
28414             "group": "Body",
28415             "type": "String",
28416             "optional": true,
28417             "field": "dtlsfingerprint",
28418             "description": ""
28419           },
28420           {
28421             "group": "Body",
28422             "type": "String",
28423             "allowedValues": [
28424               "\"yes\"",
28425               "\"no\""
28426             ],
28427             "optional": true,
28428             "field": "usereqphone",
28429             "description": ""
28430           },
28431           {
28432             "group": "Body",
28433             "type": "String",
28434             "optional": true,
28435             "field": "recordonfeature",
28436             "description": ""
28437           },
28438           {
28439             "group": "Body",
28440             "type": "String",
28441             "optional": true,
28442             "field": "recordofffeature",
28443             "description": ""
28444           },
28445           {
28446             "group": "Body",
28447             "type": "Integer",
28448             "optional": true,
28449             "field": "call_limit",
28450             "description": ""
28451           },
28452           {
28453             "group": "Body",
28454             "type": "String",
28455             "allowedValues": [
28456               "\"yes\"",
28457               "\"no\""
28458             ],
28459             "optional": true,
28460             "field": "registertrying",
28461             "description": ""
28462           },
28463           {
28464             "group": "Body",
28465             "type": "String",
28466             "allowedValues": [
28467               "\"yes\"",
28468               "\"no\""
28469             ],
28470             "optional": true,
28471             "field": "subscribemwi",
28472             "description": ""
28473           },
28474           {
28475             "group": "Body",
28476             "type": "String",
28477             "optional": true,
28478             "field": "vmexten",
28479             "description": ""
28480           },
28481           {
28482             "group": "Body",
28483             "type": "String",
28484             "optional": true,
28485             "field": "mohinterpret",
28486             "description": ""
28487           },
28488           {
28489             "group": "Body",
28490             "type": "String",
28491             "optional": true,
28492             "field": "mohsuggest",
28493             "description": ""
28494           },
28495           {
28496             "group": "Body",
28497             "type": "String",
28498             "optional": true,
28499             "field": "parkinglot",
28500             "description": ""
28501           },
28502           {
28503             "group": "Body",
28504             "type": "String",
28505             "optional": true,
28506             "field": "description",
28507             "description": ""
28508           },
28509           {
28510             "group": "Body",
28511             "type": "String",
28512             "optional": true,
28513             "field": "host",
28514             "description": ""
28515           },
28516           {
28517             "group": "Body",
28518             "type": "String",
28519             "allowedValues": [
28520               "\"yes\"",
28521               "\"no\"",
28522               "\"nonat\"",
28523               "\"update\"",
28524               "\"update,nonat\""
28525             ],
28526             "optional": true,
28527             "field": "canreinvite",
28528             "description": ""
28529           },
28530           {
28531             "group": "Body",
28532             "type": "String",
28533             "optional": true,
28534             "field": "registry",
28535             "description": ""
28536           },
28537           {
28538             "group": "Body",
28539             "type": "String",
28540             "optional": true,
28541             "field": "otherFields",
28542             "description": ""
28543           },
28544           {
28545             "group": "Body",
28546             "type": "Boolean",
28547             "optional": false,
28548             "field": "active",
28549             "description": ""
28550           },
28551           {
28552             "group": "Body",
28553             "type": "String",
28554             "optional": true,
28555             "field": "t38pt_udptl",
28556             "description": ""
28557           }
28558         ]
28559       }
28560     },
28561     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28562     "version": "0.0.0",
28563     "filename": "server/api/trunk/index.js",
28564     "groupTitle": "Trunks"
28565   },
28566   {
28567     "type": "delete",
28568     "url": "/api/trunks/{id}",
28569     "title": "Deletes a trunk",
28570     "examples": [
28571       {
28572         "title": "Example usage:",
28573         "content": "curl https://{domain}/api/trunks/{id} -v -u {name}:{password} -X DELETE",
28574         "type": "json"
28575       }
28576     ],
28577     "name": "Delete",
28578     "group": "Trunks",
28579     "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>",
28580     "version": "0.0.0",
28581     "filename": "server/api/trunk/index.js",
28582     "groupTitle": "Trunks"
28583   },
28584   {
28585     "type": "get",
28586     "url": "/api/trunks",
28587     "title": "Gets a list of Trunks",
28588     "examples": [
28589       {
28590         "title": "Example usage:",
28591         "content": "curl https://{domain}/api/trunks -v -u {name}:{password}",
28592         "type": "json"
28593       }
28594     ],
28595     "name": "GetTrunks",
28596     "group": "Trunks",
28597     "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>",
28598     "version": "0.0.0",
28599     "filename": "server/api/trunk/index.js",
28600     "groupTitle": "Trunks"
28601   },
28602   {
28603     "type": "get",
28604     "url": "/api/trunks/{id}",
28605     "title": "Gets a single Trunk",
28606     "examples": [
28607       {
28608         "title": "Example usage:",
28609         "content": "curl https://{domain}/api/trunks/{id} -v -u {name}:{password}",
28610         "type": "json"
28611       }
28612     ],
28613     "name": "ShowTrunks",
28614     "group": "Trunks",
28615     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28616     "version": "0.0.0",
28617     "filename": "server/api/trunk/index.js",
28618     "groupTitle": "Trunks"
28619   },
28620   {
28621     "type": "put",
28622     "url": "/api/trunks/{id}",
28623     "title": "Update an existing trunk",
28624     "examples": [
28625       {
28626         "title": "Example usage:",
28627         "content": "curl https://{domain}/api/trunks/{id} -v -u {name}:{password} -X PUT",
28628         "type": "json"
28629       }
28630     ],
28631     "name": "Update",
28632     "group": "Trunks",
28633     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28634     "version": "0.0.0",
28635     "filename": "server/api/trunk/index.js",
28636     "groupTitle": "Trunks"
28637   },
28638   {
28639     "type": "post",
28640     "url": "/api/userNotifications",
28641     "title": "Send notification to user",
28642     "examples": [
28643       {
28644         "title": "Example usage:",
28645         "content": "curl https://{domain}/api/userNotifications -d '{\"text\": \"Hello!\", \"TemplateId\": 1}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
28646         "type": "json"
28647       }
28648     ],
28649     "name": "Send",
28650     "group": "UserNotifications",
28651     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28652     "version": "0.0.0",
28653     "filename": "server/api/userNotification/index.js",
28654     "groupTitle": "UserNotifications"
28655   },
28656   {
28657     "type": "post",
28658     "url": "/api/userProfile/resources",
28659     "title": "Creates a new User Profile Resource",
28660     "examples": [
28661       {
28662         "title": "Example usage:",
28663         "content": "curl https://{domain}/api/userProfile/resources -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
28664         "type": "json"
28665       }
28666     ],
28667     "name": "CreateUser_Profile_Resources",
28668     "group": "User_Profile_Resources",
28669     "parameter": {
28670       "fields": {
28671         "Body": [
28672           {
28673             "group": "Body",
28674             "type": "String",
28675             "optional": false,
28676             "field": "name",
28677             "description": ""
28678           },
28679           {
28680             "group": "Body",
28681             "type": "Integer",
28682             "optional": false,
28683             "field": "resourceId",
28684             "description": ""
28685           },
28686           {
28687             "group": "Body",
28688             "type": "String",
28689             "optional": false,
28690             "field": "type",
28691             "description": ""
28692           }
28693         ]
28694       }
28695     },
28696     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28697     "version": "0.0.0",
28698     "filename": "server/api/userProfileResource/index.js",
28699     "groupTitle": "User_Profile_Resources"
28700   },
28701   {
28702     "type": "delete",
28703     "url": "/api/userProfile/resources/{id}",
28704     "title": "Deletes a User Profile Resource",
28705     "examples": [
28706       {
28707         "title": "Example usage:",
28708         "content": "curl https://{domain}/api/userProfile/resources/{id} -v -u {name}:{password} -X DELETE",
28709         "type": "json"
28710       }
28711     ],
28712     "name": "DeleteUser_Profile_Resources",
28713     "group": "User_Profile_Resources",
28714     "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>",
28715     "version": "0.0.0",
28716     "filename": "server/api/userProfileResource/index.js",
28717     "groupTitle": "User_Profile_Resources"
28718   },
28719   {
28720     "type": "get",
28721     "url": "/api/userProfile/resources/describe",
28722     "title": "Gets table info about User Profile Resources",
28723     "examples": [
28724       {
28725         "title": "Example usage:",
28726         "content": "curl https://{domain}/api/userProfile/resources/describe -v -u {name}:{password}",
28727         "type": "json"
28728       }
28729     ],
28730     "name": "DescribeUser_Profile_Resources",
28731     "group": "User_Profile_Resources",
28732     "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>",
28733     "version": "0.0.0",
28734     "filename": "server/api/userProfileResource/index.js",
28735     "groupTitle": "User_Profile_Resources"
28736   },
28737   {
28738     "type": "get",
28739     "url": "/api/userProfile/resources",
28740     "title": "Gets a list of User Profile Resources",
28741     "examples": [
28742       {
28743         "title": "Example usage:",
28744         "content": "curl https://{domain}/api/userProfile/resources -v -u {name}:{password}",
28745         "type": "json"
28746       }
28747     ],
28748     "name": "GetUser_Profile_Resources",
28749     "group": "User_Profile_Resources",
28750     "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>",
28751     "version": "0.0.0",
28752     "filename": "server/api/userProfileResource/index.js",
28753     "groupTitle": "User_Profile_Resources"
28754   },
28755   {
28756     "type": "get",
28757     "url": "/api/userProfile/resources/{id}",
28758     "title": "Gets a single User Profile Resource",
28759     "examples": [
28760       {
28761         "title": "Example usage:",
28762         "content": "curl https://{domain}/api/userProfile/resources/{id} -v -u {name}:{password}",
28763         "type": "json"
28764       }
28765     ],
28766     "name": "ShowUser_Profile_Resources",
28767     "group": "User_Profile_Resources",
28768     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28769     "version": "0.0.0",
28770     "filename": "server/api/userProfileResource/index.js",
28771     "groupTitle": "User_Profile_Resources"
28772   },
28773   {
28774     "type": "put",
28775     "url": "/api/userProfile/resources/{id}",
28776     "title": "Update an existing User Profile Resource",
28777     "examples": [
28778       {
28779         "title": "Example usage:",
28780         "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",
28781         "type": "json"
28782       }
28783     ],
28784     "name": "updateUser_Profile_Resources",
28785     "group": "User_Profile_Resources",
28786     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28787     "version": "0.0.0",
28788     "filename": "server/api/userProfileResource/index.js",
28789     "groupTitle": "User_Profile_Resources"
28790   },
28791   {
28792     "type": "post",
28793     "url": "/api/userProfile/sections",
28794     "title": "Creates a new User Profile Section",
28795     "examples": [
28796       {
28797         "title": "Example usage:",
28798         "content": "curl https://{domain}/api/userProfile/sections -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
28799         "type": "json"
28800       }
28801     ],
28802     "name": "CreateUser_Profile_Sections",
28803     "group": "User_Profile_Sections",
28804     "parameter": {
28805       "fields": {
28806         "Body": [
28807           {
28808             "group": "Body",
28809             "type": "String",
28810             "optional": false,
28811             "field": "name",
28812             "description": ""
28813           },
28814           {
28815             "group": "Body",
28816             "type": "String",
28817             "optional": false,
28818             "field": "category",
28819             "description": ""
28820           },
28821           {
28822             "group": "Body",
28823             "type": "Integer",
28824             "optional": false,
28825             "field": "sectionId",
28826             "description": ""
28827           },
28828           {
28829             "group": "Body",
28830             "type": "Boolean",
28831             "optional": true,
28832             "field": "enabled",
28833             "description": ""
28834           },
28835           {
28836             "group": "Body",
28837             "type": "Boolean",
28838             "optional": true,
28839             "field": "autoAssociation",
28840             "description": ""
28841           },
28842           {
28843             "group": "Body",
28844             "type": "String",
28845             "optional": true,
28846             "field": "crudPermissions",
28847             "description": ""
28848           }
28849         ]
28850       }
28851     },
28852     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28853     "version": "0.0.0",
28854     "filename": "server/api/userProfileSection/index.js",
28855     "groupTitle": "User_Profile_Sections"
28856   },
28857   {
28858     "type": "delete",
28859     "url": "/api/userProfile/sections/{id}",
28860     "title": "Deletes a User Profile Section",
28861     "examples": [
28862       {
28863         "title": "Example usage:",
28864         "content": "curl https://{domain}/api/userProfile/sections/{id} -v -u {name}:{password} -X DELETE",
28865         "type": "json"
28866       }
28867     ],
28868     "name": "DeleteUser_Profile_Sections",
28869     "group": "User_Profile_Sections",
28870     "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>",
28871     "version": "0.0.0",
28872     "filename": "server/api/userProfileSection/index.js",
28873     "groupTitle": "User_Profile_Sections"
28874   },
28875   {
28876     "type": "get",
28877     "url": "/api/userProfile/sections/describe",
28878     "title": "Gets table info about User Profile Sections",
28879     "examples": [
28880       {
28881         "title": "Example usage:",
28882         "content": "curl https://{domain}/api/userProfile/sections/describe -v -u {name}:{password}",
28883         "type": "json"
28884       }
28885     ],
28886     "name": "DescribeUser_Profile_Sections",
28887     "group": "User_Profile_Sections",
28888     "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>",
28889     "version": "0.0.0",
28890     "filename": "server/api/userProfileSection/index.js",
28891     "groupTitle": "User_Profile_Sections"
28892   },
28893   {
28894     "type": "get",
28895     "url": "/api/userProfile/sections",
28896     "title": "Gets a list of User Profile Sections",
28897     "examples": [
28898       {
28899         "title": "Example usage:",
28900         "content": "curl https://{domain}/api/userProfile/sections -v -u {name}:{password}",
28901         "type": "json"
28902       }
28903     ],
28904     "name": "GetUser_Profile_Sections",
28905     "group": "User_Profile_Sections",
28906     "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>",
28907     "version": "0.0.0",
28908     "filename": "server/api/userProfileSection/index.js",
28909     "groupTitle": "User_Profile_Sections"
28910   },
28911   {
28912     "type": "get",
28913     "url": "/api/userProfile/sections/{id}",
28914     "title": "Gets a single User Profile Section",
28915     "examples": [
28916       {
28917         "title": "Example usage:",
28918         "content": "curl https://{domain}/api/userProfile/sections/{id} -v -u {name}:{password}",
28919         "type": "json"
28920       }
28921     ],
28922     "name": "ShowUser_Profile_Sections",
28923     "group": "User_Profile_Sections",
28924     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28925     "version": "0.0.0",
28926     "filename": "server/api/userProfileSection/index.js",
28927     "groupTitle": "User_Profile_Sections"
28928   },
28929   {
28930     "type": "put",
28931     "url": "/api/userProfile/sections/{id}",
28932     "title": "Update an existing User Profile Section",
28933     "examples": [
28934       {
28935         "title": "Example usage:",
28936         "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",
28937         "type": "json"
28938       }
28939     ],
28940     "name": "updateUser_Profile_Sections",
28941     "group": "User_Profile_Sections",
28942     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28943     "version": "0.0.0",
28944     "filename": "server/api/userProfileSection/index.js",
28945     "groupTitle": "User_Profile_Sections"
28946   },
28947   {
28948     "type": "post",
28949     "url": "/api/userProfiles/{id}/resources",
28950     "title": "Add resources' permissions to User Profile",
28951     "examples": [
28952       {
28953         "title": "Example usage:",
28954         "content": "curl https://{domain}/api/userProfiles/{id}/resources -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
28955         "type": "json"
28956       }
28957     ],
28958     "name": "AddResources",
28959     "group": "User_Profiles",
28960     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28961     "version": "0.0.0",
28962     "filename": "server/api/userProfile/index.js",
28963     "groupTitle": "User_Profiles"
28964   },
28965   {
28966     "type": "post",
28967     "url": "/api/userProfiles/{id}/sections",
28968     "title": "Add sections' permissions to User Profile",
28969     "examples": [
28970       {
28971         "title": "Example usage:",
28972         "content": "curl https://{domain}/api/userProfiles/{id}/sections -d '[{\"sectionId\": \"name\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
28973         "type": "json"
28974       }
28975     ],
28976     "name": "AddSections",
28977     "group": "User_Profiles",
28978     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28979     "version": "0.0.0",
28980     "filename": "server/api/userProfile/index.js",
28981     "groupTitle": "User_Profiles"
28982   },
28983   {
28984     "type": "post",
28985     "url": "/api/userProfiles/clone",
28986     "title": "Clone an existing User Profile",
28987     "examples": [
28988       {
28989         "title": "Example usage:",
28990         "content": "curl https://{domain}/api/userProfiles/clone -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
28991         "type": "json"
28992       }
28993     ],
28994     "name": "CloneUser_Profiles",
28995     "group": "User_Profiles",
28996     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28997     "version": "0.0.0",
28998     "filename": "server/api/userProfile/index.js",
28999     "groupTitle": "User_Profiles"
29000   },
29001   {
29002     "type": "post",
29003     "url": "/api/userProfiles",
29004     "title": "Creates a new User Profile",
29005     "examples": [
29006       {
29007         "title": "Example usage:",
29008         "content": "curl https://{domain}/api/userProfiles -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
29009         "type": "json"
29010       }
29011     ],
29012     "name": "CreateUser_Profiles",
29013     "group": "User_Profiles",
29014     "parameter": {
29015       "fields": {
29016         "Body": [
29017           {
29018             "group": "Body",
29019             "type": "String",
29020             "optional": false,
29021             "field": "name",
29022             "description": ""
29023           },
29024           {
29025             "group": "Body",
29026             "type": "String",
29027             "optional": false,
29028             "field": "crudPermissions",
29029             "description": ""
29030           },
29031           {
29032             "group": "Body",
29033             "type": "String",
29034             "optional": true,
29035             "field": "description",
29036             "description": ""
29037           },
29038           {
29039             "group": "Body",
29040             "type": "Boolean",
29041             "optional": true,
29042             "field": "privacyEnabled",
29043             "description": ""
29044           },
29045           {
29046             "group": "Body",
29047             "type": "Boolean",
29048             "optional": true,
29049             "field": "downloadAttachments",
29050             "description": ""
29051           },
29052           {
29053             "group": "Body",
29054             "type": "Boolean",
29055             "optional": true,
29056             "field": "downloadCallySquareRecordings",
29057             "description": ""
29058           },
29059           {
29060             "group": "Body",
29061             "type": "Boolean",
29062             "optional": true,
29063             "field": "downloadContactManagerLists",
29064             "description": ""
29065           },
29066           {
29067             "group": "Body",
29068             "type": "Boolean",
29069             "optional": true,
29070             "field": "downloadJscriptySessions",
29071             "description": ""
29072           },
29073           {
29074             "group": "Body",
29075             "type": "Boolean",
29076             "optional": true,
29077             "field": "downloadOmnichannelInteractions",
29078             "description": ""
29079           },
29080           {
29081             "group": "Body",
29082             "type": "Boolean",
29083             "optional": true,
29084             "field": "downloadScreenRecordings",
29085             "description": ""
29086           },
29087           {
29088             "group": "Body",
29089             "type": "Boolean",
29090             "optional": true,
29091             "field": "downloadVoiceRecordings",
29092             "description": ""
29093           }
29094         ]
29095       }
29096     },
29097     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29098     "version": "0.0.0",
29099     "filename": "server/api/userProfile/index.js",
29100     "groupTitle": "User_Profiles"
29101   },
29102   {
29103     "type": "delete",
29104     "url": "/api/userProfiles/{id}",
29105     "title": "Deletes a User Profile",
29106     "examples": [
29107       {
29108         "title": "Example usage:",
29109         "content": "curl https://{domain}/api/userProfiles/{id} -v -u {name}:{password} -X DELETE",
29110         "type": "json"
29111       }
29112     ],
29113     "name": "DeleteUser_Profiles",
29114     "group": "User_Profiles",
29115     "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>",
29116     "version": "0.0.0",
29117     "filename": "server/api/userProfile/index.js",
29118     "groupTitle": "User_Profiles"
29119   },
29120   {
29121     "type": "get",
29122     "url": "/api/userProfiles/describe",
29123     "title": "Gets table info about User Profiles",
29124     "examples": [
29125       {
29126         "title": "Example usage:",
29127         "content": "curl https://{domain}/api/userProfiles/describe -v -u {name}:{password}",
29128         "type": "json"
29129       }
29130     ],
29131     "name": "DescribeUser_Profiles",
29132     "group": "User_Profiles",
29133     "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>",
29134     "version": "0.0.0",
29135     "filename": "server/api/userProfile/index.js",
29136     "groupTitle": "User_Profiles"
29137   },
29138   {
29139     "type": "get",
29140     "url": "/api/userProfiles/{id}/resources?section={section}",
29141     "title": "Get Resources assigned to a Section",
29142     "examples": [
29143       {
29144         "title": "Example usage:",
29145         "content": "curl https://{domain}/api/userProfiles/{id}/resources?section={section} -v -u {name}:{password} -X GET",
29146         "type": "json"
29147       }
29148     ],
29149     "name": "GetResources",
29150     "group": "User_Profiles",
29151     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29152     "version": "0.0.0",
29153     "filename": "server/api/userProfile/index.js",
29154     "groupTitle": "User_Profiles"
29155   },
29156   {
29157     "type": "get",
29158     "url": "/api/userProfiles/{id}/sections",
29159     "title": "Get sections associated to a User Profile",
29160     "examples": [
29161       {
29162         "title": "Example usage:",
29163         "content": "curl https://{domain}/api/userProfiles/{id}/sections -v -u {name}:{password} -X GET",
29164         "type": "json"
29165       }
29166     ],
29167     "name": "GetSections",
29168     "group": "User_Profiles",
29169     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29170     "version": "0.0.0",
29171     "filename": "server/api/userProfile/index.js",
29172     "groupTitle": "User_Profiles"
29173   },
29174   {
29175     "type": "get",
29176     "url": "/api/userProfiles",
29177     "title": "Gets a list of User Profiles",
29178     "examples": [
29179       {
29180         "title": "Example usage:",
29181         "content": "curl https://{domain}/api/userProfiles -v -u {name}:{password}",
29182         "type": "json"
29183       }
29184     ],
29185     "name": "GetUser_Profiles",
29186     "group": "User_Profiles",
29187     "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>",
29188     "version": "0.0.0",
29189     "filename": "server/api/userProfile/index.js",
29190     "groupTitle": "User_Profiles"
29191   },
29192   {
29193     "type": "delete",
29194     "url": "/api/userProfiles/{id}/resources",
29195     "title": "Removes resources' permissions from User Profile",
29196     "examples": [
29197       {
29198         "title": "Example usage:",
29199         "content": "curl https://{domain}/api/userProfiles/{id}/resources?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
29200         "type": "json"
29201       }
29202     ],
29203     "name": "RemoveResources",
29204     "group": "User_Profiles",
29205     "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>",
29206     "version": "0.0.0",
29207     "filename": "server/api/userProfile/index.js",
29208     "groupTitle": "User_Profiles"
29209   },
29210   {
29211     "type": "delete",
29212     "url": "/api/userProfiles/{id}/sections",
29213     "title": "Removes sections' permissions from User Profile",
29214     "examples": [
29215       {
29216         "title": "Example usage:",
29217         "content": "curl https://{domain}/api/userProfiles/{id}/sections?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
29218         "type": "json"
29219       }
29220     ],
29221     "name": "RemoveSections",
29222     "group": "User_Profiles",
29223     "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>",
29224     "version": "0.0.0",
29225     "filename": "server/api/userProfile/index.js",
29226     "groupTitle": "User_Profiles"
29227   },
29228   {
29229     "type": "get",
29230     "url": "/api/userProfiles/{id}",
29231     "title": "Gets a single User Profile",
29232     "examples": [
29233       {
29234         "title": "Example usage:",
29235         "content": "curl https://{domain}/api/userProfiles/{id} -v -u {name}:{password}",
29236         "type": "json"
29237       }
29238     ],
29239     "name": "ShowUser_Profiles",
29240     "group": "User_Profiles",
29241     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29242     "version": "0.0.0",
29243     "filename": "server/api/userProfile/index.js",
29244     "groupTitle": "User_Profiles"
29245   },
29246   {
29247     "type": "put",
29248     "url": "/api/userProfiles/{id}",
29249     "title": "Update an existing User Profile",
29250     "examples": [
29251       {
29252         "title": "Example usage:",
29253         "content": "curl https://{domain}/api/userProfiles/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
29254         "type": "json"
29255       }
29256     ],
29257     "name": "updateUser_Profiles",
29258     "group": "User_Profiles",
29259     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29260     "version": "0.0.0",
29261     "filename": "server/api/userProfile/index.js",
29262     "groupTitle": "User_Profiles"
29263   },
29264   {
29265     "type": "put",
29266     "url": "/api/user-settings/{id}",
29267     "title": "Update an existing User Setting",
29268     "examples": [
29269       {
29270         "title": "Example usage:",
29271         "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",
29272         "type": "json"
29273       }
29274     ],
29275     "name": "updateUserSettings",
29276     "group": "User_Settings",
29277     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29278     "version": "0.0.0",
29279     "filename": "server/api/user-setting/index.js",
29280     "groupTitle": "User_Settings"
29281   },
29282   {
29283     "type": "post",
29284     "url": "/api/users/{id}/chat_interactions",
29285     "title": "Add chat interaction tabs to an agent",
29286     "examples": [
29287       {
29288         "title": "Example usage:",
29289         "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",
29290         "type": "json"
29291       }
29292     ],
29293     "name": "AddChatInteractions",
29294     "group": "Users",
29295     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29296     "version": "0.0.0",
29297     "filename": "server/api/user/index.js",
29298     "groupTitle": "Users"
29299   },
29300   {
29301     "type": "post",
29302     "url": "/api/users/{id}/chat_websites",
29303     "title": "Add a Chat Website to a user",
29304     "examples": [
29305       {
29306         "title": "Example usage:",
29307         "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",
29308         "type": "json"
29309       }
29310     ],
29311     "name": "AddChatWebsites",
29312     "group": "Users",
29313     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29314     "version": "0.0.0",
29315     "filename": "server/api/user/index.js",
29316     "groupTitle": "Users"
29317   },
29318   {
29319     "type": "post",
29320     "url": "/api/users/{id}/contacts",
29321     "title": "Add contacts to a user",
29322     "examples": [
29323       {
29324         "title": "Example usage:",
29325         "content": "curl https://{domain}/api/users/{id}/contacts -d '{\"ids\": [1,2]}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
29326         "type": "json"
29327       }
29328     ],
29329     "name": "AddContacts",
29330     "group": "Users",
29331     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29332     "version": "0.0.0",
29333     "filename": "server/api/user/index.js",
29334     "groupTitle": "Users"
29335   },
29336   {
29337     "type": "post",
29338     "url": "/api/users/{id}/fax_accounts",
29339     "title": "Add a Fax Account to a user",
29340     "examples": [
29341       {
29342         "title": "Example usage:",
29343         "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",
29344         "type": "json"
29345       }
29346     ],
29347     "name": "AddFaxAccounts",
29348     "group": "Users",
29349     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29350     "version": "0.0.0",
29351     "filename": "server/api/user/index.js",
29352     "groupTitle": "Users"
29353   },
29354   {
29355     "type": "post",
29356     "url": "/api/users/{id}/fax_interactions",
29357     "title": "Add fax interaction tabs to an agent",
29358     "examples": [
29359       {
29360         "title": "Example usage:",
29361         "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",
29362         "type": "json"
29363       }
29364     ],
29365     "name": "AddFaxInteractions",
29366     "group": "Users",
29367     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29368     "version": "0.0.0",
29369     "filename": "server/api/user/index.js",
29370     "groupTitle": "Users"
29371   },
29372   {
29373     "type": "post",
29374     "url": "/api/users/{id}/mail_accounts",
29375     "title": "Add a Mail Account to a user",
29376     "examples": [
29377       {
29378         "title": "Example usage:",
29379         "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",
29380         "type": "json"
29381       }
29382     ],
29383     "name": "AddMailAccounts",
29384     "group": "Users",
29385     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29386     "version": "0.0.0",
29387     "filename": "server/api/user/index.js",
29388     "groupTitle": "Users"
29389   },
29390   {
29391     "type": "post",
29392     "url": "/api/users/{id}/mail_interactions",
29393     "title": "Add mail interaction tabs to an agent",
29394     "examples": [
29395       {
29396         "title": "Example usage:",
29397         "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",
29398         "type": "json"
29399       }
29400     ],
29401     "name": "AddMailInteractions",
29402     "group": "Users",
29403     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29404     "version": "0.0.0",
29405     "filename": "server/api/user/index.js",
29406     "groupTitle": "Users"
29407   },
29408   {
29409     "type": "post",
29410     "url": "/api/users/{id}/openchannel_accounts",
29411     "title": "Add a Open Channel Account to a user",
29412     "examples": [
29413       {
29414         "title": "Example usage:",
29415         "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",
29416         "type": "json"
29417       }
29418     ],
29419     "name": "AddOpenchannelAccounts",
29420     "group": "Users",
29421     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29422     "version": "0.0.0",
29423     "filename": "server/api/user/index.js",
29424     "groupTitle": "Users"
29425   },
29426   {
29427     "type": "post",
29428     "url": "/api/users/{id}/openchannel_interactions",
29429     "title": "Add openchannel interaction tabs to an agent",
29430     "examples": [
29431       {
29432         "title": "Example usage:",
29433         "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",
29434         "type": "json"
29435       }
29436     ],
29437     "name": "AddOpenchannelInteractions",
29438     "group": "Users",
29439     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29440     "version": "0.0.0",
29441     "filename": "server/api/user/index.js",
29442     "groupTitle": "Users"
29443   },
29444   {
29445     "type": "post",
29446     "url": "/api/users/{id}/queues",
29447     "title": "Add queues to an agent",
29448     "examples": [
29449       {
29450         "title": "Example usage:",
29451         "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",
29452         "type": "json"
29453       }
29454     ],
29455     "name": "AddQueues",
29456     "group": "Users",
29457     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29458     "version": "0.0.0",
29459     "filename": "server/api/user/index.js",
29460     "groupTitle": "Users"
29461   },
29462   {
29463     "type": "post",
29464     "url": "/api/users/{id}/sms_accounts",
29465     "title": "Add a Sms Account to a user",
29466     "examples": [
29467       {
29468         "title": "Example usage:",
29469         "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",
29470         "type": "json"
29471       }
29472     ],
29473     "name": "AddSmsAccounts",
29474     "group": "Users",
29475     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29476     "version": "0.0.0",
29477     "filename": "server/api/user/index.js",
29478     "groupTitle": "Users"
29479   },
29480   {
29481     "type": "post",
29482     "url": "/api/users/{id}/sms_interactions",
29483     "title": "Add sms interaction tabs to an agent",
29484     "examples": [
29485       {
29486         "title": "Example usage:",
29487         "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",
29488         "type": "json"
29489       }
29490     ],
29491     "name": "AddSmsInteractions",
29492     "group": "Users",
29493     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29494     "version": "0.0.0",
29495     "filename": "server/api/user/index.js",
29496     "groupTitle": "Users"
29497   },
29498   {
29499     "type": "post",
29500     "url": "/api/users/{id}/square_projects",
29501     "title": "Add a Square Project to a user",
29502     "examples": [
29503       {
29504         "title": "Example usage:",
29505         "content": "curl https://{domain}/api/users/{id}/square_projects -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
29506         "type": "json"
29507       }
29508     ],
29509     "name": "AddSquareProjects",
29510     "group": "Users",
29511     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29512     "version": "0.0.0",
29513     "filename": "server/api/user/index.js",
29514     "groupTitle": "Users"
29515   },
29516   {
29517     "type": "post",
29518     "url": "/api/users/{id}/teams",
29519     "title": "Add teams to an agent",
29520     "examples": [
29521       {
29522         "title": "Example usage:",
29523         "content": "curl https://{domain}/api/users/{id}/teams -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
29524         "type": "json"
29525       }
29526     ],
29527     "name": "AddTeams",
29528     "group": "Users",
29529     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29530     "version": "0.0.0",
29531     "filename": "server/api/user/index.js",
29532     "groupTitle": "Users"
29533   },
29534   {
29535     "type": "post",
29536     "url": "/api/users/{id}/whatsapp_accounts",
29537     "title": "Add a Whatsapp Account to a user",
29538     "examples": [
29539       {
29540         "title": "Example usage:",
29541         "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",
29542         "type": "json"
29543       }
29544     ],
29545     "name": "AddWhatsappAccounts",
29546     "group": "Users",
29547     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29548     "version": "0.0.0",
29549     "filename": "server/api/user/index.js",
29550     "groupTitle": "Users"
29551   },
29552   {
29553     "type": "post",
29554     "url": "/api/users/{id}/whatsapp_interactions",
29555     "title": "Add Whatsapp interaction tabs to an agent",
29556     "examples": [
29557       {
29558         "title": "Example usage:",
29559         "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",
29560         "type": "json"
29561       }
29562     ],
29563     "name": "AddWhatsappInteractions",
29564     "group": "Users",
29565     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29566     "version": "0.0.0",
29567     "filename": "server/api/user/index.js",
29568     "groupTitle": "Users"
29569   },
29570   {
29571     "type": "put",
29572     "url": "/api/users/{id}/password",
29573     "title": "Change user password",
29574     "examples": [
29575       {
29576         "title": "Example usage:",
29577         "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",
29578         "type": "json"
29579       }
29580     ],
29581     "name": "ChangePwd",
29582     "group": "Users",
29583     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29584     "version": "0.0.0",
29585     "filename": "server/api/user/index.js",
29586     "groupTitle": "Users"
29587   },
29588   {
29589     "type": "post",
29590     "url": "/api/users",
29591     "title": "Create a new user",
29592     "examples": [
29593       {
29594         "title": "Example usage:",
29595         "content": "curl https://{domain}/api/users -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
29596         "type": "json"
29597       }
29598     ],
29599     "name": "Create",
29600     "group": "Users",
29601     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29602     "version": "0.0.0",
29603     "filename": "server/api/user/index.js",
29604     "groupTitle": "Users"
29605   },
29606   {
29607     "type": "post",
29608     "url": "/api/users/{id}/api_key",
29609     "title": "Create a new API access key for the user",
29610     "examples": [
29611       {
29612         "title": "Example usage:",
29613         "content": "curl https://{domain}/api/users/:id/api_key -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
29614         "type": "json"
29615       }
29616     ],
29617     "name": "CreateApiKey",
29618     "group": "Users",
29619     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29620     "version": "0.0.0",
29621     "filename": "server/api/user/index.js",
29622     "groupTitle": "Users"
29623   },
29624   {
29625     "type": "delete",
29626     "url": "/api/users/{id}",
29627     "title": "Deletes a user",
29628     "examples": [
29629       {
29630         "title": "Example usage:",
29631         "content": "curl https://{domain}/api/users/{id} -v -u {name}:{password} -X DELETE",
29632         "type": "json"
29633       }
29634     ],
29635     "name": "Delete",
29636     "group": "Users",
29637     "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>",
29638     "version": "0.0.0",
29639     "filename": "server/api/user/index.js",
29640     "groupTitle": "Users"
29641   },
29642   {
29643     "type": "get",
29644     "url": "/api/users/describe",
29645     "title": "Gets table info about Users",
29646     "examples": [
29647       {
29648         "title": "Example usage:",
29649         "content": "curl https://{domain}/api/users/describe -v -u {name}:{password}",
29650         "type": "json"
29651       }
29652     ],
29653     "name": "DescribeUsers",
29654     "group": "Users",
29655     "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>",
29656     "version": "0.0.0",
29657     "filename": "server/api/user/index.js",
29658     "groupTitle": "Users"
29659   },
29660   {
29661     "type": "get",
29662     "url": "/api/users/{id}/agents",
29663     "title": "GetAgents",
29664     "examples": [
29665       {
29666         "title": "Example usage:",
29667         "content": "curl https://{domain}/api/users/{id}/agents -v -u {name}:{password} -X GET",
29668         "type": "json"
29669       }
29670     ],
29671     "name": "GetAgents",
29672     "group": "Users",
29673     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29674     "version": "0.0.0",
29675     "filename": "server/api/user/index.js",
29676     "groupTitle": "Users"
29677   },
29678   {
29679     "type": "get",
29680     "url": "/api/users/{id}/api_key",
29681     "title": "Get the API access key for the user",
29682     "examples": [
29683       {
29684         "title": "Example usage:",
29685         "content": "curl https://{domain}/api/users/:id/api_key -v -u {name}:{password} -X GET",
29686         "type": "json"
29687       }
29688     ],
29689     "name": "GetApiKey",
29690     "group": "Users",
29691     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29692     "version": "0.0.0",
29693     "filename": "server/api/user/index.js",
29694     "groupTitle": "Users"
29695   },
29696   {
29697     "type": "get",
29698     "url": "/api/users/{id}/groups",
29699     "title": "GetChatGroups",
29700     "examples": [
29701       {
29702         "title": "Example usage:",
29703         "content": "curl https://{domain}/api/users/{id}/groups -v -u {name}:{password} -X GET",
29704         "type": "json"
29705       }
29706     ],
29707     "name": "GetChatGroups",
29708     "group": "Users",
29709     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29710     "version": "0.0.0",
29711     "filename": "server/api/user/index.js",
29712     "groupTitle": "Users"
29713   },
29714   {
29715     "type": "get",
29716     "url": "/api/users/{id}/chat/interactions",
29717     "title": "GetChatInteractions",
29718     "examples": [
29719       {
29720         "title": "Example usage:",
29721         "content": "curl https://{domain}/api/users/{id}/chat/interactions -v -u {name}:{password} -X GET",
29722         "type": "json"
29723       }
29724     ],
29725     "name": "GetChatInteractions",
29726     "group": "Users",
29727     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29728     "version": "0.0.0",
29729     "filename": "server/api/user/index.js",
29730     "groupTitle": "Users"
29731   },
29732   {
29733     "type": "get",
29734     "url": "/api/users/{id}/chat_websites",
29735     "title": "GetChatWebsites",
29736     "examples": [
29737       {
29738         "title": "Example usage:",
29739         "content": "curl https://{domain}/api/users/{id}/chat_websites -v -u {name}:{password} -X GET",
29740         "type": "json"
29741       }
29742     ],
29743     "name": "GetChatWebsites",
29744     "group": "Users",
29745     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29746     "version": "0.0.0",
29747     "filename": "server/api/user/index.js",
29748     "groupTitle": "Users"
29749   },
29750   {
29751     "type": "get",
29752     "url": "/api/users/{id}/contacts",
29753     "title": "GetContacts",
29754     "examples": [
29755       {
29756         "title": "Example usage:",
29757         "content": "curl https://{domain}/api/users/{id}/contacts -v -u {name}:{password} -X GET",
29758         "type": "json"
29759       }
29760     ],
29761     "name": "GetContacts",
29762     "group": "Users",
29763     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29764     "version": "0.0.0",
29765     "filename": "server/api/user/index.js",
29766     "groupTitle": "Users"
29767   },
29768   {
29769     "type": "get",
29770     "url": "/api/users/{id}/fax_accounts",
29771     "title": "GetFaxAccounts",
29772     "examples": [
29773       {
29774         "title": "Example usage:",
29775         "content": "curl https://{domain}/api/users/{id}/fax_accounts -v -u {name}:{password} -X GET",
29776         "type": "json"
29777       }
29778     ],
29779     "name": "GetFaxAccounts",
29780     "group": "Users",
29781     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29782     "version": "0.0.0",
29783     "filename": "server/api/user/index.js",
29784     "groupTitle": "Users"
29785   },
29786   {
29787     "type": "get",
29788     "url": "/api/users/{id}/fax/interactions",
29789     "title": "GetFaxInteractions",
29790     "examples": [
29791       {
29792         "title": "Example usage:",
29793         "content": "curl https://{domain}/api/users/{id}/fax/interactions -v -u {name}:{password} -X GET",
29794         "type": "json"
29795       }
29796     ],
29797     "name": "GetFaxInteractions",
29798     "group": "Users",
29799     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29800     "version": "0.0.0",
29801     "filename": "server/api/user/index.js",
29802     "groupTitle": "Users"
29803   },
29804   {
29805     "type": "get",
29806     "url": "/api/users/{id}/lists",
29807     "title": "GetLists",
29808     "examples": [
29809       {
29810         "title": "Example usage:",
29811         "content": "curl https://{domain}/api/users/{id}/lists -v -u {name}:{password} -X GET",
29812         "type": "json"
29813       }
29814     ],
29815     "name": "GetLists",
29816     "group": "Users",
29817     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29818     "version": "0.0.0",
29819     "filename": "server/api/user/index.js",
29820     "groupTitle": "Users"
29821   },
29822   {
29823     "type": "get",
29824     "url": "/api/users/{id}/mail_accounts",
29825     "title": "GetMailAccounts",
29826     "examples": [
29827       {
29828         "title": "Example usage:",
29829         "content": "curl https://{domain}/api/users/{id}/mail_accounts -v -u {name}:{password} -X GET",
29830         "type": "json"
29831       }
29832     ],
29833     "name": "GetMailAccounts",
29834     "group": "Users",
29835     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29836     "version": "0.0.0",
29837     "filename": "server/api/user/index.js",
29838     "groupTitle": "Users"
29839   },
29840   {
29841     "type": "get",
29842     "url": "/api/users/{id}/mail/interactions",
29843     "title": "GetMailInteractions",
29844     "examples": [
29845       {
29846         "title": "Example usage:",
29847         "content": "curl https://{domain}/api/users/{id}/mail/interactions -v -u {name}:{password} -X GET",
29848         "type": "json"
29849       }
29850     ],
29851     "name": "GetMailInteractions",
29852     "group": "Users",
29853     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29854     "version": "0.0.0",
29855     "filename": "server/api/user/index.js",
29856     "groupTitle": "Users"
29857   },
29858   {
29859     "type": "get",
29860     "url": "/api/users/{id}/openchannel_accounts",
29861     "title": "GetOpenchannelAccounts",
29862     "examples": [
29863       {
29864         "title": "Example usage:",
29865         "content": "curl https://{domain}/api/users/{id}/openchannel_accounts -v -u {name}:{password} -X GET",
29866         "type": "json"
29867       }
29868     ],
29869     "name": "GetOpenchannelAccounts",
29870     "group": "Users",
29871     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29872     "version": "0.0.0",
29873     "filename": "server/api/user/index.js",
29874     "groupTitle": "Users"
29875   },
29876   {
29877     "type": "get",
29878     "url": "/api/users/{id}/openchannel/interactions",
29879     "title": "GetOpenchannelInteractions",
29880     "examples": [
29881       {
29882         "title": "Example usage:",
29883         "content": "curl https://{domain}/api/users/{id}/openchannel/interactions -v -u {name}:{password}",
29884         "type": "json"
29885       }
29886     ],
29887     "name": "GetOpenchannelInteractions",
29888     "group": "Users",
29889     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29890     "version": "0.0.0",
29891     "filename": "server/api/user/index.js",
29892     "groupTitle": "Users"
29893   },
29894   {
29895     "type": "get",
29896     "url": "/api/users/{id}/prefixes",
29897     "title": "GetPrefixes",
29898     "examples": [
29899       {
29900         "title": "Example usage:",
29901         "content": "curl https://{domain}/api/users/{id}/prefixes -v -u {name}:{password} -X GET",
29902         "type": "json"
29903       }
29904     ],
29905     "name": "GetPrefixes",
29906     "group": "Users",
29907     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29908     "version": "0.0.0",
29909     "filename": "server/api/user/index.js",
29910     "groupTitle": "Users"
29911   },
29912   {
29913     "type": "get",
29914     "url": "/api/users/{id}/queues?channel={channel}",
29915     "title": "Gets Queues list",
29916     "examples": [
29917       {
29918         "title": "Example usage:",
29919         "content": "curl https://{domain}/api/users/{id}/queues/?channel={channel} -v -u {name}:{password} -X GET",
29920         "type": "json"
29921       }
29922     ],
29923     "name": "GetQueues",
29924     "group": "Users",
29925     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29926     "version": "0.0.0",
29927     "filename": "server/api/user/index.js",
29928     "groupTitle": "Users"
29929   },
29930   {
29931     "type": "get",
29932     "url": "/api/users/{id}/recordings",
29933     "title": "GetRecordings",
29934     "examples": [
29935       {
29936         "title": "Example usage:",
29937         "content": "curl https://{domain}/api/users/{id}/recordings -v -u {name}:{password} -X GET",
29938         "type": "json"
29939       }
29940     ],
29941     "name": "GetRecordings",
29942     "group": "Users",
29943     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29944     "version": "0.0.0",
29945     "filename": "server/api/user/index.js",
29946     "groupTitle": "Users"
29947   },
29948   {
29949     "type": "get",
29950     "url": "/api/users/{id}/scheduled_calls",
29951     "title": "GetScheduledCalls",
29952     "examples": [
29953       {
29954         "title": "Example usage:",
29955         "content": "curl https://{domain}/api/users/{id}/scheduled_calls -v -u {name}:{password} -X GET",
29956         "type": "json"
29957       }
29958     ],
29959     "name": "GetScheduledCalls",
29960     "group": "Users",
29961     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29962     "version": "0.0.0",
29963     "filename": "server/api/user/index.js",
29964     "groupTitle": "Users"
29965   },
29966   {
29967     "type": "get",
29968     "url": "/api/users/{id}/screen_recordings",
29969     "title": "GetScreenRecordings",
29970     "examples": [
29971       {
29972         "title": "Example usage:",
29973         "content": "curl https://{domain}/api/users/{id}/screen_recordings -v -u {name}:{password} -X GET",
29974         "type": "json"
29975       }
29976     ],
29977     "name": "GetScreenRecordings",
29978     "group": "Users",
29979     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29980     "version": "0.0.0",
29981     "filename": "server/api/user/index.js",
29982     "groupTitle": "Users"
29983   },
29984   {
29985     "type": "get",
29986     "url": "/api/users/{id}/sms_accounts",
29987     "title": "GetSmsAccounts",
29988     "examples": [
29989       {
29990         "title": "Example usage:",
29991         "content": "curl https://{domain}/api/users/{id}/sms_accounts -v -u {name}:{password} -X GET",
29992         "type": "json"
29993       }
29994     ],
29995     "name": "GetSmsAccounts",
29996     "group": "Users",
29997     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29998     "version": "0.0.0",
29999     "filename": "server/api/user/index.js",
30000     "groupTitle": "Users"
30001   },
30002   {
30003     "type": "get",
30004     "url": "/api/users/{id}/sms/interactions",
30005     "title": "GetSmsInteractions",
30006     "examples": [
30007       {
30008         "title": "Example usage:",
30009         "content": "curl https://{domain}/api/users/{id}/sms/interactions -v -u {name}:{password} -X GET",
30010         "type": "json"
30011       }
30012     ],
30013     "name": "GetSmsInteractions",
30014     "group": "Users",
30015     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30016     "version": "0.0.0",
30017     "filename": "server/api/user/index.js",
30018     "groupTitle": "Users"
30019   },
30020   {
30021     "type": "get",
30022     "url": "/api/users/{id}/square_projects",
30023     "title": "GetSquareProjects",
30024     "examples": [
30025       {
30026         "title": "Example usage:",
30027         "content": "curl https://{domain}/api/users/{id}/square_projects -v -u {name}:{password} -X GET",
30028         "type": "json"
30029       }
30030     ],
30031     "name": "GetSquareProjects",
30032     "group": "Users",
30033     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30034     "version": "0.0.0",
30035     "filename": "server/api/user/index.js",
30036     "groupTitle": "Users"
30037   },
30038   {
30039     "type": "get",
30040     "url": "/api/users/{id}/teams",
30041     "title": "GetTeams",
30042     "examples": [
30043       {
30044         "title": "Example usage:",
30045         "content": "curl https://{domain}/api/users/{id}/teams -v -u {name}:{password} -X GET",
30046         "type": "json"
30047       }
30048     ],
30049     "name": "GetTeams",
30050     "group": "Users",
30051     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30052     "version": "0.0.0",
30053     "filename": "server/api/user/index.js",
30054     "groupTitle": "Users"
30055   },
30056   {
30057     "type": "get",
30058     "url": "/api/users",
30059     "title": "Gets a list of Users",
30060     "examples": [
30061       {
30062         "title": "Example usage:",
30063         "content": "curl https://{domain}/api/users -v -u {name}:{password}",
30064         "type": "json"
30065       }
30066     ],
30067     "name": "GetUsers",
30068     "group": "Users",
30069     "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>",
30070     "version": "0.0.0",
30071     "filename": "server/api/user/index.js",
30072     "groupTitle": "Users"
30073   },
30074   {
30075     "type": "get",
30076     "url": "/api/users/{id}/queues_rt",
30077     "title": "GetVoiceQueuesRt",
30078     "examples": [
30079       {
30080         "title": "Example usage:",
30081         "content": "curl https://{domain}/api/users/{id}/queues_rt -v -u {name}:{password} -X GET",
30082         "type": "json"
30083       }
30084     ],
30085     "name": "GetVoiceQueuesRt",
30086     "group": "Users",
30087     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30088     "version": "0.0.0",
30089     "filename": "server/api/user/index.js",
30090     "groupTitle": "Users"
30091   },
30092   {
30093     "type": "get",
30094     "url": "/api/users/{id}/whatsapp_accounts",
30095     "title": "GetWhatsappAccounts",
30096     "examples": [
30097       {
30098         "title": "Example usage:",
30099         "content": "curl https://{domain}/api/users/{id}/whatsapp_accounts -v -u {name}:{password} -X GET",
30100         "type": "json"
30101       }
30102     ],
30103     "name": "GetWhatsappAccounts",
30104     "group": "Users",
30105     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30106     "version": "0.0.0",
30107     "filename": "server/api/user/index.js",
30108     "groupTitle": "Users"
30109   },
30110   {
30111     "type": "get",
30112     "url": "/api/users/{id}/whatsapp/interactions",
30113     "title": "GetWhatsappInteractions",
30114     "examples": [
30115       {
30116         "title": "Example usage:",
30117         "content": "curl https://{domain}/api/users/{id}/whatsapp/interactions -v -u {name}:{password} -X GET",
30118         "type": "json"
30119       }
30120     ],
30121     "name": "GetWhatsappInteractions",
30122     "group": "Users",
30123     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30124     "version": "0.0.0",
30125     "filename": "server/api/user/index.js",
30126     "groupTitle": "Users"
30127   },
30128   {
30129     "type": "post",
30130     "url": "/api/users/{id}/login",
30131     "title": "Login",
30132     "examples": [
30133       {
30134         "title": "Example usage:",
30135         "content": "curl https://{domain}/api/users/{id}/login  -v -u {name}:{password} -X POST",
30136         "type": "json"
30137       }
30138     ],
30139     "name": "Login",
30140     "group": "Users",
30141     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30142     "version": "0.0.0",
30143     "filename": "server/api/user/index.js",
30144     "groupTitle": "Users"
30145   },
30146   {
30147     "type": "post",
30148     "url": "/api/users/{id}/logout",
30149     "title": "Logout",
30150     "examples": [
30151       {
30152         "title": "Example usage:",
30153         "content": "curl https://{domain}/api/users/{id}/logout -v -u {name}:{password} -X POST",
30154         "type": "json"
30155       }
30156     ],
30157     "name": "Logout",
30158     "group": "Users",
30159     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30160     "version": "0.0.0",
30161     "filename": "server/api/user/index.js",
30162     "groupTitle": "Users"
30163   },
30164   {
30165     "type": "post",
30166     "url": "/api/users/{id}/pause",
30167     "title": "Pause",
30168     "examples": [
30169       {
30170         "title": "Example usage:",
30171         "content": "curl https://{domain}/api/users/{id}/pause -v -u {name}:{password} -X POST",
30172         "type": "json"
30173       }
30174     ],
30175     "name": "Pause",
30176     "group": "Users",
30177     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30178     "version": "0.0.0",
30179     "filename": "server/api/user/index.js",
30180     "groupTitle": "Users"
30181   },
30182   {
30183     "type": "delete",
30184     "url": "/api/users/{id}/api_key",
30185     "title": "Remove API access key for the user",
30186     "examples": [
30187       {
30188         "title": "Example usage:",
30189         "content": "curl https://{domain}/api/users/:id/api_key -v -u {name}:{password} -X DELETE",
30190         "type": "json"
30191       }
30192     ],
30193     "name": "RemoveApiKey",
30194     "group": "Users",
30195     "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>",
30196     "version": "0.0.0",
30197     "filename": "server/api/user/index.js",
30198     "groupTitle": "Users"
30199   },
30200   {
30201     "type": "delete",
30202     "url": "/api/users/{id}/chat_interactions",
30203     "title": "Removes interactions from an agent",
30204     "examples": [
30205       {
30206         "title": "Example usage:",
30207         "content": "curl https://{domain}/api/users/{id}/chat_interactions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
30208         "type": "json"
30209       }
30210     ],
30211     "name": "RemoveChatInteractions",
30212     "group": "Users",
30213     "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>",
30214     "version": "0.0.0",
30215     "filename": "server/api/user/index.js",
30216     "groupTitle": "Users"
30217   },
30218   {
30219     "type": "delete",
30220     "url": "/api/users/{id}/chat_websites",
30221     "title": "Removes a Chat Website from a user",
30222     "examples": [
30223       {
30224         "title": "Example usage:",
30225         "content": "curl https://{domain}/api/users/{id}/chat_websites?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
30226         "type": "json"
30227       }
30228     ],
30229     "name": "RemoveChatWebsites",
30230     "group": "Users",
30231     "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>",
30232     "version": "0.0.0",
30233     "filename": "server/api/user/index.js",
30234     "groupTitle": "Users"
30235   },
30236   {
30237     "type": "delete",
30238     "url": "/api/users/{id}/fax_accounts",
30239     "title": "Removes a Fax Account from a user",
30240     "examples": [
30241       {
30242         "title": "Example usage:",
30243         "content": "curl https://{domain}/api/users/{id}/fax_accounts?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
30244         "type": "json"
30245       }
30246     ],
30247     "name": "RemoveFaxAccounts",
30248     "group": "Users",
30249     "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>",
30250     "version": "0.0.0",
30251     "filename": "server/api/user/index.js",
30252     "groupTitle": "Users"
30253   },
30254   {
30255     "type": "delete",
30256     "url": "/api/users/{id}/fax_interactions",
30257     "title": "Removes interactions from an agent",
30258     "examples": [
30259       {
30260         "title": "Example usage:",
30261         "content": "curl https://{domain}/api/users/{id}/fax_interactions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
30262         "type": "json"
30263       }
30264     ],
30265     "name": "RemoveFaxInteractions",
30266     "group": "Users",
30267     "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>",
30268     "version": "0.0.0",
30269     "filename": "server/api/user/index.js",
30270     "groupTitle": "Users"
30271   },
30272   {
30273     "type": "delete",
30274     "url": "/api/users/{id}/mail_accounts",
30275     "title": "Removes a Mail Account from a user",
30276     "examples": [
30277       {
30278         "title": "Example usage:",
30279         "content": "curl https://{domain}/api/users/{id}/mail_accounts?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
30280         "type": "json"
30281       }
30282     ],
30283     "name": "RemoveMailAccounts",
30284     "group": "Users",
30285     "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>",
30286     "version": "0.0.0",
30287     "filename": "server/api/user/index.js",
30288     "groupTitle": "Users"
30289   },
30290   {
30291     "type": "delete",
30292     "url": "/api/users/{id}/mail_interactions",
30293     "title": "Removes interactions from an agent",
30294     "examples": [
30295       {
30296         "title": "Example usage:",
30297         "content": "curl https://{domain}/api/users/{id}/mail_interactions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
30298         "type": "json"
30299       }
30300     ],
30301     "name": "RemoveMailInteractions",
30302     "group": "Users",
30303     "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>",
30304     "version": "0.0.0",
30305     "filename": "server/api/user/index.js",
30306     "groupTitle": "Users"
30307   },
30308   {
30309     "type": "delete",
30310     "url": "/api/users/{id}/openchannel_accounts",
30311     "title": "Removes a Open Channel Account from a user",
30312     "examples": [
30313       {
30314         "title": "Example usage:",
30315         "content": "curl https://{domain}/api/users/{id}/openchannel_accounts?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
30316         "type": "json"
30317       }
30318     ],
30319     "name": "RemoveOpenchannelAccounts",
30320     "group": "Users",
30321     "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>",
30322     "version": "0.0.0",
30323     "filename": "server/api/user/index.js",
30324     "groupTitle": "Users"
30325   },
30326   {
30327     "type": "delete",
30328     "url": "/api/users/{id}/openchannel_interactions",
30329     "title": "Removes openchannel interactions from an agent",
30330     "examples": [
30331       {
30332         "title": "Example usage:",
30333         "content": "curl https://{domain}/api/users/{id}/openchannel_interactions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
30334         "type": "json"
30335       }
30336     ],
30337     "name": "RemoveOpenchannelInteractions",
30338     "group": "Users",
30339     "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>",
30340     "version": "0.0.0",
30341     "filename": "server/api/user/index.js",
30342     "groupTitle": "Users"
30343   },
30344   {
30345     "type": "delete",
30346     "url": "/api/users/{id}/queues",
30347     "title": "Remove queues to an agent",
30348     "examples": [
30349       {
30350         "title": "Example usage:",
30351         "content": "curl https://{domain}/api/users/{id}/queues?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
30352         "type": "json"
30353       }
30354     ],
30355     "name": "RemoveQueues",
30356     "group": "Users",
30357     "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>",
30358     "version": "0.0.0",
30359     "filename": "server/api/user/index.js",
30360     "groupTitle": "Users"
30361   },
30362   {
30363     "type": "delete",
30364     "url": "/api/users/{id}/sms_accounts",
30365     "title": "Removes a Sms Account from a user",
30366     "examples": [
30367       {
30368         "title": "Example usage:",
30369         "content": "curl https://{domain}/api/users/{id}/sms_accounts?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
30370         "type": "json"
30371       }
30372     ],
30373     "name": "RemoveSmsAccounts",
30374     "group": "Users",
30375     "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>",
30376     "version": "0.0.0",
30377     "filename": "server/api/user/index.js",
30378     "groupTitle": "Users"
30379   },
30380   {
30381     "type": "delete",
30382     "url": "/api/users/{id}/sms_interactions",
30383     "title": "Removes interactions from an agent",
30384     "examples": [
30385       {
30386         "title": "Example usage:",
30387         "content": "curl https://{domain}/api/users/{id}/sms_interactions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
30388         "type": "json"
30389       }
30390     ],
30391     "name": "RemoveSmsInteractions",
30392     "group": "Users",
30393     "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>",
30394     "version": "0.0.0",
30395     "filename": "server/api/user/index.js",
30396     "groupTitle": "Users"
30397   },
30398   {
30399     "type": "delete",
30400     "url": "/api/users/{id}/square_projects",
30401     "title": "Removes a Square Project from a user",
30402     "examples": [
30403       {
30404         "title": "Example usage:",
30405         "content": "curl https://{domain}/api/users/{id}/square_projects?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
30406         "type": "json"
30407       }
30408     ],
30409     "name": "RemoveSquareProjects",
30410     "group": "Users",
30411     "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>",
30412     "version": "0.0.0",
30413     "filename": "server/api/user/index.js",
30414     "groupTitle": "Users"
30415   },
30416   {
30417     "type": "delete",
30418     "url": "/api/users/{id}/teams",
30419     "title": "Removes teams from an agent",
30420     "examples": [
30421       {
30422         "title": "Example usage:",
30423         "content": "curl https://{domain}/api/users/{id}/teams?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
30424         "type": "json"
30425       }
30426     ],
30427     "name": "RemoveTeams",
30428     "group": "Users",
30429     "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>",
30430     "version": "0.0.0",
30431     "filename": "server/api/user/index.js",
30432     "groupTitle": "Users"
30433   },
30434   {
30435     "type": "delete",
30436     "url": "/api/users/{id}/whatsapp_accounts",
30437     "title": "Removes a Whatsapp Account from a user",
30438     "examples": [
30439       {
30440         "title": "Example usage:",
30441         "content": "curl https://{domain}/api/users/{id}/whatsapp_accounts?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
30442         "type": "json"
30443       }
30444     ],
30445     "name": "RemoveWhatsappAccounts",
30446     "group": "Users",
30447     "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>",
30448     "version": "0.0.0",
30449     "filename": "server/api/user/index.js",
30450     "groupTitle": "Users"
30451   },
30452   {
30453     "type": "delete",
30454     "url": "/api/users/{id}/whatsapp_interactions",
30455     "title": "Removes Whatsapp interactions from an agent",
30456     "examples": [
30457       {
30458         "title": "Example usage:",
30459         "content": "curl https://{domain}/api/users/{id}/whatsapp_interactions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
30460         "type": "json"
30461       }
30462     ],
30463     "name": "RemoveWhatsappInteractions",
30464     "group": "Users",
30465     "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>",
30466     "version": "0.0.0",
30467     "filename": "server/api/user/index.js",
30468     "groupTitle": "Users"
30469   },
30470   {
30471     "type": "get",
30472     "url": "/api/users/{id}",
30473     "title": "Gets a single User",
30474     "examples": [
30475       {
30476         "title": "Example usage:",
30477         "content": "curl https://{domain}/api/users/{id} -v -u {name}:{password}",
30478         "type": "json"
30479       }
30480     ],
30481     "name": "ShowUsers",
30482     "group": "Users",
30483     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30484     "version": "0.0.0",
30485     "filename": "server/api/user/index.js",
30486     "groupTitle": "Users"
30487   },
30488   {
30489     "type": "post",
30490     "url": "/api/users/{id}/unpause",
30491     "title": "Unpause",
30492     "examples": [
30493       {
30494         "title": "Example usage:",
30495         "content": "curl https://{domain}/api/users/{id}/unpause -v -u {name}:{password} -X POST",
30496         "type": "json"
30497       }
30498     ],
30499     "name": "Unpause",
30500     "group": "Users",
30501     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30502     "version": "0.0.0",
30503     "filename": "server/api/user/index.js",
30504     "groupTitle": "Users"
30505   },
30506   {
30507     "type": "get",
30508     "url": "/api/users/whoami",
30509     "title": "WhoAmI",
30510     "examples": [
30511       {
30512         "title": "Example usage:",
30513         "content": "curl https://{domain}/api/users/whoami -v -u {name}:{password} -X GET",
30514         "type": "json"
30515       }
30516     ],
30517     "name": "WhoAmI",
30518     "group": "Users",
30519     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30520     "version": "0.0.0",
30521     "filename": "server/api/user/index.js",
30522     "groupTitle": "Users"
30523   },
30524   {
30525     "type": "post",
30526     "url": "/api/users/{id}/avatar",
30527     "title": "Add avatar",
30528     "examples": [
30529       {
30530         "title": "Example usage:",
30531         "content": "curl https://{domain}/api/users/{id}/avatar -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
30532         "type": "json"
30533       }
30534     ],
30535     "name": "addAvatar",
30536     "group": "Users",
30537     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30538     "version": "0.0.0",
30539     "filename": "server/api/user/index.js",
30540     "groupTitle": "Users"
30541   },
30542   {
30543     "type": "post",
30544     "url": "/api/users/create_many",
30545     "title": "Create Users",
30546     "examples": [
30547       {
30548         "title": "Example usage:",
30549         "content": "curl https://{domain}/api/users/create_many -d '[{\"name\": \"john.doe\", \"role\": \"user\", \"...\": \"...\"}]' -v -u {name}:{password} -X POST",
30550         "type": "json"
30551       }
30552     ],
30553     "name": "bulkCreate",
30554     "group": "Users",
30555     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30556     "version": "0.0.0",
30557     "filename": "server/api/user/index.js",
30558     "groupTitle": "Users"
30559   },
30560   {
30561     "type": "get",
30562     "url": "/api/users/{id}/avatar",
30563     "title": "Get avatar",
30564     "examples": [
30565       {
30566         "title": "Example usage:",
30567         "content": "curl https://{domain}/api/users/{id}/avatar -v -u {name}:{password} -X GET",
30568         "type": "json"
30569       }
30570     ],
30571     "name": "getAvatar",
30572     "group": "Users",
30573     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30574     "version": "0.0.0",
30575     "filename": "server/api/user/index.js",
30576     "groupTitle": "Users"
30577   },
30578   {
30579     "type": "get",
30580     "url": "/api/users/{id}/open_tabs",
30581     "title": "Get interactions opened tabs",
30582     "examples": [
30583       {
30584         "title": "Example usage:",
30585         "content": "curl https://{domain}/api/users/{id}/open_tabs -v -u {name}:{password} -X GET",
30586         "type": "json"
30587       }
30588     ],
30589     "name": "getOpenTabs",
30590     "group": "Users",
30591     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30592     "version": "0.0.0",
30593     "filename": "server/api/user/index.js",
30594     "groupTitle": "Users"
30595   },
30596   {
30597     "type": "get",
30598     "url": "/api/users/presence",
30599     "title": "Gets agent presence",
30600     "examples": [
30601       {
30602         "title": "Example usage:",
30603         "content": "curl https://{domain}/api/users/presence -v -u {name}:{password}  -X GET",
30604         "type": "json"
30605       }
30606     ],
30607     "name": "getPresence",
30608     "group": "Users",
30609     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30610     "version": "0.0.0",
30611     "filename": "server/api/user/index.js",
30612     "groupTitle": "Users"
30613   },
30614   {
30615     "type": "put",
30616     "url": "/api/users/{id}",
30617     "title": "Update an existing User",
30618     "examples": [
30619       {
30620         "title": "Example usage:",
30621         "content": "curl https://{domain}/api/users/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
30622         "type": "json"
30623       }
30624     ],
30625     "name": "updateUsers",
30626     "group": "Users",
30627     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30628     "version": "0.0.0",
30629     "filename": "server/api/user/index.js",
30630     "groupTitle": "Users"
30631   },
30632   {
30633     "type": "post",
30634     "url": "/api/variables",
30635     "title": "Creates a new Variable",
30636     "examples": [
30637       {
30638         "title": "Example usage:",
30639         "content": "curl https://{domain}/api/variables -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
30640         "type": "json"
30641       }
30642     ],
30643     "name": "CreateVariables",
30644     "group": "Variables",
30645     "parameter": {
30646       "fields": {
30647         "Body": [
30648           {
30649             "group": "Body",
30650             "type": "String",
30651             "optional": false,
30652             "field": "name",
30653             "description": ""
30654           },
30655           {
30656             "group": "Body",
30657             "type": "String",
30658             "optional": true,
30659             "field": "description",
30660             "description": ""
30661           }
30662         ]
30663       }
30664     },
30665     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30666     "version": "0.0.0",
30667     "filename": "server/api/variable/index.js",
30668     "groupTitle": "Variables"
30669   },
30670   {
30671     "type": "delete",
30672     "url": "/api/variables/{id}",
30673     "title": "Deletes a Variable",
30674     "examples": [
30675       {
30676         "title": "Example usage:",
30677         "content": "curl https://{domain}/api/variables/{id} -v -u {name}:{password} -X DELETE",
30678         "type": "json"
30679       }
30680     ],
30681     "name": "DeleteVariables",
30682     "group": "Variables",
30683     "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>",
30684     "version": "0.0.0",
30685     "filename": "server/api/variable/index.js",
30686     "groupTitle": "Variables"
30687   },
30688   {
30689     "type": "get",
30690     "url": "/api/variables",
30691     "title": "Gets a list of Variables",
30692     "examples": [
30693       {
30694         "title": "Example usage:",
30695         "content": "curl https://{domain}/api/variables -v -u {name}:{password}",
30696         "type": "json"
30697       }
30698     ],
30699     "name": "GetVariables",
30700     "group": "Variables",
30701     "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>",
30702     "version": "0.0.0",
30703     "filename": "server/api/variable/index.js",
30704     "groupTitle": "Variables"
30705   },
30706   {
30707     "type": "get",
30708     "url": "/api/variables/{id}",
30709     "title": "Gets a single Variable",
30710     "examples": [
30711       {
30712         "title": "Example usage:",
30713         "content": "curl https://{domain}/api/variables/{id} -v -u {name}:{password}",
30714         "type": "json"
30715       }
30716     ],
30717     "name": "ShowVariables",
30718     "group": "Variables",
30719     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30720     "version": "0.0.0",
30721     "filename": "server/api/variable/index.js",
30722     "groupTitle": "Variables"
30723   },
30724   {
30725     "type": "put",
30726     "url": "/api/variables/{id}",
30727     "title": "Update an existing Variable",
30728     "examples": [
30729       {
30730         "title": "Example usage:",
30731         "content": "curl https://{domain}/api/variables/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
30732         "type": "json"
30733       }
30734     ],
30735     "name": "updateVariables",
30736     "group": "Variables",
30737     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30738     "version": "0.0.0",
30739     "filename": "server/api/variable/index.js",
30740     "groupTitle": "Variables"
30741   },
30742   {
30743     "type": "get",
30744     "url": "/api/version/fetch",
30745     "title": "Fetch git version",
30746     "examples": [
30747       {
30748         "title": "Example usage:",
30749         "content": "curl https://{domain}/api/version/fetch -v -u {name}:{password}",
30750         "type": "json"
30751       }
30752     ],
30753     "name": "FetchVersion",
30754     "group": "Version",
30755     "description": "<p>Motion run the following command: git fetch origin master</p>",
30756     "version": "0.0.0",
30757     "filename": "server/api/version/index.js",
30758     "groupTitle": "Version"
30759   },
30760   {
30761     "type": "get",
30762     "url": "/api/version",
30763     "title": "Gets version",
30764     "examples": [
30765       {
30766         "title": "Example usage:",
30767         "content": "curl https://{domain}/api/version -v -u {name}:{password}",
30768         "type": "json"
30769       }
30770     ],
30771     "name": "GetVersion",
30772     "group": "Version",
30773     "description": "<p>Motion returns the current and latest motion version.</p>",
30774     "version": "0.0.0",
30775     "filename": "server/api/version/index.js",
30776     "groupTitle": "Version"
30777   },
30778   {
30779     "type": "get",
30780     "url": "/api/version/migrations",
30781     "title": "Launch database migrations",
30782     "examples": [
30783       {
30784         "title": "Example usage:",
30785         "content": "curl https://{domain}/api/version/migrations -v -u {name}:{password}",
30786         "type": "json"
30787       }
30788     ],
30789     "name": "MigrateVersion",
30790     "group": "Version",
30791     "description": "<p>Motion launch the database migrations, according to the application version</p>",
30792     "version": "0.0.0",
30793     "filename": "server/api/version/index.js",
30794     "groupTitle": "Version"
30795   },
30796   {
30797     "type": "get",
30798     "url": "/api/version/pull",
30799     "title": "Pull git version",
30800     "examples": [
30801       {
30802         "title": "Example usage:",
30803         "content": "curl https://{domain}/api/version/pull -v -u {name}:{password}",
30804         "type": "json"
30805       }
30806     ],
30807     "name": "PullVersion",
30808     "group": "Version",
30809     "description": "<p>Motion run the following command: git pull</p>",
30810     "version": "0.0.0",
30811     "filename": "server/api/version/index.js",
30812     "groupTitle": "Version"
30813   },
30814   {
30815     "type": "get",
30816     "url": "/api/version/reset",
30817     "title": "Reset git version",
30818     "examples": [
30819       {
30820         "title": "Example usage:",
30821         "content": "curl https://{domain}/api/version/reset -v -u {name}:{password}",
30822         "type": "json"
30823       }
30824     ],
30825     "name": "ResetVersion",
30826     "group": "Version",
30827     "description": "<p>Motion run the following command: git reset --hard FETCH_HEAD</p>",
30828     "version": "0.0.0",
30829     "filename": "server/api/version/index.js",
30830     "groupTitle": "Version"
30831   },
30832   {
30833     "type": "get",
30834     "url": "/api/version/restart",
30835     "title": "Restart motion2 after update",
30836     "examples": [
30837       {
30838         "title": "Example usage:",
30839         "content": "curl https://{domain}/api/version/restart -v -u {name}:{password}",
30840         "type": "json"
30841       }
30842     ],
30843     "name": "RestartVersion",
30844     "group": "Version",
30845     "description": "<p>Motion run the following command: pm2 restart motion</p>",
30846     "version": "0.0.0",
30847     "filename": "server/api/version/index.js",
30848     "groupTitle": "Version"
30849   },
30850   {
30851     "type": "get",
30852     "url": "/api/voice/agents/reports/describe",
30853     "title": "Gets table info about Agent Reports",
30854     "examples": [
30855       {
30856         "title": "Example usage:",
30857         "content": "curl https://{domain}/api/voice/agents/reports/describe -v -u {name}:{password}",
30858         "type": "json"
30859       }
30860     ],
30861     "name": "DescribeAgent_Reports",
30862     "group": "Voice_Agent_Reports",
30863     "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>",
30864     "version": "0.0.0",
30865     "filename": "server/api/voiceAgentReport/index.js",
30866     "groupTitle": "Voice_Agent_Reports"
30867   },
30868   {
30869     "type": "get",
30870     "url": "/api/voice/agents/reports",
30871     "title": "Gets a list of Agent Reports",
30872     "examples": [
30873       {
30874         "title": "Example usage:",
30875         "content": "curl https://{domain}/api/voice/agents/reports -v -u {name}:{password}",
30876         "type": "json"
30877       }
30878     ],
30879     "name": "GetAgent_Reports",
30880     "group": "Voice_Agent_Reports",
30881     "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>",
30882     "version": "0.0.0",
30883     "filename": "server/api/voiceAgentReport/index.js",
30884     "groupTitle": "Voice_Agent_Reports"
30885   },
30886   {
30887     "type": "get",
30888     "url": "/api/voice/agents/reports/{id}",
30889     "title": "Gets a single Agent Report",
30890     "examples": [
30891       {
30892         "title": "Example usage:",
30893         "content": "curl https://{domain}/api/voice/agents/reports/{id} -v -u {name}:{password}",
30894         "type": "json"
30895       }
30896     ],
30897     "name": "ShowAgent_Reports",
30898     "group": "Voice_Agent_Reports",
30899     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30900     "version": "0.0.0",
30901     "filename": "server/api/voiceAgentReport/index.js",
30902     "groupTitle": "Voice_Agent_Reports"
30903   },
30904   {
30905     "type": "get",
30906     "url": "/api/voice/calls/reports/describe",
30907     "title": "Gets table info about Call Reports",
30908     "examples": [
30909       {
30910         "title": "Example usage:",
30911         "content": "curl https://{domain}/api/voice/calls/reports/describe -v -u {name}:{password}",
30912         "type": "json"
30913       }
30914     ],
30915     "name": "DescribeCall_Reports",
30916     "group": "Voice_Call_Reports",
30917     "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>",
30918     "version": "0.0.0",
30919     "filename": "server/api/voiceCallReport/index.js",
30920     "groupTitle": "Voice_Call_Reports"
30921   },
30922   {
30923     "type": "get",
30924     "url": "/api/voice/calls/reports",
30925     "title": "Gets a list of Call Reports",
30926     "examples": [
30927       {
30928         "title": "Example usage:",
30929         "content": "curl https://{domain}/api/voice/calls/reports -v -u {name}:{password}",
30930         "type": "json"
30931       }
30932     ],
30933     "name": "GetCall_Reports",
30934     "group": "Voice_Call_Reports",
30935     "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>",
30936     "version": "0.0.0",
30937     "filename": "server/api/voiceCallReport/index.js",
30938     "groupTitle": "Voice_Call_Reports"
30939   },
30940   {
30941     "type": "get",
30942     "url": "/api/voice/calls/reports/{id}",
30943     "title": "Gets a single Call Report",
30944     "examples": [
30945       {
30946         "title": "Example usage:",
30947         "content": "curl https://{domain}/api/voice/calls/reports/{id} -v -u {name}:{password}",
30948         "type": "json"
30949       }
30950     ],
30951     "name": "ShowCall_Reports",
30952     "group": "Voice_Call_Reports",
30953     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30954     "version": "0.0.0",
30955     "filename": "server/api/voiceCallReport/index.js",
30956     "groupTitle": "Voice_Call_Reports"
30957   },
30958   {
30959     "type": "put",
30960     "url": "/api/voice/calls/reports/{id}",
30961     "title": "Update a single cdr",
30962     "examples": [
30963       {
30964         "title": "Example usage:",
30965         "content": "curl https://{domain}/api/voice/calls/reports/{id} -d '{\"userDispositio\": \"OK\"}' -v -u {name}:{password} -X PUT",
30966         "type": "json"
30967       }
30968     ],
30969     "name": "update",
30970     "group": "Voice_Call_Reports",
30971     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30972     "version": "0.0.0",
30973     "filename": "server/api/voiceCallReport/index.js",
30974     "groupTitle": "Voice_Call_Reports"
30975   },
30976   {
30977     "type": "post",
30978     "url": "/api/voice/chanspy",
30979     "title": "Creates a new ChanSpy",
30980     "examples": [
30981       {
30982         "title": "Example usage:",
30983         "content": "curl https://{domain}/api/voice/chanspy -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
30984         "type": "json"
30985       }
30986     ],
30987     "name": "CreateChanSpy",
30988     "group": "Voice_ChanSpy",
30989     "parameter": {
30990       "fields": {
30991         "Body": [
30992           {
30993             "group": "Body",
30994             "type": "String",
30995             "optional": true,
30996             "field": "name",
30997             "description": ""
30998           },
30999           {
31000             "group": "Body",
31001             "type": "String",
31002             "optional": false,
31003             "field": "prefix",
31004             "description": ""
31005           },
31006           {
31007             "group": "Body",
31008             "type": "String",
31009             "optional": true,
31010             "field": "options",
31011             "description": ""
31012           },
31013           {
31014             "group": "Body",
31015             "type": "Boolean",
31016             "optional": true,
31017             "field": "auth",
31018             "description": ""
31019           },
31020           {
31021             "group": "Body",
31022             "type": "String",
31023             "optional": true,
31024             "field": "password",
31025             "description": ""
31026           },
31027           {
31028             "group": "Body",
31029             "type": "Boolean",
31030             "optional": true,
31031             "field": "record",
31032             "description": ""
31033           },
31034           {
31035             "group": "Body",
31036             "type": "String",
31037             "optional": true,
31038             "field": "recordingFormat",
31039             "description": ""
31040           },
31041           {
31042             "group": "Body",
31043             "type": "String",
31044             "optional": true,
31045             "field": "description",
31046             "description": ""
31047           }
31048         ]
31049       }
31050     },
31051     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31052     "version": "0.0.0",
31053     "filename": "server/api/voiceChanSpy/index.js",
31054     "groupTitle": "Voice_ChanSpy"
31055   },
31056   {
31057     "type": "delete",
31058     "url": "/api/voice/chanspy/{id}",
31059     "title": "Deletes a ChanSpy",
31060     "examples": [
31061       {
31062         "title": "Example usage:",
31063         "content": "curl https://{domain}/api/voice/chanspy/{id} -v -u {name}:{password} -X DELETE",
31064         "type": "json"
31065       }
31066     ],
31067     "name": "DeleteChanSpy",
31068     "group": "Voice_ChanSpy",
31069     "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>",
31070     "version": "0.0.0",
31071     "filename": "server/api/voiceChanSpy/index.js",
31072     "groupTitle": "Voice_ChanSpy"
31073   },
31074   {
31075     "type": "get",
31076     "url": "/api/voice/chanspy",
31077     "title": "Gets a list of ChanSpy",
31078     "examples": [
31079       {
31080         "title": "Example usage:",
31081         "content": "curl https://{domain}/api/voice/chanspy -v -u {name}:{password}",
31082         "type": "json"
31083       }
31084     ],
31085     "name": "GetChanSpy",
31086     "group": "Voice_ChanSpy",
31087     "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>",
31088     "version": "0.0.0",
31089     "filename": "server/api/voiceChanSpy/index.js",
31090     "groupTitle": "Voice_ChanSpy"
31091   },
31092   {
31093     "type": "get",
31094     "url": "/api/voice/chanspy/{id}",
31095     "title": "Gets a single ChanSpy",
31096     "examples": [
31097       {
31098         "title": "Example usage:",
31099         "content": "curl https://{domain}/api/voice/chanspy/{id} -v -u {name}:{password}",
31100         "type": "json"
31101       }
31102     ],
31103     "name": "ShowChanSpy",
31104     "group": "Voice_ChanSpy",
31105     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31106     "version": "0.0.0",
31107     "filename": "server/api/voiceChanSpy/index.js",
31108     "groupTitle": "Voice_ChanSpy"
31109   },
31110   {
31111     "type": "put",
31112     "url": "/api/voice/chanspy/{id}",
31113     "title": "Update an existing ChanSpy",
31114     "examples": [
31115       {
31116         "title": "Example usage:",
31117         "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",
31118         "type": "json"
31119       }
31120     ],
31121     "name": "updateChanSpy",
31122     "group": "Voice_ChanSpy",
31123     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31124     "version": "0.0.0",
31125     "filename": "server/api/voiceChanSpy/index.js",
31126     "groupTitle": "Voice_ChanSpy"
31127   },
31128   {
31129     "type": "post",
31130     "url": "/api/voice/contexts",
31131     "title": "Create a new context",
31132     "examples": [
31133       {
31134         "title": "Example usage:",
31135         "content": "curl https://{domain}/api/voice/contexts -v -u {name}:{password} -X POST",
31136         "type": "json"
31137       }
31138     ],
31139     "name": "Create",
31140     "group": "Voice_Contexts",
31141     "parameter": {
31142       "fields": {
31143         "Body": [
31144           {
31145             "group": "Body",
31146             "type": "String",
31147             "optional": true,
31148             "field": "name",
31149             "description": ""
31150           },
31151           {
31152             "group": "Body",
31153             "type": "String",
31154             "optional": true,
31155             "field": "description",
31156             "description": ""
31157           },
31158           {
31159             "group": "Body",
31160             "type": "Boolean",
31161             "optional": true,
31162             "field": "defaultEntry",
31163             "description": ""
31164           }
31165         ]
31166       }
31167     },
31168     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31169     "version": "0.0.0",
31170     "filename": "server/api/voiceContext/index.js",
31171     "groupTitle": "Voice_Contexts"
31172   },
31173   {
31174     "type": "delete",
31175     "url": "/api/voice/contexts/{id}",
31176     "title": "Deletes a context",
31177     "examples": [
31178       {
31179         "title": "Example usage:",
31180         "content": "curl https://{domain}/api/voice/contexts/{id} -v -u {name}:{password} -X DELETE",
31181         "type": "json"
31182       }
31183     ],
31184     "name": "Delete",
31185     "group": "Voice_Contexts",
31186     "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>",
31187     "version": "0.0.0",
31188     "filename": "server/api/voiceContext/index.js",
31189     "groupTitle": "Voice_Contexts"
31190   },
31191   {
31192     "type": "get",
31193     "url": "/api/voice/contexts",
31194     "title": "Gets a list of Contexts",
31195     "examples": [
31196       {
31197         "title": "Example usage:",
31198         "content": "curl https://{domain}/api/voice/contexts -v -u {name}:{password}",
31199         "type": "json"
31200       }
31201     ],
31202     "name": "GetContexts",
31203     "group": "Voice_Contexts",
31204     "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>",
31205     "version": "0.0.0",
31206     "filename": "server/api/voiceContext/index.js",
31207     "groupTitle": "Voice_Contexts"
31208   },
31209   {
31210     "type": "get",
31211     "url": "/api/voice/contexts/{id}",
31212     "title": "Gets a single Context",
31213     "examples": [
31214       {
31215         "title": "Example usage:",
31216         "content": "curl https://{domain}/api/voice/contexts/{id} -v -u {name}:{password}",
31217         "type": "json"
31218       }
31219     ],
31220     "name": "ShowContexts",
31221     "group": "Voice_Contexts",
31222     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31223     "version": "0.0.0",
31224     "filename": "server/api/voiceContext/index.js",
31225     "groupTitle": "Voice_Contexts"
31226   },
31227   {
31228     "type": "put",
31229     "url": "/api/voice/contexts/{id}",
31230     "title": "Update an existing context",
31231     "examples": [
31232       {
31233         "title": "Example usage:",
31234         "content": "curl https://{domain}/api/voice/contexts/{id} -v -u {name}:{password} -X PUT",
31235         "type": "json"
31236       }
31237     ],
31238     "name": "Update",
31239     "group": "Voice_Contexts",
31240     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31241     "version": "0.0.0",
31242     "filename": "server/api/voiceContext/index.js",
31243     "groupTitle": "Voice_Contexts"
31244   },
31245   {
31246     "type": "get",
31247     "url": "/api/voice/dials/reports/describe",
31248     "title": "Gets table info about Dial Reports",
31249     "examples": [
31250       {
31251         "title": "Example usage:",
31252         "content": "curl https://{domain}/api/voice/dials/reports/describe -v -u {name}:{password}",
31253         "type": "json"
31254       }
31255     ],
31256     "name": "DescribeDial_Reports",
31257     "group": "Voice_Dial_Reports",
31258     "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>",
31259     "version": "0.0.0",
31260     "filename": "server/api/voiceDialReport/index.js",
31261     "groupTitle": "Voice_Dial_Reports"
31262   },
31263   {
31264     "type": "get",
31265     "url": "/api/voice/dials/reports",
31266     "title": "Gets a list of Dial Reports",
31267     "examples": [
31268       {
31269         "title": "Example usage:",
31270         "content": "curl https://{domain}/api/voice/dials/reports -v -u {name}:{password}",
31271         "type": "json"
31272       }
31273     ],
31274     "name": "GetDial_Reports",
31275     "group": "Voice_Dial_Reports",
31276     "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>",
31277     "version": "0.0.0",
31278     "filename": "server/api/voiceDialReport/index.js",
31279     "groupTitle": "Voice_Dial_Reports"
31280   },
31281   {
31282     "type": "get",
31283     "url": "/api/voice/dials/reports/{id}",
31284     "title": "Gets a single Dial Report",
31285     "examples": [
31286       {
31287         "title": "Example usage:",
31288         "content": "curl https://{domain}/api/voice/dials/reports/{id} -v -u {name}:{password}",
31289         "type": "json"
31290       }
31291     ],
31292     "name": "ShowDial_Reports",
31293     "group": "Voice_Dial_Reports",
31294     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31295     "version": "0.0.0",
31296     "filename": "server/api/voiceDialReport/index.js",
31297     "groupTitle": "Voice_Dial_Reports"
31298   },
31299   {
31300     "type": "delete",
31301     "url": "/api/voice/extensions/{id}",
31302     "title": "Deletes a Extension",
31303     "examples": [
31304       {
31305         "title": "Example usage:",
31306         "content": "curl https://{domain}/api/voice/extensions/{id} -v -u {name}:{password} -X DELETE",
31307         "type": "json"
31308       }
31309     ],
31310     "name": "DeleteExtensions",
31311     "group": "Voice_Extensions",
31312     "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>",
31313     "version": "0.0.0",
31314     "filename": "server/api/voiceExtension/index.js",
31315     "groupTitle": "Voice_Extensions"
31316   },
31317   {
31318     "type": "get",
31319     "url": "/api/voice/extensions",
31320     "title": "Gets a list of Extensions",
31321     "examples": [
31322       {
31323         "title": "Example usage:",
31324         "content": "curl https://{domain}/api/voice/extensions -v -u {name}:{password}",
31325         "type": "json"
31326       }
31327     ],
31328     "name": "GetExtensions",
31329     "group": "Voice_Extensions",
31330     "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>",
31331     "version": "0.0.0",
31332     "filename": "server/api/voiceExtension/index.js",
31333     "groupTitle": "Voice_Extensions"
31334   },
31335   {
31336     "type": "get",
31337     "url": "/api/voice/extensions/{id}",
31338     "title": "Gets a single Extension",
31339     "examples": [
31340       {
31341         "title": "Example usage:",
31342         "content": "curl https://{domain}/api/voice/extensions/{id} -v -u {name}:{password}",
31343         "type": "json"
31344       }
31345     ],
31346     "name": "ShowExtensions",
31347     "group": "Voice_Extensions",
31348     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31349     "version": "0.0.0",
31350     "filename": "server/api/voiceExtension/index.js",
31351     "groupTitle": "Voice_Extensions"
31352   },
31353   {
31354     "type": "post",
31355     "url": "/api/voice/extensions",
31356     "title": "Create new applications",
31357     "examples": [
31358       {
31359         "title": "Example usage:",
31360         "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",
31361         "type": "json"
31362       }
31363     ],
31364     "name": "addApplications",
31365     "group": "Voice_Extensions",
31366     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31367     "version": "0.0.0",
31368     "filename": "server/api/voiceExtension/index.js",
31369     "groupTitle": "Voice_Extensions"
31370   },
31371   {
31372     "type": "post",
31373     "url": "/api/voice/extensions",
31374     "title": "Create an extension",
31375     "examples": [
31376       {
31377         "title": "Example usage:",
31378         "content": "curl https://{domain}/api/voice/extensions -d '{\"exten\": \"12345\", \"context\": \"from-custom\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
31379         "type": "json"
31380       }
31381     ],
31382     "name": "create",
31383     "group": "Voice_Extensions",
31384     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31385     "version": "0.0.0",
31386     "filename": "server/api/voiceExtension/index.js",
31387     "groupTitle": "Voice_Extensions"
31388   },
31389   {
31390     "type": "put",
31391     "url": "/api/voice/extensions/{id}",
31392     "title": "Update an extension",
31393     "examples": [
31394       {
31395         "title": "Example usage:",
31396         "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",
31397         "type": "json"
31398       }
31399     ],
31400     "name": "update",
31401     "group": "Voice_Extensions",
31402     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31403     "version": "0.0.0",
31404     "filename": "server/api/voiceExtension/index.js",
31405     "groupTitle": "Voice_Extensions"
31406   },
31407   {
31408     "type": "post",
31409     "url": "/api/voice/mohs",
31410     "title": "Create a new a new MOH",
31411     "examples": [
31412       {
31413         "title": "Example usage:",
31414         "content": "curl https://{domain}/api/voice/mohs -d '{\"name\": \"xmas_musics\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
31415         "type": "json"
31416       }
31417     ],
31418     "name": "AddMoh",
31419     "group": "Voice_MOHs",
31420     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31421     "version": "0.0.0",
31422     "filename": "server/api/voiceMusicOnHold/index.js",
31423     "groupTitle": "Voice_MOHs"
31424   },
31425   {
31426     "type": "post",
31427     "url": "/api/voice/mohs/{id}/sounds",
31428     "title": "Add sound to MOH",
31429     "examples": [
31430       {
31431         "title": "Example usage:",
31432         "content": "curl https://{domain}/api/voice/mohs/{id}/sounds -d '{\"id\": 1}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
31433         "type": "json"
31434       }
31435     ],
31436     "name": "AddSound",
31437     "group": "Voice_MOHs",
31438     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31439     "version": "0.0.0",
31440     "filename": "server/api/voiceMusicOnHold/index.js",
31441     "groupTitle": "Voice_MOHs"
31442   },
31443   {
31444     "type": "delete",
31445     "url": "/api/voice/mohs/{id}",
31446     "title": "Deletes an MOH",
31447     "examples": [
31448       {
31449         "title": "Example usage:",
31450         "content": "curl https://{domain}/api/voice/mohs/{id} -v -u {name}:{password} -X DELETE",
31451         "type": "json"
31452       }
31453     ],
31454     "name": "DestroyMoh",
31455     "group": "Voice_MOHs",
31456     "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>",
31457     "version": "0.0.0",
31458     "filename": "server/api/voiceMusicOnHold/index.js",
31459     "groupTitle": "Voice_MOHs"
31460   },
31461   {
31462     "type": "get",
31463     "url": "/api/voice/mohs",
31464     "title": "Gets a list of Music On Holds",
31465     "examples": [
31466       {
31467         "title": "Example usage:",
31468         "content": "curl https://{domain}/api/voice/mohs -v -u {name}:{password}",
31469         "type": "json"
31470       }
31471     ],
31472     "name": "GetMusic_On_Holds",
31473     "group": "Voice_MOHs",
31474     "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>",
31475     "version": "0.0.0",
31476     "filename": "server/api/voiceMusicOnHold/index.js",
31477     "groupTitle": "Voice_MOHs"
31478   },
31479   {
31480     "type": "get",
31481     "url": "/api/voice/mohs/{id}/sounds",
31482     "title": "Gets sounds from MOH",
31483     "examples": [
31484       {
31485         "title": "Example usage:",
31486         "content": "curl https://{domain}/api/voice/mohs/{id}/sounds -v -u {name}:{password} -X DELETE",
31487         "type": "json"
31488       }
31489     ],
31490     "name": "GetSounds",
31491     "group": "Voice_MOHs",
31492     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31493     "version": "0.0.0",
31494     "filename": "server/api/voiceMusicOnHold/index.js",
31495     "groupTitle": "Voice_MOHs"
31496   },
31497   {
31498     "type": "delete",
31499     "url": "/api/voice/mohs/{id}/sounds/{id2}",
31500     "title": "Remove sound from MOH",
31501     "examples": [
31502       {
31503         "title": "Example usage:",
31504         "content": "curl https://{domain}/api/voice/mohs/{id}/sounds/{id2} -v -u {name}:{password} -X DELETE",
31505         "type": "json"
31506       }
31507     ],
31508     "name": "RemoveSound",
31509     "group": "Voice_MOHs",
31510     "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>",
31511     "version": "0.0.0",
31512     "filename": "server/api/voiceMusicOnHold/index.js",
31513     "groupTitle": "Voice_MOHs"
31514   },
31515   {
31516     "type": "get",
31517     "url": "/api/voice/mohs/{id}",
31518     "title": "Gets a single Music On Hold",
31519     "examples": [
31520       {
31521         "title": "Example usage:",
31522         "content": "curl https://{domain}/api/voice/mohs/{id} -v -u {name}:{password}",
31523         "type": "json"
31524       }
31525     ],
31526     "name": "ShowMusic_On_Holds",
31527     "group": "Voice_MOHs",
31528     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31529     "version": "0.0.0",
31530     "filename": "server/api/voiceMusicOnHold/index.js",
31531     "groupTitle": "Voice_MOHs"
31532   },
31533   {
31534     "type": "put",
31535     "url": "/api/voice/mohs/{id}",
31536     "title": "Update an existing Music On Hold",
31537     "examples": [
31538       {
31539         "title": "Example usage:",
31540         "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",
31541         "type": "json"
31542       }
31543     ],
31544     "name": "updateMusic_On_Holds",
31545     "group": "Voice_MOHs",
31546     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31547     "version": "0.0.0",
31548     "filename": "server/api/voiceMusicOnHold/index.js",
31549     "groupTitle": "Voice_MOHs"
31550   },
31551   {
31552     "type": "post",
31553     "url": "/api/voice/mails",
31554     "title": "Creates a new Mail",
31555     "examples": [
31556       {
31557         "title": "Example usage:",
31558         "content": "curl https://{domain}/api/voice/mails -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
31559         "type": "json"
31560       }
31561     ],
31562     "name": "CreateMails",
31563     "group": "Voice_Mails",
31564     "parameter": {
31565       "fields": {
31566         "Body": [
31567           {
31568             "group": "Body",
31569             "type": "String",
31570             "optional": true,
31571             "field": "customer_id",
31572             "description": ""
31573           },
31574           {
31575             "group": "Body",
31576             "type": "String",
31577             "optional": true,
31578             "field": "context",
31579             "description": ""
31580           },
31581           {
31582             "group": "Body",
31583             "type": "String",
31584             "optional": false,
31585             "field": "mailbox",
31586             "description": ""
31587           },
31588           {
31589             "group": "Body",
31590             "type": "String",
31591             "optional": true,
31592             "field": "password",
31593             "description": ""
31594           },
31595           {
31596             "group": "Body",
31597             "type": "String",
31598             "optional": true,
31599             "field": "fullname",
31600             "description": ""
31601           },
31602           {
31603             "group": "Body",
31604             "type": "String",
31605             "optional": true,
31606             "field": "email",
31607             "description": ""
31608           },
31609           {
31610             "group": "Body",
31611             "type": "String",
31612             "optional": true,
31613             "field": "pager",
31614             "description": ""
31615           },
31616           {
31617             "group": "Body",
31618             "type": "String",
31619             "optional": true,
31620             "field": "tz",
31621             "description": ""
31622           },
31623           {
31624             "group": "Body",
31625             "type": "String",
31626             "allowedValues": [
31627               "\"yes\"",
31628               "\"no\""
31629             ],
31630             "optional": false,
31631             "field": "attach",
31632             "description": ""
31633           },
31634           {
31635             "group": "Body",
31636             "type": "String",
31637             "allowedValues": [
31638               "\"yes\"",
31639               "\"no\""
31640             ],
31641             "optional": false,
31642             "field": "saycid",
31643             "description": ""
31644           },
31645           {
31646             "group": "Body",
31647             "type": "String",
31648             "optional": true,
31649             "field": "dialout",
31650             "description": ""
31651           },
31652           {
31653             "group": "Body",
31654             "type": "String",
31655             "optional": true,
31656             "field": "callback",
31657             "description": ""
31658           },
31659           {
31660             "group": "Body",
31661             "type": "String",
31662             "allowedValues": [
31663               "\"yes\"",
31664               "\"no\""
31665             ],
31666             "optional": false,
31667             "field": "review",
31668             "description": ""
31669           },
31670           {
31671             "group": "Body",
31672             "type": "String",
31673             "allowedValues": [
31674               "\"yes\"",
31675               "\"no\""
31676             ],
31677             "optional": false,
31678             "field": "operator",
31679             "description": ""
31680           },
31681           {
31682             "group": "Body",
31683             "type": "String",
31684             "allowedValues": [
31685               "\"yes\"",
31686               "\"no\""
31687             ],
31688             "optional": false,
31689             "field": "envelope",
31690             "description": ""
31691           },
31692           {
31693             "group": "Body",
31694             "type": "String",
31695             "allowedValues": [
31696               "\"yes\"",
31697               "\"no\""
31698             ],
31699             "optional": false,
31700             "field": "sayduration",
31701             "description": ""
31702           },
31703           {
31704             "group": "Body",
31705             "type": "String",
31706             "optional": false,
31707             "field": "saydurationm",
31708             "description": ""
31709           },
31710           {
31711             "group": "Body",
31712             "type": "String",
31713             "allowedValues": [
31714               "\"yes\"",
31715               "\"no\""
31716             ],
31717             "optional": false,
31718             "field": "sendvoicemail",
31719             "description": ""
31720           },
31721           {
31722             "group": "Body",
31723             "type": "String",
31724             "allowedValues": [
31725               "\"yes\"",
31726               "\"no\""
31727             ],
31728             "optional": false,
31729             "field": "delete",
31730             "description": ""
31731           },
31732           {
31733             "group": "Body",
31734             "type": "String",
31735             "allowedValues": [
31736               "\"yes\"",
31737               "\"no\""
31738             ],
31739             "optional": false,
31740             "field": "nextaftercmd",
31741             "description": ""
31742           },
31743           {
31744             "group": "Body",
31745             "type": "String",
31746             "allowedValues": [
31747               "\"yes\"",
31748               "\"no\""
31749             ],
31750             "optional": false,
31751             "field": "forcename",
31752             "description": ""
31753           },
31754           {
31755             "group": "Body",
31756             "type": "String",
31757             "allowedValues": [
31758               "\"yes\"",
31759               "\"no\""
31760             ],
31761             "optional": false,
31762             "field": "forcegreetings",
31763             "description": ""
31764           },
31765           {
31766             "group": "Body",
31767             "type": "String",
31768             "allowedValues": [
31769               "\"yes\"",
31770               "\"no\""
31771             ],
31772             "optional": false,
31773             "field": "hidefromdir",
31774             "description": ""
31775           },
31776           {
31777             "group": "Body",
31778             "type": "String",
31779             "optional": true,
31780             "field": "stamp",
31781             "description": ""
31782           },
31783           {
31784             "group": "Body",
31785             "type": "String",
31786             "optional": true,
31787             "field": "emailsubject",
31788             "description": ""
31789           },
31790           {
31791             "group": "Body",
31792             "type": "String",
31793             "optional": true,
31794             "field": "emailbody",
31795             "description": ""
31796           },
31797           {
31798             "group": "Body",
31799             "type": "Integer",
31800             "optional": false,
31801             "field": "maxsecs",
31802             "description": ""
31803           },
31804           {
31805             "group": "Body",
31806             "type": "Integer",
31807             "optional": false,
31808             "field": "maxmsg",
31809             "description": ""
31810           },
31811           {
31812             "group": "Body",
31813             "type": "Virtual",
31814             "optional": true,
31815             "field": "name",
31816             "description": ""
31817           }
31818         ]
31819       }
31820     },
31821     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31822     "version": "0.0.0",
31823     "filename": "server/api/voiceMail/index.js",
31824     "groupTitle": "Voice_Mails"
31825   },
31826   {
31827     "type": "delete",
31828     "url": "/api/voice/mails/{id}",
31829     "title": "Deletes a Mail",
31830     "examples": [
31831       {
31832         "title": "Example usage:",
31833         "content": "curl https://{domain}/api/voice/mails/{id} -v -u {name}:{password} -X DELETE",
31834         "type": "json"
31835       }
31836     ],
31837     "name": "DeleteMails",
31838     "group": "Voice_Mails",
31839     "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>",
31840     "version": "0.0.0",
31841     "filename": "server/api/voiceMail/index.js",
31842     "groupTitle": "Voice_Mails"
31843   },
31844   {
31845     "type": "get",
31846     "url": "/api/voice/mails",
31847     "title": "Gets a list of Mails",
31848     "examples": [
31849       {
31850         "title": "Example usage:",
31851         "content": "curl https://{domain}/api/voice/mails -v -u {name}:{password}",
31852         "type": "json"
31853       }
31854     ],
31855     "name": "GetMails",
31856     "group": "Voice_Mails",
31857     "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>",
31858     "version": "0.0.0",
31859     "filename": "server/api/voiceMail/index.js",
31860     "groupTitle": "Voice_Mails"
31861   },
31862   {
31863     "type": "get",
31864     "url": "/api/voice/mails/{id}",
31865     "title": "Gets a single Mail",
31866     "examples": [
31867       {
31868         "title": "Example usage:",
31869         "content": "curl https://{domain}/api/voice/mails/{id} -v -u {name}:{password}",
31870         "type": "json"
31871       }
31872     ],
31873     "name": "ShowMails",
31874     "group": "Voice_Mails",
31875     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31876     "version": "0.0.0",
31877     "filename": "server/api/voiceMail/index.js",
31878     "groupTitle": "Voice_Mails"
31879   },
31880   {
31881     "type": "get",
31882     "url": "/api/voice/mails/{id}/messages",
31883     "title": "Gets voice mail messages",
31884     "examples": [
31885       {
31886         "title": "Example usage:",
31887         "content": "curl https://{domain}/api/voice/mails/{id}/messages -v -u {name}:{password} -X GET",
31888         "type": "json"
31889       }
31890     ],
31891     "name": "getMessages",
31892     "group": "Voice_Mails",
31893     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31894     "version": "0.0.0",
31895     "filename": "server/api/voiceMail/index.js",
31896     "groupTitle": "Voice_Mails"
31897   },
31898   {
31899     "type": "put",
31900     "url": "/api/voice/mails/{id}",
31901     "title": "Update an existing Mail",
31902     "examples": [
31903       {
31904         "title": "Example usage:",
31905         "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",
31906         "type": "json"
31907       }
31908     ],
31909     "name": "updateMails",
31910     "group": "Voice_Mails",
31911     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31912     "version": "0.0.0",
31913     "filename": "server/api/voiceMail/index.js",
31914     "groupTitle": "Voice_Mails"
31915   },
31916   {
31917     "type": "post",
31918     "url": "/api/voice/mails/messages",
31919     "title": "Creates a new Message",
31920     "examples": [
31921       {
31922         "title": "Example usage:",
31923         "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",
31924         "type": "json"
31925       }
31926     ],
31927     "name": "CreateMessages",
31928     "group": "Voice_Messages",
31929     "parameter": {
31930       "fields": {
31931         "Body": [
31932           {
31933             "group": "Body",
31934             "type": "Virtual",
31935             "optional": true,
31936             "field": "name",
31937             "description": ""
31938           },
31939           {
31940             "group": "Body",
31941             "type": "Integer",
31942             "optional": false,
31943             "field": "msgnum",
31944             "description": ""
31945           },
31946           {
31947             "group": "Body",
31948             "type": "String",
31949             "optional": true,
31950             "field": "dir",
31951             "description": ""
31952           },
31953           {
31954             "group": "Body",
31955             "type": "String",
31956             "optional": true,
31957             "field": "context",
31958             "description": ""
31959           },
31960           {
31961             "group": "Body",
31962             "type": "String",
31963             "optional": true,
31964             "field": "macrocontext",
31965             "description": ""
31966           },
31967           {
31968             "group": "Body",
31969             "type": "String",
31970             "optional": true,
31971             "field": "callerid",
31972             "description": ""
31973           },
31974           {
31975             "group": "Body",
31976             "type": "String",
31977             "optional": true,
31978             "field": "origtime",
31979             "description": ""
31980           },
31981           {
31982             "group": "Body",
31983             "type": "String",
31984             "optional": true,
31985             "field": "duration",
31986             "description": ""
31987           },
31988           {
31989             "group": "Body",
31990             "type": "String",
31991             "optional": true,
31992             "field": "mailboxuser",
31993             "description": ""
31994           },
31995           {
31996             "group": "Body",
31997             "type": "String",
31998             "optional": true,
31999             "field": "mailboxcontext",
32000             "description": ""
32001           },
32002           {
32003             "group": "Body",
32004             "type": "Blob",
32005             "optional": true,
32006             "field": "recording",
32007             "description": ""
32008           },
32009           {
32010             "group": "Body",
32011             "type": "String",
32012             "optional": true,
32013             "field": "flag",
32014             "description": ""
32015           },
32016           {
32017             "group": "Body",
32018             "type": "String",
32019             "optional": true,
32020             "field": "msg_id",
32021             "description": ""
32022           },
32023           {
32024             "group": "Body",
32025             "type": "String",
32026             "optional": true,
32027             "field": "stamp",
32028             "description": ""
32029           }
32030         ]
32031       }
32032     },
32033     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32034     "version": "0.0.0",
32035     "filename": "server/api/voiceMailMessage/index.js",
32036     "groupTitle": "Voice_Messages"
32037   },
32038   {
32039     "type": "delete",
32040     "url": "/api/voice/mails/messages/{id}",
32041     "title": "Deletes a Message",
32042     "examples": [
32043       {
32044         "title": "Example usage:",
32045         "content": "curl https://{domain}/api/voice/mails/messages/{id} -v -u {name}:{password} -X DELETE",
32046         "type": "json"
32047       }
32048     ],
32049     "name": "DeleteMessages",
32050     "group": "Voice_Messages",
32051     "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>",
32052     "version": "0.0.0",
32053     "filename": "server/api/voiceMailMessage/index.js",
32054     "groupTitle": "Voice_Messages"
32055   },
32056   {
32057     "type": "get",
32058     "url": "/api/voice/mails/messages",
32059     "title": "Gets a list of Messages",
32060     "examples": [
32061       {
32062         "title": "Example usage:",
32063         "content": "curl https://{domain}/api/voice/mails/messages -v -u {name}:{password}",
32064         "type": "json"
32065       }
32066     ],
32067     "name": "GetMessages",
32068     "group": "Voice_Messages",
32069     "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>",
32070     "version": "0.0.0",
32071     "filename": "server/api/voiceMailMessage/index.js",
32072     "groupTitle": "Voice_Messages"
32073   },
32074   {
32075     "type": "get",
32076     "url": "/api/voice/mails/messages/{id}",
32077     "title": "Gets a single Message",
32078     "examples": [
32079       {
32080         "title": "Example usage:",
32081         "content": "curl https://{domain}/api/voice/mails/messages/{id} -v -u {name}:{password}",
32082         "type": "json"
32083       }
32084     ],
32085     "name": "ShowMessages",
32086     "group": "Voice_Messages",
32087     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32088     "version": "0.0.0",
32089     "filename": "server/api/voiceMailMessage/index.js",
32090     "groupTitle": "Voice_Messages"
32091   },
32092   {
32093     "type": "get",
32094     "url": "voice/mails/messages/{id}/download",
32095     "title": "Download Voice Message",
32096     "examples": [
32097       {
32098         "title": "Example usage:",
32099         "content": "curl https://{domain}voice/mails/messages/{id}/download -v -u {name}:{password} -X GET",
32100         "type": "json"
32101       }
32102     ],
32103     "name": "download",
32104     "group": "Voice_Messages",
32105     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32106     "version": "0.0.0",
32107     "filename": "server/api/voiceMailMessage/index.js",
32108     "groupTitle": "Voice_Messages"
32109   },
32110   {
32111     "type": "put",
32112     "url": "/api/voice/mails/messages/{id}",
32113     "title": "Update an existing Message",
32114     "examples": [
32115       {
32116         "title": "Example usage:",
32117         "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",
32118         "type": "json"
32119       }
32120     ],
32121     "name": "updateMessages",
32122     "group": "Voice_Messages",
32123     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32124     "version": "0.0.0",
32125     "filename": "server/api/voiceMailMessage/index.js",
32126     "groupTitle": "Voice_Messages"
32127   },
32128   {
32129     "type": "post",
32130     "url": "/api/voice/prefixes/{id}/teams",
32131     "title": "Add teams to voice prefix",
32132     "examples": [
32133       {
32134         "title": "Example usage:",
32135         "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",
32136         "type": "json"
32137       }
32138     ],
32139     "name": "AddTeams",
32140     "group": "Voice_Prefix",
32141     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32142     "version": "0.0.0",
32143     "filename": "server/api/voicePrefix/index.js",
32144     "groupTitle": "Voice_Prefix"
32145   },
32146   {
32147     "type": "get",
32148     "url": "/api/voice/prefixes/{id}/teams",
32149     "title": "Gets voice prefix team",
32150     "examples": [
32151       {
32152         "title": "Example usage:",
32153         "content": "curl https://{domain}/api/voice/prefixes/{id}/teams -v -u {name}:{password}  -X GET",
32154         "type": "json"
32155       }
32156     ],
32157     "name": "GetTeams",
32158     "group": "Voice_Prefix",
32159     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32160     "version": "0.0.0",
32161     "filename": "server/api/voicePrefix/index.js",
32162     "groupTitle": "Voice_Prefix"
32163   },
32164   {
32165     "type": "post",
32166     "url": "/api/voice/prefixes/{id}/users",
32167     "title": "Add agents to a prefix",
32168     "examples": [
32169       {
32170         "title": "Example usage:",
32171         "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",
32172         "type": "json"
32173       }
32174     ],
32175     "name": "AddAgents",
32176     "group": "Voice_Prefixes",
32177     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32178     "version": "0.0.0",
32179     "filename": "server/api/voicePrefix/index.js",
32180     "groupTitle": "Voice_Prefixes"
32181   },
32182   {
32183     "type": "delete",
32184     "url": "/api/voice/prefixes/{id}",
32185     "title": "Deletes a Prefix",
32186     "examples": [
32187       {
32188         "title": "Example usage:",
32189         "content": "curl https://{domain}/api/voice/prefixes/{id} -v -u {name}:{password} -X DELETE",
32190         "type": "json"
32191       }
32192     ],
32193     "name": "DeletePrefixes",
32194     "group": "Voice_Prefixes",
32195     "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>",
32196     "version": "0.0.0",
32197     "filename": "server/api/voicePrefix/index.js",
32198     "groupTitle": "Voice_Prefixes"
32199   },
32200   {
32201     "type": "get",
32202     "url": "/api/voice/prefixes/describe",
32203     "title": "Gets table info about Prefixes",
32204     "examples": [
32205       {
32206         "title": "Example usage:",
32207         "content": "curl https://{domain}/api/voice/prefixes/describe -v -u {name}:{password}",
32208         "type": "json"
32209       }
32210     ],
32211     "name": "DescribePrefixes",
32212     "group": "Voice_Prefixes",
32213     "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>",
32214     "version": "0.0.0",
32215     "filename": "server/api/voicePrefix/index.js",
32216     "groupTitle": "Voice_Prefixes"
32217   },
32218   {
32219     "type": "get",
32220     "url": "/api/voice/prefixes/{id}/users",
32221     "title": "Gets agents from prefix",
32222     "examples": [
32223       {
32224         "title": "Example usage:",
32225         "content": "curl https://{domain}/api/voice/prefixes/{id}/users -v -u {name}:{password} -X GET",
32226         "type": "json"
32227       }
32228     ],
32229     "name": "GetAgents",
32230     "group": "Voice_Prefixes",
32231     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32232     "version": "0.0.0",
32233     "filename": "server/api/voicePrefix/index.js",
32234     "groupTitle": "Voice_Prefixes"
32235   },
32236   {
32237     "type": "get",
32238     "url": "/api/voice/prefixes",
32239     "title": "Gets a list of Prefixes",
32240     "examples": [
32241       {
32242         "title": "Example usage:",
32243         "content": "curl https://{domain}/api/voice/prefixes -v -u {name}:{password}",
32244         "type": "json"
32245       }
32246     ],
32247     "name": "GetPrefixes",
32248     "group": "Voice_Prefixes",
32249     "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>",
32250     "version": "0.0.0",
32251     "filename": "server/api/voicePrefix/index.js",
32252     "groupTitle": "Voice_Prefixes"
32253   },
32254   {
32255     "type": "delete",
32256     "url": "/api/voice/prefixes/{id}/users",
32257     "title": "Removes agents from a prefix",
32258     "examples": [
32259       {
32260         "title": "Example usage:",
32261         "content": "curl https://{domain}/api/voice/prefixes/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
32262         "type": "json"
32263       }
32264     ],
32265     "name": "RemoveAgents",
32266     "group": "Voice_Prefixes",
32267     "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>",
32268     "version": "0.0.0",
32269     "filename": "server/api/voicePrefix/index.js",
32270     "groupTitle": "Voice_Prefixes"
32271   },
32272   {
32273     "type": "get",
32274     "url": "/api/voice/prefixes/{id}",
32275     "title": "Gets a single Prefix",
32276     "examples": [
32277       {
32278         "title": "Example usage:",
32279         "content": "curl https://{domain}/api/voice/prefixes/{id} -v -u {name}:{password}",
32280         "type": "json"
32281       }
32282     ],
32283     "name": "ShowPrefixes",
32284     "group": "Voice_Prefixes",
32285     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32286     "version": "0.0.0",
32287     "filename": "server/api/voicePrefix/index.js",
32288     "groupTitle": "Voice_Prefixes"
32289   },
32290   {
32291     "type": "put",
32292     "url": "/api/voice/prefixes/{id}",
32293     "title": "Update an existing prefix",
32294     "examples": [
32295       {
32296         "title": "Example usage:",
32297         "content": "curl https://{domain}/api/voice/prefixes/{id} -v -u {name}:{password} -X PUT",
32298         "type": "json"
32299       }
32300     ],
32301     "name": "Update",
32302     "group": "Voice_Prefixes",
32303     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32304     "version": "0.0.0",
32305     "filename": "server/api/voicePrefix/index.js",
32306     "groupTitle": "Voice_Prefixes"
32307   },
32308   {
32309     "type": "post",
32310     "url": "/api/voice/prefixes",
32311     "title": "Create a prefix",
32312     "examples": [
32313       {
32314         "title": "Example usage:",
32315         "content": "curl https://{domain}/api/voice/prefixes -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
32316         "type": "json"
32317       }
32318     ],
32319     "name": "create",
32320     "group": "Voice_Prefixes",
32321     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32322     "version": "0.0.0",
32323     "filename": "server/api/voicePrefix/index.js",
32324     "groupTitle": "Voice_Prefixes"
32325   },
32326   {
32327     "type": "get",
32328     "url": "/api/voice/queues/reports/describe",
32329     "title": "Gets table info about Queue Reports",
32330     "examples": [
32331       {
32332         "title": "Example usage:",
32333         "content": "curl https://{domain}/api/voice/queues/reports/describe -v -u {name}:{password}",
32334         "type": "json"
32335       }
32336     ],
32337     "name": "DescribeQueue_Reports",
32338     "group": "Voice_Queue_Reports",
32339     "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>",
32340     "version": "0.0.0",
32341     "filename": "server/api/voiceQueueReport/index.js",
32342     "groupTitle": "Voice_Queue_Reports"
32343   },
32344   {
32345     "type": "get",
32346     "url": "/api/voice/queues/reports",
32347     "title": "Gets a list of Queue Reports",
32348     "examples": [
32349       {
32350         "title": "Example usage:",
32351         "content": "curl https://{domain}/api/voice/queues/reports -v -u {name}:{password}",
32352         "type": "json"
32353       }
32354     ],
32355     "name": "GetQueue_Reports",
32356     "group": "Voice_Queue_Reports",
32357     "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>",
32358     "version": "0.0.0",
32359     "filename": "server/api/voiceQueueReport/index.js",
32360     "groupTitle": "Voice_Queue_Reports"
32361   },
32362   {
32363     "type": "get",
32364     "url": "/api/voice/queues/reports/{id}",
32365     "title": "Gets a single Queue Report",
32366     "examples": [
32367       {
32368         "title": "Example usage:",
32369         "content": "curl https://{domain}/api/voice/queues/reports/{id} -v -u {name}:{password}",
32370         "type": "json"
32371       }
32372     ],
32373     "name": "ShowQueue_Reports",
32374     "group": "Voice_Queue_Reports",
32375     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32376     "version": "0.0.0",
32377     "filename": "server/api/voiceQueueReport/index.js",
32378     "groupTitle": "Voice_Queue_Reports"
32379   },
32380   {
32381     "type": "get",
32382     "url": "/api/voice/queues/reports/index",
32383     "title": "Get Voice Queues Report",
32384     "examples": [
32385       {
32386         "title": "Example usage:",
32387         "content": "curl https://{domain}/api/voice/queues/reports/index -v -u {name}:{password} -X GET",
32388         "type": "json"
32389       }
32390     ],
32391     "name": "getVoiceQueuesReport",
32392     "group": "Voice_Queue_Reports",
32393     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32394     "version": "0.0.0",
32395     "filename": "server/api/voiceQueueReport/index.js",
32396     "groupTitle": "Voice_Queue_Reports"
32397   },
32398   {
32399     "type": "post",
32400     "url": "/api/voice/queues/{id}/users",
32401     "title": "Add agents to queue",
32402     "examples": [
32403       {
32404         "title": "Example usage:",
32405         "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",
32406         "type": "json"
32407       }
32408     ],
32409     "name": "AddAgents",
32410     "group": "Voice_Queues",
32411     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32412     "version": "0.0.0",
32413     "filename": "server/api/voiceQueue/index.js",
32414     "groupTitle": "Voice_Queues"
32415   },
32416   {
32417     "type": "post",
32418     "url": "/api/voice/queues/{id}/blacklists",
32419     "title": "Add blacklists to a queue",
32420     "examples": [
32421       {
32422         "title": "Example usage:",
32423         "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",
32424         "type": "json"
32425       }
32426     ],
32427     "name": "AddBlackLists",
32428     "group": "Voice_Queues",
32429     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32430     "version": "0.0.0",
32431     "filename": "server/api/voiceQueue/index.js",
32432     "groupTitle": "Voice_Queues"
32433   },
32434   {
32435     "type": "post",
32436     "url": "/api/voice/queues/{id}/lists",
32437     "title": "Add lists to a queue",
32438     "examples": [
32439       {
32440         "title": "Example usage:",
32441         "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",
32442         "type": "json"
32443       }
32444     ],
32445     "name": "AddLists",
32446     "group": "Voice_Queues",
32447     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32448     "version": "0.0.0",
32449     "filename": "server/api/voiceQueue/index.js",
32450     "groupTitle": "Voice_Queues"
32451   },
32452   {
32453     "type": "post",
32454     "url": "/api/voice/queues/{id}/teams",
32455     "title": "Add teams to queue",
32456     "examples": [
32457       {
32458         "title": "Example usage:",
32459         "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",
32460         "type": "json"
32461       }
32462     ],
32463     "name": "AddTeams",
32464     "group": "Voice_Queues",
32465     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32466     "version": "0.0.0",
32467     "filename": "server/api/voiceQueue/index.js",
32468     "groupTitle": "Voice_Queues"
32469   },
32470   {
32471     "type": "post",
32472     "url": "/api/voice/queues/clone",
32473     "title": "Clone an existing Queue",
32474     "examples": [
32475       {
32476         "title": "Example usage:",
32477         "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",
32478         "type": "json"
32479       }
32480     ],
32481     "name": "CloneQueues",
32482     "group": "Voice_Queues",
32483     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32484     "version": "0.0.0",
32485     "filename": "server/api/voiceQueue/index.js",
32486     "groupTitle": "Voice_Queues"
32487   },
32488   {
32489     "type": "post",
32490     "url": "/api/voice/queues",
32491     "title": "Creates a new Queue",
32492     "examples": [
32493       {
32494         "title": "Example usage:",
32495         "content": "curl https://{domain}/api/voice/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
32496         "type": "json"
32497       }
32498     ],
32499     "name": "CreateQueues",
32500     "group": "Voice_Queues",
32501     "parameter": {
32502       "fields": {
32503         "Body": [
32504           {
32505             "group": "Body",
32506             "type": "String",
32507             "optional": false,
32508             "field": "name",
32509             "description": ""
32510           },
32511           {
32512             "group": "Body",
32513             "type": "String",
32514             "allowedValues": [
32515               "\"inbound\"",
32516               "\"outbound\""
32517             ],
32518             "optional": false,
32519             "field": "type",
32520             "description": ""
32521           },
32522           {
32523             "group": "Body",
32524             "type": "String",
32525             "optional": true,
32526             "field": "musiconhold",
32527             "description": ""
32528           },
32529           {
32530             "group": "Body",
32531             "type": "String",
32532             "optional": true,
32533             "field": "announce",
32534             "description": ""
32535           },
32536           {
32537             "group": "Body",
32538             "type": "String",
32539             "allowedValues": [
32540               "\"rr\"",
32541               "\"ringall\"",
32542               "\"leastrecent\"",
32543               "\"fewestcalls\"",
32544               "\"random\"",
32545               "\"rrmemory\"",
32546               "\"linear\"",
32547               "\"wrandom\"",
32548               "\"rrordered\""
32549             ],
32550             "optional": false,
32551             "field": "strategy",
32552             "description": ""
32553           },
32554           {
32555             "group": "Body",
32556             "type": "Integer",
32557             "optional": true,
32558             "field": "servicelevel",
32559             "description": ""
32560           },
32561           {
32562             "group": "Body",
32563             "type": "String",
32564             "optional": true,
32565             "field": "context",
32566             "description": ""
32567           },
32568           {
32569             "group": "Body",
32570             "type": "Integer",
32571             "optional": true,
32572             "field": "penaltymemberslimit",
32573             "description": ""
32574           },
32575           {
32576             "group": "Body",
32577             "type": "Integer",
32578             "optional": true,
32579             "field": "timeout",
32580             "description": ""
32581           },
32582           {
32583             "group": "Body",
32584             "type": "Integer",
32585             "optional": true,
32586             "field": "retry",
32587             "description": ""
32588           },
32589           {
32590             "group": "Body",
32591             "type": "String",
32592             "optional": true,
32593             "field": "timeoutpriority",
32594             "description": ""
32595           },
32596           {
32597             "group": "Body",
32598             "type": "Integer",
32599             "optional": true,
32600             "field": "weight",
32601             "description": ""
32602           },
32603           {
32604             "group": "Body",
32605             "type": "Integer",
32606             "optional": true,
32607             "field": "wrapuptime",
32608             "description": ""
32609           },
32610           {
32611             "group": "Body",
32612             "type": "String",
32613             "allowedValues": [
32614               "\"yes\"",
32615               "\"no\""
32616             ],
32617             "optional": true,
32618             "field": "autofill",
32619             "description": ""
32620           },
32621           {
32622             "group": "Body",
32623             "type": "String",
32624             "allowedValues": [
32625               "\"yes\"",
32626               "\"no\"",
32627               "\"all\""
32628             ],
32629             "optional": true,
32630             "field": "autopause",
32631             "description": ""
32632           },
32633           {
32634             "group": "Body",
32635             "type": "Integer",
32636             "optional": true,
32637             "field": "autopausedelay",
32638             "description": ""
32639           },
32640           {
32641             "group": "Body",
32642             "type": "String",
32643             "allowedValues": [
32644               "\"yes\"",
32645               "\"no\""
32646             ],
32647             "optional": true,
32648             "field": "autopausebusy",
32649             "description": ""
32650           },
32651           {
32652             "group": "Body",
32653             "type": "String",
32654             "allowedValues": [
32655               "\"yes\"",
32656               "\"no\""
32657             ],
32658             "optional": true,
32659             "field": "autopauseunavail",
32660             "description": ""
32661           },
32662           {
32663             "group": "Body",
32664             "type": "Integer",
32665             "optional": true,
32666             "field": "maxlen",
32667             "description": ""
32668           },
32669           {
32670             "group": "Body",
32671             "type": "String",
32672             "allowedValues": [
32673               "\"yes\"",
32674               "\"no\""
32675             ],
32676             "optional": true,
32677             "field": "setinterfacevar",
32678             "description": ""
32679           },
32680           {
32681             "group": "Body",
32682             "type": "String",
32683             "allowedValues": [
32684               "\"yes\"",
32685               "\"no\""
32686             ],
32687             "optional": true,
32688             "field": "setqueueentryvar",
32689             "description": ""
32690           },
32691           {
32692             "group": "Body",
32693             "type": "String",
32694             "allowedValues": [
32695               "\"yes\"",
32696               "\"no\""
32697             ],
32698             "optional": true,
32699             "field": "setqueuevar",
32700             "description": ""
32701           },
32702           {
32703             "group": "Body",
32704             "type": "String",
32705             "allowedValues": [
32706               "\"yes\"",
32707               "\"no\""
32708             ],
32709             "optional": true,
32710             "field": "eventmemberstatus",
32711             "description": ""
32712           },
32713           {
32714             "group": "Body",
32715             "type": "String",
32716             "optional": true,
32717             "field": "membermacro",
32718             "description": ""
32719           },
32720           {
32721             "group": "Body",
32722             "type": "String",
32723             "optional": true,
32724             "field": "membergosub",
32725             "description": ""
32726           },
32727           {
32728             "group": "Body",
32729             "type": "Integer",
32730             "optional": true,
32731             "field": "announce_frequency",
32732             "description": ""
32733           },
32734           {
32735             "group": "Body",
32736             "type": "Integer",
32737             "optional": true,
32738             "field": "min_announce_frequency",
32739             "description": ""
32740           },
32741           {
32742             "group": "Body",
32743             "type": "Integer",
32744             "optional": true,
32745             "field": "periodic_announce_frequency",
32746             "description": ""
32747           },
32748           {
32749             "group": "Body",
32750             "type": "String",
32751             "allowedValues": [
32752               "\"yes\"",
32753               "\"no\""
32754             ],
32755             "optional": true,
32756             "field": "random_periodic_announce",
32757             "description": ""
32758           },
32759           {
32760             "group": "Body",
32761             "type": "String",
32762             "allowedValues": [
32763               "\"yes\"",
32764               "\"no\""
32765             ],
32766             "optional": true,
32767             "field": "relative_periodic_announce",
32768             "description": ""
32769           },
32770           {
32771             "group": "Body",
32772             "type": "String",
32773             "allowedValues": [
32774               "\"yes\"",
32775               "\"no\"",
32776               "\"once\""
32777             ],
32778             "optional": true,
32779             "field": "announce_holdtime",
32780             "description": ""
32781           },
32782           {
32783             "group": "Body",
32784             "type": "String",
32785             "optional": true,
32786             "field": "announce_position",
32787             "description": ""
32788           },
32789           {
32790             "group": "Body",
32791             "type": "String",
32792             "allowedValues": [
32793               "\"yes\"",
32794               "\"no\""
32795             ],
32796             "optional": true,
32797             "field": "announce_to_first_user",
32798             "description": ""
32799           },
32800           {
32801             "group": "Body",
32802             "type": "Integer",
32803             "optional": true,
32804             "field": "announce_position_limit",
32805             "description": ""
32806           },
32807           {
32808             "group": "Body",
32809             "type": "String",
32810             "allowedValues": [
32811               "\"0\"",
32812               "\"5\"",
32813               "\"10\"",
32814               "\"15\"",
32815               "\"20\"",
32816               "\"30\""
32817             ],
32818             "optional": true,
32819             "field": "announce_round_seconds",
32820             "description": ""
32821           },
32822           {
32823             "group": "Body",
32824             "type": "String",
32825             "optional": true,
32826             "field": "monitor_format",
32827             "description": ""
32828           },
32829           {
32830             "group": "Body",
32831             "type": "String",
32832             "optional": true,
32833             "field": "monitor_type",
32834             "description": ""
32835           },
32836           {
32837             "group": "Body",
32838             "type": "String",
32839             "optional": true,
32840             "field": "queue_youarenext",
32841             "description": ""
32842           },
32843           {
32844             "group": "Body",
32845             "type": "String",
32846             "optional": true,
32847             "field": "queue_thereare",
32848             "description": ""
32849           },
32850           {
32851             "group": "Body",
32852             "type": "String",
32853             "optional": true,
32854             "field": "queue_callswaiting",
32855             "description": ""
32856           },
32857           {
32858             "group": "Body",
32859             "type": "String",
32860             "optional": true,
32861             "field": "queue_holdtime",
32862             "description": ""
32863           },
32864           {
32865             "group": "Body",
32866             "type": "String",
32867             "optional": true,
32868             "field": "queue_minute",
32869             "description": ""
32870           },
32871           {
32872             "group": "Body",
32873             "type": "String",
32874             "optional": true,
32875             "field": "queue_minutes",
32876             "description": ""
32877           },
32878           {
32879             "group": "Body",
32880             "type": "String",
32881             "optional": true,
32882             "field": "queue_seconds",
32883             "description": ""
32884           },
32885           {
32886             "group": "Body",
32887             "type": "String",
32888             "optional": true,
32889             "field": "queue_thankyou",
32890             "description": ""
32891           },
32892           {
32893             "group": "Body",
32894             "type": "String",
32895             "optional": true,
32896             "field": "queue_reporthold",
32897             "description": ""
32898           },
32899           {
32900             "group": "Body",
32901             "type": "String",
32902             "optional": true,
32903             "field": "queue_quantity1",
32904             "description": ""
32905           },
32906           {
32907             "group": "Body",
32908             "type": "String",
32909             "optional": true,
32910             "field": "queue_quantity2",
32911             "description": ""
32912           },
32913           {
32914             "group": "Body",
32915             "type": "String",
32916             "optional": true,
32917             "field": "queue_periodic_announce",
32918             "description": ""
32919           },
32920           {
32921             "group": "Body",
32922             "type": "String",
32923             "optional": true,
32924             "field": "queue_less_than",
32925             "description": ""
32926           },
32927           {
32928             "group": "Body",
32929             "type": "Text",
32930             "optional": true,
32931             "field": "periodic_announce",
32932             "description": ""
32933           },
32934           {
32935             "group": "Body",
32936             "type": "String",
32937             "optional": true,
32938             "field": "joinempty",
32939             "description": ""
32940           },
32941           {
32942             "group": "Body",
32943             "type": "String",
32944             "optional": true,
32945             "field": "leavewhenempty",
32946             "description": ""
32947           },
32948           {
32949             "group": "Body",
32950             "type": "String",
32951             "allowedValues": [
32952               "\"yes\"",
32953               "\"no\""
32954             ],
32955             "optional": true,
32956             "field": "reportholdtime",
32957             "description": ""
32958           },
32959           {
32960             "group": "Body",
32961             "type": "String",
32962             "allowedValues": [
32963               "\"yes\"",
32964               "\"no\""
32965             ],
32966             "optional": true,
32967             "field": "ringinuse",
32968             "description": ""
32969           },
32970           {
32971             "group": "Body",
32972             "type": "Integer",
32973             "optional": true,
32974             "field": "memberdelay",
32975             "description": ""
32976           },
32977           {
32978             "group": "Body",
32979             "type": "String",
32980             "allowedValues": [
32981               "\"yes\"",
32982               "\"no\""
32983             ],
32984             "optional": true,
32985             "field": "timeoutrestart",
32986             "description": ""
32987           },
32988           {
32989             "group": "Body",
32990             "type": "String",
32991             "optional": true,
32992             "field": "defaultrule",
32993             "description": ""
32994           },
32995           {
32996             "group": "Body",
32997             "type": "String",
32998             "optional": true,
32999             "field": "description",
33000             "description": ""
33001           },
33002           {
33003             "group": "Body",
33004             "type": "Boolean",
33005             "optional": true,
33006             "field": "acw",
33007             "description": ""
33008           },
33009           {
33010             "group": "Body",
33011             "type": "Integer",
33012             "optional": true,
33013             "field": "acwTimeout",
33014             "description": ""
33015           },
33016           {
33017             "group": "Body",
33018             "type": "Boolean",
33019             "optional": true,
33020             "field": "dialActive",
33021             "description": "<p>Active/Disactive Campaign</p>"
33022           },
33023           {
33024             "group": "Body",
33025             "type": "String",
33026             "allowedValues": [
33027               "\"preview\"",
33028               "\"progressive\"",
33029               "\"power\"",
33030               "\"predictive\"",
33031               "\"booked\""
33032             ],
33033             "optional": true,
33034             "field": "dialMethod",
33035             "description": "<p>Dial Method.</p>"
33036           },
33037           {
33038             "group": "Body",
33039             "type": "Integer",
33040             "optional": true,
33041             "field": "dialLimitChannel",
33042             "description": "<p>Max 9999 channels, 0 means unlimited.</p>"
33043           },
33044           {
33045             "group": "Body",
33046             "type": "Integer",
33047             "optional": true,
33048             "field": "dialLimitQueue",
33049             "description": "<p>Max 9999 member in queue(min:1, max:9999), 0 means unlimited.</p>"
33050           },
33051           {
33052             "group": "Body",
33053             "type": "Float",
33054             "optional": true,
33055             "field": "dialPowerLevel",
33056             "description": "<p>Power Level: Calls for agents (min:1, max:10).</p>"
33057           },
33058           {
33059             "group": "Body",
33060             "type": "String",
33061             "allowedValues": [
33062               "\"agentBusyFactor\"",
33063               "\"dropRate\""
33064             ],
33065             "optional": true,
33066             "field": "dialPredictiveOptimization",
33067             "description": "<p>Only for predictive method.</p>"
33068           },
33069           {
33070             "group": "Body",
33071             "type": "Float",
33072             "optional": true,
33073             "field": "dialPredictiveOptimizationPercentage",
33074             "description": "<p>Predictive Optimization Percentage (min: 1, max: 95)</p>"
33075           },
33076           {
33077             "group": "Body",
33078             "type": "Integer",
33079             "optional": true,
33080             "field": "dialPredictiveInterval",
33081             "description": "<p>Interval Predictive Minutes (min:5 max:30)</p>"
33082           },
33083           {
33084             "group": "Body",
33085             "type": "String",
33086             "optional": true,
33087             "field": "dialOriginateCallerIdName",
33088             "description": ""
33089           },
33090           {
33091             "group": "Body",
33092             "type": "String",
33093             "optional": true,
33094             "field": "dialOriginateCallerIdNumber",
33095             "description": ""
33096           },
33097           {
33098             "group": "Body",
33099             "type": "Integer",
33100             "optional": true,
33101             "field": "dialOriginateTimeout",
33102             "description": "<p>Originate Timeout Seconds (min:1, max:999)</p>"
33103           },
33104           {
33105             "group": "Body",
33106             "type": "String",
33107             "optional": true,
33108             "field": "dialQueueOptions",
33109             "description": "<p>https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_Queue</p>"
33110           },
33111           {
33112             "group": "Body",
33113             "type": "Integer",
33114             "optional": true,
33115             "field": "dialQueueTimeout",
33116             "description": "<p>Queue Timeout Seconds (min:1, max:999)</p>"
33117           },
33118           {
33119             "group": "Body",
33120             "type": "String",
33121             "optional": true,
33122             "field": "dialQueueProject",
33123             "description": "<p>AGI queue option (use: agi://127.0.0.1/square,&lt;project_name&gt;)</p>"
33124           },
33125           {
33126             "group": "Body",
33127             "type": "Integer",
33128             "optional": true,
33129             "field": "dialCongestionMaxRetry",
33130             "description": "<p>#Congestion Retry (min:1, max:999)</p>"
33131           },
33132           {
33133             "group": "Body",
33134             "type": "Integer",
33135             "optional": true,
33136             "field": "dialCongestionRetryFrequency",
33137             "description": "<p>Congestion Retry Frequency Minutes (min:1, max:99999)</p>"
33138           },
33139           {
33140             "group": "Body",
33141             "type": "Integer",
33142             "optional": true,
33143             "field": "dialBusyMaxRetry",
33144             "description": "<p>#Busy Retry (min:1, max:999)</p>"
33145           },
33146           {
33147             "group": "Body",
33148             "type": "Integer",
33149             "optional": true,
33150             "field": "dialBusyRetryFrequency",
33151             "description": "<p>Busy Retry Frequency Minutes (min:1, max:99999)</p>"
33152           },
33153           {
33154             "group": "Body",
33155             "type": "Integer",
33156             "optional": true,
33157             "field": "dialNoAnswerMaxRetry",
33158             "description": "<p>#NoAnswer Retry (min:1, max:999)</p>"
33159           },
33160           {
33161             "group": "Body",
33162             "type": "Integer",
33163             "optional": true,
33164             "field": "dialNoAnswerRetryFrequency",
33165             "description": "<p>NoAnswer Retry Frequency Minutes (min:1, max:99999)</p>"
33166           },
33167           {
33168             "group": "Body",
33169             "type": "Integer",
33170             "optional": true,
33171             "field": "dialGlobalMaxRetry",
33172             "description": "<p>#Global Max Retry (min:1, max:999)</p>"
33173           },
33174           {
33175             "group": "Body",
33176             "type": "String",
33177             "optional": true,
33178             "field": "dialTimezone",
33179             "description": ""
33180           },
33181           {
33182             "group": "Body",
33183             "type": "String",
33184             "optional": true,
33185             "field": "dialGlobalInterval",
33186             "description": ""
33187           },
33188           {
33189             "group": "Body",
33190             "type": "String",
33191             "optional": true,
33192             "field": "dialPrefix",
33193             "description": ""
33194           },
33195           {
33196             "group": "Body",
33197             "type": "String",
33198             "allowedValues": [
33199               "\"always\"",
33200               "\"never\"",
33201               "\"onlyIfOpen\""
33202             ],
33203             "optional": true,
33204             "field": "dialCheckDuplicateType",
33205             "description": ""
33206           },
33207           {
33208             "group": "Body",
33209             "type": "Boolean",
33210             "optional": true,
33211             "field": "dialAMDActive",
33212             "description": "<p>Active/Disactive AMD</p>"
33213           },
33214           {
33215             "group": "Body",
33216             "type": "Integer",
33217             "optional": true,
33218             "field": "dialAMDInitialSilence",
33219             "description": "<p>#AMD Initial Silence</p>"
33220           },
33221           {
33222             "group": "Body",
33223             "type": "Integer",
33224             "optional": true,
33225             "field": "dialAMDGreeting",
33226             "description": "<p>#AMD Greeting</p>"
33227           },
33228           {
33229             "group": "Body",
33230             "type": "Integer",
33231             "optional": true,
33232             "field": "dialAMDAfterGreetingSilence",
33233             "description": "<p>#AMD After Greeting Silence</p>"
33234           },
33235           {
33236             "group": "Body",
33237             "type": "Integer",
33238             "optional": true,
33239             "field": "dialAMDTotalAnalysisTime",
33240             "description": "<p>#AMD Total Analysis Time</p>"
33241           },
33242           {
33243             "group": "Body",
33244             "type": "Integer",
33245             "optional": true,
33246             "field": "dialAMDMinWordLength",
33247             "description": "<p>#AMD Min Word Length</p>"
33248           },
33249           {
33250             "group": "Body",
33251             "type": "Integer",
33252             "optional": true,
33253             "field": "dialAMDBetweenWordsSilence",
33254             "description": "<p>#AMD Between Words Silence</p>"
33255           },
33256           {
33257             "group": "Body",
33258             "type": "Integer",
33259             "optional": true,
33260             "field": "dialAMDMaximumNumberOfWords",
33261             "description": "<p>#AMD Maximum Number Of Words</p>"
33262           },
33263           {
33264             "group": "Body",
33265             "type": "Integer",
33266             "optional": true,
33267             "field": "dialAMDSilenceThreshold",
33268             "description": "<p>#AMD Silence Threshold (min:0, max:32767)</p>"
33269           },
33270           {
33271             "group": "Body",
33272             "type": "Integer",
33273             "optional": true,
33274             "field": "dialAMDMaximumWordLength",
33275             "description": "<p>#AMD Maximum Word Length</p>"
33276           },
33277           {
33278             "group": "Body",
33279             "type": "Integer",
33280             "optional": true,
33281             "field": "dialRecallMeTimeout",
33282             "description": "<p>#RecallMe Timeout (min:1)</p>"
33283           },
33284           {
33285             "group": "Body",
33286             "type": "Boolean",
33287             "optional": true,
33288             "field": "dialRecallInQueue",
33289             "description": "<p>Active/Disactive Recall In Queue</p>"
33290           },
33291           {
33292             "group": "Body",
33293             "type": "String",
33294             "allowedValues": [
33295               "\"DESC\"",
33296               "\"ASC\""
33297             ],
33298             "optional": true,
33299             "field": "dialOrderByScheduledAt",
33300             "description": ""
33301           },
33302           {
33303             "group": "Body",
33304             "type": "String",
33305             "optional": true,
33306             "field": "dialQueueProject2",
33307             "description": "<p>AGI queue option (use: agi://127.0.0.1/square,&lt;project_name&gt;)</p>"
33308           },
33309           {
33310             "group": "Body",
33311             "type": "Boolean",
33312             "optional": true,
33313             "field": "dialAgiAfterHangupClient",
33314             "description": ""
33315           },
33316           {
33317             "group": "Body",
33318             "type": "Boolean",
33319             "optional": true,
33320             "field": "dialAgiAfterHangupAgent",
33321             "description": ""
33322           },
33323           {
33324             "group": "Body",
33325             "type": "Integer",
33326             "optional": true,
33327             "field": "dialRandomLastDigitCallerIdNumber",
33328             "description": "<p>Random Last Digit (min:1, max:15)</p>"
33329           },
33330           {
33331             "group": "Body",
33332             "type": "Integer",
33333             "optional": true,
33334             "field": "dialCutDigit",
33335             "description": "<p>Cut Digit (min:1, max:15)</p>"
33336           },
33337           {
33338             "group": "Body",
33339             "type": "Integer",
33340             "optional": true,
33341             "field": "dialNoSuchNumberMaxRetry",
33342             "description": "<p>#NoSuchNumber Retry (min:1, max:999)</p>"
33343           },
33344           {
33345             "group": "Body",
33346             "type": "Integer",
33347             "optional": true,
33348             "field": "dialNoSuchNumberRetryFrequency",
33349             "description": "<p>NoSuchNumber Retry Frequency Minutes (min:1, max:99999)</p>"
33350           },
33351           {
33352             "group": "Body",
33353             "type": "Integer",
33354             "optional": true,
33355             "field": "dialDropMaxRetry",
33356             "description": "<p>#Drop Retry (min:1, max:999)</p>"
33357           },
33358           {
33359             "group": "Body",
33360             "type": "Integer",
33361             "optional": true,
33362             "field": "dialDropRetryFrequency",
33363             "description": "<p>Drop Retry Frequency Minutes (min:1, max:99999)</p>"
33364           },
33365           {
33366             "group": "Body",
33367             "type": "Integer",
33368             "optional": true,
33369             "field": "dialAbandonedMaxRetry",
33370             "description": "<p>#Abandoned Retry (min:1, max:999)</p>"
33371           },
33372           {
33373             "group": "Body",
33374             "type": "Integer",
33375             "optional": true,
33376             "field": "dialAbandonedRetryFrequency",
33377             "description": "<p>Abandoned Retry Frequency Minutes (min:1, max:99999)</p>"
33378           },
33379           {
33380             "group": "Body",
33381             "type": "Integer",
33382             "optional": true,
33383             "field": "dialMachineMaxRetry",
33384             "description": "<p>#Machine Retry (min:1, max:999)</p>"
33385           },
33386           {
33387             "group": "Body",
33388             "type": "Integer",
33389             "optional": true,
33390             "field": "dialMachineRetryFrequency",
33391             "description": "<p>Machine Retry Frequency Minutes (min:1, max:99999)</p>"
33392           },
33393           {
33394             "group": "Body",
33395             "type": "Integer",
33396             "optional": true,
33397             "field": "dialAgentRejectMaxRetry",
33398             "description": "<p>#AgentReject Retry (min:1, max:999)</p>"
33399           },
33400           {
33401             "group": "Body",
33402             "type": "Integer",
33403             "optional": true,
33404             "field": "dialAgentRejectRetryFrequency",
33405             "description": "<p>AgentReject Retry Frequency Minutes (min:1, max:99999)</p>"
33406           },
33407           {
33408             "group": "Body",
33409             "type": "Integer",
33410             "optional": true,
33411             "field": "mandatoryDispositionPauseId",
33412             "description": "<p>Status to put when mandatory disposition is enabled</p>"
33413           },
33414           {
33415             "group": "Body",
33416             "type": "Boolean",
33417             "optional": true,
33418             "field": "mandatoryDisposition",
33419             "description": "<p>Enabled/disables mandatory dispo on a queue</p>"
33420           },
33421           {
33422             "group": "Body",
33423             "type": "Integer",
33424             "optional": true,
33425             "field": "dialPredictiveIntervalMaxThreshold",
33426             "description": ""
33427           },
33428           {
33429             "group": "Body",
33430             "type": "Integer",
33431             "optional": true,
33432             "field": "dialPredictiveIntervalMinThreshold",
33433             "description": ""
33434           },
33435           {
33436             "group": "Body",
33437             "type": "Boolean",
33438             "optional": true,
33439             "field": "dialPreviewAutoRecallMe",
33440             "description": ""
33441           }
33442         ]
33443       }
33444     },
33445     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33446     "version": "0.0.0",
33447     "filename": "server/api/voiceQueue/index.js",
33448     "groupTitle": "Voice_Queues"
33449   },
33450   {
33451     "type": "delete",
33452     "url": "/api/voice/queues/{id}",
33453     "title": "Deletes a Queue",
33454     "examples": [
33455       {
33456         "title": "Example usage:",
33457         "content": "curl https://{domain}/api/voice/queues/{id} -v -u {name}:{password} -X DELETE",
33458         "type": "json"
33459       }
33460     ],
33461     "name": "DeleteQueues",
33462     "group": "Voice_Queues",
33463     "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>",
33464     "version": "0.0.0",
33465     "filename": "server/api/voiceQueue/index.js",
33466     "groupTitle": "Voice_Queues"
33467   },
33468   {
33469     "type": "get",
33470     "url": "/api/voice/queues/{id}/users",
33471     "title": "Gets queue agents",
33472     "examples": [
33473       {
33474         "title": "Example usage:",
33475         "content": "curl https://{domain}/api/voice/queues/{id}/users -v -u {name}:{password} -X GET",
33476         "type": "json"
33477       }
33478     ],
33479     "name": "GetAgents",
33480     "group": "Voice_Queues",
33481     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33482     "version": "0.0.0",
33483     "filename": "server/api/voiceQueue/index.js",
33484     "groupTitle": "Voice_Queues"
33485   },
33486   {
33487     "type": "get",
33488     "url": "/api/voice/queues/{id}/blacklists",
33489     "title": "Get queue blacklists",
33490     "examples": [
33491       {
33492         "title": "Example usage:",
33493         "content": "curl https://{domain}/api/voice/queues/{id}/blacklists -v -u {name}:{password} -X GET",
33494         "type": "json"
33495       }
33496     ],
33497     "name": "GetBlackLists",
33498     "group": "Voice_Queues",
33499     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33500     "version": "0.0.0",
33501     "filename": "server/api/voiceQueue/index.js",
33502     "groupTitle": "Voice_Queues"
33503   },
33504   {
33505     "type": "get",
33506     "url": "/api/voice/queues/{id}/finals",
33507     "title": "Gets queue hopper finals",
33508     "examples": [
33509       {
33510         "title": "Example usage:",
33511         "content": "curl https://{domain}/api/voice/queues/{id}/hopper_finals -v -u {name}:{password}  -X GET",
33512         "type": "json"
33513       }
33514     ],
33515     "name": "GetHopperFinals",
33516     "group": "Voice_Queues",
33517     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33518     "version": "0.0.0",
33519     "filename": "server/api/voiceQueue/index.js",
33520     "groupTitle": "Voice_Queues"
33521   },
33522   {
33523     "type": "get",
33524     "url": "/api/voice/queues/{id}/hopper_histories",
33525     "title": "Gets queue hopper histories",
33526     "examples": [
33527       {
33528         "title": "Example usage:",
33529         "content": "curl https://{domain}/api/voice/queues/{id}/hopper_histories -v -u {name}:{password} -X GET",
33530         "type": "json"
33531       }
33532     ],
33533     "name": "GetHopperHistories",
33534     "group": "Voice_Queues",
33535     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33536     "version": "0.0.0",
33537     "filename": "server/api/voiceQueue/index.js",
33538     "groupTitle": "Voice_Queues"
33539   },
33540   {
33541     "type": "get",
33542     "url": "/api/voice/queues/{id}/hoppers",
33543     "title": "Gets queue hoppers",
33544     "examples": [
33545       {
33546         "title": "Example usage:",
33547         "content": "curl https://{domain}/api/voice/queues/{id}/hoppers -v -u {name}:{password} -X GET",
33548         "type": "json"
33549       }
33550     ],
33551     "name": "GetHoppers",
33552     "group": "Voice_Queues",
33553     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33554     "version": "0.0.0",
33555     "filename": "server/api/voiceQueue/index.js",
33556     "groupTitle": "Voice_Queues"
33557   },
33558   {
33559     "type": "get",
33560     "url": "/api/voice/queues/{id}/lists",
33561     "title": "Get queue lists",
33562     "examples": [
33563       {
33564         "title": "Example usage:",
33565         "content": "curl https://{domain}/api/voice/queues/{id}/lists -v -u {name}:{password} -X GET",
33566         "type": "json"
33567       }
33568     ],
33569     "name": "GetLists",
33570     "group": "Voice_Queues",
33571     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33572     "version": "0.0.0",
33573     "filename": "server/api/voiceQueue/index.js",
33574     "groupTitle": "Voice_Queues"
33575   },
33576   {
33577     "type": "get",
33578     "url": "/api/voice/queues/{id}/members",
33579     "title": "Gets queue members",
33580     "examples": [
33581       {
33582         "title": "Example usage:",
33583         "content": "curl https://{domain}/api/voice/queues/{id}/members -v -u {name}:{password} -X GET",
33584         "type": "json"
33585       }
33586     ],
33587     "name": "GetMembers",
33588     "group": "Voice_Queues",
33589     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33590     "version": "0.0.0",
33591     "filename": "server/api/voiceQueue/index.js",
33592     "groupTitle": "Voice_Queues"
33593   },
33594   {
33595     "type": "get",
33596     "url": "/api/voice/queues",
33597     "title": "Gets a list of Queues",
33598     "examples": [
33599       {
33600         "title": "Example usage:",
33601         "content": "curl https://{domain}/api/voice/queues -v -u {name}:{password}",
33602         "type": "json"
33603       }
33604     ],
33605     "name": "GetQueues",
33606     "group": "Voice_Queues",
33607     "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>",
33608     "version": "0.0.0",
33609     "filename": "server/api/voiceQueue/index.js",
33610     "groupTitle": "Voice_Queues"
33611   },
33612   {
33613     "type": "get",
33614     "url": "/api/voice/queues/{id}/teams",
33615     "title": "Gets queue team",
33616     "examples": [
33617       {
33618         "title": "Example usage:",
33619         "content": "curl https://{domain}/api/voice/queues/{id}/teams -v -u {name}:{password}  -X GET",
33620         "type": "json"
33621       }
33622     ],
33623     "name": "GetTeams",
33624     "group": "Voice_Queues",
33625     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33626     "version": "0.0.0",
33627     "filename": "server/api/voiceQueue/index.js",
33628     "groupTitle": "Voice_Queues"
33629   },
33630   {
33631     "type": "delete",
33632     "url": "/api/voice/queues/{id}/users",
33633     "title": "Removes agents from a queue",
33634     "examples": [
33635       {
33636         "title": "Example usage:",
33637         "content": "curl https://{domain}/api/voice/queues/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
33638         "type": "json"
33639       }
33640     ],
33641     "name": "RemoveAgents",
33642     "group": "Voice_Queues",
33643     "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>",
33644     "version": "0.0.0",
33645     "filename": "server/api/voiceQueue/index.js",
33646     "groupTitle": "Voice_Queues"
33647   },
33648   {
33649     "type": "delete",
33650     "url": "/api/voice/queues/{id}/blacklists",
33651     "title": "Remove blacklists from a queue",
33652     "examples": [
33653       {
33654         "title": "Example usage:",
33655         "content": "curl https://{domain}/api/voice/queues/{id}/blacklists?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
33656         "type": "json"
33657       }
33658     ],
33659     "name": "RemoveBlackLists",
33660     "group": "Voice_Queues",
33661     "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>",
33662     "version": "0.0.0",
33663     "filename": "server/api/voiceQueue/index.js",
33664     "groupTitle": "Voice_Queues"
33665   },
33666   {
33667     "type": "delete",
33668     "url": "/api/voice/queues/{id}/lists",
33669     "title": "Remove lists from a queue",
33670     "examples": [
33671       {
33672         "title": "Example usage:",
33673         "content": "curl https://{domain}/api/voice/queues/{id}/lists?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
33674         "type": "json"
33675       }
33676     ],
33677     "name": "RemoveLists",
33678     "group": "Voice_Queues",
33679     "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>",
33680     "version": "0.0.0",
33681     "filename": "server/api/voiceQueue/index.js",
33682     "groupTitle": "Voice_Queues"
33683   },
33684   {
33685     "type": "get",
33686     "url": "/api/voice/queues/{id}",
33687     "title": "Gets a single Queue",
33688     "examples": [
33689       {
33690         "title": "Example usage:",
33691         "content": "curl https://{domain}/api/voice/queues/{id} -v -u {name}:{password}",
33692         "type": "json"
33693       }
33694     ],
33695     "name": "ShowQueues",
33696     "group": "Voice_Queues",
33697     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33698     "version": "0.0.0",
33699     "filename": "server/api/voiceQueue/index.js",
33700     "groupTitle": "Voice_Queues"
33701   },
33702   {
33703     "type": "get",
33704     "url": "/api/voice/queues/{id}/blacks",
33705     "title": "Gets queue hopper blacks",
33706     "examples": [
33707       {
33708         "title": "Example usage:",
33709         "content": "curl https://{domain}/api/voice/queues/{id}/hopper_black -v -u {name}:{password}  -X GET",
33710         "type": "json"
33711       }
33712     ],
33713     "name": "getHopperBlacks",
33714     "group": "Voice_Queues",
33715     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33716     "version": "0.0.0",
33717     "filename": "server/api/voiceQueue/index.js",
33718     "groupTitle": "Voice_Queues"
33719   },
33720   {
33721     "type": "put",
33722     "url": "/api/voice/queues/{id}",
33723     "title": "Update an existing Queue",
33724     "examples": [
33725       {
33726         "title": "Example usage:",
33727         "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",
33728         "type": "json"
33729       }
33730     ],
33731     "name": "updateQueues",
33732     "group": "Voice_Queues",
33733     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33734     "version": "0.0.0",
33735     "filename": "server/api/voiceQueue/index.js",
33736     "groupTitle": "Voice_Queues"
33737   },
33738   {
33739     "type": "post",
33740     "url": "/api/voice/recordings",
33741     "title": "Creates a new Recording",
33742     "examples": [
33743       {
33744         "title": "Example usage:",
33745         "content": "curl https://{domain}/api/voice/recordings -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
33746         "type": "json"
33747       }
33748     ],
33749     "name": "CreateRecordings",
33750     "group": "Voice_Recordings",
33751     "parameter": {
33752       "fields": {
33753         "Body": [
33754           {
33755             "group": "Body",
33756             "type": "Virtual",
33757             "optional": true,
33758             "field": "format",
33759             "description": ""
33760           },
33761           {
33762             "group": "Body",
33763             "type": "String",
33764             "optional": true,
33765             "field": "uniqueid",
33766             "description": ""
33767           },
33768           {
33769             "group": "Body",
33770             "type": "String",
33771             "optional": true,
33772             "field": "channel",
33773             "description": ""
33774           },
33775           {
33776             "group": "Body",
33777             "type": "String",
33778             "optional": true,
33779             "field": "membername",
33780             "description": ""
33781           },
33782           {
33783             "group": "Body",
33784             "type": "String",
33785             "optional": true,
33786             "field": "calleridnum",
33787             "description": ""
33788           },
33789           {
33790             "group": "Body",
33791             "type": "String",
33792             "optional": true,
33793             "field": "calleridname",
33794             "description": ""
33795           },
33796           {
33797             "group": "Body",
33798             "type": "String",
33799             "optional": true,
33800             "field": "connectedlinenum",
33801             "description": ""
33802           },
33803           {
33804             "group": "Body",
33805             "type": "String",
33806             "optional": true,
33807             "field": "connectedlinename",
33808             "description": ""
33809           },
33810           {
33811             "group": "Body",
33812             "type": "String",
33813             "optional": true,
33814             "field": "accountcode",
33815             "description": ""
33816           },
33817           {
33818             "group": "Body",
33819             "type": "String",
33820             "optional": true,
33821             "field": "context",
33822             "description": ""
33823           },
33824           {
33825             "group": "Body",
33826             "type": "String",
33827             "optional": true,
33828             "field": "exten",
33829             "description": ""
33830           },
33831           {
33832             "group": "Body",
33833             "type": "String",
33834             "optional": true,
33835             "field": "value",
33836             "description": ""
33837           },
33838           {
33839             "group": "Body",
33840             "type": "String",
33841             "optional": true,
33842             "field": "type",
33843             "description": ""
33844           },
33845           {
33846             "group": "Body",
33847             "type": "Integer",
33848             "optional": true,
33849             "field": "rating",
33850             "description": ""
33851           },
33852           {
33853             "group": "Body",
33854             "type": "String",
33855             "optional": true,
33856             "field": "queue",
33857             "description": ""
33858           },
33859           {
33860             "group": "Body",
33861             "type": "String",
33862             "optional": true,
33863             "field": "userDisposition",
33864             "description": ""
33865           },
33866           {
33867             "group": "Body",
33868             "type": "String",
33869             "optional": true,
33870             "field": "userSecondDisposition",
33871             "description": ""
33872           },
33873           {
33874             "group": "Body",
33875             "type": "String",
33876             "optional": true,
33877             "field": "userThirdDisposition",
33878             "description": ""
33879           },
33880           {
33881             "group": "Body",
33882             "type": "Text",
33883             "optional": true,
33884             "field": "location",
33885             "description": ""
33886           },
33887           {
33888             "group": "Body",
33889             "type": "String",
33890             "optional": true,
33891             "field": "transcribeName",
33892             "description": ""
33893           },
33894           {
33895             "group": "Body",
33896             "type": "String",
33897             "optional": true,
33898             "field": "transcribeStatus",
33899             "description": ""
33900           },
33901           {
33902             "group": "Body",
33903             "type": "Text",
33904             "optional": true,
33905             "field": "fileUri",
33906             "description": ""
33907           },
33908           {
33909             "group": "Body",
33910             "type": "Text",
33911             "optional": true,
33912             "field": "fileText",
33913             "description": ""
33914           },
33915           {
33916             "group": "Body",
33917             "type": "Text",
33918             "optional": true,
33919             "field": "failureReason",
33920             "description": ""
33921           },
33922           {
33923             "group": "Body",
33924             "type": "String",
33925             "optional": true,
33926             "field": "sentiment",
33927             "description": ""
33928           },
33929           {
33930             "group": "Body",
33931             "type": "Float",
33932             "optional": true,
33933             "field": "sPositive",
33934             "description": ""
33935           },
33936           {
33937             "group": "Body",
33938             "type": "Float",
33939             "optional": true,
33940             "field": "sNegative",
33941             "description": ""
33942           },
33943           {
33944             "group": "Body",
33945             "type": "Float",
33946             "optional": true,
33947             "field": "sNeutral",
33948             "description": ""
33949           },
33950           {
33951             "group": "Body",
33952             "type": "Float",
33953             "optional": true,
33954             "field": "sMixed",
33955             "description": ""
33956           },
33957           {
33958             "group": "Body",
33959             "type": "Boolean",
33960             "optional": true,
33961             "field": "tempSentiment",
33962             "description": ""
33963           },
33964           {
33965             "group": "Body",
33966             "type": "String",
33967             "optional": true,
33968             "field": "createdAt",
33969             "description": ""
33970           },
33971           {
33972             "group": "Body",
33973             "type": "String",
33974             "optional": true,
33975             "field": "updatedAt",
33976             "description": ""
33977           }
33978         ]
33979       }
33980     },
33981     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33982     "version": "0.0.0",
33983     "filename": "server/api/voiceRecording/index.js",
33984     "groupTitle": "Voice_Recordings"
33985   },
33986   {
33987     "type": "get",
33988     "url": "/api/voice/recordings/describe",
33989     "title": "Gets table info about Recordings",
33990     "examples": [
33991       {
33992         "title": "Example usage:",
33993         "content": "curl https://{domain}/api/voice/recordings/describe -v -u {name}:{password}",
33994         "type": "json"
33995       }
33996     ],
33997     "name": "DescribeRecordings",
33998     "group": "Voice_Recordings",
33999     "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>",
34000     "version": "0.0.0",
34001     "filename": "server/api/voiceRecording/index.js",
34002     "groupTitle": "Voice_Recordings"
34003   },
34004   {
34005     "type": "get",
34006     "url": "/api/voice/recordings",
34007     "title": "Gets a list of Recordings",
34008     "examples": [
34009       {
34010         "title": "Example usage:",
34011         "content": "curl https://{domain}/api/voice/recordings -v -u {name}:{password}",
34012         "type": "json"
34013       }
34014     ],
34015     "name": "GetRecordings",
34016     "group": "Voice_Recordings",
34017     "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>",
34018     "version": "0.0.0",
34019     "filename": "server/api/voiceRecording/index.js",
34020     "groupTitle": "Voice_Recordings"
34021   },
34022   {
34023     "type": "get",
34024     "url": "/api/voice/recordings/{id}",
34025     "title": "Gets a single Recording",
34026     "examples": [
34027       {
34028         "title": "Example usage:",
34029         "content": "curl https://{domain}/api/voice/recordings/{id} -v -u {name}:{password}",
34030         "type": "json"
34031       }
34032     ],
34033     "name": "ShowRecordings",
34034     "group": "Voice_Recordings",
34035     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34036     "version": "0.0.0",
34037     "filename": "server/api/voiceRecording/index.js",
34038     "groupTitle": "Voice_Recordings"
34039   },
34040   {
34041     "type": "delete",
34042     "url": "/api/voice/recordings/{id}",
34043     "title": "Delete voice recording",
34044     "examples": [
34045       {
34046         "title": "Example usage:",
34047         "content": "curl https://{domain}/api/voice/recordings/{id} -v -u {name}:{password} -X DELETE",
34048         "type": "json"
34049       }
34050     ],
34051     "name": "destroy",
34052     "group": "Voice_Recordings",
34053     "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>",
34054     "version": "0.0.0",
34055     "filename": "server/api/voiceRecording/index.js",
34056     "groupTitle": "Voice_Recordings"
34057   },
34058   {
34059     "type": "get",
34060     "url": "/api/voice/recordings/{id}/download",
34061     "title": "Download Recording",
34062     "examples": [
34063       {
34064         "title": "Example usage:",
34065         "content": "curl https://{domain}/api/voice/recordings/{id}/download -v -u {name}:{password} -X GET",
34066         "type": "json"
34067       }
34068     ],
34069     "name": "download",
34070     "group": "Voice_Recordings",
34071     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34072     "version": "0.0.0",
34073     "filename": "server/api/voiceRecording/index.js",
34074     "groupTitle": "Voice_Recordings"
34075   },
34076   {
34077     "type": "get",
34078     "url": "/api/voice/recordings/{id}/downloads",
34079     "title": "Download Recording",
34080     "examples": [
34081       {
34082         "title": "Example usage:",
34083         "content": "curl https://{domain}/api/voice/recordings/{id}/downloads -v -u {name}:{password} -X GET",
34084         "type": "json"
34085       }
34086     ],
34087     "name": "downloads",
34088     "group": "Voice_Recordings",
34089     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34090     "version": "0.0.0",
34091     "filename": "server/api/voiceRecording/index.js",
34092     "groupTitle": "Voice_Recordings"
34093   },
34094   {
34095     "type": "post",
34096     "url": "/api/voice/recordings/{id}/transcribe",
34097     "title": "Run Transcribe Recording",
34098     "examples": [
34099       {
34100         "title": "Example usage:",
34101         "content": "curl https://{domain}/api/voice/recordings/{id}/transcribe -d '{\"runSentiment\": \"true\"}' -v -u {name}:{password} -X POST",
34102         "type": "json"
34103       }
34104     ],
34105     "name": "transcribe",
34106     "group": "Voice_Recordings",
34107     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34108     "version": "0.0.0",
34109     "filename": "server/api/voiceRecording/index.js",
34110     "groupTitle": "Voice_Recordings"
34111   },
34112   {
34113     "type": "get",
34114     "url": "/api/voice/recordings/{id}/transcribe",
34115     "title": "Run Transcribe Recording",
34116     "examples": [
34117       {
34118         "title": "Example usage:",
34119         "content": "curl https://{domain}/api/voice/recordings/{id}/transcribe -v -u {name}:{password} -X GET",
34120         "type": "json"
34121       }
34122     ],
34123     "name": "transcribe",
34124     "group": "Voice_Recordings",
34125     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34126     "version": "0.0.0",
34127     "filename": "server/api/voiceRecording/index.js",
34128     "groupTitle": "Voice_Recordings"
34129   },
34130   {
34131     "type": "put",
34132     "url": "/api/voice/recordings/{id}",
34133     "title": "Update an existing Recording",
34134     "examples": [
34135       {
34136         "title": "Example usage:",
34137         "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",
34138         "type": "json"
34139       }
34140     ],
34141     "name": "updateRecordings",
34142     "group": "Voice_Recordings",
34143     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34144     "version": "0.0.0",
34145     "filename": "server/api/voiceRecording/index.js",
34146     "groupTitle": "Voice_Recordings"
34147   },
34148   {
34149     "type": "post",
34150     "url": "/api/voice/transfers/reports",
34151     "title": "Creates a new Transfer Report",
34152     "examples": [
34153       {
34154         "title": "Example usage:",
34155         "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",
34156         "type": "json"
34157       }
34158     ],
34159     "name": "CreateTransfer_Reports",
34160     "group": "Voice_Transfer_Reports",
34161     "parameter": {
34162       "fields": {
34163         "Body": [
34164           {
34165             "group": "Body",
34166             "type": "String",
34167             "allowedValues": [
34168               "\"blind\"",
34169               "\"attended\""
34170             ],
34171             "optional": true,
34172             "field": "type",
34173             "description": ""
34174           },
34175           {
34176             "group": "Body",
34177             "type": "String",
34178             "optional": true,
34179             "field": "result",
34180             "description": ""
34181           },
34182           {
34183             "group": "Body",
34184             "type": "String",
34185             "optional": true,
34186             "field": "transfererchannel",
34187             "description": ""
34188           },
34189           {
34190             "group": "Body",
34191             "type": "String",
34192             "optional": true,
34193             "field": "transferercalleridnum",
34194             "description": ""
34195           },
34196           {
34197             "group": "Body",
34198             "type": "String",
34199             "optional": true,
34200             "field": "transferercalleridname",
34201             "description": ""
34202           },
34203           {
34204             "group": "Body",
34205             "type": "String",
34206             "optional": true,
34207             "field": "transfererconnectedlinenum",
34208             "description": ""
34209           },
34210           {
34211             "group": "Body",
34212             "type": "String",
34213             "optional": true,
34214             "field": "transfererconnectedlinename",
34215             "description": ""
34216           },
34217           {
34218             "group": "Body",
34219             "type": "String",
34220             "optional": true,
34221             "field": "transfereraccountcode",
34222             "description": ""
34223           },
34224           {
34225             "group": "Body",
34226             "type": "String",
34227             "optional": true,
34228             "field": "transferercontext",
34229             "description": ""
34230           },
34231           {
34232             "group": "Body",
34233             "type": "String",
34234             "optional": true,
34235             "field": "transfererexten",
34236             "description": ""
34237           },
34238           {
34239             "group": "Body",
34240             "type": "String",
34241             "optional": true,
34242             "field": "transfererlinkedid",
34243             "description": ""
34244           },
34245           {
34246             "group": "Body",
34247             "type": "String",
34248             "optional": true,
34249             "field": "transfereechannel",
34250             "description": ""
34251           },
34252           {
34253             "group": "Body",
34254             "type": "String",
34255             "optional": true,
34256             "field": "transfereecalleridnum",
34257             "description": ""
34258           },
34259           {
34260             "group": "Body",
34261             "type": "String",
34262             "optional": true,
34263             "field": "transfereecalleridname",
34264             "description": ""
34265           },
34266           {
34267             "group": "Body",
34268             "type": "String",
34269             "optional": true,
34270             "field": "transfereeconnectedlinenum",
34271             "description": ""
34272           },
34273           {
34274             "group": "Body",
34275             "type": "String",
34276             "optional": true,
34277             "field": "transfereeconnectedlinename",
34278             "description": ""
34279           },
34280           {
34281             "group": "Body",
34282             "type": "String",
34283             "optional": true,
34284             "field": "transfereeaccountcode",
34285             "description": ""
34286           },
34287           {
34288             "group": "Body",
34289             "type": "String",
34290             "optional": true,
34291             "field": "transfereecontext",
34292             "description": ""
34293           },
34294           {
34295             "group": "Body",
34296             "type": "String",
34297             "optional": true,
34298             "field": "transfereeexten",
34299             "description": ""
34300           },
34301           {
34302             "group": "Body",
34303             "type": "String",
34304             "optional": true,
34305             "field": "transfereelinkedid",
34306             "description": ""
34307           },
34308           {
34309             "group": "Body",
34310             "type": "String",
34311             "allowedValues": [
34312               "\"Yes\"",
34313               "\"No\""
34314             ],
34315             "optional": true,
34316             "field": "isexternal",
34317             "description": ""
34318           },
34319           {
34320             "group": "Body",
34321             "type": "String",
34322             "optional": true,
34323             "field": "context",
34324             "description": ""
34325           },
34326           {
34327             "group": "Body",
34328             "type": "String",
34329             "optional": true,
34330             "field": "extension",
34331             "description": ""
34332           }
34333         ]
34334       }
34335     },
34336     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34337     "version": "0.0.0",
34338     "filename": "server/api/voiceTransferReport/index.js",
34339     "groupTitle": "Voice_Transfer_Reports"
34340   },
34341   {
34342     "type": "delete",
34343     "url": "/api/voice/transfers/reports/{id}",
34344     "title": "Deletes a Transfer Report",
34345     "examples": [
34346       {
34347         "title": "Example usage:",
34348         "content": "curl https://{domain}/api/voice/transfers/reports/{id} -v -u {name}:{password} -X DELETE",
34349         "type": "json"
34350       }
34351     ],
34352     "name": "DeleteTransfer_Reports",
34353     "group": "Voice_Transfer_Reports",
34354     "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>",
34355     "version": "0.0.0",
34356     "filename": "server/api/voiceTransferReport/index.js",
34357     "groupTitle": "Voice_Transfer_Reports"
34358   },
34359   {
34360     "type": "get",
34361     "url": "/api/voice/transfers/reports/describe",
34362     "title": "Gets table info about Transfer Reports",
34363     "examples": [
34364       {
34365         "title": "Example usage:",
34366         "content": "curl https://{domain}/api/voice/transfers/reports/describe -v -u {name}:{password}",
34367         "type": "json"
34368       }
34369     ],
34370     "name": "DescribeTransfer_Reports",
34371     "group": "Voice_Transfer_Reports",
34372     "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>",
34373     "version": "0.0.0",
34374     "filename": "server/api/voiceTransferReport/index.js",
34375     "groupTitle": "Voice_Transfer_Reports"
34376   },
34377   {
34378     "type": "get",
34379     "url": "/api/voice/transfers/reports",
34380     "title": "Gets a list of Transfer Reports",
34381     "examples": [
34382       {
34383         "title": "Example usage:",
34384         "content": "curl https://{domain}/api/voice/transfers/reports -v -u {name}:{password}",
34385         "type": "json"
34386       }
34387     ],
34388     "name": "GetTransfer_Reports",
34389     "group": "Voice_Transfer_Reports",
34390     "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>",
34391     "version": "0.0.0",
34392     "filename": "server/api/voiceTransferReport/index.js",
34393     "groupTitle": "Voice_Transfer_Reports"
34394   },
34395   {
34396     "type": "get",
34397     "url": "/api/voice/transfers/reports/{id}",
34398     "title": "Gets a single Transfer Report",
34399     "examples": [
34400       {
34401         "title": "Example usage:",
34402         "content": "curl https://{domain}/api/voice/transfers/reports/{id} -v -u {name}:{password}",
34403         "type": "json"
34404       }
34405     ],
34406     "name": "ShowTransfer_Reports",
34407     "group": "Voice_Transfer_Reports",
34408     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34409     "version": "0.0.0",
34410     "filename": "server/api/voiceTransferReport/index.js",
34411     "groupTitle": "Voice_Transfer_Reports"
34412   },
34413   {
34414     "type": "put",
34415     "url": "/api/voice/transfers/reports/{id}",
34416     "title": "Update an existing Transfer Report",
34417     "examples": [
34418       {
34419         "title": "Example usage:",
34420         "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",
34421         "type": "json"
34422       }
34423     ],
34424     "name": "updateTransfer_Reports",
34425     "group": "Voice_Transfer_Reports",
34426     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34427     "version": "0.0.0",
34428     "filename": "server/api/voiceTransferReport/index.js",
34429     "groupTitle": "Voice_Transfer_Reports"
34430   },
34431   {
34432     "type": "post",
34433     "url": "/api/integrations/vtiger/accounts",
34434     "title": "Creates a new Vtiger Account",
34435     "examples": [
34436       {
34437         "title": "Example usage:",
34438         "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",
34439         "type": "json"
34440       }
34441     ],
34442     "name": "CreateVtiger_Accounts",
34443     "group": "Vtiger_Accounts",
34444     "parameter": {
34445       "fields": {
34446         "Body": [
34447           {
34448             "group": "Body",
34449             "type": "String",
34450             "optional": false,
34451             "field": "name",
34452             "description": ""
34453           },
34454           {
34455             "group": "Body",
34456             "type": "String",
34457             "optional": true,
34458             "field": "description",
34459             "description": ""
34460           },
34461           {
34462             "group": "Body",
34463             "type": "String",
34464             "optional": false,
34465             "field": "username",
34466             "description": ""
34467           },
34468           {
34469             "group": "Body",
34470             "type": "String",
34471             "optional": false,
34472             "field": "moduleName",
34473             "description": ""
34474           },
34475           {
34476             "group": "Body",
34477             "type": "String",
34478             "optional": false,
34479             "field": "remoteUri",
34480             "description": ""
34481           },
34482           {
34483             "group": "Body",
34484             "type": "String",
34485             "optional": false,
34486             "field": "serverUrl",
34487             "description": ""
34488           },
34489           {
34490             "group": "Body",
34491             "type": "String",
34492             "optional": false,
34493             "field": "accessKey",
34494             "description": ""
34495           }
34496         ]
34497       }
34498     },
34499     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34500     "version": "0.0.0",
34501     "filename": "server/api/intVtigerAccount/index.js",
34502     "groupTitle": "Vtiger_Accounts"
34503   },
34504   {
34505     "type": "delete",
34506     "url": "/api/integrations/vtiger/accounts/{id}",
34507     "title": "Deletes a Vtiger Account",
34508     "examples": [
34509       {
34510         "title": "Example usage:",
34511         "content": "curl https://{domain}/api/integrations/vtiger/accounts/{id} -v -u {name}:{password} -X DELETE",
34512         "type": "json"
34513       }
34514     ],
34515     "name": "DeleteVtiger_Accounts",
34516     "group": "Vtiger_Accounts",
34517     "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>",
34518     "version": "0.0.0",
34519     "filename": "server/api/intVtigerAccount/index.js",
34520     "groupTitle": "Vtiger_Accounts"
34521   },
34522   {
34523     "type": "get",
34524     "url": "/api/integrations/vtiger/accounts",
34525     "title": "Gets a list of Vtiger Accounts",
34526     "examples": [
34527       {
34528         "title": "Example usage:",
34529         "content": "curl https://{domain}/api/integrations/vtiger/accounts -v -u {name}:{password}",
34530         "type": "json"
34531       }
34532     ],
34533     "name": "GetVtiger_Accounts",
34534     "group": "Vtiger_Accounts",
34535     "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>",
34536     "version": "0.0.0",
34537     "filename": "server/api/intVtigerAccount/index.js",
34538     "groupTitle": "Vtiger_Accounts"
34539   },
34540   {
34541     "type": "get",
34542     "url": "/api/integrations/vtiger/accounts/{id}",
34543     "title": "Gets a single Vtiger Account",
34544     "examples": [
34545       {
34546         "title": "Example usage:",
34547         "content": "curl https://{domain}/api/integrations/vtiger/accounts/{id} -v -u {name}:{password}",
34548         "type": "json"
34549       }
34550     ],
34551     "name": "ShowVtiger_Accounts",
34552     "group": "Vtiger_Accounts",
34553     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34554     "version": "0.0.0",
34555     "filename": "server/api/intVtigerAccount/index.js",
34556     "groupTitle": "Vtiger_Accounts"
34557   },
34558   {
34559     "type": "post",
34560     "url": "/api/integrations/vtiger/accounts/{id}/configurations",
34561     "title": "Creates new configuration",
34562     "examples": [
34563       {
34564         "title": "Example usage:",
34565         "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",
34566         "type": "json"
34567       }
34568     ],
34569     "name": "addConfiguration",
34570     "group": "Vtiger_Accounts",
34571     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34572     "version": "0.0.0",
34573     "filename": "server/api/intVtigerAccount/index.js",
34574     "groupTitle": "Vtiger_Accounts"
34575   },
34576   {
34577     "type": "get",
34578     "url": "/api/integrations/vtiger/accounts/{id}/configurations",
34579     "title": "Gets account configurations",
34580     "examples": [
34581       {
34582         "title": "Example usage:",
34583         "content": "curl https://{domain}/api/integrations/vtiger/accounts/{id}/configurations -v -u {name}:{password} -X GET",
34584         "type": "json"
34585       }
34586     ],
34587     "name": "getConfigurations",
34588     "group": "Vtiger_Accounts",
34589     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34590     "version": "0.0.0",
34591     "filename": "server/api/intVtigerAccount/index.js",
34592     "groupTitle": "Vtiger_Accounts"
34593   },
34594   {
34595     "type": "get",
34596     "url": "/api/integrations/vtiger/accounts/{id}/fields",
34597     "title": "Gets account fields",
34598     "examples": [
34599       {
34600         "title": "Example usage:",
34601         "content": "curl https://{domain}/api/integrations/vtiger/accounts/{id}/fields -v -u {name}:{password} -X GET",
34602         "type": "json"
34603       }
34604     ],
34605     "name": "getFields",
34606     "group": "Vtiger_Accounts",
34607     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34608     "version": "0.0.0",
34609     "filename": "server/api/intVtigerAccount/index.js",
34610     "groupTitle": "Vtiger_Accounts"
34611   },
34612   {
34613     "type": "put",
34614     "url": "/api/integrations/vtiger/accounts/{id}",
34615     "title": "Update an existing Vtiger Account",
34616     "examples": [
34617       {
34618         "title": "Example usage:",
34619         "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",
34620         "type": "json"
34621       }
34622     ],
34623     "name": "updateVtiger_Accounts",
34624     "group": "Vtiger_Accounts",
34625     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34626     "version": "0.0.0",
34627     "filename": "server/api/intVtigerAccount/index.js",
34628     "groupTitle": "Vtiger_Accounts"
34629   },
34630   {
34631     "type": "post",
34632     "url": "/api/integrations/vtiger/configurations",
34633     "title": "Creates a new Vtiger Configuration",
34634     "examples": [
34635       {
34636         "title": "Example usage:",
34637         "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",
34638         "type": "json"
34639       }
34640     ],
34641     "name": "CreateVtiger_Configurations",
34642     "group": "Vtiger_Configurations",
34643     "parameter": {
34644       "fields": {
34645         "Body": [
34646           {
34647             "group": "Body",
34648             "type": "String",
34649             "optional": true,
34650             "field": "name",
34651             "description": ""
34652           },
34653           {
34654             "group": "Body",
34655             "type": "String",
34656             "optional": true,
34657             "field": "description",
34658             "description": ""
34659           }
34660         ]
34661       }
34662     },
34663     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34664     "version": "0.0.0",
34665     "filename": "server/api/intVtigerConfiguration/index.js",
34666     "groupTitle": "Vtiger_Configurations"
34667   },
34668   {
34669     "type": "delete",
34670     "url": "/api/integrations/vtiger/configurations/{id}",
34671     "title": "Deletes a Vtiger Configuration",
34672     "examples": [
34673       {
34674         "title": "Example usage:",
34675         "content": "curl https://{domain}/api/integrations/vtiger/configurations/{id} -v -u {name}:{password} -X DELETE",
34676         "type": "json"
34677       }
34678     ],
34679     "name": "DeleteVtiger_Configurations",
34680     "group": "Vtiger_Configurations",
34681     "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>",
34682     "version": "0.0.0",
34683     "filename": "server/api/intVtigerConfiguration/index.js",
34684     "groupTitle": "Vtiger_Configurations"
34685   },
34686   {
34687     "type": "get",
34688     "url": "/api/integrations/vtiger/configurations",
34689     "title": "Gets a list of Vtiger Configurations",
34690     "examples": [
34691       {
34692         "title": "Example usage:",
34693         "content": "curl https://{domain}/api/integrations/vtiger/configurations -v -u {name}:{password}",
34694         "type": "json"
34695       }
34696     ],
34697     "name": "GetVtiger_Configurations",
34698     "group": "Vtiger_Configurations",
34699     "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>",
34700     "version": "0.0.0",
34701     "filename": "server/api/intVtigerConfiguration/index.js",
34702     "groupTitle": "Vtiger_Configurations"
34703   },
34704   {
34705     "type": "get",
34706     "url": "/api/integrations/vtiger/configurations/{id}",
34707     "title": "Gets a single Vtiger Configuration",
34708     "examples": [
34709       {
34710         "title": "Example usage:",
34711         "content": "curl https://{domain}/api/integrations/vtiger/configurations/{id} -v -u {name}:{password}",
34712         "type": "json"
34713       }
34714     ],
34715     "name": "ShowVtiger_Configurations",
34716     "group": "Vtiger_Configurations",
34717     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34718     "version": "0.0.0",
34719     "filename": "server/api/intVtigerConfiguration/index.js",
34720     "groupTitle": "Vtiger_Configurations"
34721   },
34722   {
34723     "type": "get",
34724     "url": "/api/integrations/vtiger/configurations/{id}/descriptions",
34725     "title": "Gets configurations descriptions",
34726     "examples": [
34727       {
34728         "title": "Example usage:",
34729         "content": "curl https://{domain}/api/integrations/vtiger/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
34730         "type": "json"
34731       }
34732     ],
34733     "name": "getDescriptions",
34734     "group": "Vtiger_Configurations",
34735     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34736     "version": "0.0.0",
34737     "filename": "server/api/intVtigerConfiguration/index.js",
34738     "groupTitle": "Vtiger_Configurations"
34739   },
34740   {
34741     "type": "get",
34742     "url": "/api/integrations/vtiger/configurations/{id}/fields",
34743     "title": "Gets configurations fields",
34744     "examples": [
34745       {
34746         "title": "Example usage:",
34747         "content": "curl https://{domain}/api/integrations/vtiger/configurations/{id}/fields -v -u {name}:{password} -X GET",
34748         "type": "json"
34749       }
34750     ],
34751     "name": "getFields",
34752     "group": "Vtiger_Configurations",
34753     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34754     "version": "0.0.0",
34755     "filename": "server/api/intVtigerConfiguration/index.js",
34756     "groupTitle": "Vtiger_Configurations"
34757   },
34758   {
34759     "type": "get",
34760     "url": "/api/integrations/vtiger/configurations/{id}/subjects",
34761     "title": "Gets configurations subjects",
34762     "examples": [
34763       {
34764         "title": "Example usage:",
34765         "content": "curl https://{domain}/api/integrations/vtiger/configurations/{id}/subjects -v -u {name}:{password} -X GET",
34766         "type": "json"
34767       }
34768     ],
34769     "name": "getSubjects",
34770     "group": "Vtiger_Configurations",
34771     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34772     "version": "0.0.0",
34773     "filename": "server/api/intVtigerConfiguration/index.js",
34774     "groupTitle": "Vtiger_Configurations"
34775   },
34776   {
34777     "type": "put",
34778     "url": "/api/integrations/vtiger/configurations/{id}",
34779     "title": "Update an existing Vtiger Configuration",
34780     "examples": [
34781       {
34782         "title": "Example usage:",
34783         "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",
34784         "type": "json"
34785       }
34786     ],
34787     "name": "updateVtiger_Configurations",
34788     "group": "Vtiger_Configurations",
34789     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34790     "version": "0.0.0",
34791     "filename": "server/api/intVtigerConfiguration/index.js",
34792     "groupTitle": "Vtiger_Configurations"
34793   },
34794   {
34795     "type": "post",
34796     "url": "/api/integrations/vtiger/fields",
34797     "title": "Creates a new Vtiger Field",
34798     "examples": [
34799       {
34800         "title": "Example usage:",
34801         "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",
34802         "type": "json"
34803       }
34804     ],
34805     "name": "CreateVtiger_Fields",
34806     "group": "Vtiger_Fields",
34807     "parameter": {
34808       "fields": {
34809         "Body": [
34810           {
34811             "group": "Body",
34812             "type": "String",
34813             "allowedValues": [
34814               "\"string\"",
34815               "\"variable\"",
34816               "\"customVariable\"",
34817               "\"keyValue\"",
34818               "\"picklist\""
34819             ],
34820             "optional": true,
34821             "field": "type",
34822             "description": ""
34823           },
34824           {
34825             "group": "Body",
34826             "type": "String",
34827             "optional": true,
34828             "field": "content",
34829             "description": ""
34830           },
34831           {
34832             "group": "Body",
34833             "type": "String",
34834             "optional": true,
34835             "field": "key",
34836             "description": ""
34837           },
34838           {
34839             "group": "Body",
34840             "type": "String",
34841             "allowedValues": [
34842               "\"string\"",
34843               "\"variable\"",
34844               "\"customVariable\""
34845             ],
34846             "optional": true,
34847             "field": "keyType",
34848             "description": ""
34849           },
34850           {
34851             "group": "Body",
34852             "type": "String",
34853             "optional": true,
34854             "field": "keyContent",
34855             "description": ""
34856           },
34857           {
34858             "group": "Body",
34859             "type": "String",
34860             "optional": true,
34861             "field": "idField",
34862             "description": ""
34863           },
34864           {
34865             "group": "Body",
34866             "type": "String",
34867             "optional": true,
34868             "field": "nameField",
34869             "description": ""
34870           },
34871           {
34872             "group": "Body",
34873             "type": "Boolean",
34874             "optional": true,
34875             "field": "customField",
34876             "description": ""
34877           },
34878           {
34879             "group": "Body",
34880             "type": "String",
34881             "optional": true,
34882             "field": "variableName",
34883             "description": ""
34884           }
34885         ]
34886       }
34887     },
34888     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34889     "version": "0.0.0",
34890     "filename": "server/api/intVtigerField/index.js",
34891     "groupTitle": "Vtiger_Fields"
34892   },
34893   {
34894     "type": "delete",
34895     "url": "/api/integrations/vtiger/fields/{id}",
34896     "title": "Deletes a Vtiger Field",
34897     "examples": [
34898       {
34899         "title": "Example usage:",
34900         "content": "curl https://{domain}/api/integrations/vtiger/fields/{id} -v -u {name}:{password} -X DELETE",
34901         "type": "json"
34902       }
34903     ],
34904     "name": "DeleteVtiger_Fields",
34905     "group": "Vtiger_Fields",
34906     "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>",
34907     "version": "0.0.0",
34908     "filename": "server/api/intVtigerField/index.js",
34909     "groupTitle": "Vtiger_Fields"
34910   },
34911   {
34912     "type": "get",
34913     "url": "/api/integrations/vtiger/fields",
34914     "title": "Gets a list of Vtiger Fields",
34915     "examples": [
34916       {
34917         "title": "Example usage:",
34918         "content": "curl https://{domain}/api/integrations/vtiger/fields -v -u {name}:{password}",
34919         "type": "json"
34920       }
34921     ],
34922     "name": "GetVtiger_Fields",
34923     "group": "Vtiger_Fields",
34924     "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>",
34925     "version": "0.0.0",
34926     "filename": "server/api/intVtigerField/index.js",
34927     "groupTitle": "Vtiger_Fields"
34928   },
34929   {
34930     "type": "get",
34931     "url": "/api/integrations/vtiger/fields/{id}",
34932     "title": "Gets a single Vtiger Field",
34933     "examples": [
34934       {
34935         "title": "Example usage:",
34936         "content": "curl https://{domain}/api/integrations/vtiger/fields/{id} -v -u {name}:{password}",
34937         "type": "json"
34938       }
34939     ],
34940     "name": "ShowVtiger_Fields",
34941     "group": "Vtiger_Fields",
34942     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34943     "version": "0.0.0",
34944     "filename": "server/api/intVtigerField/index.js",
34945     "groupTitle": "Vtiger_Fields"
34946   },
34947   {
34948     "type": "put",
34949     "url": "/api/integrations/vtiger/fields/{id}",
34950     "title": "Update an existing Vtiger Field",
34951     "examples": [
34952       {
34953         "title": "Example usage:",
34954         "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",
34955         "type": "json"
34956       }
34957     ],
34958     "name": "updateVtiger_Fields",
34959     "group": "Vtiger_Fields",
34960     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34961     "version": "0.0.0",
34962     "filename": "server/api/intVtigerField/index.js",
34963     "groupTitle": "Vtiger_Fields"
34964   },
34965   {
34966     "type": "post",
34967     "url": "/api/webbar/answer",
34968     "title": "answer webrtc call",
34969     "examples": [
34970       {
34971         "title": "Example usage:",
34972         "content": "curl https://{domain}/api/webbar/answer -d '{\"sessionId\": \"<sessionId>\", \"userId\": 54}' \\\n -H \"Content-Type: application/json\" -X POST",
34973         "type": "json"
34974       }
34975     ],
34976     "name": "Web_Bar_answer",
34977     "group": "WebBar",
34978     "parameter": {
34979       "fields": {
34980         "Body": [
34981           {
34982             "group": "Body",
34983             "type": "String",
34984             "optional": false,
34985             "field": "sessionId",
34986             "description": ""
34987           },
34988           {
34989             "group": "Body",
34990             "type": "number",
34991             "optional": false,
34992             "field": "userId",
34993             "description": ""
34994           }
34995         ]
34996       }
34997     },
34998     "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>",
34999     "version": "0.0.0",
35000     "filename": "server/api/webbar/index.js",
35001     "groupTitle": "WebBar"
35002   },
35003   {
35004     "type": "post",
35005     "url": "/api/webbar/calls",
35006     "title": "webrtc call list",
35007     "examples": [
35008       {
35009         "title": "Example usage:",
35010         "content": "curl https://{domain}/api/webbar/calls -d '{\"userId\": 54}' \\\n -H \"Content-Type: application/json\" -X POST",
35011         "type": "json"
35012       }
35013     ],
35014     "name": "Web_Bar_calls",
35015     "group": "WebBar",
35016     "parameter": {
35017       "fields": {
35018         "Body": [
35019           {
35020             "group": "Body",
35021             "type": "number",
35022             "optional": false,
35023             "field": "userId",
35024             "description": ""
35025           }
35026         ]
35027       }
35028     },
35029     "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>",
35030     "version": "0.0.0",
35031     "filename": "server/api/webbar/index.js",
35032     "groupTitle": "WebBar"
35033   },
35034   {
35035     "type": "post",
35036     "url": "/api/webbar/hangup",
35037     "title": "hangup webrtc call",
35038     "examples": [
35039       {
35040         "title": "Example usage:",
35041         "content": "curl https://{domain}/api/webbar/hangup -d '{\"sessionId\": \"<sessionId>\", \"userId\": 54}' \\\n -H \"Content-Type: application/json\" -X POST",
35042         "type": "json"
35043       }
35044     ],
35045     "name": "Web_Bar_hangup",
35046     "group": "WebBar",
35047     "parameter": {
35048       "fields": {
35049         "Body": [
35050           {
35051             "group": "Body",
35052             "type": "String",
35053             "optional": false,
35054             "field": "sessionId",
35055             "description": ""
35056           },
35057           {
35058             "group": "Body",
35059             "type": "number",
35060             "optional": false,
35061             "field": "userId",
35062             "description": ""
35063           }
35064         ]
35065       }
35066     },
35067     "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>",
35068     "version": "0.0.0",
35069     "filename": "server/api/webbar/index.js",
35070     "groupTitle": "WebBar"
35071   },
35072   {
35073     "type": "post",
35074     "url": "/api/webbar/hold",
35075     "title": "hold webrtc call",
35076     "examples": [
35077       {
35078         "title": "Example usage:",
35079         "content": "curl https://{domain}/api/webbar/hold -d '{\"sessionId\": \"<sessionId>\", \"userId\": 54}' \\\n -H \"Content-Type: application/json\" -X POST",
35080         "type": "json"
35081       }
35082     ],
35083     "name": "Web_Bar_hold",
35084     "group": "WebBar",
35085     "parameter": {
35086       "fields": {
35087         "Body": [
35088           {
35089             "group": "Body",
35090             "type": "String",
35091             "optional": true,
35092             "field": "sessionId",
35093             "description": ""
35094           },
35095           {
35096             "group": "Body",
35097             "type": "number",
35098             "optional": false,
35099             "field": "userId",
35100             "description": ""
35101           }
35102         ]
35103       }
35104     },
35105     "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>",
35106     "version": "0.0.0",
35107     "filename": "server/api/webbar/index.js",
35108     "groupTitle": "WebBar"
35109   },
35110   {
35111     "type": "post",
35112     "url": "/api/webbar/unhold",
35113     "title": "unhold webrtc call",
35114     "examples": [
35115       {
35116         "title": "Example usage:",
35117         "content": "curl https://{domain}/api/webbar/unhold -d '{\"sessionId\": \"<sessionId>\", \"userId\": 54}' \\\n -H \"Content-Type: application/json\" -X POST",
35118         "type": "json"
35119       }
35120     ],
35121     "name": "Web_Bar_hold",
35122     "group": "WebBar",
35123     "parameter": {
35124       "fields": {
35125         "Body": [
35126           {
35127             "group": "Body",
35128             "type": "String",
35129             "optional": false,
35130             "field": "sessionId",
35131             "description": ""
35132           },
35133           {
35134             "group": "Body",
35135             "type": "number",
35136             "optional": false,
35137             "field": "userId",
35138             "description": ""
35139           }
35140         ]
35141       }
35142     },
35143     "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>",
35144     "version": "0.0.0",
35145     "filename": "server/api/webbar/index.js",
35146     "groupTitle": "WebBar"
35147   },
35148   {
35149     "type": "post",
35150     "url": "/api/webbar/originate",
35151     "title": "Originate new webrtc call",
35152     "examples": [
35153       {
35154         "title": "Example usage:",
35155         "content": "curl https://{domain}/api/webbar/originate -d '{\"callNumber\": \"0119692844\", \"userId\": 54}' \\\n -H \"Content-Type: application/json\" -X POST",
35156         "type": "json"
35157       }
35158     ],
35159     "name": "Web_Bar_originate",
35160     "group": "WebBar",
35161     "parameter": {
35162       "fields": {
35163         "Body": [
35164           {
35165             "group": "Body",
35166             "type": "String",
35167             "optional": false,
35168             "field": "callNumber",
35169             "description": ""
35170           },
35171           {
35172             "group": "Body",
35173             "type": "number",
35174             "optional": false,
35175             "field": "userId",
35176             "description": ""
35177           },
35178           {
35179             "group": "Body",
35180             "type": "String",
35181             "optional": false,
35182             "field": "callerId",
35183             "description": ""
35184           },
35185           {
35186             "group": "Body",
35187             "type": "String",
35188             "optional": false,
35189             "field": "callbackUrl",
35190             "description": ""
35191           }
35192         ]
35193       }
35194     },
35195     "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>",
35196     "version": "0.0.0",
35197     "filename": "server/api/webbar/index.js",
35198     "groupTitle": "WebBar"
35199   },
35200   {
35201     "type": "post",
35202     "url": "/api/webbar/transfer",
35203     "title": "blind transfer webrtc call",
35204     "examples": [
35205       {
35206         "title": "Example usage:",
35207         "content": "curl https://{domain}/api/webbar/transfer -d '{\"userId\": 54, \"sessionId\":\"<sessionId>\", \"transferNumber\":\"<transferNumber>\"}' \\\n -H \"Content-Type: application/json\" -X POST",
35208         "type": "json"
35209       }
35210     ],
35211     "name": "Web_Bar_transfer",
35212     "group": "WebBar",
35213     "parameter": {
35214       "fields": {
35215         "Body": [
35216           {
35217             "group": "Body",
35218             "type": "number",
35219             "optional": false,
35220             "field": "userId",
35221             "description": ""
35222           },
35223           {
35224             "group": "Body",
35225             "type": "string",
35226             "optional": false,
35227             "field": "sessionId",
35228             "description": ""
35229           },
35230           {
35231             "group": "Body",
35232             "type": "string",
35233             "optional": false,
35234             "field": "transferNumber",
35235             "description": ""
35236           }
35237         ]
35238       }
35239     },
35240     "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>",
35241     "version": "0.0.0",
35242     "filename": "server/api/webbar/index.js",
35243     "groupTitle": "WebBar"
35244   },
35245   {
35246     "type": "post",
35247     "url": "/api/whatsapp/accounts/{id}/users",
35248     "title": "Add agents to a whatsapp account",
35249     "examples": [
35250       {
35251         "title": "Example usage:",
35252         "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",
35253         "type": "json"
35254       }
35255     ],
35256     "name": "AddAgents",
35257     "group": "Whatsapp_Accounts",
35258     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35259     "version": "0.0.0",
35260     "filename": "server/api/whatsappAccount/index.js",
35261     "groupTitle": "Whatsapp_Accounts"
35262   },
35263   {
35264     "type": "post",
35265     "url": "/api/whatsapp/accounts",
35266     "title": "Creates a new Account",
35267     "examples": [
35268       {
35269         "title": "Example usage:",
35270         "content": "curl https://{domain}/api/whatsapp/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
35271         "type": "json"
35272       }
35273     ],
35274     "name": "CreateAccounts",
35275     "group": "Whatsapp_Accounts",
35276     "parameter": {
35277       "fields": {
35278         "Body": [
35279           {
35280             "group": "Body",
35281             "type": "String",
35282             "optional": false,
35283             "field": "name",
35284             "description": ""
35285           },
35286           {
35287             "group": "Body",
35288             "type": "String",
35289             "optional": false,
35290             "field": "key",
35291             "description": ""
35292           },
35293           {
35294             "group": "Body",
35295             "type": "String",
35296             "optional": false,
35297             "field": "remote",
35298             "description": ""
35299           },
35300           {
35301             "group": "Body",
35302             "type": "String",
35303             "optional": true,
35304             "field": "token",
35305             "description": ""
35306           },
35307           {
35308             "group": "Body",
35309             "type": "String",
35310             "optional": true,
35311             "field": "phone",
35312             "description": ""
35313           },
35314           {
35315             "group": "Body",
35316             "type": "String",
35317             "allowedValues": [
35318               "\"twilio\""
35319             ],
35320             "optional": true,
35321             "field": "type",
35322             "description": ""
35323           },
35324           {
35325             "group": "Body",
35326             "type": "String",
35327             "optional": true,
35328             "field": "accountSid",
35329             "description": ""
35330           },
35331           {
35332             "group": "Body",
35333             "type": "String",
35334             "optional": true,
35335             "field": "authToken",
35336             "description": ""
35337           },
35338           {
35339             "group": "Body",
35340             "type": "Text",
35341             "optional": true,
35342             "field": "notificationTemplate",
35343             "description": ""
35344           },
35345           {
35346             "group": "Body",
35347             "type": "Boolean",
35348             "optional": true,
35349             "field": "notificationSound",
35350             "description": ""
35351           },
35352           {
35353             "group": "Body",
35354             "type": "Boolean",
35355             "optional": true,
35356             "field": "notificationShake",
35357             "description": ""
35358           },
35359           {
35360             "group": "Body",
35361             "type": "Integer",
35362             "optional": true,
35363             "field": "waitForTheAssignedAgent",
35364             "description": ""
35365           },
35366           {
35367             "group": "Body",
35368             "type": "Boolean",
35369             "optional": true,
35370             "field": "queueTransfer",
35371             "description": ""
35372           },
35373           {
35374             "group": "Body",
35375             "type": "Integer",
35376             "optional": true,
35377             "field": "queueTransferTimeout",
35378             "description": ""
35379           },
35380           {
35381             "group": "Body",
35382             "type": "Boolean",
35383             "optional": true,
35384             "field": "agentTransfer",
35385             "description": ""
35386           },
35387           {
35388             "group": "Body",
35389             "type": "Integer",
35390             "optional": true,
35391             "field": "agentTransferTimeout",
35392             "description": ""
35393           },
35394           {
35395             "group": "Body",
35396             "type": "Integer",
35397             "optional": true,
35398             "field": "mandatoryDispositionPauseId",
35399             "description": "<p>Status to put when mandatory disposition is enabled</p>"
35400           },
35401           {
35402             "group": "Body",
35403             "type": "Boolean",
35404             "optional": true,
35405             "field": "mandatoryDisposition",
35406             "description": "<p>Enabled/disables mandatory dispo on a queue</p>"
35407           },
35408           {
35409             "group": "Body",
35410             "type": "String",
35411             "optional": true,
35412             "field": "description",
35413             "description": ""
35414           }
35415         ]
35416       }
35417     },
35418     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35419     "version": "0.0.0",
35420     "filename": "server/api/whatsappAccount/index.js",
35421     "groupTitle": "Whatsapp_Accounts"
35422   },
35423   {
35424     "type": "delete",
35425     "url": "/api/whatsapp/accounts/{id}",
35426     "title": "Deletes a Account",
35427     "examples": [
35428       {
35429         "title": "Example usage:",
35430         "content": "curl https://{domain}/api/whatsapp/accounts/{id} -v -u {name}:{password} -X DELETE",
35431         "type": "json"
35432       }
35433     ],
35434     "name": "DeleteAccounts",
35435     "group": "Whatsapp_Accounts",
35436     "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>",
35437     "version": "0.0.0",
35438     "filename": "server/api/whatsappAccount/index.js",
35439     "groupTitle": "Whatsapp_Accounts"
35440   },
35441   {
35442     "type": "get",
35443     "url": "/api/whatsapp/accounts/describe",
35444     "title": "Gets table info about Accounts",
35445     "examples": [
35446       {
35447         "title": "Example usage:",
35448         "content": "curl https://{domain}/api/whatsapp/accounts/describe -v -u {name}:{password}",
35449         "type": "json"
35450       }
35451     ],
35452     "name": "DescribeAccounts",
35453     "group": "Whatsapp_Accounts",
35454     "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>",
35455     "version": "0.0.0",
35456     "filename": "server/api/whatsappAccount/index.js",
35457     "groupTitle": "Whatsapp_Accounts"
35458   },
35459   {
35460     "type": "get",
35461     "url": "/api/whatsapp/accounts",
35462     "title": "Gets a list of Accounts",
35463     "examples": [
35464       {
35465         "title": "Example usage:",
35466         "content": "curl https://{domain}/api/whatsapp/accounts -v -u {name}:{password}",
35467         "type": "json"
35468       }
35469     ],
35470     "name": "GetAccounts",
35471     "group": "Whatsapp_Accounts",
35472     "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>",
35473     "version": "0.0.0",
35474     "filename": "server/api/whatsappAccount/index.js",
35475     "groupTitle": "Whatsapp_Accounts"
35476   },
35477   {
35478     "type": "get",
35479     "url": "/api/whatsapp/accounts/{id}/users",
35480     "title": "Gets agents from whatsapp account",
35481     "examples": [
35482       {
35483         "title": "Example usage:",
35484         "content": "curl https://{domain}/api/whatsapp/accounts/{id}/users -v -u {name}:{password} -X GET",
35485         "type": "json"
35486       }
35487     ],
35488     "name": "GetAgents",
35489     "group": "Whatsapp_Accounts",
35490     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35491     "version": "0.0.0",
35492     "filename": "server/api/whatsappAccount/index.js",
35493     "groupTitle": "Whatsapp_Accounts"
35494   },
35495   {
35496     "type": "delete",
35497     "url": "/api/whatsapp/accounts/{id}/users",
35498     "title": "Removes agents from a whatsapp account",
35499     "examples": [
35500       {
35501         "title": "Example usage:",
35502         "content": "curl https://{domain}/api/whatsapp/accounts/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
35503         "type": "json"
35504       }
35505     ],
35506     "name": "RemoveAgents",
35507     "group": "Whatsapp_Accounts",
35508     "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>",
35509     "version": "0.0.0",
35510     "filename": "server/api/whatsappAccount/index.js",
35511     "groupTitle": "Whatsapp_Accounts"
35512   },
35513   {
35514     "type": "delete",
35515     "url": "/api/whatsapp/accounts/{id}/canned_answers",
35516     "title": "Removes canned answers from account",
35517     "examples": [
35518       {
35519         "title": "Example usage:",
35520         "content": "curl https://{domain}/api/whatsapp/accounts/{id}/canned_answers?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
35521         "type": "json"
35522       }
35523     ],
35524     "name": "RemoveAnswers",
35525     "group": "Whatsapp_Accounts",
35526     "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>",
35527     "version": "0.0.0",
35528     "filename": "server/api/whatsappAccount/index.js",
35529     "groupTitle": "Whatsapp_Accounts"
35530   },
35531   {
35532     "type": "delete",
35533     "url": "/api/whatsapp/accounts/{id}/dispositions",
35534     "title": "Removes dispositions from account",
35535     "examples": [
35536       {
35537         "title": "Example usage:",
35538         "content": "curl https://{domain}/api/whatsapp/accounts/{id}/dispositions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
35539         "type": "json"
35540       }
35541     ],
35542     "name": "RemoveDispositions",
35543     "group": "Whatsapp_Accounts",
35544     "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>",
35545     "version": "0.0.0",
35546     "filename": "server/api/whatsappAccount/index.js",
35547     "groupTitle": "Whatsapp_Accounts"
35548   },
35549   {
35550     "type": "get",
35551     "url": "/api/whatsapp/accounts/{id}",
35552     "title": "Gets a single Account",
35553     "examples": [
35554       {
35555         "title": "Example usage:",
35556         "content": "curl https://{domain}/api/whatsapp/accounts/{id} -v -u {name}:{password}",
35557         "type": "json"
35558       }
35559     ],
35560     "name": "ShowAccounts",
35561     "group": "Whatsapp_Accounts",
35562     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35563     "version": "0.0.0",
35564     "filename": "server/api/whatsappAccount/index.js",
35565     "groupTitle": "Whatsapp_Accounts"
35566   },
35567   {
35568     "type": "put",
35569     "url": "/api/whatsapp/messages/{id}/accept",
35570     "title": "Accepts message",
35571     "examples": [
35572       {
35573         "title": "Example usage:",
35574         "content": "curl https://{domain}/api/whatsapp/messages/{id}/accept \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
35575         "type": "json"
35576       }
35577     ],
35578     "name": "acceptMessage",
35579     "group": "Whatsapp_Accounts",
35580     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35581     "version": "0.0.0",
35582     "filename": "server/api/whatsappMessage/index.js",
35583     "groupTitle": "Whatsapp_Accounts"
35584   },
35585   {
35586     "type": "post",
35587     "url": "/api/whatsapp/accounts/{id}/canned_answers",
35588     "title": "Creates new canned answer",
35589     "examples": [
35590       {
35591         "title": "Example usage:",
35592         "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",
35593         "type": "json"
35594       }
35595     ],
35596     "name": "addAnswer",
35597     "group": "Whatsapp_Accounts",
35598     "parameter": {
35599       "fields": {
35600         "Body": [
35601           {
35602             "group": "Body",
35603             "type": "String",
35604             "optional": false,
35605             "field": "key",
35606             "description": ""
35607           },
35608           {
35609             "group": "Body",
35610             "type": "Text",
35611             "optional": false,
35612             "field": "value",
35613             "description": ""
35614           },
35615           {
35616             "group": "Body",
35617             "type": "String",
35618             "optional": true,
35619             "field": "description",
35620             "description": ""
35621           },
35622           {
35623             "group": "Body",
35624             "type": "Virtual",
35625             "optional": true,
35626             "field": "name",
35627             "description": ""
35628           }
35629         ]
35630       }
35631     },
35632     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35633     "version": "0.0.0",
35634     "filename": "server/api/whatsappAccount/index.js",
35635     "groupTitle": "Whatsapp_Accounts"
35636   },
35637   {
35638     "type": "post",
35639     "url": "/api/whatsapp/accounts/{id}/applications",
35640     "title": "Creates new applications",
35641     "examples": [
35642       {
35643         "title": "Example usage:",
35644         "content": "curl https://{domain}/api/whatsapp/accounts/{id}/applications -d '[{\"app\": \"queue\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
35645         "type": "json"
35646       }
35647     ],
35648     "name": "addApplications",
35649     "group": "Whatsapp_Accounts",
35650     "parameter": {
35651       "fields": {
35652         "Body": [
35653           {
35654             "group": "Body",
35655             "type": "Integer",
35656             "optional": false,
35657             "field": "priority",
35658             "description": ""
35659           },
35660           {
35661             "group": "Body",
35662             "type": "String",
35663             "optional": false,
35664             "field": "app",
35665             "description": ""
35666           },
35667           {
35668             "group": "Body",
35669             "type": "Text",
35670             "optional": true,
35671             "field": "appdata",
35672             "description": ""
35673           },
35674           {
35675             "group": "Body",
35676             "type": "String",
35677             "optional": true,
35678             "field": "description",
35679             "description": ""
35680           },
35681           {
35682             "group": "Body",
35683             "type": "String",
35684             "optional": true,
35685             "field": "interval",
35686             "description": ""
35687           }
35688         ]
35689       }
35690     },
35691     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35692     "version": "0.0.0",
35693     "filename": "server/api/whatsappAccount/index.js",
35694     "groupTitle": "Whatsapp_Accounts"
35695   },
35696   {
35697     "type": "post",
35698     "url": "/api/whatsapp/accounts/{id}/dispositions",
35699     "title": "Creates new disposition",
35700     "examples": [
35701       {
35702         "title": "Example usage:",
35703         "content": "curl https://{domain}/api/whatsapp/accounts/{id}/dispositions -d '{\"name\": \"vip\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
35704         "type": "json"
35705       }
35706     ],
35707     "name": "addDisposition",
35708     "group": "Whatsapp_Accounts",
35709     "parameter": {
35710       "fields": {
35711         "Body": [
35712           {
35713             "group": "Body",
35714             "type": "String",
35715             "optional": false,
35716             "field": "name",
35717             "description": ""
35718           },
35719           {
35720             "group": "Body",
35721             "type": "String",
35722             "allowedValues": [
35723               "\"first\"",
35724               "\"second\"",
35725               "\"third\""
35726             ],
35727             "optional": false,
35728             "field": "level",
35729             "description": ""
35730           },
35731           {
35732             "group": "Body",
35733             "type": "String",
35734             "optional": true,
35735             "field": "description",
35736             "description": ""
35737           }
35738         ]
35739       }
35740     },
35741     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35742     "version": "0.0.0",
35743     "filename": "server/api/whatsappAccount/index.js",
35744     "groupTitle": "Whatsapp_Accounts"
35745   },
35746   {
35747     "type": "get",
35748     "url": "/api/whatsapp/accounts/{id}/canned_answers",
35749     "title": "Gets account canned answers",
35750     "examples": [
35751       {
35752         "title": "Example usage:",
35753         "content": "curl https://{domain}/api/whatsapp/accounts/{id}/canned_answers -v -u {name}:{password} -X GET",
35754         "type": "json"
35755       }
35756     ],
35757     "name": "getAnswers",
35758     "group": "Whatsapp_Accounts",
35759     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35760     "version": "0.0.0",
35761     "filename": "server/api/whatsappAccount/index.js",
35762     "groupTitle": "Whatsapp_Accounts"
35763   },
35764   {
35765     "type": "get",
35766     "url": "/api/whatsapp/accounts/{id}/applications",
35767     "title": "Gets account applications",
35768     "examples": [
35769       {
35770         "title": "Example usage:",
35771         "content": "curl https://{domain}/api/whatsapp/accounts/{id}/applications -v -u {name}:{password} -X GET",
35772         "type": "json"
35773       }
35774     ],
35775     "name": "getApplications",
35776     "group": "Whatsapp_Accounts",
35777     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35778     "version": "0.0.0",
35779     "filename": "server/api/whatsappAccount/index.js",
35780     "groupTitle": "Whatsapp_Accounts"
35781   },
35782   {
35783     "type": "get",
35784     "url": "/api/whatsapp/accounts/{id}/dispositions",
35785     "title": "Gets account dispositions",
35786     "examples": [
35787       {
35788         "title": "Example usage:",
35789         "content": "curl https://{domain}/api/whatsapp/accounts/{id}/dispositions -v -u {name}:{password} -X GET",
35790         "type": "json"
35791       }
35792     ],
35793     "name": "getDispositions",
35794     "group": "Whatsapp_Accounts",
35795     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35796     "version": "0.0.0",
35797     "filename": "server/api/whatsappAccount/index.js",
35798     "groupTitle": "Whatsapp_Accounts"
35799   },
35800   {
35801     "type": "post",
35802     "url": "/api/whatsapp/accounts/{id}/notify",
35803     "title": "Notify new message",
35804     "examples": [
35805       {
35806         "title": "Example usage:",
35807         "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",
35808         "type": "json"
35809       }
35810     ],
35811     "name": "notify",
35812     "group": "Whatsapp_Accounts",
35813     "description": "<p>Motion 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>",
35814     "version": "0.0.0",
35815     "filename": "server/api/whatsappAccount/index.js",
35816     "groupTitle": "Whatsapp_Accounts"
35817   },
35818   {
35819     "type": "put",
35820     "url": "/api/whatsapp/messages/{id}/reject",
35821     "title": "Rejects message",
35822     "examples": [
35823       {
35824         "title": "Example usage:",
35825         "content": "curl https://{domain}/api/whatsapp/messages/{id}/reject \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
35826         "type": "json"
35827       }
35828     ],
35829     "name": "rejectMessage",
35830     "group": "Whatsapp_Accounts",
35831     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35832     "version": "0.0.0",
35833     "filename": "server/api/whatsappMessage/index.js",
35834     "groupTitle": "Whatsapp_Accounts"
35835   },
35836   {
35837     "type": "post",
35838     "url": "/api/whatsapp/accounts/{id}/send",
35839     "title": "Send new whatsapp message",
35840     "examples": [
35841       {
35842         "title": "Example usage:",
35843         "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",
35844         "type": "json"
35845       }
35846     ],
35847     "name": "sendWhatsapp",
35848     "group": "Whatsapp_Accounts",
35849     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35850     "version": "0.0.0",
35851     "filename": "server/api/whatsappAccount/index.js",
35852     "groupTitle": "Whatsapp_Accounts"
35853   },
35854   {
35855     "type": "post",
35856     "url": "/api/whatsapp/messages/{id}/status",
35857     "title": "Receive message status",
35858     "examples": [
35859       {
35860         "title": "Example usage:",
35861         "content": "curl https://{domain}/api/whatsapp/messages/{id}/status \\ \n -H 'Content-Type: application/json' -v -X POST",
35862         "type": "json"
35863       }
35864     ],
35865     "name": "statusMessage",
35866     "group": "Whatsapp_Accounts",
35867     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35868     "version": "0.0.0",
35869     "filename": "server/api/whatsappMessage/index.js",
35870     "groupTitle": "Whatsapp_Accounts"
35871   },
35872   {
35873     "type": "put",
35874     "url": "/api/whatsapp/accounts/{id}",
35875     "title": "Update an existing Account",
35876     "examples": [
35877       {
35878         "title": "Example usage:",
35879         "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",
35880         "type": "json"
35881       }
35882     ],
35883     "name": "updateAccounts",
35884     "group": "Whatsapp_Accounts",
35885     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35886     "version": "0.0.0",
35887     "filename": "server/api/whatsappAccount/index.js",
35888     "groupTitle": "Whatsapp_Accounts"
35889   },
35890   {
35891     "type": "post",
35892     "url": "/api/whatsapp/applications",
35893     "title": "Creates a new Application",
35894     "examples": [
35895       {
35896         "title": "Example usage:",
35897         "content": "curl https://{domain}/api/whatsapp/applications -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
35898         "type": "json"
35899       }
35900     ],
35901     "name": "CreateApplications",
35902     "group": "Whatsapp_Applications",
35903     "parameter": {
35904       "fields": {
35905         "Body": [
35906           {
35907             "group": "Body",
35908             "type": "Integer",
35909             "optional": false,
35910             "field": "priority",
35911             "description": ""
35912           },
35913           {
35914             "group": "Body",
35915             "type": "String",
35916             "optional": false,
35917             "field": "app",
35918             "description": ""
35919           },
35920           {
35921             "group": "Body",
35922             "type": "Text",
35923             "optional": true,
35924             "field": "appdata",
35925             "description": ""
35926           },
35927           {
35928             "group": "Body",
35929             "type": "String",
35930             "optional": true,
35931             "field": "description",
35932             "description": ""
35933           },
35934           {
35935             "group": "Body",
35936             "type": "String",
35937             "optional": true,
35938             "field": "interval",
35939             "description": ""
35940           }
35941         ]
35942       }
35943     },
35944     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35945     "version": "0.0.0",
35946     "filename": "server/api/whatsappApplication/index.js",
35947     "groupTitle": "Whatsapp_Applications"
35948   },
35949   {
35950     "type": "delete",
35951     "url": "/api/whatsapp/applications/{id}",
35952     "title": "Deletes a Application",
35953     "examples": [
35954       {
35955         "title": "Example usage:",
35956         "content": "curl https://{domain}/api/whatsapp/applications/{id} -v -u {name}:{password} -X DELETE",
35957         "type": "json"
35958       }
35959     ],
35960     "name": "DeleteApplications",
35961     "group": "Whatsapp_Applications",
35962     "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>",
35963     "version": "0.0.0",
35964     "filename": "server/api/whatsappApplication/index.js",
35965     "groupTitle": "Whatsapp_Applications"
35966   },
35967   {
35968     "type": "get",
35969     "url": "/api/whatsapp/applications",
35970     "title": "Gets a list of Applications",
35971     "examples": [
35972       {
35973         "title": "Example usage:",
35974         "content": "curl https://{domain}/api/whatsapp/applications -v -u {name}:{password}",
35975         "type": "json"
35976       }
35977     ],
35978     "name": "GetApplications",
35979     "group": "Whatsapp_Applications",
35980     "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>",
35981     "version": "0.0.0",
35982     "filename": "server/api/whatsappApplication/index.js",
35983     "groupTitle": "Whatsapp_Applications"
35984   },
35985   {
35986     "type": "get",
35987     "url": "/api/whatsapp/applications/{id}",
35988     "title": "Gets a single Application",
35989     "examples": [
35990       {
35991         "title": "Example usage:",
35992         "content": "curl https://{domain}/api/whatsapp/applications/{id} -v -u {name}:{password}",
35993         "type": "json"
35994       }
35995     ],
35996     "name": "ShowApplications",
35997     "group": "Whatsapp_Applications",
35998     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35999     "version": "0.0.0",
36000     "filename": "server/api/whatsappApplication/index.js",
36001     "groupTitle": "Whatsapp_Applications"
36002   },
36003   {
36004     "type": "put",
36005     "url": "/api/whatsapp/applications/{id}",
36006     "title": "Update an existing Application",
36007     "examples": [
36008       {
36009         "title": "Example usage:",
36010         "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",
36011         "type": "json"
36012       }
36013     ],
36014     "name": "updateApplications",
36015     "group": "Whatsapp_Applications",
36016     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36017     "version": "0.0.0",
36018     "filename": "server/api/whatsappApplication/index.js",
36019     "groupTitle": "Whatsapp_Applications"
36020   },
36021   {
36022     "type": "post",
36023     "url": "/api/whatsapp/interactions/{id}/tags",
36024     "title": "Add tags to the interaction",
36025     "examples": [
36026       {
36027         "title": "Example usage:",
36028         "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",
36029         "type": "json"
36030       }
36031     ],
36032     "name": "AddTags",
36033     "group": "Whatsapp_Interactions",
36034     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36035     "version": "0.0.0",
36036     "filename": "server/api/whatsappInteraction/index.js",
36037     "groupTitle": "Whatsapp_Interactions"
36038   },
36039   {
36040     "type": "post",
36041     "url": "/api/whatsapp/interactions",
36042     "title": "Creates a new Interaction",
36043     "examples": [
36044       {
36045         "title": "Example usage:",
36046         "content": "curl https://{domain}/api/whatsapp/interactions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
36047         "type": "json"
36048       }
36049     ],
36050     "name": "CreateInteractions",
36051     "group": "Whatsapp_Interactions",
36052     "parameter": {
36053       "fields": {
36054         "Body": [
36055           {
36056             "group": "Body",
36057             "type": "Boolean",
36058             "optional": true,
36059             "field": "closed",
36060             "description": ""
36061           },
36062           {
36063             "group": "Body",
36064             "type": "String",
36065             "optional": true,
36066             "field": "closedAt",
36067             "description": ""
36068           },
36069           {
36070             "group": "Body",
36071             "type": "String",
36072             "optional": true,
36073             "field": "disposition",
36074             "description": ""
36075           },
36076           {
36077             "group": "Body",
36078             "type": "String",
36079             "optional": true,
36080             "field": "secondDisposition",
36081             "description": ""
36082           },
36083           {
36084             "group": "Body",
36085             "type": "String",
36086             "optional": true,
36087             "field": "thirdDisposition",
36088             "description": ""
36089           },
36090           {
36091             "group": "Body",
36092             "type": "String",
36093             "optional": true,
36094             "field": "note",
36095             "description": ""
36096           },
36097           {
36098             "group": "Body",
36099             "type": "String",
36100             "optional": true,
36101             "field": "phone",
36102             "description": ""
36103           },
36104           {
36105             "group": "Body",
36106             "type": "String",
36107             "optional": true,
36108             "field": "read1stAt",
36109             "description": ""
36110           },
36111           {
36112             "group": "Body",
36113             "type": "String",
36114             "allowedValues": [
36115               "\"in\"",
36116               "\"out\""
36117             ],
36118             "optional": false,
36119             "field": "firstMsgDirection",
36120             "description": ""
36121           },
36122           {
36123             "group": "Body",
36124             "type": "String",
36125             "optional": true,
36126             "field": "lastMsgAt",
36127             "description": ""
36128           },
36129           {
36130             "group": "Body",
36131             "type": "String",
36132             "allowedValues": [
36133               "\"in\"",
36134               "\"out\""
36135             ],
36136             "optional": false,
36137             "field": "lastMsgDirection",
36138             "description": ""
36139           },
36140           {
36141             "group": "Body",
36142             "type": "Boolean",
36143             "optional": true,
36144             "field": "autoreplyExecuted",
36145             "description": ""
36146           }
36147         ]
36148       }
36149     },
36150     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36151     "version": "0.0.0",
36152     "filename": "server/api/whatsappInteraction/index.js",
36153     "groupTitle": "Whatsapp_Interactions"
36154   },
36155   {
36156     "type": "delete",
36157     "url": "/api/whatsapp/interactions/{id}",
36158     "title": "Deletes a Interaction",
36159     "examples": [
36160       {
36161         "title": "Example usage:",
36162         "content": "curl https://{domain}/api/whatsapp/interactions/{id} -v -u {name}:{password} -X DELETE",
36163         "type": "json"
36164       }
36165     ],
36166     "name": "DeleteInteractions",
36167     "group": "Whatsapp_Interactions",
36168     "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>",
36169     "version": "0.0.0",
36170     "filename": "server/api/whatsappInteraction/index.js",
36171     "groupTitle": "Whatsapp_Interactions"
36172   },
36173   {
36174     "type": "get",
36175     "url": "/api/whatsapp/interactions/describe",
36176     "title": "Gets table info about Interactions",
36177     "examples": [
36178       {
36179         "title": "Example usage:",
36180         "content": "curl https://{domain}/api/whatsapp/interactions/describe -v -u {name}:{password}",
36181         "type": "json"
36182       }
36183     ],
36184     "name": "DescribeInteractions",
36185     "group": "Whatsapp_Interactions",
36186     "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>",
36187     "version": "0.0.0",
36188     "filename": "server/api/whatsappInteraction/index.js",
36189     "groupTitle": "Whatsapp_Interactions"
36190   },
36191   {
36192     "type": "get",
36193     "url": "/api/whatsapp/interactions",
36194     "title": "Gets a list of Interactions",
36195     "examples": [
36196       {
36197         "title": "Example usage:",
36198         "content": "curl https://{domain}/api/whatsapp/interactions -v -u {name}:{password}",
36199         "type": "json"
36200       }
36201     ],
36202     "name": "GetInteractions",
36203     "group": "Whatsapp_Interactions",
36204     "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>",
36205     "version": "0.0.0",
36206     "filename": "server/api/whatsappInteraction/index.js",
36207     "groupTitle": "Whatsapp_Interactions"
36208   },
36209   {
36210     "type": "delete",
36211     "url": "/api/whatsapp/interactions/{id}/tags",
36212     "title": "Removes tags from interaction",
36213     "examples": [
36214       {
36215         "title": "Example usage:",
36216         "content": "curl https://{domain}/api/whatsapp/interactions/{id}/tags?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
36217         "type": "json"
36218       }
36219     ],
36220     "name": "RemoveTags",
36221     "group": "Whatsapp_Interactions",
36222     "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>",
36223     "version": "0.0.0",
36224     "filename": "server/api/whatsappInteraction/index.js",
36225     "groupTitle": "Whatsapp_Interactions"
36226   },
36227   {
36228     "type": "get",
36229     "url": "/api/whatsapp/interactions/{id}",
36230     "title": "Gets a single Interaction",
36231     "examples": [
36232       {
36233         "title": "Example usage:",
36234         "content": "curl https://{domain}/api/whatsapp/interactions/{id} -v -u {name}:{password}",
36235         "type": "json"
36236       }
36237     ],
36238     "name": "ShowInteractions",
36239     "group": "Whatsapp_Interactions",
36240     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36241     "version": "0.0.0",
36242     "filename": "server/api/whatsappInteraction/index.js",
36243     "groupTitle": "Whatsapp_Interactions"
36244   },
36245   {
36246     "type": "post",
36247     "url": "/api/whatsapp/interactions/{id}/messages",
36248     "title": "Creates new messages",
36249     "examples": [
36250       {
36251         "title": "Example usage:",
36252         "content": "curl https://{domain}/api/whatsapp/interactions/{id}/messages -d '[{\"to\": \"+3901119886500\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
36253         "type": "json"
36254       }
36255     ],
36256     "name": "addMessage",
36257     "group": "Whatsapp_Interactions",
36258     "parameter": {
36259       "fields": {
36260         "Body": [
36261           {
36262             "group": "Body",
36263             "type": "Text",
36264             "optional": false,
36265             "field": "body",
36266             "description": ""
36267           },
36268           {
36269             "group": "Body",
36270             "type": "Boolean",
36271             "optional": true,
36272             "field": "read",
36273             "description": ""
36274           },
36275           {
36276             "group": "Body",
36277             "type": "String",
36278             "allowedValues": [
36279               "\"in\"",
36280               "\"out\""
36281             ],
36282             "optional": false,
36283             "field": "direction",
36284             "description": ""
36285           },
36286           {
36287             "group": "Body",
36288             "type": "String",
36289             "optional": true,
36290             "field": "messageId",
36291             "description": ""
36292           },
36293           {
36294             "group": "Body",
36295             "type": "String",
36296             "optional": true,
36297             "field": "phone",
36298             "description": ""
36299           },
36300           {
36301             "group": "Body",
36302             "type": "String",
36303             "optional": true,
36304             "field": "readAt",
36305             "description": ""
36306           },
36307           {
36308             "group": "Body",
36309             "type": "Boolean",
36310             "optional": true,
36311             "field": "secret",
36312             "description": ""
36313           },
36314           {
36315             "group": "Body",
36316             "type": "String",
36317             "optional": true,
36318             "field": "providerName",
36319             "description": ""
36320           },
36321           {
36322             "group": "Body",
36323             "type": "Text",
36324             "optional": true,
36325             "field": "providerResponse",
36326             "description": ""
36327           }
36328         ]
36329       }
36330     },
36331     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36332     "version": "0.0.0",
36333     "filename": "server/api/whatsappInteraction/index.js",
36334     "groupTitle": "Whatsapp_Interactions"
36335   },
36336   {
36337     "type": "get",
36338     "url": "/api/whatsapp/interactions/{id}/download",
36339     "title": "Gets interaction",
36340     "examples": [
36341       {
36342         "title": "Example usage:",
36343         "content": "curl https://{domain}/api/whatsapp/interactions/{id}/download -v -u {name}:{password} -X GET",
36344         "type": "json"
36345       }
36346     ],
36347     "name": "download",
36348     "group": "Whatsapp_Interactions",
36349     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36350     "version": "0.0.0",
36351     "filename": "server/api/whatsappInteraction/index.js",
36352     "groupTitle": "Whatsapp_Interactions"
36353   },
36354   {
36355     "type": "get",
36356     "url": "/api/whatsapp/interactions/{id}/messages",
36357     "title": "Gets interaction messages",
36358     "examples": [
36359       {
36360         "title": "Example usage:",
36361         "content": "curl https://{domain}/api/whatsapp/interactions/{id}/messages -v -u {name}:{password} -X GET",
36362         "type": "json"
36363       }
36364     ],
36365     "name": "getMessages",
36366     "group": "Whatsapp_Interactions",
36367     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36368     "version": "0.0.0",
36369     "filename": "server/api/whatsappInteraction/index.js",
36370     "groupTitle": "Whatsapp_Interactions"
36371   },
36372   {
36373     "type": "put",
36374     "url": "/api/whatsapp/interactions/{id}",
36375     "title": "Update an existing Interaction",
36376     "examples": [
36377       {
36378         "title": "Example usage:",
36379         "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",
36380         "type": "json"
36381       }
36382     ],
36383     "name": "updateInteractions",
36384     "group": "Whatsapp_Interactions",
36385     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36386     "version": "0.0.0",
36387     "filename": "server/api/whatsappInteraction/index.js",
36388     "groupTitle": "Whatsapp_Interactions"
36389   },
36390   {
36391     "type": "post",
36392     "url": "/api/whatsapp/messages",
36393     "title": "Creates a new Message",
36394     "examples": [
36395       {
36396         "title": "Example usage:",
36397         "content": "curl https://{domain}/api/whatsapp/messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
36398         "type": "json"
36399       }
36400     ],
36401     "name": "CreateMessages",
36402     "group": "Whatsapp_Messages",
36403     "parameter": {
36404       "fields": {
36405         "Body": [
36406           {
36407             "group": "Body",
36408             "type": "Text",
36409             "optional": false,
36410             "field": "body",
36411             "description": ""
36412           },
36413           {
36414             "group": "Body",
36415             "type": "Boolean",
36416             "optional": true,
36417             "field": "read",
36418             "description": ""
36419           },
36420           {
36421             "group": "Body",
36422             "type": "String",
36423             "allowedValues": [
36424               "\"in\"",
36425               "\"out\""
36426             ],
36427             "optional": false,
36428             "field": "direction",
36429             "description": ""
36430           },
36431           {
36432             "group": "Body",
36433             "type": "String",
36434             "optional": true,
36435             "field": "messageId",
36436             "description": ""
36437           },
36438           {
36439             "group": "Body",
36440             "type": "String",
36441             "optional": true,
36442             "field": "phone",
36443             "description": ""
36444           },
36445           {
36446             "group": "Body",
36447             "type": "String",
36448             "optional": true,
36449             "field": "readAt",
36450             "description": ""
36451           },
36452           {
36453             "group": "Body",
36454             "type": "Boolean",
36455             "optional": true,
36456             "field": "secret",
36457             "description": ""
36458           },
36459           {
36460             "group": "Body",
36461             "type": "String",
36462             "optional": true,
36463             "field": "providerName",
36464             "description": ""
36465           },
36466           {
36467             "group": "Body",
36468             "type": "Text",
36469             "optional": true,
36470             "field": "providerResponse",
36471             "description": ""
36472           }
36473         ]
36474       }
36475     },
36476     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36477     "version": "0.0.0",
36478     "filename": "server/api/whatsappMessage/index.js",
36479     "groupTitle": "Whatsapp_Messages"
36480   },
36481   {
36482     "type": "delete",
36483     "url": "/api/whatsapp/messages/{id}",
36484     "title": "Deletes a Message",
36485     "examples": [
36486       {
36487         "title": "Example usage:",
36488         "content": "curl https://{domain}/api/whatsapp/messages/{id} -v -u {name}:{password} -X DELETE",
36489         "type": "json"
36490       }
36491     ],
36492     "name": "DeleteMessages",
36493     "group": "Whatsapp_Messages",
36494     "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>",
36495     "version": "0.0.0",
36496     "filename": "server/api/whatsappMessage/index.js",
36497     "groupTitle": "Whatsapp_Messages"
36498   },
36499   {
36500     "type": "get",
36501     "url": "/api/whatsapp/messages/describe",
36502     "title": "Gets table info about Messages",
36503     "examples": [
36504       {
36505         "title": "Example usage:",
36506         "content": "curl https://{domain}/api/whatsapp/messages/describe -v -u {name}:{password}",
36507         "type": "json"
36508       }
36509     ],
36510     "name": "DescribeMessages",
36511     "group": "Whatsapp_Messages",
36512     "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>",
36513     "version": "0.0.0",
36514     "filename": "server/api/whatsappMessage/index.js",
36515     "groupTitle": "Whatsapp_Messages"
36516   },
36517   {
36518     "type": "get",
36519     "url": "/api/whatsapp/messages",
36520     "title": "Gets a list of Messages",
36521     "examples": [
36522       {
36523         "title": "Example usage:",
36524         "content": "curl https://{domain}/api/whatsapp/messages -v -u {name}:{password}",
36525         "type": "json"
36526       }
36527     ],
36528     "name": "GetMessages",
36529     "group": "Whatsapp_Messages",
36530     "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>",
36531     "version": "0.0.0",
36532     "filename": "server/api/whatsappMessage/index.js",
36533     "groupTitle": "Whatsapp_Messages"
36534   },
36535   {
36536     "type": "get",
36537     "url": "/api/whatsapp/messages/{id}",
36538     "title": "Gets a single Message",
36539     "examples": [
36540       {
36541         "title": "Example usage:",
36542         "content": "curl https://{domain}/api/whatsapp/messages/{id} -v -u {name}:{password}",
36543         "type": "json"
36544       }
36545     ],
36546     "name": "ShowMessages",
36547     "group": "Whatsapp_Messages",
36548     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36549     "version": "0.0.0",
36550     "filename": "server/api/whatsappMessage/index.js",
36551     "groupTitle": "Whatsapp_Messages"
36552   },
36553   {
36554     "type": "put",
36555     "url": "/api/whatsapp/messages/{id}",
36556     "title": "Update an existing Message",
36557     "examples": [
36558       {
36559         "title": "Example usage:",
36560         "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",
36561         "type": "json"
36562       }
36563     ],
36564     "name": "updateMessages",
36565     "group": "Whatsapp_Messages",
36566     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36567     "version": "0.0.0",
36568     "filename": "server/api/whatsappMessage/index.js",
36569     "groupTitle": "Whatsapp_Messages"
36570   },
36571   {
36572     "type": "post",
36573     "url": "/api/whatsapp/reports/queue",
36574     "title": "Creates a new Whatsapp Queue Report",
36575     "examples": [
36576       {
36577         "title": "Example usage:",
36578         "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",
36579         "type": "json"
36580       }
36581     ],
36582     "name": "CreateWhatsapp_Queue_Reports",
36583     "group": "Whatsapp_Queue_Reports",
36584     "parameter": {
36585       "fields": {
36586         "Body": [
36587           {
36588             "group": "Body",
36589             "type": "String",
36590             "optional": false,
36591             "field": "uniqueid",
36592             "description": ""
36593           },
36594           {
36595             "group": "Body",
36596             "type": "String",
36597             "optional": true,
36598             "field": "from",
36599             "description": ""
36600           },
36601           {
36602             "group": "Body",
36603             "type": "String",
36604             "optional": true,
36605             "field": "joinAt",
36606             "description": ""
36607           },
36608           {
36609             "group": "Body",
36610             "type": "String",
36611             "optional": true,
36612             "field": "leaveAt",
36613             "description": ""
36614           },
36615           {
36616             "group": "Body",
36617             "type": "String",
36618             "optional": true,
36619             "field": "acceptAt",
36620             "description": ""
36621           },
36622           {
36623             "group": "Body",
36624             "type": "String",
36625             "optional": true,
36626             "field": "exitAt",
36627             "description": ""
36628           },
36629           {
36630             "group": "Body",
36631             "type": "String",
36632             "optional": true,
36633             "field": "reason",
36634             "description": ""
36635           }
36636         ]
36637       }
36638     },
36639     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36640     "version": "0.0.0",
36641     "filename": "server/api/whatsappQueueReport/index.js",
36642     "groupTitle": "Whatsapp_Queue_Reports"
36643   },
36644   {
36645     "type": "delete",
36646     "url": "/api/whatsapp/reports/queue/{id}",
36647     "title": "Deletes a Whatsapp Queue Report",
36648     "examples": [
36649       {
36650         "title": "Example usage:",
36651         "content": "curl https://{domain}/api/whatsapp/reports/queue/{id} -v -u {name}:{password} -X DELETE",
36652         "type": "json"
36653       }
36654     ],
36655     "name": "DeleteWhatsapp_Queue_Reports",
36656     "group": "Whatsapp_Queue_Reports",
36657     "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>",
36658     "version": "0.0.0",
36659     "filename": "server/api/whatsappQueueReport/index.js",
36660     "groupTitle": "Whatsapp_Queue_Reports"
36661   },
36662   {
36663     "type": "get",
36664     "url": "/api/whatsapp/reports/queue/describe",
36665     "title": "Gets table info about Whatsapp Queue Reports",
36666     "examples": [
36667       {
36668         "title": "Example usage:",
36669         "content": "curl https://{domain}/api/whatsapp/reports/queue/describe -v -u {name}:{password}",
36670         "type": "json"
36671       }
36672     ],
36673     "name": "DescribeWhatsapp_Queue_Reports",
36674     "group": "Whatsapp_Queue_Reports",
36675     "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>",
36676     "version": "0.0.0",
36677     "filename": "server/api/whatsappQueueReport/index.js",
36678     "groupTitle": "Whatsapp_Queue_Reports"
36679   },
36680   {
36681     "type": "get",
36682     "url": "/api/whatsapp/reports/queue",
36683     "title": "Gets a list of Whatsapp Queue Reports",
36684     "examples": [
36685       {
36686         "title": "Example usage:",
36687         "content": "curl https://{domain}/api/whatsapp/reports/queue -v -u {name}:{password}",
36688         "type": "json"
36689       }
36690     ],
36691     "name": "GetWhatsapp_Queue_Reports",
36692     "group": "Whatsapp_Queue_Reports",
36693     "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>",
36694     "version": "0.0.0",
36695     "filename": "server/api/whatsappQueueReport/index.js",
36696     "groupTitle": "Whatsapp_Queue_Reports"
36697   },
36698   {
36699     "type": "get",
36700     "url": "/api/whatsapp/reports/queue/{id}",
36701     "title": "Gets a single Whatsapp Queue Report",
36702     "examples": [
36703       {
36704         "title": "Example usage:",
36705         "content": "curl https://{domain}/api/whatsapp/reports/queue/{id} -v -u {name}:{password}",
36706         "type": "json"
36707       }
36708     ],
36709     "name": "ShowWhatsapp_Queue_Reports",
36710     "group": "Whatsapp_Queue_Reports",
36711     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36712     "version": "0.0.0",
36713     "filename": "server/api/whatsappQueueReport/index.js",
36714     "groupTitle": "Whatsapp_Queue_Reports"
36715   },
36716   {
36717     "type": "put",
36718     "url": "/api/whatsapp/reports/queue/{id}",
36719     "title": "Update an existing Whatsapp Queue Report",
36720     "examples": [
36721       {
36722         "title": "Example usage:",
36723         "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",
36724         "type": "json"
36725       }
36726     ],
36727     "name": "updateWhatsapp_Queue_Reports",
36728     "group": "Whatsapp_Queue_Reports",
36729     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36730     "version": "0.0.0",
36731     "filename": "server/api/whatsappQueueReport/index.js",
36732     "groupTitle": "Whatsapp_Queue_Reports"
36733   },
36734   {
36735     "type": "post",
36736     "url": "/api/whatsapp/queues/{id}/users",
36737     "title": "Add agents to a queue",
36738     "examples": [
36739       {
36740         "title": "Example usage:",
36741         "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",
36742         "type": "json"
36743       }
36744     ],
36745     "name": "AddAgents",
36746     "group": "Whatsapp_Queues",
36747     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36748     "version": "0.0.0",
36749     "filename": "server/api/whatsappQueue/index.js",
36750     "groupTitle": "Whatsapp_Queues"
36751   },
36752   {
36753     "type": "post",
36754     "url": "/api/whatsapp/queues/{id}/teams",
36755     "title": "Add teams to a queue",
36756     "examples": [
36757       {
36758         "title": "Example usage:",
36759         "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",
36760         "type": "json"
36761       }
36762     ],
36763     "name": "AddTeams",
36764     "group": "Whatsapp_Queues",
36765     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36766     "version": "0.0.0",
36767     "filename": "server/api/whatsappQueue/index.js",
36768     "groupTitle": "Whatsapp_Queues"
36769   },
36770   {
36771     "type": "post",
36772     "url": "/api/whatsapp/queues",
36773     "title": "Creates a new Queue",
36774     "examples": [
36775       {
36776         "title": "Example usage:",
36777         "content": "curl https://{domain}/api/whatsapp/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
36778         "type": "json"
36779       }
36780     ],
36781     "name": "CreateQueues",
36782     "group": "Whatsapp_Queues",
36783     "parameter": {
36784       "fields": {
36785         "Body": [
36786           {
36787             "group": "Body",
36788             "type": "String",
36789             "optional": true,
36790             "field": "name",
36791             "description": ""
36792           },
36793           {
36794             "group": "Body",
36795             "type": "Integer",
36796             "optional": true,
36797             "field": "timeout",
36798             "description": ""
36799           },
36800           {
36801             "group": "Body",
36802             "type": "String",
36803             "allowedValues": [
36804               "\"rrmemory\"",
36805               "\"beepall\"",
36806               "\"roundrobin\""
36807             ],
36808             "optional": true,
36809             "field": "strategy",
36810             "description": ""
36811           },
36812           {
36813             "group": "Body",
36814             "type": "String",
36815             "optional": true,
36816             "field": "description",
36817             "description": ""
36818           }
36819         ]
36820       }
36821     },
36822     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36823     "version": "0.0.0",
36824     "filename": "server/api/whatsappQueue/index.js",
36825     "groupTitle": "Whatsapp_Queues"
36826   },
36827   {
36828     "type": "delete",
36829     "url": "/api/whatsapp/queues/{id}",
36830     "title": "Deletes a Queue",
36831     "examples": [
36832       {
36833         "title": "Example usage:",
36834         "content": "curl https://{domain}/api/whatsapp/queues/{id} -v -u {name}:{password} -X DELETE",
36835         "type": "json"
36836       }
36837     ],
36838     "name": "DeleteQueues",
36839     "group": "Whatsapp_Queues",
36840     "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>",
36841     "version": "0.0.0",
36842     "filename": "server/api/whatsappQueue/index.js",
36843     "groupTitle": "Whatsapp_Queues"
36844   },
36845   {
36846     "type": "get",
36847     "url": "/api/whatsapp/queues/describe",
36848     "title": "Gets table info about Queues",
36849     "examples": [
36850       {
36851         "title": "Example usage:",
36852         "content": "curl https://{domain}/api/whatsapp/queues/describe -v -u {name}:{password}",
36853         "type": "json"
36854       }
36855     ],
36856     "name": "DescribeQueues",
36857     "group": "Whatsapp_Queues",
36858     "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>",
36859     "version": "0.0.0",
36860     "filename": "server/api/whatsappQueue/index.js",
36861     "groupTitle": "Whatsapp_Queues"
36862   },
36863   {
36864     "type": "get",
36865     "url": "/api/whatsapp/queues/{id}/users",
36866     "title": "Gets queue agents",
36867     "examples": [
36868       {
36869         "title": "Example usage:",
36870         "content": "curl https://{domain}/api/whatsapp/queues/{id}/users -v -u {name}:{password} -X POST",
36871         "type": "json"
36872       }
36873     ],
36874     "name": "GetAgents",
36875     "group": "Whatsapp_Queues",
36876     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36877     "version": "0.0.0",
36878     "filename": "server/api/whatsappQueue/index.js",
36879     "groupTitle": "Whatsapp_Queues"
36880   },
36881   {
36882     "type": "get",
36883     "url": "/api/whatsapp/queues/{id}/members",
36884     "title": "GetMembers",
36885     "examples": [
36886       {
36887         "title": "Example usage:",
36888         "content": "curl https://{domain}/api/whatsapp/queues/{id}/members  -v -u {name}:{password}",
36889         "type": "json"
36890       }
36891     ],
36892     "name": "GetMembers",
36893     "group": "Whatsapp_Queues",
36894     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36895     "version": "0.0.0",
36896     "filename": "server/api/whatsappQueue/index.js",
36897     "groupTitle": "Whatsapp_Queues"
36898   },
36899   {
36900     "type": "get",
36901     "url": "/api/whatsapp/queues",
36902     "title": "Gets a list of Queues",
36903     "examples": [
36904       {
36905         "title": "Example usage:",
36906         "content": "curl https://{domain}/api/whatsapp/queues -v -u {name}:{password}",
36907         "type": "json"
36908       }
36909     ],
36910     "name": "GetQueues",
36911     "group": "Whatsapp_Queues",
36912     "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>",
36913     "version": "0.0.0",
36914     "filename": "server/api/whatsappQueue/index.js",
36915     "groupTitle": "Whatsapp_Queues"
36916   },
36917   {
36918     "type": "get",
36919     "url": "/api/whatsapp/queues/{id}/teams",
36920     "title": "Gets queues list",
36921     "examples": [
36922       {
36923         "title": "Example usage:",
36924         "content": "curl https://{domain}/api/whatsapp/queues/{id}/teams -v -u {name}:{password}",
36925         "type": "json"
36926       }
36927     ],
36928     "name": "GetTeams",
36929     "group": "Whatsapp_Queues",
36930     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36931     "version": "0.0.0",
36932     "filename": "server/api/whatsappQueue/index.js",
36933     "groupTitle": "Whatsapp_Queues"
36934   },
36935   {
36936     "type": "delete",
36937     "url": "/api/whatsapp/queues/{id}/users",
36938     "title": "Removes agents from a queue",
36939     "examples": [
36940       {
36941         "title": "Example usage:",
36942         "content": "curl https://{domain}/api/whatsapp/queues/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
36943         "type": "json"
36944       }
36945     ],
36946     "name": "RemoveAgents",
36947     "group": "Whatsapp_Queues",
36948     "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>",
36949     "version": "0.0.0",
36950     "filename": "server/api/whatsappQueue/index.js",
36951     "groupTitle": "Whatsapp_Queues"
36952   },
36953   {
36954     "type": "get",
36955     "url": "/api/whatsapp/queues/{id}",
36956     "title": "Gets a single Queue",
36957     "examples": [
36958       {
36959         "title": "Example usage:",
36960         "content": "curl https://{domain}/api/whatsapp/queues/{id} -v -u {name}:{password}",
36961         "type": "json"
36962       }
36963     ],
36964     "name": "ShowQueues",
36965     "group": "Whatsapp_Queues",
36966     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36967     "version": "0.0.0",
36968     "filename": "server/api/whatsappQueue/index.js",
36969     "groupTitle": "Whatsapp_Queues"
36970   },
36971   {
36972     "type": "put",
36973     "url": "/api/whatsapp/queues/{id}",
36974     "title": "Update an existing Queue",
36975     "examples": [
36976       {
36977         "title": "Example usage:",
36978         "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",
36979         "type": "json"
36980       }
36981     ],
36982     "name": "updateQueues",
36983     "group": "Whatsapp_Queues",
36984     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36985     "version": "0.0.0",
36986     "filename": "server/api/whatsappQueue/index.js",
36987     "groupTitle": "Whatsapp_Queues"
36988   },
36989   {
36990     "type": "post",
36991     "url": "/api/whatsapp/reports/transfer",
36992     "title": "Creates a new Whatsapp Transfer Report",
36993     "examples": [
36994       {
36995         "title": "Example usage:",
36996         "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",
36997         "type": "json"
36998       }
36999     ],
37000     "name": "CreateWhatsapp_Transfer_Reports",
37001     "group": "Whatsapp_Transfer_Reports",
37002     "parameter": {
37003       "fields": {
37004         "Body": [
37005           {
37006             "group": "Body",
37007             "type": "String",
37008             "optional": false,
37009             "field": "uniqueid",
37010             "description": ""
37011           },
37012           {
37013             "group": "Body",
37014             "type": "String",
37015             "allowedValues": [
37016               "\"account\"",
37017               "\"agent\"",
37018               "\"queue\""
37019             ],
37020             "optional": false,
37021             "field": "type",
37022             "description": ""
37023           },
37024           {
37025             "group": "Body",
37026             "type": "String",
37027             "optional": true,
37028             "field": "transferredAt",
37029             "description": ""
37030           }
37031         ]
37032       }
37033     },
37034     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37035     "version": "0.0.0",
37036     "filename": "server/api/whatsappTransferReport/index.js",
37037     "groupTitle": "Whatsapp_Transfer_Reports"
37038   },
37039   {
37040     "type": "delete",
37041     "url": "/api/whatsapp/reports/transfer/{id}",
37042     "title": "Deletes a Whatsapp Transfer Report",
37043     "examples": [
37044       {
37045         "title": "Example usage:",
37046         "content": "curl https://{domain}/api/whatsapp/reports/transfer/{id} -v -u {name}:{password} -X DELETE",
37047         "type": "json"
37048       }
37049     ],
37050     "name": "DeleteWhatsapp_Transfer_Reports",
37051     "group": "Whatsapp_Transfer_Reports",
37052     "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>",
37053     "version": "0.0.0",
37054     "filename": "server/api/whatsappTransferReport/index.js",
37055     "groupTitle": "Whatsapp_Transfer_Reports"
37056   },
37057   {
37058     "type": "get",
37059     "url": "/api/whatsapp/reports/transfer/describe",
37060     "title": "Gets table info about Whatsapp Transfer Reports",
37061     "examples": [
37062       {
37063         "title": "Example usage:",
37064         "content": "curl https://{domain}/api/whatsapp/reports/transfer/describe -v -u {name}:{password}",
37065         "type": "json"
37066       }
37067     ],
37068     "name": "DescribeWhatsapp_Transfer_Reports",
37069     "group": "Whatsapp_Transfer_Reports",
37070     "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>",
37071     "version": "0.0.0",
37072     "filename": "server/api/whatsappTransferReport/index.js",
37073     "groupTitle": "Whatsapp_Transfer_Reports"
37074   },
37075   {
37076     "type": "get",
37077     "url": "/api/whatsapp/reports/transfer",
37078     "title": "Gets a list of Whatsapp Transfer Reports",
37079     "examples": [
37080       {
37081         "title": "Example usage:",
37082         "content": "curl https://{domain}/api/whatsapp/reports/transfer -v -u {name}:{password}",
37083         "type": "json"
37084       }
37085     ],
37086     "name": "GetWhatsapp_Transfer_Reports",
37087     "group": "Whatsapp_Transfer_Reports",
37088     "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>",
37089     "version": "0.0.0",
37090     "filename": "server/api/whatsappTransferReport/index.js",
37091     "groupTitle": "Whatsapp_Transfer_Reports"
37092   },
37093   {
37094     "type": "get",
37095     "url": "/api/whatsapp/reports/transfer/{id}",
37096     "title": "Gets a single Whatsapp Transfer Report",
37097     "examples": [
37098       {
37099         "title": "Example usage:",
37100         "content": "curl https://{domain}/api/whatsapp/reports/transfer/{id} -v -u {name}:{password}",
37101         "type": "json"
37102       }
37103     ],
37104     "name": "ShowWhatsapp_Transfer_Reports",
37105     "group": "Whatsapp_Transfer_Reports",
37106     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37107     "version": "0.0.0",
37108     "filename": "server/api/whatsappTransferReport/index.js",
37109     "groupTitle": "Whatsapp_Transfer_Reports"
37110   },
37111   {
37112     "type": "put",
37113     "url": "/api/whatsapp/reports/transfer/{id}",
37114     "title": "Update an existing Whatsapp Transfer Report",
37115     "examples": [
37116       {
37117         "title": "Example usage:",
37118         "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",
37119         "type": "json"
37120       }
37121     ],
37122     "name": "updateWhatsapp_Transfer_Reports",
37123     "group": "Whatsapp_Transfer_Reports",
37124     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37125     "version": "0.0.0",
37126     "filename": "server/api/whatsappTransferReport/index.js",
37127     "groupTitle": "Whatsapp_Transfer_Reports"
37128   },
37129   {
37130     "type": "post",
37131     "url": "/api/integrations/zendesk/accounts",
37132     "title": "Creates a new Zendesk Account",
37133     "examples": [
37134       {
37135         "title": "Example usage:",
37136         "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",
37137         "type": "json"
37138       }
37139     ],
37140     "name": "CreateZendesk_Accounts",
37141     "group": "Zendesk_Accounts",
37142     "parameter": {
37143       "fields": {
37144         "Body": [
37145           {
37146             "group": "Body",
37147             "type": "String",
37148             "optional": true,
37149             "field": "name",
37150             "description": ""
37151           },
37152           {
37153             "group": "Body",
37154             "type": "String",
37155             "optional": true,
37156             "field": "description",
37157             "description": ""
37158           },
37159           {
37160             "group": "Body",
37161             "type": "String",
37162             "optional": true,
37163             "field": "username",
37164             "description": ""
37165           },
37166           {
37167             "group": "Body",
37168             "type": "String",
37169             "optional": true,
37170             "field": "password",
37171             "description": ""
37172           },
37173           {
37174             "group": "Body",
37175             "type": "String",
37176             "optional": true,
37177             "field": "token",
37178             "description": ""
37179           },
37180           {
37181             "group": "Body",
37182             "type": "String",
37183             "optional": true,
37184             "field": "remoteUri",
37185             "description": ""
37186           },
37187           {
37188             "group": "Body",
37189             "type": "String",
37190             "allowedValues": [
37191               "\"password\"",
37192               "\"token\""
37193             ],
37194             "optional": true,
37195             "field": "authType",
37196             "description": ""
37197           },
37198           {
37199             "group": "Body",
37200             "type": "String",
37201             "optional": false,
37202             "field": "serverUrl",
37203             "description": ""
37204           },
37205           {
37206             "group": "Body",
37207             "type": "String",
37208             "allowedValues": [
37209               "\"integrationTab\"",
37210               "\"newTab\""
37211             ],
37212             "optional": true,
37213             "field": "type",
37214             "description": ""
37215           }
37216         ]
37217       }
37218     },
37219     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37220     "version": "0.0.0",
37221     "filename": "server/api/intZendeskAccount/index.js",
37222     "groupTitle": "Zendesk_Accounts"
37223   },
37224   {
37225     "type": "delete",
37226     "url": "/api/integrations/zendesk/accounts/{id}",
37227     "title": "Deletes a Zendesk Account",
37228     "examples": [
37229       {
37230         "title": "Example usage:",
37231         "content": "curl https://{domain}/api/integrations/zendesk/accounts/{id} -v -u {name}:{password} -X DELETE",
37232         "type": "json"
37233       }
37234     ],
37235     "name": "DeleteZendesk_Accounts",
37236     "group": "Zendesk_Accounts",
37237     "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>",
37238     "version": "0.0.0",
37239     "filename": "server/api/intZendeskAccount/index.js",
37240     "groupTitle": "Zendesk_Accounts"
37241   },
37242   {
37243     "type": "get",
37244     "url": "/api/integrations/zendesk/accounts",
37245     "title": "Gets a list of Zendesk Accounts",
37246     "examples": [
37247       {
37248         "title": "Example usage:",
37249         "content": "curl https://{domain}/api/integrations/zendesk/accounts -v -u {name}:{password}",
37250         "type": "json"
37251       }
37252     ],
37253     "name": "GetZendesk_Accounts",
37254     "group": "Zendesk_Accounts",
37255     "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>",
37256     "version": "0.0.0",
37257     "filename": "server/api/intZendeskAccount/index.js",
37258     "groupTitle": "Zendesk_Accounts"
37259   },
37260   {
37261     "type": "get",
37262     "url": "/api/integrations/zendesk/accounts/{id}",
37263     "title": "Gets a single Zendesk Account",
37264     "examples": [
37265       {
37266         "title": "Example usage:",
37267         "content": "curl https://{domain}/api/integrations/zendesk/accounts/{id} -v -u {name}:{password}",
37268         "type": "json"
37269       }
37270     ],
37271     "name": "ShowZendesk_Accounts",
37272     "group": "Zendesk_Accounts",
37273     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37274     "version": "0.0.0",
37275     "filename": "server/api/intZendeskAccount/index.js",
37276     "groupTitle": "Zendesk_Accounts"
37277   },
37278   {
37279     "type": "post",
37280     "url": "/api/integrations/zendesk/accounts/{id}/configurations",
37281     "title": "Creates new configuration",
37282     "examples": [
37283       {
37284         "title": "Example usage:",
37285         "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",
37286         "type": "json"
37287       }
37288     ],
37289     "name": "addConfiguration",
37290     "group": "Zendesk_Accounts",
37291     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37292     "version": "0.0.0",
37293     "filename": "server/api/intZendeskAccount/index.js",
37294     "groupTitle": "Zendesk_Accounts"
37295   },
37296   {
37297     "type": "get",
37298     "url": "/api/integrations/zendesk/accounts/{id}/configurations",
37299     "title": "Gets account configurations",
37300     "examples": [
37301       {
37302         "title": "Example usage:",
37303         "content": "curl https://{domain}/api/integrations/zendesk/accounts/{id}/configurations -v -u {name}:{password} -X GET",
37304         "type": "json"
37305       }
37306     ],
37307     "name": "getConfigurations",
37308     "group": "Zendesk_Accounts",
37309     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37310     "version": "0.0.0",
37311     "filename": "server/api/intZendeskAccount/index.js",
37312     "groupTitle": "Zendesk_Accounts"
37313   },
37314   {
37315     "type": "get",
37316     "url": "/api/integrations/zendesk/accounts/{id}/fields",
37317     "title": "Gets account fields",
37318     "examples": [
37319       {
37320         "title": "Example usage:",
37321         "content": "curl https://{domain}/api/integrations/zendesk/accounts/{id}/fields -v -u {name}:{password} -X GET",
37322         "type": "json"
37323       }
37324     ],
37325     "name": "getFields",
37326     "group": "Zendesk_Accounts",
37327     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37328     "version": "0.0.0",
37329     "filename": "server/api/intZendeskAccount/index.js",
37330     "groupTitle": "Zendesk_Accounts"
37331   },
37332   {
37333     "type": "put",
37334     "url": "/api/integrations/zendesk/accounts/{id}",
37335     "title": "Update an existing Zendesk Account",
37336     "examples": [
37337       {
37338         "title": "Example usage:",
37339         "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",
37340         "type": "json"
37341       }
37342     ],
37343     "name": "updateZendesk_Accounts",
37344     "group": "Zendesk_Accounts",
37345     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37346     "version": "0.0.0",
37347     "filename": "server/api/intZendeskAccount/index.js",
37348     "groupTitle": "Zendesk_Accounts"
37349   },
37350   {
37351     "type": "post",
37352     "url": "/api/integrations/zendesk/configurations",
37353     "title": "Creates a new Zendesk Configuration",
37354     "examples": [
37355       {
37356         "title": "Example usage:",
37357         "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",
37358         "type": "json"
37359       }
37360     ],
37361     "name": "CreateZendesk_Configurations",
37362     "group": "Zendesk_Configurations",
37363     "parameter": {
37364       "fields": {
37365         "Body": [
37366           {
37367             "group": "Body",
37368             "type": "String",
37369             "optional": true,
37370             "field": "name",
37371             "description": ""
37372           },
37373           {
37374             "group": "Body",
37375             "type": "String",
37376             "optional": true,
37377             "field": "description",
37378             "description": ""
37379           }
37380         ]
37381       }
37382     },
37383     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37384     "version": "0.0.0",
37385     "filename": "server/api/intZendeskConfiguration/index.js",
37386     "groupTitle": "Zendesk_Configurations"
37387   },
37388   {
37389     "type": "delete",
37390     "url": "/api/integrations/zendesk/configurations/{id}",
37391     "title": "Deletes a Zendesk Configuration",
37392     "examples": [
37393       {
37394         "title": "Example usage:",
37395         "content": "curl https://{domain}/api/integrations/zendesk/configurations/{id} -v -u {name}:{password} -X DELETE",
37396         "type": "json"
37397       }
37398     ],
37399     "name": "DeleteZendesk_Configurations",
37400     "group": "Zendesk_Configurations",
37401     "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>",
37402     "version": "0.0.0",
37403     "filename": "server/api/intZendeskConfiguration/index.js",
37404     "groupTitle": "Zendesk_Configurations"
37405   },
37406   {
37407     "type": "get",
37408     "url": "/api/integrations/zendesk/configurations",
37409     "title": "Gets a list of Zendesk Configurations",
37410     "examples": [
37411       {
37412         "title": "Example usage:",
37413         "content": "curl https://{domain}/api/integrations/zendesk/configurations -v -u {name}:{password}",
37414         "type": "json"
37415       }
37416     ],
37417     "name": "GetZendesk_Configurations",
37418     "group": "Zendesk_Configurations",
37419     "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>",
37420     "version": "0.0.0",
37421     "filename": "server/api/intZendeskConfiguration/index.js",
37422     "groupTitle": "Zendesk_Configurations"
37423   },
37424   {
37425     "type": "get",
37426     "url": "/api/integrations/zendesk/configurations/{id}",
37427     "title": "Gets a single Zendesk Configuration",
37428     "examples": [
37429       {
37430         "title": "Example usage:",
37431         "content": "curl https://{domain}/api/integrations/zendesk/configurations/{id} -v -u {name}:{password}",
37432         "type": "json"
37433       }
37434     ],
37435     "name": "ShowZendesk_Configurations",
37436     "group": "Zendesk_Configurations",
37437     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37438     "version": "0.0.0",
37439     "filename": "server/api/intZendeskConfiguration/index.js",
37440     "groupTitle": "Zendesk_Configurations"
37441   },
37442   {
37443     "type": "get",
37444     "url": "/api/integrations/zendesk/configurations/{id}/descriptions",
37445     "title": "Gets configurations descriptions",
37446     "examples": [
37447       {
37448         "title": "Example usage:",
37449         "content": "curl https://{domain}/api/integrations/zendesk/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
37450         "type": "json"
37451       }
37452     ],
37453     "name": "getDescriptions",
37454     "group": "Zendesk_Configurations",
37455     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37456     "version": "0.0.0",
37457     "filename": "server/api/intZendeskConfiguration/index.js",
37458     "groupTitle": "Zendesk_Configurations"
37459   },
37460   {
37461     "type": "get",
37462     "url": "/api/integrations/zendesk/configurations/{id}/fields",
37463     "title": "Gets configurations fields",
37464     "examples": [
37465       {
37466         "title": "Example usage:",
37467         "content": "curl https://{domain}/api/integrations/zendesk/configurations/{id}/fields -v -u {name}:{password} -X GET",
37468         "type": "json"
37469       }
37470     ],
37471     "name": "getFields",
37472     "group": "Zendesk_Configurations",
37473     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37474     "version": "0.0.0",
37475     "filename": "server/api/intZendeskConfiguration/index.js",
37476     "groupTitle": "Zendesk_Configurations"
37477   },
37478   {
37479     "type": "get",
37480     "url": "/api/integrations/zendesk/configurations/{id}/subjects",
37481     "title": "Gets configurations subjects",
37482     "examples": [
37483       {
37484         "title": "Example usage:",
37485         "content": "curl https://{domain}/api/integrations/zendesk/configurations/{id}/subjects -v -u {name}:{password} -X GET",
37486         "type": "json"
37487       }
37488     ],
37489     "name": "getSubjects",
37490     "group": "Zendesk_Configurations",
37491     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37492     "version": "0.0.0",
37493     "filename": "server/api/intZendeskConfiguration/index.js",
37494     "groupTitle": "Zendesk_Configurations"
37495   },
37496   {
37497     "type": "get",
37498     "url": "/api/integrations/zendesk/configurations/{id}/tags",
37499     "title": "Gets configurations tags",
37500     "examples": [
37501       {
37502         "title": "Example usage:",
37503         "content": "curl https://{domain}/api/integrations/zendesk/configurations/{id}/tags -v -u {name}:{password} -X GET",
37504         "type": "json"
37505       }
37506     ],
37507     "name": "getTags",
37508     "group": "Zendesk_Configurations",
37509     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37510     "version": "0.0.0",
37511     "filename": "server/api/intZendeskConfiguration/index.js",
37512     "groupTitle": "Zendesk_Configurations"
37513   },
37514   {
37515     "type": "post",
37516     "url": "/api/integrations/zendesk/configurations/{id}/tags",
37517     "title": "Sets new tags",
37518     "examples": [
37519       {
37520         "title": "Example usage:",
37521         "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",
37522         "type": "json"
37523       }
37524     ],
37525     "name": "setTags",
37526     "group": "Zendesk_Configurations",
37527     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37528     "version": "0.0.0",
37529     "filename": "server/api/intZendeskConfiguration/index.js",
37530     "groupTitle": "Zendesk_Configurations"
37531   },
37532   {
37533     "type": "put",
37534     "url": "/api/integrations/zendesk/configurations/{id}",
37535     "title": "Update an existing Zendesk Configuration",
37536     "examples": [
37537       {
37538         "title": "Example usage:",
37539         "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",
37540         "type": "json"
37541       }
37542     ],
37543     "name": "updateZendesk_Configurations",
37544     "group": "Zendesk_Configurations",
37545     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37546     "version": "0.0.0",
37547     "filename": "server/api/intZendeskConfiguration/index.js",
37548     "groupTitle": "Zendesk_Configurations"
37549   },
37550   {
37551     "type": "post",
37552     "url": "/api/integrations/zendesk/fields",
37553     "title": "Creates a new Zendesk Field",
37554     "examples": [
37555       {
37556         "title": "Example usage:",
37557         "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",
37558         "type": "json"
37559       }
37560     ],
37561     "name": "CreateZendesk_Fields",
37562     "group": "Zendesk_Fields",
37563     "parameter": {
37564       "fields": {
37565         "Body": [
37566           {
37567             "group": "Body",
37568             "type": "String",
37569             "allowedValues": [
37570               "\"string\"",
37571               "\"variable\"",
37572               "\"customVariable\"",
37573               "\"keyValue\"",
37574               "\"picklist\""
37575             ],
37576             "optional": true,
37577             "field": "type",
37578             "description": ""
37579           },
37580           {
37581             "group": "Body",
37582             "type": "String",
37583             "optional": true,
37584             "field": "content",
37585             "description": ""
37586           },
37587           {
37588             "group": "Body",
37589             "type": "String",
37590             "optional": true,
37591             "field": "key",
37592             "description": ""
37593           },
37594           {
37595             "group": "Body",
37596             "type": "String",
37597             "allowedValues": [
37598               "\"string\"",
37599               "\"variable\"",
37600               "\"customVariable\""
37601             ],
37602             "optional": true,
37603             "field": "keyType",
37604             "description": ""
37605           },
37606           {
37607             "group": "Body",
37608             "type": "String",
37609             "optional": true,
37610             "field": "keyContent",
37611             "description": ""
37612           },
37613           {
37614             "group": "Body",
37615             "type": "String",
37616             "optional": true,
37617             "field": "idField",
37618             "description": ""
37619           },
37620           {
37621             "group": "Body",
37622             "type": "String",
37623             "optional": true,
37624             "field": "nameField",
37625             "description": ""
37626           },
37627           {
37628             "group": "Body",
37629             "type": "Boolean",
37630             "optional": true,
37631             "field": "customField",
37632             "description": ""
37633           },
37634           {
37635             "group": "Body",
37636             "type": "String",
37637             "optional": true,
37638             "field": "variableName",
37639             "description": ""
37640           }
37641         ]
37642       }
37643     },
37644     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37645     "version": "0.0.0",
37646     "filename": "server/api/intZendeskField/index.js",
37647     "groupTitle": "Zendesk_Fields"
37648   },
37649   {
37650     "type": "delete",
37651     "url": "/api/integrations/zendesk/fields/{id}",
37652     "title": "Deletes a Zendesk Field",
37653     "examples": [
37654       {
37655         "title": "Example usage:",
37656         "content": "curl https://{domain}/api/integrations/zendesk/fields/{id} -v -u {name}:{password} -X DELETE",
37657         "type": "json"
37658       }
37659     ],
37660     "name": "DeleteZendesk_Fields",
37661     "group": "Zendesk_Fields",
37662     "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>",
37663     "version": "0.0.0",
37664     "filename": "server/api/intZendeskField/index.js",
37665     "groupTitle": "Zendesk_Fields"
37666   },
37667   {
37668     "type": "get",
37669     "url": "/api/integrations/zendesk/fields",
37670     "title": "Gets a list of Zendesk Fields",
37671     "examples": [
37672       {
37673         "title": "Example usage:",
37674         "content": "curl https://{domain}/api/integrations/zendesk/fields -v -u {name}:{password}",
37675         "type": "json"
37676       }
37677     ],
37678     "name": "GetZendesk_Fields",
37679     "group": "Zendesk_Fields",
37680     "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>",
37681     "version": "0.0.0",
37682     "filename": "server/api/intZendeskField/index.js",
37683     "groupTitle": "Zendesk_Fields"
37684   },
37685   {
37686     "type": "get",
37687     "url": "/api/integrations/zendesk/fields/{id}",
37688     "title": "Gets a single Zendesk Field",
37689     "examples": [
37690       {
37691         "title": "Example usage:",
37692         "content": "curl https://{domain}/api/integrations/zendesk/fields/{id} -v -u {name}:{password}",
37693         "type": "json"
37694       }
37695     ],
37696     "name": "ShowZendesk_Fields",
37697     "group": "Zendesk_Fields",
37698     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37699     "version": "0.0.0",
37700     "filename": "server/api/intZendeskField/index.js",
37701     "groupTitle": "Zendesk_Fields"
37702   },
37703   {
37704     "type": "put",
37705     "url": "/api/integrations/zendesk/fields/{id}",
37706     "title": "Update an existing Zendesk Field",
37707     "examples": [
37708       {
37709         "title": "Example usage:",
37710         "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",
37711         "type": "json"
37712       }
37713     ],
37714     "name": "updateZendesk_Fields",
37715     "group": "Zendesk_Fields",
37716     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37717     "version": "0.0.0",
37718     "filename": "server/api/intZendeskField/index.js",
37719     "groupTitle": "Zendesk_Fields"
37720   },
37721   {
37722     "type": "post",
37723     "url": "/api/integrations/zoho/accounts",
37724     "title": "Creates a new Zoho Account",
37725     "examples": [
37726       {
37727         "title": "Example usage:",
37728         "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",
37729         "type": "json"
37730       }
37731     ],
37732     "name": "CreateZoho_Accounts",
37733     "group": "Zoho_Accounts",
37734     "parameter": {
37735       "fields": {
37736         "Body": [
37737           {
37738             "group": "Body",
37739             "type": "String",
37740             "optional": true,
37741             "field": "name",
37742             "description": ""
37743           },
37744           {
37745             "group": "Body",
37746             "type": "String",
37747             "optional": true,
37748             "field": "description",
37749             "description": ""
37750           },
37751           {
37752             "group": "Body",
37753             "type": "String",
37754             "optional": true,
37755             "field": "host",
37756             "description": ""
37757           },
37758           {
37759             "group": "Body",
37760             "type": "String",
37761             "optional": true,
37762             "field": "zone",
37763             "description": ""
37764           },
37765           {
37766             "group": "Body",
37767             "type": "String",
37768             "optional": true,
37769             "field": "clientId",
37770             "description": ""
37771           },
37772           {
37773             "group": "Body",
37774             "type": "String",
37775             "optional": true,
37776             "field": "clientSecret",
37777             "description": ""
37778           },
37779           {
37780             "group": "Body",
37781             "type": "String",
37782             "optional": false,
37783             "field": "serverUrl",
37784             "description": ""
37785           },
37786           {
37787             "group": "Body",
37788             "type": "String",
37789             "optional": true,
37790             "field": "code",
37791             "description": ""
37792           },
37793           {
37794             "group": "Body",
37795             "type": "String",
37796             "optional": true,
37797             "field": "refreshToken",
37798             "description": ""
37799           }
37800         ]
37801       }
37802     },
37803     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37804     "version": "0.0.0",
37805     "filename": "server/api/intZohoAccount/index.js",
37806     "groupTitle": "Zoho_Accounts"
37807   },
37808   {
37809     "type": "delete",
37810     "url": "/api/integrations/zoho/accounts/{id}",
37811     "title": "Deletes a Zoho Account",
37812     "examples": [
37813       {
37814         "title": "Example usage:",
37815         "content": "curl https://{domain}/api/integrations/zoho/accounts/{id} -v -u {name}:{password} -X DELETE",
37816         "type": "json"
37817       }
37818     ],
37819     "name": "DeleteZoho_Accounts",
37820     "group": "Zoho_Accounts",
37821     "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>",
37822     "version": "0.0.0",
37823     "filename": "server/api/intZohoAccount/index.js",
37824     "groupTitle": "Zoho_Accounts"
37825   },
37826   {
37827     "type": "get",
37828     "url": "/api/integrations/zoho/accounts",
37829     "title": "Gets a list of Zoho Accounts",
37830     "examples": [
37831       {
37832         "title": "Example usage:",
37833         "content": "curl https://{domain}/api/integrations/zoho/accounts -v -u {name}:{password}",
37834         "type": "json"
37835       }
37836     ],
37837     "name": "GetZoho_Accounts",
37838     "group": "Zoho_Accounts",
37839     "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>",
37840     "version": "0.0.0",
37841     "filename": "server/api/intZohoAccount/index.js",
37842     "groupTitle": "Zoho_Accounts"
37843   },
37844   {
37845     "type": "get",
37846     "url": "/api/integrations/zoho/accounts/{id}",
37847     "title": "Gets a single Zoho Account",
37848     "examples": [
37849       {
37850         "title": "Example usage:",
37851         "content": "curl https://{domain}/api/integrations/zoho/accounts/{id} -v -u {name}:{password}",
37852         "type": "json"
37853       }
37854     ],
37855     "name": "ShowZoho_Accounts",
37856     "group": "Zoho_Accounts",
37857     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37858     "version": "0.0.0",
37859     "filename": "server/api/intZohoAccount/index.js",
37860     "groupTitle": "Zoho_Accounts"
37861   },
37862   {
37863     "type": "post",
37864     "url": "/api/integrations/zoho/accounts/{id}/configurations",
37865     "title": "Creates new configuration",
37866     "examples": [
37867       {
37868         "title": "Example usage:",
37869         "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",
37870         "type": "json"
37871       }
37872     ],
37873     "name": "addConfiguration",
37874     "group": "Zoho_Accounts",
37875     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37876     "version": "0.0.0",
37877     "filename": "server/api/intZohoAccount/index.js",
37878     "groupTitle": "Zoho_Accounts"
37879   },
37880   {
37881     "type": "get",
37882     "url": "/api/integrations/zoho/accounts/{id}/configurations",
37883     "title": "Gets account configurations",
37884     "examples": [
37885       {
37886         "title": "Example usage:",
37887         "content": "curl https://{domain}/api/integrations/zoho/accounts/{id}/configurations -v -u {name}:{password} -X GET",
37888         "type": "json"
37889       }
37890     ],
37891     "name": "getConfigurations",
37892     "group": "Zoho_Accounts",
37893     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37894     "version": "0.0.0",
37895     "filename": "server/api/intZohoAccount/index.js",
37896     "groupTitle": "Zoho_Accounts"
37897   },
37898   {
37899     "type": "get",
37900     "url": "/api/integrations/zoho/accounts/{id}/fields",
37901     "title": "Gets account fields",
37902     "examples": [
37903       {
37904         "title": "Example usage:",
37905         "content": "curl https://{domain}/api/integrations/zoho/accounts/{id}/fields -v -u {name}:{password} -X GET",
37906         "type": "json"
37907       }
37908     ],
37909     "name": "getFields",
37910     "group": "Zoho_Accounts",
37911     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37912     "version": "0.0.0",
37913     "filename": "server/api/intZohoAccount/index.js",
37914     "groupTitle": "Zoho_Accounts"
37915   },
37916   {
37917     "type": "put",
37918     "url": "/api/integrations/zoho/accounts/{id}",
37919     "title": "Update an existing Zoho Account",
37920     "examples": [
37921       {
37922         "title": "Example usage:",
37923         "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",
37924         "type": "json"
37925       }
37926     ],
37927     "name": "updateZoho_Accounts",
37928     "group": "Zoho_Accounts",
37929     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37930     "version": "0.0.0",
37931     "filename": "server/api/intZohoAccount/index.js",
37932     "groupTitle": "Zoho_Accounts"
37933   },
37934   {
37935     "type": "post",
37936     "url": "/api/integrations/zoho/configurations",
37937     "title": "Creates a new Zoho Configuration",
37938     "examples": [
37939       {
37940         "title": "Example usage:",
37941         "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",
37942         "type": "json"
37943       }
37944     ],
37945     "name": "CreateZoho_Configurations",
37946     "group": "Zoho_Configurations",
37947     "parameter": {
37948       "fields": {
37949         "Body": [
37950           {
37951             "group": "Body",
37952             "type": "String",
37953             "optional": true,
37954             "field": "name",
37955             "description": ""
37956           },
37957           {
37958             "group": "Body",
37959             "type": "String",
37960             "allowedValues": [
37961               "\"lead\"",
37962               "\"contact\"",
37963               "\"nothing\""
37964             ],
37965             "optional": true,
37966             "field": "moduleCreate",
37967             "description": ""
37968           },
37969           {
37970             "group": "Body",
37971             "type": "String",
37972             "allowedValues": [
37973               "\"contact_lead\"",
37974               "\"contact\"",
37975               "\"lead\""
37976             ],
37977             "optional": true,
37978             "field": "moduleSearch",
37979             "description": ""
37980           },
37981           {
37982             "group": "Body",
37983             "type": "String",
37984             "optional": true,
37985             "field": "description",
37986             "description": ""
37987           }
37988         ]
37989       }
37990     },
37991     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37992     "version": "0.0.0",
37993     "filename": "server/api/intZohoConfiguration/index.js",
37994     "groupTitle": "Zoho_Configurations"
37995   },
37996   {
37997     "type": "delete",
37998     "url": "/api/integrations/zoho/configurations/{id}",
37999     "title": "Deletes a Zoho Configuration",
38000     "examples": [
38001       {
38002         "title": "Example usage:",
38003         "content": "curl https://{domain}/api/integrations/zoho/configurations/{id} -v -u {name}:{password} -X DELETE",
38004         "type": "json"
38005       }
38006     ],
38007     "name": "DeleteZoho_Configurations",
38008     "group": "Zoho_Configurations",
38009     "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>",
38010     "version": "0.0.0",
38011     "filename": "server/api/intZohoConfiguration/index.js",
38012     "groupTitle": "Zoho_Configurations"
38013   },
38014   {
38015     "type": "get",
38016     "url": "/api/integrations/zoho/configurations",
38017     "title": "Gets a list of Zoho Configurations",
38018     "examples": [
38019       {
38020         "title": "Example usage:",
38021         "content": "curl https://{domain}/api/integrations/zoho/configurations -v -u {name}:{password}",
38022         "type": "json"
38023       }
38024     ],
38025     "name": "GetZoho_Configurations",
38026     "group": "Zoho_Configurations",
38027     "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>",
38028     "version": "0.0.0",
38029     "filename": "server/api/intZohoConfiguration/index.js",
38030     "groupTitle": "Zoho_Configurations"
38031   },
38032   {
38033     "type": "get",
38034     "url": "/api/integrations/zoho/configurations/{id}",
38035     "title": "Gets a single Zoho Configuration",
38036     "examples": [
38037       {
38038         "title": "Example usage:",
38039         "content": "curl https://{domain}/api/integrations/zoho/configurations/{id} -v -u {name}:{password}",
38040         "type": "json"
38041       }
38042     ],
38043     "name": "ShowZoho_Configurations",
38044     "group": "Zoho_Configurations",
38045     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
38046     "version": "0.0.0",
38047     "filename": "server/api/intZohoConfiguration/index.js",
38048     "groupTitle": "Zoho_Configurations"
38049   },
38050   {
38051     "type": "get",
38052     "url": "/api/integrations/zoho/configurations/{id}/descriptions",
38053     "title": "Gets configurations descriptions",
38054     "examples": [
38055       {
38056         "title": "Example usage:",
38057         "content": "curl https://{domain}/api/integrations/zoho/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
38058         "type": "json"
38059       }
38060     ],
38061     "name": "getDescriptions",
38062     "group": "Zoho_Configurations",
38063     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
38064     "version": "0.0.0",
38065     "filename": "server/api/intZohoConfiguration/index.js",
38066     "groupTitle": "Zoho_Configurations"
38067   },
38068   {
38069     "type": "get",
38070     "url": "/api/integrations/zoho/configurations/{id}/fields",
38071     "title": "Gets configurations fields",
38072     "examples": [
38073       {
38074         "title": "Example usage:",
38075         "content": "curl https://{domain}/api/integrations/zoho/configurations/{id}/fields -v -u {name}:{password} -X GET",
38076         "type": "json"
38077       }
38078     ],
38079     "name": "getFields",
38080     "group": "Zoho_Configurations",
38081     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
38082     "version": "0.0.0",
38083     "filename": "server/api/intZohoConfiguration/index.js",
38084     "groupTitle": "Zoho_Configurations"
38085   },
38086   {
38087     "type": "get",
38088     "url": "/api/integrations/zoho/configurations/{id}/subjects",
38089     "title": "Gets configurations subjects",
38090     "examples": [
38091       {
38092         "title": "Example usage:",
38093         "content": "curl https://{domain}/api/integrations/zoho/configurations/{id}/subjects -v -u {name}:{password} -X GET",
38094         "type": "json"
38095       }
38096     ],
38097     "name": "getSubjects",
38098     "group": "Zoho_Configurations",
38099     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
38100     "version": "0.0.0",
38101     "filename": "server/api/intZohoConfiguration/index.js",
38102     "groupTitle": "Zoho_Configurations"
38103   },
38104   {
38105     "type": "put",
38106     "url": "/api/integrations/zoho/configurations/{id}",
38107     "title": "Update an existing Zoho Configuration",
38108     "examples": [
38109       {
38110         "title": "Example usage:",
38111         "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",
38112         "type": "json"
38113       }
38114     ],
38115     "name": "updateZoho_Configurations",
38116     "group": "Zoho_Configurations",
38117     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
38118     "version": "0.0.0",
38119     "filename": "server/api/intZohoConfiguration/index.js",
38120     "groupTitle": "Zoho_Configurations"
38121   },
38122   {
38123     "type": "post",
38124     "url": "/api/integrations/zoho/fields",
38125     "title": "Creates a new Zoho Field",
38126     "examples": [
38127       {
38128         "title": "Example usage:",
38129         "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",
38130         "type": "json"
38131       }
38132     ],
38133     "name": "CreateZoho_Fields",
38134     "group": "Zoho_Fields",
38135     "parameter": {
38136       "fields": {
38137         "Body": [
38138           {
38139             "group": "Body",
38140             "type": "String",
38141             "allowedValues": [
38142               "\"string\"",
38143               "\"variable\"",
38144               "\"customVariable\"",
38145               "\"keyValue\"",
38146               "\"picklist\""
38147             ],
38148             "optional": true,
38149             "field": "type",
38150             "description": ""
38151           },
38152           {
38153             "group": "Body",
38154             "type": "String",
38155             "optional": true,
38156             "field": "content",
38157             "description": ""
38158           },
38159           {
38160             "group": "Body",
38161             "type": "String",
38162             "optional": true,
38163             "field": "key",
38164             "description": ""
38165           },
38166           {
38167             "group": "Body",
38168             "type": "String",
38169             "allowedValues": [
38170               "\"string\"",
38171               "\"variable\"",
38172               "\"customVariable\""
38173             ],
38174             "optional": true,
38175             "field": "keyType",
38176             "description": ""
38177           },
38178           {
38179             "group": "Body",
38180             "type": "String",
38181             "optional": true,
38182             "field": "keyContent",
38183             "description": ""
38184           },
38185           {
38186             "group": "Body",
38187             "type": "String",
38188             "optional": true,
38189             "field": "idField",
38190             "description": ""
38191           },
38192           {
38193             "group": "Body",
38194             "type": "String",
38195             "optional": true,
38196             "field": "nameField",
38197             "description": ""
38198           },
38199           {
38200             "group": "Body",
38201             "type": "Boolean",
38202             "optional": true,
38203             "field": "customField",
38204             "description": ""
38205           },
38206           {
38207             "group": "Body",
38208             "type": "String",
38209             "optional": true,
38210             "field": "variableName",
38211             "description": ""
38212           }
38213         ]
38214       }
38215     },
38216     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
38217     "version": "0.0.0",
38218     "filename": "server/api/intZohoField/index.js",
38219     "groupTitle": "Zoho_Fields"
38220   },
38221   {
38222     "type": "delete",
38223     "url": "/api/integrations/zoho/fields/{id}",
38224     "title": "Deletes a Zoho Field",
38225     "examples": [
38226       {
38227         "title": "Example usage:",
38228         "content": "curl https://{domain}/api/integrations/zoho/fields/{id} -v -u {name}:{password} -X DELETE",
38229         "type": "json"
38230       }
38231     ],
38232     "name": "DeleteZoho_Fields",
38233     "group": "Zoho_Fields",
38234     "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>",
38235     "version": "0.0.0",
38236     "filename": "server/api/intZohoField/index.js",
38237     "groupTitle": "Zoho_Fields"
38238   },
38239   {
38240     "type": "get",
38241     "url": "/api/integrations/zoho/fields",
38242     "title": "Gets a list of Zoho Fields",
38243     "examples": [
38244       {
38245         "title": "Example usage:",
38246         "content": "curl https://{domain}/api/integrations/zoho/fields -v -u {name}:{password}",
38247         "type": "json"
38248       }
38249     ],
38250     "name": "GetZoho_Fields",
38251     "group": "Zoho_Fields",
38252     "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>",
38253     "version": "0.0.0",
38254     "filename": "server/api/intZohoField/index.js",
38255     "groupTitle": "Zoho_Fields"
38256   },
38257   {
38258     "type": "get",
38259     "url": "/api/integrations/zoho/fields/{id}",
38260     "title": "Gets a single Zoho Field",
38261     "examples": [
38262       {
38263         "title": "Example usage:",
38264         "content": "curl https://{domain}/api/integrations/zoho/fields/{id} -v -u {name}:{password}",
38265         "type": "json"
38266       }
38267     ],
38268     "name": "ShowZoho_Fields",
38269     "group": "Zoho_Fields",
38270     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
38271     "version": "0.0.0",
38272     "filename": "server/api/intZohoField/index.js",
38273     "groupTitle": "Zoho_Fields"
38274   },
38275   {
38276     "type": "put",
38277     "url": "/api/integrations/zoho/fields/{id}",
38278     "title": "Update an existing Zoho Field",
38279     "examples": [
38280       {
38281         "title": "Example usage:",
38282         "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",
38283         "type": "json"
38284       }
38285     ],
38286     "name": "updateZoho_Fields",
38287     "group": "Zoho_Fields",
38288     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
38289     "version": "0.0.0",
38290     "filename": "server/api/intZohoField/index.js",
38291     "groupTitle": "Zoho_Fields"
38292   },
38293   {
38294     "type": "post",
38295     "url": "/api/cdr",
38296     "title": "Creates a new Cdr",
38297     "examples": [
38298       {
38299         "title": "Example usage:",
38300         "content": "curl https://{domain}/api/cdr -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
38301         "type": "json"
38302       }
38303     ],
38304     "name": "CreateCdrs",
38305     "group": "cdr",
38306     "parameter": {
38307       "fields": {
38308         "Body": [
38309           {
38310             "group": "Body",
38311             "type": "String",
38312             "optional": false,
38313             "field": "calldate",
38314             "description": ""
38315           },
38316           {
38317             "group": "Body",
38318             "type": "String",
38319             "optional": true,
38320             "field": "clid",
38321             "description": ""
38322           },
38323           {
38324             "group": "Body",
38325             "type": "String",
38326             "optional": true,
38327             "field": "src",
38328             "description": ""
38329           },
38330           {
38331             "group": "Body",
38332             "type": "String",
38333             "optional": true,
38334             "field": "dst",
38335             "description": ""
38336           },
38337           {
38338             "group": "Body",
38339             "type": "String",
38340             "optional": true,
38341             "field": "dcontext",
38342             "description": ""
38343           },
38344           {
38345             "group": "Body",
38346             "type": "String",
38347             "optional": true,
38348             "field": "channel",
38349             "description": ""
38350           },
38351           {
38352             "group": "Body",
38353             "type": "String",
38354             "optional": true,
38355             "field": "dstchannel",
38356             "description": ""
38357           },
38358           {
38359             "group": "Body",
38360             "type": "String",
38361             "optional": true,
38362             "field": "lastapp",
38363             "description": ""
38364           },
38365           {
38366             "group": "Body",
38367             "type": "String",
38368             "optional": true,
38369             "field": "lastdata",
38370             "description": ""
38371           },
38372           {
38373             "group": "Body",
38374             "type": "Integer",
38375             "optional": false,
38376             "field": "duration",
38377             "description": ""
38378           },
38379           {
38380             "group": "Body",
38381             "type": "Integer",
38382             "optional": false,
38383             "field": "billsec",
38384             "description": ""
38385           },
38386           {
38387             "group": "Body",
38388             "type": "String",
38389             "optional": true,
38390             "field": "disposition",
38391             "description": ""
38392           },
38393           {
38394             "group": "Body",
38395             "type": "Integer",
38396             "optional": false,
38397             "field": "amaflags",
38398             "description": ""
38399           },
38400           {
38401             "group": "Body",
38402             "type": "String",
38403             "optional": true,
38404             "field": "accountcode",
38405             "description": ""
38406           },
38407           {
38408             "group": "Body",
38409             "type": "String",
38410             "optional": true,
38411             "field": "userfield",
38412             "description": ""
38413           },
38414           {
38415             "group": "Body",
38416             "type": "String",
38417             "optional": true,
38418             "field": "uniqueid",
38419             "description": ""
38420           },
38421           {
38422             "group": "Body",
38423             "type": "String",
38424             "optional": true,
38425             "field": "linkedid",
38426             "description": ""
38427           },
38428           {
38429             "group": "Body",
38430             "type": "String",
38431             "optional": true,
38432             "field": "sequence",
38433             "description": ""
38434           },
38435           {
38436             "group": "Body",
38437             "type": "String",
38438             "optional": true,
38439             "field": "peeraccount",
38440             "description": ""
38441           },
38442           {
38443             "group": "Body",
38444             "type": "String",
38445             "optional": true,
38446             "field": "type",
38447             "description": ""
38448           },
38449           {
38450             "group": "Body",
38451             "type": "String",
38452             "optional": true,
38453             "field": "tag",
38454             "description": ""
38455           }
38456         ]
38457       }
38458     },
38459     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
38460     "version": "0.0.0",
38461     "filename": "server/api/cdr/index.js",
38462     "groupTitle": "cdr"
38463   },
38464   {
38465     "type": "delete",
38466     "url": "/api/cdr/{id}",
38467     "title": "Deletes a Cdr",
38468     "examples": [
38469       {
38470         "title": "Example usage:",
38471         "content": "curl https://{domain}/api/cdr/{id} -v -u {name}:{password} -X DELETE",
38472         "type": "json"
38473       }
38474     ],
38475     "name": "DeleteCdrs",
38476     "group": "cdr",
38477     "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>",
38478     "version": "0.0.0",
38479     "filename": "server/api/cdr/index.js",
38480     "groupTitle": "cdr"
38481   },
38482   {
38483     "type": "get",
38484     "url": "/api/cdr/describe",
38485     "title": "Gets table info about Cdrs",
38486     "examples": [
38487       {
38488         "title": "Example usage:",
38489         "content": "curl https://{domain}/api/cdr/describe -v -u {name}:{password}",
38490         "type": "json"
38491       }
38492     ],
38493     "name": "DescribeCdrs",
38494     "group": "cdr",
38495     "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>",
38496     "version": "0.0.0",
38497     "filename": "server/api/cdr/index.js",
38498     "groupTitle": "cdr"
38499   },
38500   {
38501     "type": "get",
38502     "url": "/api/cdr",
38503     "title": "Gets a list of Cdrs",
38504     "examples": [
38505       {
38506         "title": "Example usage:",
38507         "content": "curl https://{domain}/api/cdr -v -u {name}:{password}",
38508         "type": "json"
38509       }
38510     ],
38511     "name": "GetCdrs",
38512     "group": "cdr",
38513     "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>",
38514     "version": "0.0.0",
38515     "filename": "server/api/cdr/index.js",
38516     "groupTitle": "cdr"
38517   },
38518   {
38519     "type": "get",
38520     "url": "/api/cdr/{id}",
38521     "title": "Gets a single Cdr",
38522     "examples": [
38523       {
38524         "title": "Example usage:",
38525         "content": "curl https://{domain}/api/cdr/{id} -v -u {name}:{password}",
38526         "type": "json"
38527       }
38528     ],
38529     "name": "ShowCdrs",
38530     "group": "cdr",
38531     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
38532     "version": "0.0.0",
38533     "filename": "server/api/cdr/index.js",
38534     "groupTitle": "cdr"
38535   },
38536   {
38537     "type": "put",
38538     "url": "/api/cdr/{id}",
38539     "title": "Update an existing Cdr",
38540     "examples": [
38541       {
38542         "title": "Example usage:",
38543         "content": "curl https://{domain}/api/cdr/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
38544         "type": "json"
38545       }
38546     ],
38547     "name": "updateCdrs",
38548     "group": "cdr",
38549     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
38550     "version": "0.0.0",
38551     "filename": "server/api/cdr/index.js",
38552     "groupTitle": "cdr"
38553   },
38554   {
38555     "type": "post",
38556     "url": "/api/voiceQueuesLog",
38557     "title": "Creates a new VoiceQueuesLog",
38558     "examples": [
38559       {
38560         "title": "Example usage:",
38561         "content": "curl https://{domain}/api/voiceQueuesLog -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
38562         "type": "json"
38563       }
38564     ],
38565     "name": "CreateVoiceQueuesLogs",
38566     "group": "voiceQueuesLog",
38567     "parameter": {
38568       "fields": {
38569         "Body": [
38570           {
38571             "group": "Body",
38572             "type": "String",
38573             "optional": true,
38574             "field": "time",
38575             "description": ""
38576           },
38577           {
38578             "group": "Body",
38579             "type": "String",
38580             "optional": false,
38581             "field": "callid",
38582             "description": ""
38583           },
38584           {
38585             "group": "Body",
38586             "type": "String",
38587             "optional": false,
38588             "field": "queuename",
38589             "description": ""
38590           },
38591           {
38592             "group": "Body",
38593             "type": "String",
38594             "optional": false,
38595             "field": "agent",
38596             "description": ""
38597           },
38598           {
38599             "group": "Body",
38600             "type": "String",
38601             "optional": false,
38602             "field": "event",
38603             "description": ""
38604           },
38605           {
38606             "group": "Body",
38607             "type": "String",
38608             "optional": false,
38609             "field": "data",
38610             "description": ""
38611           },
38612           {
38613             "group": "Body",
38614             "type": "String",
38615             "optional": false,
38616             "field": "data1",
38617             "description": ""
38618           },
38619           {
38620             "group": "Body",
38621             "type": "String",
38622             "optional": false,
38623             "field": "data2",
38624             "description": ""
38625           },
38626           {
38627             "group": "Body",
38628             "type": "String",
38629             "optional": false,
38630             "field": "data3",
38631             "description": ""
38632           },
38633           {
38634             "group": "Body",
38635             "type": "String",
38636             "optional": false,
38637             "field": "data4",
38638             "description": ""
38639           },
38640           {
38641             "group": "Body",
38642             "type": "String",
38643             "optional": false,
38644             "field": "data5",
38645             "description": ""
38646           },
38647           {
38648             "group": "Body",
38649             "type": "String",
38650             "optional": false,
38651             "field": "dtm",
38652             "description": ""
38653           }
38654         ]
38655       }
38656     },
38657     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
38658     "version": "0.0.0",
38659     "filename": "server/api/voiceQueuesLog/index.js",
38660     "groupTitle": "voiceQueuesLog"
38661   },
38662   {
38663     "type": "delete",
38664     "url": "/api/voiceQueuesLog/{id}",
38665     "title": "Deletes a VoiceQueuesLog",
38666     "examples": [
38667       {
38668         "title": "Example usage:",
38669         "content": "curl https://{domain}/api/voiceQueuesLog/{id} -v -u {name}:{password} -X DELETE",
38670         "type": "json"
38671       }
38672     ],
38673     "name": "DeleteVoiceQueuesLogs",
38674     "group": "voiceQueuesLog",
38675     "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>",
38676     "version": "0.0.0",
38677     "filename": "server/api/voiceQueuesLog/index.js",
38678     "groupTitle": "voiceQueuesLog"
38679   },
38680   {
38681     "type": "get",
38682     "url": "/api/voiceQueuesLog",
38683     "title": "Gets a list of VoiceQueuesLogs",
38684     "examples": [
38685       {
38686         "title": "Example usage:",
38687         "content": "curl https://{domain}/api/voiceQueuesLog -v -u {name}:{password}",
38688         "type": "json"
38689       }
38690     ],
38691     "name": "GetVoiceQueuesLogs",
38692     "group": "voiceQueuesLog",
38693     "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>",
38694     "version": "0.0.0",
38695     "filename": "server/api/voiceQueuesLog/index.js",
38696     "groupTitle": "voiceQueuesLog"
38697   },
38698   {
38699     "type": "get",
38700     "url": "/api/voiceQueuesLog/{id}",
38701     "title": "Gets a single VoiceQueuesLog",
38702     "examples": [
38703       {
38704         "title": "Example usage:",
38705         "content": "curl https://{domain}/api/voiceQueuesLog/{id} -v -u {name}:{password}",
38706         "type": "json"
38707       }
38708     ],
38709     "name": "ShowVoiceQueuesLogs",
38710     "group": "voiceQueuesLog",
38711     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
38712     "version": "0.0.0",
38713     "filename": "server/api/voiceQueuesLog/index.js",
38714     "groupTitle": "voiceQueuesLog"
38715   },
38716   {
38717     "type": "put",
38718     "url": "/api/voiceQueuesLog/{id}",
38719     "title": "Update an existing VoiceQueuesLog",
38720     "examples": [
38721       {
38722         "title": "Example usage:",
38723         "content": "curl https://{domain}/api/voiceQueuesLog/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
38724         "type": "json"
38725       }
38726     ],
38727     "name": "updateVoiceQueuesLogs",
38728     "group": "voiceQueuesLog",
38729     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
38730     "version": "0.0.0",
38731     "filename": "server/api/voiceQueuesLog/index.js",
38732     "groupTitle": "voiceQueuesLog"
38733   }
38734 ] });