14eba9b3c6353927f6f894d226c4ba7fbc4aadd9
[motion2.git] / apidoc / api_data.js
1 define({ "api": [
2   {
3     "type": "delete",
4     "url": "/api/actions/{id}",
5     "title": "Deletes a Action",
6     "examples": [
7       {
8         "title": "Example usage:",
9         "content": "curl https://{domain}/api/actions/{id} -v -u {name}:{password} -X DELETE",
10         "type": "json"
11       }
12     ],
13     "name": "DeleteActions",
14     "group": "Actions",
15     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16     "version": "0.0.0",
17     "filename": "server/api/action/index.js",
18     "groupTitle": "Actions"
19   },
20   {
21     "type": "put",
22     "url": "/api/actions/{id}",
23     "title": "Update an existing Action",
24     "examples": [
25       {
26         "title": "Example usage:",
27         "content": "curl https://{domain}/api/actions/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
28         "type": "json"
29       }
30     ],
31     "name": "updateActions",
32     "group": "Actions",
33     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34     "version": "0.0.0",
35     "filename": "server/api/action/index.js",
36     "groupTitle": "Actions"
37   },
38   {
39     "type": "post",
40     "url": "/api/analytics/custom_reports",
41     "title": "Creates a new Analytic Custom Report",
42     "examples": [
43       {
44         "title": "Example usage:",
45         "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",
46         "type": "json"
47       }
48     ],
49     "name": "CreateAnalytic_Custom_Reports",
50     "group": "Analytic_Custom_Reports",
51     "parameter": {
52       "fields": {
53         "Body": [
54           {
55             "group": "Body",
56             "type": "String",
57             "optional": false,
58             "field": "name",
59             "description": ""
60           },
61           {
62             "group": "Body",
63             "type": "String",
64             "optional": true,
65             "field": "description",
66             "description": ""
67           },
68           {
69             "group": "Body",
70             "type": "String",
71             "optional": true,
72             "field": "parent",
73             "description": ""
74           },
75           {
76             "group": "Body",
77             "type": "String",
78             "optional": true,
79             "field": "table",
80             "description": ""
81           },
82           {
83             "group": "Body",
84             "type": "Text",
85             "optional": true,
86             "field": "conditions",
87             "description": ""
88           },
89           {
90             "group": "Body",
91             "type": "Text",
92             "optional": true,
93             "field": "joins",
94             "description": ""
95           }
96         ]
97       }
98     },
99     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
100     "version": "0.0.0",
101     "filename": "server/api/analyticCustomReport/index.js",
102     "groupTitle": "Analytic_Custom_Reports"
103   },
104   {
105     "type": "delete",
106     "url": "/api/analytics/custom_reports/{id}",
107     "title": "Deletes a Analytic Custom Report",
108     "examples": [
109       {
110         "title": "Example usage:",
111         "content": "curl https://{domain}/api/analytics/custom_reports/{id} -v -u {name}:{password} -X DELETE",
112         "type": "json"
113       }
114     ],
115     "name": "DeleteAnalytic_Custom_Reports",
116     "group": "Analytic_Custom_Reports",
117     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
118     "version": "0.0.0",
119     "filename": "server/api/analyticCustomReport/index.js",
120     "groupTitle": "Analytic_Custom_Reports"
121   },
122   {
123     "type": "get",
124     "url": "/api/analytics/custom_reports",
125     "title": "Gets a list of Analytic Custom Reports",
126     "examples": [
127       {
128         "title": "Example usage:",
129         "content": "curl https://{domain}/api/analytics/custom_reports -v -u {name}:{password}",
130         "type": "json"
131       }
132     ],
133     "name": "GetAnalytic_Custom_Reports",
134     "group": "Analytic_Custom_Reports",
135     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
136     "version": "0.0.0",
137     "filename": "server/api/analyticCustomReport/index.js",
138     "groupTitle": "Analytic_Custom_Reports"
139   },
140   {
141     "type": "get",
142     "url": "/api/analytics/custom_reports/{id}",
143     "title": "Gets a single Analytic Custom Report",
144     "examples": [
145       {
146         "title": "Example usage:",
147         "content": "curl https://{domain}/api/analytics/custom_reports/{id} -v -u {name}:{password}",
148         "type": "json"
149       }
150     ],
151     "name": "ShowAnalytic_Custom_Reports",
152     "group": "Analytic_Custom_Reports",
153     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
154     "version": "0.0.0",
155     "filename": "server/api/analyticCustomReport/index.js",
156     "groupTitle": "Analytic_Custom_Reports"
157   },
158   {
159     "type": "get",
160     "url": "/api/analytics/custom_reports/{id}/preview",
161     "title": "Report Preview",
162     "examples": [
163       {
164         "title": "Example usage:",
165         "content": "curl https://{domain}/api/analytics/custom_reports/{id}/preview -v -u {name}:{password} -X GET",
166         "type": "json"
167       }
168     ],
169     "name": "preview",
170     "group": "Analytic_Custom_Reports",
171     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
172     "version": "0.0.0",
173     "filename": "server/api/analyticCustomReport/index.js",
174     "groupTitle": "Analytic_Custom_Reports"
175   },
176   {
177     "type": "get",
178     "url": "/api/analytics/custom_reports/{id}/query",
179     "title": "Report Query SQL",
180     "examples": [
181       {
182         "title": "Example usage:",
183         "content": "curl https://{domain}/api/analytics/custom_reports/{id}/query -v -u {name}:{password} -X GET",
184         "type": "json"
185       }
186     ],
187     "name": "query",
188     "group": "Analytic_Custom_Reports",
189     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
190     "version": "0.0.0",
191     "filename": "server/api/analyticCustomReport/index.js",
192     "groupTitle": "Analytic_Custom_Reports"
193   },
194   {
195     "type": "get",
196     "url": "/api/analytics/custom_reports/{id}/run",
197     "title": "Report Run",
198     "examples": [
199       {
200         "title": "Example usage:",
201         "content": "curl https://{domain}/api/analytics/custom_reports/{id}/run -v -u {name}:{password} -X GET",
202         "type": "json"
203       }
204     ],
205     "name": "run",
206     "group": "Analytic_Custom_Reports",
207     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
208     "version": "0.0.0",
209     "filename": "server/api/analyticCustomReport/index.js",
210     "groupTitle": "Analytic_Custom_Reports"
211   },
212   {
213     "type": "put",
214     "url": "/api/analytics/custom_reports/{id}",
215     "title": "Update an existing Analytic Custom Report",
216     "examples": [
217       {
218         "title": "Example usage:",
219         "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",
220         "type": "json"
221       }
222     ],
223     "name": "updateAnalytic_Custom_Reports",
224     "group": "Analytic_Custom_Reports",
225     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
226     "version": "0.0.0",
227     "filename": "server/api/analyticCustomReport/index.js",
228     "groupTitle": "Analytic_Custom_Reports"
229   },
230   {
231     "type": "post",
232     "url": "/api/analytics/default_reports",
233     "title": "Creates a new Analytic Default Report",
234     "examples": [
235       {
236         "title": "Example usage:",
237         "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",
238         "type": "json"
239       }
240     ],
241     "name": "CreateAnalytic_Default_Reports",
242     "group": "Analytic_Default_Reports",
243     "parameter": {
244       "fields": {
245         "Body": [
246           {
247             "group": "Body",
248             "type": "String",
249             "optional": false,
250             "field": "name",
251             "description": ""
252           },
253           {
254             "group": "Body",
255             "type": "String",
256             "optional": true,
257             "field": "description",
258             "description": ""
259           },
260           {
261             "group": "Body",
262             "type": "String",
263             "optional": true,
264             "field": "parent",
265             "description": ""
266           },
267           {
268             "group": "Body",
269             "type": "String",
270             "optional": true,
271             "field": "table",
272             "description": ""
273           },
274           {
275             "group": "Body",
276             "type": "Text",
277             "optional": true,
278             "field": "conditions",
279             "description": ""
280           },
281           {
282             "group": "Body",
283             "type": "Text",
284             "optional": true,
285             "field": "joins",
286             "description": ""
287           }
288         ]
289       }
290     },
291     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
292     "version": "0.0.0",
293     "filename": "server/api/analyticDefaultReport/index.js",
294     "groupTitle": "Analytic_Default_Reports"
295   },
296   {
297     "type": "delete",
298     "url": "/api/analytics/default_reports/{id}",
299     "title": "Deletes a Analytic Default Report",
300     "examples": [
301       {
302         "title": "Example usage:",
303         "content": "curl https://{domain}/api/analytics/default_reports/{id} -v -u {name}:{password} -X DELETE",
304         "type": "json"
305       }
306     ],
307     "name": "DeleteAnalytic_Default_Reports",
308     "group": "Analytic_Default_Reports",
309     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
310     "version": "0.0.0",
311     "filename": "server/api/analyticDefaultReport/index.js",
312     "groupTitle": "Analytic_Default_Reports"
313   },
314   {
315     "type": "get",
316     "url": "/api/analytics/default_reports",
317     "title": "Gets a list of Analytic Default Reports",
318     "examples": [
319       {
320         "title": "Example usage:",
321         "content": "curl https://{domain}/api/analytics/default_reports -v -u {name}:{password}",
322         "type": "json"
323       }
324     ],
325     "name": "GetAnalytic_Default_Reports",
326     "group": "Analytic_Default_Reports",
327     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
328     "version": "0.0.0",
329     "filename": "server/api/analyticDefaultReport/index.js",
330     "groupTitle": "Analytic_Default_Reports"
331   },
332   {
333     "type": "get",
334     "url": "/api/analytics/default_reports/{id}",
335     "title": "Gets a single Analytic Default Report",
336     "examples": [
337       {
338         "title": "Example usage:",
339         "content": "curl https://{domain}/api/analytics/default_reports/{id} -v -u {name}:{password}",
340         "type": "json"
341       }
342     ],
343     "name": "ShowAnalytic_Default_Reports",
344     "group": "Analytic_Default_Reports",
345     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
346     "version": "0.0.0",
347     "filename": "server/api/analyticDefaultReport/index.js",
348     "groupTitle": "Analytic_Default_Reports"
349   },
350   {
351     "type": "get",
352     "url": "/api/analytics/default_reports/{id}/preview",
353     "title": "Report Preview",
354     "examples": [
355       {
356         "title": "Example usage:",
357         "content": "curl https://{domain}/api/analytics/default_reports/{id}/preview -v -u {name}:{password} -X GET",
358         "type": "json"
359       }
360     ],
361     "name": "preview",
362     "group": "Analytic_Default_Reports",
363     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
364     "version": "0.0.0",
365     "filename": "server/api/analyticDefaultReport/index.js",
366     "groupTitle": "Analytic_Default_Reports"
367   },
368   {
369     "type": "get",
370     "url": "/api/analytics/default_reports/{id}/query",
371     "title": "Report Query SQL",
372     "examples": [
373       {
374         "title": "Example usage:",
375         "content": "curl https://{domain}/api/analytics/default_reports/{id}/query -v -u {name}:{password} -X GET",
376         "type": "json"
377       }
378     ],
379     "name": "query",
380     "group": "Analytic_Default_Reports",
381     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
382     "version": "0.0.0",
383     "filename": "server/api/analyticDefaultReport/index.js",
384     "groupTitle": "Analytic_Default_Reports"
385   },
386   {
387     "type": "get",
388     "url": "/api/analytics/default_reports/{id}/run",
389     "title": "Report Run",
390     "examples": [
391       {
392         "title": "Example usage:",
393         "content": "curl https://{domain}/api/analytics/default_reports/{id}/run -v -u {name}:{password} -X GET",
394         "type": "json"
395       }
396     ],
397     "name": "run",
398     "group": "Analytic_Default_Reports",
399     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
400     "version": "0.0.0",
401     "filename": "server/api/analyticDefaultReport/index.js",
402     "groupTitle": "Analytic_Default_Reports"
403   },
404   {
405     "type": "put",
406     "url": "/api/analytics/default_reports/{id}",
407     "title": "Update an existing Analytic Default Report",
408     "examples": [
409       {
410         "title": "Example usage:",
411         "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",
412         "type": "json"
413       }
414     ],
415     "name": "updateAnalytic_Default_Reports",
416     "group": "Analytic_Default_Reports",
417     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
418     "version": "0.0.0",
419     "filename": "server/api/analyticDefaultReport/index.js",
420     "groupTitle": "Analytic_Default_Reports"
421   },
422   {
423     "type": "post",
424     "url": "/api/analytics/extracted_reports",
425     "title": "Creates a new Analytic Extracted Report",
426     "examples": [
427       {
428         "title": "Example usage:",
429         "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",
430         "type": "json"
431       }
432     ],
433     "name": "CreateAnalytic_Extacted_Reports",
434     "group": "Analytic_Extracted_Reports",
435     "parameter": {
436       "fields": {
437         "Body": [
438           {
439             "group": "Body",
440             "type": "String",
441             "optional": false,
442             "field": "name",
443             "description": ""
444           },
445           {
446             "group": "Body",
447             "type": "String",
448             "optional": false,
449             "field": "basename",
450             "description": ""
451           },
452           {
453             "group": "Body",
454             "type": "String",
455             "allowedValues": [
456               "\"csv\"",
457               "\"pdf\"",
458               "\"xlsx\""
459             ],
460             "optional": false,
461             "field": "output",
462             "description": ""
463           },
464           {
465             "group": "Body",
466             "type": "String",
467             "optional": false,
468             "field": "savename",
469             "description": ""
470           },
471           {
472             "group": "Body",
473             "type": "String",
474             "optional": true,
475             "field": "startDate",
476             "description": ""
477           },
478           {
479             "group": "Body",
480             "type": "String",
481             "optional": true,
482             "field": "endDate",
483             "description": ""
484           },
485           {
486             "group": "Body",
487             "type": "String",
488             "optional": true,
489             "field": "status",
490             "description": ""
491           },
492           {
493             "group": "Body",
494             "type": "String",
495             "allowedValues": [
496               "\"manual\"",
497               "\"scheduled\""
498             ],
499             "optional": false,
500             "field": "type",
501             "description": ""
502           },
503           {
504             "group": "Body",
505             "type": "Integer",
506             "optional": true,
507             "field": "reportId",
508             "description": ""
509           },
510           {
511             "group": "Body",
512             "type": "String",
513             "optional": true,
514             "field": "reportType",
515             "description": ""
516           }
517         ]
518       }
519     },
520     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
521     "version": "0.0.0",
522     "filename": "server/api/analyticExtractedReport/index.js",
523     "groupTitle": "Analytic_Extracted_Reports"
524   },
525   {
526     "type": "delete",
527     "url": "/api/analytics/extracted_reports/{id}",
528     "title": "Deletes a Analytic Extracted Report",
529     "examples": [
530       {
531         "title": "Example usage:",
532         "content": "curl https://{domain}/api/analytics/extracted_reports/{id} -v -u {name}:{password} -X DELETE",
533         "type": "json"
534       }
535     ],
536     "name": "DeleteAnalytic_Extacted_Reports",
537     "group": "Analytic_Extracted_Reports",
538     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
539     "version": "0.0.0",
540     "filename": "server/api/analyticExtractedReport/index.js",
541     "groupTitle": "Analytic_Extracted_Reports"
542   },
543   {
544     "type": "get",
545     "url": "/api/analytics/extracted_reports",
546     "title": "Gets a list of Analytic Extacted Reports",
547     "examples": [
548       {
549         "title": "Example usage:",
550         "content": "curl https://{domain}/api/analytics/extracted_reports -v -u {name}:{password}",
551         "type": "json"
552       }
553     ],
554     "name": "GetAnalytic_Extacted_Reports",
555     "group": "Analytic_Extracted_Reports",
556     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
557     "version": "0.0.0",
558     "filename": "server/api/analyticExtractedReport/index.js",
559     "groupTitle": "Analytic_Extracted_Reports"
560   },
561   {
562     "type": "get",
563     "url": "/api/analytics/extracted_reports/{id}",
564     "title": "Gets a single Analytic Extracted Report",
565     "examples": [
566       {
567         "title": "Example usage:",
568         "content": "curl https://{domain}/api/analytics/extracted_reports/{id} -v -u {name}:{password}",
569         "type": "json"
570       }
571     ],
572     "name": "ShowAnalytic_Extacted_Reports",
573     "group": "Analytic_Extracted_Reports",
574     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
575     "version": "0.0.0",
576     "filename": "server/api/analyticExtractedReport/index.js",
577     "groupTitle": "Analytic_Extracted_Reports"
578   },
579   {
580     "type": "get",
581     "url": "/api/analytics/extracted_reports/{id}/download",
582     "title": "Download Extracted Report",
583     "examples": [
584       {
585         "title": "Example usage:",
586         "content": "curl https://{domain}/api/analytics/extracted_reports/{id}/download -v -u {name}:{password} -X GET",
587         "type": "json"
588       }
589     ],
590     "name": "download",
591     "group": "Analytic_Extracted_Reports",
592     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
593     "version": "0.0.0",
594     "filename": "server/api/analyticExtractedReport/index.js",
595     "groupTitle": "Analytic_Extracted_Reports"
596   },
597   {
598     "type": "put",
599     "url": "/api/analytics/extracted_reports/{id}",
600     "title": "Update an existing Analytic Extracted Report",
601     "examples": [
602       {
603         "title": "Example usage:",
604         "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",
605         "type": "json"
606       }
607     ],
608     "name": "updateAnalytic_Extacted_Reports",
609     "group": "Analytic_Extracted_Reports",
610     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
611     "version": "0.0.0",
612     "filename": "server/api/analyticExtractedReport/index.js",
613     "groupTitle": "Analytic_Extracted_Reports"
614   },
615   {
616     "type": "post",
617     "url": "/api/analytics/field_reports/create_many",
618     "title": "Creates many Analytic Field Reports",
619     "examples": [
620       {
621         "title": "Example usage:",
622         "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",
623         "type": "json"
624       }
625     ],
626     "name": "BulkCreateAnalytic_Field_Reports",
627     "group": "Analytic_Field_Reports",
628     "parameter": {
629       "fields": {
630         "Body": [
631           {
632             "group": "Body",
633             "type": "Text",
634             "optional": true,
635             "field": "field",
636             "description": ""
637           },
638           {
639             "group": "Body",
640             "type": "String",
641             "optional": true,
642             "field": "alias",
643             "description": ""
644           },
645           {
646             "group": "Body",
647             "type": "String",
648             "optional": true,
649             "field": "function",
650             "description": ""
651           },
652           {
653             "group": "Body",
654             "type": "String",
655             "optional": true,
656             "field": "format",
657             "description": ""
658           },
659           {
660             "group": "Body",
661             "type": "Boolean",
662             "optional": true,
663             "field": "groupBy",
664             "description": ""
665           },
666           {
667             "group": "Body",
668             "type": "String",
669             "optional": true,
670             "field": "orderBy",
671             "description": ""
672           },
673           {
674             "group": "Body",
675             "type": "Boolean",
676             "optional": true,
677             "field": "custom",
678             "description": ""
679           }
680         ]
681       }
682     },
683     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
684     "version": "0.0.0",
685     "filename": "server/api/analyticFieldReport/index.js",
686     "groupTitle": "Analytic_Field_Reports"
687   },
688   {
689     "type": "delete",
690     "url": "/api/analytics/field_reports/destroy_many?ids={ids}",
691     "title": "Deletes many Analytic Field Reports",
692     "examples": [
693       {
694         "title": "Example usage:",
695         "content": "curl https://{domain}/api/analytics/field_reports/destroy_many?ids=1&ids=2&ids=3 -v -u {name}:{password} -X DELETE",
696         "type": "json"
697       }
698     ],
699     "name": "BulkDeleteAnalytic_Field_Reports",
700     "group": "Analytic_Field_Reports",
701     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
702     "version": "0.0.0",
703     "filename": "server/api/analyticFieldReport/index.js",
704     "groupTitle": "Analytic_Field_Reports"
705   },
706   {
707     "type": "post",
708     "url": "/api/analytics/field_reports",
709     "title": "Creates a new Analytic Field Report",
710     "examples": [
711       {
712         "title": "Example usage:",
713         "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",
714         "type": "json"
715       }
716     ],
717     "name": "CreateAnalytic_Field_Reports",
718     "group": "Analytic_Field_Reports",
719     "parameter": {
720       "fields": {
721         "Body": [
722           {
723             "group": "Body",
724             "type": "Text",
725             "optional": true,
726             "field": "field",
727             "description": ""
728           },
729           {
730             "group": "Body",
731             "type": "String",
732             "optional": true,
733             "field": "alias",
734             "description": ""
735           },
736           {
737             "group": "Body",
738             "type": "String",
739             "optional": true,
740             "field": "function",
741             "description": ""
742           },
743           {
744             "group": "Body",
745             "type": "String",
746             "optional": true,
747             "field": "format",
748             "description": ""
749           },
750           {
751             "group": "Body",
752             "type": "Boolean",
753             "optional": true,
754             "field": "groupBy",
755             "description": ""
756           },
757           {
758             "group": "Body",
759             "type": "String",
760             "optional": true,
761             "field": "orderBy",
762             "description": ""
763           },
764           {
765             "group": "Body",
766             "type": "Boolean",
767             "optional": true,
768             "field": "custom",
769             "description": ""
770           }
771         ]
772       }
773     },
774     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
775     "version": "0.0.0",
776     "filename": "server/api/analyticFieldReport/index.js",
777     "groupTitle": "Analytic_Field_Reports"
778   },
779   {
780     "type": "delete",
781     "url": "/api/analytics/field_reports/{id}",
782     "title": "Deletes a Analytic Field Report",
783     "examples": [
784       {
785         "title": "Example usage:",
786         "content": "curl https://{domain}/api/analytics/field_reports/{id} -v -u {name}:{password} -X DELETE",
787         "type": "json"
788       }
789     ],
790     "name": "DeleteAnalytic_Field_Reports",
791     "group": "Analytic_Field_Reports",
792     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
793     "version": "0.0.0",
794     "filename": "server/api/analyticFieldReport/index.js",
795     "groupTitle": "Analytic_Field_Reports"
796   },
797   {
798     "type": "get",
799     "url": "/api/analytics/field_reports",
800     "title": "Gets a list of Analytic Field Reports",
801     "examples": [
802       {
803         "title": "Example usage:",
804         "content": "curl https://{domain}/api/analytics/field_reports -v -u {name}:{password}",
805         "type": "json"
806       }
807     ],
808     "name": "GetAnalytic_Field_Reports",
809     "group": "Analytic_Field_Reports",
810     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
811     "version": "0.0.0",
812     "filename": "server/api/analyticFieldReport/index.js",
813     "groupTitle": "Analytic_Field_Reports"
814   },
815   {
816     "type": "get",
817     "url": "/api/analytics/field_reports/{id}",
818     "title": "Gets a single Analytic Field Report",
819     "examples": [
820       {
821         "title": "Example usage:",
822         "content": "curl https://{domain}/api/analytics/field_reports/{id} -v -u {name}:{password}",
823         "type": "json"
824       }
825     ],
826     "name": "ShowAnalytic_Field_Reports",
827     "group": "Analytic_Field_Reports",
828     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
829     "version": "0.0.0",
830     "filename": "server/api/analyticFieldReport/index.js",
831     "groupTitle": "Analytic_Field_Reports"
832   },
833   {
834     "type": "post",
835     "url": "/api/analytics/field_reports/{id}/create_many",
836     "title": "Rewrite fields set",
837     "examples": [
838       {
839         "title": "Example usage:",
840         "content": "curl https://{domain}/api/analytics/field_reports/{id}/create_many -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
841         "type": "json"
842       }
843     ],
844     "name": "addFields",
845     "group": "Analytic_Field_Reports",
846     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
847     "version": "0.0.0",
848     "filename": "server/api/analyticFieldReport/index.js",
849     "groupTitle": "Analytic_Field_Reports"
850   },
851   {
852     "type": "put",
853     "url": "/api/analytics/field_reports/{id}",
854     "title": "Update an existing Analytic Field Report",
855     "examples": [
856       {
857         "title": "Example usage:",
858         "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",
859         "type": "json"
860       }
861     ],
862     "name": "updateAnalytic_Field_Reports",
863     "group": "Analytic_Field_Reports",
864     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
865     "version": "0.0.0",
866     "filename": "server/api/analyticFieldReport/index.js",
867     "groupTitle": "Analytic_Field_Reports"
868   },
869   {
870     "type": "post",
871     "url": "/api/analytics/metrics",
872     "title": "Creates a new Analytic Metrics",
873     "examples": [
874       {
875         "title": "Example usage:",
876         "content": "curl https://{domain}/api/analytics/metrics -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
877         "type": "json"
878       }
879     ],
880     "name": "CreateAnalytic_Metric",
881     "group": "Analytic_Metrics",
882     "parameter": {
883       "fields": {
884         "Body": [
885           {
886             "group": "Body",
887             "type": "String",
888             "optional": false,
889             "field": "name",
890             "description": ""
891           },
892           {
893             "group": "Body",
894             "type": "String",
895             "optional": true,
896             "field": "table",
897             "description": ""
898           },
899           {
900             "group": "Body",
901             "type": "Text",
902             "optional": true,
903             "field": "metric",
904             "description": ""
905           },
906           {
907             "group": "Body",
908             "type": "String",
909             "optional": true,
910             "field": "description",
911             "description": ""
912           }
913         ]
914       }
915     },
916     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
917     "version": "0.0.0",
918     "filename": "server/api/analyticMetric/index.js",
919     "groupTitle": "Analytic_Metrics"
920   },
921   {
922     "type": "delete",
923     "url": "/api/analytics/metrics/{id}",
924     "title": "Deletes a Analytic Metrics",
925     "examples": [
926       {
927         "title": "Example usage:",
928         "content": "curl https://{domain}/api/analytics/metrics/{id} -v -u {name}:{password} -X DELETE",
929         "type": "json"
930       }
931     ],
932     "name": "DeleteAnalytic_Metric",
933     "group": "Analytic_Metrics",
934     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
935     "version": "0.0.0",
936     "filename": "server/api/analyticMetric/index.js",
937     "groupTitle": "Analytic_Metrics"
938   },
939   {
940     "type": "get",
941     "url": "/api/analytics/metrics",
942     "title": "Gets a list of Analytic Metric",
943     "examples": [
944       {
945         "title": "Example usage:",
946         "content": "curl https://{domain}/api/analytics/metrics -v -u {name}:{password}",
947         "type": "json"
948       }
949     ],
950     "name": "GetAnalytic_Metric",
951     "group": "Analytic_Metrics",
952     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
953     "version": "0.0.0",
954     "filename": "server/api/analyticMetric/index.js",
955     "groupTitle": "Analytic_Metrics"
956   },
957   {
958     "type": "get",
959     "url": "/api/analytics/metrics/{id}",
960     "title": "Gets a single Analytic Metrics",
961     "examples": [
962       {
963         "title": "Example usage:",
964         "content": "curl https://{domain}/api/analytics/metrics/{id} -v -u {name}:{password}",
965         "type": "json"
966       }
967     ],
968     "name": "ShowAnalytic_Metric",
969     "group": "Analytic_Metrics",
970     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
971     "version": "0.0.0",
972     "filename": "server/api/analyticMetric/index.js",
973     "groupTitle": "Analytic_Metrics"
974   },
975   {
976     "type": "put",
977     "url": "/api/analytics/metrics/{id}",
978     "title": "Update an existing Analytic Metrics",
979     "examples": [
980       {
981         "title": "Example usage:",
982         "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",
983         "type": "json"
984       }
985     ],
986     "name": "updateAnalytic_Metric",
987     "group": "Analytic_Metrics",
988     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
989     "version": "0.0.0",
990     "filename": "server/api/analyticMetric/index.js",
991     "groupTitle": "Analytic_Metrics"
992   },
993   {
994     "type": "post",
995     "url": "/api/analytics/tree_reports",
996     "title": "Creates a new Analytic Tree Report",
997     "examples": [
998       {
999         "title": "Example usage:",
1000         "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",
1001         "type": "json"
1002       }
1003     ],
1004     "name": "CreateAnalytic_Tree_Reports",
1005     "group": "Analytic_Tree_Reports",
1006     "parameter": {
1007       "fields": {
1008         "Body": [
1009           {
1010             "group": "Body",
1011             "type": "Text",
1012             "optional": false,
1013             "field": "tree",
1014             "description": ""
1015           }
1016         ]
1017       }
1018     },
1019     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1020     "version": "0.0.0",
1021     "filename": "server/api/analyticTreeReport/index.js",
1022     "groupTitle": "Analytic_Tree_Reports"
1023   },
1024   {
1025     "type": "delete",
1026     "url": "/api/analytics/tree_reports/{id}",
1027     "title": "Deletes a Analytic Tree Report",
1028     "examples": [
1029       {
1030         "title": "Example usage:",
1031         "content": "curl https://{domain}/api/analytics/tree_reports/{id} -v -u {name}:{password} -X DELETE",
1032         "type": "json"
1033       }
1034     ],
1035     "name": "DeleteAnalytic_Tree_Reports",
1036     "group": "Analytic_Tree_Reports",
1037     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1038     "version": "0.0.0",
1039     "filename": "server/api/analyticTreeReport/index.js",
1040     "groupTitle": "Analytic_Tree_Reports"
1041   },
1042   {
1043     "type": "get",
1044     "url": "/api/analytics/tree_reports",
1045     "title": "Gets a list of Analytic Tree Reports",
1046     "examples": [
1047       {
1048         "title": "Example usage:",
1049         "content": "curl https://{domain}/api/analytics/tree_reports -v -u {name}:{password}",
1050         "type": "json"
1051       }
1052     ],
1053     "name": "GetAnalytic_Tree_Reports",
1054     "group": "Analytic_Tree_Reports",
1055     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
1056     "version": "0.0.0",
1057     "filename": "server/api/analyticTreeReport/index.js",
1058     "groupTitle": "Analytic_Tree_Reports"
1059   },
1060   {
1061     "type": "get",
1062     "url": "/api/analytics/tree_reports/{id}",
1063     "title": "Gets a single Analytic Tree Report",
1064     "examples": [
1065       {
1066         "title": "Example usage:",
1067         "content": "curl https://{domain}/api/analytics/tree_reports/{id} -v -u {name}:{password}",
1068         "type": "json"
1069       }
1070     ],
1071     "name": "ShowAnalytic_Tree_Reports",
1072     "group": "Analytic_Tree_Reports",
1073     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1074     "version": "0.0.0",
1075     "filename": "server/api/analyticTreeReport/index.js",
1076     "groupTitle": "Analytic_Tree_Reports"
1077   },
1078   {
1079     "type": "put",
1080     "url": "/api/analytics/tree_reports/{id}",
1081     "title": "Update an existing Analytic Tree Report",
1082     "examples": [
1083       {
1084         "title": "Example usage:",
1085         "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",
1086         "type": "json"
1087       }
1088     ],
1089     "name": "updateAnalytic_Tree_Reports",
1090     "group": "Analytic_Tree_Reports",
1091     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1092     "version": "0.0.0",
1093     "filename": "server/api/analyticTreeReport/index.js",
1094     "groupTitle": "Analytic_Tree_Reports"
1095   },
1096   {
1097     "type": "post",
1098     "url": "/api/attachments/clone",
1099     "title": "Clone an existing Attachment",
1100     "examples": [
1101       {
1102         "title": "Example usage:",
1103         "content": "curl https://{domain}/api/attachments/clone -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
1104         "type": "json"
1105       }
1106     ],
1107     "name": "CloneAttachments",
1108     "group": "Attachments",
1109     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1110     "version": "0.0.0",
1111     "filename": "server/api/attachment/index.js",
1112     "groupTitle": "Attachments"
1113   },
1114   {
1115     "type": "delete",
1116     "url": "/api/attachments/{id}",
1117     "title": "Deletes a Attachment",
1118     "examples": [
1119       {
1120         "title": "Example usage:",
1121         "content": "curl https://{domain}/api/attachments/{id} -v -u {name}:{password} -X DELETE",
1122         "type": "json"
1123       }
1124     ],
1125     "name": "DeleteAttachments",
1126     "group": "Attachments",
1127     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1128     "version": "0.0.0",
1129     "filename": "server/api/attachment/index.js",
1130     "groupTitle": "Attachments"
1131   },
1132   {
1133     "type": "get",
1134     "url": "/api/attachments",
1135     "title": "Gets a list of Attachments",
1136     "examples": [
1137       {
1138         "title": "Example usage:",
1139         "content": "curl https://{domain}/api/attachments -v -u {name}:{password}",
1140         "type": "json"
1141       }
1142     ],
1143     "name": "GetAttachments",
1144     "group": "Attachments",
1145     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
1146     "version": "0.0.0",
1147     "filename": "server/api/attachment/index.js",
1148     "groupTitle": "Attachments"
1149   },
1150   {
1151     "type": "get",
1152     "url": "/api/attachments/{id}",
1153     "title": "Gets a single Attachment",
1154     "examples": [
1155       {
1156         "title": "Example usage:",
1157         "content": "curl https://{domain}/api/attachments/{id} -v -u {name}:{password}",
1158         "type": "json"
1159       }
1160     ],
1161     "name": "ShowAttachments",
1162     "group": "Attachments",
1163     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1164     "version": "0.0.0",
1165     "filename": "server/api/attachment/index.js",
1166     "groupTitle": "Attachments"
1167   },
1168   {
1169     "type": "post",
1170     "url": "/api/attachments",
1171     "title": "Add attachment",
1172     "examples": [
1173       {
1174         "title": "Example usage:",
1175         "content": "curl https://{domain}/api/attachments -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
1176         "type": "json"
1177       }
1178     ],
1179     "name": "create",
1180     "group": "Attachments",
1181     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1182     "version": "0.0.0",
1183     "filename": "server/api/attachment/index.js",
1184     "groupTitle": "Attachments"
1185   },
1186   {
1187     "type": "get",
1188     "url": "/api/attachments/:id/download",
1189     "title": "Download attachment",
1190     "examples": [
1191       {
1192         "title": "Example usage:",
1193         "content": "curl https://{domain}/api/attachments/:id/download -v -u {name}:{password} -X GET",
1194         "type": "json"
1195       }
1196     ],
1197     "name": "download",
1198     "group": "Attachments",
1199     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1200     "version": "0.0.0",
1201     "filename": "server/api/attachment/index.js",
1202     "groupTitle": "Attachments"
1203   },
1204   {
1205     "type": "get",
1206     "url": "/api/chat/interactions/{id}/attachment_download",
1207     "title": "Download attachment",
1208     "examples": [
1209       {
1210         "title": "Example usage:",
1211         "content": "curl https://{domain}/api/chat/interactions/{id}/attachment_download -v -u {name}:{password} -X GET",
1212         "type": "json"
1213       }
1214     ],
1215     "name": "show",
1216     "group": "Attachments",
1217     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1218     "version": "0.0.0",
1219     "filename": "server/api/chatInteraction/index.js",
1220     "groupTitle": "Attachments"
1221   },
1222   {
1223     "type": "put",
1224     "url": "/api/attachments/{id}",
1225     "title": "Update an existing Attachment",
1226     "examples": [
1227       {
1228         "title": "Example usage:",
1229         "content": "curl https://{domain}/api/attachments/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
1230         "type": "json"
1231       }
1232     ],
1233     "name": "updateAttachments",
1234     "group": "Attachments",
1235     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1236     "version": "0.0.0",
1237     "filename": "server/api/attachment/index.js",
1238     "groupTitle": "Attachments"
1239   },
1240   {
1241     "type": "post",
1242     "url": "/api/auth/local/forgot",
1243     "title": "Creates a new password reset token",
1244     "examples": [
1245       {
1246         "title": "Example usage:",
1247         "content": "curl https://{domain}/api/auth/local/forgot -d '{\"email\": \"john.doe@xcally.com\"}' \\\n -H \"Content-Type: application/json\" -X POST",
1248         "type": "json"
1249       }
1250     ],
1251     "name": "Local_Forgot_Password",
1252     "group": "Authentication",
1253     "parameter": {
1254       "fields": {
1255         "Body": [
1256           {
1257             "group": "Body",
1258             "type": "String",
1259             "optional": false,
1260             "field": "email",
1261             "description": ""
1262           }
1263         ]
1264       }
1265     },
1266     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1267     "version": "0.0.0",
1268     "filename": "server/api/authLocal/index.js",
1269     "groupTitle": "Authentication"
1270   },
1271   {
1272     "type": "post",
1273     "url": "/api/auth/local/reset/:token",
1274     "title": "Reset user password",
1275     "examples": [
1276       {
1277         "title": "Example usage:",
1278         "content": "curl https://{domain}/api/auth/local/reset/94b422c1fkdjhg766a198da6997yu6gcc963641d -d '{\"password\": \"My_newP@ssw0rd\"}' \\\n -H \"Content-Type: application/json\" -X POST",
1279         "type": "json"
1280       }
1281     ],
1282     "name": "Local_Reset_Password",
1283     "group": "Authentication",
1284     "parameter": {
1285       "fields": {
1286         "Body": [
1287           {
1288             "group": "Body",
1289             "type": "String",
1290             "optional": false,
1291             "field": "password",
1292             "description": ""
1293           }
1294         ]
1295       }
1296     },
1297     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1298     "version": "0.0.0",
1299     "filename": "server/api/authLocal/index.js",
1300     "groupTitle": "Authentication"
1301   },
1302   {
1303     "type": "post",
1304     "url": "/api/auth/local",
1305     "title": "Creates a new User token",
1306     "examples": [
1307       {
1308         "title": "Example usage:",
1309         "content": "curl https://{domain}/api/auth/local -d '{\"name\": \"john.doe\", \"password\": \"password\"}' \\\n -H \"Content-Type: application/json\" -X POST",
1310         "type": "json"
1311       }
1312     ],
1313     "name": "Local_login",
1314     "group": "Authentication",
1315     "parameter": {
1316       "fields": {
1317         "Body": [
1318           {
1319             "group": "Body",
1320             "type": "String",
1321             "optional": false,
1322             "field": "name",
1323             "description": ""
1324           },
1325           {
1326             "group": "Body",
1327             "type": "String",
1328             "optional": false,
1329             "field": "password",
1330             "description": ""
1331           }
1332         ]
1333       }
1334     },
1335     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1336     "version": "0.0.0",
1337     "filename": "server/api/authLocal/index.js",
1338     "groupTitle": "Authentication"
1339   },
1340   {
1341     "type": "post",
1342     "url": "/api/auth/google",
1343     "title": "Creates a new User token",
1344     "examples": [
1345       {
1346         "title": "Example usage:",
1347         "content": "curl https://{domain}/api/auth/google -d '{\"name\": \"john.doe\", \"password\": \"password\"}' \\\n -H \"Content-Type: application/json\" -X POST",
1348         "type": "json"
1349       }
1350     ],
1351     "name": "Local_login",
1352     "group": "Authentication",
1353     "parameter": {
1354       "fields": {
1355         "Body": [
1356           {
1357             "group": "Body",
1358             "type": "String",
1359             "optional": false,
1360             "field": "name",
1361             "description": ""
1362           },
1363           {
1364             "group": "Body",
1365             "type": "String",
1366             "optional": false,
1367             "field": "password",
1368             "description": ""
1369           }
1370         ]
1371       }
1372     },
1373     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1374     "version": "0.0.0",
1375     "filename": "server/api/authGoogle/index.js",
1376     "groupTitle": "Authentication"
1377   },
1378   {
1379     "type": "post",
1380     "url": "/api/automations",
1381     "title": "Creates a new Automation",
1382     "examples": [
1383       {
1384         "title": "Example usage:",
1385         "content": "curl https://{domain}/api/automations -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
1386         "type": "json"
1387       }
1388     ],
1389     "name": "CreateAutomations",
1390     "group": "Automations",
1391     "parameter": {
1392       "fields": {
1393         "Body": [
1394           {
1395             "group": "Body",
1396             "type": "String",
1397             "optional": false,
1398             "field": "name",
1399             "description": ""
1400           },
1401           {
1402             "group": "Body",
1403             "type": "String",
1404             "optional": true,
1405             "field": "channel",
1406             "description": ""
1407           },
1408           {
1409             "group": "Body",
1410             "type": "String",
1411             "optional": true,
1412             "field": "description",
1413             "description": ""
1414           },
1415           {
1416             "group": "Body",
1417             "type": "Boolean",
1418             "optional": true,
1419             "field": "status",
1420             "description": ""
1421           },
1422           {
1423             "group": "Body",
1424             "type": "Integer",
1425             "optional": true,
1426             "field": "timeout",
1427             "description": ""
1428           }
1429         ]
1430       }
1431     },
1432     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1433     "version": "0.0.0",
1434     "filename": "server/api/automation/index.js",
1435     "groupTitle": "Automations"
1436   },
1437   {
1438     "type": "delete",
1439     "url": "/api/automations/{id}",
1440     "title": "Deletes a Automation",
1441     "examples": [
1442       {
1443         "title": "Example usage:",
1444         "content": "curl https://{domain}/api/automations/{id} -v -u {name}:{password} -X DELETE",
1445         "type": "json"
1446       }
1447     ],
1448     "name": "DeleteAutomations",
1449     "group": "Automations",
1450     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1451     "version": "0.0.0",
1452     "filename": "server/api/automation/index.js",
1453     "groupTitle": "Automations"
1454   },
1455   {
1456     "type": "get",
1457     "url": "/api/automations",
1458     "title": "Gets a list of Automations",
1459     "examples": [
1460       {
1461         "title": "Example usage:",
1462         "content": "curl https://{domain}/api/automations -v -u {name}:{password}",
1463         "type": "json"
1464       }
1465     ],
1466     "name": "GetAutomations",
1467     "group": "Automations",
1468     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
1469     "version": "0.0.0",
1470     "filename": "server/api/automation/index.js",
1471     "groupTitle": "Automations"
1472   },
1473   {
1474     "type": "get",
1475     "url": "/api/automations/{id}",
1476     "title": "Gets a single Automation",
1477     "examples": [
1478       {
1479         "title": "Example usage:",
1480         "content": "curl https://{domain}/api/automations/{id} -v -u {name}:{password}",
1481         "type": "json"
1482       }
1483     ],
1484     "name": "ShowAutomations",
1485     "group": "Automations",
1486     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1487     "version": "0.0.0",
1488     "filename": "server/api/automation/index.js",
1489     "groupTitle": "Automations"
1490   },
1491   {
1492     "type": "post",
1493     "url": "/api/automations/{id}/actions",
1494     "title": "Creates new actions",
1495     "examples": [
1496       {
1497         "title": "Example usage:",
1498         "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",
1499         "type": "json"
1500       }
1501     ],
1502     "name": "addActions",
1503     "group": "Automations",
1504     "parameter": {
1505       "fields": {
1506         "Body": [
1507           {
1508             "group": "Body",
1509             "type": "Virtual",
1510             "optional": true,
1511             "field": "name",
1512             "description": ""
1513           },
1514           {
1515             "group": "Body",
1516             "type": "String",
1517             "optional": false,
1518             "field": "action",
1519             "description": "<p>Allowed values: contactManager, integration, motionbar, jscripty, urlForward, browser, bot, script</p>"
1520           },
1521           {
1522             "group": "Body",
1523             "type": "String",
1524             "optional": true,
1525             "field": "data1",
1526             "description": "<p>contactManager[ListId], integration[intName(zendesk)], motionbar[Popup(0),URL(1),WinApp(2)], urlForward[GET,POST], browser[TemplateId(0),URL(1)]</p>"
1527           },
1528           {
1529             "group": "Body",
1530             "type": "String",
1531             "optional": true,
1532             "field": "data2",
1533             "description": "<p>integration[AccountId], motionbar[TemplateId,URL,WinAppPath], urlForward[URL]</p>"
1534           },
1535           {
1536             "group": "Body",
1537             "type": "String",
1538             "optional": true,
1539             "field": "data3",
1540             "description": "<p>motionbar[NULL,NULL,WinAppArguments]</p>"
1541           },
1542           {
1543             "group": "Body",
1544             "type": "String",
1545             "optional": true,
1546             "field": "data4",
1547             "description": ""
1548           },
1549           {
1550             "group": "Body",
1551             "type": "String",
1552             "optional": true,
1553             "field": "data5",
1554             "description": ""
1555           },
1556           {
1557             "group": "Body",
1558             "type": "String",
1559             "optional": true,
1560             "field": "data6",
1561             "description": ""
1562           },
1563           {
1564             "group": "Body",
1565             "type": "Text",
1566             "optional": true,
1567             "field": "data7",
1568             "description": ""
1569           }
1570         ]
1571       }
1572     },
1573     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1574     "version": "0.0.0",
1575     "filename": "server/api/automation/index.js",
1576     "groupTitle": "Automations"
1577   },
1578   {
1579     "type": "post",
1580     "url": "/api/automations/{id}/conditions",
1581     "title": "Creates new conditions",
1582     "examples": [
1583       {
1584         "title": "Example usage:",
1585         "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",
1586         "type": "json"
1587       }
1588     ],
1589     "name": "addConditions",
1590     "group": "Automations",
1591     "parameter": {
1592       "fields": {
1593         "Body": [
1594           {
1595             "group": "Body",
1596             "type": "Virtual",
1597             "optional": true,
1598             "field": "name",
1599             "description": ""
1600           },
1601           {
1602             "group": "Body",
1603             "type": "String",
1604             "optional": false,
1605             "field": "field",
1606             "description": ""
1607           },
1608           {
1609             "group": "Body",
1610             "type": "String",
1611             "optional": false,
1612             "field": "operator",
1613             "description": ""
1614           },
1615           {
1616             "group": "Body",
1617             "type": "String",
1618             "optional": false,
1619             "field": "value",
1620             "description": ""
1621           }
1622         ]
1623       }
1624     },
1625     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1626     "version": "0.0.0",
1627     "filename": "server/api/automation/index.js",
1628     "groupTitle": "Automations"
1629   },
1630   {
1631     "type": "get",
1632     "url": "/api/automations/{id}/actions",
1633     "title": "Gets Automation Actions",
1634     "examples": [
1635       {
1636         "title": "Example usage:",
1637         "content": "curl https://{domain}/api/automations/{id}/actions -v -u {name}:{password} -X GET",
1638         "type": "json"
1639       }
1640     ],
1641     "name": "getActions",
1642     "group": "Automations",
1643     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1644     "version": "0.0.0",
1645     "filename": "server/api/automation/index.js",
1646     "groupTitle": "Automations"
1647   },
1648   {
1649     "type": "get",
1650     "url": "/api/automations/{id}/conditions",
1651     "title": "Gets Automation Conditions",
1652     "examples": [
1653       {
1654         "title": "Example usage:",
1655         "content": "curl https://{domain}/api/automations/{id}/conditions -v -u {name}:{password} -X GET",
1656         "type": "json"
1657       }
1658     ],
1659     "name": "getConditions",
1660     "group": "Automations",
1661     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1662     "version": "0.0.0",
1663     "filename": "server/api/automation/index.js",
1664     "groupTitle": "Automations"
1665   },
1666   {
1667     "type": "put",
1668     "url": "/api/automations/{id}",
1669     "title": "Update an existing Automation",
1670     "examples": [
1671       {
1672         "title": "Example usage:",
1673         "content": "curl https://{domain}/api/automations/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
1674         "type": "json"
1675       }
1676     ],
1677     "name": "updateAutomations",
1678     "group": "Automations",
1679     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1680     "version": "0.0.0",
1681     "filename": "server/api/automation/index.js",
1682     "groupTitle": "Automations"
1683   },
1684   {
1685     "type": "post",
1686     "url": "/api/canned_answers",
1687     "title": "Create a new canned answer",
1688     "examples": [
1689       {
1690         "title": "Example usage:",
1691         "content": "curl https://{domain}/api/canned_answers -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
1692         "type": "json"
1693       }
1694     ],
1695     "name": "Create",
1696     "group": "Canned_Answers",
1697     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1698     "version": "0.0.0",
1699     "filename": "server/api/cannedAnswer/index.js",
1700     "groupTitle": "Canned_Answers"
1701   },
1702   {
1703     "type": "delete",
1704     "url": "/api/canned_answers/{id}",
1705     "title": "Deletes a Canned Answer",
1706     "examples": [
1707       {
1708         "title": "Example usage:",
1709         "content": "curl https://{domain}/api/canned_answers/{id} -v -u {name}:{password} -X DELETE",
1710         "type": "json"
1711       }
1712     ],
1713     "name": "DeleteCanned_Answers",
1714     "group": "Canned_Answers",
1715     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1716     "version": "0.0.0",
1717     "filename": "server/api/cannedAnswer/index.js",
1718     "groupTitle": "Canned_Answers"
1719   },
1720   {
1721     "type": "get",
1722     "url": "/api/canned_answers",
1723     "title": "Gets a list of Canned Answers",
1724     "examples": [
1725       {
1726         "title": "Example usage:",
1727         "content": "curl https://{domain}/api/canned_answers -v -u {name}:{password}",
1728         "type": "json"
1729       }
1730     ],
1731     "name": "GetCanned_Answers",
1732     "group": "Canned_Answers",
1733     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
1734     "version": "0.0.0",
1735     "filename": "server/api/cannedAnswer/index.js",
1736     "groupTitle": "Canned_Answers"
1737   },
1738   {
1739     "type": "get",
1740     "url": "/api/canned_answers/{id}",
1741     "title": "Gets a single Canned Answer",
1742     "examples": [
1743       {
1744         "title": "Example usage:",
1745         "content": "curl https://{domain}/api/canned_answers/{id} -v -u {name}:{password}",
1746         "type": "json"
1747       }
1748     ],
1749     "name": "ShowCanned_Answers",
1750     "group": "Canned_Answers",
1751     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1752     "version": "0.0.0",
1753     "filename": "server/api/cannedAnswer/index.js",
1754     "groupTitle": "Canned_Answers"
1755   },
1756   {
1757     "type": "put",
1758     "url": "/api/canned_answers/{id}",
1759     "title": "Update an existing Canned Answer",
1760     "examples": [
1761       {
1762         "title": "Example usage:",
1763         "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",
1764         "type": "json"
1765       }
1766     ],
1767     "name": "updateCanned_Answers",
1768     "group": "Canned_Answers",
1769     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1770     "version": "0.0.0",
1771     "filename": "server/api/cannedAnswer/index.js",
1772     "groupTitle": "Canned_Answers"
1773   },
1774   {
1775     "type": "get",
1776     "url": "/chat/internal/users",
1777     "title": "Gets Users Last Messages",
1778     "examples": [
1779       {
1780         "title": "Example usage:",
1781         "content": "curl https://{domain}/chat/internal/users -v -u {name}:{password}  -X GET",
1782         "type": "json"
1783       }
1784     ],
1785     "name": "getLastUsersMessages",
1786     "group": "ChatInternalMessage",
1787     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1788     "version": "0.0.0",
1789     "filename": "server/api/chatInternalMessage/index.js",
1790     "groupTitle": "ChatInternalMessage"
1791   },
1792   {
1793     "type": "delete",
1794     "url": "/api/chat/applications/{id}",
1795     "title": "Deletes a Application",
1796     "examples": [
1797       {
1798         "title": "Example usage:",
1799         "content": "curl https://{domain}/api/chat/applications/{id} -v -u {name}:{password} -X DELETE",
1800         "type": "json"
1801       }
1802     ],
1803     "name": "DeleteApplications",
1804     "group": "Chat_Applications",
1805     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1806     "version": "0.0.0",
1807     "filename": "server/api/chatApplication/index.js",
1808     "groupTitle": "Chat_Applications"
1809   },
1810   {
1811     "type": "get",
1812     "url": "/api/chat/applications/{id}",
1813     "title": "Gets a single Application",
1814     "examples": [
1815       {
1816         "title": "Example usage:",
1817         "content": "curl https://{domain}/api/chat/applications/{id} -v -u {name}:{password}",
1818         "type": "json"
1819       }
1820     ],
1821     "name": "ShowApplications",
1822     "group": "Chat_Applications",
1823     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1824     "version": "0.0.0",
1825     "filename": "server/api/chatApplication/index.js",
1826     "groupTitle": "Chat_Applications"
1827   },
1828   {
1829     "type": "put",
1830     "url": "/api/chat/applications/{id}",
1831     "title": "Update an existing Application",
1832     "examples": [
1833       {
1834         "title": "Example usage:",
1835         "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",
1836         "type": "json"
1837       }
1838     ],
1839     "name": "updateApplications",
1840     "group": "Chat_Applications",
1841     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1842     "version": "0.0.0",
1843     "filename": "server/api/chatApplication/index.js",
1844     "groupTitle": "Chat_Applications"
1845   },
1846   {
1847     "type": "post",
1848     "url": "/api/chat/groups",
1849     "title": "Creates a new Group",
1850     "examples": [
1851       {
1852         "title": "Example usage:",
1853         "content": "curl https://{domain}/api/chat/groups -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
1854         "type": "json"
1855       }
1856     ],
1857     "name": "CreateGroups",
1858     "group": "Chat_Groups",
1859     "parameter": {
1860       "fields": {
1861         "Body": [
1862           {
1863             "group": "Body",
1864             "type": "String",
1865             "optional": false,
1866             "field": "name",
1867             "description": ""
1868           },
1869           {
1870             "group": "Body",
1871             "type": "String",
1872             "optional": true,
1873             "field": "description",
1874             "description": ""
1875           },
1876           {
1877             "group": "Body",
1878             "type": "Boolean",
1879             "optional": true,
1880             "field": "write",
1881             "description": ""
1882           }
1883         ]
1884       }
1885     },
1886     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1887     "version": "0.0.0",
1888     "filename": "server/api/chatGroup/index.js",
1889     "groupTitle": "Chat_Groups"
1890   },
1891   {
1892     "type": "delete",
1893     "url": "/api/chat/groups/{id}",
1894     "title": "Deletes a Group",
1895     "examples": [
1896       {
1897         "title": "Example usage:",
1898         "content": "curl https://{domain}/api/chat/groups/{id} -v -u {name}:{password} -X DELETE",
1899         "type": "json"
1900       }
1901     ],
1902     "name": "DeleteGroups",
1903     "group": "Chat_Groups",
1904     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1905     "version": "0.0.0",
1906     "filename": "server/api/chatGroup/index.js",
1907     "groupTitle": "Chat_Groups"
1908   },
1909   {
1910     "type": "get",
1911     "url": "/api/chat/groups/describe",
1912     "title": "Gets table info about Groups",
1913     "examples": [
1914       {
1915         "title": "Example usage:",
1916         "content": "curl https://{domain}/api/chat/groups/describe -v -u {name}:{password}",
1917         "type": "json"
1918       }
1919     ],
1920     "name": "DescribeGroups",
1921     "group": "Chat_Groups",
1922     "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>",
1923     "version": "0.0.0",
1924     "filename": "server/api/chatGroup/index.js",
1925     "groupTitle": "Chat_Groups"
1926   },
1927   {
1928     "type": "get",
1929     "url": "/api/chat/groups",
1930     "title": "Gets a list of Groups",
1931     "examples": [
1932       {
1933         "title": "Example usage:",
1934         "content": "curl https://{domain}/api/chat/groups -v -u {name}:{password}",
1935         "type": "json"
1936       }
1937     ],
1938     "name": "GetGroups",
1939     "group": "Chat_Groups",
1940     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
1941     "version": "0.0.0",
1942     "filename": "server/api/chatGroup/index.js",
1943     "groupTitle": "Chat_Groups"
1944   },
1945   {
1946     "type": "delete",
1947     "url": "/api/chat/groups/{id}/members",
1948     "title": "Removes members from a group",
1949     "examples": [
1950       {
1951         "title": "Example usage:",
1952         "content": "curl https://{domain}/api/chat/groups/{id}/members?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
1953         "type": "json"
1954       }
1955     ],
1956     "name": "RemoveMembers",
1957     "group": "Chat_Groups",
1958     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1959     "version": "0.0.0",
1960     "filename": "server/api/chatGroup/index.js",
1961     "groupTitle": "Chat_Groups"
1962   },
1963   {
1964     "type": "get",
1965     "url": "/api/chat/groups/{id}",
1966     "title": "Gets a single Group",
1967     "examples": [
1968       {
1969         "title": "Example usage:",
1970         "content": "curl https://{domain}/api/chat/groups/{id} -v -u {name}:{password}",
1971         "type": "json"
1972       }
1973     ],
1974     "name": "ShowGroups",
1975     "group": "Chat_Groups",
1976     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1977     "version": "0.0.0",
1978     "filename": "server/api/chatGroup/index.js",
1979     "groupTitle": "Chat_Groups"
1980   },
1981   {
1982     "type": "post",
1983     "url": "/api/chat/groups/{id}/members",
1984     "title": "Add members to chat group",
1985     "examples": [
1986       {
1987         "title": "Example usage:",
1988         "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",
1989         "type": "json"
1990       }
1991     ],
1992     "name": "addMembers",
1993     "group": "Chat_Groups",
1994     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
1995     "version": "0.0.0",
1996     "filename": "server/api/chatGroup/index.js",
1997     "groupTitle": "Chat_Groups"
1998   },
1999   {
2000     "type": "post",
2001     "url": "/api/chat/groups/{id}/messages",
2002     "title": "Creates a new group message",
2003     "examples": [
2004       {
2005         "title": "Example usage:",
2006         "content": "curl https://{domain}/api/chat/groups/{id}/messages -d '{\"body\": \"Hi operator!\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
2007         "type": "json"
2008       }
2009     ],
2010     "name": "addMessage",
2011     "group": "Chat_Groups",
2012     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2013     "version": "0.0.0",
2014     "filename": "server/api/chatGroup/index.js",
2015     "groupTitle": "Chat_Groups"
2016   },
2017   {
2018     "type": "get",
2019     "url": "/api/chat/groups/{id}/members",
2020     "title": "Gets Members",
2021     "examples": [
2022       {
2023         "title": "Example usage:",
2024         "content": "curl https://{domain}/api/chat/groups/{id}/members -v -u {name}:{password} -X GET",
2025         "type": "json"
2026       }
2027     ],
2028     "name": "getMembers",
2029     "group": "Chat_Groups",
2030     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2031     "version": "0.0.0",
2032     "filename": "server/api/chatGroup/index.js",
2033     "groupTitle": "Chat_Groups"
2034   },
2035   {
2036     "type": "get",
2037     "url": "/api/chat/groups/{id}/messages",
2038     "title": "Gets Messages",
2039     "examples": [
2040       {
2041         "title": "Example usage:",
2042         "content": "curl https://{domain}/api/chat/groups/{id}/messages -v -u {name}:{password} -X GET",
2043         "type": "json"
2044       }
2045     ],
2046     "name": "getMessages",
2047     "group": "Chat_Groups",
2048     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2049     "version": "0.0.0",
2050     "filename": "server/api/chatGroup/index.js",
2051     "groupTitle": "Chat_Groups"
2052   },
2053   {
2054     "type": "get",
2055     "url": "/api/chat/groups/{id}/unread",
2056     "title": "Get unread chat group messages",
2057     "examples": [
2058       {
2059         "title": "Example usage:",
2060         "content": "curl https://{domain}/api/chat/groups/{id}/unread -H 'Content-Type: application/json' -v -u {name}:{password} -X GET",
2061         "type": "json"
2062       }
2063     ],
2064     "name": "getUread",
2065     "group": "Chat_Groups",
2066     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2067     "version": "0.0.0",
2068     "filename": "server/api/chatGroup/index.js",
2069     "groupTitle": "Chat_Groups"
2070   },
2071   {
2072     "type": "put",
2073     "url": "/api/chat/groups/{id}",
2074     "title": "Update an existing Group",
2075     "examples": [
2076       {
2077         "title": "Example usage:",
2078         "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",
2079         "type": "json"
2080       }
2081     ],
2082     "name": "updateGroups",
2083     "group": "Chat_Groups",
2084     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2085     "version": "0.0.0",
2086     "filename": "server/api/chatGroup/index.js",
2087     "groupTitle": "Chat_Groups"
2088   },
2089   {
2090     "type": "post",
2091     "url": "/api/chat/interactions/{id}/tags",
2092     "title": "Add tags to the interaction",
2093     "examples": [
2094       {
2095         "title": "Example usage:",
2096         "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",
2097         "type": "json"
2098       }
2099     ],
2100     "name": "AddTags",
2101     "group": "Chat_Interactions",
2102     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2103     "version": "0.0.0",
2104     "filename": "server/api/chatInteraction/index.js",
2105     "groupTitle": "Chat_Interactions"
2106   },
2107   {
2108     "type": "post",
2109     "url": "/api/chat/interactions",
2110     "title": "Creates a new Interaction",
2111     "examples": [
2112       {
2113         "title": "Example usage:",
2114         "content": "curl https://{domain}/api/chat/interactions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
2115         "type": "json"
2116       }
2117     ],
2118     "name": "CreateInteractions",
2119     "group": "Chat_Interactions",
2120     "parameter": {
2121       "fields": {
2122         "Body": [
2123           {
2124             "group": "Body",
2125             "type": "Boolean",
2126             "optional": true,
2127             "field": "closed",
2128             "description": ""
2129           },
2130           {
2131             "group": "Body",
2132             "type": "Integer",
2133             "optional": true,
2134             "field": "ratingValue",
2135             "description": ""
2136           },
2137           {
2138             "group": "Body",
2139             "type": "String",
2140             "allowedValues": [
2141               "\"star\"",
2142               "\"thumb\""
2143             ],
2144             "optional": true,
2145             "field": "ratingType",
2146             "description": ""
2147           },
2148           {
2149             "group": "Body",
2150             "type": "Text",
2151             "optional": true,
2152             "field": "ratingMessage",
2153             "description": ""
2154           },
2155           {
2156             "group": "Body",
2157             "type": "Text",
2158             "optional": true,
2159             "field": "pathTranscript",
2160             "description": ""
2161           },
2162           {
2163             "group": "Body",
2164             "type": "String",
2165             "optional": true,
2166             "field": "mailTranscript",
2167             "description": ""
2168           },
2169           {
2170             "group": "Body",
2171             "type": "String",
2172             "optional": true,
2173             "field": "closedAt",
2174             "description": ""
2175           },
2176           {
2177             "group": "Body",
2178             "type": "String",
2179             "optional": true,
2180             "field": "disposition",
2181             "description": ""
2182           },
2183           {
2184             "group": "Body",
2185             "type": "String",
2186             "optional": true,
2187             "field": "secondDisposition",
2188             "description": ""
2189           },
2190           {
2191             "group": "Body",
2192             "type": "String",
2193             "optional": true,
2194             "field": "thirdDisposition",
2195             "description": ""
2196           },
2197           {
2198             "group": "Body",
2199             "type": "String",
2200             "optional": true,
2201             "field": "note",
2202             "description": ""
2203           },
2204           {
2205             "group": "Body",
2206             "type": "String",
2207             "optional": true,
2208             "field": "browserName",
2209             "description": ""
2210           },
2211           {
2212             "group": "Body",
2213             "type": "String",
2214             "optional": true,
2215             "field": "browserVersion",
2216             "description": ""
2217           },
2218           {
2219             "group": "Body",
2220             "type": "String",
2221             "optional": true,
2222             "field": "osName",
2223             "description": ""
2224           },
2225           {
2226             "group": "Body",
2227             "type": "String",
2228             "optional": true,
2229             "field": "osVersion",
2230             "description": ""
2231           },
2232           {
2233             "group": "Body",
2234             "type": "String",
2235             "optional": true,
2236             "field": "deviceModel",
2237             "description": ""
2238           },
2239           {
2240             "group": "Body",
2241             "type": "String",
2242             "optional": true,
2243             "field": "deviceVendor",
2244             "description": ""
2245           },
2246           {
2247             "group": "Body",
2248             "type": "String",
2249             "optional": true,
2250             "field": "deviceType",
2251             "description": ""
2252           },
2253           {
2254             "group": "Body",
2255             "type": "Text",
2256             "optional": true,
2257             "field": "referer",
2258             "description": ""
2259           },
2260           {
2261             "group": "Body",
2262             "type": "String",
2263             "optional": true,
2264             "field": "customerIp",
2265             "description": ""
2266           },
2267           {
2268             "group": "Body",
2269             "type": "Text",
2270             "optional": true,
2271             "field": "formData",
2272             "description": ""
2273           },
2274           {
2275             "group": "Body",
2276             "type": "String",
2277             "optional": true,
2278             "field": "read1stAt",
2279             "description": ""
2280           },
2281           {
2282             "group": "Body",
2283             "type": "String",
2284             "optional": true,
2285             "field": "lastMsgAt",
2286             "description": ""
2287           },
2288           {
2289             "group": "Body",
2290             "type": "String",
2291             "allowedValues": [
2292               "\"in\"",
2293               "\"out\""
2294             ],
2295             "optional": false,
2296             "field": "lastMsgDirection",
2297             "description": ""
2298           },
2299           {
2300             "group": "Body",
2301             "type": "String",
2302             "optional": true,
2303             "field": "closeReason",
2304             "description": ""
2305           },
2306           {
2307             "group": "Body",
2308             "type": "String",
2309             "optional": true,
2310             "field": "customerPort",
2311             "description": ""
2312           },
2313           {
2314             "group": "Body",
2315             "type": "Text",
2316             "optional": true,
2317             "field": "vidaooSessionId",
2318             "description": ""
2319           },
2320           {
2321             "group": "Body",
2322             "type": "Boolean",
2323             "optional": true,
2324             "field": "autoreplyExecuted",
2325             "description": ""
2326           }
2327         ]
2328       }
2329     },
2330     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2331     "version": "0.0.0",
2332     "filename": "server/api/chatInteraction/index.js",
2333     "groupTitle": "Chat_Interactions"
2334   },
2335   {
2336     "type": "delete",
2337     "url": "/api/chat/interactions/{id}",
2338     "title": "Deletes a Interaction",
2339     "examples": [
2340       {
2341         "title": "Example usage:",
2342         "content": "curl https://{domain}/api/chat/interactions/{id} -v -u {name}:{password} -X DELETE",
2343         "type": "json"
2344       }
2345     ],
2346     "name": "DeleteInteractions",
2347     "group": "Chat_Interactions",
2348     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2349     "version": "0.0.0",
2350     "filename": "server/api/chatInteraction/index.js",
2351     "groupTitle": "Chat_Interactions"
2352   },
2353   {
2354     "type": "get",
2355     "url": "/api/chat/interactions/describe",
2356     "title": "Gets table info about Interactions",
2357     "examples": [
2358       {
2359         "title": "Example usage:",
2360         "content": "curl https://{domain}/api/chat/interactions/describe -v -u {name}:{password}",
2361         "type": "json"
2362       }
2363     ],
2364     "name": "DescribeInteractions",
2365     "group": "Chat_Interactions",
2366     "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>",
2367     "version": "0.0.0",
2368     "filename": "server/api/chatInteraction/index.js",
2369     "groupTitle": "Chat_Interactions"
2370   },
2371   {
2372     "type": "get",
2373     "url": "/api/chat/interactions",
2374     "title": "Gets a list of Interactions",
2375     "examples": [
2376       {
2377         "title": "Example usage:",
2378         "content": "curl https://{domain}/api/chat/interactions -v -u {name}:{password}",
2379         "type": "json"
2380       }
2381     ],
2382     "name": "GetInteractions",
2383     "group": "Chat_Interactions",
2384     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
2385     "version": "0.0.0",
2386     "filename": "server/api/chatInteraction/index.js",
2387     "groupTitle": "Chat_Interactions"
2388   },
2389   {
2390     "type": "delete",
2391     "url": "/api/chat/interactions/{id}/tags",
2392     "title": "Removes tags from interaction",
2393     "examples": [
2394       {
2395         "title": "Example usage:",
2396         "content": "curl https://{domain}/api/chat/interactions/{id}/tags?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
2397         "type": "json"
2398       }
2399     ],
2400     "name": "RemoveTags",
2401     "group": "Chat_Interactions",
2402     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2403     "version": "0.0.0",
2404     "filename": "server/api/chatInteraction/index.js",
2405     "groupTitle": "Chat_Interactions"
2406   },
2407   {
2408     "type": "get",
2409     "url": "/api/chat/interactions/{id}",
2410     "title": "Gets a single Interaction",
2411     "examples": [
2412       {
2413         "title": "Example usage:",
2414         "content": "curl https://{domain}/api/chat/interactions/{id} -v -u {name}:{password}",
2415         "type": "json"
2416       }
2417     ],
2418     "name": "ShowInteractions",
2419     "group": "Chat_Interactions",
2420     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2421     "version": "0.0.0",
2422     "filename": "server/api/chatInteraction/index.js",
2423     "groupTitle": "Chat_Interactions"
2424   },
2425   {
2426     "type": "put",
2427     "url": "/api/chat/interactions/{id}/abandon",
2428     "title": "Abandon interaction",
2429     "examples": [
2430       {
2431         "title": "Example usage:",
2432         "content": "curl https://{domain}/api/chat/interactions/{id}/abandon -d '{\"channel\": \"chat\", \"...\": \"...\"}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
2433         "type": "json"
2434       }
2435     ],
2436     "name": "abandon",
2437     "group": "Chat_Interactions",
2438     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <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>",
2439     "version": "0.0.0",
2440     "filename": "server/api/chatInteraction/index.js",
2441     "groupTitle": "Chat_Interactions"
2442   },
2443   {
2444     "type": "post",
2445     "url": "/api/chat/interactions/{id}/messages",
2446     "title": "Creates new messages",
2447     "examples": [
2448       {
2449         "title": "Example usage:",
2450         "content": "curl https://{domain}/api/chat/interactions/{id}/messages -d '[{\"to\": \"+3901119886500\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
2451         "type": "json"
2452       }
2453     ],
2454     "name": "addMessage",
2455     "group": "Chat_Interactions",
2456     "parameter": {
2457       "fields": {
2458         "Body": [
2459           {
2460             "group": "Body",
2461             "type": "Text",
2462             "optional": false,
2463             "field": "body",
2464             "description": ""
2465           },
2466           {
2467             "group": "Body",
2468             "type": "Boolean",
2469             "optional": true,
2470             "field": "read",
2471             "description": ""
2472           },
2473           {
2474             "group": "Body",
2475             "type": "Boolean",
2476             "optional": true,
2477             "field": "secret",
2478             "description": ""
2479           },
2480           {
2481             "group": "Body",
2482             "type": "String",
2483             "allowedValues": [
2484               "\"in\"",
2485               "\"out\""
2486             ],
2487             "optional": false,
2488             "field": "direction",
2489             "description": ""
2490           },
2491           {
2492             "group": "Body",
2493             "type": "String",
2494             "optional": true,
2495             "field": "readAt",
2496             "description": ""
2497           },
2498           {
2499             "group": "Body",
2500             "type": "String",
2501             "optional": true,
2502             "field": "providerName",
2503             "description": ""
2504           },
2505           {
2506             "group": "Body",
2507             "type": "Text",
2508             "optional": true,
2509             "field": "providerResponse",
2510             "description": ""
2511           }
2512         ]
2513       }
2514     },
2515     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2516     "version": "0.0.0",
2517     "filename": "server/api/chatInteraction/index.js",
2518     "groupTitle": "Chat_Interactions"
2519   },
2520   {
2521     "type": "put",
2522     "url": "/api/chat/interactions/{id}/close",
2523     "title": "Close Interaction",
2524     "examples": [
2525       {
2526         "title": "Example usage:",
2527         "content": "curl https://{domain}/api/chat/interactions/{id}/close -d '[{\"to\": \"+3901119886500\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
2528         "type": "json"
2529       }
2530     ],
2531     "name": "addMessage",
2532     "group": "Chat_Interactions",
2533     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2534     "version": "0.0.0",
2535     "filename": "server/api/chatInteraction/index.js",
2536     "groupTitle": "Chat_Interactions"
2537   },
2538   {
2539     "type": "post",
2540     "url": "/api/chat/interactions/{id}/attachment_upload",
2541     "title": "Add attachment",
2542     "examples": [
2543       {
2544         "title": "Example usage:",
2545         "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",
2546         "type": "json"
2547       }
2548     ],
2549     "name": "attachmentUpload",
2550     "group": "Chat_Interactions",
2551     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2552     "version": "0.0.0",
2553     "filename": "server/api/chatInteraction/index.js",
2554     "groupTitle": "Chat_Interactions"
2555   },
2556   {
2557     "type": "post",
2558     "url": "/api/chat/interactions/{id}/vidaoo",
2559     "title": "Create Vidaoo Session",
2560     "examples": [
2561       {
2562         "title": "Example usage:",
2563         "content": "curl https://{domain}/api/chat/interactions/{id}/vidaoo  -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
2564         "type": "json"
2565       }
2566     ],
2567     "name": "createVidaooSession",
2568     "group": "Chat_Interactions",
2569     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2570     "version": "0.0.0",
2571     "filename": "server/api/chatInteraction/index.js",
2572     "groupTitle": "Chat_Interactions"
2573   },
2574   {
2575     "type": "put",
2576     "url": "/api/chat/interactions/{id}/custom_update",
2577     "title": "Update interaction",
2578     "examples": [
2579       {
2580         "title": "Example usage:",
2581         "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",
2582         "type": "json"
2583       }
2584     ],
2585     "name": "customUpdate",
2586     "group": "Chat_Interactions",
2587     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <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>",
2588     "version": "0.0.0",
2589     "filename": "server/api/chatInteraction/index.js",
2590     "groupTitle": "Chat_Interactions"
2591   },
2592   {
2593     "type": "get",
2594     "url": "/api/chat/interactions/{id}/download",
2595     "title": "Gets interaction",
2596     "examples": [
2597       {
2598         "title": "Example usage:",
2599         "content": "curl https://{domain}/api/chat/interactions/{id}/download -v -u {name}:{password} -X GET",
2600         "type": "json"
2601       }
2602     ],
2603     "name": "download",
2604     "group": "Chat_Interactions",
2605     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2606     "version": "0.0.0",
2607     "filename": "server/api/chatInteraction/index.js",
2608     "groupTitle": "Chat_Interactions"
2609   },
2610   {
2611     "type": "get",
2612     "url": "/api/chat/interactions/{id}/messages",
2613     "title": "Gets interaction messages",
2614     "examples": [
2615       {
2616         "title": "Example usage:",
2617         "content": "curl https://{domain}/api/chat/interactions/{id}/messages -v -u {name}:{password} -X GET",
2618         "type": "json"
2619       }
2620     ],
2621     "name": "getMessages",
2622     "group": "Chat_Interactions",
2623     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2624     "version": "0.0.0",
2625     "filename": "server/api/chatInteraction/index.js",
2626     "groupTitle": "Chat_Interactions"
2627   },
2628   {
2629     "type": "get",
2630     "url": "/api/chat/interactions/{id}/my_messages",
2631     "title": "Gets interaction messages",
2632     "examples": [
2633       {
2634         "title": "Example usage:",
2635         "content": "curl https://{domain}/api/chat/interactions/{id}/my_messages -v -u {name}:{password} -X GET",
2636         "type": "json"
2637       }
2638     ],
2639     "name": "getMyMessages",
2640     "group": "Chat_Interactions",
2641     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2642     "version": "0.0.0",
2643     "filename": "server/api/chatInteraction/index.js",
2644     "groupTitle": "Chat_Interactions"
2645   },
2646   {
2647     "type": "put",
2648     "url": "/api/chat/interactions/{id}",
2649     "title": "Update an existing Interaction",
2650     "examples": [
2651       {
2652         "title": "Example usage:",
2653         "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",
2654         "type": "json"
2655       }
2656     ],
2657     "name": "updateInteractions",
2658     "group": "Chat_Interactions",
2659     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2660     "version": "0.0.0",
2661     "filename": "server/api/chatInteraction/index.js",
2662     "groupTitle": "Chat_Interactions"
2663   },
2664   {
2665     "type": "post",
2666     "url": "/api/chat/internal/messages",
2667     "title": "Creates a new Message",
2668     "examples": [
2669       {
2670         "title": "Example usage:",
2671         "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",
2672         "type": "json"
2673       }
2674     ],
2675     "name": "CreateMessages",
2676     "group": "Chat_Internal_Messages",
2677     "parameter": {
2678       "fields": {
2679         "Body": [
2680           {
2681             "group": "Body",
2682             "type": "Text",
2683             "optional": false,
2684             "field": "body",
2685             "description": ""
2686           },
2687           {
2688             "group": "Body",
2689             "type": "Boolean",
2690             "optional": true,
2691             "field": "read",
2692             "description": ""
2693           },
2694           {
2695             "group": "Body",
2696             "type": "Integer",
2697             "optional": true,
2698             "field": "ChatInternalMessageId",
2699             "description": ""
2700           }
2701         ]
2702       }
2703     },
2704     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2705     "version": "0.0.0",
2706     "filename": "server/api/chatInternalMessage/index.js",
2707     "groupTitle": "Chat_Internal_Messages"
2708   },
2709   {
2710     "type": "delete",
2711     "url": "/api/chat/internal/messages/{id}",
2712     "title": "Deletes a Message",
2713     "examples": [
2714       {
2715         "title": "Example usage:",
2716         "content": "curl https://{domain}/api/chat/internal/messages/{id} -v -u {name}:{password} -X DELETE",
2717         "type": "json"
2718       }
2719     ],
2720     "name": "DeleteMessages",
2721     "group": "Chat_Internal_Messages",
2722     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2723     "version": "0.0.0",
2724     "filename": "server/api/chatInternalMessage/index.js",
2725     "groupTitle": "Chat_Internal_Messages"
2726   },
2727   {
2728     "type": "get",
2729     "url": "/api/chat/internal/messages/describe",
2730     "title": "Gets table info about Messages",
2731     "examples": [
2732       {
2733         "title": "Example usage:",
2734         "content": "curl https://{domain}/api/chat/internal/messages/describe -v -u {name}:{password}",
2735         "type": "json"
2736       }
2737     ],
2738     "name": "DescribeMessages",
2739     "group": "Chat_Internal_Messages",
2740     "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>",
2741     "version": "0.0.0",
2742     "filename": "server/api/chatInternalMessage/index.js",
2743     "groupTitle": "Chat_Internal_Messages"
2744   },
2745   {
2746     "type": "get",
2747     "url": "/api/chat/internal/messages",
2748     "title": "Gets a list of Messages",
2749     "examples": [
2750       {
2751         "title": "Example usage:",
2752         "content": "curl https://{domain}/api/chat/internal/messages -v -u {name}:{password}",
2753         "type": "json"
2754       }
2755     ],
2756     "name": "GetMessages",
2757     "group": "Chat_Internal_Messages",
2758     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
2759     "version": "0.0.0",
2760     "filename": "server/api/chatInternalMessage/index.js",
2761     "groupTitle": "Chat_Internal_Messages"
2762   },
2763   {
2764     "type": "get",
2765     "url": "/api/chat/internal/messages/{id}",
2766     "title": "Gets a single Message",
2767     "examples": [
2768       {
2769         "title": "Example usage:",
2770         "content": "curl https://{domain}/api/chat/internal/messages/{id} -v -u {name}:{password}",
2771         "type": "json"
2772       }
2773     ],
2774     "name": "ShowMessages",
2775     "group": "Chat_Internal_Messages",
2776     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2777     "version": "0.0.0",
2778     "filename": "server/api/chatInternalMessage/index.js",
2779     "groupTitle": "Chat_Internal_Messages"
2780   },
2781   {
2782     "type": "put",
2783     "url": "/api/chat/internal/messages/{id}",
2784     "title": "Update an existing Message",
2785     "examples": [
2786       {
2787         "title": "Example usage:",
2788         "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",
2789         "type": "json"
2790       }
2791     ],
2792     "name": "updateMessages",
2793     "group": "Chat_Internal_Messages",
2794     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2795     "version": "0.0.0",
2796     "filename": "server/api/chatInternalMessage/index.js",
2797     "groupTitle": "Chat_Internal_Messages"
2798   },
2799   {
2800     "type": "post",
2801     "url": "/api/chat/messages",
2802     "title": "Creates a new Message",
2803     "examples": [
2804       {
2805         "title": "Example usage:",
2806         "content": "curl https://{domain}/api/chat/messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
2807         "type": "json"
2808       }
2809     ],
2810     "name": "CreateMessages",
2811     "group": "Chat_Messages",
2812     "parameter": {
2813       "fields": {
2814         "Body": [
2815           {
2816             "group": "Body",
2817             "type": "Text",
2818             "optional": false,
2819             "field": "body",
2820             "description": ""
2821           },
2822           {
2823             "group": "Body",
2824             "type": "Boolean",
2825             "optional": true,
2826             "field": "read",
2827             "description": ""
2828           },
2829           {
2830             "group": "Body",
2831             "type": "Boolean",
2832             "optional": true,
2833             "field": "secret",
2834             "description": ""
2835           },
2836           {
2837             "group": "Body",
2838             "type": "String",
2839             "allowedValues": [
2840               "\"in\"",
2841               "\"out\""
2842             ],
2843             "optional": false,
2844             "field": "direction",
2845             "description": ""
2846           },
2847           {
2848             "group": "Body",
2849             "type": "String",
2850             "optional": true,
2851             "field": "readAt",
2852             "description": ""
2853           },
2854           {
2855             "group": "Body",
2856             "type": "String",
2857             "optional": true,
2858             "field": "providerName",
2859             "description": ""
2860           },
2861           {
2862             "group": "Body",
2863             "type": "Text",
2864             "optional": true,
2865             "field": "providerResponse",
2866             "description": ""
2867           }
2868         ]
2869       }
2870     },
2871     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2872     "version": "0.0.0",
2873     "filename": "server/api/chatMessage/index.js",
2874     "groupTitle": "Chat_Messages"
2875   },
2876   {
2877     "type": "delete",
2878     "url": "/api/chat/messages/{id}",
2879     "title": "Deletes a Message",
2880     "examples": [
2881       {
2882         "title": "Example usage:",
2883         "content": "curl https://{domain}/api/chat/messages/{id} -v -u {name}:{password} -X DELETE",
2884         "type": "json"
2885       }
2886     ],
2887     "name": "DeleteMessages",
2888     "group": "Chat_Messages",
2889     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2890     "version": "0.0.0",
2891     "filename": "server/api/chatMessage/index.js",
2892     "groupTitle": "Chat_Messages"
2893   },
2894   {
2895     "type": "get",
2896     "url": "/api/chat/messages/describe",
2897     "title": "Gets table info about Messages",
2898     "examples": [
2899       {
2900         "title": "Example usage:",
2901         "content": "curl https://{domain}/api/chat/messages/describe -v -u {name}:{password}",
2902         "type": "json"
2903       }
2904     ],
2905     "name": "DescribeMessages",
2906     "group": "Chat_Messages",
2907     "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>",
2908     "version": "0.0.0",
2909     "filename": "server/api/chatMessage/index.js",
2910     "groupTitle": "Chat_Messages"
2911   },
2912   {
2913     "type": "get",
2914     "url": "/api/chat/messages",
2915     "title": "Gets a list of Messages",
2916     "examples": [
2917       {
2918         "title": "Example usage:",
2919         "content": "curl https://{domain}/api/chat/messages -v -u {name}:{password}",
2920         "type": "json"
2921       }
2922     ],
2923     "name": "GetMessages",
2924     "group": "Chat_Messages",
2925     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
2926     "version": "0.0.0",
2927     "filename": "server/api/chatMessage/index.js",
2928     "groupTitle": "Chat_Messages"
2929   },
2930   {
2931     "type": "get",
2932     "url": "/api/chat/messages/{id}",
2933     "title": "Gets a single Message",
2934     "examples": [
2935       {
2936         "title": "Example usage:",
2937         "content": "curl https://{domain}/api/chat/messages/{id} -v -u {name}:{password}",
2938         "type": "json"
2939       }
2940     ],
2941     "name": "ShowMessages",
2942     "group": "Chat_Messages",
2943     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2944     "version": "0.0.0",
2945     "filename": "server/api/chatMessage/index.js",
2946     "groupTitle": "Chat_Messages"
2947   },
2948   {
2949     "type": "put",
2950     "url": "/api/chat/messages/{id}",
2951     "title": "Update an existing Message",
2952     "examples": [
2953       {
2954         "title": "Example usage:",
2955         "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",
2956         "type": "json"
2957       }
2958     ],
2959     "name": "updateMessages",
2960     "group": "Chat_Messages",
2961     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2962     "version": "0.0.0",
2963     "filename": "server/api/chatMessage/index.js",
2964     "groupTitle": "Chat_Messages"
2965   },
2966   {
2967     "type": "post",
2968     "url": "/api/chat/offline_messages",
2969     "title": "Creates a new OfflineMessage",
2970     "examples": [
2971       {
2972         "title": "Example usage:",
2973         "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",
2974         "type": "json"
2975       }
2976     ],
2977     "name": "CreateOfflineMessages",
2978     "group": "Chat_Offline_Messages",
2979     "parameter": {
2980       "fields": {
2981         "Body": [
2982           {
2983             "group": "Body",
2984             "type": "Text",
2985             "optional": false,
2986             "field": "body",
2987             "description": ""
2988           }
2989         ]
2990       }
2991     },
2992     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2993     "version": "0.0.0",
2994     "filename": "server/api/chatOfflineMessage/index.js",
2995     "groupTitle": "Chat_Offline_Messages"
2996   },
2997   {
2998     "type": "delete",
2999     "url": "/api/chat/offline_messages/{id}",
3000     "title": "Deletes a OfflineMessage",
3001     "examples": [
3002       {
3003         "title": "Example usage:",
3004         "content": "curl https://{domain}/api/chat/offline_messages/{id} -v -u {name}:{password} -X DELETE",
3005         "type": "json"
3006       }
3007     ],
3008     "name": "DeleteOfflineMessages",
3009     "group": "Chat_Offline_Messages",
3010     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3011     "version": "0.0.0",
3012     "filename": "server/api/chatOfflineMessage/index.js",
3013     "groupTitle": "Chat_Offline_Messages"
3014   },
3015   {
3016     "type": "get",
3017     "url": "/api/chat/offline_messages/describe",
3018     "title": "Gets table info about OfflineMessages",
3019     "examples": [
3020       {
3021         "title": "Example usage:",
3022         "content": "curl https://{domain}/api/chat/offline_messages/describe -v -u {name}:{password}",
3023         "type": "json"
3024       }
3025     ],
3026     "name": "DescribeOfflineMessages",
3027     "group": "Chat_Offline_Messages",
3028     "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>",
3029     "version": "0.0.0",
3030     "filename": "server/api/chatOfflineMessage/index.js",
3031     "groupTitle": "Chat_Offline_Messages"
3032   },
3033   {
3034     "type": "get",
3035     "url": "/api/chat/offline_messages",
3036     "title": "Gets a list of OfflineMessages",
3037     "examples": [
3038       {
3039         "title": "Example usage:",
3040         "content": "curl https://{domain}/api/chat/offline_messages -v -u {name}:{password}",
3041         "type": "json"
3042       }
3043     ],
3044     "name": "GetOfflineMessages",
3045     "group": "Chat_Offline_Messages",
3046     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
3047     "version": "0.0.0",
3048     "filename": "server/api/chatOfflineMessage/index.js",
3049     "groupTitle": "Chat_Offline_Messages"
3050   },
3051   {
3052     "type": "get",
3053     "url": "/api/chat/offline_messages/{id}",
3054     "title": "Gets a single OfflineMessage",
3055     "examples": [
3056       {
3057         "title": "Example usage:",
3058         "content": "curl https://{domain}/api/chat/offline_messages/{id} -v -u {name}:{password}",
3059         "type": "json"
3060       }
3061     ],
3062     "name": "ShowOfflineMessages",
3063     "group": "Chat_Offline_Messages",
3064     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3065     "version": "0.0.0",
3066     "filename": "server/api/chatOfflineMessage/index.js",
3067     "groupTitle": "Chat_Offline_Messages"
3068   },
3069   {
3070     "type": "put",
3071     "url": "/api/chat/offline_messages/{id}",
3072     "title": "Update an existing OfflineMessage",
3073     "examples": [
3074       {
3075         "title": "Example usage:",
3076         "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",
3077         "type": "json"
3078       }
3079     ],
3080     "name": "updateOfflineMessages",
3081     "group": "Chat_Offline_Messages",
3082     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3083     "version": "0.0.0",
3084     "filename": "server/api/chatOfflineMessage/index.js",
3085     "groupTitle": "Chat_Offline_Messages"
3086   },
3087   {
3088     "type": "post",
3089     "url": "/api/chat/proactive_actions",
3090     "title": "Creates a new Proactive Action",
3091     "examples": [
3092       {
3093         "title": "Example usage:",
3094         "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",
3095         "type": "json"
3096       }
3097     ],
3098     "name": "CreateProactive_Actions",
3099     "group": "Chat_Proactive_Actions",
3100     "parameter": {
3101       "fields": {
3102         "Body": [
3103           {
3104             "group": "Body",
3105             "type": "String",
3106             "optional": false,
3107             "field": "name",
3108             "description": ""
3109           },
3110           {
3111             "group": "Body",
3112             "type": "String",
3113             "allowedValues": [
3114               "\"mouseOver\"",
3115               "\"timeout\""
3116             ],
3117             "optional": true,
3118             "field": "type",
3119             "description": ""
3120           },
3121           {
3122             "group": "Body",
3123             "type": "String",
3124             "optional": true,
3125             "field": "selector",
3126             "description": ""
3127           },
3128           {
3129             "group": "Body",
3130             "type": "Integer",
3131             "optional": true,
3132             "field": "timeout",
3133             "description": ""
3134           }
3135         ]
3136       }
3137     },
3138     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3139     "version": "0.0.0",
3140     "filename": "server/api/chatProactiveAction/index.js",
3141     "groupTitle": "Chat_Proactive_Actions"
3142   },
3143   {
3144     "type": "delete",
3145     "url": "/api/chat/proactive_actions/{id}",
3146     "title": "Deletes a Proactive Action",
3147     "examples": [
3148       {
3149         "title": "Example usage:",
3150         "content": "curl https://{domain}/api/chat/proactive_actions/{id} -v -u {name}:{password} -X DELETE",
3151         "type": "json"
3152       }
3153     ],
3154     "name": "DeleteProactive_Actions",
3155     "group": "Chat_Proactive_Actions",
3156     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3157     "version": "0.0.0",
3158     "filename": "server/api/chatProactiveAction/index.js",
3159     "groupTitle": "Chat_Proactive_Actions"
3160   },
3161   {
3162     "type": "get",
3163     "url": "/api/chat/proactive_actions/{id}",
3164     "title": "Gets a single Proactive Action",
3165     "examples": [
3166       {
3167         "title": "Example usage:",
3168         "content": "curl https://{domain}/api/chat/proactive_actions/{id} -v -u {name}:{password}",
3169         "type": "json"
3170       }
3171     ],
3172     "name": "ShowProactive_Actions",
3173     "group": "Chat_Proactive_Actions",
3174     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3175     "version": "0.0.0",
3176     "filename": "server/api/chatProactiveAction/index.js",
3177     "groupTitle": "Chat_Proactive_Actions"
3178   },
3179   {
3180     "type": "put",
3181     "url": "/api/chat/proactive_actions/{id}",
3182     "title": "Update an existing Proactive Action",
3183     "examples": [
3184       {
3185         "title": "Example usage:",
3186         "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",
3187         "type": "json"
3188       }
3189     ],
3190     "name": "updateProactive_Actions",
3191     "group": "Chat_Proactive_Actions",
3192     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3193     "version": "0.0.0",
3194     "filename": "server/api/chatProactiveAction/index.js",
3195     "groupTitle": "Chat_Proactive_Actions"
3196   },
3197   {
3198     "type": "post",
3199     "url": "/api/chat/reports/queue",
3200     "title": "Creates a new Chat Queue Report",
3201     "examples": [
3202       {
3203         "title": "Example usage:",
3204         "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",
3205         "type": "json"
3206       }
3207     ],
3208     "name": "CreateChat_Queue_Reports",
3209     "group": "Chat_Queue_Reports",
3210     "parameter": {
3211       "fields": {
3212         "Body": [
3213           {
3214             "group": "Body",
3215             "type": "String",
3216             "optional": false,
3217             "field": "uniqueid",
3218             "description": ""
3219           },
3220           {
3221             "group": "Body",
3222             "type": "String",
3223             "optional": true,
3224             "field": "from",
3225             "description": ""
3226           },
3227           {
3228             "group": "Body",
3229             "type": "String",
3230             "optional": true,
3231             "field": "joinAt",
3232             "description": ""
3233           },
3234           {
3235             "group": "Body",
3236             "type": "String",
3237             "optional": true,
3238             "field": "leaveAt",
3239             "description": ""
3240           },
3241           {
3242             "group": "Body",
3243             "type": "String",
3244             "optional": true,
3245             "field": "acceptAt",
3246             "description": ""
3247           },
3248           {
3249             "group": "Body",
3250             "type": "String",
3251             "optional": true,
3252             "field": "exitAt",
3253             "description": ""
3254           },
3255           {
3256             "group": "Body",
3257             "type": "String",
3258             "optional": true,
3259             "field": "reason",
3260             "description": ""
3261           }
3262         ]
3263       }
3264     },
3265     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3266     "version": "0.0.0",
3267     "filename": "server/api/chatQueueReport/index.js",
3268     "groupTitle": "Chat_Queue_Reports"
3269   },
3270   {
3271     "type": "delete",
3272     "url": "/api/chat/reports/queue/{id}",
3273     "title": "Deletes a Chat Queue Report",
3274     "examples": [
3275       {
3276         "title": "Example usage:",
3277         "content": "curl https://{domain}/api/chat/reports/queue/{id} -v -u {name}:{password} -X DELETE",
3278         "type": "json"
3279       }
3280     ],
3281     "name": "DeleteChat_Queue_Reports",
3282     "group": "Chat_Queue_Reports",
3283     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3284     "version": "0.0.0",
3285     "filename": "server/api/chatQueueReport/index.js",
3286     "groupTitle": "Chat_Queue_Reports"
3287   },
3288   {
3289     "type": "get",
3290     "url": "/api/chat/reports/queue/describe",
3291     "title": "Gets table info about Chat Queue Reports",
3292     "examples": [
3293       {
3294         "title": "Example usage:",
3295         "content": "curl https://{domain}/api/chat/reports/queue/describe -v -u {name}:{password}",
3296         "type": "json"
3297       }
3298     ],
3299     "name": "DescribeChat_Queue_Reports",
3300     "group": "Chat_Queue_Reports",
3301     "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>",
3302     "version": "0.0.0",
3303     "filename": "server/api/chatQueueReport/index.js",
3304     "groupTitle": "Chat_Queue_Reports"
3305   },
3306   {
3307     "type": "get",
3308     "url": "/api/chat/reports/queue",
3309     "title": "Gets a list of Chat Queue Reports",
3310     "examples": [
3311       {
3312         "title": "Example usage:",
3313         "content": "curl https://{domain}/api/chat/reports/queue -v -u {name}:{password}",
3314         "type": "json"
3315       }
3316     ],
3317     "name": "GetChat_Queue_Reports",
3318     "group": "Chat_Queue_Reports",
3319     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
3320     "version": "0.0.0",
3321     "filename": "server/api/chatQueueReport/index.js",
3322     "groupTitle": "Chat_Queue_Reports"
3323   },
3324   {
3325     "type": "get",
3326     "url": "/api/chat/reports/queue/{id}",
3327     "title": "Gets a single Chat Queue Report",
3328     "examples": [
3329       {
3330         "title": "Example usage:",
3331         "content": "curl https://{domain}/api/chat/reports/queue/{id} -v -u {name}:{password}",
3332         "type": "json"
3333       }
3334     ],
3335     "name": "ShowChat_Queue_Reports",
3336     "group": "Chat_Queue_Reports",
3337     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3338     "version": "0.0.0",
3339     "filename": "server/api/chatQueueReport/index.js",
3340     "groupTitle": "Chat_Queue_Reports"
3341   },
3342   {
3343     "type": "put",
3344     "url": "/api/chat/reports/queue/{id}",
3345     "title": "Update an existing Chat Queue Report",
3346     "examples": [
3347       {
3348         "title": "Example usage:",
3349         "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",
3350         "type": "json"
3351       }
3352     ],
3353     "name": "updateChat_Queue_Reports",
3354     "group": "Chat_Queue_Reports",
3355     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3356     "version": "0.0.0",
3357     "filename": "server/api/chatQueueReport/index.js",
3358     "groupTitle": "Chat_Queue_Reports"
3359   },
3360   {
3361     "type": "post",
3362     "url": "/api/chat/queues/{id}/users",
3363     "title": "Add agents to a queue",
3364     "examples": [
3365       {
3366         "title": "Example usage:",
3367         "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",
3368         "type": "json"
3369       }
3370     ],
3371     "name": "AddAgents",
3372     "group": "Chat_Queues",
3373     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3374     "version": "0.0.0",
3375     "filename": "server/api/chatQueue/index.js",
3376     "groupTitle": "Chat_Queues"
3377   },
3378   {
3379     "type": "post",
3380     "url": "/api/chat/queues/{id}/teams",
3381     "title": "Add teams to a queue",
3382     "examples": [
3383       {
3384         "title": "Example usage:",
3385         "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",
3386         "type": "json"
3387       }
3388     ],
3389     "name": "AddTeams",
3390     "group": "Chat_Queues",
3391     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3392     "version": "0.0.0",
3393     "filename": "server/api/chatQueue/index.js",
3394     "groupTitle": "Chat_Queues"
3395   },
3396   {
3397     "type": "post",
3398     "url": "/api/chat/queues",
3399     "title": "Creates a new Queue",
3400     "examples": [
3401       {
3402         "title": "Example usage:",
3403         "content": "curl https://{domain}/api/chat/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
3404         "type": "json"
3405       }
3406     ],
3407     "name": "CreateQueues",
3408     "group": "Chat_Queues",
3409     "parameter": {
3410       "fields": {
3411         "Body": [
3412           {
3413             "group": "Body",
3414             "type": "String",
3415             "optional": false,
3416             "field": "name",
3417             "description": ""
3418           },
3419           {
3420             "group": "Body",
3421             "type": "String",
3422             "optional": true,
3423             "field": "description",
3424             "description": ""
3425           },
3426           {
3427             "group": "Body",
3428             "type": "Integer",
3429             "optional": true,
3430             "field": "timeout",
3431             "description": ""
3432           },
3433           {
3434             "group": "Body",
3435             "type": "String",
3436             "allowedValues": [
3437               "\"rrmemory\"",
3438               "\"beepall\"",
3439               "\"roundrobin\""
3440             ],
3441             "optional": true,
3442             "field": "strategy",
3443             "description": ""
3444           }
3445         ]
3446       }
3447     },
3448     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3449     "version": "0.0.0",
3450     "filename": "server/api/chatQueue/index.js",
3451     "groupTitle": "Chat_Queues"
3452   },
3453   {
3454     "type": "delete",
3455     "url": "/api/chat/queues/{id}",
3456     "title": "Deletes a Queue",
3457     "examples": [
3458       {
3459         "title": "Example usage:",
3460         "content": "curl https://{domain}/api/chat/queues/{id} -v -u {name}:{password} -X DELETE",
3461         "type": "json"
3462       }
3463     ],
3464     "name": "DeleteQueues",
3465     "group": "Chat_Queues",
3466     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3467     "version": "0.0.0",
3468     "filename": "server/api/chatQueue/index.js",
3469     "groupTitle": "Chat_Queues"
3470   },
3471   {
3472     "type": "get",
3473     "url": "/api/chat/queues/describe",
3474     "title": "Gets table info about Queues",
3475     "examples": [
3476       {
3477         "title": "Example usage:",
3478         "content": "curl https://{domain}/api/chat/queues/describe -v -u {name}:{password}",
3479         "type": "json"
3480       }
3481     ],
3482     "name": "DescribeQueues",
3483     "group": "Chat_Queues",
3484     "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>",
3485     "version": "0.0.0",
3486     "filename": "server/api/chatQueue/index.js",
3487     "groupTitle": "Chat_Queues"
3488   },
3489   {
3490     "type": "get",
3491     "url": "/api/chat/queues/{id}/users",
3492     "title": "Gets queue agents",
3493     "examples": [
3494       {
3495         "title": "Example usage:",
3496         "content": "curl https://{domain}/api/chat/queues/{id}/users -v -u {name}:{password} -X POST",
3497         "type": "json"
3498       }
3499     ],
3500     "name": "GetAgents",
3501     "group": "Chat_Queues",
3502     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3503     "version": "0.0.0",
3504     "filename": "server/api/chatQueue/index.js",
3505     "groupTitle": "Chat_Queues"
3506   },
3507   {
3508     "type": "get",
3509     "url": "/api/chat/queues/{id}/members",
3510     "title": "GetMembers",
3511     "examples": [
3512       {
3513         "title": "Example usage:",
3514         "content": "curl https://{domain}/api/chat/queues/{id}/members  -v -u {name}:{password}",
3515         "type": "json"
3516       }
3517     ],
3518     "name": "GetMembers",
3519     "group": "Chat_Queues",
3520     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3521     "version": "0.0.0",
3522     "filename": "server/api/chatQueue/index.js",
3523     "groupTitle": "Chat_Queues"
3524   },
3525   {
3526     "type": "get",
3527     "url": "/api/chat/queues",
3528     "title": "Gets a list of Queues",
3529     "examples": [
3530       {
3531         "title": "Example usage:",
3532         "content": "curl https://{domain}/api/chat/queues -v -u {name}:{password}",
3533         "type": "json"
3534       }
3535     ],
3536     "name": "GetQueues",
3537     "group": "Chat_Queues",
3538     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
3539     "version": "0.0.0",
3540     "filename": "server/api/chatQueue/index.js",
3541     "groupTitle": "Chat_Queues"
3542   },
3543   {
3544     "type": "get",
3545     "url": "/api/chat/queues/{id}/teams",
3546     "title": "Gets queues list",
3547     "examples": [
3548       {
3549         "title": "Example usage:",
3550         "content": "curl https://{domain}/api/chat/queues/{id}/teams -v -u {name}:{password}",
3551         "type": "json"
3552       }
3553     ],
3554     "name": "GetTeams",
3555     "group": "Chat_Queues",
3556     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3557     "version": "0.0.0",
3558     "filename": "server/api/chatQueue/index.js",
3559     "groupTitle": "Chat_Queues"
3560   },
3561   {
3562     "type": "delete",
3563     "url": "/api/chat/queues/{id}/users",
3564     "title": "Removes agents from a queue",
3565     "examples": [
3566       {
3567         "title": "Example usage:",
3568         "content": "curl https://{domain}/api/chat/queues/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
3569         "type": "json"
3570       }
3571     ],
3572     "name": "RemoveAgents",
3573     "group": "Chat_Queues",
3574     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3575     "version": "0.0.0",
3576     "filename": "server/api/chatQueue/index.js",
3577     "groupTitle": "Chat_Queues"
3578   },
3579   {
3580     "type": "get",
3581     "url": "/api/chat/queues/{id}",
3582     "title": "Gets a single Queue",
3583     "examples": [
3584       {
3585         "title": "Example usage:",
3586         "content": "curl https://{domain}/api/chat/queues/{id} -v -u {name}:{password}",
3587         "type": "json"
3588       }
3589     ],
3590     "name": "ShowQueues",
3591     "group": "Chat_Queues",
3592     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3593     "version": "0.0.0",
3594     "filename": "server/api/chatQueue/index.js",
3595     "groupTitle": "Chat_Queues"
3596   },
3597   {
3598     "type": "put",
3599     "url": "/api/chat/queues/{id}",
3600     "title": "Update an existing Queue",
3601     "examples": [
3602       {
3603         "title": "Example usage:",
3604         "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",
3605         "type": "json"
3606       }
3607     ],
3608     "name": "updateQueues",
3609     "group": "Chat_Queues",
3610     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3611     "version": "0.0.0",
3612     "filename": "server/api/chatQueue/index.js",
3613     "groupTitle": "Chat_Queues"
3614   },
3615   {
3616     "type": "post",
3617     "url": "/api/chat/reports/transfer",
3618     "title": "Creates a new Chat Transfer Report",
3619     "examples": [
3620       {
3621         "title": "Example usage:",
3622         "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",
3623         "type": "json"
3624       }
3625     ],
3626     "name": "CreateChat_Transfer_Reports",
3627     "group": "Chat_Transfer_Reports",
3628     "parameter": {
3629       "fields": {
3630         "Body": [
3631           {
3632             "group": "Body",
3633             "type": "String",
3634             "optional": false,
3635             "field": "uniqueid",
3636             "description": ""
3637           },
3638           {
3639             "group": "Body",
3640             "type": "String",
3641             "allowedValues": [
3642               "\"account\"",
3643               "\"agent\"",
3644               "\"queue\""
3645             ],
3646             "optional": false,
3647             "field": "type",
3648             "description": ""
3649           },
3650           {
3651             "group": "Body",
3652             "type": "String",
3653             "optional": false,
3654             "field": "transferredAt",
3655             "description": ""
3656           }
3657         ]
3658       }
3659     },
3660     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3661     "version": "0.0.0",
3662     "filename": "server/api/chatTransferReport/index.js",
3663     "groupTitle": "Chat_Transfer_Reports"
3664   },
3665   {
3666     "type": "delete",
3667     "url": "/api/chat/reports/transfer/{id}",
3668     "title": "Deletes a Chat Transfer Report",
3669     "examples": [
3670       {
3671         "title": "Example usage:",
3672         "content": "curl https://{domain}/api/chat/reports/transfer/{id} -v -u {name}:{password} -X DELETE",
3673         "type": "json"
3674       }
3675     ],
3676     "name": "DeleteChat_Transfer_Reports",
3677     "group": "Chat_Transfer_Reports",
3678     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3679     "version": "0.0.0",
3680     "filename": "server/api/chatTransferReport/index.js",
3681     "groupTitle": "Chat_Transfer_Reports"
3682   },
3683   {
3684     "type": "get",
3685     "url": "/api/chat/reports/transfer/describe",
3686     "title": "Gets table info about Chat Transfer Reports",
3687     "examples": [
3688       {
3689         "title": "Example usage:",
3690         "content": "curl https://{domain}/api/chat/reports/transfer/describe -v -u {name}:{password}",
3691         "type": "json"
3692       }
3693     ],
3694     "name": "DescribeChat_Transfer_Reports",
3695     "group": "Chat_Transfer_Reports",
3696     "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>",
3697     "version": "0.0.0",
3698     "filename": "server/api/chatTransferReport/index.js",
3699     "groupTitle": "Chat_Transfer_Reports"
3700   },
3701   {
3702     "type": "get",
3703     "url": "/api/chat/reports/transfer",
3704     "title": "Gets a list of Chat Transfer Reports",
3705     "examples": [
3706       {
3707         "title": "Example usage:",
3708         "content": "curl https://{domain}/api/chat/reports/transfer -v -u {name}:{password}",
3709         "type": "json"
3710       }
3711     ],
3712     "name": "GetChat_Transfer_Reports",
3713     "group": "Chat_Transfer_Reports",
3714     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
3715     "version": "0.0.0",
3716     "filename": "server/api/chatTransferReport/index.js",
3717     "groupTitle": "Chat_Transfer_Reports"
3718   },
3719   {
3720     "type": "get",
3721     "url": "/api/chat/reports/transfer/{id}",
3722     "title": "Gets a single Chat Transfer Report",
3723     "examples": [
3724       {
3725         "title": "Example usage:",
3726         "content": "curl https://{domain}/api/chat/reports/transfer/{id} -v -u {name}:{password}",
3727         "type": "json"
3728       }
3729     ],
3730     "name": "ShowChat_Transfer_Reports",
3731     "group": "Chat_Transfer_Reports",
3732     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3733     "version": "0.0.0",
3734     "filename": "server/api/chatTransferReport/index.js",
3735     "groupTitle": "Chat_Transfer_Reports"
3736   },
3737   {
3738     "type": "put",
3739     "url": "/api/chat/reports/transfer/{id}",
3740     "title": "Update an existing Chat Transfer Report",
3741     "examples": [
3742       {
3743         "title": "Example usage:",
3744         "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",
3745         "type": "json"
3746       }
3747     ],
3748     "name": "updateChat_Transfer_Reports",
3749     "group": "Chat_Transfer_Reports",
3750     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3751     "version": "0.0.0",
3752     "filename": "server/api/chatTransferReport/index.js",
3753     "groupTitle": "Chat_Transfer_Reports"
3754   },
3755   {
3756     "type": "post",
3757     "url": "/api/chat/websites/{id}/users",
3758     "title": "Add agents to a website",
3759     "examples": [
3760       {
3761         "title": "Example usage:",
3762         "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",
3763         "type": "json"
3764       }
3765     ],
3766     "name": "AddAgents",
3767     "group": "Chat_Websites",
3768     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3769     "version": "0.0.0",
3770     "filename": "server/api/chatWebsite/index.js",
3771     "groupTitle": "Chat_Websites"
3772   },
3773   {
3774     "type": "post",
3775     "url": "/api/chat/websites",
3776     "title": "Creates a new Website",
3777     "examples": [
3778       {
3779         "title": "Example usage:",
3780         "content": "curl https://{domain}/api/chat/websites -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
3781         "type": "json"
3782       }
3783     ],
3784     "name": "CreateWebsites",
3785     "group": "Chat_Websites",
3786     "parameter": {
3787       "fields": {
3788         "Body": [
3789           {
3790             "group": "Body",
3791             "type": "String",
3792             "optional": false,
3793             "field": "name",
3794             "description": ""
3795           },
3796           {
3797             "group": "Body",
3798             "type": "String",
3799             "optional": false,
3800             "field": "address",
3801             "description": ""
3802           },
3803           {
3804             "group": "Body",
3805             "type": "String",
3806             "optional": true,
3807             "field": "description",
3808             "description": ""
3809           },
3810           {
3811             "group": "Body",
3812             "type": "String",
3813             "optional": true,
3814             "field": "mapKey",
3815             "description": ""
3816           },
3817           {
3818             "group": "Body",
3819             "type": "String",
3820             "optional": true,
3821             "field": "mapKeyOffline",
3822             "description": ""
3823           },
3824           {
3825             "group": "Body",
3826             "type": "String",
3827             "optional": false,
3828             "field": "key",
3829             "description": ""
3830           },
3831           {
3832             "group": "Body",
3833             "type": "String",
3834             "optional": true,
3835             "field": "agentAlias",
3836             "description": ""
3837           },
3838           {
3839             "group": "Body",
3840             "type": "String",
3841             "optional": true,
3842             "field": "customerAlias",
3843             "description": ""
3844           },
3845           {
3846             "group": "Body",
3847             "type": "String",
3848             "optional": false,
3849             "field": "color",
3850             "description": ""
3851           },
3852           {
3853             "group": "Body",
3854             "type": "String",
3855             "optional": false,
3856             "field": "color_button",
3857             "description": ""
3858           },
3859           {
3860             "group": "Body",
3861             "type": "String",
3862             "optional": false,
3863             "field": "textColor",
3864             "description": ""
3865           },
3866           {
3867             "group": "Body",
3868             "type": "Integer",
3869             "optional": true,
3870             "field": "fontSize",
3871             "description": ""
3872           },
3873           {
3874             "group": "Body",
3875             "type": "String",
3876             "optional": true,
3877             "field": "remote",
3878             "description": ""
3879           },
3880           {
3881             "group": "Body",
3882             "type": "Boolean",
3883             "optional": true,
3884             "field": "animation",
3885             "description": ""
3886           },
3887           {
3888             "group": "Body",
3889             "type": "String",
3890             "allowedValues": [
3891               "\"rounded\"",
3892               "\"squared\""
3893             ],
3894             "optional": true,
3895             "field": "header_shape",
3896             "description": ""
3897           },
3898           {
3899             "group": "Body",
3900             "type": "String",
3901             "optional": true,
3902             "field": "header_online",
3903             "description": ""
3904           },
3905           {
3906             "group": "Body",
3907             "type": "String",
3908             "optional": true,
3909             "field": "start_chat_button",
3910             "description": ""
3911           },
3912           {
3913             "group": "Body",
3914             "type": "String",
3915             "optional": true,
3916             "field": "offline_chat_button",
3917             "description": ""
3918           },
3919           {
3920             "group": "Body",
3921             "type": "String",
3922             "optional": true,
3923             "field": "header_offline",
3924             "description": ""
3925           },
3926           {
3927             "group": "Body",
3928             "type": "Boolean",
3929             "optional": true,
3930             "field": "download_transcript",
3931             "description": ""
3932           },
3933           {
3934             "group": "Body",
3935             "type": "Integer",
3936             "optional": true,
3937             "field": "timeout",
3938             "description": ""
3939           },
3940           {
3941             "group": "Body",
3942             "type": "String",
3943             "optional": true,
3944             "field": "whiteLabel",
3945             "description": ""
3946           },
3947           {
3948             "group": "Body",
3949             "type": "Boolean",
3950             "optional": true,
3951             "field": "defaultWhiteLabel",
3952             "description": ""
3953           },
3954           {
3955             "group": "Body",
3956             "type": "Text",
3957             "optional": true,
3958             "field": "sitepic",
3959             "description": ""
3960           },
3961           {
3962             "group": "Body",
3963             "type": "String",
3964             "optional": true,
3965             "field": "closingQuestion",
3966             "description": ""
3967           },
3968           {
3969             "group": "Body",
3970             "type": "String",
3971             "optional": true,
3972             "field": "formSubmitSuccessMessage",
3973             "description": ""
3974           },
3975           {
3976             "group": "Body",
3977             "type": "String",
3978             "optional": true,
3979             "field": "formSubmitFailureMessage",
3980             "description": ""
3981           },
3982           {
3983             "group": "Body",
3984             "type": "String",
3985             "optional": true,
3986             "field": "noteTitle",
3987             "description": ""
3988           },
3989           {
3990             "group": "Body",
3991             "type": "String",
3992             "optional": true,
3993             "field": "placeholderMessage",
3994             "description": ""
3995           },
3996           {
3997             "group": "Body",
3998             "type": "String",
3999             "optional": true,
4000             "field": "closingMessage",
4001             "description": ""
4002           },
4003           {
4004             "group": "Body",
4005             "type": "String",
4006             "optional": true,
4007             "field": "closingMessageButton",
4008             "description": ""
4009           },
4010           {
4011             "group": "Body",
4012             "type": "String",
4013             "optional": true,
4014             "field": "skipMessageButton",
4015             "description": ""
4016           },
4017           {
4018             "group": "Body",
4019             "type": "Boolean",
4020             "optional": true,
4021             "field": "conditionAgreement",
4022             "description": ""
4023           },
4024           {
4025             "group": "Body",
4026             "type": "Boolean",
4027             "optional": true,
4028             "field": "enableRating",
4029             "description": ""
4030           },
4031           {
4032             "group": "Body",
4033             "type": "Boolean",
4034             "optional": true,
4035             "field": "enableFeedback",
4036             "description": ""
4037           },
4038           {
4039             "group": "Body",
4040             "type": "Boolean",
4041             "optional": true,
4042             "field": "enableSendButton",
4043             "description": ""
4044           },
4045           {
4046             "group": "Body",
4047             "type": "String",
4048             "optional": true,
4049             "field": "feedbackTitle",
4050             "description": ""
4051           },
4052           {
4053             "group": "Body",
4054             "type": "String",
4055             "allowedValues": [
4056               "\"star\"",
4057               "\"thumb\""
4058             ],
4059             "optional": true,
4060             "field": "ratingType",
4061             "description": ""
4062           },
4063           {
4064             "group": "Body",
4065             "type": "Integer",
4066             "optional": true,
4067             "field": "ratingStarsNumber",
4068             "description": ""
4069           },
4070           {
4071             "group": "Body",
4072             "type": "Text",
4073             "optional": true,
4074             "field": "onlineForm",
4075             "description": ""
4076           },
4077           {
4078             "group": "Body",
4079             "type": "Text",
4080             "optional": true,
4081             "field": "offlineForm",
4082             "description": ""
4083           },
4084           {
4085             "group": "Body",
4086             "type": "String",
4087             "optional": true,
4088             "field": "token",
4089             "description": ""
4090           },
4091           {
4092             "group": "Body",
4093             "type": "Boolean",
4094             "optional": true,
4095             "field": "autoclose",
4096             "description": ""
4097           },
4098           {
4099             "group": "Body",
4100             "type": "Boolean",
4101             "optional": true,
4102             "field": "enableCustomerWriting",
4103             "description": ""
4104           },
4105           {
4106             "group": "Body",
4107             "type": "Boolean",
4108             "optional": true,
4109             "field": "forwardTranscript",
4110             "description": ""
4111           },
4112           {
4113             "group": "Body",
4114             "type": "String",
4115             "optional": true,
4116             "field": "forwardTranscriptMessage",
4117             "description": ""
4118           },
4119           {
4120             "group": "Body",
4121             "type": "Boolean",
4122             "optional": true,
4123             "field": "forwardOffline",
4124             "description": ""
4125           },
4126           {
4127             "group": "Body",
4128             "type": "String",
4129             "optional": true,
4130             "field": "forwardOfflineAddress",
4131             "description": ""
4132           },
4133           {
4134             "group": "Body",
4135             "type": "String",
4136             "optional": true,
4137             "field": "waitingTitle",
4138             "description": ""
4139           },
4140           {
4141             "group": "Body",
4142             "type": "String",
4143             "optional": true,
4144             "field": "waitingMessage",
4145             "description": ""
4146           },
4147           {
4148             "group": "Body",
4149             "type": "String",
4150             "optional": true,
4151             "field": "offlineMessageSubject",
4152             "description": ""
4153           },
4154           {
4155             "group": "Body",
4156             "type": "String",
4157             "optional": true,
4158             "field": "offlineMessageBody",
4159             "description": ""
4160           },
4161           {
4162             "group": "Body",
4163             "type": "Boolean",
4164             "optional": true,
4165             "field": "enableUnmanagedNote",
4166             "description": ""
4167           },
4168           {
4169             "group": "Body",
4170             "type": "String",
4171             "optional": true,
4172             "field": "unmanagedMessage",
4173             "description": ""
4174           },
4175           {
4176             "group": "Body",
4177             "type": "String",
4178             "optional": true,
4179             "field": "skipUnmanaged",
4180             "description": ""
4181           },
4182           {
4183             "group": "Body",
4184             "type": "String",
4185             "optional": true,
4186             "field": "sendUnmanaged",
4187             "description": ""
4188           },
4189           {
4190             "group": "Body",
4191             "type": "Boolean",
4192             "optional": true,
4193             "field": "enableCustomerAttachment",
4194             "description": ""
4195           },
4196           {
4197             "group": "Body",
4198             "type": "Boolean",
4199             "optional": true,
4200             "field": "enableCustomerCheckmarks",
4201             "description": ""
4202           },
4203           {
4204             "group": "Body",
4205             "type": "Text",
4206             "optional": true,
4207             "field": "agentAvatar",
4208             "description": ""
4209           },
4210           {
4211             "group": "Body",
4212             "type": "Boolean",
4213             "optional": true,
4214             "field": "showAgentAvatar",
4215             "description": ""
4216           },
4217           {
4218             "group": "Body",
4219             "type": "String",
4220             "optional": true,
4221             "field": "timezone",
4222             "description": ""
4223           },
4224           {
4225             "group": "Body",
4226             "type": "Text",
4227             "optional": true,
4228             "field": "notificationTemplate",
4229             "description": ""
4230           },
4231           {
4232             "group": "Body",
4233             "type": "Boolean",
4234             "optional": true,
4235             "field": "notificationSound",
4236             "description": ""
4237           },
4238           {
4239             "group": "Body",
4240             "type": "Boolean",
4241             "optional": true,
4242             "field": "notificationShake",
4243             "description": ""
4244           },
4245           {
4246             "group": "Body",
4247             "type": "Boolean",
4248             "optional": true,
4249             "field": "hideWhenOffline",
4250             "description": ""
4251           },
4252           {
4253             "group": "Body",
4254             "type": "String",
4255             "optional": true,
4256             "field": "agentIdentifier",
4257             "description": ""
4258           },
4259           {
4260             "group": "Body",
4261             "type": "Integer",
4262             "optional": true,
4263             "field": "waitForTheAssignedAgent",
4264             "description": ""
4265           },
4266           {
4267             "group": "Body",
4268             "type": "String",
4269             "optional": true,
4270             "field": "alignment",
4271             "description": ""
4272           },
4273           {
4274             "group": "Body",
4275             "type": "Integer",
4276             "optional": true,
4277             "field": "verticalAlignment",
4278             "description": ""
4279           },
4280           {
4281             "group": "Body",
4282             "type": "String",
4283             "optional": true,
4284             "field": "messagesAlignment",
4285             "description": ""
4286           },
4287           {
4288             "group": "Body",
4289             "type": "String",
4290             "optional": true,
4291             "field": "defaultTitle",
4292             "description": ""
4293           },
4294           {
4295             "group": "Body",
4296             "type": "Text",
4297             "optional": true,
4298             "field": "customerAvatar",
4299             "description": ""
4300           },
4301           {
4302             "group": "Body",
4303             "type": "Boolean",
4304             "optional": true,
4305             "field": "showCustomerAvatar",
4306             "description": ""
4307           },
4308           {
4309             "group": "Body",
4310             "type": "Integer",
4311             "optional": true,
4312             "field": "messageFontSize",
4313             "description": ""
4314           },
4315           {
4316             "group": "Body",
4317             "type": "String",
4318             "optional": false,
4319             "field": "backgroundColor",
4320             "description": ""
4321           },
4322           {
4323             "group": "Body",
4324             "type": "Boolean",
4325             "optional": true,
4326             "field": "queueTransfer",
4327             "description": ""
4328           },
4329           {
4330             "group": "Body",
4331             "type": "Integer",
4332             "optional": true,
4333             "field": "queueTransferTimeout",
4334             "description": ""
4335           },
4336           {
4337             "group": "Body",
4338             "type": "Boolean",
4339             "optional": true,
4340             "field": "agentTransfer",
4341             "description": ""
4342           },
4343           {
4344             "group": "Body",
4345             "type": "Integer",
4346             "optional": true,
4347             "field": "agentTransferTimeout",
4348             "description": ""
4349           },
4350           {
4351             "group": "Body",
4352             "type": "String",
4353             "optional": true,
4354             "field": "systemAlias",
4355             "description": ""
4356           },
4357           {
4358             "group": "Body",
4359             "type": "Text",
4360             "optional": true,
4361             "field": "systemAvatar",
4362             "description": ""
4363           },
4364           {
4365             "group": "Body",
4366             "type": "Integer",
4367             "optional": true,
4368             "field": "mandatoryDispositionPauseId",
4369             "description": "<p>Status to put when mandatory disposition is enabled</p>"
4370           },
4371           {
4372             "group": "Body",
4373             "type": "Boolean",
4374             "optional": true,
4375             "field": "mandatoryDisposition",
4376             "description": "<p>Enabled/disables mandatory dispo on a queue</p>"
4377           },
4378           {
4379             "group": "Body",
4380             "type": "Boolean",
4381             "optional": true,
4382             "field": "vidaooEscalation",
4383             "description": ""
4384           },
4385           {
4386             "group": "Body",
4387             "type": "String",
4388             "optional": true,
4389             "field": "vidaooApiKey",
4390             "description": ""
4391           },
4392           {
4393             "group": "Body",
4394             "type": "String",
4395             "optional": false,
4396             "field": "vidaooTopic",
4397             "description": ""
4398           },
4399           {
4400             "group": "Body",
4401             "type": "String",
4402             "optional": true,
4403             "field": "vidaooNote",
4404             "description": ""
4405           },
4406           {
4407             "group": "Body",
4408             "type": "Text",
4409             "optional": true,
4410             "field": "vidaooMetadata",
4411             "description": ""
4412           },
4413           {
4414             "group": "Body",
4415             "type": "Boolean",
4416             "optional": true,
4417             "field": "openNewInteraction",
4418             "description": ""
4419           },
4420           {
4421             "group": "Body",
4422             "type": "Text",
4423             "optional": true,
4424             "field": "subjectOffline",
4425             "description": ""
4426           }
4427         ]
4428       }
4429     },
4430     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4431     "version": "0.0.0",
4432     "filename": "server/api/chatWebsite/index.js",
4433     "groupTitle": "Chat_Websites"
4434   },
4435   {
4436     "type": "delete",
4437     "url": "/api/chat/websites/{id}",
4438     "title": "Deletes a Website",
4439     "examples": [
4440       {
4441         "title": "Example usage:",
4442         "content": "curl https://{domain}/api/chat/websites/{id} -v -u {name}:{password} -X DELETE",
4443         "type": "json"
4444       }
4445     ],
4446     "name": "DeleteWebsites",
4447     "group": "Chat_Websites",
4448     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4449     "version": "0.0.0",
4450     "filename": "server/api/chatWebsite/index.js",
4451     "groupTitle": "Chat_Websites"
4452   },
4453   {
4454     "type": "get",
4455     "url": "/api/chat/websites/describe",
4456     "title": "Gets table info about Websites",
4457     "examples": [
4458       {
4459         "title": "Example usage:",
4460         "content": "curl https://{domain}/api/chat/websites/describe -v -u {name}:{password}",
4461         "type": "json"
4462       }
4463     ],
4464     "name": "DescribeWebsites",
4465     "group": "Chat_Websites",
4466     "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>",
4467     "version": "0.0.0",
4468     "filename": "server/api/chatWebsite/index.js",
4469     "groupTitle": "Chat_Websites"
4470   },
4471   {
4472     "type": "get",
4473     "url": "/api/chat/websites/{id}/users",
4474     "title": "Gets agents from website",
4475     "examples": [
4476       {
4477         "title": "Example usage:",
4478         "content": "curl https://{domain}/api/chat/websites/{id}/users -v -u {name}:{password} -X GET",
4479         "type": "json"
4480       }
4481     ],
4482     "name": "GetAgents",
4483     "group": "Chat_Websites",
4484     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4485     "version": "0.0.0",
4486     "filename": "server/api/chatWebsite/index.js",
4487     "groupTitle": "Chat_Websites"
4488   },
4489   {
4490     "type": "get",
4491     "url": "/api/chat/websites",
4492     "title": "Gets a list of Websites",
4493     "examples": [
4494       {
4495         "title": "Example usage:",
4496         "content": "curl https://{domain}/api/chat/websites -v -u {name}:{password}",
4497         "type": "json"
4498       }
4499     ],
4500     "name": "GetWebsites",
4501     "group": "Chat_Websites",
4502     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
4503     "version": "0.0.0",
4504     "filename": "server/api/chatWebsite/index.js",
4505     "groupTitle": "Chat_Websites"
4506   },
4507   {
4508     "type": "delete",
4509     "url": "/api/chat/websites/{id}/users",
4510     "title": "Removes agents from a website",
4511     "examples": [
4512       {
4513         "title": "Example usage:",
4514         "content": "curl https://{domain}/api/chat/websites/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
4515         "type": "json"
4516       }
4517     ],
4518     "name": "RemoveAgents",
4519     "group": "Chat_Websites",
4520     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4521     "version": "0.0.0",
4522     "filename": "server/api/chatWebsite/index.js",
4523     "groupTitle": "Chat_Websites"
4524   },
4525   {
4526     "type": "delete",
4527     "url": "/api/chat/websites/{id}/canned_answers",
4528     "title": "Removes canned answers from account",
4529     "examples": [
4530       {
4531         "title": "Example usage:",
4532         "content": "curl https://{domain}/api/chat/websites/{id}/canned_answers?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
4533         "type": "json"
4534       }
4535     ],
4536     "name": "RemoveAnswers",
4537     "group": "Chat_Websites",
4538     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4539     "version": "0.0.0",
4540     "filename": "server/api/chatWebsite/index.js",
4541     "groupTitle": "Chat_Websites"
4542   },
4543   {
4544     "type": "delete",
4545     "url": "/api/chat/websites/{id}/dispositions",
4546     "title": "Removes canned answers from account",
4547     "examples": [
4548       {
4549         "title": "Example usage:",
4550         "content": "curl https://{domain}/api/chat/websites/{id}/dispositions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
4551         "type": "json"
4552       }
4553     ],
4554     "name": "RemoveDispositions",
4555     "group": "Chat_Websites",
4556     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4557     "version": "0.0.0",
4558     "filename": "server/api/chatWebsite/index.js",
4559     "groupTitle": "Chat_Websites"
4560   },
4561   {
4562     "type": "get",
4563     "url": "/api/chat/websites/{id}",
4564     "title": "Gets a single Website",
4565     "examples": [
4566       {
4567         "title": "Example usage:",
4568         "content": "curl https://{domain}/api/chat/websites/{id} -v -u {name}:{password}",
4569         "type": "json"
4570       }
4571     ],
4572     "name": "ShowWebsites",
4573     "group": "Chat_Websites",
4574     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4575     "version": "0.0.0",
4576     "filename": "server/api/chatWebsite/index.js",
4577     "groupTitle": "Chat_Websites"
4578   },
4579   {
4580     "type": "put",
4581     "url": "/api/chat/messages/{id}/accept",
4582     "title": "Accepts message",
4583     "examples": [
4584       {
4585         "title": "Example usage:",
4586         "content": "curl https://{domain}/api/chat/messages/{id}/accept \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
4587         "type": "json"
4588       }
4589     ],
4590     "name": "acceptMessage",
4591     "group": "Chat_Websites",
4592     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4593     "version": "0.0.0",
4594     "filename": "server/api/chatMessage/index.js",
4595     "groupTitle": "Chat_Websites"
4596   },
4597   {
4598     "type": "post",
4599     "url": "/api/chat/websites/{id}/canned_answers",
4600     "title": "Creates new canned answer",
4601     "examples": [
4602       {
4603         "title": "Example usage:",
4604         "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",
4605         "type": "json"
4606       }
4607     ],
4608     "name": "addAnswer",
4609     "group": "Chat_Websites",
4610     "parameter": {
4611       "fields": {
4612         "Body": [
4613           {
4614             "group": "Body",
4615             "type": "String",
4616             "optional": false,
4617             "field": "key",
4618             "description": ""
4619           },
4620           {
4621             "group": "Body",
4622             "type": "Text",
4623             "optional": false,
4624             "field": "value",
4625             "description": ""
4626           },
4627           {
4628             "group": "Body",
4629             "type": "String",
4630             "optional": true,
4631             "field": "description",
4632             "description": ""
4633           },
4634           {
4635             "group": "Body",
4636             "type": "Virtual",
4637             "optional": true,
4638             "field": "name",
4639             "description": ""
4640           }
4641         ]
4642       }
4643     },
4644     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4645     "version": "0.0.0",
4646     "filename": "server/api/chatWebsite/index.js",
4647     "groupTitle": "Chat_Websites"
4648   },
4649   {
4650     "type": "post",
4651     "url": "/api/chat/websites/{id}/applications",
4652     "title": "Creates new applications",
4653     "examples": [
4654       {
4655         "title": "Example usage:",
4656         "content": "curl https://{domain}/api/chat/websites/{id}/applications -d '[{\"app\": \"queue\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
4657         "type": "json"
4658       }
4659     ],
4660     "name": "addApplications",
4661     "group": "Chat_Websites",
4662     "parameter": {
4663       "fields": {
4664         "Body": [
4665           {
4666             "group": "Body",
4667             "type": "Integer",
4668             "optional": false,
4669             "field": "priority",
4670             "description": ""
4671           },
4672           {
4673             "group": "Body",
4674             "type": "String",
4675             "optional": false,
4676             "field": "app",
4677             "description": ""
4678           },
4679           {
4680             "group": "Body",
4681             "type": "Text",
4682             "optional": true,
4683             "field": "appdata",
4684             "description": ""
4685           },
4686           {
4687             "group": "Body",
4688             "type": "String",
4689             "optional": true,
4690             "field": "description",
4691             "description": ""
4692           },
4693           {
4694             "group": "Body",
4695             "type": "String",
4696             "optional": true,
4697             "field": "interval",
4698             "description": ""
4699           }
4700         ]
4701       }
4702     },
4703     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4704     "version": "0.0.0",
4705     "filename": "server/api/chatWebsite/index.js",
4706     "groupTitle": "Chat_Websites"
4707   },
4708   {
4709     "type": "post",
4710     "url": "/api/chat/websites/{id}/avatar",
4711     "title": "Add avatar",
4712     "examples": [
4713       {
4714         "title": "Example usage:",
4715         "content": "curl https://{domain}/api/chat/websites/{id}/avatar -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
4716         "type": "json"
4717       }
4718     ],
4719     "name": "addAvatar",
4720     "group": "Chat_Websites",
4721     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4722     "version": "0.0.0",
4723     "filename": "server/api/chatWebsite/index.js",
4724     "groupTitle": "Chat_Websites"
4725   },
4726   {
4727     "type": "post",
4728     "url": "/api/chat/websites/{id}/customer_avatar",
4729     "title": "Add customer avatar",
4730     "examples": [
4731       {
4732         "title": "Example usage:",
4733         "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",
4734         "type": "json"
4735       }
4736     ],
4737     "name": "addCustomerAvatar",
4738     "group": "Chat_Websites",
4739     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4740     "version": "0.0.0",
4741     "filename": "server/api/chatWebsite/index.js",
4742     "groupTitle": "Chat_Websites"
4743   },
4744   {
4745     "type": "post",
4746     "url": "/api/chat/websites/{id}/dispositions",
4747     "title": "Creates new disposition",
4748     "examples": [
4749       {
4750         "title": "Example usage:",
4751         "content": "curl https://{domain}/api/chat/websites/{id}/dispositions -d '{\"name\": \"vip\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
4752         "type": "json"
4753       }
4754     ],
4755     "name": "addDisposition",
4756     "group": "Chat_Websites",
4757     "parameter": {
4758       "fields": {
4759         "Body": [
4760           {
4761             "group": "Body",
4762             "type": "String",
4763             "optional": false,
4764             "field": "name",
4765             "description": ""
4766           },
4767           {
4768             "group": "Body",
4769             "type": "String",
4770             "allowedValues": [
4771               "\"first\"",
4772               "\"second\"",
4773               "\"third\""
4774             ],
4775             "optional": false,
4776             "field": "level",
4777             "description": ""
4778           },
4779           {
4780             "group": "Body",
4781             "type": "String",
4782             "optional": true,
4783             "field": "description",
4784             "description": ""
4785           }
4786         ]
4787       }
4788     },
4789     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4790     "version": "0.0.0",
4791     "filename": "server/api/chatWebsite/index.js",
4792     "groupTitle": "Chat_Websites"
4793   },
4794   {
4795     "type": "post",
4796     "url": "/api/chat/accounts/{id}/interactions",
4797     "title": "Creates new interactions",
4798     "examples": [
4799       {
4800         "title": "Example usage:",
4801         "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",
4802         "type": "json"
4803       }
4804     ],
4805     "name": "addInteraction",
4806     "group": "Chat_Websites",
4807     "parameter": {
4808       "fields": {
4809         "Body": [
4810           {
4811             "group": "Body",
4812             "type": "Boolean",
4813             "optional": true,
4814             "field": "closed",
4815             "description": ""
4816           },
4817           {
4818             "group": "Body",
4819             "type": "Integer",
4820             "optional": true,
4821             "field": "ratingValue",
4822             "description": ""
4823           },
4824           {
4825             "group": "Body",
4826             "type": "String",
4827             "allowedValues": [
4828               "\"star\"",
4829               "\"thumb\""
4830             ],
4831             "optional": true,
4832             "field": "ratingType",
4833             "description": ""
4834           },
4835           {
4836             "group": "Body",
4837             "type": "Text",
4838             "optional": true,
4839             "field": "ratingMessage",
4840             "description": ""
4841           },
4842           {
4843             "group": "Body",
4844             "type": "Text",
4845             "optional": true,
4846             "field": "pathTranscript",
4847             "description": ""
4848           },
4849           {
4850             "group": "Body",
4851             "type": "String",
4852             "optional": true,
4853             "field": "mailTranscript",
4854             "description": ""
4855           },
4856           {
4857             "group": "Body",
4858             "type": "String",
4859             "optional": true,
4860             "field": "closedAt",
4861             "description": ""
4862           },
4863           {
4864             "group": "Body",
4865             "type": "String",
4866             "optional": true,
4867             "field": "disposition",
4868             "description": ""
4869           },
4870           {
4871             "group": "Body",
4872             "type": "String",
4873             "optional": true,
4874             "field": "secondDisposition",
4875             "description": ""
4876           },
4877           {
4878             "group": "Body",
4879             "type": "String",
4880             "optional": true,
4881             "field": "thirdDisposition",
4882             "description": ""
4883           },
4884           {
4885             "group": "Body",
4886             "type": "String",
4887             "optional": true,
4888             "field": "note",
4889             "description": ""
4890           },
4891           {
4892             "group": "Body",
4893             "type": "String",
4894             "optional": true,
4895             "field": "browserName",
4896             "description": ""
4897           },
4898           {
4899             "group": "Body",
4900             "type": "String",
4901             "optional": true,
4902             "field": "browserVersion",
4903             "description": ""
4904           },
4905           {
4906             "group": "Body",
4907             "type": "String",
4908             "optional": true,
4909             "field": "osName",
4910             "description": ""
4911           },
4912           {
4913             "group": "Body",
4914             "type": "String",
4915             "optional": true,
4916             "field": "osVersion",
4917             "description": ""
4918           },
4919           {
4920             "group": "Body",
4921             "type": "String",
4922             "optional": true,
4923             "field": "deviceModel",
4924             "description": ""
4925           },
4926           {
4927             "group": "Body",
4928             "type": "String",
4929             "optional": true,
4930             "field": "deviceVendor",
4931             "description": ""
4932           },
4933           {
4934             "group": "Body",
4935             "type": "String",
4936             "optional": true,
4937             "field": "deviceType",
4938             "description": ""
4939           },
4940           {
4941             "group": "Body",
4942             "type": "Text",
4943             "optional": true,
4944             "field": "referer",
4945             "description": ""
4946           },
4947           {
4948             "group": "Body",
4949             "type": "String",
4950             "optional": true,
4951             "field": "customerIp",
4952             "description": ""
4953           },
4954           {
4955             "group": "Body",
4956             "type": "Text",
4957             "optional": true,
4958             "field": "formData",
4959             "description": ""
4960           },
4961           {
4962             "group": "Body",
4963             "type": "String",
4964             "optional": true,
4965             "field": "read1stAt",
4966             "description": ""
4967           },
4968           {
4969             "group": "Body",
4970             "type": "String",
4971             "optional": true,
4972             "field": "lastMsgAt",
4973             "description": ""
4974           },
4975           {
4976             "group": "Body",
4977             "type": "String",
4978             "allowedValues": [
4979               "\"in\"",
4980               "\"out\""
4981             ],
4982             "optional": false,
4983             "field": "lastMsgDirection",
4984             "description": ""
4985           },
4986           {
4987             "group": "Body",
4988             "type": "String",
4989             "optional": true,
4990             "field": "closeReason",
4991             "description": ""
4992           },
4993           {
4994             "group": "Body",
4995             "type": "String",
4996             "optional": true,
4997             "field": "customerPort",
4998             "description": ""
4999           },
5000           {
5001             "group": "Body",
5002             "type": "Text",
5003             "optional": true,
5004             "field": "vidaooSessionId",
5005             "description": ""
5006           },
5007           {
5008             "group": "Body",
5009             "type": "Boolean",
5010             "optional": true,
5011             "field": "autoreplyExecuted",
5012             "description": ""
5013           }
5014         ]
5015       }
5016     },
5017     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5018     "version": "0.0.0",
5019     "filename": "server/api/chatWebsite/index.js",
5020     "groupTitle": "Chat_Websites"
5021   },
5022   {
5023     "type": "post",
5024     "url": "/api/chat/websites/{id}/logo",
5025     "title": "Add logo",
5026     "examples": [
5027       {
5028         "title": "Example usage:",
5029         "content": "curl https://{domain}/api/chat/websites/{id}/logo -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
5030         "type": "json"
5031       }
5032     ],
5033     "name": "addLogo",
5034     "group": "Chat_Websites",
5035     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5036     "version": "0.0.0",
5037     "filename": "server/api/chatWebsite/index.js",
5038     "groupTitle": "Chat_Websites"
5039   },
5040   {
5041     "type": "post",
5042     "url": "/api/chat/websites/{id}/proactive_actions",
5043     "title": "Creates new Proactive Actions",
5044     "examples": [
5045       {
5046         "title": "Example usage:",
5047         "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",
5048         "type": "json"
5049       }
5050     ],
5051     "name": "addProactiveActions",
5052     "group": "Chat_Websites",
5053     "parameter": {
5054       "fields": {
5055         "Body": [
5056           {
5057             "group": "Body",
5058             "type": "String",
5059             "optional": false,
5060             "field": "name",
5061             "description": ""
5062           },
5063           {
5064             "group": "Body",
5065             "type": "String",
5066             "allowedValues": [
5067               "\"mouseOver\"",
5068               "\"timeout\""
5069             ],
5070             "optional": true,
5071             "field": "type",
5072             "description": ""
5073           },
5074           {
5075             "group": "Body",
5076             "type": "String",
5077             "optional": true,
5078             "field": "selector",
5079             "description": ""
5080           },
5081           {
5082             "group": "Body",
5083             "type": "Integer",
5084             "optional": true,
5085             "field": "timeout",
5086             "description": ""
5087           }
5088         ]
5089       }
5090     },
5091     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5092     "version": "0.0.0",
5093     "filename": "server/api/chatWebsite/index.js",
5094     "groupTitle": "Chat_Websites"
5095   },
5096   {
5097     "type": "post",
5098     "url": "/api/chat/websites/{id}/system_avatar",
5099     "title": "Add system avatar",
5100     "examples": [
5101       {
5102         "title": "Example usage:",
5103         "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",
5104         "type": "json"
5105       }
5106     ],
5107     "name": "addSystemAvatar",
5108     "group": "Chat_Websites",
5109     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5110     "version": "0.0.0",
5111     "filename": "server/api/chatWebsite/index.js",
5112     "groupTitle": "Chat_Websites"
5113   },
5114   {
5115     "type": "get",
5116     "url": "/api/chat/websites/{id}/canned_answers",
5117     "title": "Gets account canned answers",
5118     "examples": [
5119       {
5120         "title": "Example usage:",
5121         "content": "curl https://{domain}/api/chat/websites/{id}/canned_answers -v -u {name}:{password} -X GET",
5122         "type": "json"
5123       }
5124     ],
5125     "name": "getAnswers",
5126     "group": "Chat_Websites",
5127     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5128     "version": "0.0.0",
5129     "filename": "server/api/chatWebsite/index.js",
5130     "groupTitle": "Chat_Websites"
5131   },
5132   {
5133     "type": "get",
5134     "url": "/api/chat/websites/{id}/applications",
5135     "title": "Gets Website Applications",
5136     "examples": [
5137       {
5138         "title": "Example usage:",
5139         "content": "curl https://{domain}/api/chat/websites/{id}/applications -v -u {name}:{password} -X GET",
5140         "type": "json"
5141       }
5142     ],
5143     "name": "getApplications",
5144     "group": "Chat_Websites",
5145     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5146     "version": "0.0.0",
5147     "filename": "server/api/chatWebsite/index.js",
5148     "groupTitle": "Chat_Websites"
5149   },
5150   {
5151     "type": "get",
5152     "url": "/api/chat/websites/{id}/avatar",
5153     "title": "Get avatar",
5154     "examples": [
5155       {
5156         "title": "Example usage:",
5157         "content": "curl https://{domain}/api/chat/websites/{id}/avatar -v -u {name}:{password} -X GET",
5158         "type": "json"
5159       }
5160     ],
5161     "name": "getAvatar",
5162     "group": "Chat_Websites",
5163     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5164     "version": "0.0.0",
5165     "filename": "server/api/chatWebsite/index.js",
5166     "groupTitle": "Chat_Websites"
5167   },
5168   {
5169     "type": "get",
5170     "url": "/api/chat/websites/{id}/customer_avatar",
5171     "title": "Get Customer Avatar",
5172     "examples": [
5173       {
5174         "title": "Example usage:",
5175         "content": "curl https://{domain}/api/chat/websites/{id}/customer_avatar -v -u {name}:{password} -X GET",
5176         "type": "json"
5177       }
5178     ],
5179     "name": "getCustomerAvatar",
5180     "group": "Chat_Websites",
5181     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5182     "version": "0.0.0",
5183     "filename": "server/api/chatWebsite/index.js",
5184     "groupTitle": "Chat_Websites"
5185   },
5186   {
5187     "type": "get",
5188     "url": "/api/chat/websites/{id}/dispositions",
5189     "title": "Gets account dispositions",
5190     "examples": [
5191       {
5192         "title": "Example usage:",
5193         "content": "curl https://{domain}/api/chat/websites/{id}/dispositions -v -u {name}:{password} -X GET",
5194         "type": "json"
5195       }
5196     ],
5197     "name": "getDispositions",
5198     "group": "Chat_Websites",
5199     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5200     "version": "0.0.0",
5201     "filename": "server/api/chatWebsite/index.js",
5202     "groupTitle": "Chat_Websites"
5203   },
5204   {
5205     "type": "get",
5206     "url": "/api/chat/websites/{id}/fields",
5207     "title": "Gets Website Fields",
5208     "examples": [
5209       {
5210         "title": "Example usage:",
5211         "content": "curl https://{domain}/api/chat/websites/{id}/fields -v -u {name}:{password} -X GET",
5212         "type": "json"
5213       }
5214     ],
5215     "name": "getFields",
5216     "group": "Chat_Websites",
5217     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5218     "version": "0.0.0",
5219     "filename": "server/api/chatWebsite/index.js",
5220     "groupTitle": "Chat_Websites"
5221   },
5222   {
5223     "type": "get",
5224     "url": "/api/chat/websites/{id}/interactions",
5225     "title": "Gets Website Interactions",
5226     "examples": [
5227       {
5228         "title": "Example usage:",
5229         "content": "curl https://{domain}/api/chat/websites/{id}/interactions -v -u {name}:{password} -X GET",
5230         "type": "json"
5231       }
5232     ],
5233     "name": "getInteraction",
5234     "group": "Chat_Websites",
5235     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5236     "version": "0.0.0",
5237     "filename": "server/api/chatWebsite/index.js",
5238     "groupTitle": "Chat_Websites"
5239   },
5240   {
5241     "type": "get",
5242     "url": "/api/chat/websites/{id}/logo",
5243     "title": "Get logo",
5244     "examples": [
5245       {
5246         "title": "Example usage:",
5247         "content": "curl https://{domain}/api/chat/websites/{id}/logo -v -u {name}:{password} -X GET",
5248         "type": "json"
5249       }
5250     ],
5251     "name": "getLogo",
5252     "group": "Chat_Websites",
5253     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5254     "version": "0.0.0",
5255     "filename": "server/api/chatWebsite/index.js",
5256     "groupTitle": "Chat_Websites"
5257   },
5258   {
5259     "type": "get",
5260     "url": "/api/chat/websites/{id}/offline_messages",
5261     "title": "Gets Website Offline Messages",
5262     "examples": [
5263       {
5264         "title": "Example usage:",
5265         "content": "curl https://{domain}/api/chat/websites/{id}/offline_messages -v -u {name}:{password} -X GET",
5266         "type": "json"
5267       }
5268     ],
5269     "name": "getOfflineMessages",
5270     "group": "Chat_Websites",
5271     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5272     "version": "0.0.0",
5273     "filename": "server/api/chatWebsite/index.js",
5274     "groupTitle": "Chat_Websites"
5275   },
5276   {
5277     "type": "get",
5278     "url": "/api/chat/websites/{id}/proactive_actions",
5279     "title": "Gets Website Proactive Actions",
5280     "examples": [
5281       {
5282         "title": "Example usage:",
5283         "content": "curl https://{domain}/api/chat/websites/{id}/proactive_actions -v -u {name}:{password} -X GET",
5284         "type": "json"
5285       }
5286     ],
5287     "name": "getProactiveActions",
5288     "group": "Chat_Websites",
5289     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5290     "version": "0.0.0",
5291     "filename": "server/api/chatWebsite/index.js",
5292     "groupTitle": "Chat_Websites"
5293   },
5294   {
5295     "type": "get",
5296     "url": "/api/chat/websites/{id}/snippet",
5297     "title": "Gets Website Snippet",
5298     "examples": [
5299       {
5300         "title": "Example usage:",
5301         "content": "curl https://{domain}/api/chat/websites/{id}/snippet -v -u {name}:{password} -X GET",
5302         "type": "json"
5303       }
5304     ],
5305     "name": "getSnippet",
5306     "group": "Chat_Websites",
5307     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5308     "version": "0.0.0",
5309     "filename": "server/api/chatWebsite/index.js",
5310     "groupTitle": "Chat_Websites"
5311   },
5312   {
5313     "type": "get",
5314     "url": "/api/chat/websites/{id}/system_avatar",
5315     "title": "Get System Avatar",
5316     "examples": [
5317       {
5318         "title": "Example usage:",
5319         "content": "curl https://{domain}/api/chat/websites/{id}/system_avatar -v -u {name}:{password} -X GET",
5320         "type": "json"
5321       }
5322     ],
5323     "name": "getSystemAvatar",
5324     "group": "Chat_Websites",
5325     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5326     "version": "0.0.0",
5327     "filename": "server/api/chatWebsite/index.js",
5328     "groupTitle": "Chat_Websites"
5329   },
5330   {
5331     "type": "post",
5332     "url": "/api/chat/websites/{id}/notify",
5333     "title": "Notify new message",
5334     "examples": [
5335       {
5336         "title": "Example usage:",
5337         "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",
5338         "type": "json"
5339       }
5340     ],
5341     "name": "notify",
5342     "group": "Chat_Websites",
5343     "description": "<p>Motion 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>",
5344     "version": "0.0.0",
5345     "filename": "server/api/chatWebsite/index.js",
5346     "groupTitle": "Chat_Websites"
5347   },
5348   {
5349     "type": "post",
5350     "url": "/api/chat/websites/{id}/offline",
5351     "title": "Offline message",
5352     "examples": [
5353       {
5354         "title": "Example usage:",
5355         "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",
5356         "type": "json"
5357       }
5358     ],
5359     "name": "offline",
5360     "group": "Chat_Websites",
5361     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5362     "version": "0.0.0",
5363     "filename": "server/api/chatWebsite/index.js",
5364     "groupTitle": "Chat_Websites"
5365   },
5366   {
5367     "type": "put",
5368     "url": "/api/chat/messages/{id}/reject",
5369     "title": "Rejects message",
5370     "examples": [
5371       {
5372         "title": "Example usage:",
5373         "content": "curl https://{domain}/api/chat/messages/{id}/reject \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
5374         "type": "json"
5375       }
5376     ],
5377     "name": "rejectMessage",
5378     "group": "Chat_Websites",
5379     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5380     "version": "0.0.0",
5381     "filename": "server/api/chatMessage/index.js",
5382     "groupTitle": "Chat_Websites"
5383   },
5384   {
5385     "type": "put",
5386     "url": "/api/chat/websites/{id}",
5387     "title": "Update an existing Website",
5388     "examples": [
5389       {
5390         "title": "Example usage:",
5391         "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",
5392         "type": "json"
5393       }
5394     ],
5395     "name": "updateWebsites",
5396     "group": "Chat_Websites",
5397     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5398     "version": "0.0.0",
5399     "filename": "server/api/chatWebsite/index.js",
5400     "groupTitle": "Chat_Websites"
5401   },
5402   {
5403     "type": "post",
5404     "url": "/api/cloudProviders",
5405     "title": "Creates a new CloudProvider",
5406     "examples": [
5407       {
5408         "title": "Example usage:",
5409         "content": "curl https://{domain}/api/cloudProviders -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
5410         "type": "json"
5411       }
5412     ],
5413     "name": "CreateCloudProviders",
5414     "group": "CloudProviders",
5415     "parameter": {
5416       "fields": {
5417         "Body": [
5418           {
5419             "group": "Body",
5420             "type": "String",
5421             "optional": false,
5422             "field": "name",
5423             "description": ""
5424           },
5425           {
5426             "group": "Body",
5427             "type": "String",
5428             "allowedValues": [
5429               "\"AmazonAWS\"",
5430               "\"Google\""
5431             ],
5432             "optional": false,
5433             "field": "service",
5434             "description": ""
5435           },
5436           {
5437             "group": "Body",
5438             "type": "String",
5439             "optional": true,
5440             "field": "data1",
5441             "description": ""
5442           },
5443           {
5444             "group": "Body",
5445             "type": "String",
5446             "optional": true,
5447             "field": "data2",
5448             "description": ""
5449           }
5450         ]
5451       }
5452     },
5453     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5454     "version": "0.0.0",
5455     "filename": "server/api/cloudProvider/index.js",
5456     "groupTitle": "CloudProviders"
5457   },
5458   {
5459     "type": "delete",
5460     "url": "/api/cloudProviders/{id}",
5461     "title": "Deletes a CloudProvider",
5462     "examples": [
5463       {
5464         "title": "Example usage:",
5465         "content": "curl https://{domain}/api/cloudProviders/{id} -v -u {name}:{password} -X DELETE",
5466         "type": "json"
5467       }
5468     ],
5469     "name": "DeleteCloudProviders",
5470     "group": "CloudProviders",
5471     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5472     "version": "0.0.0",
5473     "filename": "server/api/cloudProvider/index.js",
5474     "groupTitle": "CloudProviders"
5475   },
5476   {
5477     "type": "get",
5478     "url": "/api/cloudProviders",
5479     "title": "Gets a list of CloudProviders",
5480     "examples": [
5481       {
5482         "title": "Example usage:",
5483         "content": "curl https://{domain}/api/cloudProviders -v -u {name}:{password}",
5484         "type": "json"
5485       }
5486     ],
5487     "name": "GetCloudProviders",
5488     "group": "CloudProviders",
5489     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
5490     "version": "0.0.0",
5491     "filename": "server/api/cloudProvider/index.js",
5492     "groupTitle": "CloudProviders"
5493   },
5494   {
5495     "type": "get",
5496     "url": "/api/cloudProviders/{id}",
5497     "title": "Gets a single CloudProvider",
5498     "examples": [
5499       {
5500         "title": "Example usage:",
5501         "content": "curl https://{domain}/api/cloudProviders/{id} -v -u {name}:{password}",
5502         "type": "json"
5503       }
5504     ],
5505     "name": "ShowCloudProviders",
5506     "group": "CloudProviders",
5507     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5508     "version": "0.0.0",
5509     "filename": "server/api/cloudProvider/index.js",
5510     "groupTitle": "CloudProviders"
5511   },
5512   {
5513     "type": "put",
5514     "url": "/api/cloudProviders/{id}",
5515     "title": "Update an existing CloudProvider",
5516     "examples": [
5517       {
5518         "title": "Example usage:",
5519         "content": "curl https://{domain}/api/cloudProviders/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
5520         "type": "json"
5521       }
5522     ],
5523     "name": "updateCloudProviders",
5524     "group": "CloudProviders",
5525     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5526     "version": "0.0.0",
5527     "filename": "server/api/cloudProvider/index.js",
5528     "groupTitle": "CloudProviders"
5529   },
5530   {
5531     "type": "post",
5532     "url": "/api/cm/companies",
5533     "title": "Creates a new Company",
5534     "examples": [
5535       {
5536         "title": "Example usage:",
5537         "content": "curl https://{domain}/api/cm/companies -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
5538         "type": "json"
5539       }
5540     ],
5541     "name": "CreateCompanies",
5542     "group": "Cm_Companies",
5543     "parameter": {
5544       "fields": {
5545         "Body": [
5546           {
5547             "group": "Body",
5548             "type": "String",
5549             "optional": false,
5550             "field": "name",
5551             "description": ""
5552           },
5553           {
5554             "group": "Body",
5555             "type": "String",
5556             "optional": true,
5557             "field": "vat",
5558             "description": ""
5559           },
5560           {
5561             "group": "Body",
5562             "type": "String",
5563             "optional": true,
5564             "field": "companyId",
5565             "description": ""
5566           },
5567           {
5568             "group": "Body",
5569             "type": "String",
5570             "optional": true,
5571             "field": "website",
5572             "description": ""
5573           },
5574           {
5575             "group": "Body",
5576             "type": "String",
5577             "optional": true,
5578             "field": "phone",
5579             "description": ""
5580           },
5581           {
5582             "group": "Body",
5583             "type": "String",
5584             "optional": true,
5585             "field": "fax",
5586             "description": ""
5587           },
5588           {
5589             "group": "Body",
5590             "type": "String",
5591             "optional": true,
5592             "field": "type",
5593             "description": ""
5594           },
5595           {
5596             "group": "Body",
5597             "type": "String",
5598             "optional": true,
5599             "field": "street",
5600             "description": ""
5601           },
5602           {
5603             "group": "Body",
5604             "type": "String",
5605             "optional": true,
5606             "field": "postalCode",
5607             "description": ""
5608           },
5609           {
5610             "group": "Body",
5611             "type": "String",
5612             "optional": true,
5613             "field": "city",
5614             "description": ""
5615           },
5616           {
5617             "group": "Body",
5618             "type": "String",
5619             "optional": true,
5620             "field": "country",
5621             "description": ""
5622           },
5623           {
5624             "group": "Body",
5625             "type": "String",
5626             "optional": true,
5627             "field": "email",
5628             "description": ""
5629           },
5630           {
5631             "group": "Body",
5632             "type": "String",
5633             "optional": true,
5634             "field": "emailDomain",
5635             "description": ""
5636           },
5637           {
5638             "group": "Body",
5639             "type": "String",
5640             "optional": true,
5641             "field": "sStreet",
5642             "description": ""
5643           },
5644           {
5645             "group": "Body",
5646             "type": "String",
5647             "optional": true,
5648             "field": "sPostalCode",
5649             "description": ""
5650           },
5651           {
5652             "group": "Body",
5653             "type": "String",
5654             "optional": true,
5655             "field": "sCity",
5656             "description": ""
5657           },
5658           {
5659             "group": "Body",
5660             "type": "String",
5661             "optional": true,
5662             "field": "sCountry",
5663             "description": ""
5664           },
5665           {
5666             "group": "Body",
5667             "type": "String",
5668             "optional": true,
5669             "field": "description",
5670             "description": ""
5671           }
5672         ]
5673       }
5674     },
5675     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5676     "version": "0.0.0",
5677     "filename": "server/api/cmCompany/index.js",
5678     "groupTitle": "Cm_Companies"
5679   },
5680   {
5681     "type": "delete",
5682     "url": "/api/cm/companies/{id}",
5683     "title": "Deletes a Company",
5684     "examples": [
5685       {
5686         "title": "Example usage:",
5687         "content": "curl https://{domain}/api/cm/companies/{id} -v -u {name}:{password} -X DELETE",
5688         "type": "json"
5689       }
5690     ],
5691     "name": "DeleteCompanies",
5692     "group": "Cm_Companies",
5693     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5694     "version": "0.0.0",
5695     "filename": "server/api/cmCompany/index.js",
5696     "groupTitle": "Cm_Companies"
5697   },
5698   {
5699     "type": "get",
5700     "url": "/api/cm/companies/describe",
5701     "title": "Gets table info about Companies",
5702     "examples": [
5703       {
5704         "title": "Example usage:",
5705         "content": "curl https://{domain}/api/cm/companies/describe -v -u {name}:{password}",
5706         "type": "json"
5707       }
5708     ],
5709     "name": "DescribeCompanies",
5710     "group": "Cm_Companies",
5711     "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>",
5712     "version": "0.0.0",
5713     "filename": "server/api/cmCompany/index.js",
5714     "groupTitle": "Cm_Companies"
5715   },
5716   {
5717     "type": "get",
5718     "url": "/api/cm/companies",
5719     "title": "Gets a list of Companies",
5720     "examples": [
5721       {
5722         "title": "Example usage:",
5723         "content": "curl https://{domain}/api/cm/companies -v -u {name}:{password}",
5724         "type": "json"
5725       }
5726     ],
5727     "name": "GetCompanies",
5728     "group": "Cm_Companies",
5729     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
5730     "version": "0.0.0",
5731     "filename": "server/api/cmCompany/index.js",
5732     "groupTitle": "Cm_Companies"
5733   },
5734   {
5735     "type": "get",
5736     "url": "/api/cm/companies/{id}",
5737     "title": "Gets a single Company",
5738     "examples": [
5739       {
5740         "title": "Example usage:",
5741         "content": "curl https://{domain}/api/cm/companies/{id} -v -u {name}:{password}",
5742         "type": "json"
5743       }
5744     ],
5745     "name": "ShowCompanies",
5746     "group": "Cm_Companies",
5747     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5748     "version": "0.0.0",
5749     "filename": "server/api/cmCompany/index.js",
5750     "groupTitle": "Cm_Companies"
5751   },
5752   {
5753     "type": "post",
5754     "url": "/api/cm/companies/{id}/contacts",
5755     "title": "Creates new contacts",
5756     "examples": [
5757       {
5758         "title": "Example usage:",
5759         "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",
5760         "type": "json"
5761       }
5762     ],
5763     "name": "addContacts",
5764     "group": "Cm_Companies",
5765     "parameter": {
5766       "fields": {
5767         "Body": [
5768           {
5769             "group": "Body",
5770             "type": "String",
5771             "optional": false,
5772             "field": "firstName",
5773             "description": ""
5774           },
5775           {
5776             "group": "Body",
5777             "type": "String",
5778             "optional": true,
5779             "field": "lastName",
5780             "description": ""
5781           },
5782           {
5783             "group": "Body",
5784             "type": "String",
5785             "optional": true,
5786             "field": "street",
5787             "description": ""
5788           },
5789           {
5790             "group": "Body",
5791             "type": "String",
5792             "optional": true,
5793             "field": "postalCode",
5794             "description": ""
5795           },
5796           {
5797             "group": "Body",
5798             "type": "String",
5799             "optional": true,
5800             "field": "city",
5801             "description": ""
5802           },
5803           {
5804             "group": "Body",
5805             "type": "String",
5806             "optional": true,
5807             "field": "country",
5808             "description": ""
5809           },
5810           {
5811             "group": "Body",
5812             "type": "String",
5813             "optional": true,
5814             "field": "dateOfBirth",
5815             "description": ""
5816           },
5817           {
5818             "group": "Body",
5819             "type": "Text",
5820             "optional": true,
5821             "field": "description",
5822             "description": ""
5823           },
5824           {
5825             "group": "Body",
5826             "type": "String",
5827             "optional": true,
5828             "field": "phone",
5829             "description": ""
5830           },
5831           {
5832             "group": "Body",
5833             "type": "String",
5834             "optional": true,
5835             "field": "mobile",
5836             "description": ""
5837           },
5838           {
5839             "group": "Body",
5840             "type": "String",
5841             "optional": true,
5842             "field": "fax",
5843             "description": ""
5844           },
5845           {
5846             "group": "Body",
5847             "type": "String",
5848             "optional": true,
5849             "field": "email",
5850             "description": ""
5851           },
5852           {
5853             "group": "Body",
5854             "type": "String",
5855             "optional": true,
5856             "field": "url",
5857             "description": ""
5858           },
5859           {
5860             "group": "Body",
5861             "type": "String",
5862             "optional": true,
5863             "field": "facebook",
5864             "description": ""
5865           },
5866           {
5867             "group": "Body",
5868             "type": "String",
5869             "optional": true,
5870             "field": "fb_data",
5871             "description": ""
5872           },
5873           {
5874             "group": "Body",
5875             "type": "String",
5876             "optional": true,
5877             "field": "twitter",
5878             "description": ""
5879           },
5880           {
5881             "group": "Body",
5882             "type": "String",
5883             "optional": true,
5884             "field": "skype",
5885             "description": ""
5886           },
5887           {
5888             "group": "Body",
5889             "type": "String",
5890             "optional": true,
5891             "field": "teams",
5892             "description": ""
5893           },
5894           {
5895             "group": "Body",
5896             "type": "String",
5897             "optional": true,
5898             "field": "viber",
5899             "description": ""
5900           },
5901           {
5902             "group": "Body",
5903             "type": "String",
5904             "optional": true,
5905             "field": "line",
5906             "description": ""
5907           },
5908           {
5909             "group": "Body",
5910             "type": "String",
5911             "optional": true,
5912             "field": "wechat",
5913             "description": ""
5914           },
5915           {
5916             "group": "Body",
5917             "type": "String",
5918             "optional": true,
5919             "field": "telegram",
5920             "description": ""
5921           },
5922           {
5923             "group": "Body",
5924             "type": "Integer",
5925             "optional": true,
5926             "field": "UserId",
5927             "description": ""
5928           },
5929           {
5930             "group": "Body",
5931             "type": "Integer",
5932             "optional": true,
5933             "field": "priority",
5934             "description": ""
5935           },
5936           {
5937             "group": "Body",
5938             "type": "String",
5939             "optional": true,
5940             "field": "scheduledat",
5941             "description": ""
5942           }
5943         ]
5944       }
5945     },
5946     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5947     "version": "0.0.0",
5948     "filename": "server/api/cmCompany/index.js",
5949     "groupTitle": "Cm_Companies"
5950   },
5951   {
5952     "type": "get",
5953     "url": "/api/cm/companies/{id}/contacts",
5954     "title": "Gets List Contacts",
5955     "examples": [
5956       {
5957         "title": "Example usage:",
5958         "content": "curl https://{domain}/api/fax/companies/{id}/contacts -v -u {name}:{password} -X GET",
5959         "type": "json"
5960       }
5961     ],
5962     "name": "getContacts",
5963     "group": "Cm_Companies",
5964     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5965     "version": "0.0.0",
5966     "filename": "server/api/cmCompany/index.js",
5967     "groupTitle": "Cm_Companies"
5968   },
5969   {
5970     "type": "put",
5971     "url": "/api/cm/companies/{id}",
5972     "title": "Update an existing Company",
5973     "examples": [
5974       {
5975         "title": "Example usage:",
5976         "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",
5977         "type": "json"
5978       }
5979     ],
5980     "name": "updateCompanies",
5981     "group": "Cm_Companies",
5982     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5983     "version": "0.0.0",
5984     "filename": "server/api/cmCompany/index.js",
5985     "groupTitle": "Cm_Companies"
5986   },
5987   {
5988     "type": "delete",
5989     "url": "/api/cm/contacts/{id}",
5990     "title": "Deletes a Contact",
5991     "examples": [
5992       {
5993         "title": "Example usage:",
5994         "content": "curl https://{domain}/api/cm/contacts/{id} -v -u {name}:{password} -X DELETE",
5995         "type": "json"
5996       }
5997     ],
5998     "name": "DeleteContacts",
5999     "group": "Cm_Contacts",
6000     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6001     "version": "0.0.0",
6002     "filename": "server/api/cmContact/index.js",
6003     "groupTitle": "Cm_Contacts"
6004   },
6005   {
6006     "type": "get",
6007     "url": "/api/cm/contacts/describe",
6008     "title": "Gets table info about Contacts",
6009     "examples": [
6010       {
6011         "title": "Example usage:",
6012         "content": "curl https://{domain}/api/cm/contacts/describe -v -u {name}:{password}",
6013         "type": "json"
6014       }
6015     ],
6016     "name": "DescribeContacts",
6017     "group": "Cm_Contacts",
6018     "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>",
6019     "version": "0.0.0",
6020     "filename": "server/api/cmContact/index.js",
6021     "groupTitle": "Cm_Contacts"
6022   },
6023   {
6024     "type": "get",
6025     "url": "/api/cm/contacts",
6026     "title": "Gets a list of Contacts",
6027     "examples": [
6028       {
6029         "title": "Example usage:",
6030         "content": "curl https://{domain}/api/cm/contacts -v -u {name}:{password}",
6031         "type": "json"
6032       }
6033     ],
6034     "name": "GetContacts",
6035     "group": "Cm_Contacts",
6036     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
6037     "version": "0.0.0",
6038     "filename": "server/api/cmContact/index.js",
6039     "groupTitle": "Cm_Contacts"
6040   },
6041   {
6042     "type": "get",
6043     "url": "/api/cm/contacts/{id}/finals",
6044     "title": "Gets contact hopper finals",
6045     "examples": [
6046       {
6047         "title": "Example usage:",
6048         "content": "curl https://{domain}/api/cm/contacts/{id}/hopper_finals -v -u {name}:{password}  -X GET",
6049         "type": "json"
6050       }
6051     ],
6052     "name": "GetHopperFinals",
6053     "group": "Cm_Contacts",
6054     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6055     "version": "0.0.0",
6056     "filename": "server/api/cmContact/index.js",
6057     "groupTitle": "Cm_Contacts"
6058   },
6059   {
6060     "type": "get",
6061     "url": "/api/cm/contacts/{id}/hopper_histories",
6062     "title": "Gets contact hopper histories",
6063     "examples": [
6064       {
6065         "title": "Example usage:",
6066         "content": "curl https://{domain}/api/cm/contacts/{id}/hopper_histories -v -u {name}:{password} -X GET",
6067         "type": "json"
6068       }
6069     ],
6070     "name": "GetHopperHistories",
6071     "group": "Cm_Contacts",
6072     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6073     "version": "0.0.0",
6074     "filename": "server/api/cmContact/index.js",
6075     "groupTitle": "Cm_Contacts"
6076   },
6077   {
6078     "type": "get",
6079     "url": "/api/cm/contacts/{id}/hoppers",
6080     "title": "Gets contact hoppers",
6081     "examples": [
6082       {
6083         "title": "Example usage:",
6084         "content": "curl https://{domain}/api/cm/contacts/{id}/hoppers -v -u {name}:{password} -X GET",
6085         "type": "json"
6086       }
6087     ],
6088     "name": "GetHoppers",
6089     "group": "Cm_Contacts",
6090     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6091     "version": "0.0.0",
6092     "filename": "server/api/cmContact/index.js",
6093     "groupTitle": "Cm_Contacts"
6094   },
6095   {
6096     "type": "post",
6097     "url": "/api/cm/contacts/create_many",
6098     "title": "Create Contacts",
6099     "examples": [
6100       {
6101         "title": "Example usage:",
6102         "content": "curl https://{domain}/api/cm/contacts/create_many -d '[{\"firstName\": \"John\", \"lastName\": \"doe\", \"...\": \"...\"}]' -v -u {name}:{password} -X POST",
6103         "type": "json"
6104       }
6105     ],
6106     "name": "bulkCreate",
6107     "group": "Cm_Contacts",
6108     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6109     "version": "0.0.0",
6110     "filename": "server/api/cmContact/index.js",
6111     "groupTitle": "Cm_Contacts"
6112   },
6113   {
6114     "type": "post",
6115     "url": "/api/cm/contacts",
6116     "title": "Create Contact",
6117     "examples": [
6118       {
6119         "title": "Example usage:",
6120         "content": "curl https://{domain}/api/cm/contacts -d '{\"firstName\": \"John\", \"lastName\": \"doe\", \"...\": \"...\"}' -v -u {name}:{password} -X POST",
6121         "type": "json"
6122       }
6123     ],
6124     "name": "create",
6125     "group": "Cm_Contacts",
6126     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6127     "version": "0.0.0",
6128     "filename": "server/api/cmContact/index.js",
6129     "groupTitle": "Cm_Contacts"
6130   },
6131   {
6132     "type": "get",
6133     "url": "/api/cm/contacts/{id}/journey",
6134     "title": "Gets customer journey",
6135     "examples": [
6136       {
6137         "title": "Example usage:",
6138         "content": "curl https://{domain}/api/cm/contacts/{id}/journey -v -u {name}:{password}  -X GET",
6139         "type": "json"
6140       }
6141     ],
6142     "name": "getJourney",
6143     "group": "Cm_Contacts",
6144     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6145     "version": "0.0.0",
6146     "filename": "server/api/cmContact/index.js",
6147     "groupTitle": "Cm_Contacts"
6148   },
6149   {
6150     "type": "get",
6151     "url": "/api/cm/contacts/{id}/jscripty_sessions",
6152     "title": "Gets contact hopper blacks",
6153     "examples": [
6154       {
6155         "title": "Example usage:",
6156         "content": "curl https://{domain}/api/cm/contacts/{id}/hopper_black -v -u {name}:{password}  -X GET",
6157         "type": "json"
6158       }
6159     ],
6160     "name": "getJscriptySessions",
6161     "group": "Cm_Contacts",
6162     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6163     "version": "0.0.0",
6164     "filename": "server/api/cmContact/index.js",
6165     "groupTitle": "Cm_Contacts"
6166   },
6167   {
6168     "type": "get",
6169     "url": "/api/cm/contacts/{id}/tags",
6170     "title": "Gets configurations tags",
6171     "examples": [
6172       {
6173         "title": "Example usage:",
6174         "content": "curl https://{domain}/api/cm/contacts/{id}/tags -v -u {name}:{password} -X GET",
6175         "type": "json"
6176       }
6177     ],
6178     "name": "getTags",
6179     "group": "Cm_Contacts",
6180     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6181     "version": "0.0.0",
6182     "filename": "server/api/cmContact/index.js",
6183     "groupTitle": "Cm_Contacts"
6184   },
6185   {
6186     "type": "post",
6187     "url": "/api/cm/contacts/merge",
6188     "title": "Merge Contact",
6189     "examples": [
6190       {
6191         "title": "Example usage:",
6192         "content": "curl https://{domain}/api/cm/contacts/merge -d '{\"from\": 1, \"to\": 2}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
6193         "type": "json"
6194       }
6195     ],
6196     "name": "merge",
6197     "group": "Cm_Contacts",
6198     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6199     "version": "0.0.0",
6200     "filename": "server/api/cmContact/index.js",
6201     "groupTitle": "Cm_Contacts"
6202   },
6203   {
6204     "type": "post",
6205     "url": "/api/cm/contacts/{id}/tags",
6206     "title": "Sets new tags",
6207     "examples": [
6208       {
6209         "title": "Example usage:",
6210         "content": "curl https://{domain}/api/cm/contacts/{id}/tags -d '{\"ids\": [1,12]}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
6211         "type": "json"
6212       }
6213     ],
6214     "name": "setTags",
6215     "group": "Cm_Contacts",
6216     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6217     "version": "0.0.0",
6218     "filename": "server/api/cmContact/index.js",
6219     "groupTitle": "Cm_Contacts"
6220   },
6221   {
6222     "type": "get",
6223     "url": "/api/cm/contacts/{id}",
6224     "title": "Gets a single Contact",
6225     "examples": [
6226       {
6227         "title": "Example usage:",
6228         "content": "curl https://{domain}/api/cm/contacts/{id} -v -u {name}:{password} -X GET",
6229         "type": "json"
6230       }
6231     ],
6232     "name": "show",
6233     "group": "Cm_Contacts",
6234     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6235     "version": "0.0.0",
6236     "filename": "server/api/cmContact/index.js",
6237     "groupTitle": "Cm_Contacts"
6238   },
6239   {
6240     "type": "put",
6241     "url": "/api/cm/contacts/{id}",
6242     "title": "Update a single Contact",
6243     "examples": [
6244       {
6245         "title": "Example usage:",
6246         "content": "curl https://{domain}/api/cm/contacts/{id} -d '{\"firstName\": \"John\", \"lastName\": \"Doe\"}' -v -u {name}:{password} -X PUT",
6247         "type": "json"
6248       }
6249     ],
6250     "name": "update",
6251     "group": "Cm_Contacts",
6252     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6253     "version": "0.0.0",
6254     "filename": "server/api/cmContact/index.js",
6255     "groupTitle": "Cm_Contacts"
6256   },
6257   {
6258     "type": "delete",
6259     "url": "/api/cm/custom_fields/{id}",
6260     "title": "Deletes a Custom Field",
6261     "examples": [
6262       {
6263         "title": "Example usage:",
6264         "content": "curl https://{domain}/api/cm/custom_fields/{id} -v -u {name}:{password} -X DELETE",
6265         "type": "json"
6266       }
6267     ],
6268     "name": "DeleteCustom_Fields",
6269     "group": "Cm_Custom_Fields",
6270     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6271     "version": "0.0.0",
6272     "filename": "server/api/cmCustomField/index.js",
6273     "groupTitle": "Cm_Custom_Fields"
6274   },
6275   {
6276     "type": "get",
6277     "url": "/api/cm/custom_fields",
6278     "title": "Gets a list of Custom Fields",
6279     "examples": [
6280       {
6281         "title": "Example usage:",
6282         "content": "curl https://{domain}/api/cm/custom_fields -v -u {name}:{password}",
6283         "type": "json"
6284       }
6285     ],
6286     "name": "GetCustom_Fields",
6287     "group": "Cm_Custom_Fields",
6288     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
6289     "version": "0.0.0",
6290     "filename": "server/api/cmCustomField/index.js",
6291     "groupTitle": "Cm_Custom_Fields"
6292   },
6293   {
6294     "type": "get",
6295     "url": "/api/cm/custom_fields/{id}",
6296     "title": "Gets a single Custom Field",
6297     "examples": [
6298       {
6299         "title": "Example usage:",
6300         "content": "curl https://{domain}/api/cm/custom_fields/{id} -v -u {name}:{password}",
6301         "type": "json"
6302       }
6303     ],
6304     "name": "ShowCustom_Fields",
6305     "group": "Cm_Custom_Fields",
6306     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6307     "version": "0.0.0",
6308     "filename": "server/api/cmCustomField/index.js",
6309     "groupTitle": "Cm_Custom_Fields"
6310   },
6311   {
6312     "type": "put",
6313     "url": "/api/cm/custom_fields/{id}",
6314     "title": "Update an existing Custom Field",
6315     "examples": [
6316       {
6317         "title": "Example usage:",
6318         "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",
6319         "type": "json"
6320       }
6321     ],
6322     "name": "updateCustom_Fields",
6323     "group": "Cm_Custom_Fields",
6324     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6325     "version": "0.0.0",
6326     "filename": "server/api/cmCustomField/index.js",
6327     "groupTitle": "Cm_Custom_Fields"
6328   },
6329   {
6330     "type": "post",
6331     "url": "/api/cm/hopper",
6332     "title": "Creates a new Hopper",
6333     "examples": [
6334       {
6335         "title": "Example usage:",
6336         "content": "curl https://{domain}/api/cm/hopper -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
6337         "type": "json"
6338       }
6339     ],
6340     "name": "CreateHopper",
6341     "group": "Cm_Hopper",
6342     "parameter": {
6343       "fields": {
6344         "Body": [
6345           {
6346             "group": "Body",
6347             "type": "String",
6348             "optional": false,
6349             "field": "phone",
6350             "description": ""
6351           },
6352           {
6353             "group": "Body",
6354             "type": "Boolean",
6355             "optional": true,
6356             "field": "active",
6357             "description": ""
6358           },
6359           {
6360             "group": "Body",
6361             "type": "String",
6362             "optional": true,
6363             "field": "scheduledat",
6364             "description": ""
6365           },
6366           {
6367             "group": "Body",
6368             "type": "Integer",
6369             "optional": true,
6370             "field": "countbusyretry",
6371             "description": ""
6372           },
6373           {
6374             "group": "Body",
6375             "type": "Integer",
6376             "optional": true,
6377             "field": "countcongestionretry",
6378             "description": ""
6379           },
6380           {
6381             "group": "Body",
6382             "type": "Integer",
6383             "optional": true,
6384             "field": "countnoanswerretry",
6385             "description": ""
6386           },
6387           {
6388             "group": "Body",
6389             "type": "Boolean",
6390             "optional": true,
6391             "field": "callback",
6392             "description": ""
6393           },
6394           {
6395             "group": "Body",
6396             "type": "String",
6397             "optional": true,
6398             "field": "callbackuniqueid",
6399             "description": ""
6400           },
6401           {
6402             "group": "Body",
6403             "type": "String",
6404             "optional": true,
6405             "field": "callbackat",
6406             "description": ""
6407           },
6408           {
6409             "group": "Body",
6410             "type": "Integer",
6411             "optional": true,
6412             "field": "priority",
6413             "description": ""
6414           },
6415           {
6416             "group": "Body",
6417             "type": "Boolean",
6418             "optional": true,
6419             "field": "recallme",
6420             "description": ""
6421           },
6422           {
6423             "group": "Body",
6424             "type": "Integer",
6425             "optional": true,
6426             "field": "ContactId",
6427             "description": ""
6428           },
6429           {
6430             "group": "Body",
6431             "type": "Integer",
6432             "optional": true,
6433             "field": "ListId",
6434             "description": ""
6435           },
6436           {
6437             "group": "Body",
6438             "type": "Integer",
6439             "optional": true,
6440             "field": "UserId",
6441             "description": ""
6442           },
6443           {
6444             "group": "Body",
6445             "type": "Integer",
6446             "optional": true,
6447             "field": "VoiceQueueId",
6448             "description": ""
6449           },
6450           {
6451             "group": "Body",
6452             "type": "Integer",
6453             "optional": true,
6454             "field": "CampaignId",
6455             "description": ""
6456           },
6457           {
6458             "group": "Body",
6459             "type": "Integer",
6460             "optional": true,
6461             "field": "countnosuchnumberretry",
6462             "description": ""
6463           },
6464           {
6465             "group": "Body",
6466             "type": "Integer",
6467             "optional": true,
6468             "field": "countdropretry",
6469             "description": ""
6470           },
6471           {
6472             "group": "Body",
6473             "type": "Integer",
6474             "optional": true,
6475             "field": "countabandonedretry",
6476             "description": ""
6477           },
6478           {
6479             "group": "Body",
6480             "type": "Integer",
6481             "optional": true,
6482             "field": "countmachineretry",
6483             "description": ""
6484           },
6485           {
6486             "group": "Body",
6487             "type": "Integer",
6488             "optional": true,
6489             "field": "countagentrejectretry",
6490             "description": ""
6491           }
6492         ]
6493       }
6494     },
6495     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6496     "version": "0.0.0",
6497     "filename": "server/api/cmHopper/index.js",
6498     "groupTitle": "Cm_Hopper"
6499   },
6500   {
6501     "type": "get",
6502     "url": "/api/cm/hopper/describe",
6503     "title": "Gets table info about Hopper",
6504     "examples": [
6505       {
6506         "title": "Example usage:",
6507         "content": "curl https://{domain}/api/cm/hopper/describe -v -u {name}:{password}",
6508         "type": "json"
6509       }
6510     ],
6511     "name": "DescribeHopper",
6512     "group": "Cm_Hopper",
6513     "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>",
6514     "version": "0.0.0",
6515     "filename": "server/api/cmHopper/index.js",
6516     "groupTitle": "Cm_Hopper"
6517   },
6518   {
6519     "type": "get",
6520     "url": "/api/cm/hopper",
6521     "title": "Gets a list of Hopper",
6522     "examples": [
6523       {
6524         "title": "Example usage:",
6525         "content": "curl https://{domain}/api/cm/hopper -v -u {name}:{password}",
6526         "type": "json"
6527       }
6528     ],
6529     "name": "GetHopper",
6530     "group": "Cm_Hopper",
6531     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
6532     "version": "0.0.0",
6533     "filename": "server/api/cmHopper/index.js",
6534     "groupTitle": "Cm_Hopper"
6535   },
6536   {
6537     "type": "get",
6538     "url": "/api/cm/hopper/{id}",
6539     "title": "Gets a single Hopper",
6540     "examples": [
6541       {
6542         "title": "Example usage:",
6543         "content": "curl https://{domain}/api/cm/hopper/{id} -v -u {name}:{password}",
6544         "type": "json"
6545       }
6546     ],
6547     "name": "ShowHopper",
6548     "group": "Cm_Hopper",
6549     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6550     "version": "0.0.0",
6551     "filename": "server/api/cmHopper/index.js",
6552     "groupTitle": "Cm_Hopper"
6553   },
6554   {
6555     "type": "delete",
6556     "url": "/api/cm/hopper_black/{id}",
6557     "title": "Deletes a Hopper Black",
6558     "examples": [
6559       {
6560         "title": "Example usage:",
6561         "content": "curl https://{domain}/api/cm/hopper_black/{id} -v -u {name}:{password} -X DELETE",
6562         "type": "json"
6563       }
6564     ],
6565     "name": "DeleteHopper_Black",
6566     "group": "Cm_Hopper_Black",
6567     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6568     "version": "0.0.0",
6569     "filename": "server/api/cmHopperBlack/index.js",
6570     "groupTitle": "Cm_Hopper_Black"
6571   },
6572   {
6573     "type": "get",
6574     "url": "/api/cm/hopper_black/describe",
6575     "title": "Gets table info about Hopper Black",
6576     "examples": [
6577       {
6578         "title": "Example usage:",
6579         "content": "curl https://{domain}/api/cm/hopper_black/describe -v -u {name}:{password}",
6580         "type": "json"
6581       }
6582     ],
6583     "name": "DescribeHopper_Black",
6584     "group": "Cm_Hopper_Black",
6585     "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>",
6586     "version": "0.0.0",
6587     "filename": "server/api/cmHopperBlack/index.js",
6588     "groupTitle": "Cm_Hopper_Black"
6589   },
6590   {
6591     "type": "get",
6592     "url": "/api/cm/hopper_black",
6593     "title": "Gets a list of Hopper Black",
6594     "examples": [
6595       {
6596         "title": "Example usage:",
6597         "content": "curl https://{domain}/api/cm/hopper_black -v -u {name}:{password}",
6598         "type": "json"
6599       }
6600     ],
6601     "name": "GetHopper_Black",
6602     "group": "Cm_Hopper_Black",
6603     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
6604     "version": "0.0.0",
6605     "filename": "server/api/cmHopperBlack/index.js",
6606     "groupTitle": "Cm_Hopper_Black"
6607   },
6608   {
6609     "type": "get",
6610     "url": "/api/cm/hopper_black/{id}",
6611     "title": "Gets a single Hopper Black",
6612     "examples": [
6613       {
6614         "title": "Example usage:",
6615         "content": "curl https://{domain}/api/cm/hopper_black/{id} -v -u {name}:{password}",
6616         "type": "json"
6617       }
6618     ],
6619     "name": "ShowHopper_Black",
6620     "group": "Cm_Hopper_Black",
6621     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6622     "version": "0.0.0",
6623     "filename": "server/api/cmHopperBlack/index.js",
6624     "groupTitle": "Cm_Hopper_Black"
6625   },
6626   {
6627     "type": "put",
6628     "url": "/api/cm/hopper_black/{id}",
6629     "title": "Update an existing Hopper Black",
6630     "examples": [
6631       {
6632         "title": "Example usage:",
6633         "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",
6634         "type": "json"
6635       }
6636     ],
6637     "name": "updateHopper_Black",
6638     "group": "Cm_Hopper_Black",
6639     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6640     "version": "0.0.0",
6641     "filename": "server/api/cmHopperBlack/index.js",
6642     "groupTitle": "Cm_Hopper_Black"
6643   },
6644   {
6645     "type": "post",
6646     "url": "/api/cm/hopper_final/checkContactHopper",
6647     "title": "Check if contact is in hopper",
6648     "examples": [
6649       {
6650         "title": "Example usage:",
6651         "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",
6652         "type": "json"
6653       }
6654     ],
6655     "name": "/checkContactHopper",
6656     "group": "Cm_Hopper_Final",
6657     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6658     "version": "0.0.0",
6659     "filename": "server/api/cmHopperFinal/index.js",
6660     "groupTitle": "Cm_Hopper_Final"
6661   },
6662   {
6663     "type": "get",
6664     "url": "/api/cm/hopper_final/describe",
6665     "title": "Gets table info about HopperFinal",
6666     "examples": [
6667       {
6668         "title": "Example usage:",
6669         "content": "curl https://{domain}/api/cm/hopper_final/describe -v -u {name}:{password}",
6670         "type": "json"
6671       }
6672     ],
6673     "name": "DescribeHopperFinal",
6674     "group": "Cm_Hopper_Final",
6675     "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>",
6676     "version": "0.0.0",
6677     "filename": "server/api/cmHopperFinal/index.js",
6678     "groupTitle": "Cm_Hopper_Final"
6679   },
6680   {
6681     "type": "get",
6682     "url": "/api/cm/hopper_final",
6683     "title": "Gets a list of HopperFinal",
6684     "examples": [
6685       {
6686         "title": "Example usage:",
6687         "content": "curl https://{domain}/api/cm/hopper_final -v -u {name}:{password}",
6688         "type": "json"
6689       }
6690     ],
6691     "name": "GetHopperFinal",
6692     "group": "Cm_Hopper_Final",
6693     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
6694     "version": "0.0.0",
6695     "filename": "server/api/cmHopperFinal/index.js",
6696     "groupTitle": "Cm_Hopper_Final"
6697   },
6698   {
6699     "type": "get",
6700     "url": "/api/cm/hopper_final/{id}",
6701     "title": "Gets a single HopperFinal",
6702     "examples": [
6703       {
6704         "title": "Example usage:",
6705         "content": "curl https://{domain}/api/cm/hopper_final/{id} -v -u {name}:{password}",
6706         "type": "json"
6707       }
6708     ],
6709     "name": "ShowHopperFinal",
6710     "group": "Cm_Hopper_Final",
6711     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6712     "version": "0.0.0",
6713     "filename": "server/api/cmHopperFinal/index.js",
6714     "groupTitle": "Cm_Hopper_Final"
6715   },
6716   {
6717     "type": "get",
6718     "url": "/api/cm/hopper_final/campaign/countAttributes/{id}",
6719     "title": "Return number contacts for attributes",
6720     "examples": [
6721       {
6722         "title": "Example usage:",
6723         "content": "curl https://{domain}/api/hopper_final/campaign/countAttributes/{id} -d '{\"disposition\": \"OK\"}' -v -u {name}:{password} -X GET",
6724         "type": "json"
6725       }
6726     ],
6727     "name": "countContactsIvrCampaignHopperFinal",
6728     "group": "Cm_Hopper_Final",
6729     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6730     "version": "0.0.0",
6731     "filename": "server/api/cmHopperFinal/index.js",
6732     "groupTitle": "Cm_Hopper_Final"
6733   },
6734   {
6735     "type": "get",
6736     "url": "/api/cm/hopper_final/voice/queue/countAttributes/{id}",
6737     "title": "Return number contacts for attributes",
6738     "examples": [
6739       {
6740         "title": "Example usage:",
6741         "content": "curl https://{domain}/api/hopper_final/voice/queue/countAttributes/{id} -d '{\"disposition\": \"OK\"}' -v -u {name}:{password} -X GET",
6742         "type": "json"
6743       }
6744     ],
6745     "name": "countContactsQueueCampaignHopperFinal",
6746     "group": "Cm_Hopper_Final",
6747     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6748     "version": "0.0.0",
6749     "filename": "server/api/cmHopperFinal/index.js",
6750     "groupTitle": "Cm_Hopper_Final"
6751   },
6752   {
6753     "type": "post",
6754     "url": "/api/cm/hopper_final/campaign/{id}",
6755     "title": "Move contacts in hopper",
6756     "examples": [
6757       {
6758         "title": "Example usage:",
6759         "content": "curl https://{domain}/api/hopper_final/campaign/moveContacts/{id} -d '{\"state\": \"state\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
6760         "type": "json"
6761       }
6762     ],
6763     "name": "moveContactsIvrCampaignHopperFinal",
6764     "group": "Cm_Hopper_Final",
6765     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6766     "version": "0.0.0",
6767     "filename": "server/api/cmHopperFinal/index.js",
6768     "groupTitle": "Cm_Hopper_Final"
6769   },
6770   {
6771     "type": "post",
6772     "url": "/api/cm/hopper_final/voice/queue/{id}",
6773     "title": "Move contacts in hopper",
6774     "examples": [
6775       {
6776         "title": "Example usage:",
6777         "content": "curl https://{domain}/api/hopper_final/voice/queue/moveContacts/{id} -d '{\"state\": \"state\"}' -H 'Content-Type: application/json' -v -u {name}:{password}",
6778         "type": "json"
6779       }
6780     ],
6781     "name": "moveContactsQueueCampaignHopperFinal",
6782     "group": "Cm_Hopper_Final",
6783     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6784     "version": "0.0.0",
6785     "filename": "server/api/cmHopperFinal/index.js",
6786     "groupTitle": "Cm_Hopper_Final"
6787   },
6788   {
6789     "type": "put",
6790     "url": "/api/cm/hopper_final/{id}",
6791     "title": "Update a single hopper final",
6792     "examples": [
6793       {
6794         "title": "Example usage:",
6795         "content": "curl https://{domain}/api/hopper_final/{id} -d '{\"disposition\": \"OK\"}' -v -u {name}:{password} -X PUT",
6796         "type": "json"
6797       }
6798     ],
6799     "name": "update",
6800     "group": "Cm_Hopper_Final",
6801     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6802     "version": "0.0.0",
6803     "filename": "server/api/cmHopperFinal/index.js",
6804     "groupTitle": "Cm_Hopper_Final"
6805   },
6806   {
6807     "type": "post",
6808     "url": "/api/cm/hopper_history",
6809     "title": "Creates a new HopperHistory",
6810     "examples": [
6811       {
6812         "title": "Example usage:",
6813         "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",
6814         "type": "json"
6815       }
6816     ],
6817     "name": "CreateHopperHistory",
6818     "group": "Cm_Hopper_History",
6819     "parameter": {
6820       "fields": {
6821         "Body": [
6822           {
6823             "group": "Body",
6824             "type": "Integer",
6825             "optional": true,
6826             "field": "state",
6827             "description": ""
6828           },
6829           {
6830             "group": "Body",
6831             "type": "String",
6832             "optional": true,
6833             "field": "statedesc",
6834             "description": ""
6835           },
6836           {
6837             "group": "Body",
6838             "type": "String",
6839             "optional": true,
6840             "field": "scheduledat",
6841             "description": ""
6842           },
6843           {
6844             "group": "Body",
6845             "type": "Integer",
6846             "optional": true,
6847             "field": "countbusyretry",
6848             "description": ""
6849           },
6850           {
6851             "group": "Body",
6852             "type": "Integer",
6853             "optional": true,
6854             "field": "countcongestionretry",
6855             "description": ""
6856           },
6857           {
6858             "group": "Body",
6859             "type": "Integer",
6860             "optional": true,
6861             "field": "countnoanswerretry",
6862             "description": ""
6863           },
6864           {
6865             "group": "Body",
6866             "type": "Integer",
6867             "optional": true,
6868             "field": "countglobal",
6869             "description": ""
6870           },
6871           {
6872             "group": "Body",
6873             "type": "String",
6874             "optional": true,
6875             "field": "uniqueid",
6876             "description": ""
6877           },
6878           {
6879             "group": "Body",
6880             "type": "String",
6881             "optional": true,
6882             "field": "originatecalleridnum",
6883             "description": ""
6884           },
6885           {
6886             "group": "Body",
6887             "type": "String",
6888             "optional": true,
6889             "field": "originatecalleridname",
6890             "description": ""
6891           },
6892           {
6893             "group": "Body",
6894             "type": "String",
6895             "optional": true,
6896             "field": "calleridnum",
6897             "description": ""
6898           },
6899           {
6900             "group": "Body",
6901             "type": "String",
6902             "optional": true,
6903             "field": "calleridname",
6904             "description": ""
6905           },
6906           {
6907             "group": "Body",
6908             "type": "String",
6909             "optional": true,
6910             "field": "starttime",
6911             "description": ""
6912           },
6913           {
6914             "group": "Body",
6915             "type": "String",
6916             "optional": true,
6917             "field": "responsetime",
6918             "description": ""
6919           },
6920           {
6921             "group": "Body",
6922             "type": "String",
6923             "optional": true,
6924             "field": "answertime",
6925             "description": ""
6926           },
6927           {
6928             "group": "Body",
6929             "type": "String",
6930             "optional": true,
6931             "field": "droptime",
6932             "description": ""
6933           },
6934           {
6935             "group": "Body",
6936             "type": "String",
6937             "optional": true,
6938             "field": "endtime",
6939             "description": ""
6940           },
6941           {
6942             "group": "Body",
6943             "type": "Integer",
6944             "optional": true,
6945             "field": "ringtime",
6946             "description": ""
6947           },
6948           {
6949             "group": "Body",
6950             "type": "Integer",
6951             "optional": true,
6952             "field": "holdtime",
6953             "description": ""
6954           },
6955           {
6956             "group": "Body",
6957             "type": "Integer",
6958             "optional": true,
6959             "field": "talktime",
6960             "description": ""
6961           },
6962           {
6963             "group": "Body",
6964             "type": "Integer",
6965             "optional": true,
6966             "field": "followuptime",
6967             "description": ""
6968           },
6969           {
6970             "group": "Body",
6971             "type": "String",
6972             "optional": true,
6973             "field": "dropreason",
6974             "description": ""
6975           },
6976           {
6977             "group": "Body",
6978             "type": "String",
6979             "optional": true,
6980             "field": "campaign",
6981             "description": ""
6982           },
6983           {
6984             "group": "Body",
6985             "type": "String",
6986             "optional": true,
6987             "field": "campaigntype",
6988             "description": ""
6989           },
6990           {
6991             "group": "Body",
6992             "type": "String",
6993             "optional": true,
6994             "field": "membername",
6995             "description": ""
6996           },
6997           {
6998             "group": "Body",
6999             "type": "String",
7000             "optional": true,
7001             "field": "reason",
7002             "description": ""
7003           },
7004           {
7005             "group": "Body",
7006             "type": "Boolean",
7007             "optional": true,
7008             "field": "amd",
7009             "description": ""
7010           },
7011           {
7012             "group": "Body",
7013             "type": "Boolean",
7014             "optional": true,
7015             "field": "fax",
7016             "description": ""
7017           },
7018           {
7019             "group": "Body",
7020             "type": "Boolean",
7021             "optional": true,
7022             "field": "callback",
7023             "description": ""
7024           },
7025           {
7026             "group": "Body",
7027             "type": "String",
7028             "optional": true,
7029             "field": "callbackuniqueid",
7030             "description": ""
7031           },
7032           {
7033             "group": "Body",
7034             "type": "String",
7035             "optional": true,
7036             "field": "callbackat",
7037             "description": ""
7038           },
7039           {
7040             "group": "Body",
7041             "type": "Boolean",
7042             "optional": true,
7043             "field": "recallme",
7044             "description": ""
7045           },
7046           {
7047             "group": "Body",
7048             "type": "String",
7049             "optional": true,
7050             "field": "editedat",
7051             "description": ""
7052           },
7053           {
7054             "group": "Body",
7055             "type": "Boolean",
7056             "optional": true,
7057             "field": "edited",
7058             "description": ""
7059           },
7060           {
7061             "group": "Body",
7062             "type": "Integer",
7063             "optional": true,
7064             "field": "countnosuchnumberretry",
7065             "description": ""
7066           },
7067           {
7068             "group": "Body",
7069             "type": "Integer",
7070             "optional": true,
7071             "field": "countdropretry",
7072             "description": ""
7073           },
7074           {
7075             "group": "Body",
7076             "type": "Integer",
7077             "optional": true,
7078             "field": "countabandonedretry",
7079             "description": ""
7080           },
7081           {
7082             "group": "Body",
7083             "type": "Integer",
7084             "optional": true,
7085             "field": "countmachineretry",
7086             "description": ""
7087           },
7088           {
7089             "group": "Body",
7090             "type": "Integer",
7091             "optional": true,
7092             "field": "countagentrejectretry",
7093             "description": ""
7094           }
7095         ]
7096       }
7097     },
7098     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7099     "version": "0.0.0",
7100     "filename": "server/api/cmHopperHistory/index.js",
7101     "groupTitle": "Cm_Hopper_History"
7102   },
7103   {
7104     "type": "get",
7105     "url": "/api/cm/hopper_history/describe",
7106     "title": "Gets table info about HopperHistory",
7107     "examples": [
7108       {
7109         "title": "Example usage:",
7110         "content": "curl https://{domain}/api/cm/hopper_history/describe -v -u {name}:{password}",
7111         "type": "json"
7112       }
7113     ],
7114     "name": "DescribeHopperHistory",
7115     "group": "Cm_Hopper_History",
7116     "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>",
7117     "version": "0.0.0",
7118     "filename": "server/api/cmHopperHistory/index.js",
7119     "groupTitle": "Cm_Hopper_History"
7120   },
7121   {
7122     "type": "get",
7123     "url": "/api/cm/hopper_history",
7124     "title": "Gets a list of HopperHistory",
7125     "examples": [
7126       {
7127         "title": "Example usage:",
7128         "content": "curl https://{domain}/api/cm/hopper_history -v -u {name}:{password}",
7129         "type": "json"
7130       }
7131     ],
7132     "name": "GetHopperHistory",
7133     "group": "Cm_Hopper_History",
7134     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
7135     "version": "0.0.0",
7136     "filename": "server/api/cmHopperHistory/index.js",
7137     "groupTitle": "Cm_Hopper_History"
7138   },
7139   {
7140     "type": "get",
7141     "url": "/api/cm/hopper_history/{id}",
7142     "title": "Gets a single HopperHistory",
7143     "examples": [
7144       {
7145         "title": "Example usage:",
7146         "content": "curl https://{domain}/api/cm/hopper_history/{id} -v -u {name}:{password}",
7147         "type": "json"
7148       }
7149     ],
7150     "name": "ShowHopperHistory",
7151     "group": "Cm_Hopper_History",
7152     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7153     "version": "0.0.0",
7154     "filename": "server/api/cmHopperHistory/index.js",
7155     "groupTitle": "Cm_Hopper_History"
7156   },
7157   {
7158     "type": "put",
7159     "url": "/api/cm/hopper_history/{id}",
7160     "title": "Update a single hopper history",
7161     "examples": [
7162       {
7163         "title": "Example usage:",
7164         "content": "curl https://{domain}/api/hopper_history/{id} -d '{\"disposition\": \"OK\"}' -v -u {name}:{password} -X PUT",
7165         "type": "json"
7166       }
7167     ],
7168     "name": "update",
7169     "group": "Cm_Hopper_History",
7170     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7171     "version": "0.0.0",
7172     "filename": "server/api/cmHopperHistory/index.js",
7173     "groupTitle": "Cm_Hopper_History"
7174   },
7175   {
7176     "type": "delete",
7177     "url": "/api/cm/hopper/{id}",
7178     "title": "Delete Hopper",
7179     "examples": [
7180       {
7181         "title": "Example usage:",
7182         "content": "curl https://{domain}/api/cm/hopper/{id} -v -u {name}:{password} -X DELETE",
7183         "type": "json"
7184       }
7185     ],
7186     "name": "destroy",
7187     "group": "Cm_Hopper",
7188     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7189     "version": "0.0.0",
7190     "filename": "server/api/cmHopper/index.js",
7191     "groupTitle": "Cm_Hopper"
7192   },
7193   {
7194     "type": "get",
7195     "url": "/api/cm/hopper/opencontacts",
7196     "title": "Gets Open Contacts",
7197     "examples": [
7198       {
7199         "title": "Example usage:",
7200         "content": "curl https://{domain}/api/cm/hopper/opencontacts -v -u {name}:{password} -X GET",
7201         "type": "json"
7202       }
7203     ],
7204     "name": "getOpenContacts",
7205     "group": "Cm_Hopper",
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/cmHopper/index.js",
7209     "groupTitle": "Cm_Hopper"
7210   },
7211   {
7212     "type": "post",
7213     "url": "/api/cm/hopper/preview",
7214     "title": "Gets Preview Dialer Contacts",
7215     "examples": [
7216       {
7217         "title": "Example usage:",
7218         "content": "curl https://{domain}/api/cm/hopper/preview -d '{\"hopperIds\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X GET",
7219         "type": "json"
7220       }
7221     ],
7222     "name": "getPreview",
7223     "group": "Cm_Hopper",
7224     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7225     "version": "0.0.0",
7226     "filename": "server/api/cmHopper/index.js",
7227     "groupTitle": "Cm_Hopper"
7228   },
7229   {
7230     "type": "put",
7231     "url": "/api/cm/hopper/{id}",
7232     "title": "Update an existing Hopper",
7233     "examples": [
7234       {
7235         "title": "Example usage:",
7236         "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",
7237         "type": "json"
7238       }
7239     ],
7240     "name": "updateHopper",
7241     "group": "Cm_Hopper",
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/cmHopper/index.js",
7245     "groupTitle": "Cm_Hopper"
7246   },
7247   {
7248     "type": "post",
7249     "url": "/api/cm/lists",
7250     "title": "Creates a new List",
7251     "examples": [
7252       {
7253         "title": "Example usage:",
7254         "content": "curl https://{domain}/api/cm/lists -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
7255         "type": "json"
7256       }
7257     ],
7258     "name": "CreateLists",
7259     "group": "Cm_Lists",
7260     "parameter": {
7261       "fields": {
7262         "Body": [
7263           {
7264             "group": "Body",
7265             "type": "String",
7266             "optional": false,
7267             "field": "name",
7268             "description": ""
7269           },
7270           {
7271             "group": "Body",
7272             "type": "String",
7273             "optional": true,
7274             "field": "description",
7275             "description": ""
7276           },
7277           {
7278             "group": "Body",
7279             "type": "String",
7280             "optional": true,
7281             "field": "dialPrefix",
7282             "description": ""
7283           }
7284         ]
7285       }
7286     },
7287     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7288     "version": "0.0.0",
7289     "filename": "server/api/cmList/index.js",
7290     "groupTitle": "Cm_Lists"
7291   },
7292   {
7293     "type": "delete",
7294     "url": "/api/cm/lists/{id}",
7295     "title": "Deletes a List",
7296     "examples": [
7297       {
7298         "title": "Example usage:",
7299         "content": "curl https://{domain}/api/cm/lists/{id} -v -u {name}:{password} -X DELETE",
7300         "type": "json"
7301       }
7302     ],
7303     "name": "DeleteLists",
7304     "group": "Cm_Lists",
7305     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7306     "version": "0.0.0",
7307     "filename": "server/api/cmList/index.js",
7308     "groupTitle": "Cm_Lists"
7309   },
7310   {
7311     "type": "get",
7312     "url": "/api/cm/lists/describe",
7313     "title": "Gets table info about Lists",
7314     "examples": [
7315       {
7316         "title": "Example usage:",
7317         "content": "curl https://{domain}/api/cm/lists/describe -v -u {name}:{password}",
7318         "type": "json"
7319       }
7320     ],
7321     "name": "DescribeLists",
7322     "group": "Cm_Lists",
7323     "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>",
7324     "version": "0.0.0",
7325     "filename": "server/api/cmList/index.js",
7326     "groupTitle": "Cm_Lists"
7327   },
7328   {
7329     "type": "get",
7330     "url": "/api/cm/lists/{id}/users",
7331     "title": "Gets agents from list",
7332     "examples": [
7333       {
7334         "title": "Example usage:",
7335         "content": "curl https://{domain}/api/cm/lists/{id}/users -v -u {name}:{password} -X GET",
7336         "type": "json"
7337       }
7338     ],
7339     "name": "GetAgents",
7340     "group": "Cm_Lists",
7341     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7342     "version": "0.0.0",
7343     "filename": "server/api/cmList/index.js",
7344     "groupTitle": "Cm_Lists"
7345   },
7346   {
7347     "type": "get",
7348     "url": "/api/cm/lists",
7349     "title": "Gets a list of Lists",
7350     "examples": [
7351       {
7352         "title": "Example usage:",
7353         "content": "curl https://{domain}/api/cm/lists -v -u {name}:{password}",
7354         "type": "json"
7355       }
7356     ],
7357     "name": "GetLists",
7358     "group": "Cm_Lists",
7359     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
7360     "version": "0.0.0",
7361     "filename": "server/api/cmList/index.js",
7362     "groupTitle": "Cm_Lists"
7363   },
7364   {
7365     "type": "delete",
7366     "url": "/api/cm/lists/{id}/users",
7367     "title": "Removes agents from a list",
7368     "examples": [
7369       {
7370         "title": "Example usage:",
7371         "content": "curl https://{domain}/api/cm/lists/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
7372         "type": "json"
7373       }
7374     ],
7375     "name": "RemoveAgents",
7376     "group": "Cm_Lists",
7377     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7378     "version": "0.0.0",
7379     "filename": "server/api/cmList/index.js",
7380     "groupTitle": "Cm_Lists"
7381   },
7382   {
7383     "type": "delete",
7384     "url": "/api/cm/lists/{id}/dispositions",
7385     "title": "Removes dispositions from account",
7386     "examples": [
7387       {
7388         "title": "Example usage:",
7389         "content": "curl https://{domain}/api/cm/lists/{id}/dispositions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
7390         "type": "json"
7391       }
7392     ],
7393     "name": "RemoveDispositions",
7394     "group": "Cm_Lists",
7395     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7396     "version": "0.0.0",
7397     "filename": "server/api/cmList/index.js",
7398     "groupTitle": "Cm_Lists"
7399   },
7400   {
7401     "type": "get",
7402     "url": "/api/cm/lists/{id}",
7403     "title": "Gets a single List",
7404     "examples": [
7405       {
7406         "title": "Example usage:",
7407         "content": "curl https://{domain}/api/cm/lists/{id} -v -u {name}:{password}",
7408         "type": "json"
7409       }
7410     ],
7411     "name": "ShowLists",
7412     "group": "Cm_Lists",
7413     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7414     "version": "0.0.0",
7415     "filename": "server/api/cmList/index.js",
7416     "groupTitle": "Cm_Lists"
7417   },
7418   {
7419     "type": "post",
7420     "url": "/api/cm/lists/{id}/users",
7421     "title": "Adds agents to a list",
7422     "examples": [
7423       {
7424         "title": "Example usage:",
7425         "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",
7426         "type": "json"
7427       }
7428     ],
7429     "name": "addAgents",
7430     "group": "Cm_Lists",
7431     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7432     "version": "0.0.0",
7433     "filename": "server/api/cmList/index.js",
7434     "groupTitle": "Cm_Lists"
7435   },
7436   {
7437     "type": "post",
7438     "url": "/api/cm/lists/{id}/contacts",
7439     "title": "Creates new contacts",
7440     "examples": [
7441       {
7442         "title": "Example usage:",
7443         "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",
7444         "type": "json"
7445       }
7446     ],
7447     "name": "addContacts",
7448     "group": "Cm_Lists",
7449     "parameter": {
7450       "fields": {
7451         "Body": [
7452           {
7453             "group": "Body",
7454             "type": "String",
7455             "optional": false,
7456             "field": "firstName",
7457             "description": ""
7458           },
7459           {
7460             "group": "Body",
7461             "type": "String",
7462             "optional": true,
7463             "field": "lastName",
7464             "description": ""
7465           },
7466           {
7467             "group": "Body",
7468             "type": "String",
7469             "optional": true,
7470             "field": "street",
7471             "description": ""
7472           },
7473           {
7474             "group": "Body",
7475             "type": "String",
7476             "optional": true,
7477             "field": "postalCode",
7478             "description": ""
7479           },
7480           {
7481             "group": "Body",
7482             "type": "String",
7483             "optional": true,
7484             "field": "city",
7485             "description": ""
7486           },
7487           {
7488             "group": "Body",
7489             "type": "String",
7490             "optional": true,
7491             "field": "country",
7492             "description": ""
7493           },
7494           {
7495             "group": "Body",
7496             "type": "String",
7497             "optional": true,
7498             "field": "dateOfBirth",
7499             "description": ""
7500           },
7501           {
7502             "group": "Body",
7503             "type": "Text",
7504             "optional": true,
7505             "field": "description",
7506             "description": ""
7507           },
7508           {
7509             "group": "Body",
7510             "type": "String",
7511             "optional": true,
7512             "field": "phone",
7513             "description": ""
7514           },
7515           {
7516             "group": "Body",
7517             "type": "String",
7518             "optional": true,
7519             "field": "mobile",
7520             "description": ""
7521           },
7522           {
7523             "group": "Body",
7524             "type": "String",
7525             "optional": true,
7526             "field": "fax",
7527             "description": ""
7528           },
7529           {
7530             "group": "Body",
7531             "type": "String",
7532             "optional": true,
7533             "field": "email",
7534             "description": ""
7535           },
7536           {
7537             "group": "Body",
7538             "type": "String",
7539             "optional": true,
7540             "field": "url",
7541             "description": ""
7542           },
7543           {
7544             "group": "Body",
7545             "type": "String",
7546             "optional": true,
7547             "field": "facebook",
7548             "description": ""
7549           },
7550           {
7551             "group": "Body",
7552             "type": "String",
7553             "optional": true,
7554             "field": "fb_data",
7555             "description": ""
7556           },
7557           {
7558             "group": "Body",
7559             "type": "String",
7560             "optional": true,
7561             "field": "twitter",
7562             "description": ""
7563           },
7564           {
7565             "group": "Body",
7566             "type": "String",
7567             "optional": true,
7568             "field": "skype",
7569             "description": ""
7570           },
7571           {
7572             "group": "Body",
7573             "type": "String",
7574             "optional": true,
7575             "field": "teams",
7576             "description": ""
7577           },
7578           {
7579             "group": "Body",
7580             "type": "String",
7581             "optional": true,
7582             "field": "viber",
7583             "description": ""
7584           },
7585           {
7586             "group": "Body",
7587             "type": "String",
7588             "optional": true,
7589             "field": "line",
7590             "description": ""
7591           },
7592           {
7593             "group": "Body",
7594             "type": "String",
7595             "optional": true,
7596             "field": "wechat",
7597             "description": ""
7598           },
7599           {
7600             "group": "Body",
7601             "type": "String",
7602             "optional": true,
7603             "field": "telegram",
7604             "description": ""
7605           },
7606           {
7607             "group": "Body",
7608             "type": "Integer",
7609             "optional": true,
7610             "field": "UserId",
7611             "description": ""
7612           },
7613           {
7614             "group": "Body",
7615             "type": "Integer",
7616             "optional": true,
7617             "field": "priority",
7618             "description": ""
7619           },
7620           {
7621             "group": "Body",
7622             "type": "String",
7623             "optional": true,
7624             "field": "scheduledat",
7625             "description": ""
7626           }
7627         ]
7628       }
7629     },
7630     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7631     "version": "0.0.0",
7632     "filename": "server/api/cmList/index.js",
7633     "groupTitle": "Cm_Lists"
7634   },
7635   {
7636     "type": "post",
7637     "url": "/api/cm/lists/{id}/fields",
7638     "title": "Creates a new custom field",
7639     "examples": [
7640       {
7641         "title": "Example usage:",
7642         "content": "curl https://{domain}/api/cm/lists/{id}/fields -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
7643         "type": "json"
7644       }
7645     ],
7646     "name": "addCustomField",
7647     "group": "Cm_Lists",
7648     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7649     "version": "0.0.0",
7650     "filename": "server/api/cmList/index.js",
7651     "groupTitle": "Cm_Lists"
7652   },
7653   {
7654     "type": "post",
7655     "url": "/api/cm/lists/{id}/dispositions",
7656     "title": "Creates new disposition",
7657     "examples": [
7658       {
7659         "title": "Example usage:",
7660         "content": "curl https://{domain}/api/cm/lists/{id}/dispositions -d '{\"name\": \"vip\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
7661         "type": "json"
7662       }
7663     ],
7664     "name": "addDisposition",
7665     "group": "Cm_Lists",
7666     "parameter": {
7667       "fields": {
7668         "Body": [
7669           {
7670             "group": "Body",
7671             "type": "String",
7672             "optional": false,
7673             "field": "name",
7674             "description": ""
7675           },
7676           {
7677             "group": "Body",
7678             "type": "String",
7679             "allowedValues": [
7680               "\"first\"",
7681               "\"second\"",
7682               "\"third\""
7683             ],
7684             "optional": false,
7685             "field": "level",
7686             "description": ""
7687           },
7688           {
7689             "group": "Body",
7690             "type": "String",
7691             "optional": true,
7692             "field": "description",
7693             "description": ""
7694           }
7695         ]
7696       }
7697     },
7698     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7699     "version": "0.0.0",
7700     "filename": "server/api/cmList/index.js",
7701     "groupTitle": "Cm_Lists"
7702   },
7703   {
7704     "type": "get",
7705     "url": "/api/cm/lists/{id}/contacts",
7706     "title": "Gets List Contacts",
7707     "examples": [
7708       {
7709         "title": "Example usage:",
7710         "content": "curl https://{domain}/api/cm/lists/{id}/contacts -v -u {name}:{password} -X GET",
7711         "type": "json"
7712       }
7713     ],
7714     "name": "getContacts",
7715     "group": "Cm_Lists",
7716     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7717     "version": "0.0.0",
7718     "filename": "server/api/cmList/index.js",
7719     "groupTitle": "Cm_Lists"
7720   },
7721   {
7722     "type": "get",
7723     "url": "/api/cm/lists/{id}/fields",
7724     "title": "Gets Custom Fields",
7725     "examples": [
7726       {
7727         "title": "Example usage:",
7728         "content": "curl https://{domain}/api/cm/lists/{id}/fields -v -u {name}:{password} -X GET",
7729         "type": "json"
7730       }
7731     ],
7732     "name": "getCustomFields",
7733     "group": "Cm_Lists",
7734     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7735     "version": "0.0.0",
7736     "filename": "server/api/cmList/index.js",
7737     "groupTitle": "Cm_Lists"
7738   },
7739   {
7740     "type": "get",
7741     "url": "/api/cm/lists/{id}/dispositions",
7742     "title": "Gets list dispositions",
7743     "examples": [
7744       {
7745         "title": "Example usage:",
7746         "content": "curl https://{domain}/api/cm/lists/{id}/dispositions -v -u {name}:{password} -X GET",
7747         "type": "json"
7748       }
7749     ],
7750     "name": "getDispositions",
7751     "group": "Cm_Lists",
7752     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7753     "version": "0.0.0",
7754     "filename": "server/api/cmList/index.js",
7755     "groupTitle": "Cm_Lists"
7756   },
7757   {
7758     "type": "get",
7759     "url": "/api/cm/lists/{id}/contacts/csv",
7760     "title": "Gets CSV List Contacts",
7761     "examples": [
7762       {
7763         "title": "Example usage:",
7764         "content": "curl https://{domain}/api/cm/lists/{id}/contacts/csv -v -u {name}:{password} -X GET",
7765         "type": "json"
7766       }
7767     ],
7768     "name": "grunt",
7769     "group": "Cm_Lists",
7770     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7771     "version": "0.0.0",
7772     "filename": "server/api/cmList/index.js",
7773     "groupTitle": "Cm_Lists"
7774   },
7775   {
7776     "type": "put",
7777     "url": "/api/cm/lists/{id}",
7778     "title": "Update an existing List",
7779     "examples": [
7780       {
7781         "title": "Example usage:",
7782         "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",
7783         "type": "json"
7784       }
7785     ],
7786     "name": "updateLists",
7787     "group": "Cm_Lists",
7788     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7789     "version": "0.0.0",
7790     "filename": "server/api/cmList/index.js",
7791     "groupTitle": "Cm_Lists"
7792   },
7793   {
7794     "type": "post",
7795     "url": "/api/cm/contacts/upload/:id",
7796     "title": "Import new contacts by csv",
7797     "examples": [
7798       {
7799         "title": "Example usage:",
7800         "content": "curl https://{domain}/api/cm/contacts/upload/:id -v -u {name}:{password} -X POST",
7801         "type": "json"
7802       }
7803     ],
7804     "name": "import",
7805     "group": "Cm_contacts",
7806     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7807     "version": "0.0.0",
7808     "filename": "server/api/cmContact/index.js",
7809     "groupTitle": "Cm_contacts"
7810   },
7811   {
7812     "type": "post",
7813     "url": "/api/cm/contacts/upload",
7814     "title": "Upload csv",
7815     "examples": [
7816       {
7817         "title": "Example usage:",
7818         "content": "curl https://{domain}/api/cm/contacts/upload -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
7819         "type": "json"
7820       }
7821     ],
7822     "name": "upload",
7823     "group": "Cm_contacts",
7824     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7825     "version": "0.0.0",
7826     "filename": "server/api/cmContact/index.js",
7827     "groupTitle": "Cm_contacts"
7828   },
7829   {
7830     "type": "post",
7831     "url": "/api/cm/contacts/csv",
7832     "title": "Create new contacts by csv",
7833     "examples": [
7834       {
7835         "title": "Example usage:",
7836         "content": "curl https://{domain}/api/cm/contacts/csv -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
7837         "type": "json"
7838       }
7839     ],
7840     "name": "uploadCsv",
7841     "group": "Cm_contacts",
7842     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7843     "version": "0.0.0",
7844     "filename": "server/api/cmContact/index.js",
7845     "groupTitle": "Cm_contacts"
7846   },
7847   {
7848     "type": "delete",
7849     "url": "/api/conditions/{id}",
7850     "title": "Deletes a Condition",
7851     "examples": [
7852       {
7853         "title": "Example usage:",
7854         "content": "curl https://{domain}/api/conditions/{id} -v -u {name}:{password} -X DELETE",
7855         "type": "json"
7856       }
7857     ],
7858     "name": "DeleteConditions",
7859     "group": "Conditions",
7860     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7861     "version": "0.0.0",
7862     "filename": "server/api/condition/index.js",
7863     "groupTitle": "Conditions"
7864   },
7865   {
7866     "type": "put",
7867     "url": "/api/conditions/{id}",
7868     "title": "Update an existing Condition",
7869     "examples": [
7870       {
7871         "title": "Example usage:",
7872         "content": "curl https://{domain}/api/conditions/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
7873         "type": "json"
7874       }
7875     ],
7876     "name": "updateConditions",
7877     "group": "Conditions",
7878     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7879     "version": "0.0.0",
7880     "filename": "server/api/condition/index.js",
7881     "groupTitle": "Conditions"
7882   },
7883   {
7884     "type": "post",
7885     "url": "/api/cm/custom_field",
7886     "title": "Create a new custom field",
7887     "examples": [
7888       {
7889         "title": "Example usage:",
7890         "content": "curl https://{domain}/api/cm/custom_field  -d '{\"name\": \"mycf\", \"type\": \"text\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
7891         "type": "json"
7892       }
7893     ],
7894     "name": "CreateCustomField",
7895     "group": "Custom_Fields",
7896     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7897     "version": "0.0.0",
7898     "filename": "server/api/cmCustomField/index.js",
7899     "groupTitle": "Custom_Fields"
7900   },
7901   {
7902     "type": "post",
7903     "url": "/api/dashboards/items",
7904     "title": "Create dasboard item",
7905     "examples": [
7906       {
7907         "title": "Example usage:",
7908         "content": "curl https://{domain}/api/dashboards/items \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
7909         "type": "json"
7910       }
7911     ],
7912     "name": "Create",
7913     "group": "Dashboard_Items",
7914     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7915     "version": "0.0.0",
7916     "filename": "server/api/dashboardItem/index.js",
7917     "groupTitle": "Dashboard_Items"
7918   },
7919   {
7920     "type": "delete",
7921     "url": "/api/dashboards/items/{id}",
7922     "title": "Deletes a Dashboard Item",
7923     "examples": [
7924       {
7925         "title": "Example usage:",
7926         "content": "curl https://{domain}/api/dashboards/items/{id} -v -u {name}:{password} -X DELETE",
7927         "type": "json"
7928       }
7929     ],
7930     "name": "DeleteDashboard_Items",
7931     "group": "Dashboard_Items",
7932     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7933     "version": "0.0.0",
7934     "filename": "server/api/dashboardItem/index.js",
7935     "groupTitle": "Dashboard_Items"
7936   },
7937   {
7938     "type": "get",
7939     "url": "/api/dashboards/items/{id}",
7940     "title": "Gets a single Dashboard Item",
7941     "examples": [
7942       {
7943         "title": "Example usage:",
7944         "content": "curl https://{domain}/api/dashboards/items/{id} -v -u {name}:{password}",
7945         "type": "json"
7946       }
7947     ],
7948     "name": "ShowDashboard_Items",
7949     "group": "Dashboard_Items",
7950     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7951     "version": "0.0.0",
7952     "filename": "server/api/dashboardItem/index.js",
7953     "groupTitle": "Dashboard_Items"
7954   },
7955   {
7956     "type": "put",
7957     "url": "/api/dashboards/items/{id}",
7958     "title": "Update an existing item",
7959     "examples": [
7960       {
7961         "title": "Example usage:",
7962         "content": "curl https://{domain}/api/dashboards/items/{id} -v -u {name}:{password} -X PUT",
7963         "type": "json"
7964       }
7965     ],
7966     "name": "Update",
7967     "group": "Dashboard_Items",
7968     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7969     "version": "0.0.0",
7970     "filename": "server/api/dashboardItem/index.js",
7971     "groupTitle": "Dashboard_Items"
7972   },
7973   {
7974     "type": "post",
7975     "url": "/api/dashboards/clone",
7976     "title": "Clone an existing Dashboard",
7977     "examples": [
7978       {
7979         "title": "Example usage:",
7980         "content": "curl https://{domain}/api/dashboards/clone -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
7981         "type": "json"
7982       }
7983     ],
7984     "name": "CloneDashboards",
7985     "group": "Dashboards",
7986     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7987     "version": "0.0.0",
7988     "filename": "server/api/dashboard/index.js",
7989     "groupTitle": "Dashboards"
7990   },
7991   {
7992     "type": "post",
7993     "url": "/api/dashboards",
7994     "title": "Creates a new Dashboard",
7995     "examples": [
7996       {
7997         "title": "Example usage:",
7998         "content": "curl https://{domain}/api/dashboards -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
7999         "type": "json"
8000       }
8001     ],
8002     "name": "CreateDashboards",
8003     "group": "Dashboards",
8004     "parameter": {
8005       "fields": {
8006         "Body": [
8007           {
8008             "group": "Body",
8009             "type": "String",
8010             "optional": false,
8011             "field": "name",
8012             "description": ""
8013           },
8014           {
8015             "group": "Body",
8016             "type": "String",
8017             "optional": true,
8018             "field": "description",
8019             "description": ""
8020           }
8021         ]
8022       }
8023     },
8024     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8025     "version": "0.0.0",
8026     "filename": "server/api/dashboard/index.js",
8027     "groupTitle": "Dashboards"
8028   },
8029   {
8030     "type": "delete",
8031     "url": "/api/dashboards/{id}",
8032     "title": "Deletes a Dashboard",
8033     "examples": [
8034       {
8035         "title": "Example usage:",
8036         "content": "curl https://{domain}/api/dashboards/{id} -v -u {name}:{password} -X DELETE",
8037         "type": "json"
8038       }
8039     ],
8040     "name": "DeleteDashboards",
8041     "group": "Dashboards",
8042     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8043     "version": "0.0.0",
8044     "filename": "server/api/dashboard/index.js",
8045     "groupTitle": "Dashboards"
8046   },
8047   {
8048     "type": "get",
8049     "url": "/api/dashboards",
8050     "title": "Gets a list of Dashboards",
8051     "examples": [
8052       {
8053         "title": "Example usage:",
8054         "content": "curl https://{domain}/api/dashboards -v -u {name}:{password}",
8055         "type": "json"
8056       }
8057     ],
8058     "name": "GetDashboards",
8059     "group": "Dashboards",
8060     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
8061     "version": "0.0.0",
8062     "filename": "server/api/dashboard/index.js",
8063     "groupTitle": "Dashboards"
8064   },
8065   {
8066     "type": "get",
8067     "url": "/api/dashboards/{id}",
8068     "title": "Gets a single Dashboard",
8069     "examples": [
8070       {
8071         "title": "Example usage:",
8072         "content": "curl https://{domain}/api/dashboards/{id} -v -u {name}:{password}",
8073         "type": "json"
8074       }
8075     ],
8076     "name": "ShowDashboards",
8077     "group": "Dashboards",
8078     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8079     "version": "0.0.0",
8080     "filename": "server/api/dashboard/index.js",
8081     "groupTitle": "Dashboards"
8082   },
8083   {
8084     "type": "post",
8085     "url": "/api/dashboards/{id}/items",
8086     "title": "Creates new item",
8087     "examples": [
8088       {
8089         "title": "Example usage:",
8090         "content": "curl https://{domain}/api/dashboards/{id}/items -d '{\"type\": \"counter\", \"...\": \"...\"}]' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
8091         "type": "json"
8092       }
8093     ],
8094     "name": "addItem",
8095     "group": "Dashboards",
8096     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8097     "version": "0.0.0",
8098     "filename": "server/api/dashboard/index.js",
8099     "groupTitle": "Dashboards"
8100   },
8101   {
8102     "type": "get",
8103     "url": "/api/dashboards/{id}/items",
8104     "title": "Gets items",
8105     "examples": [
8106       {
8107         "title": "Example usage:",
8108         "content": "curl https://{domain}/api/dashboards/{id}/items -v -u {name}:{password} -X GET",
8109         "type": "json"
8110       }
8111     ],
8112     "name": "getItems",
8113     "group": "Dashboards",
8114     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8115     "version": "0.0.0",
8116     "filename": "server/api/dashboard/index.js",
8117     "groupTitle": "Dashboards"
8118   },
8119   {
8120     "type": "put",
8121     "url": "/api/dashboards/{id}",
8122     "title": "Update an existing Dashboard",
8123     "examples": [
8124       {
8125         "title": "Example usage:",
8126         "content": "curl https://{domain}/api/dashboards/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
8127         "type": "json"
8128       }
8129     ],
8130     "name": "updateDashboards",
8131     "group": "Dashboards",
8132     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8133     "version": "0.0.0",
8134     "filename": "server/api/dashboard/index.js",
8135     "groupTitle": "Dashboards"
8136   },
8137   {
8138     "type": "post",
8139     "url": "/api/integrations/desk/accounts",
8140     "title": "Creates a new Desk Account",
8141     "examples": [
8142       {
8143         "title": "Example usage:",
8144         "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",
8145         "type": "json"
8146       }
8147     ],
8148     "name": "CreateDesk_Accounts",
8149     "group": "Desk_Accounts",
8150     "parameter": {
8151       "fields": {
8152         "Body": [
8153           {
8154             "group": "Body",
8155             "type": "String",
8156             "optional": true,
8157             "field": "name",
8158             "description": ""
8159           },
8160           {
8161             "group": "Body",
8162             "type": "String",
8163             "optional": true,
8164             "field": "description",
8165             "description": ""
8166           },
8167           {
8168             "group": "Body",
8169             "type": "String",
8170             "optional": true,
8171             "field": "username",
8172             "description": ""
8173           },
8174           {
8175             "group": "Body",
8176             "type": "String",
8177             "optional": true,
8178             "field": "remoteUri",
8179             "description": ""
8180           },
8181           {
8182             "group": "Body",
8183             "type": "String",
8184             "allowedValues": [
8185               "\"basic\""
8186             ],
8187             "optional": true,
8188             "field": "authType",
8189             "description": ""
8190           },
8191           {
8192             "group": "Body",
8193             "type": "String",
8194             "optional": true,
8195             "field": "password",
8196             "description": ""
8197           },
8198           {
8199             "group": "Body",
8200             "type": "String",
8201             "optional": true,
8202             "field": "consumerKey",
8203             "description": ""
8204           },
8205           {
8206             "group": "Body",
8207             "type": "String",
8208             "optional": true,
8209             "field": "consumerSecret",
8210             "description": ""
8211           },
8212           {
8213             "group": "Body",
8214             "type": "String",
8215             "optional": true,
8216             "field": "token",
8217             "description": ""
8218           },
8219           {
8220             "group": "Body",
8221             "type": "String",
8222             "optional": true,
8223             "field": "tokenSecret",
8224             "description": ""
8225           },
8226           {
8227             "group": "Body",
8228             "type": "String",
8229             "optional": false,
8230             "field": "serverUrl",
8231             "description": ""
8232           },
8233           {
8234             "group": "Body",
8235             "type": "String",
8236             "allowedValues": [
8237               "\"integrationTab\"",
8238               "\"newTab\""
8239             ],
8240             "optional": true,
8241             "field": "type",
8242             "description": ""
8243           }
8244         ]
8245       }
8246     },
8247     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8248     "version": "0.0.0",
8249     "filename": "server/api/intDeskAccount/index.js",
8250     "groupTitle": "Desk_Accounts"
8251   },
8252   {
8253     "type": "delete",
8254     "url": "/api/integrations/desk/accounts/{id}",
8255     "title": "Deletes a Desk Account",
8256     "examples": [
8257       {
8258         "title": "Example usage:",
8259         "content": "curl https://{domain}/api/integrations/desk/accounts/{id} -v -u {name}:{password} -X DELETE",
8260         "type": "json"
8261       }
8262     ],
8263     "name": "DeleteDesk_Accounts",
8264     "group": "Desk_Accounts",
8265     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <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/intDeskAccount/index.js",
8268     "groupTitle": "Desk_Accounts"
8269   },
8270   {
8271     "type": "get",
8272     "url": "/api/integrations/desk/accounts",
8273     "title": "Gets a list of Desk Accounts",
8274     "examples": [
8275       {
8276         "title": "Example usage:",
8277         "content": "curl https://{domain}/api/integrations/desk/accounts -v -u {name}:{password}",
8278         "type": "json"
8279       }
8280     ],
8281     "name": "GetDesk_Accounts",
8282     "group": "Desk_Accounts",
8283     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
8284     "version": "0.0.0",
8285     "filename": "server/api/intDeskAccount/index.js",
8286     "groupTitle": "Desk_Accounts"
8287   },
8288   {
8289     "type": "get",
8290     "url": "/api/integrations/desk/accounts/{id}",
8291     "title": "Gets a single Desk Account",
8292     "examples": [
8293       {
8294         "title": "Example usage:",
8295         "content": "curl https://{domain}/api/integrations/desk/accounts/{id} -v -u {name}:{password}",
8296         "type": "json"
8297       }
8298     ],
8299     "name": "ShowDesk_Accounts",
8300     "group": "Desk_Accounts",
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/intDeskAccount/index.js",
8304     "groupTitle": "Desk_Accounts"
8305   },
8306   {
8307     "type": "post",
8308     "url": "/api/integrations/desk/accounts/{id}/configurations",
8309     "title": "Creates new configuration",
8310     "examples": [
8311       {
8312         "title": "Example usage:",
8313         "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",
8314         "type": "json"
8315       }
8316     ],
8317     "name": "addConfiguration",
8318     "group": "Desk_Accounts",
8319     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8320     "version": "0.0.0",
8321     "filename": "server/api/intDeskAccount/index.js",
8322     "groupTitle": "Desk_Accounts"
8323   },
8324   {
8325     "type": "get",
8326     "url": "/api/integrations/desk/accounts/{id}/configurations",
8327     "title": "Gets account configurations",
8328     "examples": [
8329       {
8330         "title": "Example usage:",
8331         "content": "curl https://{domain}/api/integrations/desk/accounts/{id}/configurations -v -u {name}:{password} -X GET",
8332         "type": "json"
8333       }
8334     ],
8335     "name": "getConfigurations",
8336     "group": "Desk_Accounts",
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/intDeskAccount/index.js",
8340     "groupTitle": "Desk_Accounts"
8341   },
8342   {
8343     "type": "get",
8344     "url": "/api/integrations/desk/accounts/{id}/fields",
8345     "title": "Gets account fields",
8346     "examples": [
8347       {
8348         "title": "Example usage:",
8349         "content": "curl https://{domain}/api/integrations/desk/accounts/{id}/fields -v -u {name}:{password} -X GET",
8350         "type": "json"
8351       }
8352     ],
8353     "name": "getFields",
8354     "group": "Desk_Accounts",
8355     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8356     "version": "0.0.0",
8357     "filename": "server/api/intDeskAccount/index.js",
8358     "groupTitle": "Desk_Accounts"
8359   },
8360   {
8361     "type": "put",
8362     "url": "/api/integrations/desk/accounts/{id}",
8363     "title": "Update an existing Desk Account",
8364     "examples": [
8365       {
8366         "title": "Example usage:",
8367         "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",
8368         "type": "json"
8369       }
8370     ],
8371     "name": "updateDesk_Accounts",
8372     "group": "Desk_Accounts",
8373     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8374     "version": "0.0.0",
8375     "filename": "server/api/intDeskAccount/index.js",
8376     "groupTitle": "Desk_Accounts"
8377   },
8378   {
8379     "type": "post",
8380     "url": "/api/integrations/desk/configurations",
8381     "title": "Creates a new Desk Configuration",
8382     "examples": [
8383       {
8384         "title": "Example usage:",
8385         "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",
8386         "type": "json"
8387       }
8388     ],
8389     "name": "CreateDesk_Configurations",
8390     "group": "Desk_Configurations",
8391     "parameter": {
8392       "fields": {
8393         "Body": [
8394           {
8395             "group": "Body",
8396             "type": "String",
8397             "optional": true,
8398             "field": "name",
8399             "description": ""
8400           },
8401           {
8402             "group": "Body",
8403             "type": "String",
8404             "optional": true,
8405             "field": "description",
8406             "description": ""
8407           }
8408         ]
8409       }
8410     },
8411     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8412     "version": "0.0.0",
8413     "filename": "server/api/intDeskConfiguration/index.js",
8414     "groupTitle": "Desk_Configurations"
8415   },
8416   {
8417     "type": "delete",
8418     "url": "/api/integrations/desk/configurations/{id}",
8419     "title": "Deletes a Desk Configuration",
8420     "examples": [
8421       {
8422         "title": "Example usage:",
8423         "content": "curl https://{domain}/api/integrations/desk/configurations/{id} -v -u {name}:{password} -X DELETE",
8424         "type": "json"
8425       }
8426     ],
8427     "name": "DeleteDesk_Configurations",
8428     "group": "Desk_Configurations",
8429     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8430     "version": "0.0.0",
8431     "filename": "server/api/intDeskConfiguration/index.js",
8432     "groupTitle": "Desk_Configurations"
8433   },
8434   {
8435     "type": "get",
8436     "url": "/api/integrations/desk/configurations",
8437     "title": "Gets a list of Desk Configurations",
8438     "examples": [
8439       {
8440         "title": "Example usage:",
8441         "content": "curl https://{domain}/api/integrations/desk/configurations -v -u {name}:{password}",
8442         "type": "json"
8443       }
8444     ],
8445     "name": "GetDesk_Configurations",
8446     "group": "Desk_Configurations",
8447     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
8448     "version": "0.0.0",
8449     "filename": "server/api/intDeskConfiguration/index.js",
8450     "groupTitle": "Desk_Configurations"
8451   },
8452   {
8453     "type": "get",
8454     "url": "/api/integrations/desk/configurations/{id}",
8455     "title": "Gets a single Desk Configuration",
8456     "examples": [
8457       {
8458         "title": "Example usage:",
8459         "content": "curl https://{domain}/api/integrations/desk/configurations/{id} -v -u {name}:{password}",
8460         "type": "json"
8461       }
8462     ],
8463     "name": "ShowDesk_Configurations",
8464     "group": "Desk_Configurations",
8465     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8466     "version": "0.0.0",
8467     "filename": "server/api/intDeskConfiguration/index.js",
8468     "groupTitle": "Desk_Configurations"
8469   },
8470   {
8471     "type": "get",
8472     "url": "/api/integrations/desk/configurations/{id}/descriptions",
8473     "title": "Gets configurations descriptions",
8474     "examples": [
8475       {
8476         "title": "Example usage:",
8477         "content": "curl https://{domain}/api/integrations/desk/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
8478         "type": "json"
8479       }
8480     ],
8481     "name": "getDescriptions",
8482     "group": "Desk_Configurations",
8483     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8484     "version": "0.0.0",
8485     "filename": "server/api/intDeskConfiguration/index.js",
8486     "groupTitle": "Desk_Configurations"
8487   },
8488   {
8489     "type": "get",
8490     "url": "/api/integrations/desk/configurations/{id}/fields",
8491     "title": "Gets configurations fields",
8492     "examples": [
8493       {
8494         "title": "Example usage:",
8495         "content": "curl https://{domain}/api/integrations/desk/configurations/{id}/fields -v -u {name}:{password} -X GET",
8496         "type": "json"
8497       }
8498     ],
8499     "name": "getFields",
8500     "group": "Desk_Configurations",
8501     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8502     "version": "0.0.0",
8503     "filename": "server/api/intDeskConfiguration/index.js",
8504     "groupTitle": "Desk_Configurations"
8505   },
8506   {
8507     "type": "get",
8508     "url": "/api/integrations/desk/configurations/{id}/subjects",
8509     "title": "Gets configurations subjects",
8510     "examples": [
8511       {
8512         "title": "Example usage:",
8513         "content": "curl https://{domain}/api/integrations/desk/configurations/{id}/subjects -v -u {name}:{password} -X GET",
8514         "type": "json"
8515       }
8516     ],
8517     "name": "getSubjects",
8518     "group": "Desk_Configurations",
8519     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8520     "version": "0.0.0",
8521     "filename": "server/api/intDeskConfiguration/index.js",
8522     "groupTitle": "Desk_Configurations"
8523   },
8524   {
8525     "type": "get",
8526     "url": "/api/integrations/desk/configurations/{id}/tags",
8527     "title": "Gets configurations tags",
8528     "examples": [
8529       {
8530         "title": "Example usage:",
8531         "content": "curl https://{domain}/api/integrations/desk/configurations/{id}/tags -v -u {name}:{password} -X GET",
8532         "type": "json"
8533       }
8534     ],
8535     "name": "getTags",
8536     "group": "Desk_Configurations",
8537     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8538     "version": "0.0.0",
8539     "filename": "server/api/intDeskConfiguration/index.js",
8540     "groupTitle": "Desk_Configurations"
8541   },
8542   {
8543     "type": "post",
8544     "url": "/api/integrations/desk/configurations/{id}/tags",
8545     "title": "Sets new tags",
8546     "examples": [
8547       {
8548         "title": "Example usage:",
8549         "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",
8550         "type": "json"
8551       }
8552     ],
8553     "name": "setTags",
8554     "group": "Desk_Configurations",
8555     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8556     "version": "0.0.0",
8557     "filename": "server/api/intDeskConfiguration/index.js",
8558     "groupTitle": "Desk_Configurations"
8559   },
8560   {
8561     "type": "put",
8562     "url": "/api/integrations/desk/configurations/{id}",
8563     "title": "Update an existing Desk Configuration",
8564     "examples": [
8565       {
8566         "title": "Example usage:",
8567         "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",
8568         "type": "json"
8569       }
8570     ],
8571     "name": "updateDesk_Configurations",
8572     "group": "Desk_Configurations",
8573     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8574     "version": "0.0.0",
8575     "filename": "server/api/intDeskConfiguration/index.js",
8576     "groupTitle": "Desk_Configurations"
8577   },
8578   {
8579     "type": "post",
8580     "url": "/api/integrations/desk/fields",
8581     "title": "Creates a new Desk Field",
8582     "examples": [
8583       {
8584         "title": "Example usage:",
8585         "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",
8586         "type": "json"
8587       }
8588     ],
8589     "name": "CreateDesk_Fields",
8590     "group": "Desk_Fields",
8591     "parameter": {
8592       "fields": {
8593         "Body": [
8594           {
8595             "group": "Body",
8596             "type": "String",
8597             "allowedValues": [
8598               "\"string\"",
8599               "\"variable\"",
8600               "\"customVariable\"",
8601               "\"keyValue\"",
8602               "\"picklist\""
8603             ],
8604             "optional": true,
8605             "field": "type",
8606             "description": ""
8607           },
8608           {
8609             "group": "Body",
8610             "type": "String",
8611             "optional": true,
8612             "field": "content",
8613             "description": ""
8614           },
8615           {
8616             "group": "Body",
8617             "type": "String",
8618             "optional": true,
8619             "field": "key",
8620             "description": ""
8621           },
8622           {
8623             "group": "Body",
8624             "type": "String",
8625             "allowedValues": [
8626               "\"string\"",
8627               "\"variable\"",
8628               "\"customVariable\""
8629             ],
8630             "optional": true,
8631             "field": "keyType",
8632             "description": ""
8633           },
8634           {
8635             "group": "Body",
8636             "type": "String",
8637             "optional": true,
8638             "field": "keyContent",
8639             "description": ""
8640           },
8641           {
8642             "group": "Body",
8643             "type": "String",
8644             "optional": true,
8645             "field": "idField",
8646             "description": ""
8647           },
8648           {
8649             "group": "Body",
8650             "type": "String",
8651             "optional": true,
8652             "field": "nameField",
8653             "description": ""
8654           },
8655           {
8656             "group": "Body",
8657             "type": "Boolean",
8658             "optional": true,
8659             "field": "customField",
8660             "description": ""
8661           },
8662           {
8663             "group": "Body",
8664             "type": "String",
8665             "optional": true,
8666             "field": "variableName",
8667             "description": ""
8668           }
8669         ]
8670       }
8671     },
8672     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8673     "version": "0.0.0",
8674     "filename": "server/api/intDeskField/index.js",
8675     "groupTitle": "Desk_Fields"
8676   },
8677   {
8678     "type": "delete",
8679     "url": "/api/integrations/desk/fields/{id}",
8680     "title": "Deletes a Desk Field",
8681     "examples": [
8682       {
8683         "title": "Example usage:",
8684         "content": "curl https://{domain}/api/integrations/desk/fields/{id} -v -u {name}:{password} -X DELETE",
8685         "type": "json"
8686       }
8687     ],
8688     "name": "DeleteDesk_Fields",
8689     "group": "Desk_Fields",
8690     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8691     "version": "0.0.0",
8692     "filename": "server/api/intDeskField/index.js",
8693     "groupTitle": "Desk_Fields"
8694   },
8695   {
8696     "type": "get",
8697     "url": "/api/integrations/desk/fields",
8698     "title": "Gets a list of Desk Fields",
8699     "examples": [
8700       {
8701         "title": "Example usage:",
8702         "content": "curl https://{domain}/api/integrations/desk/fields -v -u {name}:{password}",
8703         "type": "json"
8704       }
8705     ],
8706     "name": "GetDesk_Fields",
8707     "group": "Desk_Fields",
8708     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
8709     "version": "0.0.0",
8710     "filename": "server/api/intDeskField/index.js",
8711     "groupTitle": "Desk_Fields"
8712   },
8713   {
8714     "type": "get",
8715     "url": "/api/integrations/desk/fields/{id}",
8716     "title": "Gets a single Desk Field",
8717     "examples": [
8718       {
8719         "title": "Example usage:",
8720         "content": "curl https://{domain}/api/integrations/desk/fields/{id} -v -u {name}:{password}",
8721         "type": "json"
8722       }
8723     ],
8724     "name": "ShowDesk_Fields",
8725     "group": "Desk_Fields",
8726     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <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/intDeskField/index.js",
8729     "groupTitle": "Desk_Fields"
8730   },
8731   {
8732     "type": "put",
8733     "url": "/api/integrations/desk/fields/{id}",
8734     "title": "Update an existing Desk Field",
8735     "examples": [
8736       {
8737         "title": "Example usage:",
8738         "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",
8739         "type": "json"
8740       }
8741     ],
8742     "name": "updateDesk_Fields",
8743     "group": "Desk_Fields",
8744     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8745     "version": "0.0.0",
8746     "filename": "server/api/intDeskField/index.js",
8747     "groupTitle": "Desk_Fields"
8748   },
8749   {
8750     "type": "post",
8751     "url": "/api/dispositions",
8752     "title": "Creates a new Disposition",
8753     "examples": [
8754       {
8755         "title": "Example usage:",
8756         "content": "curl https://{domain}/api/dispositions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
8757         "type": "json"
8758       }
8759     ],
8760     "name": "CreateDispositions",
8761     "group": "Dispositions",
8762     "parameter": {
8763       "fields": {
8764         "Body": [
8765           {
8766             "group": "Body",
8767             "type": "String",
8768             "optional": false,
8769             "field": "name",
8770             "description": ""
8771           },
8772           {
8773             "group": "Body",
8774             "type": "String",
8775             "allowedValues": [
8776               "\"first\"",
8777               "\"second\"",
8778               "\"third\""
8779             ],
8780             "optional": false,
8781             "field": "level",
8782             "description": ""
8783           },
8784           {
8785             "group": "Body",
8786             "type": "String",
8787             "optional": true,
8788             "field": "description",
8789             "description": ""
8790           }
8791         ]
8792       }
8793     },
8794     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8795     "version": "0.0.0",
8796     "filename": "server/api/disposition/index.js",
8797     "groupTitle": "Dispositions"
8798   },
8799   {
8800     "type": "delete",
8801     "url": "/api/dispositions/{id}",
8802     "title": "Deletes a Disposition",
8803     "examples": [
8804       {
8805         "title": "Example usage:",
8806         "content": "curl https://{domain}/api/dispositions/{id} -v -u {name}:{password} -X DELETE",
8807         "type": "json"
8808       }
8809     ],
8810     "name": "DeleteDispositions",
8811     "group": "Dispositions",
8812     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8813     "version": "0.0.0",
8814     "filename": "server/api/disposition/index.js",
8815     "groupTitle": "Dispositions"
8816   },
8817   {
8818     "type": "get",
8819     "url": "/api/dispositions",
8820     "title": "Gets a list of Dispositions",
8821     "examples": [
8822       {
8823         "title": "Example usage:",
8824         "content": "curl https://{domain}/api/dispositions -v -u {name}:{password}",
8825         "type": "json"
8826       }
8827     ],
8828     "name": "GetDispositions",
8829     "group": "Dispositions",
8830     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
8831     "version": "0.0.0",
8832     "filename": "server/api/disposition/index.js",
8833     "groupTitle": "Dispositions"
8834   },
8835   {
8836     "type": "get",
8837     "url": "/api/dispositions/{id}",
8838     "title": "Gets a single Disposition",
8839     "examples": [
8840       {
8841         "title": "Example usage:",
8842         "content": "curl https://{domain}/api/dispositions/{id} -v -u {name}:{password}",
8843         "type": "json"
8844       }
8845     ],
8846     "name": "ShowDispositions",
8847     "group": "Dispositions",
8848     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8849     "version": "0.0.0",
8850     "filename": "server/api/disposition/index.js",
8851     "groupTitle": "Dispositions"
8852   },
8853   {
8854     "type": "put",
8855     "url": "/api/dispositions/{id}",
8856     "title": "Update an existing Disposition",
8857     "examples": [
8858       {
8859         "title": "Example usage:",
8860         "content": "curl https://{domain}/api/dispositions/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
8861         "type": "json"
8862       }
8863     ],
8864     "name": "updateDispositions",
8865     "group": "Dispositions",
8866     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8867     "version": "0.0.0",
8868     "filename": "server/api/disposition/index.js",
8869     "groupTitle": "Dispositions"
8870   },
8871   {
8872     "type": "post",
8873     "url": "/api/integrations/dynamics365/accounts",
8874     "title": "Creates a new Dynamics365 Account",
8875     "examples": [
8876       {
8877         "title": "Example usage:",
8878         "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",
8879         "type": "json"
8880       }
8881     ],
8882     "name": "CreateDynamics365_Accounts",
8883     "group": "Dynamics365_Accounts",
8884     "parameter": {
8885       "fields": {
8886         "Body": [
8887           {
8888             "group": "Body",
8889             "type": "String",
8890             "optional": true,
8891             "field": "name",
8892             "description": ""
8893           },
8894           {
8895             "group": "Body",
8896             "type": "String",
8897             "optional": true,
8898             "field": "username",
8899             "description": ""
8900           },
8901           {
8902             "group": "Body",
8903             "type": "String",
8904             "optional": true,
8905             "field": "password",
8906             "description": ""
8907           },
8908           {
8909             "group": "Body",
8910             "type": "String",
8911             "optional": true,
8912             "field": "remoteUri",
8913             "description": ""
8914           },
8915           {
8916             "group": "Body",
8917             "type": "String",
8918             "optional": true,
8919             "field": "tenantId",
8920             "description": ""
8921           },
8922           {
8923             "group": "Body",
8924             "type": "String",
8925             "optional": true,
8926             "field": "clientId",
8927             "description": ""
8928           },
8929           {
8930             "group": "Body",
8931             "type": "String",
8932             "optional": true,
8933             "field": "clientSecret",
8934             "description": ""
8935           },
8936           {
8937             "group": "Body",
8938             "type": "String",
8939             "optional": false,
8940             "field": "serverUrl",
8941             "description": ""
8942           },
8943           {
8944             "group": "Body",
8945             "type": "String",
8946             "optional": true,
8947             "field": "description",
8948             "description": ""
8949           }
8950         ]
8951       }
8952     },
8953     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8954     "version": "0.0.0",
8955     "filename": "server/api/intDynamics365Account/index.js",
8956     "groupTitle": "Dynamics365_Accounts"
8957   },
8958   {
8959     "type": "delete",
8960     "url": "/api/integrations/dynamics365/accounts/{id}",
8961     "title": "Deletes a Dynamics365 Account",
8962     "examples": [
8963       {
8964         "title": "Example usage:",
8965         "content": "curl https://{domain}/api/integrations/dynamics365/accounts/{id} -v -u {name}:{password} -X DELETE",
8966         "type": "json"
8967       }
8968     ],
8969     "name": "DeleteDynamics365_Accounts",
8970     "group": "Dynamics365_Accounts",
8971     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8972     "version": "0.0.0",
8973     "filename": "server/api/intDynamics365Account/index.js",
8974     "groupTitle": "Dynamics365_Accounts"
8975   },
8976   {
8977     "type": "get",
8978     "url": "/api/integrations/dynamics365/accounts",
8979     "title": "Gets a list of Dynamics365 Accounts",
8980     "examples": [
8981       {
8982         "title": "Example usage:",
8983         "content": "curl https://{domain}/api/integrations/dynamics365/accounts -v -u {name}:{password}",
8984         "type": "json"
8985       }
8986     ],
8987     "name": "GetDynamics365_Accounts",
8988     "group": "Dynamics365_Accounts",
8989     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
8990     "version": "0.0.0",
8991     "filename": "server/api/intDynamics365Account/index.js",
8992     "groupTitle": "Dynamics365_Accounts"
8993   },
8994   {
8995     "type": "get",
8996     "url": "/api/integrations/dynamics365/accounts/{id}",
8997     "title": "Gets a single Dynamics365 Account",
8998     "examples": [
8999       {
9000         "title": "Example usage:",
9001         "content": "curl https://{domain}/api/integrations/dynamics365/accounts/{id} -v -u {name}:{password}",
9002         "type": "json"
9003       }
9004     ],
9005     "name": "ShowDynamics365_Accounts",
9006     "group": "Dynamics365_Accounts",
9007     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9008     "version": "0.0.0",
9009     "filename": "server/api/intDynamics365Account/index.js",
9010     "groupTitle": "Dynamics365_Accounts"
9011   },
9012   {
9013     "type": "post",
9014     "url": "/api/integrations/dynamics365/accounts/{id}/configurations",
9015     "title": "Creates new configuration",
9016     "examples": [
9017       {
9018         "title": "Example usage:",
9019         "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",
9020         "type": "json"
9021       }
9022     ],
9023     "name": "addConfiguration",
9024     "group": "Dynamics365_Accounts",
9025     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9026     "version": "0.0.0",
9027     "filename": "server/api/intDynamics365Account/index.js",
9028     "groupTitle": "Dynamics365_Accounts"
9029   },
9030   {
9031     "type": "get",
9032     "url": "/api/integrations/dynamics365/accounts/{id}/configurations",
9033     "title": "Gets account configurations",
9034     "examples": [
9035       {
9036         "title": "Example usage:",
9037         "content": "curl https://{domain}/api/integrations/dynamics365/accounts/{id}/configurations -v -u {name}:{password} -X GET",
9038         "type": "json"
9039       }
9040     ],
9041     "name": "getConfigurations",
9042     "group": "Dynamics365_Accounts",
9043     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9044     "version": "0.0.0",
9045     "filename": "server/api/intDynamics365Account/index.js",
9046     "groupTitle": "Dynamics365_Accounts"
9047   },
9048   {
9049     "type": "get",
9050     "url": "/api/integrations/dynamics365/accounts/{id}/fields",
9051     "title": "Gets account fields",
9052     "examples": [
9053       {
9054         "title": "Example usage:",
9055         "content": "curl https://{domain}/api/integrations/dynamics365/accounts/{id}/fields -v -u {name}:{password} -X GET",
9056         "type": "json"
9057       }
9058     ],
9059     "name": "getFields",
9060     "group": "Dynamics365_Accounts",
9061     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9062     "version": "0.0.0",
9063     "filename": "server/api/intDynamics365Account/index.js",
9064     "groupTitle": "Dynamics365_Accounts"
9065   },
9066   {
9067     "type": "put",
9068     "url": "/api/integrations/dynamics365/accounts/{id}",
9069     "title": "Update an existing Dynamics365 Account",
9070     "examples": [
9071       {
9072         "title": "Example usage:",
9073         "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",
9074         "type": "json"
9075       }
9076     ],
9077     "name": "updateDynamics365_Accounts",
9078     "group": "Dynamics365_Accounts",
9079     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9080     "version": "0.0.0",
9081     "filename": "server/api/intDynamics365Account/index.js",
9082     "groupTitle": "Dynamics365_Accounts"
9083   },
9084   {
9085     "type": "post",
9086     "url": "/api/integrations/dynamics365/configurations",
9087     "title": "Creates a new Dynamics365 Configuration",
9088     "examples": [
9089       {
9090         "title": "Example usage:",
9091         "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",
9092         "type": "json"
9093       }
9094     ],
9095     "name": "CreateDynamics365_Configurations",
9096     "group": "Dynamics365_Configurations",
9097     "parameter": {
9098       "fields": {
9099         "Body": [
9100           {
9101             "group": "Body",
9102             "type": "String",
9103             "optional": true,
9104             "field": "name",
9105             "description": ""
9106           },
9107           {
9108             "group": "Body",
9109             "type": "String",
9110             "optional": true,
9111             "field": "description",
9112             "description": ""
9113           },
9114           {
9115             "group": "Body",
9116             "type": "String",
9117             "allowedValues": [
9118               "\"incident\"",
9119               "\"phonecall\""
9120             ],
9121             "optional": true,
9122             "field": "ticketType",
9123             "description": ""
9124           }
9125         ]
9126       }
9127     },
9128     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9129     "version": "0.0.0",
9130     "filename": "server/api/intDynamics365Configuration/index.js",
9131     "groupTitle": "Dynamics365_Configurations"
9132   },
9133   {
9134     "type": "delete",
9135     "url": "/api/integrations/dynamics365/configurations/{id}",
9136     "title": "Deletes a Dynamics365 Configuration",
9137     "examples": [
9138       {
9139         "title": "Example usage:",
9140         "content": "curl https://{domain}/api/integrations/dynamics365/configurations/{id} -v -u {name}:{password} -X DELETE",
9141         "type": "json"
9142       }
9143     ],
9144     "name": "DeleteDynamics365_Configurations",
9145     "group": "Dynamics365_Configurations",
9146     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9147     "version": "0.0.0",
9148     "filename": "server/api/intDynamics365Configuration/index.js",
9149     "groupTitle": "Dynamics365_Configurations"
9150   },
9151   {
9152     "type": "get",
9153     "url": "/api/integrations/dynamics365/configurations",
9154     "title": "Gets a list of Dynamics365 Configurations",
9155     "examples": [
9156       {
9157         "title": "Example usage:",
9158         "content": "curl https://{domain}/api/integrations/dynamics365/configurations -v -u {name}:{password}",
9159         "type": "json"
9160       }
9161     ],
9162     "name": "GetDynamics365_Configurations",
9163     "group": "Dynamics365_Configurations",
9164     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
9165     "version": "0.0.0",
9166     "filename": "server/api/intDynamics365Configuration/index.js",
9167     "groupTitle": "Dynamics365_Configurations"
9168   },
9169   {
9170     "type": "get",
9171     "url": "/api/integrations/dynamics365/configurations/{id}",
9172     "title": "Gets a single Dynamics365 Configuration",
9173     "examples": [
9174       {
9175         "title": "Example usage:",
9176         "content": "curl https://{domain}/api/integrations/dynamics365/configurations/{id} -v -u {name}:{password}",
9177         "type": "json"
9178       }
9179     ],
9180     "name": "ShowDynamics365_Configurations",
9181     "group": "Dynamics365_Configurations",
9182     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9183     "version": "0.0.0",
9184     "filename": "server/api/intDynamics365Configuration/index.js",
9185     "groupTitle": "Dynamics365_Configurations"
9186   },
9187   {
9188     "type": "get",
9189     "url": "/api/integrations/dynamics365/configurations/{id}/descriptions",
9190     "title": "Gets configurations descriptions",
9191     "examples": [
9192       {
9193         "title": "Example usage:",
9194         "content": "curl https://{domain}/api/integrations/dynamics365/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
9195         "type": "json"
9196       }
9197     ],
9198     "name": "getDescriptions",
9199     "group": "Dynamics365_Configurations",
9200     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9201     "version": "0.0.0",
9202     "filename": "server/api/intDynamics365Configuration/index.js",
9203     "groupTitle": "Dynamics365_Configurations"
9204   },
9205   {
9206     "type": "get",
9207     "url": "/api/integrations/dynamics365/configurations/{id}/fields",
9208     "title": "Gets configurations fields",
9209     "examples": [
9210       {
9211         "title": "Example usage:",
9212         "content": "curl https://{domain}/api/integrations/zoho/configurations/{id}/fields -v -u {name}:{password} -X GET",
9213         "type": "json"
9214       }
9215     ],
9216     "name": "getFields",
9217     "group": "Dynamics365_Configurations",
9218     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9219     "version": "0.0.0",
9220     "filename": "server/api/intDynamics365Configuration/index.js",
9221     "groupTitle": "Dynamics365_Configurations"
9222   },
9223   {
9224     "type": "get",
9225     "url": "/api/integrations/zoho/configurations/{id}/subjects",
9226     "title": "Gets configurations subjects",
9227     "examples": [
9228       {
9229         "title": "Example usage:",
9230         "content": "curl https://{domain}/api/integrations/dynamics365/configurations/{id}/subjects -v -u {name}:{password} -X GET",
9231         "type": "json"
9232       }
9233     ],
9234     "name": "getSubjects",
9235     "group": "Dynamics365_Configurations",
9236     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9237     "version": "0.0.0",
9238     "filename": "server/api/intDynamics365Configuration/index.js",
9239     "groupTitle": "Dynamics365_Configurations"
9240   },
9241   {
9242     "type": "put",
9243     "url": "/api/integrations/dynamics365/configurations/{id}",
9244     "title": "Update an existing Dynamics365 Configuration",
9245     "examples": [
9246       {
9247         "title": "Example usage:",
9248         "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",
9249         "type": "json"
9250       }
9251     ],
9252     "name": "updateDynamics365_Configurations",
9253     "group": "Dynamics365_Configurations",
9254     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9255     "version": "0.0.0",
9256     "filename": "server/api/intDynamics365Configuration/index.js",
9257     "groupTitle": "Dynamics365_Configurations"
9258   },
9259   {
9260     "type": "post",
9261     "url": "/api/integrations/dynamics365/fields",
9262     "title": "Creates a new Dynamics365 Field",
9263     "examples": [
9264       {
9265         "title": "Example usage:",
9266         "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",
9267         "type": "json"
9268       }
9269     ],
9270     "name": "CreateDynamics365_Fields",
9271     "group": "Dynamics365_Fields",
9272     "parameter": {
9273       "fields": {
9274         "Body": [
9275           {
9276             "group": "Body",
9277             "type": "String",
9278             "allowedValues": [
9279               "\"string\"",
9280               "\"variable\"",
9281               "\"customVariable\"",
9282               "\"keyValue\"",
9283               "\"picklist\""
9284             ],
9285             "optional": true,
9286             "field": "type",
9287             "description": ""
9288           },
9289           {
9290             "group": "Body",
9291             "type": "String",
9292             "optional": true,
9293             "field": "content",
9294             "description": ""
9295           },
9296           {
9297             "group": "Body",
9298             "type": "String",
9299             "optional": true,
9300             "field": "key",
9301             "description": ""
9302           },
9303           {
9304             "group": "Body",
9305             "type": "String",
9306             "allowedValues": [
9307               "\"string\"",
9308               "\"variable\"",
9309               "\"customVariable\""
9310             ],
9311             "optional": true,
9312             "field": "keyType",
9313             "description": ""
9314           },
9315           {
9316             "group": "Body",
9317             "type": "String",
9318             "optional": true,
9319             "field": "keyContent",
9320             "description": ""
9321           },
9322           {
9323             "group": "Body",
9324             "type": "String",
9325             "optional": true,
9326             "field": "idField",
9327             "description": ""
9328           },
9329           {
9330             "group": "Body",
9331             "type": "String",
9332             "optional": true,
9333             "field": "nameField",
9334             "description": ""
9335           },
9336           {
9337             "group": "Body",
9338             "type": "Boolean",
9339             "optional": true,
9340             "field": "customField",
9341             "description": ""
9342           },
9343           {
9344             "group": "Body",
9345             "type": "String",
9346             "optional": true,
9347             "field": "variableName",
9348             "description": ""
9349           }
9350         ]
9351       }
9352     },
9353     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9354     "version": "0.0.0",
9355     "filename": "server/api/intDynamics365Field/index.js",
9356     "groupTitle": "Dynamics365_Fields"
9357   },
9358   {
9359     "type": "delete",
9360     "url": "/api/integrations/dynamics365/fields/{id}",
9361     "title": "Deletes a Dynamics365 Field",
9362     "examples": [
9363       {
9364         "title": "Example usage:",
9365         "content": "curl https://{domain}/api/integrations/dynamics365/fields/{id} -v -u {name}:{password} -X DELETE",
9366         "type": "json"
9367       }
9368     ],
9369     "name": "DeleteDynamics365_Fields",
9370     "group": "Dynamics365_Fields",
9371     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9372     "version": "0.0.0",
9373     "filename": "server/api/intDynamics365Field/index.js",
9374     "groupTitle": "Dynamics365_Fields"
9375   },
9376   {
9377     "type": "get",
9378     "url": "/api/integrations/dynamics365/fields",
9379     "title": "Gets a list of Dynamics365 Fields",
9380     "examples": [
9381       {
9382         "title": "Example usage:",
9383         "content": "curl https://{domain}/api/integrations/dynamics365/fields -v -u {name}:{password}",
9384         "type": "json"
9385       }
9386     ],
9387     "name": "GetDynamics365_Fields",
9388     "group": "Dynamics365_Fields",
9389     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
9390     "version": "0.0.0",
9391     "filename": "server/api/intDynamics365Field/index.js",
9392     "groupTitle": "Dynamics365_Fields"
9393   },
9394   {
9395     "type": "get",
9396     "url": "/api/integrations/dynamics365/fields/{id}",
9397     "title": "Gets a single Dynamics365 Field",
9398     "examples": [
9399       {
9400         "title": "Example usage:",
9401         "content": "curl https://{domain}/api/integrations/dynamics365/fields/{id} -v -u {name}:{password}",
9402         "type": "json"
9403       }
9404     ],
9405     "name": "ShowDynamics365_Fields",
9406     "group": "Dynamics365_Fields",
9407     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9408     "version": "0.0.0",
9409     "filename": "server/api/intDynamics365Field/index.js",
9410     "groupTitle": "Dynamics365_Fields"
9411   },
9412   {
9413     "type": "put",
9414     "url": "/api/integrations/dynamics365/fields/{id}",
9415     "title": "Update an existing Dynamics365 Field",
9416     "examples": [
9417       {
9418         "title": "Example usage:",
9419         "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",
9420         "type": "json"
9421       }
9422     ],
9423     "name": "updateDynamics365_Fields",
9424     "group": "Dynamics365_Fields",
9425     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9426     "version": "0.0.0",
9427     "filename": "server/api/intDynamics365Field/index.js",
9428     "groupTitle": "Dynamics365_Fields"
9429   },
9430   {
9431     "type": "post",
9432     "url": "/api/fax/accounts/{id}/users",
9433     "title": "Add agents to a fax account",
9434     "examples": [
9435       {
9436         "title": "Example usage:",
9437         "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",
9438         "type": "json"
9439       }
9440     ],
9441     "name": "AddAgents",
9442     "group": "Fax_Accounts",
9443     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9444     "version": "0.0.0",
9445     "filename": "server/api/faxAccount/index.js",
9446     "groupTitle": "Fax_Accounts"
9447   },
9448   {
9449     "type": "post",
9450     "url": "/api/fax/accounts",
9451     "title": "Creates a new Account",
9452     "examples": [
9453       {
9454         "title": "Example usage:",
9455         "content": "curl https://{domain}/api/fax/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
9456         "type": "json"
9457       }
9458     ],
9459     "name": "CreateAccounts",
9460     "group": "Fax_Accounts",
9461     "parameter": {
9462       "fields": {
9463         "Body": [
9464           {
9465             "group": "Body",
9466             "type": "String",
9467             "optional": false,
9468             "field": "name",
9469             "description": ""
9470           },
9471           {
9472             "group": "Body",
9473             "type": "String",
9474             "optional": true,
9475             "field": "description",
9476             "description": ""
9477           },
9478           {
9479             "group": "Body",
9480             "type": "String",
9481             "allowedValues": [
9482               "\"yes\"",
9483               "\"no\""
9484             ],
9485             "optional": true,
9486             "field": "ecm",
9487             "description": ""
9488           },
9489           {
9490             "group": "Body",
9491             "type": "String",
9492             "optional": true,
9493             "field": "headerinfo",
9494             "description": ""
9495           },
9496           {
9497             "group": "Body",
9498             "type": "String",
9499             "optional": true,
9500             "field": "localstationid",
9501             "description": ""
9502           },
9503           {
9504             "group": "Body",
9505             "type": "String",
9506             "allowedValues": [
9507               "\"2400\"",
9508               "\"4800\"",
9509               "\"7200\"",
9510               "\"9600\"",
9511               "\"12000\"",
9512               "\"14400\""
9513             ],
9514             "optional": true,
9515             "field": "minrate",
9516             "description": ""
9517           },
9518           {
9519             "group": "Body",
9520             "type": "String",
9521             "allowedValues": [
9522               "\"2400\"",
9523               "\"4800\"",
9524               "\"7200\"",
9525               "\"9600\"",
9526               "\"12000\"",
9527               "\"14400\""
9528             ],
9529             "optional": true,
9530             "field": "maxrate",
9531             "description": ""
9532           },
9533           {
9534             "group": "Body",
9535             "type": "String",
9536             "optional": true,
9537             "field": "modem",
9538             "description": ""
9539           },
9540           {
9541             "group": "Body",
9542             "type": "String",
9543             "optional": true,
9544             "field": "gateway",
9545             "description": ""
9546           },
9547           {
9548             "group": "Body",
9549             "type": "String",
9550             "optional": true,
9551             "field": "faxdetect",
9552             "description": ""
9553           },
9554           {
9555             "group": "Body",
9556             "type": "Integer",
9557             "optional": true,
9558             "field": "t38timeout",
9559             "description": ""
9560           },
9561           {
9562             "group": "Body",
9563             "type": "String",
9564             "allowedValues": [
9565               "\"SIP\"",
9566               "\"IAX\"",
9567               "\"DADHI\"",
9568               "\"KHOMP\""
9569             ],
9570             "optional": true,
9571             "field": "tech",
9572             "description": ""
9573           },
9574           {
9575             "group": "Body",
9576             "type": "String",
9577             "optional": false,
9578             "field": "key",
9579             "description": ""
9580           },
9581           {
9582             "group": "Body",
9583             "type": "Text",
9584             "optional": true,
9585             "field": "notificationTemplate",
9586             "description": ""
9587           },
9588           {
9589             "group": "Body",
9590             "type": "Boolean",
9591             "optional": true,
9592             "field": "notificationSound",
9593             "description": ""
9594           },
9595           {
9596             "group": "Body",
9597             "type": "Boolean",
9598             "optional": true,
9599             "field": "notificationShake",
9600             "description": ""
9601           },
9602           {
9603             "group": "Body",
9604             "type": "Integer",
9605             "optional": true,
9606             "field": "waitForTheAssignedAgent",
9607             "description": ""
9608           },
9609           {
9610             "group": "Body",
9611             "type": "Boolean",
9612             "optional": true,
9613             "field": "queueTransfer",
9614             "description": ""
9615           },
9616           {
9617             "group": "Body",
9618             "type": "Integer",
9619             "optional": true,
9620             "field": "queueTransferTimeout",
9621             "description": ""
9622           },
9623           {
9624             "group": "Body",
9625             "type": "Boolean",
9626             "optional": true,
9627             "field": "agentTransfer",
9628             "description": ""
9629           },
9630           {
9631             "group": "Body",
9632             "type": "Integer",
9633             "optional": true,
9634             "field": "agentTransferTimeout",
9635             "description": ""
9636           },
9637           {
9638             "group": "Body",
9639             "type": "Integer",
9640             "optional": true,
9641             "field": "mandatoryDispositionPauseId",
9642             "description": "<p>Status to put when mandatory disposition is enabled</p>"
9643           },
9644           {
9645             "group": "Body",
9646             "type": "Boolean",
9647             "optional": true,
9648             "field": "mandatoryDisposition",
9649             "description": "<p>Enabled/disables mandatory dispo on a queue</p>"
9650           }
9651         ]
9652       }
9653     },
9654     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9655     "version": "0.0.0",
9656     "filename": "server/api/faxAccount/index.js",
9657     "groupTitle": "Fax_Accounts"
9658   },
9659   {
9660     "type": "delete",
9661     "url": "/api/fax/accounts/{id}",
9662     "title": "Deletes a Account",
9663     "examples": [
9664       {
9665         "title": "Example usage:",
9666         "content": "curl https://{domain}/api/fax/accounts/{id} -v -u {name}:{password} -X DELETE",
9667         "type": "json"
9668       }
9669     ],
9670     "name": "DeleteAccounts",
9671     "group": "Fax_Accounts",
9672     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9673     "version": "0.0.0",
9674     "filename": "server/api/faxAccount/index.js",
9675     "groupTitle": "Fax_Accounts"
9676   },
9677   {
9678     "type": "get",
9679     "url": "/api/fax/accounts/describe",
9680     "title": "Gets table info about Accounts",
9681     "examples": [
9682       {
9683         "title": "Example usage:",
9684         "content": "curl https://{domain}/api/fax/accounts/describe -v -u {name}:{password}",
9685         "type": "json"
9686       }
9687     ],
9688     "name": "DescribeAccounts",
9689     "group": "Fax_Accounts",
9690     "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>",
9691     "version": "0.0.0",
9692     "filename": "server/api/faxAccount/index.js",
9693     "groupTitle": "Fax_Accounts"
9694   },
9695   {
9696     "type": "get",
9697     "url": "/api/fax/accounts",
9698     "title": "Gets a list of Accounts",
9699     "examples": [
9700       {
9701         "title": "Example usage:",
9702         "content": "curl https://{domain}/api/fax/accounts -v -u {name}:{password}",
9703         "type": "json"
9704       }
9705     ],
9706     "name": "GetAccounts",
9707     "group": "Fax_Accounts",
9708     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
9709     "version": "0.0.0",
9710     "filename": "server/api/faxAccount/index.js",
9711     "groupTitle": "Fax_Accounts"
9712   },
9713   {
9714     "type": "get",
9715     "url": "/api/fax/accounts/{id}/users",
9716     "title": "Gets agents from fax account",
9717     "examples": [
9718       {
9719         "title": "Example usage:",
9720         "content": "curl https://{domain}/api/fax/accounts/{id}/users -v -u {name}:{password} -X GET",
9721         "type": "json"
9722       }
9723     ],
9724     "name": "GetAgents",
9725     "group": "Fax_Accounts",
9726     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9727     "version": "0.0.0",
9728     "filename": "server/api/faxAccount/index.js",
9729     "groupTitle": "Fax_Accounts"
9730   },
9731   {
9732     "type": "delete",
9733     "url": "/api/fax/accounts/{id}/users",
9734     "title": "Removes agents from a fax account",
9735     "examples": [
9736       {
9737         "title": "Example usage:",
9738         "content": "curl https://{domain}/api/fax/accounts/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
9739         "type": "json"
9740       }
9741     ],
9742     "name": "RemoveAgents",
9743     "group": "Fax_Accounts",
9744     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9745     "version": "0.0.0",
9746     "filename": "server/api/faxAccount/index.js",
9747     "groupTitle": "Fax_Accounts"
9748   },
9749   {
9750     "type": "delete",
9751     "url": "/api/fax/accounts/{id}/canned_answers",
9752     "title": "Removes canned answers from account",
9753     "examples": [
9754       {
9755         "title": "Example usage:",
9756         "content": "curl https://{domain}/api/fax/accounts/{id}/canned_answers?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
9757         "type": "json"
9758       }
9759     ],
9760     "name": "RemoveAnswers",
9761     "group": "Fax_Accounts",
9762     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9763     "version": "0.0.0",
9764     "filename": "server/api/faxAccount/index.js",
9765     "groupTitle": "Fax_Accounts"
9766   },
9767   {
9768     "type": "delete",
9769     "url": "/api/fax/accounts/{id}/dispositions",
9770     "title": "Removes dispositions from account",
9771     "examples": [
9772       {
9773         "title": "Example usage:",
9774         "content": "curl https://{domain}/api/fax/accounts/{id}/dispositions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
9775         "type": "json"
9776       }
9777     ],
9778     "name": "RemoveDispositions",
9779     "group": "Fax_Accounts",
9780     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9781     "version": "0.0.0",
9782     "filename": "server/api/faxAccount/index.js",
9783     "groupTitle": "Fax_Accounts"
9784   },
9785   {
9786     "type": "get",
9787     "url": "/api/fax/accounts/{id}",
9788     "title": "Gets a single Account",
9789     "examples": [
9790       {
9791         "title": "Example usage:",
9792         "content": "curl https://{domain}/api/fax/accounts/{id} -v -u {name}:{password}",
9793         "type": "json"
9794       }
9795     ],
9796     "name": "ShowAccounts",
9797     "group": "Fax_Accounts",
9798     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9799     "version": "0.0.0",
9800     "filename": "server/api/faxAccount/index.js",
9801     "groupTitle": "Fax_Accounts"
9802   },
9803   {
9804     "type": "post",
9805     "url": "/api/fax/accounts/{id}/canned_answers",
9806     "title": "Creates new canned answer",
9807     "examples": [
9808       {
9809         "title": "Example usage:",
9810         "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",
9811         "type": "json"
9812       }
9813     ],
9814     "name": "addAnswer",
9815     "group": "Fax_Accounts",
9816     "parameter": {
9817       "fields": {
9818         "Body": [
9819           {
9820             "group": "Body",
9821             "type": "String",
9822             "optional": false,
9823             "field": "key",
9824             "description": ""
9825           },
9826           {
9827             "group": "Body",
9828             "type": "Text",
9829             "optional": false,
9830             "field": "value",
9831             "description": ""
9832           },
9833           {
9834             "group": "Body",
9835             "type": "String",
9836             "optional": true,
9837             "field": "description",
9838             "description": ""
9839           },
9840           {
9841             "group": "Body",
9842             "type": "Virtual",
9843             "optional": true,
9844             "field": "name",
9845             "description": ""
9846           }
9847         ]
9848       }
9849     },
9850     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9851     "version": "0.0.0",
9852     "filename": "server/api/faxAccount/index.js",
9853     "groupTitle": "Fax_Accounts"
9854   },
9855   {
9856     "type": "post",
9857     "url": "/api/fax/accounts/{id}/applications",
9858     "title": "Creates new applications",
9859     "examples": [
9860       {
9861         "title": "Example usage:",
9862         "content": "curl https://{domain}/api/fax/accounts/{id}/applications -d '[{\"app\": \"queue\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
9863         "type": "json"
9864       }
9865     ],
9866     "name": "addApplications",
9867     "group": "Fax_Accounts",
9868     "parameter": {
9869       "fields": {
9870         "Body": [
9871           {
9872             "group": "Body",
9873             "type": "Integer",
9874             "optional": false,
9875             "field": "priority",
9876             "description": ""
9877           },
9878           {
9879             "group": "Body",
9880             "type": "String",
9881             "optional": false,
9882             "field": "app",
9883             "description": ""
9884           },
9885           {
9886             "group": "Body",
9887             "type": "Text",
9888             "optional": true,
9889             "field": "appdata",
9890             "description": ""
9891           },
9892           {
9893             "group": "Body",
9894             "type": "String",
9895             "optional": true,
9896             "field": "description",
9897             "description": ""
9898           },
9899           {
9900             "group": "Body",
9901             "type": "String",
9902             "optional": true,
9903             "field": "interval",
9904             "description": ""
9905           }
9906         ]
9907       }
9908     },
9909     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9910     "version": "0.0.0",
9911     "filename": "server/api/faxAccount/index.js",
9912     "groupTitle": "Fax_Accounts"
9913   },
9914   {
9915     "type": "post",
9916     "url": "/api/fax/accounts/addaccountapplications",
9917     "title": "Creates new account and applications",
9918     "examples": [
9919       {
9920         "title": "Example usage:",
9921         "content": "curl https://{domain}/api/fax/accounts/addaccountapplications -d '[{\"name\": \"name\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
9922         "type": "json"
9923       }
9924     ],
9925     "name": "addApplications",
9926     "group": "Fax_Accounts",
9927     "parameter": {
9928       "fields": {
9929         "Body": [
9930           {
9931             "group": "Body",
9932             "type": "Integer",
9933             "optional": false,
9934             "field": "priority",
9935             "description": ""
9936           },
9937           {
9938             "group": "Body",
9939             "type": "String",
9940             "optional": false,
9941             "field": "app",
9942             "description": ""
9943           },
9944           {
9945             "group": "Body",
9946             "type": "Text",
9947             "optional": true,
9948             "field": "appdata",
9949             "description": ""
9950           },
9951           {
9952             "group": "Body",
9953             "type": "String",
9954             "optional": true,
9955             "field": "description",
9956             "description": ""
9957           },
9958           {
9959             "group": "Body",
9960             "type": "String",
9961             "optional": true,
9962             "field": "interval",
9963             "description": ""
9964           }
9965         ]
9966       }
9967     },
9968     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9969     "version": "0.0.0",
9970     "filename": "server/api/faxAccount/index.js",
9971     "groupTitle": "Fax_Accounts"
9972   },
9973   {
9974     "type": "post",
9975     "url": "/api/fax/accounts/{id}/dispositions",
9976     "title": "Creates new disposition",
9977     "examples": [
9978       {
9979         "title": "Example usage:",
9980         "content": "curl https://{domain}/api/fax/accounts/{id}/dispositions -d '{\"name\": \"vip\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
9981         "type": "json"
9982       }
9983     ],
9984     "name": "addDisposition",
9985     "group": "Fax_Accounts",
9986     "parameter": {
9987       "fields": {
9988         "Body": [
9989           {
9990             "group": "Body",
9991             "type": "String",
9992             "optional": false,
9993             "field": "name",
9994             "description": ""
9995           },
9996           {
9997             "group": "Body",
9998             "type": "String",
9999             "allowedValues": [
10000               "\"first\"",
10001               "\"second\"",
10002               "\"third\""
10003             ],
10004             "optional": false,
10005             "field": "level",
10006             "description": ""
10007           },
10008           {
10009             "group": "Body",
10010             "type": "String",
10011             "optional": true,
10012             "field": "description",
10013             "description": ""
10014           }
10015         ]
10016       }
10017     },
10018     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10019     "version": "0.0.0",
10020     "filename": "server/api/faxAccount/index.js",
10021     "groupTitle": "Fax_Accounts"
10022   },
10023   {
10024     "type": "post",
10025     "url": "/api/fax/accounts/{id}/interactions",
10026     "title": "Creates new interactions",
10027     "examples": [
10028       {
10029         "title": "Example usage:",
10030         "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",
10031         "type": "json"
10032       }
10033     ],
10034     "name": "addInteraction",
10035     "group": "Fax_Accounts",
10036     "parameter": {
10037       "fields": {
10038         "Body": [
10039           {
10040             "group": "Body",
10041             "type": "Boolean",
10042             "optional": true,
10043             "field": "closed",
10044             "description": ""
10045           },
10046           {
10047             "group": "Body",
10048             "type": "String",
10049             "optional": true,
10050             "field": "closedAt",
10051             "description": ""
10052           },
10053           {
10054             "group": "Body",
10055             "type": "String",
10056             "optional": true,
10057             "field": "disposition",
10058             "description": ""
10059           },
10060           {
10061             "group": "Body",
10062             "type": "String",
10063             "optional": true,
10064             "field": "secondDisposition",
10065             "description": ""
10066           },
10067           {
10068             "group": "Body",
10069             "type": "String",
10070             "optional": true,
10071             "field": "thirdDisposition",
10072             "description": ""
10073           },
10074           {
10075             "group": "Body",
10076             "type": "String",
10077             "optional": true,
10078             "field": "note",
10079             "description": ""
10080           },
10081           {
10082             "group": "Body",
10083             "type": "String",
10084             "optional": true,
10085             "field": "read1stAt",
10086             "description": ""
10087           },
10088           {
10089             "group": "Body",
10090             "type": "String",
10091             "optional": true,
10092             "field": "fax",
10093             "description": ""
10094           },
10095           {
10096             "group": "Body",
10097             "type": "String",
10098             "allowedValues": [
10099               "\"in\"",
10100               "\"out\""
10101             ],
10102             "optional": false,
10103             "field": "firstMsgDirection",
10104             "description": ""
10105           },
10106           {
10107             "group": "Body",
10108             "type": "String",
10109             "optional": true,
10110             "field": "lastMsgAt",
10111             "description": ""
10112           },
10113           {
10114             "group": "Body",
10115             "type": "String",
10116             "allowedValues": [
10117               "\"in\"",
10118               "\"out\""
10119             ],
10120             "optional": false,
10121             "field": "lastMsgDirection",
10122             "description": ""
10123           }
10124         ]
10125       }
10126     },
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": "get",
10134     "url": "/api/fax/accounts/{id}/canned_answers",
10135     "title": "Gets account canned answers",
10136     "examples": [
10137       {
10138         "title": "Example usage:",
10139         "content": "curl https://{domain}/api/fax/accounts/{id}/canned_answers -v -u {name}:{password} -X GET",
10140         "type": "json"
10141       }
10142     ],
10143     "name": "getAnswers",
10144     "group": "Fax_Accounts",
10145     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10146     "version": "0.0.0",
10147     "filename": "server/api/faxAccount/index.js",
10148     "groupTitle": "Fax_Accounts"
10149   },
10150   {
10151     "type": "get",
10152     "url": "/api/fax/accounts/{id}/applications",
10153     "title": "Gets account pplications",
10154     "examples": [
10155       {
10156         "title": "Example usage:",
10157         "content": "curl https://{domain}/api/fax/accounts/{id}/applications -v -u {name}:{password} -X GET",
10158         "type": "json"
10159       }
10160     ],
10161     "name": "getApplications",
10162     "group": "Fax_Accounts",
10163     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10164     "version": "0.0.0",
10165     "filename": "server/api/faxAccount/index.js",
10166     "groupTitle": "Fax_Accounts"
10167   },
10168   {
10169     "type": "get",
10170     "url": "/api/fax/accounts/{id}/dispositions",
10171     "title": "Gets account dispositions",
10172     "examples": [
10173       {
10174         "title": "Example usage:",
10175         "content": "curl https://{domain}/api/fax/accounts/{id}/dispositions -v -u {name}:{password} -X GET",
10176         "type": "json"
10177       }
10178     ],
10179     "name": "getDispositions",
10180     "group": "Fax_Accounts",
10181     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10182     "version": "0.0.0",
10183     "filename": "server/api/faxAccount/index.js",
10184     "groupTitle": "Fax_Accounts"
10185   },
10186   {
10187     "type": "get",
10188     "url": "/api/fax/accounts/{id}/interactions",
10189     "title": "Gets account interactions",
10190     "examples": [
10191       {
10192         "title": "Example usage:",
10193         "content": "curl https://{domain}/api/fax/accounts/{id}/interactions -v -u {name}:{password} -X GET",
10194         "type": "json"
10195       }
10196     ],
10197     "name": "getInteraction",
10198     "group": "Fax_Accounts",
10199     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10200     "version": "0.0.0",
10201     "filename": "server/api/faxAccount/index.js",
10202     "groupTitle": "Fax_Accounts"
10203   },
10204   {
10205     "type": "get",
10206     "url": "/api/fax/accounts/{id}/messages",
10207     "title": "Gets account messages",
10208     "examples": [
10209       {
10210         "title": "Example usage:",
10211         "content": "curl https://{domain}/api/fax/accounts/{id}/messages -v -u {name}:{password} -X GET",
10212         "type": "json"
10213       }
10214     ],
10215     "name": "getMessages",
10216     "group": "Fax_Accounts",
10217     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10218     "version": "0.0.0",
10219     "filename": "server/api/faxAccount/index.js",
10220     "groupTitle": "Fax_Accounts"
10221   },
10222   {
10223     "type": "post",
10224     "url": "/api/fax/accounts/{id}/send",
10225     "title": "Send new fax",
10226     "examples": [
10227       {
10228         "title": "Example usage:",
10229         "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",
10230         "type": "json"
10231       }
10232     ],
10233     "name": "sendFax",
10234     "group": "Fax_Accounts",
10235     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10236     "version": "0.0.0",
10237     "filename": "server/api/faxAccount/index.js",
10238     "groupTitle": "Fax_Accounts"
10239   },
10240   {
10241     "type": "put",
10242     "url": "/api/fax/accounts/{id}",
10243     "title": "Update an existing Account",
10244     "examples": [
10245       {
10246         "title": "Example usage:",
10247         "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",
10248         "type": "json"
10249       }
10250     ],
10251     "name": "updateAccounts",
10252     "group": "Fax_Accounts",
10253     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10254     "version": "0.0.0",
10255     "filename": "server/api/faxAccount/index.js",
10256     "groupTitle": "Fax_Accounts"
10257   },
10258   {
10259     "type": "post",
10260     "url": "/api/fax/accounts/updateaccountapplications",
10261     "title": "Update account and applications",
10262     "examples": [
10263       {
10264         "title": "Example usage:",
10265         "content": "curl https://{domain}/api/fax/accounts/updateaccountapplications -d '[{\"name\": \"name\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
10266         "type": "json"
10267       }
10268     ],
10269     "name": "updateApplications",
10270     "group": "Fax_Accounts",
10271     "parameter": {
10272       "fields": {
10273         "Body": [
10274           {
10275             "group": "Body",
10276             "type": "Integer",
10277             "optional": false,
10278             "field": "priority",
10279             "description": ""
10280           },
10281           {
10282             "group": "Body",
10283             "type": "String",
10284             "optional": false,
10285             "field": "app",
10286             "description": ""
10287           },
10288           {
10289             "group": "Body",
10290             "type": "Text",
10291             "optional": true,
10292             "field": "appdata",
10293             "description": ""
10294           },
10295           {
10296             "group": "Body",
10297             "type": "String",
10298             "optional": true,
10299             "field": "description",
10300             "description": ""
10301           },
10302           {
10303             "group": "Body",
10304             "type": "String",
10305             "optional": true,
10306             "field": "interval",
10307             "description": ""
10308           }
10309         ]
10310       }
10311     },
10312     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10313     "version": "0.0.0",
10314     "filename": "server/api/faxAccount/index.js",
10315     "groupTitle": "Fax_Accounts"
10316   },
10317   {
10318     "type": "post",
10319     "url": "/api/fax/applications",
10320     "title": "Creates a new Application",
10321     "examples": [
10322       {
10323         "title": "Example usage:",
10324         "content": "curl https://{domain}/api/fax/applications -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
10325         "type": "json"
10326       }
10327     ],
10328     "name": "CreateApplications",
10329     "group": "Fax_Applications",
10330     "parameter": {
10331       "fields": {
10332         "Body": [
10333           {
10334             "group": "Body",
10335             "type": "Integer",
10336             "optional": false,
10337             "field": "priority",
10338             "description": ""
10339           },
10340           {
10341             "group": "Body",
10342             "type": "String",
10343             "optional": false,
10344             "field": "app",
10345             "description": ""
10346           },
10347           {
10348             "group": "Body",
10349             "type": "Text",
10350             "optional": true,
10351             "field": "appdata",
10352             "description": ""
10353           },
10354           {
10355             "group": "Body",
10356             "type": "String",
10357             "optional": true,
10358             "field": "description",
10359             "description": ""
10360           },
10361           {
10362             "group": "Body",
10363             "type": "String",
10364             "optional": true,
10365             "field": "interval",
10366             "description": ""
10367           }
10368         ]
10369       }
10370     },
10371     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10372     "version": "0.0.0",
10373     "filename": "server/api/faxApplication/index.js",
10374     "groupTitle": "Fax_Applications"
10375   },
10376   {
10377     "type": "delete",
10378     "url": "/api/fax/applications/{id}",
10379     "title": "Deletes a Application",
10380     "examples": [
10381       {
10382         "title": "Example usage:",
10383         "content": "curl https://{domain}/api/fax/applications/{id} -v -u {name}:{password} -X DELETE",
10384         "type": "json"
10385       }
10386     ],
10387     "name": "DeleteApplications",
10388     "group": "Fax_Applications",
10389     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10390     "version": "0.0.0",
10391     "filename": "server/api/faxApplication/index.js",
10392     "groupTitle": "Fax_Applications"
10393   },
10394   {
10395     "type": "get",
10396     "url": "/api/fax/applications",
10397     "title": "Gets a list of Applications",
10398     "examples": [
10399       {
10400         "title": "Example usage:",
10401         "content": "curl https://{domain}/api/fax/applications -v -u {name}:{password}",
10402         "type": "json"
10403       }
10404     ],
10405     "name": "GetApplications",
10406     "group": "Fax_Applications",
10407     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
10408     "version": "0.0.0",
10409     "filename": "server/api/faxApplication/index.js",
10410     "groupTitle": "Fax_Applications"
10411   },
10412   {
10413     "type": "get",
10414     "url": "/api/fax/applications/{id}",
10415     "title": "Gets a single Application",
10416     "examples": [
10417       {
10418         "title": "Example usage:",
10419         "content": "curl https://{domain}/api/fax/applications/{id} -v -u {name}:{password}",
10420         "type": "json"
10421       }
10422     ],
10423     "name": "ShowApplications",
10424     "group": "Fax_Applications",
10425     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10426     "version": "0.0.0",
10427     "filename": "server/api/faxApplication/index.js",
10428     "groupTitle": "Fax_Applications"
10429   },
10430   {
10431     "type": "put",
10432     "url": "/api/fax/applications/{id}",
10433     "title": "Update an existing Application",
10434     "examples": [
10435       {
10436         "title": "Example usage:",
10437         "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",
10438         "type": "json"
10439       }
10440     ],
10441     "name": "updateApplications",
10442     "group": "Fax_Applications",
10443     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10444     "version": "0.0.0",
10445     "filename": "server/api/faxApplication/index.js",
10446     "groupTitle": "Fax_Applications"
10447   },
10448   {
10449     "type": "post",
10450     "url": "/api/fax/interactions/{id}/tags",
10451     "title": "Add tags to the interaction",
10452     "examples": [
10453       {
10454         "title": "Example usage:",
10455         "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",
10456         "type": "json"
10457       }
10458     ],
10459     "name": "AddTags",
10460     "group": "Fax_Interactions",
10461     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10462     "version": "0.0.0",
10463     "filename": "server/api/faxInteraction/index.js",
10464     "groupTitle": "Fax_Interactions"
10465   },
10466   {
10467     "type": "post",
10468     "url": "/api/fax/interactions",
10469     "title": "Creates a new Interaction",
10470     "examples": [
10471       {
10472         "title": "Example usage:",
10473         "content": "curl https://{domain}/api/fax/interactions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
10474         "type": "json"
10475       }
10476     ],
10477     "name": "CreateInteractions",
10478     "group": "Fax_Interactions",
10479     "parameter": {
10480       "fields": {
10481         "Body": [
10482           {
10483             "group": "Body",
10484             "type": "Boolean",
10485             "optional": true,
10486             "field": "closed",
10487             "description": ""
10488           },
10489           {
10490             "group": "Body",
10491             "type": "String",
10492             "optional": true,
10493             "field": "closedAt",
10494             "description": ""
10495           },
10496           {
10497             "group": "Body",
10498             "type": "String",
10499             "optional": true,
10500             "field": "disposition",
10501             "description": ""
10502           },
10503           {
10504             "group": "Body",
10505             "type": "String",
10506             "optional": true,
10507             "field": "secondDisposition",
10508             "description": ""
10509           },
10510           {
10511             "group": "Body",
10512             "type": "String",
10513             "optional": true,
10514             "field": "thirdDisposition",
10515             "description": ""
10516           },
10517           {
10518             "group": "Body",
10519             "type": "String",
10520             "optional": true,
10521             "field": "note",
10522             "description": ""
10523           },
10524           {
10525             "group": "Body",
10526             "type": "String",
10527             "optional": true,
10528             "field": "read1stAt",
10529             "description": ""
10530           },
10531           {
10532             "group": "Body",
10533             "type": "String",
10534             "optional": true,
10535             "field": "fax",
10536             "description": ""
10537           },
10538           {
10539             "group": "Body",
10540             "type": "String",
10541             "allowedValues": [
10542               "\"in\"",
10543               "\"out\""
10544             ],
10545             "optional": false,
10546             "field": "firstMsgDirection",
10547             "description": ""
10548           },
10549           {
10550             "group": "Body",
10551             "type": "String",
10552             "optional": true,
10553             "field": "lastMsgAt",
10554             "description": ""
10555           },
10556           {
10557             "group": "Body",
10558             "type": "String",
10559             "allowedValues": [
10560               "\"in\"",
10561               "\"out\""
10562             ],
10563             "optional": false,
10564             "field": "lastMsgDirection",
10565             "description": ""
10566           }
10567         ]
10568       }
10569     },
10570     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10571     "version": "0.0.0",
10572     "filename": "server/api/faxInteraction/index.js",
10573     "groupTitle": "Fax_Interactions"
10574   },
10575   {
10576     "type": "delete",
10577     "url": "/api/fax/interactions/{id}",
10578     "title": "Deletes a Interaction",
10579     "examples": [
10580       {
10581         "title": "Example usage:",
10582         "content": "curl https://{domain}/api/fax/interactions/{id} -v -u {name}:{password} -X DELETE",
10583         "type": "json"
10584       }
10585     ],
10586     "name": "DeleteInteractions",
10587     "group": "Fax_Interactions",
10588     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10589     "version": "0.0.0",
10590     "filename": "server/api/faxInteraction/index.js",
10591     "groupTitle": "Fax_Interactions"
10592   },
10593   {
10594     "type": "get",
10595     "url": "/api/fax/interactions/describe",
10596     "title": "Gets table info about Interactions",
10597     "examples": [
10598       {
10599         "title": "Example usage:",
10600         "content": "curl https://{domain}/api/fax/interactions/describe -v -u {name}:{password}",
10601         "type": "json"
10602       }
10603     ],
10604     "name": "DescribeInteractions",
10605     "group": "Fax_Interactions",
10606     "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>",
10607     "version": "0.0.0",
10608     "filename": "server/api/faxInteraction/index.js",
10609     "groupTitle": "Fax_Interactions"
10610   },
10611   {
10612     "type": "get",
10613     "url": "/api/fax/interactions",
10614     "title": "Gets a list of Interactions",
10615     "examples": [
10616       {
10617         "title": "Example usage:",
10618         "content": "curl https://{domain}/api/fax/interactions -v -u {name}:{password}",
10619         "type": "json"
10620       }
10621     ],
10622     "name": "GetInteractions",
10623     "group": "Fax_Interactions",
10624     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
10625     "version": "0.0.0",
10626     "filename": "server/api/faxInteraction/index.js",
10627     "groupTitle": "Fax_Interactions"
10628   },
10629   {
10630     "type": "delete",
10631     "url": "/api/fax/interactions/{id}/tags",
10632     "title": "Removes tags from interaction",
10633     "examples": [
10634       {
10635         "title": "Example usage:",
10636         "content": "curl https://{domain}/api/fax/interactions/{id}/tags?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
10637         "type": "json"
10638       }
10639     ],
10640     "name": "RemoveTags",
10641     "group": "Fax_Interactions",
10642     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10643     "version": "0.0.0",
10644     "filename": "server/api/faxInteraction/index.js",
10645     "groupTitle": "Fax_Interactions"
10646   },
10647   {
10648     "type": "get",
10649     "url": "/api/fax/interactions/{id}",
10650     "title": "Gets a single Interaction",
10651     "examples": [
10652       {
10653         "title": "Example usage:",
10654         "content": "curl https://{domain}/api/fax/interactions/{id} -v -u {name}:{password}",
10655         "type": "json"
10656       }
10657     ],
10658     "name": "ShowInteractions",
10659     "group": "Fax_Interactions",
10660     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10661     "version": "0.0.0",
10662     "filename": "server/api/faxInteraction/index.js",
10663     "groupTitle": "Fax_Interactions"
10664   },
10665   {
10666     "type": "post",
10667     "url": "/api/fax/interactions/{id}/messages",
10668     "title": "Creates new messages",
10669     "examples": [
10670       {
10671         "title": "Example usage:",
10672         "content": "curl https://{domain}/api/fax/interactions/{id}/messages -d '[{\"to\": \"+3901119886500\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
10673         "type": "json"
10674       }
10675     ],
10676     "name": "addMessage",
10677     "group": "Fax_Interactions",
10678     "parameter": {
10679       "fields": {
10680         "Body": [
10681           {
10682             "group": "Body",
10683             "type": "Text",
10684             "optional": false,
10685             "field": "body",
10686             "description": ""
10687           },
10688           {
10689             "group": "Body",
10690             "type": "Boolean",
10691             "optional": true,
10692             "field": "read",
10693             "description": ""
10694           },
10695           {
10696             "group": "Body",
10697             "type": "String",
10698             "allowedValues": [
10699               "\"in\"",
10700               "\"out\""
10701             ],
10702             "optional": false,
10703             "field": "direction",
10704             "description": ""
10705           },
10706           {
10707             "group": "Body",
10708             "type": "Text",
10709             "optional": true,
10710             "field": "failMessage",
10711             "description": ""
10712           },
10713           {
10714             "group": "Body",
10715             "type": "String",
10716             "optional": true,
10717             "field": "readAt",
10718             "description": ""
10719           }
10720         ]
10721       }
10722     },
10723     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10724     "version": "0.0.0",
10725     "filename": "server/api/faxInteraction/index.js",
10726     "groupTitle": "Fax_Interactions"
10727   },
10728   {
10729     "type": "get",
10730     "url": "/api/fax/interactions/{id}/download",
10731     "title": "Get interactions",
10732     "examples": [
10733       {
10734         "title": "Example usage:",
10735         "content": "curl https://{domain}/api/fax/interactions/{id}/download -v -u {name}:{password} -X GET",
10736         "type": "json"
10737       }
10738     ],
10739     "name": "download",
10740     "group": "Fax_Interactions",
10741     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10742     "version": "0.0.0",
10743     "filename": "server/api/faxInteraction/index.js",
10744     "groupTitle": "Fax_Interactions"
10745   },
10746   {
10747     "type": "get",
10748     "url": "/api/fax/interactions/{id}/messages",
10749     "title": "Gets interaction messages",
10750     "examples": [
10751       {
10752         "title": "Example usage:",
10753         "content": "curl https://{domain}/api/fax/interactions/{id}/messages -v -u {name}:{password} -X GET",
10754         "type": "json"
10755       }
10756     ],
10757     "name": "getMessages",
10758     "group": "Fax_Interactions",
10759     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10760     "version": "0.0.0",
10761     "filename": "server/api/faxInteraction/index.js",
10762     "groupTitle": "Fax_Interactions"
10763   },
10764   {
10765     "type": "put",
10766     "url": "/api/fax/interactions/{id}",
10767     "title": "Update an existing Interaction",
10768     "examples": [
10769       {
10770         "title": "Example usage:",
10771         "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",
10772         "type": "json"
10773       }
10774     ],
10775     "name": "updateInteractions",
10776     "group": "Fax_Interactions",
10777     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10778     "version": "0.0.0",
10779     "filename": "server/api/faxInteraction/index.js",
10780     "groupTitle": "Fax_Interactions"
10781   },
10782   {
10783     "type": "get",
10784     "url": "/api/fax/messages/{id}/download",
10785     "title": "Get message",
10786     "examples": [
10787       {
10788         "title": "Example usage:",
10789         "content": "curl https://{domain}/api/fax/messages/{id}/download -v -u {name}:{password} -X GET",
10790         "type": "json"
10791       }
10792     ],
10793     "name": "download",
10794     "group": "Fax_Message",
10795     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10796     "version": "0.0.0",
10797     "filename": "server/api/faxMessage/index.js",
10798     "groupTitle": "Fax_Message"
10799   },
10800   {
10801     "type": "delete",
10802     "url": "/api/fax/messages/{id}",
10803     "title": "Deletes a Message",
10804     "examples": [
10805       {
10806         "title": "Example usage:",
10807         "content": "curl https://{domain}/api/fax/messages/{id} -v -u {name}:{password} -X DELETE",
10808         "type": "json"
10809       }
10810     ],
10811     "name": "DeleteMessages",
10812     "group": "Fax_Messages",
10813     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10814     "version": "0.0.0",
10815     "filename": "server/api/faxMessage/index.js",
10816     "groupTitle": "Fax_Messages"
10817   },
10818   {
10819     "type": "get",
10820     "url": "/api/fax/messages/describe",
10821     "title": "Gets table info about Messages",
10822     "examples": [
10823       {
10824         "title": "Example usage:",
10825         "content": "curl https://{domain}/api/fax/messages/describe -v -u {name}:{password}",
10826         "type": "json"
10827       }
10828     ],
10829     "name": "DescribeMessages",
10830     "group": "Fax_Messages",
10831     "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>",
10832     "version": "0.0.0",
10833     "filename": "server/api/faxMessage/index.js",
10834     "groupTitle": "Fax_Messages"
10835   },
10836   {
10837     "type": "get",
10838     "url": "/api/fax/messages",
10839     "title": "Gets a list of Messages",
10840     "examples": [
10841       {
10842         "title": "Example usage:",
10843         "content": "curl https://{domain}/api/fax/messages -v -u {name}:{password}",
10844         "type": "json"
10845       }
10846     ],
10847     "name": "GetMessages",
10848     "group": "Fax_Messages",
10849     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
10850     "version": "0.0.0",
10851     "filename": "server/api/faxMessage/index.js",
10852     "groupTitle": "Fax_Messages"
10853   },
10854   {
10855     "type": "get",
10856     "url": "/api/fax/messages/{id}",
10857     "title": "Gets a single Message",
10858     "examples": [
10859       {
10860         "title": "Example usage:",
10861         "content": "curl https://{domain}/api/fax/messages/{id} -v -u {name}:{password}",
10862         "type": "json"
10863       }
10864     ],
10865     "name": "ShowMessages",
10866     "group": "Fax_Messages",
10867     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10868     "version": "0.0.0",
10869     "filename": "server/api/faxMessage/index.js",
10870     "groupTitle": "Fax_Messages"
10871   },
10872   {
10873     "type": "put",
10874     "url": "/api/fax/messages/{id}/accept",
10875     "title": "Accepts message",
10876     "examples": [
10877       {
10878         "title": "Example usage:",
10879         "content": "curl https://{domain}/api/fax/messages/{id}/accept \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
10880         "type": "json"
10881       }
10882     ],
10883     "name": "acceptMessage",
10884     "group": "Fax_Messages",
10885     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10886     "version": "0.0.0",
10887     "filename": "server/api/faxMessage/index.js",
10888     "groupTitle": "Fax_Messages"
10889   },
10890   {
10891     "type": "post",
10892     "url": "/api/fax/messages",
10893     "title": "Create message and send Fax",
10894     "examples": [
10895       {
10896         "title": "Example usage:",
10897         "content": "curl https://{domain}/api/fax/messages/{id}/reject \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
10898         "type": "json"
10899       }
10900     ],
10901     "name": "rejectMessage",
10902     "group": "Fax_Messages",
10903     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10904     "version": "0.0.0",
10905     "filename": "server/api/faxMessage/index.js",
10906     "groupTitle": "Fax_Messages"
10907   },
10908   {
10909     "type": "put",
10910     "url": "/api/fax/messages/{id}/reject",
10911     "title": "Rejects message",
10912     "examples": [
10913       {
10914         "title": "Example usage:",
10915         "content": "curl https://{domain}/api/fax/messages/{id}/reject \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
10916         "type": "json"
10917       }
10918     ],
10919     "name": "rejectMessage",
10920     "group": "Fax_Messages",
10921     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10922     "version": "0.0.0",
10923     "filename": "server/api/faxMessage/index.js",
10924     "groupTitle": "Fax_Messages"
10925   },
10926   {
10927     "type": "put",
10928     "url": "/api/fax/messages/{id}",
10929     "title": "Update an existing Message",
10930     "examples": [
10931       {
10932         "title": "Example usage:",
10933         "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",
10934         "type": "json"
10935       }
10936     ],
10937     "name": "updateMessages",
10938     "group": "Fax_Messages",
10939     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10940     "version": "0.0.0",
10941     "filename": "server/api/faxMessage/index.js",
10942     "groupTitle": "Fax_Messages"
10943   },
10944   {
10945     "type": "post",
10946     "url": "/api/fax/reports/queue",
10947     "title": "Creates a new Fax Queue Report",
10948     "examples": [
10949       {
10950         "title": "Example usage:",
10951         "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",
10952         "type": "json"
10953       }
10954     ],
10955     "name": "CreateFax_Queue_Reports",
10956     "group": "Fax_Queue_Reports",
10957     "parameter": {
10958       "fields": {
10959         "Body": [
10960           {
10961             "group": "Body",
10962             "type": "String",
10963             "optional": false,
10964             "field": "uniqueid",
10965             "description": ""
10966           },
10967           {
10968             "group": "Body",
10969             "type": "String",
10970             "optional": true,
10971             "field": "from",
10972             "description": ""
10973           },
10974           {
10975             "group": "Body",
10976             "type": "String",
10977             "optional": true,
10978             "field": "joinAt",
10979             "description": ""
10980           },
10981           {
10982             "group": "Body",
10983             "type": "String",
10984             "optional": true,
10985             "field": "leaveAt",
10986             "description": ""
10987           },
10988           {
10989             "group": "Body",
10990             "type": "String",
10991             "optional": true,
10992             "field": "acceptAt",
10993             "description": ""
10994           },
10995           {
10996             "group": "Body",
10997             "type": "String",
10998             "optional": true,
10999             "field": "exitAt",
11000             "description": ""
11001           },
11002           {
11003             "group": "Body",
11004             "type": "String",
11005             "optional": true,
11006             "field": "reason",
11007             "description": ""
11008           }
11009         ]
11010       }
11011     },
11012     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11013     "version": "0.0.0",
11014     "filename": "server/api/faxQueueReport/index.js",
11015     "groupTitle": "Fax_Queue_Reports"
11016   },
11017   {
11018     "type": "delete",
11019     "url": "/api/fax/reports/queue/{id}",
11020     "title": "Deletes a Fax Queue Report",
11021     "examples": [
11022       {
11023         "title": "Example usage:",
11024         "content": "curl https://{domain}/api/fax/reports/queue/{id} -v -u {name}:{password} -X DELETE",
11025         "type": "json"
11026       }
11027     ],
11028     "name": "DeleteFax_Queue_Reports",
11029     "group": "Fax_Queue_Reports",
11030     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11031     "version": "0.0.0",
11032     "filename": "server/api/faxQueueReport/index.js",
11033     "groupTitle": "Fax_Queue_Reports"
11034   },
11035   {
11036     "type": "get",
11037     "url": "/api/fax/reports/queue/describe",
11038     "title": "Gets table info about Fax Queue Reports",
11039     "examples": [
11040       {
11041         "title": "Example usage:",
11042         "content": "curl https://{domain}/api/fax/reports/queue/describe -v -u {name}:{password}",
11043         "type": "json"
11044       }
11045     ],
11046     "name": "DescribeFax_Queue_Reports",
11047     "group": "Fax_Queue_Reports",
11048     "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>",
11049     "version": "0.0.0",
11050     "filename": "server/api/faxQueueReport/index.js",
11051     "groupTitle": "Fax_Queue_Reports"
11052   },
11053   {
11054     "type": "get",
11055     "url": "/api/fax/reports/queue",
11056     "title": "Gets a list of Fax Queue Reports",
11057     "examples": [
11058       {
11059         "title": "Example usage:",
11060         "content": "curl https://{domain}/api/fax/reports/queue -v -u {name}:{password}",
11061         "type": "json"
11062       }
11063     ],
11064     "name": "GetFax_Queue_Reports",
11065     "group": "Fax_Queue_Reports",
11066     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
11067     "version": "0.0.0",
11068     "filename": "server/api/faxQueueReport/index.js",
11069     "groupTitle": "Fax_Queue_Reports"
11070   },
11071   {
11072     "type": "get",
11073     "url": "/api/fax/reports/queue/{id}",
11074     "title": "Gets a single Fax Queue Report",
11075     "examples": [
11076       {
11077         "title": "Example usage:",
11078         "content": "curl https://{domain}/api/fax/reports/queue/{id} -v -u {name}:{password}",
11079         "type": "json"
11080       }
11081     ],
11082     "name": "ShowFax_Queue_Reports",
11083     "group": "Fax_Queue_Reports",
11084     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11085     "version": "0.0.0",
11086     "filename": "server/api/faxQueueReport/index.js",
11087     "groupTitle": "Fax_Queue_Reports"
11088   },
11089   {
11090     "type": "put",
11091     "url": "/api/fax/reports/queue/{id}",
11092     "title": "Update an existing Fax Queue Report",
11093     "examples": [
11094       {
11095         "title": "Example usage:",
11096         "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",
11097         "type": "json"
11098       }
11099     ],
11100     "name": "updateFax_Queue_Reports",
11101     "group": "Fax_Queue_Reports",
11102     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11103     "version": "0.0.0",
11104     "filename": "server/api/faxQueueReport/index.js",
11105     "groupTitle": "Fax_Queue_Reports"
11106   },
11107   {
11108     "type": "post",
11109     "url": "/api/fax/queues/{id}/users",
11110     "title": "Add agents to a queue",
11111     "examples": [
11112       {
11113         "title": "Example usage:",
11114         "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",
11115         "type": "json"
11116       }
11117     ],
11118     "name": "AddAgents",
11119     "group": "Fax_Queues",
11120     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11121     "version": "0.0.0",
11122     "filename": "server/api/faxQueue/index.js",
11123     "groupTitle": "Fax_Queues"
11124   },
11125   {
11126     "type": "post",
11127     "url": "/api/fax/queues/{id}/teams",
11128     "title": "Add teams to a queue",
11129     "examples": [
11130       {
11131         "title": "Example usage:",
11132         "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",
11133         "type": "json"
11134       }
11135     ],
11136     "name": "AddTeams",
11137     "group": "Fax_Queues",
11138     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11139     "version": "0.0.0",
11140     "filename": "server/api/faxQueue/index.js",
11141     "groupTitle": "Fax_Queues"
11142   },
11143   {
11144     "type": "post",
11145     "url": "/api/fax/queues",
11146     "title": "Creates a new Queue",
11147     "examples": [
11148       {
11149         "title": "Example usage:",
11150         "content": "curl https://{domain}/api/fax/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
11151         "type": "json"
11152       }
11153     ],
11154     "name": "CreateQueues",
11155     "group": "Fax_Queues",
11156     "parameter": {
11157       "fields": {
11158         "Body": [
11159           {
11160             "group": "Body",
11161             "type": "String",
11162             "optional": false,
11163             "field": "name",
11164             "description": ""
11165           },
11166           {
11167             "group": "Body",
11168             "type": "String",
11169             "optional": true,
11170             "field": "description",
11171             "description": ""
11172           },
11173           {
11174             "group": "Body",
11175             "type": "Integer",
11176             "optional": false,
11177             "field": "timeout",
11178             "description": ""
11179           },
11180           {
11181             "group": "Body",
11182             "type": "String",
11183             "allowedValues": [
11184               "\"rrmemory\"",
11185               "\"beepall\"",
11186               "\"roundrobin\""
11187             ],
11188             "optional": false,
11189             "field": "strategy",
11190             "description": ""
11191           },
11192           {
11193             "group": "Body",
11194             "type": "Integer",
11195             "optional": true,
11196             "field": "lastAgent",
11197             "description": ""
11198           }
11199         ]
11200       }
11201     },
11202     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11203     "version": "0.0.0",
11204     "filename": "server/api/faxQueue/index.js",
11205     "groupTitle": "Fax_Queues"
11206   },
11207   {
11208     "type": "delete",
11209     "url": "/api/fax/queues/{id}",
11210     "title": "Deletes a Queue",
11211     "examples": [
11212       {
11213         "title": "Example usage:",
11214         "content": "curl https://{domain}/api/fax/queues/{id} -v -u {name}:{password} -X DELETE",
11215         "type": "json"
11216       }
11217     ],
11218     "name": "DeleteQueues",
11219     "group": "Fax_Queues",
11220     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11221     "version": "0.0.0",
11222     "filename": "server/api/faxQueue/index.js",
11223     "groupTitle": "Fax_Queues"
11224   },
11225   {
11226     "type": "get",
11227     "url": "/api/fax/queues/describe",
11228     "title": "Gets table info about Queues",
11229     "examples": [
11230       {
11231         "title": "Example usage:",
11232         "content": "curl https://{domain}/api/fax/queues/describe -v -u {name}:{password}",
11233         "type": "json"
11234       }
11235     ],
11236     "name": "DescribeQueues",
11237     "group": "Fax_Queues",
11238     "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>",
11239     "version": "0.0.0",
11240     "filename": "server/api/faxQueue/index.js",
11241     "groupTitle": "Fax_Queues"
11242   },
11243   {
11244     "type": "get",
11245     "url": "/api/fax/queues/{id}/users",
11246     "title": "Gets queue agents",
11247     "examples": [
11248       {
11249         "title": "Example usage:",
11250         "content": "curl https://{domain}/api/fax/queues/{id}/users -v -u {name}:{password} -X POST",
11251         "type": "json"
11252       }
11253     ],
11254     "name": "GetAgents",
11255     "group": "Fax_Queues",
11256     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11257     "version": "0.0.0",
11258     "filename": "server/api/faxQueue/index.js",
11259     "groupTitle": "Fax_Queues"
11260   },
11261   {
11262     "type": "get",
11263     "url": "/api/fax/queues/{id}/members",
11264     "title": "GetMembers",
11265     "examples": [
11266       {
11267         "title": "Example usage:",
11268         "content": "curl https://{domain}/api/fax/queues/{id}/members  -v -u {name}:{password}",
11269         "type": "json"
11270       }
11271     ],
11272     "name": "GetMembers",
11273     "group": "Fax_Queues",
11274     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11275     "version": "0.0.0",
11276     "filename": "server/api/faxQueue/index.js",
11277     "groupTitle": "Fax_Queues"
11278   },
11279   {
11280     "type": "get",
11281     "url": "/api/fax/queues",
11282     "title": "Gets a list of Queues",
11283     "examples": [
11284       {
11285         "title": "Example usage:",
11286         "content": "curl https://{domain}/api/fax/queues -v -u {name}:{password}",
11287         "type": "json"
11288       }
11289     ],
11290     "name": "GetQueues",
11291     "group": "Fax_Queues",
11292     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
11293     "version": "0.0.0",
11294     "filename": "server/api/faxQueue/index.js",
11295     "groupTitle": "Fax_Queues"
11296   },
11297   {
11298     "type": "get",
11299     "url": "/api/fax/queues/{id}/teams",
11300     "title": "Gets queues list",
11301     "examples": [
11302       {
11303         "title": "Example usage:",
11304         "content": "curl https://{domain}/api/fax/queues/{id}/teams -v -u {name}:{password}",
11305         "type": "json"
11306       }
11307     ],
11308     "name": "GetTeams",
11309     "group": "Fax_Queues",
11310     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11311     "version": "0.0.0",
11312     "filename": "server/api/faxQueue/index.js",
11313     "groupTitle": "Fax_Queues"
11314   },
11315   {
11316     "type": "delete",
11317     "url": "/api/fax/queues/{id}/users",
11318     "title": "Removes agents from a queue",
11319     "examples": [
11320       {
11321         "title": "Example usage:",
11322         "content": "curl https://{domain}/api/fax/queues/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
11323         "type": "json"
11324       }
11325     ],
11326     "name": "RemoveAgents",
11327     "group": "Fax_Queues",
11328     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11329     "version": "0.0.0",
11330     "filename": "server/api/faxQueue/index.js",
11331     "groupTitle": "Fax_Queues"
11332   },
11333   {
11334     "type": "get",
11335     "url": "/api/fax/queues/{id}",
11336     "title": "Gets a single Queue",
11337     "examples": [
11338       {
11339         "title": "Example usage:",
11340         "content": "curl https://{domain}/api/fax/queues/{id} -v -u {name}:{password}",
11341         "type": "json"
11342       }
11343     ],
11344     "name": "ShowQueues",
11345     "group": "Fax_Queues",
11346     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11347     "version": "0.0.0",
11348     "filename": "server/api/faxQueue/index.js",
11349     "groupTitle": "Fax_Queues"
11350   },
11351   {
11352     "type": "put",
11353     "url": "/api/fax/queues/{id}",
11354     "title": "Update an existing Queue",
11355     "examples": [
11356       {
11357         "title": "Example usage:",
11358         "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",
11359         "type": "json"
11360       }
11361     ],
11362     "name": "updateQueues",
11363     "group": "Fax_Queues",
11364     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11365     "version": "0.0.0",
11366     "filename": "server/api/faxQueue/index.js",
11367     "groupTitle": "Fax_Queues"
11368   },
11369   {
11370     "type": "post",
11371     "url": "/api/fax/reports/transfer",
11372     "title": "Creates a new Fax Transfer Report",
11373     "examples": [
11374       {
11375         "title": "Example usage:",
11376         "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",
11377         "type": "json"
11378       }
11379     ],
11380     "name": "CreateFax_Transfer_Reports",
11381     "group": "Fax_Transfer_Reports",
11382     "parameter": {
11383       "fields": {
11384         "Body": [
11385           {
11386             "group": "Body",
11387             "type": "String",
11388             "optional": false,
11389             "field": "uniqueid",
11390             "description": ""
11391           },
11392           {
11393             "group": "Body",
11394             "type": "String",
11395             "allowedValues": [
11396               "\"account\"",
11397               "\"agent\"",
11398               "\"queue\""
11399             ],
11400             "optional": false,
11401             "field": "type",
11402             "description": ""
11403           },
11404           {
11405             "group": "Body",
11406             "type": "String",
11407             "optional": false,
11408             "field": "transferredAt",
11409             "description": ""
11410           }
11411         ]
11412       }
11413     },
11414     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11415     "version": "0.0.0",
11416     "filename": "server/api/faxTransferReport/index.js",
11417     "groupTitle": "Fax_Transfer_Reports"
11418   },
11419   {
11420     "type": "delete",
11421     "url": "/api/fax/reports/transfer/{id}",
11422     "title": "Deletes a Fax Transfer Report",
11423     "examples": [
11424       {
11425         "title": "Example usage:",
11426         "content": "curl https://{domain}/api/fax/reports/transfer/{id} -v -u {name}:{password} -X DELETE",
11427         "type": "json"
11428       }
11429     ],
11430     "name": "DeleteFax_Transfer_Reports",
11431     "group": "Fax_Transfer_Reports",
11432     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11433     "version": "0.0.0",
11434     "filename": "server/api/faxTransferReport/index.js",
11435     "groupTitle": "Fax_Transfer_Reports"
11436   },
11437   {
11438     "type": "get",
11439     "url": "/api/fax/reports/transfer/describe",
11440     "title": "Gets table info about Fax Transfer Reports",
11441     "examples": [
11442       {
11443         "title": "Example usage:",
11444         "content": "curl https://{domain}/api/fax/reports/transfer/describe -v -u {name}:{password}",
11445         "type": "json"
11446       }
11447     ],
11448     "name": "DescribeFax_Transfer_Reports",
11449     "group": "Fax_Transfer_Reports",
11450     "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>",
11451     "version": "0.0.0",
11452     "filename": "server/api/faxTransferReport/index.js",
11453     "groupTitle": "Fax_Transfer_Reports"
11454   },
11455   {
11456     "type": "get",
11457     "url": "/api/fax/reports/transfer",
11458     "title": "Gets a list of Fax Transfer Reports",
11459     "examples": [
11460       {
11461         "title": "Example usage:",
11462         "content": "curl https://{domain}/api/fax/reports/transfer -v -u {name}:{password}",
11463         "type": "json"
11464       }
11465     ],
11466     "name": "GetFax_Transfer_Reports",
11467     "group": "Fax_Transfer_Reports",
11468     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
11469     "version": "0.0.0",
11470     "filename": "server/api/faxTransferReport/index.js",
11471     "groupTitle": "Fax_Transfer_Reports"
11472   },
11473   {
11474     "type": "get",
11475     "url": "/api/fax/reports/transfer/{id}",
11476     "title": "Gets a single Fax Transfer Report",
11477     "examples": [
11478       {
11479         "title": "Example usage:",
11480         "content": "curl https://{domain}/api/fax/reports/transfer/{id} -v -u {name}:{password}",
11481         "type": "json"
11482       }
11483     ],
11484     "name": "ShowFax_Transfer_Reports",
11485     "group": "Fax_Transfer_Reports",
11486     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11487     "version": "0.0.0",
11488     "filename": "server/api/faxTransferReport/index.js",
11489     "groupTitle": "Fax_Transfer_Reports"
11490   },
11491   {
11492     "type": "put",
11493     "url": "/api/fax/reports/transfer/{id}",
11494     "title": "Update an existing Fax Transfer Report",
11495     "examples": [
11496       {
11497         "title": "Example usage:",
11498         "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",
11499         "type": "json"
11500       }
11501     ],
11502     "name": "updateFax_Transfer_Reports",
11503     "group": "Fax_Transfer_Reports",
11504     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11505     "version": "0.0.0",
11506     "filename": "server/api/faxTransferReport/index.js",
11507     "groupTitle": "Fax_Transfer_Reports"
11508   },
11509   {
11510     "type": "post",
11511     "url": "/api/integrations/freshdesk/accounts",
11512     "title": "Creates a new Freshdesk Account",
11513     "examples": [
11514       {
11515         "title": "Example usage:",
11516         "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",
11517         "type": "json"
11518       }
11519     ],
11520     "name": "CreateFreshdesk_Accounts",
11521     "group": "Freshdesk_Accounts",
11522     "parameter": {
11523       "fields": {
11524         "Body": [
11525           {
11526             "group": "Body",
11527             "type": "String",
11528             "optional": true,
11529             "field": "name",
11530             "description": ""
11531           },
11532           {
11533             "group": "Body",
11534             "type": "String",
11535             "optional": true,
11536             "field": "description",
11537             "description": ""
11538           },
11539           {
11540             "group": "Body",
11541             "type": "String",
11542             "optional": true,
11543             "field": "username",
11544             "description": ""
11545           },
11546           {
11547             "group": "Body",
11548             "type": "String",
11549             "optional": true,
11550             "field": "apiKey",
11551             "description": ""
11552           },
11553           {
11554             "group": "Body",
11555             "type": "String",
11556             "optional": true,
11557             "field": "remoteUri",
11558             "description": ""
11559           },
11560           {
11561             "group": "Body",
11562             "type": "String",
11563             "optional": false,
11564             "field": "serverUrl",
11565             "description": ""
11566           }
11567         ]
11568       }
11569     },
11570     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11571     "version": "0.0.0",
11572     "filename": "server/api/intFreshdeskAccount/index.js",
11573     "groupTitle": "Freshdesk_Accounts"
11574   },
11575   {
11576     "type": "delete",
11577     "url": "/api/integrations/freshdesk/accounts/{id}",
11578     "title": "Deletes a Freshdesk Account",
11579     "examples": [
11580       {
11581         "title": "Example usage:",
11582         "content": "curl https://{domain}/api/integrations/freshdesk/accounts/{id} -v -u {name}:{password} -X DELETE",
11583         "type": "json"
11584       }
11585     ],
11586     "name": "DeleteFreshdesk_Accounts",
11587     "group": "Freshdesk_Accounts",
11588     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11589     "version": "0.0.0",
11590     "filename": "server/api/intFreshdeskAccount/index.js",
11591     "groupTitle": "Freshdesk_Accounts"
11592   },
11593   {
11594     "type": "get",
11595     "url": "/api/integrations/freshdesk/accounts",
11596     "title": "Gets a list of Freshdesk Accounts",
11597     "examples": [
11598       {
11599         "title": "Example usage:",
11600         "content": "curl https://{domain}/api/integrations/freshdesk/accounts -v -u {name}:{password}",
11601         "type": "json"
11602       }
11603     ],
11604     "name": "GetFreshdesk_Accounts",
11605     "group": "Freshdesk_Accounts",
11606     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
11607     "version": "0.0.0",
11608     "filename": "server/api/intFreshdeskAccount/index.js",
11609     "groupTitle": "Freshdesk_Accounts"
11610   },
11611   {
11612     "type": "get",
11613     "url": "/api/integrations/freshdesk/accounts/{id}",
11614     "title": "Gets a single Freshdesk Account",
11615     "examples": [
11616       {
11617         "title": "Example usage:",
11618         "content": "curl https://{domain}/api/integrations/freshdesk/accounts/{id} -v -u {name}:{password}",
11619         "type": "json"
11620       }
11621     ],
11622     "name": "ShowFreshdesk_Accounts",
11623     "group": "Freshdesk_Accounts",
11624     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11625     "version": "0.0.0",
11626     "filename": "server/api/intFreshdeskAccount/index.js",
11627     "groupTitle": "Freshdesk_Accounts"
11628   },
11629   {
11630     "type": "post",
11631     "url": "/api/integrations/freshdesk/accounts/{id}/configurations",
11632     "title": "Creates new configuration",
11633     "examples": [
11634       {
11635         "title": "Example usage:",
11636         "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",
11637         "type": "json"
11638       }
11639     ],
11640     "name": "addConfiguration",
11641     "group": "Freshdesk_Accounts",
11642     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11643     "version": "0.0.0",
11644     "filename": "server/api/intFreshdeskAccount/index.js",
11645     "groupTitle": "Freshdesk_Accounts"
11646   },
11647   {
11648     "type": "get",
11649     "url": "/api/integrations/freshdesk/accounts/{id}/configurations",
11650     "title": "Gets account configurations",
11651     "examples": [
11652       {
11653         "title": "Example usage:",
11654         "content": "curl https://{domain}/api/integrations/freshdesk/accounts/{id}/configurations -v -u {name}:{password} -X GET",
11655         "type": "json"
11656       }
11657     ],
11658     "name": "getConfigurations",
11659     "group": "Freshdesk_Accounts",
11660     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11661     "version": "0.0.0",
11662     "filename": "server/api/intFreshdeskAccount/index.js",
11663     "groupTitle": "Freshdesk_Accounts"
11664   },
11665   {
11666     "type": "get",
11667     "url": "/api/integrations/freshdesk/accounts/{id}/fields",
11668     "title": "Gets account fields",
11669     "examples": [
11670       {
11671         "title": "Example usage:",
11672         "content": "curl https://{domain}/api/integrations/freshdesk/accounts/{id}/fields -v -u {name}:{password} -X GET",
11673         "type": "json"
11674       }
11675     ],
11676     "name": "getFields",
11677     "group": "Freshdesk_Accounts",
11678     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11679     "version": "0.0.0",
11680     "filename": "server/api/intFreshdeskAccount/index.js",
11681     "groupTitle": "Freshdesk_Accounts"
11682   },
11683   {
11684     "type": "put",
11685     "url": "/api/integrations/freshdesk/accounts/{id}",
11686     "title": "Update an existing Freshdesk Account",
11687     "examples": [
11688       {
11689         "title": "Example usage:",
11690         "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",
11691         "type": "json"
11692       }
11693     ],
11694     "name": "updateFreshdesk_Accounts",
11695     "group": "Freshdesk_Accounts",
11696     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11697     "version": "0.0.0",
11698     "filename": "server/api/intFreshdeskAccount/index.js",
11699     "groupTitle": "Freshdesk_Accounts"
11700   },
11701   {
11702     "type": "post",
11703     "url": "/api/integrations/freshdesk/configurations",
11704     "title": "Creates a new Freshdesk Configuration",
11705     "examples": [
11706       {
11707         "title": "Example usage:",
11708         "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",
11709         "type": "json"
11710       }
11711     ],
11712     "name": "CreateFreshdesk_Configurations",
11713     "group": "Freshdesk_Configurations",
11714     "parameter": {
11715       "fields": {
11716         "Body": [
11717           {
11718             "group": "Body",
11719             "type": "String",
11720             "optional": true,
11721             "field": "name",
11722             "description": ""
11723           },
11724           {
11725             "group": "Body",
11726             "type": "String",
11727             "optional": true,
11728             "field": "description",
11729             "description": ""
11730           }
11731         ]
11732       }
11733     },
11734     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11735     "version": "0.0.0",
11736     "filename": "server/api/intFreshdeskConfiguration/index.js",
11737     "groupTitle": "Freshdesk_Configurations"
11738   },
11739   {
11740     "type": "delete",
11741     "url": "/api/integrations/freshdesk/configurations/{id}",
11742     "title": "Deletes a Freshdesk Configuration",
11743     "examples": [
11744       {
11745         "title": "Example usage:",
11746         "content": "curl https://{domain}/api/integrations/freshdesk/configurations/{id} -v -u {name}:{password} -X DELETE",
11747         "type": "json"
11748       }
11749     ],
11750     "name": "DeleteFreshdesk_Configurations",
11751     "group": "Freshdesk_Configurations",
11752     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11753     "version": "0.0.0",
11754     "filename": "server/api/intFreshdeskConfiguration/index.js",
11755     "groupTitle": "Freshdesk_Configurations"
11756   },
11757   {
11758     "type": "get",
11759     "url": "/api/integrations/freshdesk/configurations",
11760     "title": "Gets a list of Freshdesk Configurations",
11761     "examples": [
11762       {
11763         "title": "Example usage:",
11764         "content": "curl https://{domain}/api/integrations/freshdesk/configurations -v -u {name}:{password}",
11765         "type": "json"
11766       }
11767     ],
11768     "name": "GetFreshdesk_Configurations",
11769     "group": "Freshdesk_Configurations",
11770     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
11771     "version": "0.0.0",
11772     "filename": "server/api/intFreshdeskConfiguration/index.js",
11773     "groupTitle": "Freshdesk_Configurations"
11774   },
11775   {
11776     "type": "get",
11777     "url": "/api/integrations/freshdesk/configurations/{id}",
11778     "title": "Gets a single Freshdesk Configuration",
11779     "examples": [
11780       {
11781         "title": "Example usage:",
11782         "content": "curl https://{domain}/api/integrations/freshdesk/configurations/{id} -v -u {name}:{password}",
11783         "type": "json"
11784       }
11785     ],
11786     "name": "ShowFreshdesk_Configurations",
11787     "group": "Freshdesk_Configurations",
11788     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11789     "version": "0.0.0",
11790     "filename": "server/api/intFreshdeskConfiguration/index.js",
11791     "groupTitle": "Freshdesk_Configurations"
11792   },
11793   {
11794     "type": "get",
11795     "url": "/api/integrations/freshdesk/configurations/{id}/descriptions",
11796     "title": "Gets configurations descriptions",
11797     "examples": [
11798       {
11799         "title": "Example usage:",
11800         "content": "curl https://{domain}/api/integrations/freshdesk/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
11801         "type": "json"
11802       }
11803     ],
11804     "name": "getDescriptions",
11805     "group": "Freshdesk_Configurations",
11806     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11807     "version": "0.0.0",
11808     "filename": "server/api/intFreshdeskConfiguration/index.js",
11809     "groupTitle": "Freshdesk_Configurations"
11810   },
11811   {
11812     "type": "get",
11813     "url": "/api/integrations/freshdesk/configurations/{id}/fields",
11814     "title": "Gets configurations fields",
11815     "examples": [
11816       {
11817         "title": "Example usage:",
11818         "content": "curl https://{domain}/api/integrations/freshdesk/configurations/{id}/fields -v -u {name}:{password} -X GET",
11819         "type": "json"
11820       }
11821     ],
11822     "name": "getFields",
11823     "group": "Freshdesk_Configurations",
11824     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11825     "version": "0.0.0",
11826     "filename": "server/api/intFreshdeskConfiguration/index.js",
11827     "groupTitle": "Freshdesk_Configurations"
11828   },
11829   {
11830     "type": "get",
11831     "url": "/api/integrations/freshdesk/configurations/{id}/subjects",
11832     "title": "Gets configurations subjects",
11833     "examples": [
11834       {
11835         "title": "Example usage:",
11836         "content": "curl https://{domain}/api/integrations/freshdesk/configurations/{id}/subjects -v -u {name}:{password} -X GET",
11837         "type": "json"
11838       }
11839     ],
11840     "name": "getSubjects",
11841     "group": "Freshdesk_Configurations",
11842     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11843     "version": "0.0.0",
11844     "filename": "server/api/intFreshdeskConfiguration/index.js",
11845     "groupTitle": "Freshdesk_Configurations"
11846   },
11847   {
11848     "type": "get",
11849     "url": "/api/integrations/freshdesk/configurations/{id}/tags",
11850     "title": "Gets configurations tags",
11851     "examples": [
11852       {
11853         "title": "Example usage:",
11854         "content": "curl https://{domain}/api/integrations/freshdesk/configurations/{id}/tags -v -u {name}:{password} -X GET",
11855         "type": "json"
11856       }
11857     ],
11858     "name": "getTags",
11859     "group": "Freshdesk_Configurations",
11860     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11861     "version": "0.0.0",
11862     "filename": "server/api/intFreshdeskConfiguration/index.js",
11863     "groupTitle": "Freshdesk_Configurations"
11864   },
11865   {
11866     "type": "post",
11867     "url": "/api/integrations/freshdesk/configurations/{id}/tags",
11868     "title": "Sets new tags",
11869     "examples": [
11870       {
11871         "title": "Example usage:",
11872         "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",
11873         "type": "json"
11874       }
11875     ],
11876     "name": "setTags",
11877     "group": "Freshdesk_Configurations",
11878     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11879     "version": "0.0.0",
11880     "filename": "server/api/intFreshdeskConfiguration/index.js",
11881     "groupTitle": "Freshdesk_Configurations"
11882   },
11883   {
11884     "type": "put",
11885     "url": "/api/integrations/freshdesk/configurations/{id}",
11886     "title": "Update an existing Freshdesk Configuration",
11887     "examples": [
11888       {
11889         "title": "Example usage:",
11890         "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",
11891         "type": "json"
11892       }
11893     ],
11894     "name": "updateFreshdesk_Configurations",
11895     "group": "Freshdesk_Configurations",
11896     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11897     "version": "0.0.0",
11898     "filename": "server/api/intFreshdeskConfiguration/index.js",
11899     "groupTitle": "Freshdesk_Configurations"
11900   },
11901   {
11902     "type": "post",
11903     "url": "/api/integrations/freshdesk/fields",
11904     "title": "Creates a new Freshdesk Field",
11905     "examples": [
11906       {
11907         "title": "Example usage:",
11908         "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",
11909         "type": "json"
11910       }
11911     ],
11912     "name": "CreateFreshdesk_Fields",
11913     "group": "Freshdesk_Fields",
11914     "parameter": {
11915       "fields": {
11916         "Body": [
11917           {
11918             "group": "Body",
11919             "type": "String",
11920             "allowedValues": [
11921               "\"string\"",
11922               "\"variable\"",
11923               "\"customVariable\"",
11924               "\"keyValue\"",
11925               "\"picklist\""
11926             ],
11927             "optional": true,
11928             "field": "type",
11929             "description": ""
11930           },
11931           {
11932             "group": "Body",
11933             "type": "String",
11934             "optional": true,
11935             "field": "content",
11936             "description": ""
11937           },
11938           {
11939             "group": "Body",
11940             "type": "String",
11941             "optional": true,
11942             "field": "key",
11943             "description": ""
11944           },
11945           {
11946             "group": "Body",
11947             "type": "String",
11948             "allowedValues": [
11949               "\"string\"",
11950               "\"variable\"",
11951               "\"customVariable\""
11952             ],
11953             "optional": true,
11954             "field": "keyType",
11955             "description": ""
11956           },
11957           {
11958             "group": "Body",
11959             "type": "String",
11960             "optional": true,
11961             "field": "keyContent",
11962             "description": ""
11963           },
11964           {
11965             "group": "Body",
11966             "type": "String",
11967             "optional": true,
11968             "field": "idField",
11969             "description": ""
11970           },
11971           {
11972             "group": "Body",
11973             "type": "String",
11974             "optional": true,
11975             "field": "nameField",
11976             "description": ""
11977           },
11978           {
11979             "group": "Body",
11980             "type": "Boolean",
11981             "optional": true,
11982             "field": "customField",
11983             "description": ""
11984           },
11985           {
11986             "group": "Body",
11987             "type": "String",
11988             "optional": true,
11989             "field": "variableName",
11990             "description": ""
11991           }
11992         ]
11993       }
11994     },
11995     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11996     "version": "0.0.0",
11997     "filename": "server/api/intFreshdeskField/index.js",
11998     "groupTitle": "Freshdesk_Fields"
11999   },
12000   {
12001     "type": "delete",
12002     "url": "/api/integrations/freshdesk/fields/{id}",
12003     "title": "Deletes a Freshdesk Field",
12004     "examples": [
12005       {
12006         "title": "Example usage:",
12007         "content": "curl https://{domain}/api/integrations/freshdesk/fields/{id} -v -u {name}:{password} -X DELETE",
12008         "type": "json"
12009       }
12010     ],
12011     "name": "DeleteFreshdesk_Fields",
12012     "group": "Freshdesk_Fields",
12013     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12014     "version": "0.0.0",
12015     "filename": "server/api/intFreshdeskField/index.js",
12016     "groupTitle": "Freshdesk_Fields"
12017   },
12018   {
12019     "type": "get",
12020     "url": "/api/integrations/freshdesk/fields",
12021     "title": "Gets a list of Freshdesk Fields",
12022     "examples": [
12023       {
12024         "title": "Example usage:",
12025         "content": "curl https://{domain}/api/integrations/freshdesk/fields -v -u {name}:{password}",
12026         "type": "json"
12027       }
12028     ],
12029     "name": "GetFreshdesk_Fields",
12030     "group": "Freshdesk_Fields",
12031     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
12032     "version": "0.0.0",
12033     "filename": "server/api/intFreshdeskField/index.js",
12034     "groupTitle": "Freshdesk_Fields"
12035   },
12036   {
12037     "type": "get",
12038     "url": "/api/integrations/freshdesk/fields/{id}",
12039     "title": "Gets a single Freshdesk Field",
12040     "examples": [
12041       {
12042         "title": "Example usage:",
12043         "content": "curl https://{domain}/api/integrations/freshdesk/fields/{id} -v -u {name}:{password}",
12044         "type": "json"
12045       }
12046     ],
12047     "name": "ShowFreshdesk_Fields",
12048     "group": "Freshdesk_Fields",
12049     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12050     "version": "0.0.0",
12051     "filename": "server/api/intFreshdeskField/index.js",
12052     "groupTitle": "Freshdesk_Fields"
12053   },
12054   {
12055     "type": "put",
12056     "url": "/api/integrations/freshdesk/fields/{id}",
12057     "title": "Update an existing Freshdesk Field",
12058     "examples": [
12059       {
12060         "title": "Example usage:",
12061         "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",
12062         "type": "json"
12063       }
12064     ],
12065     "name": "updateFreshdesk_Fields",
12066     "group": "Freshdesk_Fields",
12067     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12068     "version": "0.0.0",
12069     "filename": "server/api/intFreshdeskField/index.js",
12070     "groupTitle": "Freshdesk_Fields"
12071   },
12072   {
12073     "type": "post",
12074     "url": "/api/integrations/freshsales/accounts",
12075     "title": "Creates a new Freshsales Account",
12076     "examples": [
12077       {
12078         "title": "Example usage:",
12079         "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",
12080         "type": "json"
12081       }
12082     ],
12083     "name": "CreateFreshsales_Accounts",
12084     "group": "Freshsales_Accounts",
12085     "parameter": {
12086       "fields": {
12087         "Body": [
12088           {
12089             "group": "Body",
12090             "type": "String",
12091             "optional": true,
12092             "field": "name",
12093             "description": ""
12094           },
12095           {
12096             "group": "Body",
12097             "type": "String",
12098             "optional": true,
12099             "field": "description",
12100             "description": ""
12101           },
12102           {
12103             "group": "Body",
12104             "type": "String",
12105             "optional": true,
12106             "field": "username",
12107             "description": ""
12108           },
12109           {
12110             "group": "Body",
12111             "type": "String",
12112             "optional": true,
12113             "field": "apiKey",
12114             "description": ""
12115           },
12116           {
12117             "group": "Body",
12118             "type": "String",
12119             "optional": true,
12120             "field": "remoteUri",
12121             "description": ""
12122           },
12123           {
12124             "group": "Body",
12125             "type": "String",
12126             "optional": false,
12127             "field": "serverUrl",
12128             "description": ""
12129           }
12130         ]
12131       }
12132     },
12133     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12134     "version": "0.0.0",
12135     "filename": "server/api/intFreshsalesAccount/index.js",
12136     "groupTitle": "Freshsales_Accounts"
12137   },
12138   {
12139     "type": "delete",
12140     "url": "/api/integrations/freshsales/accounts/{id}",
12141     "title": "Deletes a Freshsales Account",
12142     "examples": [
12143       {
12144         "title": "Example usage:",
12145         "content": "curl https://{domain}/api/integrations/freshsales/accounts/{id} -v -u {name}:{password} -X DELETE",
12146         "type": "json"
12147       }
12148     ],
12149     "name": "DeleteFreshsales_Accounts",
12150     "group": "Freshsales_Accounts",
12151     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12152     "version": "0.0.0",
12153     "filename": "server/api/intFreshsalesAccount/index.js",
12154     "groupTitle": "Freshsales_Accounts"
12155   },
12156   {
12157     "type": "get",
12158     "url": "/api/integrations/freshsales/accounts",
12159     "title": "Gets a list of Freshsales Accounts",
12160     "examples": [
12161       {
12162         "title": "Example usage:",
12163         "content": "curl https://{domain}/api/integrations/freshsales/accounts -v -u {name}:{password}",
12164         "type": "json"
12165       }
12166     ],
12167     "name": "GetFreshsales_Accounts",
12168     "group": "Freshsales_Accounts",
12169     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
12170     "version": "0.0.0",
12171     "filename": "server/api/intFreshsalesAccount/index.js",
12172     "groupTitle": "Freshsales_Accounts"
12173   },
12174   {
12175     "type": "get",
12176     "url": "/api/integrations/freshsales/accounts/{id}",
12177     "title": "Gets a single Freshsales Account",
12178     "examples": [
12179       {
12180         "title": "Example usage:",
12181         "content": "curl https://{domain}/api/integrations/freshsales/accounts/{id} -v -u {name}:{password}",
12182         "type": "json"
12183       }
12184     ],
12185     "name": "ShowFreshsales_Accounts",
12186     "group": "Freshsales_Accounts",
12187     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12188     "version": "0.0.0",
12189     "filename": "server/api/intFreshsalesAccount/index.js",
12190     "groupTitle": "Freshsales_Accounts"
12191   },
12192   {
12193     "type": "post",
12194     "url": "/api/integrations/freshsales/accounts/{id}/configurations",
12195     "title": "Creates new configuration",
12196     "examples": [
12197       {
12198         "title": "Example usage:",
12199         "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",
12200         "type": "json"
12201       }
12202     ],
12203     "name": "addConfiguration",
12204     "group": "Freshsales_Accounts",
12205     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12206     "version": "0.0.0",
12207     "filename": "server/api/intFreshsalesAccount/index.js",
12208     "groupTitle": "Freshsales_Accounts"
12209   },
12210   {
12211     "type": "get",
12212     "url": "/api/integrations/freshsales/accounts/{id}/configurations",
12213     "title": "Gets account configurations",
12214     "examples": [
12215       {
12216         "title": "Example usage:",
12217         "content": "curl https://{domain}/api/integrations/freshsales/accounts/{id}/configurations -v -u {name}:{password} -X GET",
12218         "type": "json"
12219       }
12220     ],
12221     "name": "getConfigurations",
12222     "group": "Freshsales_Accounts",
12223     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12224     "version": "0.0.0",
12225     "filename": "server/api/intFreshsalesAccount/index.js",
12226     "groupTitle": "Freshsales_Accounts"
12227   },
12228   {
12229     "type": "get",
12230     "url": "/api/integrations/freshsales/accounts/{id}/fields",
12231     "title": "Gets account fields",
12232     "examples": [
12233       {
12234         "title": "Example usage:",
12235         "content": "curl https://{domain}/api/integrations/freshsales/accounts/{id}/fields -v -u {name}:{password} -X GET",
12236         "type": "json"
12237       }
12238     ],
12239     "name": "getFields",
12240     "group": "Freshsales_Accounts",
12241     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12242     "version": "0.0.0",
12243     "filename": "server/api/intFreshsalesAccount/index.js",
12244     "groupTitle": "Freshsales_Accounts"
12245   },
12246   {
12247     "type": "put",
12248     "url": "/api/integrations/freshsales/accounts/{id}",
12249     "title": "Update an existing Freshsales Account",
12250     "examples": [
12251       {
12252         "title": "Example usage:",
12253         "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",
12254         "type": "json"
12255       }
12256     ],
12257     "name": "updateFreshsales_Accounts",
12258     "group": "Freshsales_Accounts",
12259     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12260     "version": "0.0.0",
12261     "filename": "server/api/intFreshsalesAccount/index.js",
12262     "groupTitle": "Freshsales_Accounts"
12263   },
12264   {
12265     "type": "post",
12266     "url": "/api/integrations/freshsales/configurations",
12267     "title": "Creates a new Freshsales Configuration",
12268     "examples": [
12269       {
12270         "title": "Example usage:",
12271         "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",
12272         "type": "json"
12273       }
12274     ],
12275     "name": "CreateFreshsales_Configurations",
12276     "group": "Freshsales_Configurations",
12277     "parameter": {
12278       "fields": {
12279         "Body": [
12280           {
12281             "group": "Body",
12282             "type": "String",
12283             "optional": true,
12284             "field": "name",
12285             "description": ""
12286           },
12287           {
12288             "group": "Body",
12289             "type": "String",
12290             "optional": true,
12291             "field": "description",
12292             "description": ""
12293           }
12294         ]
12295       }
12296     },
12297     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12298     "version": "0.0.0",
12299     "filename": "server/api/intFreshsalesConfiguration/index.js",
12300     "groupTitle": "Freshsales_Configurations"
12301   },
12302   {
12303     "type": "delete",
12304     "url": "/api/integrations/freshsales/configurations/{id}",
12305     "title": "Deletes a Freshsales Configuration",
12306     "examples": [
12307       {
12308         "title": "Example usage:",
12309         "content": "curl https://{domain}/api/integrations/freshsales/configurations/{id} -v -u {name}:{password} -X DELETE",
12310         "type": "json"
12311       }
12312     ],
12313     "name": "DeleteFreshsales_Configurations",
12314     "group": "Freshsales_Configurations",
12315     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12316     "version": "0.0.0",
12317     "filename": "server/api/intFreshsalesConfiguration/index.js",
12318     "groupTitle": "Freshsales_Configurations"
12319   },
12320   {
12321     "type": "get",
12322     "url": "/api/integrations/freshsales/configurations",
12323     "title": "Gets a list of Freshsales Configurations",
12324     "examples": [
12325       {
12326         "title": "Example usage:",
12327         "content": "curl https://{domain}/api/integrations/freshsales/configurations -v -u {name}:{password}",
12328         "type": "json"
12329       }
12330     ],
12331     "name": "GetFreshsales_Configurations",
12332     "group": "Freshsales_Configurations",
12333     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
12334     "version": "0.0.0",
12335     "filename": "server/api/intFreshsalesConfiguration/index.js",
12336     "groupTitle": "Freshsales_Configurations"
12337   },
12338   {
12339     "type": "get",
12340     "url": "/api/integrations/freshsales/configurations/{id}",
12341     "title": "Gets a single Freshsales Configuration",
12342     "examples": [
12343       {
12344         "title": "Example usage:",
12345         "content": "curl https://{domain}/api/integrations/freshsales/configurations/{id} -v -u {name}:{password}",
12346         "type": "json"
12347       }
12348     ],
12349     "name": "ShowFreshsales_Configurations",
12350     "group": "Freshsales_Configurations",
12351     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12352     "version": "0.0.0",
12353     "filename": "server/api/intFreshsalesConfiguration/index.js",
12354     "groupTitle": "Freshsales_Configurations"
12355   },
12356   {
12357     "type": "get",
12358     "url": "/api/integrations/freshsales/configurations/{id}/descriptions",
12359     "title": "Gets configurations descriptions",
12360     "examples": [
12361       {
12362         "title": "Example usage:",
12363         "content": "curl https://{domain}/api/integrations/freshsales/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
12364         "type": "json"
12365       }
12366     ],
12367     "name": "getDescriptions",
12368     "group": "Freshsales_Configurations",
12369     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12370     "version": "0.0.0",
12371     "filename": "server/api/intFreshsalesConfiguration/index.js",
12372     "groupTitle": "Freshsales_Configurations"
12373   },
12374   {
12375     "type": "get",
12376     "url": "/api/integrations/freshsales/configurations/{id}/fields",
12377     "title": "Gets configurations fields",
12378     "examples": [
12379       {
12380         "title": "Example usage:",
12381         "content": "curl https://{domain}/api/integrations/freshsales/configurations/{id}/fields -v -u {name}:{password} -X GET",
12382         "type": "json"
12383       }
12384     ],
12385     "name": "getFields",
12386     "group": "Freshsales_Configurations",
12387     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12388     "version": "0.0.0",
12389     "filename": "server/api/intFreshsalesConfiguration/index.js",
12390     "groupTitle": "Freshsales_Configurations"
12391   },
12392   {
12393     "type": "get",
12394     "url": "/api/integrations/freshsales/configurations/{id}/subjects",
12395     "title": "Gets configurations subjects",
12396     "examples": [
12397       {
12398         "title": "Example usage:",
12399         "content": "curl https://{domain}/api/integrations/freshsales/configurations/{id}/subjects -v -u {name}:{password} -X GET",
12400         "type": "json"
12401       }
12402     ],
12403     "name": "getSubjects",
12404     "group": "Freshsales_Configurations",
12405     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12406     "version": "0.0.0",
12407     "filename": "server/api/intFreshsalesConfiguration/index.js",
12408     "groupTitle": "Freshsales_Configurations"
12409   },
12410   {
12411     "type": "put",
12412     "url": "/api/integrations/freshsales/configurations/{id}",
12413     "title": "Update an existing Freshsales Configuration",
12414     "examples": [
12415       {
12416         "title": "Example usage:",
12417         "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",
12418         "type": "json"
12419       }
12420     ],
12421     "name": "updateFreshsales_Configurations",
12422     "group": "Freshsales_Configurations",
12423     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12424     "version": "0.0.0",
12425     "filename": "server/api/intFreshsalesConfiguration/index.js",
12426     "groupTitle": "Freshsales_Configurations"
12427   },
12428   {
12429     "type": "post",
12430     "url": "/api/integrations/freshsales/fields",
12431     "title": "Creates a new Freshsales Field",
12432     "examples": [
12433       {
12434         "title": "Example usage:",
12435         "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",
12436         "type": "json"
12437       }
12438     ],
12439     "name": "CreateFreshsales_Fields",
12440     "group": "Freshsales_Fields",
12441     "parameter": {
12442       "fields": {
12443         "Body": [
12444           {
12445             "group": "Body",
12446             "type": "String",
12447             "allowedValues": [
12448               "\"string\"",
12449               "\"variable\"",
12450               "\"customVariable\"",
12451               "\"keyValue\"",
12452               "\"picklist\""
12453             ],
12454             "optional": true,
12455             "field": "type",
12456             "description": ""
12457           },
12458           {
12459             "group": "Body",
12460             "type": "String",
12461             "optional": true,
12462             "field": "content",
12463             "description": ""
12464           },
12465           {
12466             "group": "Body",
12467             "type": "String",
12468             "optional": true,
12469             "field": "key",
12470             "description": ""
12471           },
12472           {
12473             "group": "Body",
12474             "type": "String",
12475             "allowedValues": [
12476               "\"string\"",
12477               "\"variable\"",
12478               "\"customVariable\""
12479             ],
12480             "optional": true,
12481             "field": "keyType",
12482             "description": ""
12483           },
12484           {
12485             "group": "Body",
12486             "type": "String",
12487             "optional": true,
12488             "field": "keyContent",
12489             "description": ""
12490           },
12491           {
12492             "group": "Body",
12493             "type": "String",
12494             "optional": true,
12495             "field": "idField",
12496             "description": ""
12497           },
12498           {
12499             "group": "Body",
12500             "type": "String",
12501             "optional": true,
12502             "field": "nameField",
12503             "description": ""
12504           },
12505           {
12506             "group": "Body",
12507             "type": "Boolean",
12508             "optional": true,
12509             "field": "customField",
12510             "description": ""
12511           },
12512           {
12513             "group": "Body",
12514             "type": "String",
12515             "optional": true,
12516             "field": "variableName",
12517             "description": ""
12518           }
12519         ]
12520       }
12521     },
12522     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12523     "version": "0.0.0",
12524     "filename": "server/api/intFreshsalesField/index.js",
12525     "groupTitle": "Freshsales_Fields"
12526   },
12527   {
12528     "type": "delete",
12529     "url": "/api/integrations/freshsales/fields/{id}",
12530     "title": "Deletes a Freshsales Field",
12531     "examples": [
12532       {
12533         "title": "Example usage:",
12534         "content": "curl https://{domain}/api/integrations/freshsales/fields/{id} -v -u {name}:{password} -X DELETE",
12535         "type": "json"
12536       }
12537     ],
12538     "name": "DeleteFreshsales_Fields",
12539     "group": "Freshsales_Fields",
12540     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12541     "version": "0.0.0",
12542     "filename": "server/api/intFreshsalesField/index.js",
12543     "groupTitle": "Freshsales_Fields"
12544   },
12545   {
12546     "type": "get",
12547     "url": "/api/integrations/freshsales/fields",
12548     "title": "Gets a list of Freshsales Fields",
12549     "examples": [
12550       {
12551         "title": "Example usage:",
12552         "content": "curl https://{domain}/api/integrations/freshsales/fields -v -u {name}:{password}",
12553         "type": "json"
12554       }
12555     ],
12556     "name": "GetFreshsales_Fields",
12557     "group": "Freshsales_Fields",
12558     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
12559     "version": "0.0.0",
12560     "filename": "server/api/intFreshsalesField/index.js",
12561     "groupTitle": "Freshsales_Fields"
12562   },
12563   {
12564     "type": "get",
12565     "url": "/api/integrations/freshsales/fields/{id}",
12566     "title": "Gets a single Freshsales Field",
12567     "examples": [
12568       {
12569         "title": "Example usage:",
12570         "content": "curl https://{domain}/api/integrations/freshsales/fields/{id} -v -u {name}:{password}",
12571         "type": "json"
12572       }
12573     ],
12574     "name": "ShowFreshsales_Fields",
12575     "group": "Freshsales_Fields",
12576     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12577     "version": "0.0.0",
12578     "filename": "server/api/intFreshsalesField/index.js",
12579     "groupTitle": "Freshsales_Fields"
12580   },
12581   {
12582     "type": "put",
12583     "url": "/api/integrations/freshsales/fields/{id}",
12584     "title": "Update an existing Freshsales Field",
12585     "examples": [
12586       {
12587         "title": "Example usage:",
12588         "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",
12589         "type": "json"
12590       }
12591     ],
12592     "name": "updateFreshsales_Fields",
12593     "group": "Freshsales_Fields",
12594     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12595     "version": "0.0.0",
12596     "filename": "server/api/intFreshsalesField/index.js",
12597     "groupTitle": "Freshsales_Fields"
12598   },
12599   {
12600     "type": "post",
12601     "url": "/api/campaigns/{id}/blacklists",
12602     "title": "Add blacklists to an IVR campaign",
12603     "examples": [
12604       {
12605         "title": "Example usage:",
12606         "content": "curl https://{domain}/api/campaigns/{id}/blacklists -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
12607         "type": "json"
12608       }
12609     ],
12610     "name": "AddBlackLists",
12611     "group": "IVR_Campaigns",
12612     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12613     "version": "0.0.0",
12614     "filename": "server/api/campaign/index.js",
12615     "groupTitle": "IVR_Campaigns"
12616   },
12617   {
12618     "type": "post",
12619     "url": "/api/campaigns/{id}/lists",
12620     "title": "Add lists to an IVR campaign",
12621     "examples": [
12622       {
12623         "title": "Example usage:",
12624         "content": "curl https://{domain}/api/campaigns/{id}/lists -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
12625         "type": "json"
12626       }
12627     ],
12628     "name": "AddLists",
12629     "group": "IVR_Campaigns",
12630     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12631     "version": "0.0.0",
12632     "filename": "server/api/campaign/index.js",
12633     "groupTitle": "IVR_Campaigns"
12634   },
12635   {
12636     "type": "post",
12637     "url": "/api/campaigns/clone",
12638     "title": "Clone an existing IVR Campaign",
12639     "examples": [
12640       {
12641         "title": "Example usage:",
12642         "content": "curl https://{domain}/api/campaigns/clone -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
12643         "type": "json"
12644       }
12645     ],
12646     "name": "CloneIVR_Campaigns",
12647     "group": "IVR_Campaigns",
12648     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12649     "version": "0.0.0",
12650     "filename": "server/api/campaign/index.js",
12651     "groupTitle": "IVR_Campaigns"
12652   },
12653   {
12654     "type": "post",
12655     "url": "/api/campaigns",
12656     "title": "Creates a new IVR Campaign",
12657     "examples": [
12658       {
12659         "title": "Example usage:",
12660         "content": "curl https://{domain}/api/campaigns -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
12661         "type": "json"
12662       }
12663     ],
12664     "name": "CreateIVR_Campaigns",
12665     "group": "IVR_Campaigns",
12666     "parameter": {
12667       "fields": {
12668         "Body": [
12669           {
12670             "group": "Body",
12671             "type": "String",
12672             "optional": false,
12673             "field": "name",
12674             "description": ""
12675           },
12676           {
12677             "group": "Body",
12678             "type": "String",
12679             "allowedValues": [
12680               "\"ivr\""
12681             ],
12682             "optional": false,
12683             "field": "type",
12684             "description": ""
12685           },
12686           {
12687             "group": "Body",
12688             "type": "String",
12689             "optional": true,
12690             "field": "description",
12691             "description": ""
12692           },
12693           {
12694             "group": "Body",
12695             "type": "Boolean",
12696             "optional": true,
12697             "field": "active",
12698             "description": "<p>Active/Disactive Campaign</p>"
12699           },
12700           {
12701             "group": "Body",
12702             "type": "Integer",
12703             "optional": true,
12704             "field": "limitCalls",
12705             "description": "<p>Max 200 calls.</p>"
12706           },
12707           {
12708             "group": "Body",
12709             "type": "String",
12710             "optional": true,
12711             "field": "dialOriginateCallerIdName",
12712             "description": ""
12713           },
12714           {
12715             "group": "Body",
12716             "type": "String",
12717             "optional": true,
12718             "field": "dialOriginateCallerIdNumber",
12719             "description": ""
12720           },
12721           {
12722             "group": "Body",
12723             "type": "Integer",
12724             "optional": true,
12725             "field": "dialOriginateTimeout",
12726             "description": "<p>Originate Timeout Seconds (min:1, max:999)</p>"
12727           },
12728           {
12729             "group": "Body",
12730             "type": "Integer",
12731             "optional": true,
12732             "field": "dialCongestionMaxRetry",
12733             "description": "<p>#Congestion Retry (min:1, max:999)</p>"
12734           },
12735           {
12736             "group": "Body",
12737             "type": "Integer",
12738             "optional": true,
12739             "field": "dialCongestionRetryFrequency",
12740             "description": "<p>Congestion Retry Frequency Minutes (min:1, max:99999)</p>"
12741           },
12742           {
12743             "group": "Body",
12744             "type": "Integer",
12745             "optional": true,
12746             "field": "dialBusyMaxRetry",
12747             "description": "<p>#Busy Retry (min:1, max:999)</p>"
12748           },
12749           {
12750             "group": "Body",
12751             "type": "Integer",
12752             "optional": true,
12753             "field": "dialBusyRetryFrequency",
12754             "description": "<p>Busy Retry Frequency Minutes (min:1, max:99999)</p>"
12755           },
12756           {
12757             "group": "Body",
12758             "type": "Integer",
12759             "optional": true,
12760             "field": "dialNoAnswerMaxRetry",
12761             "description": "<p>#NoAnswer Retry (min:1, max:999)</p>"
12762           },
12763           {
12764             "group": "Body",
12765             "type": "Integer",
12766             "optional": true,
12767             "field": "dialNoAnswerRetryFrequency",
12768             "description": "<p>NoAnswer Retry Frequency Minutes (min:1, max:99999)</p>"
12769           },
12770           {
12771             "group": "Body",
12772             "type": "Integer",
12773             "optional": true,
12774             "field": "dialGlobalMaxRetry",
12775             "description": "<p>#Global Max Retry (min:1, max:999)</p>"
12776           },
12777           {
12778             "group": "Body",
12779             "type": "String",
12780             "optional": true,
12781             "field": "dialTimezone",
12782             "description": ""
12783           },
12784           {
12785             "group": "Body",
12786             "type": "String",
12787             "optional": true,
12788             "field": "dialGlobalInterval",
12789             "description": ""
12790           },
12791           {
12792             "group": "Body",
12793             "type": "String",
12794             "allowedValues": [
12795               "\"always\"",
12796               "\"never\"",
12797               "\"onlyIfOpen\""
12798             ],
12799             "optional": true,
12800             "field": "dialCheckDuplicateType",
12801             "description": ""
12802           },
12803           {
12804             "group": "Body",
12805             "type": "Boolean",
12806             "optional": true,
12807             "field": "dialAMDActive",
12808             "description": "<p>Active/Disactive AMD</p>"
12809           },
12810           {
12811             "group": "Body",
12812             "type": "Integer",
12813             "optional": true,
12814             "field": "dialAMDInitialSilence",
12815             "description": "<p>#AMD Initial Silence</p>"
12816           },
12817           {
12818             "group": "Body",
12819             "type": "Integer",
12820             "optional": true,
12821             "field": "dialAMDGreeting",
12822             "description": "<p>#AMD Greeting</p>"
12823           },
12824           {
12825             "group": "Body",
12826             "type": "Integer",
12827             "optional": true,
12828             "field": "dialAMDAfterGreetingSilence",
12829             "description": "<p>#AMD After Greeting Silence</p>"
12830           },
12831           {
12832             "group": "Body",
12833             "type": "Integer",
12834             "optional": true,
12835             "field": "dialAMDTotalAnalysisTime",
12836             "description": "<p>#AMD Total Analysis Time</p>"
12837           },
12838           {
12839             "group": "Body",
12840             "type": "Integer",
12841             "optional": true,
12842             "field": "dialAMDMinWordLength",
12843             "description": "<p>#AMD Min Word Length</p>"
12844           },
12845           {
12846             "group": "Body",
12847             "type": "Integer",
12848             "optional": true,
12849             "field": "dialAMDBetweenWordsSilence",
12850             "description": "<p>#AMD Between Words Silence</p>"
12851           },
12852           {
12853             "group": "Body",
12854             "type": "Integer",
12855             "optional": true,
12856             "field": "dialAMDMaximumNumberOfWords",
12857             "description": "<p>#AMD Maximum Number Of Words</p>"
12858           },
12859           {
12860             "group": "Body",
12861             "type": "Integer",
12862             "optional": true,
12863             "field": "dialAMDSilenceThreshold",
12864             "description": "<p>#AMD Silence Threshold (min:0, max:32767)</p>"
12865           },
12866           {
12867             "group": "Body",
12868             "type": "Integer",
12869             "optional": true,
12870             "field": "dialAMDMaximumWordLength",
12871             "description": "<p>#AMD Maximum Word Length</p>"
12872           },
12873           {
12874             "group": "Body",
12875             "type": "String",
12876             "allowedValues": [
12877               "\"DESC\"",
12878               "\"ASC\""
12879             ],
12880             "optional": true,
12881             "field": "dialOrderByScheduledAt",
12882             "description": ""
12883           },
12884           {
12885             "group": "Body",
12886             "type": "String",
12887             "optional": true,
12888             "field": "dialPrefix",
12889             "description": ""
12890           },
12891           {
12892             "group": "Body",
12893             "type": "Integer",
12894             "optional": true,
12895             "field": "dialRandomLastDigitCallerIdNumber",
12896             "description": "<p>Random Last Digit (min:1, max:15)</p>"
12897           },
12898           {
12899             "group": "Body",
12900             "type": "Integer",
12901             "optional": true,
12902             "field": "dialCutDigit",
12903             "description": "<p>Cut Digit (min:1, max:15)</p>"
12904           },
12905           {
12906             "group": "Body",
12907             "type": "Integer",
12908             "optional": true,
12909             "field": "dialNoSuchNumberMaxRetry",
12910             "description": "<p>#NoSuchNumber Retry (min:1, max:999)</p>"
12911           },
12912           {
12913             "group": "Body",
12914             "type": "Integer",
12915             "optional": true,
12916             "field": "dialNoSuchNumberRetryFrequency",
12917             "description": "<p>NoSuchNumber Retry Frequency Minutes (min:1, max:99999)</p>"
12918           },
12919           {
12920             "group": "Body",
12921             "type": "Integer",
12922             "optional": true,
12923             "field": "dialDropMaxRetry",
12924             "description": "<p>#Drop Retry (min:1, max:999)</p>"
12925           },
12926           {
12927             "group": "Body",
12928             "type": "Integer",
12929             "optional": true,
12930             "field": "dialDropRetryFrequency",
12931             "description": "<p>Drop Retry Frequency Minutes (min:1, max:99999)</p>"
12932           },
12933           {
12934             "group": "Body",
12935             "type": "Integer",
12936             "optional": true,
12937             "field": "dialAbandonedMaxRetry",
12938             "description": "<p>#Abandoned Retry (min:1, max:999)</p>"
12939           },
12940           {
12941             "group": "Body",
12942             "type": "Integer",
12943             "optional": true,
12944             "field": "dialAbandonedRetryFrequency",
12945             "description": "<p>Abandoned Retry Frequency Minutes (min:1, max:99999)</p>"
12946           },
12947           {
12948             "group": "Body",
12949             "type": "Integer",
12950             "optional": true,
12951             "field": "dialMachineMaxRetry",
12952             "description": "<p>#Machine Retry (min:1, max:999)</p>"
12953           },
12954           {
12955             "group": "Body",
12956             "type": "Integer",
12957             "optional": true,
12958             "field": "dialMachineRetryFrequency",
12959             "description": "<p>Machine Retry Frequency Minutes (min:1, max:99999)</p>"
12960           },
12961           {
12962             "group": "Body",
12963             "type": "Integer",
12964             "optional": true,
12965             "field": "dialAgentRejectMaxRetry",
12966             "description": "<p>#AgentReject Retry (min:1, max:999)</p>"
12967           },
12968           {
12969             "group": "Body",
12970             "type": "Integer",
12971             "optional": true,
12972             "field": "dialAgentRejectRetryFrequency",
12973             "description": "<p>AgentReject Retry Frequency Minutes (min:1, max:99999)</p>"
12974           }
12975         ]
12976       }
12977     },
12978     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12979     "version": "0.0.0",
12980     "filename": "server/api/campaign/index.js",
12981     "groupTitle": "IVR_Campaigns"
12982   },
12983   {
12984     "type": "delete",
12985     "url": "/api/campaigns/{id}",
12986     "title": "Deletes a IVR Campaign",
12987     "examples": [
12988       {
12989         "title": "Example usage:",
12990         "content": "curl https://{domain}/api/campaigns/{id} -v -u {name}:{password} -X DELETE",
12991         "type": "json"
12992       }
12993     ],
12994     "name": "DeleteIVR_Campaigns",
12995     "group": "IVR_Campaigns",
12996     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12997     "version": "0.0.0",
12998     "filename": "server/api/campaign/index.js",
12999     "groupTitle": "IVR_Campaigns"
13000   },
13001   {
13002     "type": "get",
13003     "url": "/api/campaigns/{id}/blacklists",
13004     "title": "Get IVR campaign blacklists",
13005     "examples": [
13006       {
13007         "title": "Example usage:",
13008         "content": "curl https://{domain}/api/campaigns/{id}/blacklists -v -u {name}:{password} -X GET",
13009         "type": "json"
13010       }
13011     ],
13012     "name": "GetBlackLists",
13013     "group": "IVR_Campaigns",
13014     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13015     "version": "0.0.0",
13016     "filename": "server/api/campaign/index.js",
13017     "groupTitle": "IVR_Campaigns"
13018   },
13019   {
13020     "type": "get",
13021     "url": "/api/campaigns/{id}/finals",
13022     "title": "Gets IVR campaign hopper finals",
13023     "examples": [
13024       {
13025         "title": "Example usage:",
13026         "content": "curl https://{domain}/api/campaigns/{id}/hopper_finals -v -u {name}:{password}  -X GET",
13027         "type": "json"
13028       }
13029     ],
13030     "name": "GetHopperFinals",
13031     "group": "IVR_Campaigns",
13032     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13033     "version": "0.0.0",
13034     "filename": "server/api/campaign/index.js",
13035     "groupTitle": "IVR_Campaigns"
13036   },
13037   {
13038     "type": "get",
13039     "url": "/api/campaigns/{id}/hopper_histories",
13040     "title": "Gets IVR campaign hopper histories",
13041     "examples": [
13042       {
13043         "title": "Example usage:",
13044         "content": "curl https://{domain}/api/campaigns/{id}/hopper_histories -v -u {name}:{password} -X GET",
13045         "type": "json"
13046       }
13047     ],
13048     "name": "GetHopperHistories",
13049     "group": "IVR_Campaigns",
13050     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13051     "version": "0.0.0",
13052     "filename": "server/api/campaign/index.js",
13053     "groupTitle": "IVR_Campaigns"
13054   },
13055   {
13056     "type": "get",
13057     "url": "/api/campaigns/{id}/hoppers",
13058     "title": "Gets IVR campaign hoppers",
13059     "examples": [
13060       {
13061         "title": "Example usage:",
13062         "content": "curl https://{domain}/api/campaigns/{id}/hoppers -v -u {name}:{password} -X GET",
13063         "type": "json"
13064       }
13065     ],
13066     "name": "GetHoppers",
13067     "group": "IVR_Campaigns",
13068     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13069     "version": "0.0.0",
13070     "filename": "server/api/campaign/index.js",
13071     "groupTitle": "IVR_Campaigns"
13072   },
13073   {
13074     "type": "get",
13075     "url": "/api/campaigns",
13076     "title": "Gets a list of IVR Campaigns",
13077     "examples": [
13078       {
13079         "title": "Example usage:",
13080         "content": "curl https://{domain}/api/campaigns -v -u {name}:{password}",
13081         "type": "json"
13082       }
13083     ],
13084     "name": "GetIVR_Campaigns",
13085     "group": "IVR_Campaigns",
13086     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
13087     "version": "0.0.0",
13088     "filename": "server/api/campaign/index.js",
13089     "groupTitle": "IVR_Campaigns"
13090   },
13091   {
13092     "type": "get",
13093     "url": "/api/campaigns/{id}/lists",
13094     "title": "Get IVR campaign lists",
13095     "examples": [
13096       {
13097         "title": "Example usage:",
13098         "content": "curl https://{domain}/api/campaigns/{id}/lists -v -u {name}:{password} -X GET",
13099         "type": "json"
13100       }
13101     ],
13102     "name": "GetLists",
13103     "group": "IVR_Campaigns",
13104     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13105     "version": "0.0.0",
13106     "filename": "server/api/campaign/index.js",
13107     "groupTitle": "IVR_Campaigns"
13108   },
13109   {
13110     "type": "delete",
13111     "url": "/api/campaigns/{id}/blacklists",
13112     "title": "Remove blacklists from an IVR Campaign",
13113     "examples": [
13114       {
13115         "title": "Example usage:",
13116         "content": "curl https://{domain}/api/campaigns/{id}/blacklists?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
13117         "type": "json"
13118       }
13119     ],
13120     "name": "RemoveBlackLists",
13121     "group": "IVR_Campaigns",
13122     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13123     "version": "0.0.0",
13124     "filename": "server/api/campaign/index.js",
13125     "groupTitle": "IVR_Campaigns"
13126   },
13127   {
13128     "type": "delete",
13129     "url": "/api/campaigns/{id}/lists",
13130     "title": "Remove lists from an IVR Campaign",
13131     "examples": [
13132       {
13133         "title": "Example usage:",
13134         "content": "curl https://{domain}/api/campaigns/{id}/lists?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
13135         "type": "json"
13136       }
13137     ],
13138     "name": "RemoveLists",
13139     "group": "IVR_Campaigns",
13140     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13141     "version": "0.0.0",
13142     "filename": "server/api/campaign/index.js",
13143     "groupTitle": "IVR_Campaigns"
13144   },
13145   {
13146     "type": "get",
13147     "url": "/api/campaigns/{id}",
13148     "title": "Gets a single IVR Campaign",
13149     "examples": [
13150       {
13151         "title": "Example usage:",
13152         "content": "curl https://{domain}/api/campaigns/{id} -v -u {name}:{password}",
13153         "type": "json"
13154       }
13155     ],
13156     "name": "ShowIVR_Campaigns",
13157     "group": "IVR_Campaigns",
13158     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13159     "version": "0.0.0",
13160     "filename": "server/api/campaign/index.js",
13161     "groupTitle": "IVR_Campaigns"
13162   },
13163   {
13164     "type": "get",
13165     "url": "/api/campaigns/{id}/blacks",
13166     "title": "Gets IVR campaign hopper blacks",
13167     "examples": [
13168       {
13169         "title": "Example usage:",
13170         "content": "curl https://{domain}/api/campaigns/{id}/hopper_black -v -u {name}:{password}  -X GET",
13171         "type": "json"
13172       }
13173     ],
13174     "name": "getHopperBlacks",
13175     "group": "IVR_Campaigns",
13176     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13177     "version": "0.0.0",
13178     "filename": "server/api/campaign/index.js",
13179     "groupTitle": "IVR_Campaigns"
13180   },
13181   {
13182     "type": "put",
13183     "url": "/api/campaigns/{id}",
13184     "title": "Update an existing IVR Campaign",
13185     "examples": [
13186       {
13187         "title": "Example usage:",
13188         "content": "curl https://{domain}/api/campaigns/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
13189         "type": "json"
13190       }
13191     ],
13192     "name": "updateIVR_Campaigns",
13193     "group": "IVR_Campaigns",
13194     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13195     "version": "0.0.0",
13196     "filename": "server/api/campaign/index.js",
13197     "groupTitle": "IVR_Campaigns"
13198   },
13199   {
13200     "type": "post",
13201     "url": "/api/integrations/reports",
13202     "title": "Creates a new Integration Report",
13203     "examples": [
13204       {
13205         "title": "Example usage:",
13206         "content": "curl https://{domain}/api/integrations/reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
13207         "type": "json"
13208       }
13209     ],
13210     "name": "CreateIntegration_Reports",
13211     "group": "Integration_Reports",
13212     "parameter": {
13213       "fields": {
13214         "Body": [
13215           {
13216             "group": "Body",
13217             "type": "String",
13218             "optional": true,
13219             "field": "integration",
13220             "description": ""
13221           },
13222           {
13223             "group": "Body",
13224             "type": "String",
13225             "optional": true,
13226             "field": "eventChannel",
13227             "description": ""
13228           },
13229           {
13230             "group": "Body",
13231             "type": "String",
13232             "optional": true,
13233             "field": "exitStatus",
13234             "description": ""
13235           },
13236           {
13237             "group": "Body",
13238             "type": "String",
13239             "optional": true,
13240             "field": "ticketId",
13241             "description": ""
13242           },
13243           {
13244             "group": "Body",
13245             "type": "Integer",
13246             "optional": true,
13247             "field": "integrationId",
13248             "description": ""
13249           },
13250           {
13251             "group": "Body",
13252             "type": "String",
13253             "optional": true,
13254             "field": "contacts",
13255             "description": ""
13256           },
13257           {
13258             "group": "Body",
13259             "type": "String",
13260             "optional": true,
13261             "field": "uniqueid",
13262             "description": ""
13263           },
13264           {
13265             "group": "Body",
13266             "type": "String",
13267             "optional": true,
13268             "field": "calleridnum",
13269             "description": ""
13270           },
13271           {
13272             "group": "Body",
13273             "type": "String",
13274             "optional": true,
13275             "field": "calleridname",
13276             "description": ""
13277           },
13278           {
13279             "group": "Body",
13280             "type": "String",
13281             "optional": true,
13282             "field": "queue",
13283             "description": ""
13284           },
13285           {
13286             "group": "Body",
13287             "type": "String",
13288             "optional": true,
13289             "field": "interface",
13290             "description": ""
13291           },
13292           {
13293             "group": "Body",
13294             "type": "String",
13295             "optional": true,
13296             "field": "membername",
13297             "description": ""
13298           },
13299           {
13300             "group": "Body",
13301             "type": "String",
13302             "optional": true,
13303             "field": "agentcalledAt",
13304             "description": ""
13305           },
13306           {
13307             "group": "Body",
13308             "type": "String",
13309             "optional": true,
13310             "field": "agentconnectAt",
13311             "description": ""
13312           },
13313           {
13314             "group": "Body",
13315             "type": "Integer",
13316             "optional": true,
13317             "field": "holdtime",
13318             "description": ""
13319           },
13320           {
13321             "group": "Body",
13322             "type": "Boolean",
13323             "optional": true,
13324             "field": "agentcomplete",
13325             "description": ""
13326           },
13327           {
13328             "group": "Body",
13329             "type": "String",
13330             "optional": true,
13331             "field": "agentcompleteAt",
13332             "description": ""
13333           },
13334           {
13335             "group": "Body",
13336             "type": "Integer",
13337             "optional": true,
13338             "field": "talktime",
13339             "description": ""
13340           },
13341           {
13342             "group": "Body",
13343             "type": "Boolean",
13344             "optional": true,
13345             "field": "agentacw",
13346             "description": ""
13347           },
13348           {
13349             "group": "Body",
13350             "type": "Integer",
13351             "optional": true,
13352             "field": "acwtime",
13353             "description": ""
13354           },
13355           {
13356             "group": "Body",
13357             "type": "String",
13358             "optional": true,
13359             "field": "reason",
13360             "description": ""
13361           },
13362           {
13363             "group": "Body",
13364             "type": "Boolean",
13365             "optional": true,
13366             "field": "agentringnoanswer",
13367             "description": ""
13368           },
13369           {
13370             "group": "Body",
13371             "type": "String",
13372             "optional": true,
13373             "field": "agentringnoanswerAt",
13374             "description": ""
13375           },
13376           {
13377             "group": "Body",
13378             "type": "Boolean",
13379             "optional": true,
13380             "field": "agentdump",
13381             "description": ""
13382           },
13383           {
13384             "group": "Body",
13385             "type": "String",
13386             "optional": true,
13387             "field": "agentdumpAt",
13388             "description": ""
13389           },
13390           {
13391             "group": "Body",
13392             "type": "String",
13393             "optional": true,
13394             "field": "lastevent",
13395             "description": ""
13396           },
13397           {
13398             "group": "Body",
13399             "type": "String",
13400             "optional": true,
13401             "field": "channel",
13402             "description": ""
13403           },
13404           {
13405             "group": "Body",
13406             "type": "Integer",
13407             "optional": true,
13408             "field": "channelstate",
13409             "description": ""
13410           },
13411           {
13412             "group": "Body",
13413             "type": "String",
13414             "optional": true,
13415             "field": "channelstatedesc",
13416             "description": ""
13417           },
13418           {
13419             "group": "Body",
13420             "type": "String",
13421             "optional": true,
13422             "field": "connectedlinenum",
13423             "description": ""
13424           },
13425           {
13426             "group": "Body",
13427             "type": "String",
13428             "optional": true,
13429             "field": "connectedlinename",
13430             "description": ""
13431           },
13432           {
13433             "group": "Body",
13434             "type": "String",
13435             "optional": true,
13436             "field": "language",
13437             "description": ""
13438           },
13439           {
13440             "group": "Body",
13441             "type": "String",
13442             "optional": true,
13443             "field": "accountcode",
13444             "description": ""
13445           },
13446           {
13447             "group": "Body",
13448             "type": "String",
13449             "optional": true,
13450             "field": "context",
13451             "description": ""
13452           },
13453           {
13454             "group": "Body",
13455             "type": "String",
13456             "optional": true,
13457             "field": "exten",
13458             "description": ""
13459           },
13460           {
13461             "group": "Body",
13462             "type": "String",
13463             "optional": true,
13464             "field": "priority",
13465             "description": ""
13466           },
13467           {
13468             "group": "Body",
13469             "type": "String",
13470             "optional": true,
13471             "field": "destchannel",
13472             "description": ""
13473           },
13474           {
13475             "group": "Body",
13476             "type": "Integer",
13477             "optional": true,
13478             "field": "destchannelstate",
13479             "description": ""
13480           },
13481           {
13482             "group": "Body",
13483             "type": "String",
13484             "optional": true,
13485             "field": "destchannelstatedesc",
13486             "description": ""
13487           },
13488           {
13489             "group": "Body",
13490             "type": "String",
13491             "optional": true,
13492             "field": "destcalleridnum",
13493             "description": ""
13494           },
13495           {
13496             "group": "Body",
13497             "type": "String",
13498             "optional": true,
13499             "field": "destcalleridname",
13500             "description": ""
13501           },
13502           {
13503             "group": "Body",
13504             "type": "String",
13505             "optional": true,
13506             "field": "destconnectedlinenum",
13507             "description": ""
13508           },
13509           {
13510             "group": "Body",
13511             "type": "String",
13512             "optional": true,
13513             "field": "destconnectedlinename",
13514             "description": ""
13515           },
13516           {
13517             "group": "Body",
13518             "type": "String",
13519             "optional": true,
13520             "field": "destlanguage",
13521             "description": ""
13522           },
13523           {
13524             "group": "Body",
13525             "type": "String",
13526             "optional": true,
13527             "field": "destaccountcode",
13528             "description": ""
13529           },
13530           {
13531             "group": "Body",
13532             "type": "String",
13533             "optional": true,
13534             "field": "destcontext",
13535             "description": ""
13536           },
13537           {
13538             "group": "Body",
13539             "type": "String",
13540             "optional": true,
13541             "field": "destexten",
13542             "description": ""
13543           },
13544           {
13545             "group": "Body",
13546             "type": "String",
13547             "optional": true,
13548             "field": "destpriority",
13549             "description": ""
13550           },
13551           {
13552             "group": "Body",
13553             "type": "String",
13554             "optional": true,
13555             "field": "destuniqueid",
13556             "description": ""
13557           },
13558           {
13559             "group": "Body",
13560             "type": "String",
13561             "optional": true,
13562             "field": "messageId",
13563             "description": ""
13564           },
13565           {
13566             "group": "Body",
13567             "type": "String",
13568             "optional": true,
13569             "field": "inReplyTo",
13570             "description": ""
13571           },
13572           {
13573             "group": "Body",
13574             "type": "String",
13575             "optional": true,
13576             "field": "subject",
13577             "description": ""
13578           },
13579           {
13580             "group": "Body",
13581             "type": "String",
13582             "optional": true,
13583             "field": "from",
13584             "description": ""
13585           },
13586           {
13587             "group": "Body",
13588             "type": "String",
13589             "optional": true,
13590             "field": "to",
13591             "description": ""
13592           },
13593           {
13594             "group": "Body",
13595             "type": "String",
13596             "optional": true,
13597             "field": "cc",
13598             "description": ""
13599           },
13600           {
13601             "group": "Body",
13602             "type": "Text",
13603             "optional": true,
13604             "field": "attachment",
13605             "description": ""
13606           },
13607           {
13608             "group": "Body",
13609             "type": "Text",
13610             "optional": true,
13611             "field": "html",
13612             "description": ""
13613           },
13614           {
13615             "group": "Body",
13616             "type": "Text",
13617             "optional": true,
13618             "field": "text",
13619             "description": ""
13620           },
13621           {
13622             "group": "Body",
13623             "type": "String",
13624             "allowedValues": [
13625               "\"SENT\"",
13626               "\"SENDING\"",
13627               "\"RECEIVED\"",
13628               "\"FAILED\""
13629             ],
13630             "optional": true,
13631             "field": "status",
13632             "description": ""
13633           },
13634           {
13635             "group": "Body",
13636             "type": "String",
13637             "optional": true,
13638             "field": "url",
13639             "description": ""
13640           },
13641           {
13642             "group": "Body",
13643             "type": "String",
13644             "optional": true,
13645             "field": "app",
13646             "description": ""
13647           },
13648           {
13649             "group": "Body",
13650             "type": "String",
13651             "optional": true,
13652             "field": "appdata",
13653             "description": ""
13654           },
13655           {
13656             "group": "Body",
13657             "type": "Integer",
13658             "optional": true,
13659             "field": "projectId",
13660             "description": ""
13661           }
13662         ]
13663       }
13664     },
13665     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13666     "version": "0.0.0",
13667     "filename": "server/api/integrationReport/index.js",
13668     "groupTitle": "Integration_Reports"
13669   },
13670   {
13671     "type": "delete",
13672     "url": "/api/integrations/reports/{id}",
13673     "title": "Deletes a Integration Report",
13674     "examples": [
13675       {
13676         "title": "Example usage:",
13677         "content": "curl https://{domain}/api/integrations/reports/{id} -v -u {name}:{password} -X DELETE",
13678         "type": "json"
13679       }
13680     ],
13681     "name": "DeleteIntegration_Reports",
13682     "group": "Integration_Reports",
13683     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13684     "version": "0.0.0",
13685     "filename": "server/api/integrationReport/index.js",
13686     "groupTitle": "Integration_Reports"
13687   },
13688   {
13689     "type": "get",
13690     "url": "/api/integrations/reports/describe",
13691     "title": "Gets table info about Integration Reports",
13692     "examples": [
13693       {
13694         "title": "Example usage:",
13695         "content": "curl https://{domain}/api/integrations/reports/describe -v -u {name}:{password}",
13696         "type": "json"
13697       }
13698     ],
13699     "name": "DescribeIntegration_Reports",
13700     "group": "Integration_Reports",
13701     "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>",
13702     "version": "0.0.0",
13703     "filename": "server/api/integrationReport/index.js",
13704     "groupTitle": "Integration_Reports"
13705   },
13706   {
13707     "type": "get",
13708     "url": "/api/integrations/reports",
13709     "title": "Gets a list of Integration Reports",
13710     "examples": [
13711       {
13712         "title": "Example usage:",
13713         "content": "curl https://{domain}/api/integrations/reports -v -u {name}:{password}",
13714         "type": "json"
13715       }
13716     ],
13717     "name": "GetIntegration_Reports",
13718     "group": "Integration_Reports",
13719     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
13720     "version": "0.0.0",
13721     "filename": "server/api/integrationReport/index.js",
13722     "groupTitle": "Integration_Reports"
13723   },
13724   {
13725     "type": "get",
13726     "url": "/api/integrations/reports/{id}",
13727     "title": "Gets a single Integration Report",
13728     "examples": [
13729       {
13730         "title": "Example usage:",
13731         "content": "curl https://{domain}/api/integrations/reports/{id} -v -u {name}:{password}",
13732         "type": "json"
13733       }
13734     ],
13735     "name": "ShowIntegration_Reports",
13736     "group": "Integration_Reports",
13737     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13738     "version": "0.0.0",
13739     "filename": "server/api/integrationReport/index.js",
13740     "groupTitle": "Integration_Reports"
13741   },
13742   {
13743     "type": "put",
13744     "url": "/api/integrations/reports/{id}",
13745     "title": "Update an existing Integration Report",
13746     "examples": [
13747       {
13748         "title": "Example usage:",
13749         "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",
13750         "type": "json"
13751       }
13752     ],
13753     "name": "updateIntegration_Reports",
13754     "group": "Integration_Reports",
13755     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13756     "version": "0.0.0",
13757     "filename": "server/api/integrationReport/index.js",
13758     "groupTitle": "Integration_Reports"
13759   },
13760   {
13761     "type": "post",
13762     "url": "/api/intervals",
13763     "title": "Creates a new Interval",
13764     "examples": [
13765       {
13766         "title": "Example usage:",
13767         "content": "curl https://{domain}/api/intervals -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
13768         "type": "json"
13769       }
13770     ],
13771     "name": "CreateIntervals",
13772     "group": "Intervals",
13773     "parameter": {
13774       "fields": {
13775         "Body": [
13776           {
13777             "group": "Body",
13778             "type": "String",
13779             "optional": true,
13780             "field": "name",
13781             "description": ""
13782           },
13783           {
13784             "group": "Body",
13785             "type": "String",
13786             "optional": true,
13787             "field": "description",
13788             "description": ""
13789           },
13790           {
13791             "group": "Body",
13792             "type": "String",
13793             "optional": true,
13794             "field": "interval",
13795             "description": ""
13796           }
13797         ]
13798       }
13799     },
13800     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13801     "version": "0.0.0",
13802     "filename": "server/api/interval/index.js",
13803     "groupTitle": "Intervals"
13804   },
13805   {
13806     "type": "delete",
13807     "url": "/api/intervals/{id}",
13808     "title": "Deletes a Interval",
13809     "examples": [
13810       {
13811         "title": "Example usage:",
13812         "content": "curl https://{domain}/api/intervals/{id} -v -u {name}:{password} -X DELETE",
13813         "type": "json"
13814       }
13815     ],
13816     "name": "DeleteIntervals",
13817     "group": "Intervals",
13818     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13819     "version": "0.0.0",
13820     "filename": "server/api/interval/index.js",
13821     "groupTitle": "Intervals"
13822   },
13823   {
13824     "type": "get",
13825     "url": "/api/intervals",
13826     "title": "Gets a list of Intervals",
13827     "examples": [
13828       {
13829         "title": "Example usage:",
13830         "content": "curl https://{domain}/api/intervals -v -u {name}:{password}",
13831         "type": "json"
13832       }
13833     ],
13834     "name": "GetIntervals",
13835     "group": "Intervals",
13836     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
13837     "version": "0.0.0",
13838     "filename": "server/api/interval/index.js",
13839     "groupTitle": "Intervals"
13840   },
13841   {
13842     "type": "get",
13843     "url": "/api/intervals/{id}",
13844     "title": "Gets a single Interval",
13845     "examples": [
13846       {
13847         "title": "Example usage:",
13848         "content": "curl https://{domain}/api/intervals/{id} -v -u {name}:{password}",
13849         "type": "json"
13850       }
13851     ],
13852     "name": "ShowIntervals",
13853     "group": "Intervals",
13854     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13855     "version": "0.0.0",
13856     "filename": "server/api/interval/index.js",
13857     "groupTitle": "Intervals"
13858   },
13859   {
13860     "type": "post",
13861     "url": "/api/intervals/{id}/sub_intervals",
13862     "title": "Creates a new sub interval",
13863     "examples": [
13864       {
13865         "title": "Example usage:",
13866         "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",
13867         "type": "json"
13868       }
13869     ],
13870     "name": "addInterval",
13871     "group": "Intervals",
13872     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13873     "version": "0.0.0",
13874     "filename": "server/api/interval/index.js",
13875     "groupTitle": "Intervals"
13876   },
13877   {
13878     "type": "post",
13879     "url": "/api/intervals/{id}/sub_intervals/create_many",
13880     "title": "Create new sub intervals set",
13881     "examples": [
13882       {
13883         "title": "Example usage:",
13884         "content": "curl https://{domain}/api/intervals/{id}/sub_intervals -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
13885         "type": "json"
13886       }
13887     ],
13888     "name": "addIntervals",
13889     "group": "Intervals",
13890     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13891     "version": "0.0.0",
13892     "filename": "server/api/interval/index.js",
13893     "groupTitle": "Intervals"
13894   },
13895   {
13896     "type": "get",
13897     "url": "/api/intervals/{id}/sub_intervals",
13898     "title": "Get sub intervals set",
13899     "examples": [
13900       {
13901         "title": "Example usage:",
13902         "content": "curl https://{domain}/api/intervals/{id}/sub_intervals -v -u {name}:{password} -X GET",
13903         "type": "json"
13904       }
13905     ],
13906     "name": "getIntervals",
13907     "group": "Intervals",
13908     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13909     "version": "0.0.0",
13910     "filename": "server/api/interval/index.js",
13911     "groupTitle": "Intervals"
13912   },
13913   {
13914     "type": "put",
13915     "url": "/api/intervals/{id}",
13916     "title": "Update an existing Interval",
13917     "examples": [
13918       {
13919         "title": "Example usage:",
13920         "content": "curl https://{domain}/api/intervals/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
13921         "type": "json"
13922       }
13923     ],
13924     "name": "updateIntervals",
13925     "group": "Intervals",
13926     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13927     "version": "0.0.0",
13928     "filename": "server/api/interval/index.js",
13929     "groupTitle": "Intervals"
13930   },
13931   {
13932     "type": "post",
13933     "url": "/api/jira",
13934     "title": "Creates a new issue",
13935     "examples": [
13936       {
13937         "title": "Example usage:",
13938         "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}",
13939         "type": "json"
13940       }
13941     ],
13942     "name": "Creates_Issue",
13943     "group": "Issue",
13944     "parameter": {
13945       "fields": {
13946         "Body": [
13947           {
13948             "group": "Body",
13949             "type": "String",
13950             "allowedValues": [
13951               "\"Bug\""
13952             ],
13953             "optional": true,
13954             "field": "issuetype",
13955             "description": ""
13956           },
13957           {
13958             "group": "Body",
13959             "type": "String",
13960             "optional": false,
13961             "field": "summary",
13962             "description": ""
13963           },
13964           {
13965             "group": "Body",
13966             "type": "String",
13967             "optional": false,
13968             "field": "description",
13969             "description": ""
13970           }
13971         ]
13972       }
13973     },
13974     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13975     "version": "0.0.0",
13976     "filename": "server/api/jira/index.js",
13977     "groupTitle": "Issue"
13978   },
13979   {
13980     "type": "post",
13981     "url": "/api/jscripty/answers/reports",
13982     "title": "Creates a new Report",
13983     "examples": [
13984       {
13985         "title": "Example usage:",
13986         "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",
13987         "type": "json"
13988       }
13989     ],
13990     "name": "CreateReports",
13991     "group": "JscriptyAnswerReport",
13992     "parameter": {
13993       "fields": {
13994         "Body": [
13995           {
13996             "group": "Body",
13997             "type": "Text",
13998             "optional": true,
13999             "field": "question",
14000             "description": ""
14001           },
14002           {
14003             "group": "Body",
14004             "type": "Text",
14005             "optional": true,
14006             "field": "answer",
14007             "description": ""
14008           },
14009           {
14010             "group": "Body",
14011             "type": "String",
14012             "optional": true,
14013             "field": "membername",
14014             "description": ""
14015           },
14016           {
14017             "group": "Body",
14018             "type": "String",
14019             "optional": true,
14020             "field": "projectname",
14021             "description": ""
14022           },
14023           {
14024             "group": "Body",
14025             "type": "String",
14026             "optional": true,
14027             "field": "queue",
14028             "description": ""
14029           },
14030           {
14031             "group": "Body",
14032             "type": "String",
14033             "optional": true,
14034             "field": "uniqueid",
14035             "description": ""
14036           },
14037           {
14038             "group": "Body",
14039             "type": "String",
14040             "optional": true,
14041             "field": "calleridname",
14042             "description": ""
14043           },
14044           {
14045             "group": "Body",
14046             "type": "String",
14047             "optional": true,
14048             "field": "calleridnum",
14049             "description": ""
14050           },
14051           {
14052             "group": "Body",
14053             "type": "String",
14054             "optional": true,
14055             "field": "questionId",
14056             "description": ""
14057           }
14058         ]
14059       }
14060     },
14061     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14062     "version": "0.0.0",
14063     "filename": "server/api/jscriptyAnswerReport/index.js",
14064     "groupTitle": "JscriptyAnswerReport"
14065   },
14066   {
14067     "type": "delete",
14068     "url": "/api/jscripty/answers/reports/{id}",
14069     "title": "Deletes a Report",
14070     "examples": [
14071       {
14072         "title": "Example usage:",
14073         "content": "curl https://{domain}/api/jscripty/answers/reports/{id} -v -u {name}:{password} -X DELETE",
14074         "type": "json"
14075       }
14076     ],
14077     "name": "DeleteReports",
14078     "group": "JscriptyAnswerReport",
14079     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14080     "version": "0.0.0",
14081     "filename": "server/api/jscriptyAnswerReport/index.js",
14082     "groupTitle": "JscriptyAnswerReport"
14083   },
14084   {
14085     "type": "get",
14086     "url": "/api/jscripty/answers/reports/describe",
14087     "title": "Gets table info about Reports",
14088     "examples": [
14089       {
14090         "title": "Example usage:",
14091         "content": "curl https://{domain}/api/jscripty/answers/reports/describe -v -u {name}:{password}",
14092         "type": "json"
14093       }
14094     ],
14095     "name": "DescribeReports",
14096     "group": "JscriptyAnswerReport",
14097     "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>",
14098     "version": "0.0.0",
14099     "filename": "server/api/jscriptyAnswerReport/index.js",
14100     "groupTitle": "JscriptyAnswerReport"
14101   },
14102   {
14103     "type": "get",
14104     "url": "/api/jscripty/answers/reports",
14105     "title": "Gets a list of Reports",
14106     "examples": [
14107       {
14108         "title": "Example usage:",
14109         "content": "curl https://{domain}/api/jscripty/answers/reports -v -u {name}:{password}",
14110         "type": "json"
14111       }
14112     ],
14113     "name": "GetReports",
14114     "group": "JscriptyAnswerReport",
14115     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
14116     "version": "0.0.0",
14117     "filename": "server/api/jscriptyAnswerReport/index.js",
14118     "groupTitle": "JscriptyAnswerReport"
14119   },
14120   {
14121     "type": "get",
14122     "url": "/api/jscripty/answers/reports/{id}",
14123     "title": "Gets a single Report",
14124     "examples": [
14125       {
14126         "title": "Example usage:",
14127         "content": "curl https://{domain}/api/jscripty/answers/reports/{id} -v -u {name}:{password}",
14128         "type": "json"
14129       }
14130     ],
14131     "name": "ShowReports",
14132     "group": "JscriptyAnswerReport",
14133     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14134     "version": "0.0.0",
14135     "filename": "server/api/jscriptyAnswerReport/index.js",
14136     "groupTitle": "JscriptyAnswerReport"
14137   },
14138   {
14139     "type": "put",
14140     "url": "/api/jscripty/answers/reports/{id}",
14141     "title": "Update an existing Report",
14142     "examples": [
14143       {
14144         "title": "Example usage:",
14145         "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",
14146         "type": "json"
14147       }
14148     ],
14149     "name": "updateReports",
14150     "group": "JscriptyAnswerReport",
14151     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14152     "version": "0.0.0",
14153     "filename": "server/api/jscriptyAnswerReport/index.js",
14154     "groupTitle": "JscriptyAnswerReport"
14155   },
14156   {
14157     "type": "post",
14158     "url": "/api/jscripty/questions/reports",
14159     "title": "Creates a new Report",
14160     "examples": [
14161       {
14162         "title": "Example usage:",
14163         "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",
14164         "type": "json"
14165       }
14166     ],
14167     "name": "CreateReports",
14168     "group": "JscriptyQuestionReport",
14169     "parameter": {
14170       "fields": {
14171         "Body": [
14172           {
14173             "group": "Body",
14174             "type": "Text",
14175             "optional": true,
14176             "field": "question",
14177             "description": ""
14178           },
14179           {
14180             "group": "Body",
14181             "type": "Text",
14182             "optional": true,
14183             "field": "answer",
14184             "description": ""
14185           },
14186           {
14187             "group": "Body",
14188             "type": "String",
14189             "optional": true,
14190             "field": "membername",
14191             "description": ""
14192           },
14193           {
14194             "group": "Body",
14195             "type": "String",
14196             "optional": true,
14197             "field": "projectname",
14198             "description": ""
14199           },
14200           {
14201             "group": "Body",
14202             "type": "String",
14203             "optional": true,
14204             "field": "queue",
14205             "description": ""
14206           },
14207           {
14208             "group": "Body",
14209             "type": "String",
14210             "optional": true,
14211             "field": "uniqueid",
14212             "description": ""
14213           },
14214           {
14215             "group": "Body",
14216             "type": "String",
14217             "optional": true,
14218             "field": "calleridname",
14219             "description": ""
14220           },
14221           {
14222             "group": "Body",
14223             "type": "String",
14224             "optional": true,
14225             "field": "calleridnum",
14226             "description": ""
14227           },
14228           {
14229             "group": "Body",
14230             "type": "String",
14231             "optional": true,
14232             "field": "questionId",
14233             "description": ""
14234           }
14235         ]
14236       }
14237     },
14238     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14239     "version": "0.0.0",
14240     "filename": "server/api/jscriptyQuestionReport/index.js",
14241     "groupTitle": "JscriptyQuestionReport"
14242   },
14243   {
14244     "type": "delete",
14245     "url": "/api/jscripty/questions/reports/{id}",
14246     "title": "Deletes a Report",
14247     "examples": [
14248       {
14249         "title": "Example usage:",
14250         "content": "curl https://{domain}/api/jscripty/questions/reports/{id} -v -u {name}:{password} -X DELETE",
14251         "type": "json"
14252       }
14253     ],
14254     "name": "DeleteReports",
14255     "group": "JscriptyQuestionReport",
14256     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14257     "version": "0.0.0",
14258     "filename": "server/api/jscriptyQuestionReport/index.js",
14259     "groupTitle": "JscriptyQuestionReport"
14260   },
14261   {
14262     "type": "get",
14263     "url": "/api/jscripty/questions/reports/describe",
14264     "title": "Gets table info about Reports",
14265     "examples": [
14266       {
14267         "title": "Example usage:",
14268         "content": "curl https://{domain}/api/jscripty/questions/reports/describe -v -u {name}:{password}",
14269         "type": "json"
14270       }
14271     ],
14272     "name": "DescribeReports",
14273     "group": "JscriptyQuestionReport",
14274     "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>",
14275     "version": "0.0.0",
14276     "filename": "server/api/jscriptyQuestionReport/index.js",
14277     "groupTitle": "JscriptyQuestionReport"
14278   },
14279   {
14280     "type": "get",
14281     "url": "/api/jscripty/questions/reports",
14282     "title": "Gets a list of Reports",
14283     "examples": [
14284       {
14285         "title": "Example usage:",
14286         "content": "curl https://{domain}/api/jscripty/questions/reports -v -u {name}:{password}",
14287         "type": "json"
14288       }
14289     ],
14290     "name": "GetReports",
14291     "group": "JscriptyQuestionReport",
14292     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
14293     "version": "0.0.0",
14294     "filename": "server/api/jscriptyQuestionReport/index.js",
14295     "groupTitle": "JscriptyQuestionReport"
14296   },
14297   {
14298     "type": "get",
14299     "url": "/api/jscripty/questions/reports/{id}",
14300     "title": "Gets a single Report",
14301     "examples": [
14302       {
14303         "title": "Example usage:",
14304         "content": "curl https://{domain}/api/jscripty/questions/reports/{id} -v -u {name}:{password}",
14305         "type": "json"
14306       }
14307     ],
14308     "name": "ShowReports",
14309     "group": "JscriptyQuestionReport",
14310     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14311     "version": "0.0.0",
14312     "filename": "server/api/jscriptyQuestionReport/index.js",
14313     "groupTitle": "JscriptyQuestionReport"
14314   },
14315   {
14316     "type": "put",
14317     "url": "/api/jscripty/questions/reports/{id}",
14318     "title": "Update an existing Report",
14319     "examples": [
14320       {
14321         "title": "Example usage:",
14322         "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",
14323         "type": "json"
14324       }
14325     ],
14326     "name": "updateReports",
14327     "group": "JscriptyQuestionReport",
14328     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14329     "version": "0.0.0",
14330     "filename": "server/api/jscriptyQuestionReport/index.js",
14331     "groupTitle": "JscriptyQuestionReport"
14332   },
14333   {
14334     "type": "post",
14335     "url": "/api/jscripty/sessions/reports",
14336     "title": "Creates a new Report",
14337     "examples": [
14338       {
14339         "title": "Example usage:",
14340         "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",
14341         "type": "json"
14342       }
14343     ],
14344     "name": "CreateReports",
14345     "group": "JscriptySessionReport",
14346     "parameter": {
14347       "fields": {
14348         "Body": [
14349           {
14350             "group": "Body",
14351             "type": "String",
14352             "optional": true,
14353             "field": "starttime",
14354             "description": ""
14355           },
14356           {
14357             "group": "Body",
14358             "type": "String",
14359             "optional": true,
14360             "field": "endtime",
14361             "description": ""
14362           },
14363           {
14364             "group": "Body",
14365             "type": "String",
14366             "optional": true,
14367             "field": "membername",
14368             "description": ""
14369           },
14370           {
14371             "group": "Body",
14372             "type": "String",
14373             "optional": true,
14374             "field": "projectname",
14375             "description": ""
14376           },
14377           {
14378             "group": "Body",
14379             "type": "String",
14380             "optional": true,
14381             "field": "queue",
14382             "description": ""
14383           },
14384           {
14385             "group": "Body",
14386             "type": "String",
14387             "optional": true,
14388             "field": "uniqueid",
14389             "description": ""
14390           },
14391           {
14392             "group": "Body",
14393             "type": "String",
14394             "optional": true,
14395             "field": "calleridname",
14396             "description": ""
14397           },
14398           {
14399             "group": "Body",
14400             "type": "String",
14401             "optional": true,
14402             "field": "calleridnum",
14403             "description": ""
14404           },
14405           {
14406             "group": "Body",
14407             "type": "Boolean",
14408             "optional": true,
14409             "field": "completed",
14410             "description": ""
14411           }
14412         ]
14413       }
14414     },
14415     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14416     "version": "0.0.0",
14417     "filename": "server/api/jscriptySessionReport/index.js",
14418     "groupTitle": "JscriptySessionReport"
14419   },
14420   {
14421     "type": "delete",
14422     "url": "/api/jscripty/sessions/reports/{id}",
14423     "title": "Deletes a Report",
14424     "examples": [
14425       {
14426         "title": "Example usage:",
14427         "content": "curl https://{domain}/api/jscripty/sessions/reports/{id} -v -u {name}:{password} -X DELETE",
14428         "type": "json"
14429       }
14430     ],
14431     "name": "DeleteReports",
14432     "group": "JscriptySessionReport",
14433     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14434     "version": "0.0.0",
14435     "filename": "server/api/jscriptySessionReport/index.js",
14436     "groupTitle": "JscriptySessionReport"
14437   },
14438   {
14439     "type": "get",
14440     "url": "/api/jscripty/sessions/reports/describe",
14441     "title": "Gets table info about Reports",
14442     "examples": [
14443       {
14444         "title": "Example usage:",
14445         "content": "curl https://{domain}/api/jscripty/sessions/reports/describe -v -u {name}:{password}",
14446         "type": "json"
14447       }
14448     ],
14449     "name": "DescribeReports",
14450     "group": "JscriptySessionReport",
14451     "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>",
14452     "version": "0.0.0",
14453     "filename": "server/api/jscriptySessionReport/index.js",
14454     "groupTitle": "JscriptySessionReport"
14455   },
14456   {
14457     "type": "get",
14458     "url": "/api/jscripty/sessions/reports",
14459     "title": "Gets a list of Reports",
14460     "examples": [
14461       {
14462         "title": "Example usage:",
14463         "content": "curl https://{domain}/api/jscripty/sessions/reports -v -u {name}:{password}",
14464         "type": "json"
14465       }
14466     ],
14467     "name": "GetReports",
14468     "group": "JscriptySessionReport",
14469     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
14470     "version": "0.0.0",
14471     "filename": "server/api/jscriptySessionReport/index.js",
14472     "groupTitle": "JscriptySessionReport"
14473   },
14474   {
14475     "type": "get",
14476     "url": "/api/jscripty/sessions/reports/{id}",
14477     "title": "Gets a single Report",
14478     "examples": [
14479       {
14480         "title": "Example usage:",
14481         "content": "curl https://{domain}/api/jscripty/sessions/reports/{id} -v -u {name}:{password}",
14482         "type": "json"
14483       }
14484     ],
14485     "name": "ShowReports",
14486     "group": "JscriptySessionReport",
14487     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14488     "version": "0.0.0",
14489     "filename": "server/api/jscriptySessionReport/index.js",
14490     "groupTitle": "JscriptySessionReport"
14491   },
14492   {
14493     "type": "get",
14494     "url": "/api/jscripty/sessions/reports/{id}/questions",
14495     "title": "Gets Jscripty Session questions",
14496     "examples": [
14497       {
14498         "title": "Example usage:",
14499         "content": "curl https://{domain}/api/jscripty/sessions/reports/{id}/questions -v -u {name}:{password}  -X GET",
14500         "type": "json"
14501       }
14502     ],
14503     "name": "getQuestions",
14504     "group": "JscriptySessionReport",
14505     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14506     "version": "0.0.0",
14507     "filename": "server/api/jscriptySessionReport/index.js",
14508     "groupTitle": "JscriptySessionReport"
14509   },
14510   {
14511     "type": "put",
14512     "url": "/api/jscripty/sessions/reports/{id}",
14513     "title": "Update an existing Report",
14514     "examples": [
14515       {
14516         "title": "Example usage:",
14517         "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",
14518         "type": "json"
14519       }
14520     ],
14521     "name": "updateReports",
14522     "group": "JscriptySessionReport",
14523     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14524     "version": "0.0.0",
14525     "filename": "server/api/jscriptySessionReport/index.js",
14526     "groupTitle": "JscriptySessionReport"
14527   },
14528   {
14529     "type": "post",
14530     "url": "/api/jscripty/projects/clone",
14531     "title": "Clone an existing Project",
14532     "examples": [
14533       {
14534         "title": "Example usage:",
14535         "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",
14536         "type": "json"
14537       }
14538     ],
14539     "name": "CloneProjects",
14540     "group": "Jscripty_Projects",
14541     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14542     "version": "0.0.0",
14543     "filename": "server/api/jscriptyProject/index.js",
14544     "groupTitle": "Jscripty_Projects"
14545   },
14546   {
14547     "type": "post",
14548     "url": "/api/jscripty/projects",
14549     "title": "Creates a new Project",
14550     "examples": [
14551       {
14552         "title": "Example usage:",
14553         "content": "curl https://{domain}/api/jscripty/projects -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
14554         "type": "json"
14555       }
14556     ],
14557     "name": "CreateProjects",
14558     "group": "Jscripty_Projects",
14559     "parameter": {
14560       "fields": {
14561         "Body": [
14562           {
14563             "group": "Body",
14564             "type": "String",
14565             "optional": true,
14566             "field": "name",
14567             "description": ""
14568           },
14569           {
14570             "group": "Body",
14571             "type": "String",
14572             "optional": true,
14573             "field": "description",
14574             "description": ""
14575           },
14576           {
14577             "group": "Body",
14578             "type": "Text",
14579             "optional": true,
14580             "field": "formData",
14581             "description": ""
14582           },
14583           {
14584             "group": "Body",
14585             "type": "Boolean",
14586             "optional": true,
14587             "field": "enableUncompleteSave",
14588             "description": ""
14589           },
14590           {
14591             "group": "Body",
14592             "type": "Boolean",
14593             "optional": true,
14594             "field": "sendUnpauseOnSubmit",
14595             "description": ""
14596           }
14597         ]
14598       }
14599     },
14600     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14601     "version": "0.0.0",
14602     "filename": "server/api/jscriptyProject/index.js",
14603     "groupTitle": "Jscripty_Projects"
14604   },
14605   {
14606     "type": "delete",
14607     "url": "/api/jscripty/projects/{id}",
14608     "title": "Deletes a Project",
14609     "examples": [
14610       {
14611         "title": "Example usage:",
14612         "content": "curl https://{domain}/api/jscripty/projects/{id} -v -u {name}:{password} -X DELETE",
14613         "type": "json"
14614       }
14615     ],
14616     "name": "DeleteProjects",
14617     "group": "Jscripty_Projects",
14618     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14619     "version": "0.0.0",
14620     "filename": "server/api/jscriptyProject/index.js",
14621     "groupTitle": "Jscripty_Projects"
14622   },
14623   {
14624     "type": "get",
14625     "url": "/api/jscripty/projects",
14626     "title": "Gets a list of Projects",
14627     "examples": [
14628       {
14629         "title": "Example usage:",
14630         "content": "curl https://{domain}/api/jscripty/projects -v -u {name}:{password}",
14631         "type": "json"
14632       }
14633     ],
14634     "name": "GetProjects",
14635     "group": "Jscripty_Projects",
14636     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
14637     "version": "0.0.0",
14638     "filename": "server/api/jscriptyProject/index.js",
14639     "groupTitle": "Jscripty_Projects"
14640   },
14641   {
14642     "type": "get",
14643     "url": "/api/jscripty/projects/{id}",
14644     "title": "Gets a single Project",
14645     "examples": [
14646       {
14647         "title": "Example usage:",
14648         "content": "curl https://{domain}/api/jscripty/projects/{id} -v -u {name}:{password}",
14649         "type": "json"
14650       }
14651     ],
14652     "name": "ShowProjects",
14653     "group": "Jscripty_Projects",
14654     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14655     "version": "0.0.0",
14656     "filename": "server/api/jscriptyProject/index.js",
14657     "groupTitle": "Jscripty_Projects"
14658   },
14659   {
14660     "type": "get",
14661     "url": "/api/jscripty/projects/{id}/answers",
14662     "title": "Gets jscripty project answers",
14663     "examples": [
14664       {
14665         "title": "Example usage:",
14666         "content": "curl https://{domain}/api/jscripty/projects/{id}/answers -v -u {name}:{password}  -X GET",
14667         "type": "json"
14668       }
14669     ],
14670     "name": "getAnswers",
14671     "group": "Jscripty_Projects",
14672     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14673     "version": "0.0.0",
14674     "filename": "server/api/jscriptyProject/index.js",
14675     "groupTitle": "Jscripty_Projects"
14676   },
14677   {
14678     "type": "get",
14679     "url": "/api/jscripty/projects/{id}/sessions",
14680     "title": "Gets jscripty project sessions",
14681     "examples": [
14682       {
14683         "title": "Example usage:",
14684         "content": "curl https://{domain}/api/jscripty/projects/{id}/sessions -v -u {name}:{password}  -X GET",
14685         "type": "json"
14686       }
14687     ],
14688     "name": "getSessions",
14689     "group": "Jscripty_Projects",
14690     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14691     "version": "0.0.0",
14692     "filename": "server/api/jscriptyProject/index.js",
14693     "groupTitle": "Jscripty_Projects"
14694   },
14695   {
14696     "type": "get",
14697     "url": "/api/jscripty/projects/{id}/summary",
14698     "title": "Gets jscripty project summary",
14699     "examples": [
14700       {
14701         "title": "Example usage:",
14702         "content": "curl https://{domain}/api/jscripty/projects/{id}/summary -v -u {name}:{password}  -X GET",
14703         "type": "json"
14704       }
14705     ],
14706     "name": "getSummary",
14707     "group": "Jscripty_Projects",
14708     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14709     "version": "0.0.0",
14710     "filename": "server/api/jscriptyProject/index.js",
14711     "groupTitle": "Jscripty_Projects"
14712   },
14713   {
14714     "type": "put",
14715     "url": "/api/jscripty/projects/{id}",
14716     "title": "Update an existing Project",
14717     "examples": [
14718       {
14719         "title": "Example usage:",
14720         "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",
14721         "type": "json"
14722       }
14723     ],
14724     "name": "updateProjects",
14725     "group": "Jscripty_Projects",
14726     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14727     "version": "0.0.0",
14728     "filename": "server/api/jscriptyProject/index.js",
14729     "groupTitle": "Jscripty_Projects"
14730   },
14731   {
14732     "type": "get",
14733     "url": "/api/license",
14734     "title": "Gets License Info",
14735     "examples": [
14736       {
14737         "title": "Example usage:",
14738         "content": "curl https://{domain}/api/license -v -u {name}:{password} -X GET",
14739         "type": "json"
14740       }
14741     ],
14742     "name": "index",
14743     "group": "License",
14744     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14745     "version": "0.0.0",
14746     "filename": "server/api/license/index.js",
14747     "groupTitle": "License"
14748   },
14749   {
14750     "type": "put",
14751     "url": "/api/license/{id}",
14752     "title": "Update License Info",
14753     "examples": [
14754       {
14755         "title": "Example usage:",
14756         "content": "curl https://{domain}/api/license/{id} -v -u {name}:{password} -X PUT",
14757         "type": "json"
14758       }
14759     ],
14760     "name": "update",
14761     "group": "License",
14762     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14763     "version": "0.0.0",
14764     "filename": "server/api/license/index.js",
14765     "groupTitle": "License"
14766   },
14767   {
14768     "type": "post",
14769     "url": "/api/mail/accounts/{id}/users",
14770     "title": "Add agents to a mail account",
14771     "examples": [
14772       {
14773         "title": "Example usage:",
14774         "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",
14775         "type": "json"
14776       }
14777     ],
14778     "name": "AddAgents",
14779     "group": "Mail_Accounts",
14780     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14781     "version": "0.0.0",
14782     "filename": "server/api/mailAccount/index.js",
14783     "groupTitle": "Mail_Accounts"
14784   },
14785   {
14786     "type": "post",
14787     "url": "/api/mail/accounts/{id}/in_servers",
14788     "title": "Creates a new IMAP server",
14789     "examples": [
14790       {
14791         "title": "Example usage:",
14792         "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",
14793         "type": "json"
14794       }
14795     ],
14796     "name": "AddImap",
14797     "group": "Mail_Accounts",
14798     "parameter": {
14799       "fields": {
14800         "Body": [
14801           {
14802             "group": "Body",
14803             "type": "String",
14804             "optional": true,
14805             "field": "description",
14806             "description": ""
14807           },
14808           {
14809             "group": "Body",
14810             "type": "String",
14811             "optional": true,
14812             "field": "host",
14813             "description": ""
14814           },
14815           {
14816             "group": "Body",
14817             "type": "Boolean",
14818             "optional": true,
14819             "field": "authentication",
14820             "description": ""
14821           },
14822           {
14823             "group": "Body",
14824             "type": "String",
14825             "optional": true,
14826             "field": "user",
14827             "description": ""
14828           },
14829           {
14830             "group": "Body",
14831             "type": "String",
14832             "optional": true,
14833             "field": "password",
14834             "description": ""
14835           },
14836           {
14837             "group": "Body",
14838             "type": "Integer",
14839             "optional": true,
14840             "field": "port",
14841             "description": ""
14842           },
14843           {
14844             "group": "Body",
14845             "type": "Boolean",
14846             "optional": true,
14847             "field": "tls",
14848             "description": ""
14849           },
14850           {
14851             "group": "Body",
14852             "type": "String",
14853             "optional": true,
14854             "field": "mailbox",
14855             "description": ""
14856           },
14857           {
14858             "group": "Body",
14859             "type": "Integer",
14860             "optional": true,
14861             "field": "connTimeout",
14862             "description": ""
14863           },
14864           {
14865             "group": "Body",
14866             "type": "Integer",
14867             "optional": true,
14868             "field": "authTimeout",
14869             "description": ""
14870           },
14871           {
14872             "group": "Body",
14873             "type": "String",
14874             "optional": true,
14875             "field": "service",
14876             "description": ""
14877           }
14878         ]
14879       }
14880     },
14881     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14882     "version": "0.0.0",
14883     "filename": "server/api/mailAccount/index.js",
14884     "groupTitle": "Mail_Accounts"
14885   },
14886   {
14887     "type": "post",
14888     "url": "/api/mail/accounts/{id}/out_servers",
14889     "title": "Creates a new SMTP server",
14890     "examples": [
14891       {
14892         "title": "Example usage:",
14893         "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",
14894         "type": "json"
14895       }
14896     ],
14897     "name": "AddSmtp",
14898     "group": "Mail_Accounts",
14899     "parameter": {
14900       "fields": {
14901         "Body": [
14902           {
14903             "group": "Body",
14904             "type": "String",
14905             "optional": true,
14906             "field": "description",
14907             "description": ""
14908           },
14909           {
14910             "group": "Body",
14911             "type": "String",
14912             "optional": true,
14913             "field": "host",
14914             "description": ""
14915           },
14916           {
14917             "group": "Body",
14918             "type": "String",
14919             "optional": true,
14920             "field": "user",
14921             "description": ""
14922           },
14923           {
14924             "group": "Body",
14925             "type": "String",
14926             "optional": true,
14927             "field": "pass",
14928             "description": ""
14929           },
14930           {
14931             "group": "Body",
14932             "type": "Integer",
14933             "optional": true,
14934             "field": "port",
14935             "description": ""
14936           },
14937           {
14938             "group": "Body",
14939             "type": "Boolean",
14940             "optional": true,
14941             "field": "secure",
14942             "description": ""
14943           },
14944           {
14945             "group": "Body",
14946             "type": "String",
14947             "optional": true,
14948             "field": "service",
14949             "description": ""
14950           },
14951           {
14952             "group": "Body",
14953             "type": "Boolean",
14954             "optional": true,
14955             "field": "authentication",
14956             "description": ""
14957           }
14958         ]
14959       }
14960     },
14961     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14962     "version": "0.0.0",
14963     "filename": "server/api/mailAccount/index.js",
14964     "groupTitle": "Mail_Accounts"
14965   },
14966   {
14967     "type": "delete",
14968     "url": "/api/mail/accounts/{id}",
14969     "title": "Deletes a mail account",
14970     "examples": [
14971       {
14972         "title": "Example usage:",
14973         "content": "curl https://{domain}/api/mail/accounts/{id} -v -u {name}:{password} -X DELETE",
14974         "type": "json"
14975       }
14976     ],
14977     "name": "DeleteMailAccounts",
14978     "group": "Mail_Accounts",
14979     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14980     "version": "0.0.0",
14981     "filename": "server/api/mailAccount/index.js",
14982     "groupTitle": "Mail_Accounts"
14983   },
14984   {
14985     "type": "get",
14986     "url": "/api/mail/accounts/describe",
14987     "title": "Gets table info about Accounts",
14988     "examples": [
14989       {
14990         "title": "Example usage:",
14991         "content": "curl https://{domain}/api/mail/accounts/describe -v -u {name}:{password}",
14992         "type": "json"
14993       }
14994     ],
14995     "name": "DescribeAccounts",
14996     "group": "Mail_Accounts",
14997     "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>",
14998     "version": "0.0.0",
14999     "filename": "server/api/mailAccount/index.js",
15000     "groupTitle": "Mail_Accounts"
15001   },
15002   {
15003     "type": "get",
15004     "url": "/api/mail/accounts",
15005     "title": "Gets a list of Accounts",
15006     "examples": [
15007       {
15008         "title": "Example usage:",
15009         "content": "curl https://{domain}/api/mail/accounts -v -u {name}:{password}",
15010         "type": "json"
15011       }
15012     ],
15013     "name": "GetAccounts",
15014     "group": "Mail_Accounts",
15015     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
15016     "version": "0.0.0",
15017     "filename": "server/api/mailAccount/index.js",
15018     "groupTitle": "Mail_Accounts"
15019   },
15020   {
15021     "type": "get",
15022     "url": "/api/mail/accounts/{id}/users",
15023     "title": "Gets agents from mail account",
15024     "examples": [
15025       {
15026         "title": "Example usage:",
15027         "content": "curl https://{domain}/api/mail/accounts/{id}/users -v -u {name}:{password} -X GET",
15028         "type": "json"
15029       }
15030     ],
15031     "name": "GetAgents",
15032     "group": "Mail_Accounts",
15033     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15034     "version": "0.0.0",
15035     "filename": "server/api/mailAccount/index.js",
15036     "groupTitle": "Mail_Accounts"
15037   },
15038   {
15039     "type": "get",
15040     "url": "/api/mail/accounts/{id}/in_servers",
15041     "title": "Gets account IMAP server",
15042     "examples": [
15043       {
15044         "title": "Example usage:",
15045         "content": "curl https://{domain}/api/mail/accounts/{id}/in_servers -v -u {name}:{password} -X GET",
15046         "type": "json"
15047       }
15048     ],
15049     "name": "GetImap",
15050     "group": "Mail_Accounts",
15051     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15052     "version": "0.0.0",
15053     "filename": "server/api/mailAccount/index.js",
15054     "groupTitle": "Mail_Accounts"
15055   },
15056   {
15057     "type": "get",
15058     "url": "/api/mail/accounts/{id}/out_servers",
15059     "title": "Gets account SMTP server",
15060     "examples": [
15061       {
15062         "title": "Example usage:",
15063         "content": "curl https://{domain}/api/mail/accounts/{id}/out_servers -v -u {name}:{password} -X GET",
15064         "type": "json"
15065       }
15066     ],
15067     "name": "GetSmtp",
15068     "group": "Mail_Accounts",
15069     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15070     "version": "0.0.0",
15071     "filename": "server/api/mailAccount/index.js",
15072     "groupTitle": "Mail_Accounts"
15073   },
15074   {
15075     "type": "delete",
15076     "url": "/api/mail/accounts/{id}/users",
15077     "title": "Removes agents from a mail account",
15078     "examples": [
15079       {
15080         "title": "Example usage:",
15081         "content": "curl https://{domain}/api/mail/accounts/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
15082         "type": "json"
15083       }
15084     ],
15085     "name": "RemoveAgents",
15086     "group": "Mail_Accounts",
15087     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15088     "version": "0.0.0",
15089     "filename": "server/api/mailAccount/index.js",
15090     "groupTitle": "Mail_Accounts"
15091   },
15092   {
15093     "type": "delete",
15094     "url": "/api/mail/accounts/{id}/canned_answers",
15095     "title": "Removes canned answers from account",
15096     "examples": [
15097       {
15098         "title": "Example usage:",
15099         "content": "curl https://{domain}/api/mail/accounts/{id}/canned_answers?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
15100         "type": "json"
15101       }
15102     ],
15103     "name": "RemoveAnswers",
15104     "group": "Mail_Accounts",
15105     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15106     "version": "0.0.0",
15107     "filename": "server/api/mailAccount/index.js",
15108     "groupTitle": "Mail_Accounts"
15109   },
15110   {
15111     "type": "delete",
15112     "url": "/api/mail/accounts/{id}/dispositions",
15113     "title": "Removes dispositions from account",
15114     "examples": [
15115       {
15116         "title": "Example usage:",
15117         "content": "curl https://{domain}/api/mail/accounts/{id}/dispositions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
15118         "type": "json"
15119       }
15120     ],
15121     "name": "RemoveDispositions",
15122     "group": "Mail_Accounts",
15123     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15124     "version": "0.0.0",
15125     "filename": "server/api/mailAccount/index.js",
15126     "groupTitle": "Mail_Accounts"
15127   },
15128   {
15129     "type": "delete",
15130     "url": "/api/mail/accounts/{id}/in_servers",
15131     "title": "Removes IMAP server from an account",
15132     "examples": [
15133       {
15134         "title": "Example usage:",
15135         "content": "curl https://{domain}/api/mail/accounts/{id}/in_servers -v -u {name}:{password} -X DELETE",
15136         "type": "json"
15137       }
15138     ],
15139     "name": "RemoveImmap",
15140     "group": "Mail_Accounts",
15141     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15142     "version": "0.0.0",
15143     "filename": "server/api/mailAccount/index.js",
15144     "groupTitle": "Mail_Accounts"
15145   },
15146   {
15147     "type": "delete",
15148     "url": "/api/mail/accounts/{id}/out_servers",
15149     "title": "Removes SMTP server from an account",
15150     "examples": [
15151       {
15152         "title": "Example usage:",
15153         "content": "curl https://{domain}/api/mail/accounts/{id}/out_servers -v -u {name}:{password} -X DELETE",
15154         "type": "json"
15155       }
15156     ],
15157     "name": "RemoveSmtp",
15158     "group": "Mail_Accounts",
15159     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15160     "version": "0.0.0",
15161     "filename": "server/api/mailAccount/index.js",
15162     "groupTitle": "Mail_Accounts"
15163   },
15164   {
15165     "type": "get",
15166     "url": "/api/mail/accounts/{id}",
15167     "title": "Gets a single Account",
15168     "examples": [
15169       {
15170         "title": "Example usage:",
15171         "content": "curl https://{domain}/api/mail/accounts/{id} -v -u {name}:{password}",
15172         "type": "json"
15173       }
15174     ],
15175     "name": "ShowAccounts",
15176     "group": "Mail_Accounts",
15177     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15178     "version": "0.0.0",
15179     "filename": "server/api/mailAccount/index.js",
15180     "groupTitle": "Mail_Accounts"
15181   },
15182   {
15183     "type": "post",
15184     "url": "/api/mail/accounts/{id}/canned_answers",
15185     "title": "Creates new canned answer",
15186     "examples": [
15187       {
15188         "title": "Example usage:",
15189         "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",
15190         "type": "json"
15191       }
15192     ],
15193     "name": "addAnswer",
15194     "group": "Mail_Accounts",
15195     "parameter": {
15196       "fields": {
15197         "Body": [
15198           {
15199             "group": "Body",
15200             "type": "String",
15201             "optional": false,
15202             "field": "key",
15203             "description": ""
15204           },
15205           {
15206             "group": "Body",
15207             "type": "Text",
15208             "optional": false,
15209             "field": "value",
15210             "description": ""
15211           },
15212           {
15213             "group": "Body",
15214             "type": "String",
15215             "optional": true,
15216             "field": "description",
15217             "description": ""
15218           },
15219           {
15220             "group": "Body",
15221             "type": "Virtual",
15222             "optional": true,
15223             "field": "name",
15224             "description": ""
15225           }
15226         ]
15227       }
15228     },
15229     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15230     "version": "0.0.0",
15231     "filename": "server/api/mailAccount/index.js",
15232     "groupTitle": "Mail_Accounts"
15233   },
15234   {
15235     "type": "post",
15236     "url": "/api/mail/accounts/{id}/applications",
15237     "title": "Creates new applications",
15238     "examples": [
15239       {
15240         "title": "Example usage:",
15241         "content": "curl https://{domain}/api/mail/accounts/{id}/applications -d '[{\"app\": \"queue\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
15242         "type": "json"
15243       }
15244     ],
15245     "name": "addApplications",
15246     "group": "Mail_Accounts",
15247     "parameter": {
15248       "fields": {
15249         "Body": [
15250           {
15251             "group": "Body",
15252             "type": "Integer",
15253             "optional": false,
15254             "field": "priority",
15255             "description": ""
15256           },
15257           {
15258             "group": "Body",
15259             "type": "String",
15260             "optional": false,
15261             "field": "app",
15262             "description": ""
15263           },
15264           {
15265             "group": "Body",
15266             "type": "Text",
15267             "optional": true,
15268             "field": "appdata",
15269             "description": ""
15270           },
15271           {
15272             "group": "Body",
15273             "type": "String",
15274             "optional": true,
15275             "field": "description",
15276             "description": ""
15277           },
15278           {
15279             "group": "Body",
15280             "type": "String",
15281             "optional": true,
15282             "field": "interval",
15283             "description": ""
15284           }
15285         ]
15286       }
15287     },
15288     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15289     "version": "0.0.0",
15290     "filename": "server/api/mailAccount/index.js",
15291     "groupTitle": "Mail_Accounts"
15292   },
15293   {
15294     "type": "post",
15295     "url": "/api/mail/accounts/{id}/dispositions",
15296     "title": "Creates new disposition",
15297     "examples": [
15298       {
15299         "title": "Example usage:",
15300         "content": "curl https://{domain}/api/mail/accounts/{id}/dispositions -d '{\"name\": \"vip\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
15301         "type": "json"
15302       }
15303     ],
15304     "name": "addDisposition",
15305     "group": "Mail_Accounts",
15306     "parameter": {
15307       "fields": {
15308         "Body": [
15309           {
15310             "group": "Body",
15311             "type": "String",
15312             "optional": false,
15313             "field": "name",
15314             "description": ""
15315           },
15316           {
15317             "group": "Body",
15318             "type": "String",
15319             "allowedValues": [
15320               "\"first\"",
15321               "\"second\"",
15322               "\"third\""
15323             ],
15324             "optional": false,
15325             "field": "level",
15326             "description": ""
15327           },
15328           {
15329             "group": "Body",
15330             "type": "String",
15331             "optional": true,
15332             "field": "description",
15333             "description": ""
15334           }
15335         ]
15336       }
15337     },
15338     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15339     "version": "0.0.0",
15340     "filename": "server/api/mailAccount/index.js",
15341     "groupTitle": "Mail_Accounts"
15342   },
15343   {
15344     "type": "post",
15345     "url": "/api/mail/accounts/{id}/interactions",
15346     "title": "Creates new interactions",
15347     "examples": [
15348       {
15349         "title": "Example usage:",
15350         "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",
15351         "type": "json"
15352       }
15353     ],
15354     "name": "addInteraction",
15355     "group": "Mail_Accounts",
15356     "parameter": {
15357       "fields": {
15358         "Body": [
15359           {
15360             "group": "Body",
15361             "type": "Boolean",
15362             "optional": true,
15363             "field": "closed",
15364             "description": ""
15365           },
15366           {
15367             "group": "Body",
15368             "type": "String",
15369             "optional": true,
15370             "field": "closedAt",
15371             "description": ""
15372           },
15373           {
15374             "group": "Body",
15375             "type": "String",
15376             "optional": true,
15377             "field": "disposition",
15378             "description": ""
15379           },
15380           {
15381             "group": "Body",
15382             "type": "String",
15383             "optional": true,
15384             "field": "secondDisposition",
15385             "description": ""
15386           },
15387           {
15388             "group": "Body",
15389             "type": "String",
15390             "optional": true,
15391             "field": "thirdDisposition",
15392             "description": ""
15393           },
15394           {
15395             "group": "Body",
15396             "type": "String",
15397             "optional": true,
15398             "field": "note",
15399             "description": ""
15400           },
15401           {
15402             "group": "Body",
15403             "type": "String",
15404             "optional": true,
15405             "field": "inReplyTo",
15406             "description": ""
15407           },
15408           {
15409             "group": "Body",
15410             "type": "String",
15411             "optional": true,
15412             "field": "to",
15413             "description": ""
15414           },
15415           {
15416             "group": "Body",
15417             "type": "Text",
15418             "optional": true,
15419             "field": "cc",
15420             "description": ""
15421           },
15422           {
15423             "group": "Body",
15424             "type": "Text",
15425             "optional": true,
15426             "field": "subject",
15427             "description": ""
15428           },
15429           {
15430             "group": "Body",
15431             "type": "Boolean",
15432             "optional": true,
15433             "field": "attach",
15434             "description": ""
15435           },
15436           {
15437             "group": "Body",
15438             "type": "String",
15439             "optional": true,
15440             "field": "read1stAt",
15441             "description": ""
15442           },
15443           {
15444             "group": "Body",
15445             "type": "String",
15446             "optional": true,
15447             "field": "substatus",
15448             "description": ""
15449           },
15450           {
15451             "group": "Body",
15452             "type": "String",
15453             "optional": true,
15454             "field": "substatusAt",
15455             "description": ""
15456           },
15457           {
15458             "group": "Body",
15459             "type": "String",
15460             "allowedValues": [
15461               "\"in\"",
15462               "\"out\""
15463             ],
15464             "optional": false,
15465             "field": "firstMsgDirection",
15466             "description": ""
15467           },
15468           {
15469             "group": "Body",
15470             "type": "String",
15471             "optional": true,
15472             "field": "lastMsgAt",
15473             "description": ""
15474           },
15475           {
15476             "group": "Body",
15477             "type": "String",
15478             "allowedValues": [
15479               "\"in\"",
15480               "\"out\""
15481             ],
15482             "optional": false,
15483             "field": "lastMsgDirection",
15484             "description": ""
15485           },
15486           {
15487             "group": "Body",
15488             "type": "Boolean",
15489             "optional": true,
15490             "field": "autoreplyExecuted",
15491             "description": ""
15492           }
15493         ]
15494       }
15495     },
15496     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15497     "version": "0.0.0",
15498     "filename": "server/api/mailAccount/index.js",
15499     "groupTitle": "Mail_Accounts"
15500   },
15501   {
15502     "type": "post",
15503     "url": "/api/mail/accounts",
15504     "title": "Create a mail account",
15505     "examples": [
15506       {
15507         "title": "Example usage:",
15508         "content": "curl https://{domain}/api/mail/accounts \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
15509         "type": "json"
15510       }
15511     ],
15512     "name": "create",
15513     "group": "Mail_Accounts",
15514     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15515     "version": "0.0.0",
15516     "filename": "server/api/mailAccount/index.js",
15517     "groupTitle": "Mail_Accounts"
15518   },
15519   {
15520     "type": "get",
15521     "url": "/api/mail/accounts/{id}/canned_answers",
15522     "title": "Gets account canned answers",
15523     "examples": [
15524       {
15525         "title": "Example usage:",
15526         "content": "curl https://{domain}/api/mail/accounts/{id}/canned_answers -v -u {name}:{password} -X GET",
15527         "type": "json"
15528       }
15529     ],
15530     "name": "getAnswers",
15531     "group": "Mail_Accounts",
15532     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15533     "version": "0.0.0",
15534     "filename": "server/api/mailAccount/index.js",
15535     "groupTitle": "Mail_Accounts"
15536   },
15537   {
15538     "type": "get",
15539     "url": "/api/mail/accounts/{id}/applications",
15540     "title": "Gets account applications",
15541     "examples": [
15542       {
15543         "title": "Example usage:",
15544         "content": "curl https://{domain}/api/mail/accounts/{id}/applications -v -u {name}:{password} -X GET",
15545         "type": "json"
15546       }
15547     ],
15548     "name": "getApplications",
15549     "group": "Mail_Accounts",
15550     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15551     "version": "0.0.0",
15552     "filename": "server/api/mailAccount/index.js",
15553     "groupTitle": "Mail_Accounts"
15554   },
15555   {
15556     "type": "get",
15557     "url": "/api/mail/accounts/{id}/dispositions",
15558     "title": "Gets account dispositions",
15559     "examples": [
15560       {
15561         "title": "Example usage:",
15562         "content": "curl https://{domain}/api/mail/accounts/{id}/dispositions -v -u {name}:{password} -X GET",
15563         "type": "json"
15564       }
15565     ],
15566     "name": "getDispositions",
15567     "group": "Mail_Accounts",
15568     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15569     "version": "0.0.0",
15570     "filename": "server/api/mailAccount/index.js",
15571     "groupTitle": "Mail_Accounts"
15572   },
15573   {
15574     "type": "get",
15575     "url": "/api/mail/accounts/{id}/interactions",
15576     "title": "Gets account interactions",
15577     "examples": [
15578       {
15579         "title": "Example usage:",
15580         "content": "curl https://{domain}/api/mail/accounts/{id}/interactions -v -u {name}:{password} -X GET",
15581         "type": "json"
15582       }
15583     ],
15584     "name": "getInteraction",
15585     "group": "Mail_Accounts",
15586     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15587     "version": "0.0.0",
15588     "filename": "server/api/mailAccount/index.js",
15589     "groupTitle": "Mail_Accounts"
15590   },
15591   {
15592     "type": "get",
15593     "url": "/api/mail/accounts/{id}/messages",
15594     "title": "Gets account messages",
15595     "examples": [
15596       {
15597         "title": "Example usage:",
15598         "content": "curl https://{domain}/api/mail/accounts/{id}/messages -v -u {name}:{password} -X GET",
15599         "type": "json"
15600       }
15601     ],
15602     "name": "getMessages",
15603     "group": "Mail_Accounts",
15604     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15605     "version": "0.0.0",
15606     "filename": "server/api/mailAccount/index.js",
15607     "groupTitle": "Mail_Accounts"
15608   },
15609   {
15610     "type": "post",
15611     "url": "/api/mail/accounts/{id}/send",
15612     "title": "Send new mail",
15613     "examples": [
15614       {
15615         "title": "Example usage:",
15616         "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",
15617         "type": "json"
15618       }
15619     ],
15620     "name": "sendMail",
15621     "group": "Mail_Accounts",
15622     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15623     "version": "0.0.0",
15624     "filename": "server/api/mailAccount/index.js",
15625     "groupTitle": "Mail_Accounts"
15626   },
15627   {
15628     "type": "put",
15629     "url": "/api/mail/accounts/{id}",
15630     "title": "Update an existing Account",
15631     "examples": [
15632       {
15633         "title": "Example usage:",
15634         "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",
15635         "type": "json"
15636       }
15637     ],
15638     "name": "updateAccounts",
15639     "group": "Mail_Accounts",
15640     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15641     "version": "0.0.0",
15642     "filename": "server/api/mailAccount/index.js",
15643     "groupTitle": "Mail_Accounts"
15644   },
15645   {
15646     "type": "get",
15647     "url": "/api/mail/accounts/{id}/verify",
15648     "title": "Verify mail account",
15649     "examples": [
15650       {
15651         "title": "Example usage:",
15652         "content": "curl https://{domain}/api/mail/accounts/{id}/verify -v -u {name}:{password} -X GET",
15653         "type": "json"
15654       }
15655     ],
15656     "name": "verifySmtp",
15657     "group": "Mail_Accounts",
15658     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15659     "version": "0.0.0",
15660     "filename": "server/api/mailAccount/index.js",
15661     "groupTitle": "Mail_Accounts"
15662   },
15663   {
15664     "type": "delete",
15665     "url": "/api/mail/applications/{id}",
15666     "title": "Deletes a Application",
15667     "examples": [
15668       {
15669         "title": "Example usage:",
15670         "content": "curl https://{domain}/api/mail/applications/{id} -v -u {name}:{password} -X DELETE",
15671         "type": "json"
15672       }
15673     ],
15674     "name": "DeleteApplications",
15675     "group": "Mail_Applications",
15676     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15677     "version": "0.0.0",
15678     "filename": "server/api/mailApplication/index.js",
15679     "groupTitle": "Mail_Applications"
15680   },
15681   {
15682     "type": "get",
15683     "url": "/api/mail/applications/{id}",
15684     "title": "Gets a single Application",
15685     "examples": [
15686       {
15687         "title": "Example usage:",
15688         "content": "curl https://{domain}/api/mail/applications/{id} -v -u {name}:{password}",
15689         "type": "json"
15690       }
15691     ],
15692     "name": "ShowApplications",
15693     "group": "Mail_Applications",
15694     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15695     "version": "0.0.0",
15696     "filename": "server/api/mailApplication/index.js",
15697     "groupTitle": "Mail_Applications"
15698   },
15699   {
15700     "type": "put",
15701     "url": "/api/mail/applications/{id}",
15702     "title": "Update an existing Application",
15703     "examples": [
15704       {
15705         "title": "Example usage:",
15706         "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",
15707         "type": "json"
15708       }
15709     ],
15710     "name": "updateApplications",
15711     "group": "Mail_Applications",
15712     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15713     "version": "0.0.0",
15714     "filename": "server/api/mailApplication/index.js",
15715     "groupTitle": "Mail_Applications"
15716   },
15717   {
15718     "type": "post",
15719     "url": "/api/mail/interactions/{id}/tags",
15720     "title": "Add tags to the interaction",
15721     "examples": [
15722       {
15723         "title": "Example usage:",
15724         "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",
15725         "type": "json"
15726       }
15727     ],
15728     "name": "AddTags",
15729     "group": "Mail_Interactions",
15730     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15731     "version": "0.0.0",
15732     "filename": "server/api/mailInteraction/index.js",
15733     "groupTitle": "Mail_Interactions"
15734   },
15735   {
15736     "type": "post",
15737     "url": "/api/mail/interactions",
15738     "title": "Creates a new Interaction",
15739     "examples": [
15740       {
15741         "title": "Example usage:",
15742         "content": "curl https://{domain}/api/mail/interactions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
15743         "type": "json"
15744       }
15745     ],
15746     "name": "CreateInteractions",
15747     "group": "Mail_Interactions",
15748     "parameter": {
15749       "fields": {
15750         "Body": [
15751           {
15752             "group": "Body",
15753             "type": "Boolean",
15754             "optional": true,
15755             "field": "closed",
15756             "description": ""
15757           },
15758           {
15759             "group": "Body",
15760             "type": "String",
15761             "optional": true,
15762             "field": "closedAt",
15763             "description": ""
15764           },
15765           {
15766             "group": "Body",
15767             "type": "String",
15768             "optional": true,
15769             "field": "disposition",
15770             "description": ""
15771           },
15772           {
15773             "group": "Body",
15774             "type": "String",
15775             "optional": true,
15776             "field": "secondDisposition",
15777             "description": ""
15778           },
15779           {
15780             "group": "Body",
15781             "type": "String",
15782             "optional": true,
15783             "field": "thirdDisposition",
15784             "description": ""
15785           },
15786           {
15787             "group": "Body",
15788             "type": "String",
15789             "optional": true,
15790             "field": "note",
15791             "description": ""
15792           },
15793           {
15794             "group": "Body",
15795             "type": "String",
15796             "optional": true,
15797             "field": "inReplyTo",
15798             "description": ""
15799           },
15800           {
15801             "group": "Body",
15802             "type": "String",
15803             "optional": true,
15804             "field": "to",
15805             "description": ""
15806           },
15807           {
15808             "group": "Body",
15809             "type": "Text",
15810             "optional": true,
15811             "field": "cc",
15812             "description": ""
15813           },
15814           {
15815             "group": "Body",
15816             "type": "Text",
15817             "optional": true,
15818             "field": "subject",
15819             "description": ""
15820           },
15821           {
15822             "group": "Body",
15823             "type": "Boolean",
15824             "optional": true,
15825             "field": "attach",
15826             "description": ""
15827           },
15828           {
15829             "group": "Body",
15830             "type": "String",
15831             "optional": true,
15832             "field": "read1stAt",
15833             "description": ""
15834           },
15835           {
15836             "group": "Body",
15837             "type": "String",
15838             "optional": true,
15839             "field": "substatus",
15840             "description": ""
15841           },
15842           {
15843             "group": "Body",
15844             "type": "String",
15845             "optional": true,
15846             "field": "substatusAt",
15847             "description": ""
15848           },
15849           {
15850             "group": "Body",
15851             "type": "String",
15852             "allowedValues": [
15853               "\"in\"",
15854               "\"out\""
15855             ],
15856             "optional": false,
15857             "field": "firstMsgDirection",
15858             "description": ""
15859           },
15860           {
15861             "group": "Body",
15862             "type": "String",
15863             "optional": true,
15864             "field": "lastMsgAt",
15865             "description": ""
15866           },
15867           {
15868             "group": "Body",
15869             "type": "String",
15870             "allowedValues": [
15871               "\"in\"",
15872               "\"out\""
15873             ],
15874             "optional": false,
15875             "field": "lastMsgDirection",
15876             "description": ""
15877           },
15878           {
15879             "group": "Body",
15880             "type": "Boolean",
15881             "optional": true,
15882             "field": "autoreplyExecuted",
15883             "description": ""
15884           }
15885         ]
15886       }
15887     },
15888     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15889     "version": "0.0.0",
15890     "filename": "server/api/mailInteraction/index.js",
15891     "groupTitle": "Mail_Interactions"
15892   },
15893   {
15894     "type": "delete",
15895     "url": "/api/mail/interactions/{id}",
15896     "title": "Deletes a Interaction",
15897     "examples": [
15898       {
15899         "title": "Example usage:",
15900         "content": "curl https://{domain}/api/mail/interactions/{id} -v -u {name}:{password} -X DELETE",
15901         "type": "json"
15902       }
15903     ],
15904     "name": "DeleteInteractions",
15905     "group": "Mail_Interactions",
15906     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15907     "version": "0.0.0",
15908     "filename": "server/api/mailInteraction/index.js",
15909     "groupTitle": "Mail_Interactions"
15910   },
15911   {
15912     "type": "get",
15913     "url": "/api/mail/interactions/describe",
15914     "title": "Gets table info about Interactions",
15915     "examples": [
15916       {
15917         "title": "Example usage:",
15918         "content": "curl https://{domain}/api/mail/interactions/describe -v -u {name}:{password}",
15919         "type": "json"
15920       }
15921     ],
15922     "name": "DescribeInteractions",
15923     "group": "Mail_Interactions",
15924     "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>",
15925     "version": "0.0.0",
15926     "filename": "server/api/mailInteraction/index.js",
15927     "groupTitle": "Mail_Interactions"
15928   },
15929   {
15930     "type": "get",
15931     "url": "/api/mail/interactions",
15932     "title": "Gets a list of Interactions",
15933     "examples": [
15934       {
15935         "title": "Example usage:",
15936         "content": "curl https://{domain}/api/mail/interactions -v -u {name}:{password}",
15937         "type": "json"
15938       }
15939     ],
15940     "name": "GetInteractions",
15941     "group": "Mail_Interactions",
15942     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
15943     "version": "0.0.0",
15944     "filename": "server/api/mailInteraction/index.js",
15945     "groupTitle": "Mail_Interactions"
15946   },
15947   {
15948     "type": "delete",
15949     "url": "/api/mail/interactions/{id}/tags",
15950     "title": "Removes tags from interaction",
15951     "examples": [
15952       {
15953         "title": "Example usage:",
15954         "content": "curl https://{domain}/api/mail/interactions/{id}/tags?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
15955         "type": "json"
15956       }
15957     ],
15958     "name": "RemoveTags",
15959     "group": "Mail_Interactions",
15960     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15961     "version": "0.0.0",
15962     "filename": "server/api/mailInteraction/index.js",
15963     "groupTitle": "Mail_Interactions"
15964   },
15965   {
15966     "type": "get",
15967     "url": "/api/mail/interactions/{id}",
15968     "title": "Gets a single Interaction",
15969     "examples": [
15970       {
15971         "title": "Example usage:",
15972         "content": "curl https://{domain}/api/mail/interactions/{id} -v -u {name}:{password}",
15973         "type": "json"
15974       }
15975     ],
15976     "name": "ShowInteractions",
15977     "group": "Mail_Interactions",
15978     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15979     "version": "0.0.0",
15980     "filename": "server/api/mailInteraction/index.js",
15981     "groupTitle": "Mail_Interactions"
15982   },
15983   {
15984     "type": "post",
15985     "url": "/api/mail/interactions/{id}/messages",
15986     "title": "Creates new message",
15987     "examples": [
15988       {
15989         "title": "Example usage:",
15990         "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",
15991         "type": "json"
15992       }
15993     ],
15994     "name": "addMessage",
15995     "group": "Mail_Interactions",
15996     "parameter": {
15997       "fields": {
15998         "Body": [
15999           {
16000             "group": "Body",
16001             "type": "Text",
16002             "optional": false,
16003             "field": "body",
16004             "description": ""
16005           },
16006           {
16007             "group": "Body",
16008             "type": "Text",
16009             "optional": true,
16010             "field": "plainBody",
16011             "description": ""
16012           },
16013           {
16014             "group": "Body",
16015             "type": "Boolean",
16016             "optional": true,
16017             "field": "read",
16018             "description": ""
16019           },
16020           {
16021             "group": "Body",
16022             "type": "String",
16023             "allowedValues": [
16024               "\"in\"",
16025               "\"out\""
16026             ],
16027             "optional": false,
16028             "field": "direction",
16029             "description": ""
16030           },
16031           {
16032             "group": "Body",
16033             "type": "String",
16034             "optional": true,
16035             "field": "messageId",
16036             "description": ""
16037           },
16038           {
16039             "group": "Body",
16040             "type": "String",
16041             "optional": true,
16042             "field": "from",
16043             "description": ""
16044           },
16045           {
16046             "group": "Body",
16047             "type": "Text",
16048             "optional": true,
16049             "field": "to",
16050             "description": ""
16051           },
16052           {
16053             "group": "Body",
16054             "type": "Text",
16055             "optional": true,
16056             "field": "cc",
16057             "description": ""
16058           },
16059           {
16060             "group": "Body",
16061             "type": "Text",
16062             "optional": true,
16063             "field": "bcc",
16064             "description": ""
16065           },
16066           {
16067             "group": "Body",
16068             "type": "Text",
16069             "optional": true,
16070             "field": "subject",
16071             "description": ""
16072           },
16073           {
16074             "group": "Body",
16075             "type": "String",
16076             "optional": true,
16077             "field": "sentAt",
16078             "description": ""
16079           },
16080           {
16081             "group": "Body",
16082             "type": "Integer",
16083             "optional": true,
16084             "field": "attach",
16085             "description": ""
16086           },
16087           {
16088             "group": "Body",
16089             "type": "Boolean",
16090             "optional": true,
16091             "field": "secret",
16092             "description": ""
16093           },
16094           {
16095             "group": "Body",
16096             "type": "String",
16097             "optional": true,
16098             "field": "readAt",
16099             "description": ""
16100           },
16101           {
16102             "group": "Body",
16103             "type": "Text",
16104             "optional": true,
16105             "field": "originTo",
16106             "description": ""
16107           },
16108           {
16109             "group": "Body",
16110             "type": "Text",
16111             "optional": true,
16112             "field": "originCc",
16113             "description": ""
16114           },
16115           {
16116             "group": "Body",
16117             "type": "String",
16118             "allowedValues": [
16119               "\"Email\"",
16120               "\"Chat\""
16121             ],
16122             "optional": false,
16123             "field": "originChannel",
16124             "description": ""
16125           }
16126         ]
16127       }
16128     },
16129     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16130     "version": "0.0.0",
16131     "filename": "server/api/mailInteraction/index.js",
16132     "groupTitle": "Mail_Interactions"
16133   },
16134   {
16135     "type": "get",
16136     "url": "/api/mail/interactions/{id}/download",
16137     "title": "Gets interaction",
16138     "examples": [
16139       {
16140         "title": "Example usage:",
16141         "content": "curl https://{domain}/api/mail/interactions/{id}/download -v -u {name}:{password} -X GET",
16142         "type": "json"
16143       }
16144     ],
16145     "name": "download",
16146     "group": "Mail_Interactions",
16147     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16148     "version": "0.0.0",
16149     "filename": "server/api/mailInteraction/index.js",
16150     "groupTitle": "Mail_Interactions"
16151   },
16152   {
16153     "type": "get",
16154     "url": "/api/mail/interactions/{id}/messages",
16155     "title": "Gets interaction messages",
16156     "examples": [
16157       {
16158         "title": "Example usage:",
16159         "content": "curl https://{domain}/api/mail/interactions/{id}/messages -v -u {name}:{password} -X GET",
16160         "type": "json"
16161       }
16162     ],
16163     "name": "getMessages",
16164     "group": "Mail_Interactions",
16165     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16166     "version": "0.0.0",
16167     "filename": "server/api/mailInteraction/index.js",
16168     "groupTitle": "Mail_Interactions"
16169   },
16170   {
16171     "type": "put",
16172     "url": "/api/mail/interactions/{id}",
16173     "title": "Update an existing Interaction",
16174     "examples": [
16175       {
16176         "title": "Example usage:",
16177         "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",
16178         "type": "json"
16179       }
16180     ],
16181     "name": "updateInteractions",
16182     "group": "Mail_Interactions",
16183     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16184     "version": "0.0.0",
16185     "filename": "server/api/mailInteraction/index.js",
16186     "groupTitle": "Mail_Interactions"
16187   },
16188   {
16189     "type": "delete",
16190     "url": "/api/mail/messages/{id}",
16191     "title": "Deletes a Message",
16192     "examples": [
16193       {
16194         "title": "Example usage:",
16195         "content": "curl https://{domain}/api/mail/messages/{id} -v -u {name}:{password} -X DELETE",
16196         "type": "json"
16197       }
16198     ],
16199     "name": "DeleteMessages",
16200     "group": "Mail_Messages",
16201     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16202     "version": "0.0.0",
16203     "filename": "server/api/mailMessage/index.js",
16204     "groupTitle": "Mail_Messages"
16205   },
16206   {
16207     "type": "get",
16208     "url": "/api/mail/messages/describe",
16209     "title": "Gets table info about Messages",
16210     "examples": [
16211       {
16212         "title": "Example usage:",
16213         "content": "curl https://{domain}/api/mail/messages/describe -v -u {name}:{password}",
16214         "type": "json"
16215       }
16216     ],
16217     "name": "DescribeMessages",
16218     "group": "Mail_Messages",
16219     "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>",
16220     "version": "0.0.0",
16221     "filename": "server/api/mailMessage/index.js",
16222     "groupTitle": "Mail_Messages"
16223   },
16224   {
16225     "type": "get",
16226     "url": "/api/mail/messages",
16227     "title": "Gets a list of Messages",
16228     "examples": [
16229       {
16230         "title": "Example usage:",
16231         "content": "curl https://{domain}/api/mail/messages -v -u {name}:{password}",
16232         "type": "json"
16233       }
16234     ],
16235     "name": "GetMessages",
16236     "group": "Mail_Messages",
16237     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
16238     "version": "0.0.0",
16239     "filename": "server/api/mailMessage/index.js",
16240     "groupTitle": "Mail_Messages"
16241   },
16242   {
16243     "type": "get",
16244     "url": "/api/mail/messages/{id}",
16245     "title": "Gets a single Message",
16246     "examples": [
16247       {
16248         "title": "Example usage:",
16249         "content": "curl https://{domain}/api/mail/messages/{id} -v -u {name}:{password}",
16250         "type": "json"
16251       }
16252     ],
16253     "name": "ShowMessages",
16254     "group": "Mail_Messages",
16255     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16256     "version": "0.0.0",
16257     "filename": "server/api/mailMessage/index.js",
16258     "groupTitle": "Mail_Messages"
16259   },
16260   {
16261     "type": "put",
16262     "url": "/api/mail/messages/{id}/accept",
16263     "title": "Accepts message",
16264     "examples": [
16265       {
16266         "title": "Example usage:",
16267         "content": "curl https://{domain}/api/mail/messages/{id}/accept \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
16268         "type": "json"
16269       }
16270     ],
16271     "name": "acceptMessage",
16272     "group": "Mail_Messages",
16273     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16274     "version": "0.0.0",
16275     "filename": "server/api/mailMessage/index.js",
16276     "groupTitle": "Mail_Messages"
16277   },
16278   {
16279     "type": "post",
16280     "url": "/api/mail/messages",
16281     "title": "Create a message",
16282     "examples": [
16283       {
16284         "title": "Example usage:",
16285         "content": "curl https://{domain}/api/mail/messages \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
16286         "type": "json"
16287       }
16288     ],
16289     "name": "createMessage",
16290     "group": "Mail_Messages",
16291     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16292     "version": "0.0.0",
16293     "filename": "server/api/mailMessage/index.js",
16294     "groupTitle": "Mail_Messages"
16295   },
16296   {
16297     "type": "get",
16298     "url": "/api/mail/messages/{id}/download",
16299     "title": "Gets message",
16300     "examples": [
16301       {
16302         "title": "Example usage:",
16303         "content": "curl https://{domain}/api/mail/messages/{id}/download -v -u {name}:{password} -X GET",
16304         "type": "json"
16305       }
16306     ],
16307     "name": "download",
16308     "group": "Mail_Messages",
16309     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16310     "version": "0.0.0",
16311     "filename": "server/api/mailMessage/index.js",
16312     "groupTitle": "Mail_Messages"
16313   },
16314   {
16315     "type": "put",
16316     "url": "/api/mail/messages/{id}/reject",
16317     "title": "Rejects message",
16318     "examples": [
16319       {
16320         "title": "Example usage:",
16321         "content": "curl https://{domain}/api/mail/messages/{id}/reject \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
16322         "type": "json"
16323       }
16324     ],
16325     "name": "rejectMessage",
16326     "group": "Mail_Messages",
16327     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16328     "version": "0.0.0",
16329     "filename": "server/api/mailMessage/index.js",
16330     "groupTitle": "Mail_Messages"
16331   },
16332   {
16333     "type": "put",
16334     "url": "/api/mail/messages/{id}",
16335     "title": "Update an existing Message",
16336     "examples": [
16337       {
16338         "title": "Example usage:",
16339         "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",
16340         "type": "json"
16341       }
16342     ],
16343     "name": "updateMessages",
16344     "group": "Mail_Messages",
16345     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16346     "version": "0.0.0",
16347     "filename": "server/api/mailMessage/index.js",
16348     "groupTitle": "Mail_Messages"
16349   },
16350   {
16351     "type": "post",
16352     "url": "/api/mail/reports/queue",
16353     "title": "Creates a new Mail Queue Report",
16354     "examples": [
16355       {
16356         "title": "Example usage:",
16357         "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",
16358         "type": "json"
16359       }
16360     ],
16361     "name": "CreateMail_Queue_Reports",
16362     "group": "Mail_Queue_Reports",
16363     "parameter": {
16364       "fields": {
16365         "Body": [
16366           {
16367             "group": "Body",
16368             "type": "String",
16369             "optional": false,
16370             "field": "uniqueid",
16371             "description": ""
16372           },
16373           {
16374             "group": "Body",
16375             "type": "String",
16376             "optional": true,
16377             "field": "from",
16378             "description": ""
16379           },
16380           {
16381             "group": "Body",
16382             "type": "String",
16383             "optional": true,
16384             "field": "joinAt",
16385             "description": ""
16386           },
16387           {
16388             "group": "Body",
16389             "type": "String",
16390             "optional": true,
16391             "field": "leaveAt",
16392             "description": ""
16393           },
16394           {
16395             "group": "Body",
16396             "type": "String",
16397             "optional": true,
16398             "field": "acceptAt",
16399             "description": ""
16400           },
16401           {
16402             "group": "Body",
16403             "type": "String",
16404             "optional": true,
16405             "field": "exitAt",
16406             "description": ""
16407           },
16408           {
16409             "group": "Body",
16410             "type": "String",
16411             "optional": true,
16412             "field": "reason",
16413             "description": ""
16414           }
16415         ]
16416       }
16417     },
16418     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16419     "version": "0.0.0",
16420     "filename": "server/api/mailQueueReport/index.js",
16421     "groupTitle": "Mail_Queue_Reports"
16422   },
16423   {
16424     "type": "delete",
16425     "url": "/api/mail/reports/queue/{id}",
16426     "title": "Deletes a Mail Queue Report",
16427     "examples": [
16428       {
16429         "title": "Example usage:",
16430         "content": "curl https://{domain}/api/mail/reports/queue/{id} -v -u {name}:{password} -X DELETE",
16431         "type": "json"
16432       }
16433     ],
16434     "name": "DeleteMail_Queue_Reports",
16435     "group": "Mail_Queue_Reports",
16436     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16437     "version": "0.0.0",
16438     "filename": "server/api/mailQueueReport/index.js",
16439     "groupTitle": "Mail_Queue_Reports"
16440   },
16441   {
16442     "type": "get",
16443     "url": "/api/mail/reports/queue/describe",
16444     "title": "Gets table info about Mail Queue Reports",
16445     "examples": [
16446       {
16447         "title": "Example usage:",
16448         "content": "curl https://{domain}/api/mail/reports/queue/describe -v -u {name}:{password}",
16449         "type": "json"
16450       }
16451     ],
16452     "name": "DescribeMail_Queue_Reports",
16453     "group": "Mail_Queue_Reports",
16454     "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>",
16455     "version": "0.0.0",
16456     "filename": "server/api/mailQueueReport/index.js",
16457     "groupTitle": "Mail_Queue_Reports"
16458   },
16459   {
16460     "type": "get",
16461     "url": "/api/mail/reports/queue",
16462     "title": "Gets a list of Mail Queue Reports",
16463     "examples": [
16464       {
16465         "title": "Example usage:",
16466         "content": "curl https://{domain}/api/mail/reports/queue -v -u {name}:{password}",
16467         "type": "json"
16468       }
16469     ],
16470     "name": "GetMail_Queue_Reports",
16471     "group": "Mail_Queue_Reports",
16472     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
16473     "version": "0.0.0",
16474     "filename": "server/api/mailQueueReport/index.js",
16475     "groupTitle": "Mail_Queue_Reports"
16476   },
16477   {
16478     "type": "get",
16479     "url": "/api/mail/reports/queue/{id}",
16480     "title": "Gets a single Mail Queue Report",
16481     "examples": [
16482       {
16483         "title": "Example usage:",
16484         "content": "curl https://{domain}/api/mail/reports/queue/{id} -v -u {name}:{password}",
16485         "type": "json"
16486       }
16487     ],
16488     "name": "ShowMail_Queue_Reports",
16489     "group": "Mail_Queue_Reports",
16490     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16491     "version": "0.0.0",
16492     "filename": "server/api/mailQueueReport/index.js",
16493     "groupTitle": "Mail_Queue_Reports"
16494   },
16495   {
16496     "type": "put",
16497     "url": "/api/mail/reports/queue/{id}",
16498     "title": "Update an existing Mail Queue Report",
16499     "examples": [
16500       {
16501         "title": "Example usage:",
16502         "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",
16503         "type": "json"
16504       }
16505     ],
16506     "name": "updateMail_Queue_Reports",
16507     "group": "Mail_Queue_Reports",
16508     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16509     "version": "0.0.0",
16510     "filename": "server/api/mailQueueReport/index.js",
16511     "groupTitle": "Mail_Queue_Reports"
16512   },
16513   {
16514     "type": "post",
16515     "url": "/api/mail/queues/{id}/users",
16516     "title": "Add agents to a queue",
16517     "examples": [
16518       {
16519         "title": "Example usage:",
16520         "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",
16521         "type": "json"
16522       }
16523     ],
16524     "name": "AddAgents",
16525     "group": "Mail_Queues",
16526     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16527     "version": "0.0.0",
16528     "filename": "server/api/mailQueue/index.js",
16529     "groupTitle": "Mail_Queues"
16530   },
16531   {
16532     "type": "post",
16533     "url": "/api/mail/queues/{id}/teams",
16534     "title": "Add teams to a queue",
16535     "examples": [
16536       {
16537         "title": "Example usage:",
16538         "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",
16539         "type": "json"
16540       }
16541     ],
16542     "name": "AddTeams",
16543     "group": "Mail_Queues",
16544     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16545     "version": "0.0.0",
16546     "filename": "server/api/mailQueue/index.js",
16547     "groupTitle": "Mail_Queues"
16548   },
16549   {
16550     "type": "post",
16551     "url": "/api/mail/queues",
16552     "title": "Creates a new Queue",
16553     "examples": [
16554       {
16555         "title": "Example usage:",
16556         "content": "curl https://{domain}/api/mail/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
16557         "type": "json"
16558       }
16559     ],
16560     "name": "CreateQueues",
16561     "group": "Mail_Queues",
16562     "parameter": {
16563       "fields": {
16564         "Body": [
16565           {
16566             "group": "Body",
16567             "type": "String",
16568             "optional": true,
16569             "field": "name",
16570             "description": ""
16571           },
16572           {
16573             "group": "Body",
16574             "type": "String",
16575             "optional": true,
16576             "field": "description",
16577             "description": ""
16578           },
16579           {
16580             "group": "Body",
16581             "type": "Integer",
16582             "optional": true,
16583             "field": "timeout",
16584             "description": ""
16585           },
16586           {
16587             "group": "Body",
16588             "type": "String",
16589             "allowedValues": [
16590               "\"rrmemory\"",
16591               "\"beepall\"",
16592               "\"roundrobin\""
16593             ],
16594             "optional": true,
16595             "field": "strategy",
16596             "description": ""
16597           }
16598         ]
16599       }
16600     },
16601     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16602     "version": "0.0.0",
16603     "filename": "server/api/mailQueue/index.js",
16604     "groupTitle": "Mail_Queues"
16605   },
16606   {
16607     "type": "delete",
16608     "url": "/api/mail/queues/{id}",
16609     "title": "Deletes a Queue",
16610     "examples": [
16611       {
16612         "title": "Example usage:",
16613         "content": "curl https://{domain}/api/mail/queues/{id} -v -u {name}:{password} -X DELETE",
16614         "type": "json"
16615       }
16616     ],
16617     "name": "DeleteQueues",
16618     "group": "Mail_Queues",
16619     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16620     "version": "0.0.0",
16621     "filename": "server/api/mailQueue/index.js",
16622     "groupTitle": "Mail_Queues"
16623   },
16624   {
16625     "type": "get",
16626     "url": "/api/mail/queues/describe",
16627     "title": "Gets table info about Queues",
16628     "examples": [
16629       {
16630         "title": "Example usage:",
16631         "content": "curl https://{domain}/api/mail/queues/describe -v -u {name}:{password}",
16632         "type": "json"
16633       }
16634     ],
16635     "name": "DescribeQueues",
16636     "group": "Mail_Queues",
16637     "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>",
16638     "version": "0.0.0",
16639     "filename": "server/api/mailQueue/index.js",
16640     "groupTitle": "Mail_Queues"
16641   },
16642   {
16643     "type": "get",
16644     "url": "/api/mail/queues/{id}/users",
16645     "title": "Gets queue agents",
16646     "examples": [
16647       {
16648         "title": "Example usage:",
16649         "content": "curl https://{domain}/api/mail/queues/{id}/users -v -u {name}:{password} -X POST",
16650         "type": "json"
16651       }
16652     ],
16653     "name": "GetAgents",
16654     "group": "Mail_Queues",
16655     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16656     "version": "0.0.0",
16657     "filename": "server/api/mailQueue/index.js",
16658     "groupTitle": "Mail_Queues"
16659   },
16660   {
16661     "type": "get",
16662     "url": "/api/mail/queues/{id}/members",
16663     "title": "GetMembers",
16664     "examples": [
16665       {
16666         "title": "Example usage:",
16667         "content": "curl https://{domain}/api/mail/queues/{id}/members  -v -u {name}:{password}",
16668         "type": "json"
16669       }
16670     ],
16671     "name": "GetMembers",
16672     "group": "Mail_Queues",
16673     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16674     "version": "0.0.0",
16675     "filename": "server/api/mailQueue/index.js",
16676     "groupTitle": "Mail_Queues"
16677   },
16678   {
16679     "type": "get",
16680     "url": "/api/mail/queues",
16681     "title": "Gets a list of Queues",
16682     "examples": [
16683       {
16684         "title": "Example usage:",
16685         "content": "curl https://{domain}/api/mail/queues -v -u {name}:{password}",
16686         "type": "json"
16687       }
16688     ],
16689     "name": "GetQueues",
16690     "group": "Mail_Queues",
16691     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/mail/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>",
16692     "version": "0.0.0",
16693     "filename": "server/api/mailQueue/index.js",
16694     "groupTitle": "Mail_Queues"
16695   },
16696   {
16697     "type": "get",
16698     "url": "/api/mail/queues/{id}/teams",
16699     "title": "Gets queues list",
16700     "examples": [
16701       {
16702         "title": "Example usage:",
16703         "content": "curl https://{domain}/api/mail/queues/{id}/teams -v -u {name}:{password}",
16704         "type": "json"
16705       }
16706     ],
16707     "name": "GetTeams",
16708     "group": "Mail_Queues",
16709     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16710     "version": "0.0.0",
16711     "filename": "server/api/mailQueue/index.js",
16712     "groupTitle": "Mail_Queues"
16713   },
16714   {
16715     "type": "delete",
16716     "url": "/api/mail/queues/{id}/users",
16717     "title": "Removes agents from a queue",
16718     "examples": [
16719       {
16720         "title": "Example usage:",
16721         "content": "curl https://{domain}/api/mail/queues/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
16722         "type": "json"
16723       }
16724     ],
16725     "name": "RemoveAgents",
16726     "group": "Mail_Queues",
16727     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16728     "version": "0.0.0",
16729     "filename": "server/api/mailQueue/index.js",
16730     "groupTitle": "Mail_Queues"
16731   },
16732   {
16733     "type": "get",
16734     "url": "/api/mail/queues/{id}",
16735     "title": "Gets a single Queue",
16736     "examples": [
16737       {
16738         "title": "Example usage:",
16739         "content": "curl https://{domain}/api/mail/queues/{id} -v -u {name}:{password}",
16740         "type": "json"
16741       }
16742     ],
16743     "name": "ShowQueues",
16744     "group": "Mail_Queues",
16745     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16746     "version": "0.0.0",
16747     "filename": "server/api/mailQueue/index.js",
16748     "groupTitle": "Mail_Queues"
16749   },
16750   {
16751     "type": "put",
16752     "url": "/api/mail/queues/{id}",
16753     "title": "Update an existing Queue",
16754     "examples": [
16755       {
16756         "title": "Example usage:",
16757         "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",
16758         "type": "json"
16759       }
16760     ],
16761     "name": "updateQueues",
16762     "group": "Mail_Queues",
16763     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16764     "version": "0.0.0",
16765     "filename": "server/api/mailQueue/index.js",
16766     "groupTitle": "Mail_Queues"
16767   },
16768   {
16769     "type": "post",
16770     "url": "/api/mail/out_servers",
16771     "title": "Creates a new SMTP",
16772     "examples": [
16773       {
16774         "title": "Example usage:",
16775         "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",
16776         "type": "json"
16777       }
16778     ],
16779     "name": "CreateSMTPs",
16780     "group": "Mail_SMTP",
16781     "parameter": {
16782       "fields": {
16783         "Body": [
16784           {
16785             "group": "Body",
16786             "type": "String",
16787             "optional": true,
16788             "field": "description",
16789             "description": ""
16790           },
16791           {
16792             "group": "Body",
16793             "type": "String",
16794             "optional": true,
16795             "field": "host",
16796             "description": ""
16797           },
16798           {
16799             "group": "Body",
16800             "type": "String",
16801             "optional": true,
16802             "field": "user",
16803             "description": ""
16804           },
16805           {
16806             "group": "Body",
16807             "type": "String",
16808             "optional": true,
16809             "field": "pass",
16810             "description": ""
16811           },
16812           {
16813             "group": "Body",
16814             "type": "Integer",
16815             "optional": true,
16816             "field": "port",
16817             "description": ""
16818           },
16819           {
16820             "group": "Body",
16821             "type": "Boolean",
16822             "optional": true,
16823             "field": "secure",
16824             "description": ""
16825           },
16826           {
16827             "group": "Body",
16828             "type": "String",
16829             "optional": true,
16830             "field": "service",
16831             "description": ""
16832           },
16833           {
16834             "group": "Body",
16835             "type": "Boolean",
16836             "optional": true,
16837             "field": "authentication",
16838             "description": ""
16839           }
16840         ]
16841       }
16842     },
16843     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16844     "version": "0.0.0",
16845     "filename": "server/api/mailServerOut/index.js",
16846     "groupTitle": "Mail_SMTP"
16847   },
16848   {
16849     "type": "delete",
16850     "url": "/api/mail/out_servers/{id}",
16851     "title": "Deletes a SMTP",
16852     "examples": [
16853       {
16854         "title": "Example usage:",
16855         "content": "curl https://{domain}/api/mail/out_servers/{id} -v -u {name}:{password} -X DELETE",
16856         "type": "json"
16857       }
16858     ],
16859     "name": "DeleteSMTPs",
16860     "group": "Mail_SMTP",
16861     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16862     "version": "0.0.0",
16863     "filename": "server/api/mailServerOut/index.js",
16864     "groupTitle": "Mail_SMTP"
16865   },
16866   {
16867     "type": "get",
16868     "url": "/api/mail/out_servers",
16869     "title": "Gets a list of SMTPs",
16870     "examples": [
16871       {
16872         "title": "Example usage:",
16873         "content": "curl https://{domain}/api/mail/out_servers -v -u {name}:{password}",
16874         "type": "json"
16875       }
16876     ],
16877     "name": "GetSMTPs",
16878     "group": "Mail_SMTP",
16879     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
16880     "version": "0.0.0",
16881     "filename": "server/api/mailServerOut/index.js",
16882     "groupTitle": "Mail_SMTP"
16883   },
16884   {
16885     "type": "get",
16886     "url": "/api/mail/out_servers/{id}",
16887     "title": "Gets a single SMTP",
16888     "examples": [
16889       {
16890         "title": "Example usage:",
16891         "content": "curl https://{domain}/api/mail/out_servers/{id} -v -u {name}:{password}",
16892         "type": "json"
16893       }
16894     ],
16895     "name": "ShowSMTPs",
16896     "group": "Mail_SMTP",
16897     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16898     "version": "0.0.0",
16899     "filename": "server/api/mailServerOut/index.js",
16900     "groupTitle": "Mail_SMTP"
16901   },
16902   {
16903     "type": "put",
16904     "url": "/api/mail/out_servers/{id}",
16905     "title": "Update an existing SMTP",
16906     "examples": [
16907       {
16908         "title": "Example usage:",
16909         "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",
16910         "type": "json"
16911       }
16912     ],
16913     "name": "updateSMTPs",
16914     "group": "Mail_SMTP",
16915     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16916     "version": "0.0.0",
16917     "filename": "server/api/mailServerOut/index.js",
16918     "groupTitle": "Mail_SMTP"
16919   },
16920   {
16921     "type": "post",
16922     "url": "/api/mail/substatuses",
16923     "title": "Creates a new Queue",
16924     "examples": [
16925       {
16926         "title": "Example usage:",
16927         "content": "curl https://{domain}/api/mail/substatuses -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
16928         "type": "json"
16929       }
16930     ],
16931     "name": "CreateSubstatuses",
16932     "group": "Mail_Substatuses",
16933     "parameter": {
16934       "fields": {
16935         "Body": [
16936           {
16937             "group": "Body",
16938             "type": "String",
16939             "optional": false,
16940             "field": "name",
16941             "description": ""
16942           },
16943           {
16944             "group": "Body",
16945             "type": "String",
16946             "optional": true,
16947             "field": "description",
16948             "description": ""
16949           }
16950         ]
16951       }
16952     },
16953     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16954     "version": "0.0.0",
16955     "filename": "server/api/mailSubstatus/index.js",
16956     "groupTitle": "Mail_Substatuses"
16957   },
16958   {
16959     "type": "delete",
16960     "url": "/api/mail/substatuses/{id}",
16961     "title": "Deletes a Queue",
16962     "examples": [
16963       {
16964         "title": "Example usage:",
16965         "content": "curl https://{domain}/api/mail/substatuses/{id} -v -u {name}:{password} -X DELETE",
16966         "type": "json"
16967       }
16968     ],
16969     "name": "DeleteSubstatuses",
16970     "group": "Mail_Substatuses",
16971     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16972     "version": "0.0.0",
16973     "filename": "server/api/mailSubstatus/index.js",
16974     "groupTitle": "Mail_Substatuses"
16975   },
16976   {
16977     "type": "get",
16978     "url": "/api/mail/substatuses/describe",
16979     "title": "Gets table info about Substatuses",
16980     "examples": [
16981       {
16982         "title": "Example usage:",
16983         "content": "curl https://{domain}/api/mail/substatuses/describe -v -u {name}:{password}",
16984         "type": "json"
16985       }
16986     ],
16987     "name": "DescribeSubstatuses",
16988     "group": "Mail_Substatuses",
16989     "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>",
16990     "version": "0.0.0",
16991     "filename": "server/api/mailSubstatus/index.js",
16992     "groupTitle": "Mail_Substatuses"
16993   },
16994   {
16995     "type": "get",
16996     "url": "/api/mail/substatuses",
16997     "title": "Gets a list of Substatuses",
16998     "examples": [
16999       {
17000         "title": "Example usage:",
17001         "content": "curl https://{domain}/api/mail/substatuses -v -u {name}:{password}",
17002         "type": "json"
17003       }
17004     ],
17005     "name": "GetSubstatuses",
17006     "group": "Mail_Substatuses",
17007     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
17008     "version": "0.0.0",
17009     "filename": "server/api/mailSubstatus/index.js",
17010     "groupTitle": "Mail_Substatuses"
17011   },
17012   {
17013     "type": "get",
17014     "url": "/api/mail/substatuses/{id}",
17015     "title": "Gets a single Queue",
17016     "examples": [
17017       {
17018         "title": "Example usage:",
17019         "content": "curl https://{domain}/api/mail/substatuses/{id} -v -u {name}:{password}",
17020         "type": "json"
17021       }
17022     ],
17023     "name": "ShowSubstatuses",
17024     "group": "Mail_Substatuses",
17025     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17026     "version": "0.0.0",
17027     "filename": "server/api/mailSubstatus/index.js",
17028     "groupTitle": "Mail_Substatuses"
17029   },
17030   {
17031     "type": "put",
17032     "url": "/api/mail/substatuses/{id}",
17033     "title": "Update an existing Queue",
17034     "examples": [
17035       {
17036         "title": "Example usage:",
17037         "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",
17038         "type": "json"
17039       }
17040     ],
17041     "name": "updateSubstatuses",
17042     "group": "Mail_Substatuses",
17043     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17044     "version": "0.0.0",
17045     "filename": "server/api/mailSubstatus/index.js",
17046     "groupTitle": "Mail_Substatuses"
17047   },
17048   {
17049     "type": "post",
17050     "url": "/api/mail/reports/transfer",
17051     "title": "Creates a new Mail Transfer Report",
17052     "examples": [
17053       {
17054         "title": "Example usage:",
17055         "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",
17056         "type": "json"
17057       }
17058     ],
17059     "name": "CreateMail_Transfer_Reports",
17060     "group": "Mail_Transfer_Reports",
17061     "parameter": {
17062       "fields": {
17063         "Body": [
17064           {
17065             "group": "Body",
17066             "type": "String",
17067             "optional": false,
17068             "field": "uniqueid",
17069             "description": ""
17070           },
17071           {
17072             "group": "Body",
17073             "type": "String",
17074             "allowedValues": [
17075               "\"account\"",
17076               "\"agent\"",
17077               "\"queue\""
17078             ],
17079             "optional": false,
17080             "field": "type",
17081             "description": ""
17082           },
17083           {
17084             "group": "Body",
17085             "type": "String",
17086             "optional": false,
17087             "field": "transferredAt",
17088             "description": ""
17089           }
17090         ]
17091       }
17092     },
17093     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17094     "version": "0.0.0",
17095     "filename": "server/api/mailTransferReport/index.js",
17096     "groupTitle": "Mail_Transfer_Reports"
17097   },
17098   {
17099     "type": "delete",
17100     "url": "/api/mail/reports/transfer/{id}",
17101     "title": "Deletes a Mail Transfer Report",
17102     "examples": [
17103       {
17104         "title": "Example usage:",
17105         "content": "curl https://{domain}/api/mail/reports/transfer/{id} -v -u {name}:{password} -X DELETE",
17106         "type": "json"
17107       }
17108     ],
17109     "name": "DeleteMail_Transfer_Reports",
17110     "group": "Mail_Transfer_Reports",
17111     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17112     "version": "0.0.0",
17113     "filename": "server/api/mailTransferReport/index.js",
17114     "groupTitle": "Mail_Transfer_Reports"
17115   },
17116   {
17117     "type": "get",
17118     "url": "/api/mail/reports/transfer/describe",
17119     "title": "Gets table info about Mail Transfer Reports",
17120     "examples": [
17121       {
17122         "title": "Example usage:",
17123         "content": "curl https://{domain}/api/mail/reports/transfer/describe -v -u {name}:{password}",
17124         "type": "json"
17125       }
17126     ],
17127     "name": "DescribeMail_Transfer_Reports",
17128     "group": "Mail_Transfer_Reports",
17129     "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>",
17130     "version": "0.0.0",
17131     "filename": "server/api/mailTransferReport/index.js",
17132     "groupTitle": "Mail_Transfer_Reports"
17133   },
17134   {
17135     "type": "get",
17136     "url": "/api/mail/reports/transfer",
17137     "title": "Gets a list of Mail Transfer Reports",
17138     "examples": [
17139       {
17140         "title": "Example usage:",
17141         "content": "curl https://{domain}/api/mail/reports/transfer -v -u {name}:{password}",
17142         "type": "json"
17143       }
17144     ],
17145     "name": "GetMail_Transfer_Reports",
17146     "group": "Mail_Transfer_Reports",
17147     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
17148     "version": "0.0.0",
17149     "filename": "server/api/mailTransferReport/index.js",
17150     "groupTitle": "Mail_Transfer_Reports"
17151   },
17152   {
17153     "type": "get",
17154     "url": "/api/mail/reports/transfer/{id}",
17155     "title": "Gets a single Mail Transfer Report",
17156     "examples": [
17157       {
17158         "title": "Example usage:",
17159         "content": "curl https://{domain}/api/mail/reports/transfer/{id} -v -u {name}:{password}",
17160         "type": "json"
17161       }
17162     ],
17163     "name": "ShowMail_Transfer_Reports",
17164     "group": "Mail_Transfer_Reports",
17165     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17166     "version": "0.0.0",
17167     "filename": "server/api/mailTransferReport/index.js",
17168     "groupTitle": "Mail_Transfer_Reports"
17169   },
17170   {
17171     "type": "put",
17172     "url": "/api/mail/reports/transfer/{id}",
17173     "title": "Update an existing Mail Transfer Report",
17174     "examples": [
17175       {
17176         "title": "Example usage:",
17177         "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",
17178         "type": "json"
17179       }
17180     ],
17181     "name": "updateMail_Transfer_Reports",
17182     "group": "Mail_Transfer_Reports",
17183     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17184     "version": "0.0.0",
17185     "filename": "server/api/mailTransferReport/index.js",
17186     "groupTitle": "Mail_Transfer_Reports"
17187   },
17188   {
17189     "type": "get",
17190     "url": "/api/members/reports/describe",
17191     "title": "Gets table info about Member Reports",
17192     "examples": [
17193       {
17194         "title": "Example usage:",
17195         "content": "curl https://{domain}/api/members/reports/describe -v -u {name}:{password}",
17196         "type": "json"
17197       }
17198     ],
17199     "name": "DescribeMember_Reports",
17200     "group": "Member_Reports",
17201     "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>",
17202     "version": "0.0.0",
17203     "filename": "server/api/memberReport/index.js",
17204     "groupTitle": "Member_Reports"
17205   },
17206   {
17207     "type": "get",
17208     "url": "/api/members/reports",
17209     "title": "Gets a list of Member Reports",
17210     "examples": [
17211       {
17212         "title": "Example usage:",
17213         "content": "curl https://{domain}/api/members/reports -v -u {name}:{password}",
17214         "type": "json"
17215       }
17216     ],
17217     "name": "GetMember_Reports",
17218     "group": "Member_Reports",
17219     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
17220     "version": "0.0.0",
17221     "filename": "server/api/memberReport/index.js",
17222     "groupTitle": "Member_Reports"
17223   },
17224   {
17225     "type": "get",
17226     "url": "/api/members/reports/{id}",
17227     "title": "Gets a single Member Report",
17228     "examples": [
17229       {
17230         "title": "Example usage:",
17231         "content": "curl https://{domain}/api/members/reports/{id} -v -u {name}:{password}",
17232         "type": "json"
17233       }
17234     ],
17235     "name": "ShowMember_Reports",
17236     "group": "Member_Reports",
17237     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17238     "version": "0.0.0",
17239     "filename": "server/api/memberReport/index.js",
17240     "groupTitle": "Member_Reports"
17241   },
17242   {
17243     "type": "get",
17244     "url": "/api/migrations",
17245     "title": "Gets a list of Migrations",
17246     "examples": [
17247       {
17248         "title": "Example usage:",
17249         "content": "curl https://{domain}/api/migrations -v -u {name}:{password}",
17250         "type": "json"
17251       }
17252     ],
17253     "name": "GetMigrations",
17254     "group": "Migrations",
17255     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
17256     "version": "0.0.0",
17257     "filename": "server/api/migration/index.js",
17258     "groupTitle": "Migrations"
17259   },
17260   {
17261     "type": "post",
17262     "url": "/api/voice/networks",
17263     "title": "Create a new network",
17264     "examples": [
17265       {
17266         "title": "Example usage:",
17267         "content": "curl https://{domain}/api/voice/networks -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
17268         "type": "json"
17269       }
17270     ],
17271     "name": "Create",
17272     "group": "Networks",
17273     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17274     "version": "0.0.0",
17275     "filename": "server/api/network/index.js",
17276     "groupTitle": "Networks"
17277   },
17278   {
17279     "type": "delete",
17280     "url": "/api/voice/networks/{id}",
17281     "title": "Deletes a network",
17282     "examples": [
17283       {
17284         "title": "Example usage:",
17285         "content": "curl https://{domain}/api/voice/networks/{id} -v -u {name}:{password} -X DELETE",
17286         "type": "json"
17287       }
17288     ],
17289     "name": "Delete",
17290     "group": "Networks",
17291     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17292     "version": "0.0.0",
17293     "filename": "server/api/network/index.js",
17294     "groupTitle": "Networks"
17295   },
17296   {
17297     "type": "get",
17298     "url": "/api/networks",
17299     "title": "Gets a list of Networks",
17300     "examples": [
17301       {
17302         "title": "Example usage:",
17303         "content": "curl https://{domain}/api/networks -v -u {name}:{password}",
17304         "type": "json"
17305       }
17306     ],
17307     "name": "GetNetworks",
17308     "group": "Networks",
17309     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
17310     "version": "0.0.0",
17311     "filename": "server/api/network/index.js",
17312     "groupTitle": "Networks"
17313   },
17314   {
17315     "type": "get",
17316     "url": "/api/networks/{id}",
17317     "title": "Gets a single Network",
17318     "examples": [
17319       {
17320         "title": "Example usage:",
17321         "content": "curl https://{domain}/api/networks/{id} -v -u {name}:{password}",
17322         "type": "json"
17323       }
17324     ],
17325     "name": "ShowNetworks",
17326     "group": "Networks",
17327     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17328     "version": "0.0.0",
17329     "filename": "server/api/network/index.js",
17330     "groupTitle": "Networks"
17331   },
17332   {
17333     "type": "put",
17334     "url": "/api/voice/networks/{id}",
17335     "title": "Update an existing network",
17336     "examples": [
17337       {
17338         "title": "Example usage:",
17339         "content": "curl https://{domain}/api/voice/networks/{id} -v -u {name}:{password} -X PUT",
17340         "type": "json"
17341       }
17342     ],
17343     "name": "Update",
17344     "group": "Networks",
17345     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17346     "version": "0.0.0",
17347     "filename": "server/api/network/index.js",
17348     "groupTitle": "Networks"
17349   },
17350   {
17351     "type": "post",
17352     "url": "/api/openchannel/accounts/{id}/users",
17353     "title": "Add agents to a openchannel account",
17354     "examples": [
17355       {
17356         "title": "Example usage:",
17357         "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",
17358         "type": "json"
17359       }
17360     ],
17361     "name": "AddAgents",
17362     "group": "Openchannel_Accounts",
17363     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17364     "version": "0.0.0",
17365     "filename": "server/api/openchannelAccount/index.js",
17366     "groupTitle": "Openchannel_Accounts"
17367   },
17368   {
17369     "type": "post",
17370     "url": "/api/openchannel/accounts",
17371     "title": "Creates a new Account",
17372     "examples": [
17373       {
17374         "title": "Example usage:",
17375         "content": "curl https://{domain}/api/openchannel/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
17376         "type": "json"
17377       }
17378     ],
17379     "name": "CreateAccounts",
17380     "group": "Openchannel_Accounts",
17381     "parameter": {
17382       "fields": {
17383         "Body": [
17384           {
17385             "group": "Body",
17386             "type": "String",
17387             "optional": false,
17388             "field": "name",
17389             "description": ""
17390           },
17391           {
17392             "group": "Body",
17393             "type": "String",
17394             "optional": true,
17395             "field": "description",
17396             "description": ""
17397           },
17398           {
17399             "group": "Body",
17400             "type": "String",
17401             "optional": true,
17402             "field": "token",
17403             "description": ""
17404           },
17405           {
17406             "group": "Body",
17407             "type": "String",
17408             "optional": true,
17409             "field": "replyUri",
17410             "description": ""
17411           },
17412           {
17413             "group": "Body",
17414             "type": "String",
17415             "optional": false,
17416             "field": "key",
17417             "description": ""
17418           },
17419           {
17420             "group": "Body",
17421             "type": "Text",
17422             "optional": true,
17423             "field": "notificationTemplate",
17424             "description": ""
17425           },
17426           {
17427             "group": "Body",
17428             "type": "Boolean",
17429             "optional": true,
17430             "field": "notificationSound",
17431             "description": ""
17432           },
17433           {
17434             "group": "Body",
17435             "type": "Boolean",
17436             "optional": true,
17437             "field": "notificationShake",
17438             "description": ""
17439           },
17440           {
17441             "group": "Body",
17442             "type": "Integer",
17443             "optional": true,
17444             "field": "waitForTheAssignedAgent",
17445             "description": ""
17446           },
17447           {
17448             "group": "Body",
17449             "type": "String",
17450             "optional": true,
17451             "field": "mapKey",
17452             "description": ""
17453           },
17454           {
17455             "group": "Body",
17456             "type": "Boolean",
17457             "optional": true,
17458             "field": "queueTransfer",
17459             "description": ""
17460           },
17461           {
17462             "group": "Body",
17463             "type": "Integer",
17464             "optional": true,
17465             "field": "queueTransferTimeout",
17466             "description": ""
17467           },
17468           {
17469             "group": "Body",
17470             "type": "Boolean",
17471             "optional": true,
17472             "field": "agentTransfer",
17473             "description": ""
17474           },
17475           {
17476             "group": "Body",
17477             "type": "Integer",
17478             "optional": true,
17479             "field": "agentTransferTimeout",
17480             "description": ""
17481           },
17482           {
17483             "group": "Body",
17484             "type": "Integer",
17485             "optional": true,
17486             "field": "mandatoryDispositionPauseId",
17487             "description": "<p>Status to put when mandatory disposition is enabled</p>"
17488           },
17489           {
17490             "group": "Body",
17491             "type": "Boolean",
17492             "optional": true,
17493             "field": "mandatoryDisposition",
17494             "description": "<p>Enabled/disables mandatory dispo on a queue</p>"
17495           }
17496         ]
17497       }
17498     },
17499     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17500     "version": "0.0.0",
17501     "filename": "server/api/openchannelAccount/index.js",
17502     "groupTitle": "Openchannel_Accounts"
17503   },
17504   {
17505     "type": "delete",
17506     "url": "/api/openchannel/accounts/{id}",
17507     "title": "Deletes a Account",
17508     "examples": [
17509       {
17510         "title": "Example usage:",
17511         "content": "curl https://{domain}/api/openchannel/accounts/{id} -v -u {name}:{password} -X DELETE",
17512         "type": "json"
17513       }
17514     ],
17515     "name": "DeleteAccounts",
17516     "group": "Openchannel_Accounts",
17517     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17518     "version": "0.0.0",
17519     "filename": "server/api/openchannelAccount/index.js",
17520     "groupTitle": "Openchannel_Accounts"
17521   },
17522   {
17523     "type": "get",
17524     "url": "/api/openchannel/accounts/describe",
17525     "title": "Gets table info about Accounts",
17526     "examples": [
17527       {
17528         "title": "Example usage:",
17529         "content": "curl https://{domain}/api/openchannel/accounts/describe -v -u {name}:{password}",
17530         "type": "json"
17531       }
17532     ],
17533     "name": "DescribeAccounts",
17534     "group": "Openchannel_Accounts",
17535     "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>",
17536     "version": "0.0.0",
17537     "filename": "server/api/openchannelAccount/index.js",
17538     "groupTitle": "Openchannel_Accounts"
17539   },
17540   {
17541     "type": "get",
17542     "url": "/api/openchannel/accounts",
17543     "title": "Gets a list of Accounts",
17544     "examples": [
17545       {
17546         "title": "Example usage:",
17547         "content": "curl https://{domain}/api/openchannel/accounts -v -u {name}:{password}",
17548         "type": "json"
17549       }
17550     ],
17551     "name": "GetAccounts",
17552     "group": "Openchannel_Accounts",
17553     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
17554     "version": "0.0.0",
17555     "filename": "server/api/openchannelAccount/index.js",
17556     "groupTitle": "Openchannel_Accounts"
17557   },
17558   {
17559     "type": "get",
17560     "url": "/api/openchannel/accounts/{id}/users",
17561     "title": "Gets agents from openchannel account",
17562     "examples": [
17563       {
17564         "title": "Example usage:",
17565         "content": "curl https://{domain}/api/openchannel/accounts/{id}/users -v -u {name}:{password} -X GET",
17566         "type": "json"
17567       }
17568     ],
17569     "name": "GetAgents",
17570     "group": "Openchannel_Accounts",
17571     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17572     "version": "0.0.0",
17573     "filename": "server/api/openchannelAccount/index.js",
17574     "groupTitle": "Openchannel_Accounts"
17575   },
17576   {
17577     "type": "delete",
17578     "url": "/api/openchannel/accounts/{id}/users",
17579     "title": "Removes agents from a openchannel account",
17580     "examples": [
17581       {
17582         "title": "Example usage:",
17583         "content": "curl https://{domain}/api/openchannel/accounts/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
17584         "type": "json"
17585       }
17586     ],
17587     "name": "RemoveAgents",
17588     "group": "Openchannel_Accounts",
17589     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17590     "version": "0.0.0",
17591     "filename": "server/api/openchannelAccount/index.js",
17592     "groupTitle": "Openchannel_Accounts"
17593   },
17594   {
17595     "type": "delete",
17596     "url": "/api/openchannel/accounts/{id}/canned_answers",
17597     "title": "Removes canned answers from account",
17598     "examples": [
17599       {
17600         "title": "Example usage:",
17601         "content": "curl https://{domain}/api/openchannel/accounts/{id}/canned_answers?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
17602         "type": "json"
17603       }
17604     ],
17605     "name": "RemoveAnswers",
17606     "group": "Openchannel_Accounts",
17607     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17608     "version": "0.0.0",
17609     "filename": "server/api/openchannelAccount/index.js",
17610     "groupTitle": "Openchannel_Accounts"
17611   },
17612   {
17613     "type": "delete",
17614     "url": "/api/openchannel/accounts/{id}/dispositions",
17615     "title": "Removes dispositions from account",
17616     "examples": [
17617       {
17618         "title": "Example usage:",
17619         "content": "curl https://{domain}/api/openchannel/accounts/{id}/dispositions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
17620         "type": "json"
17621       }
17622     ],
17623     "name": "RemoveDispositions",
17624     "group": "Openchannel_Accounts",
17625     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17626     "version": "0.0.0",
17627     "filename": "server/api/openchannelAccount/index.js",
17628     "groupTitle": "Openchannel_Accounts"
17629   },
17630   {
17631     "type": "get",
17632     "url": "/api/openchannel/accounts/{id}",
17633     "title": "Gets a single Account",
17634     "examples": [
17635       {
17636         "title": "Example usage:",
17637         "content": "curl https://{domain}/api/openchannel/accounts/{id} -v -u {name}:{password}",
17638         "type": "json"
17639       }
17640     ],
17641     "name": "ShowAccounts",
17642     "group": "Openchannel_Accounts",
17643     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17644     "version": "0.0.0",
17645     "filename": "server/api/openchannelAccount/index.js",
17646     "groupTitle": "Openchannel_Accounts"
17647   },
17648   {
17649     "type": "post",
17650     "url": "/api/openchannel/accounts/{id}/canned_answers",
17651     "title": "Creates new canned answer",
17652     "examples": [
17653       {
17654         "title": "Example usage:",
17655         "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",
17656         "type": "json"
17657       }
17658     ],
17659     "name": "addAnswer",
17660     "group": "Openchannel_Accounts",
17661     "parameter": {
17662       "fields": {
17663         "Body": [
17664           {
17665             "group": "Body",
17666             "type": "String",
17667             "optional": false,
17668             "field": "key",
17669             "description": ""
17670           },
17671           {
17672             "group": "Body",
17673             "type": "Text",
17674             "optional": false,
17675             "field": "value",
17676             "description": ""
17677           },
17678           {
17679             "group": "Body",
17680             "type": "String",
17681             "optional": true,
17682             "field": "description",
17683             "description": ""
17684           },
17685           {
17686             "group": "Body",
17687             "type": "Virtual",
17688             "optional": true,
17689             "field": "name",
17690             "description": ""
17691           }
17692         ]
17693       }
17694     },
17695     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17696     "version": "0.0.0",
17697     "filename": "server/api/openchannelAccount/index.js",
17698     "groupTitle": "Openchannel_Accounts"
17699   },
17700   {
17701     "type": "post",
17702     "url": "/api/openchannel/accounts/{id}/applications",
17703     "title": "Creates new applications",
17704     "examples": [
17705       {
17706         "title": "Example usage:",
17707         "content": "curl https://{domain}/api/openchannel/accounts/{id}/applications -d '[{\"app\": \"queue\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
17708         "type": "json"
17709       }
17710     ],
17711     "name": "addApplications",
17712     "group": "Openchannel_Accounts",
17713     "parameter": {
17714       "fields": {
17715         "Body": [
17716           {
17717             "group": "Body",
17718             "type": "Integer",
17719             "optional": false,
17720             "field": "priority",
17721             "description": ""
17722           },
17723           {
17724             "group": "Body",
17725             "type": "String",
17726             "optional": false,
17727             "field": "app",
17728             "description": ""
17729           },
17730           {
17731             "group": "Body",
17732             "type": "Text",
17733             "optional": true,
17734             "field": "appdata",
17735             "description": ""
17736           },
17737           {
17738             "group": "Body",
17739             "type": "String",
17740             "optional": true,
17741             "field": "description",
17742             "description": ""
17743           },
17744           {
17745             "group": "Body",
17746             "type": "String",
17747             "optional": true,
17748             "field": "interval",
17749             "description": ""
17750           }
17751         ]
17752       }
17753     },
17754     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17755     "version": "0.0.0",
17756     "filename": "server/api/openchannelAccount/index.js",
17757     "groupTitle": "Openchannel_Accounts"
17758   },
17759   {
17760     "type": "post",
17761     "url": "/api/openchannel/accounts/{id}/dispositions",
17762     "title": "Creates new disposition",
17763     "examples": [
17764       {
17765         "title": "Example usage:",
17766         "content": "curl https://{domain}/api/openchannel/accounts/{id}/dispositions -d '{\"name\": \"vip\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
17767         "type": "json"
17768       }
17769     ],
17770     "name": "addDisposition",
17771     "group": "Openchannel_Accounts",
17772     "parameter": {
17773       "fields": {
17774         "Body": [
17775           {
17776             "group": "Body",
17777             "type": "String",
17778             "optional": false,
17779             "field": "name",
17780             "description": ""
17781           },
17782           {
17783             "group": "Body",
17784             "type": "String",
17785             "allowedValues": [
17786               "\"first\"",
17787               "\"second\"",
17788               "\"third\""
17789             ],
17790             "optional": false,
17791             "field": "level",
17792             "description": ""
17793           },
17794           {
17795             "group": "Body",
17796             "type": "String",
17797             "optional": true,
17798             "field": "description",
17799             "description": ""
17800           }
17801         ]
17802       }
17803     },
17804     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17805     "version": "0.0.0",
17806     "filename": "server/api/openchannelAccount/index.js",
17807     "groupTitle": "Openchannel_Accounts"
17808   },
17809   {
17810     "type": "get",
17811     "url": "/api/openchannel/accounts/{id}/canned_answers",
17812     "title": "Gets account canned answers",
17813     "examples": [
17814       {
17815         "title": "Example usage:",
17816         "content": "curl https://{domain}/api/openchannel/accounts/{id}/canned_answers -v -u {name}:{password} -X GET",
17817         "type": "json"
17818       }
17819     ],
17820     "name": "getAnswers",
17821     "group": "Openchannel_Accounts",
17822     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17823     "version": "0.0.0",
17824     "filename": "server/api/openchannelAccount/index.js",
17825     "groupTitle": "Openchannel_Accounts"
17826   },
17827   {
17828     "type": "get",
17829     "url": "/api/openchannel/accounts/{id}/applications",
17830     "title": "Gets account applications",
17831     "examples": [
17832       {
17833         "title": "Example usage:",
17834         "content": "curl https://{domain}/api/openchannel/accounts/{id}/applications -v -u {name}:{password} -X GET",
17835         "type": "json"
17836       }
17837     ],
17838     "name": "getApplications",
17839     "group": "Openchannel_Accounts",
17840     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17841     "version": "0.0.0",
17842     "filename": "server/api/openchannelAccount/index.js",
17843     "groupTitle": "Openchannel_Accounts"
17844   },
17845   {
17846     "type": "get",
17847     "url": "/api/openchannel/accounts/{id}/dispositions",
17848     "title": "Gets account dispositions",
17849     "examples": [
17850       {
17851         "title": "Example usage:",
17852         "content": "curl https://{domain}/api/openchannel/accounts/{id}/dispositions -v -u {name}:{password} -X GET",
17853         "type": "json"
17854       }
17855     ],
17856     "name": "getDispositions",
17857     "group": "Openchannel_Accounts",
17858     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17859     "version": "0.0.0",
17860     "filename": "server/api/openchannelAccount/index.js",
17861     "groupTitle": "Openchannel_Accounts"
17862   },
17863   {
17864     "type": "get",
17865     "url": "/api/openchannel/accounts/{id}/interactions",
17866     "title": "Gets Openchannel Account Interactions",
17867     "examples": [
17868       {
17869         "title": "Example usage:",
17870         "content": "curl https://{domain}/api/openchannel/accounts/{id}/interactions -v -u {name}:{password} -X GET",
17871         "type": "json"
17872       }
17873     ],
17874     "name": "getInteractions",
17875     "group": "Openchannel_Accounts",
17876     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17877     "version": "0.0.0",
17878     "filename": "server/api/openchannelAccount/index.js",
17879     "groupTitle": "Openchannel_Accounts"
17880   },
17881   {
17882     "type": "post",
17883     "url": "/api/openchannel/accounts/{id}/notify",
17884     "title": "Notify new message",
17885     "examples": [
17886       {
17887         "title": "Example usage:",
17888         "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",
17889         "type": "json"
17890       }
17891     ],
17892     "name": "notify",
17893     "group": "Openchannel_Accounts",
17894     "description": "<p>Motion 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>",
17895     "version": "0.0.0",
17896     "filename": "server/api/openchannelAccount/index.js",
17897     "groupTitle": "Openchannel_Accounts"
17898   },
17899   {
17900     "type": "post",
17901     "url": "/api/openchannel/accounts/{id}/send",
17902     "title": "Send new openchannel message",
17903     "examples": [
17904       {
17905         "title": "Example usage:",
17906         "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",
17907         "type": "json"
17908       }
17909     ],
17910     "name": "sendOpenchannel",
17911     "group": "Openchannel_Accounts",
17912     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17913     "version": "0.0.0",
17914     "filename": "server/api/openchannelAccount/index.js",
17915     "groupTitle": "Openchannel_Accounts"
17916   },
17917   {
17918     "type": "put",
17919     "url": "/api/openchannel/accounts/{id}",
17920     "title": "Update an existing Account",
17921     "examples": [
17922       {
17923         "title": "Example usage:",
17924         "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",
17925         "type": "json"
17926       }
17927     ],
17928     "name": "updateAccounts",
17929     "group": "Openchannel_Accounts",
17930     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17931     "version": "0.0.0",
17932     "filename": "server/api/openchannelAccount/index.js",
17933     "groupTitle": "Openchannel_Accounts"
17934   },
17935   {
17936     "type": "post",
17937     "url": "/api/openchannel/applications",
17938     "title": "Creates a new Application",
17939     "examples": [
17940       {
17941         "title": "Example usage:",
17942         "content": "curl https://{domain}/api/openchannel/applications -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
17943         "type": "json"
17944       }
17945     ],
17946     "name": "CreateApplications",
17947     "group": "Openchannel_Applications",
17948     "parameter": {
17949       "fields": {
17950         "Body": [
17951           {
17952             "group": "Body",
17953             "type": "Integer",
17954             "optional": false,
17955             "field": "priority",
17956             "description": ""
17957           },
17958           {
17959             "group": "Body",
17960             "type": "String",
17961             "optional": false,
17962             "field": "app",
17963             "description": ""
17964           },
17965           {
17966             "group": "Body",
17967             "type": "Text",
17968             "optional": true,
17969             "field": "appdata",
17970             "description": ""
17971           },
17972           {
17973             "group": "Body",
17974             "type": "String",
17975             "optional": true,
17976             "field": "description",
17977             "description": ""
17978           },
17979           {
17980             "group": "Body",
17981             "type": "String",
17982             "optional": true,
17983             "field": "interval",
17984             "description": ""
17985           }
17986         ]
17987       }
17988     },
17989     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17990     "version": "0.0.0",
17991     "filename": "server/api/openchannelApplication/index.js",
17992     "groupTitle": "Openchannel_Applications"
17993   },
17994   {
17995     "type": "delete",
17996     "url": "/api/openchannel/applications/{id}",
17997     "title": "Deletes a Application",
17998     "examples": [
17999       {
18000         "title": "Example usage:",
18001         "content": "curl https://{domain}/api/openchannel/applications/{id} -v -u {name}:{password} -X DELETE",
18002         "type": "json"
18003       }
18004     ],
18005     "name": "DeleteApplications",
18006     "group": "Openchannel_Applications",
18007     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18008     "version": "0.0.0",
18009     "filename": "server/api/openchannelApplication/index.js",
18010     "groupTitle": "Openchannel_Applications"
18011   },
18012   {
18013     "type": "get",
18014     "url": "/api/openchannel/applications",
18015     "title": "Gets a list of Applications",
18016     "examples": [
18017       {
18018         "title": "Example usage:",
18019         "content": "curl https://{domain}/api/openchannel/applications -v -u {name}:{password}",
18020         "type": "json"
18021       }
18022     ],
18023     "name": "GetApplications",
18024     "group": "Openchannel_Applications",
18025     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
18026     "version": "0.0.0",
18027     "filename": "server/api/openchannelApplication/index.js",
18028     "groupTitle": "Openchannel_Applications"
18029   },
18030   {
18031     "type": "get",
18032     "url": "/api/openchannel/applications/{id}",
18033     "title": "Gets a single Application",
18034     "examples": [
18035       {
18036         "title": "Example usage:",
18037         "content": "curl https://{domain}/api/openchannel/applications/{id} -v -u {name}:{password}",
18038         "type": "json"
18039       }
18040     ],
18041     "name": "ShowApplications",
18042     "group": "Openchannel_Applications",
18043     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18044     "version": "0.0.0",
18045     "filename": "server/api/openchannelApplication/index.js",
18046     "groupTitle": "Openchannel_Applications"
18047   },
18048   {
18049     "type": "put",
18050     "url": "/api/openchannel/applications/{id}",
18051     "title": "Update an existing Application",
18052     "examples": [
18053       {
18054         "title": "Example usage:",
18055         "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",
18056         "type": "json"
18057       }
18058     ],
18059     "name": "updateApplications",
18060     "group": "Openchannel_Applications",
18061     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18062     "version": "0.0.0",
18063     "filename": "server/api/openchannelApplication/index.js",
18064     "groupTitle": "Openchannel_Applications"
18065   },
18066   {
18067     "type": "post",
18068     "url": "/api/openchannel/interactions/{id}/tags",
18069     "title": "Add tags to the interaction",
18070     "examples": [
18071       {
18072         "title": "Example usage:",
18073         "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",
18074         "type": "json"
18075       }
18076     ],
18077     "name": "AddTags",
18078     "group": "Openchannel_Interactions",
18079     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18080     "version": "0.0.0",
18081     "filename": "server/api/openchannelInteraction/index.js",
18082     "groupTitle": "Openchannel_Interactions"
18083   },
18084   {
18085     "type": "post",
18086     "url": "/api/openchannel/interactions",
18087     "title": "Creates a new Interaction",
18088     "examples": [
18089       {
18090         "title": "Example usage:",
18091         "content": "curl https://{domain}/api/openchannel/interactions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
18092         "type": "json"
18093       }
18094     ],
18095     "name": "CreateInteractions",
18096     "group": "Openchannel_Interactions",
18097     "parameter": {
18098       "fields": {
18099         "Body": [
18100           {
18101             "group": "Body",
18102             "type": "Boolean",
18103             "optional": true,
18104             "field": "closed",
18105             "description": ""
18106           },
18107           {
18108             "group": "Body",
18109             "type": "String",
18110             "optional": true,
18111             "field": "closedAt",
18112             "description": ""
18113           },
18114           {
18115             "group": "Body",
18116             "type": "String",
18117             "optional": true,
18118             "field": "disposition",
18119             "description": ""
18120           },
18121           {
18122             "group": "Body",
18123             "type": "String",
18124             "optional": true,
18125             "field": "secondDisposition",
18126             "description": ""
18127           },
18128           {
18129             "group": "Body",
18130             "type": "String",
18131             "optional": true,
18132             "field": "thirdDisposition",
18133             "description": ""
18134           },
18135           {
18136             "group": "Body",
18137             "type": "String",
18138             "optional": true,
18139             "field": "note",
18140             "description": ""
18141           },
18142           {
18143             "group": "Body",
18144             "type": "String",
18145             "optional": true,
18146             "field": "read1stAt",
18147             "description": ""
18148           },
18149           {
18150             "group": "Body",
18151             "type": "String",
18152             "optional": true,
18153             "field": "threadId",
18154             "description": ""
18155           },
18156           {
18157             "group": "Body",
18158             "type": "String",
18159             "optional": true,
18160             "field": "externalUrl",
18161             "description": ""
18162           },
18163           {
18164             "group": "Body",
18165             "type": "String",
18166             "optional": true,
18167             "field": "lastMsgAt",
18168             "description": ""
18169           },
18170           {
18171             "group": "Body",
18172             "type": "String",
18173             "allowedValues": [
18174               "\"in\"",
18175               "\"out\""
18176             ],
18177             "optional": false,
18178             "field": "lastMsgDirection",
18179             "description": ""
18180           },
18181           {
18182             "group": "Body",
18183             "type": "String",
18184             "optional": true,
18185             "field": "from",
18186             "description": ""
18187           },
18188           {
18189             "group": "Body",
18190             "type": "Boolean",
18191             "optional": true,
18192             "field": "autoreplyExecuted",
18193             "description": ""
18194           }
18195         ]
18196       }
18197     },
18198     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18199     "version": "0.0.0",
18200     "filename": "server/api/openchannelInteraction/index.js",
18201     "groupTitle": "Openchannel_Interactions"
18202   },
18203   {
18204     "type": "delete",
18205     "url": "/api/openchannel/interactions/{id}",
18206     "title": "Deletes a Interaction",
18207     "examples": [
18208       {
18209         "title": "Example usage:",
18210         "content": "curl https://{domain}/api/openchannel/interactions/{id} -v -u {name}:{password} -X DELETE",
18211         "type": "json"
18212       }
18213     ],
18214     "name": "DeleteInteractions",
18215     "group": "Openchannel_Interactions",
18216     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18217     "version": "0.0.0",
18218     "filename": "server/api/openchannelInteraction/index.js",
18219     "groupTitle": "Openchannel_Interactions"
18220   },
18221   {
18222     "type": "get",
18223     "url": "/api/openchannel/interactions/describe",
18224     "title": "Gets table info about Interactions",
18225     "examples": [
18226       {
18227         "title": "Example usage:",
18228         "content": "curl https://{domain}/api/openchannel/interactions/describe -v -u {name}:{password}",
18229         "type": "json"
18230       }
18231     ],
18232     "name": "DescribeInteractions",
18233     "group": "Openchannel_Interactions",
18234     "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>",
18235     "version": "0.0.0",
18236     "filename": "server/api/openchannelInteraction/index.js",
18237     "groupTitle": "Openchannel_Interactions"
18238   },
18239   {
18240     "type": "get",
18241     "url": "/api/openchannel/interactions",
18242     "title": "Gets a list of Interactions",
18243     "examples": [
18244       {
18245         "title": "Example usage:",
18246         "content": "curl https://{domain}/api/openchannel/interactions -v -u {name}:{password}",
18247         "type": "json"
18248       }
18249     ],
18250     "name": "GetInteractions",
18251     "group": "Openchannel_Interactions",
18252     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
18253     "version": "0.0.0",
18254     "filename": "server/api/openchannelInteraction/index.js",
18255     "groupTitle": "Openchannel_Interactions"
18256   },
18257   {
18258     "type": "delete",
18259     "url": "/api/openchannel/interactions/{id}/tags",
18260     "title": "Removes tags from interaction",
18261     "examples": [
18262       {
18263         "title": "Example usage:",
18264         "content": "curl https://{domain}/api/openchannel/interactions/{id}/tags?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
18265         "type": "json"
18266       }
18267     ],
18268     "name": "RemoveTags",
18269     "group": "Openchannel_Interactions",
18270     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18271     "version": "0.0.0",
18272     "filename": "server/api/openchannelInteraction/index.js",
18273     "groupTitle": "Openchannel_Interactions"
18274   },
18275   {
18276     "type": "get",
18277     "url": "/api/openchannel/interactions/{id}",
18278     "title": "Gets a single Interaction",
18279     "examples": [
18280       {
18281         "title": "Example usage:",
18282         "content": "curl https://{domain}/api/openchannel/interactions/{id} -v -u {name}:{password}",
18283         "type": "json"
18284       }
18285     ],
18286     "name": "ShowInteractions",
18287     "group": "Openchannel_Interactions",
18288     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18289     "version": "0.0.0",
18290     "filename": "server/api/openchannelInteraction/index.js",
18291     "groupTitle": "Openchannel_Interactions"
18292   },
18293   {
18294     "type": "post",
18295     "url": "/api/openchannel/interactions/{id}/messages",
18296     "title": "Creates new messages",
18297     "examples": [
18298       {
18299         "title": "Example usage:",
18300         "content": "curl https://{domain}/api/openchannel/interactions/{id}/messages -d '[{\"to\": \"+3901119886500\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
18301         "type": "json"
18302       }
18303     ],
18304     "name": "addMessage",
18305     "group": "Openchannel_Interactions",
18306     "parameter": {
18307       "fields": {
18308         "Body": [
18309           {
18310             "group": "Body",
18311             "type": "Text",
18312             "optional": false,
18313             "field": "body",
18314             "description": ""
18315           },
18316           {
18317             "group": "Body",
18318             "type": "Boolean",
18319             "optional": true,
18320             "field": "read",
18321             "description": ""
18322           },
18323           {
18324             "group": "Body",
18325             "type": "Boolean",
18326             "optional": true,
18327             "field": "secret",
18328             "description": ""
18329           },
18330           {
18331             "group": "Body",
18332             "type": "String",
18333             "allowedValues": [
18334               "\"in\"",
18335               "\"out\""
18336             ],
18337             "optional": false,
18338             "field": "direction",
18339             "description": ""
18340           },
18341           {
18342             "group": "Body",
18343             "type": "String",
18344             "optional": true,
18345             "field": "readAt",
18346             "description": ""
18347           },
18348           {
18349             "group": "Body",
18350             "type": "String",
18351             "optional": true,
18352             "field": "providerName",
18353             "description": ""
18354           },
18355           {
18356             "group": "Body",
18357             "type": "Text",
18358             "optional": true,
18359             "field": "providerResponse",
18360             "description": ""
18361           }
18362         ]
18363       }
18364     },
18365     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18366     "version": "0.0.0",
18367     "filename": "server/api/openchannelInteraction/index.js",
18368     "groupTitle": "Openchannel_Interactions"
18369   },
18370   {
18371     "type": "get",
18372     "url": "/api/openchannel/interactions/{id}/download",
18373     "title": "Gets interaction",
18374     "examples": [
18375       {
18376         "title": "Example usage:",
18377         "content": "curl https://{domain}/api/openchannel/interactions/{id}/download -v -u {name}:{password} -X GET",
18378         "type": "json"
18379       }
18380     ],
18381     "name": "download",
18382     "group": "Openchannel_Interactions",
18383     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18384     "version": "0.0.0",
18385     "filename": "server/api/openchannelInteraction/index.js",
18386     "groupTitle": "Openchannel_Interactions"
18387   },
18388   {
18389     "type": "get",
18390     "url": "/api/openchannel/interactions/{id}/messages",
18391     "title": "Gets interaction messages",
18392     "examples": [
18393       {
18394         "title": "Example usage:",
18395         "content": "curl https://{domain}/api/openchannel/interactions/{id}/messages -v -u {name}:{password} -X GET",
18396         "type": "json"
18397       }
18398     ],
18399     "name": "getMessages",
18400     "group": "Openchannel_Interactions",
18401     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18402     "version": "0.0.0",
18403     "filename": "server/api/openchannelInteraction/index.js",
18404     "groupTitle": "Openchannel_Interactions"
18405   },
18406   {
18407     "type": "put",
18408     "url": "/api/openchannel/interactions/{id}",
18409     "title": "Update an existing Interaction",
18410     "examples": [
18411       {
18412         "title": "Example usage:",
18413         "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",
18414         "type": "json"
18415       }
18416     ],
18417     "name": "updateInteractions",
18418     "group": "Openchannel_Interactions",
18419     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18420     "version": "0.0.0",
18421     "filename": "server/api/openchannelInteraction/index.js",
18422     "groupTitle": "Openchannel_Interactions"
18423   },
18424   {
18425     "type": "post",
18426     "url": "/api/openchannel/messages",
18427     "title": "Creates a new Message",
18428     "examples": [
18429       {
18430         "title": "Example usage:",
18431         "content": "curl https://{domain}/api/openchannel/messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
18432         "type": "json"
18433       }
18434     ],
18435     "name": "CreateMessages",
18436     "group": "Openchannel_Messages",
18437     "parameter": {
18438       "fields": {
18439         "Body": [
18440           {
18441             "group": "Body",
18442             "type": "Text",
18443             "optional": false,
18444             "field": "body",
18445             "description": ""
18446           },
18447           {
18448             "group": "Body",
18449             "type": "Boolean",
18450             "optional": true,
18451             "field": "read",
18452             "description": ""
18453           },
18454           {
18455             "group": "Body",
18456             "type": "Boolean",
18457             "optional": true,
18458             "field": "secret",
18459             "description": ""
18460           },
18461           {
18462             "group": "Body",
18463             "type": "String",
18464             "allowedValues": [
18465               "\"in\"",
18466               "\"out\""
18467             ],
18468             "optional": false,
18469             "field": "direction",
18470             "description": ""
18471           },
18472           {
18473             "group": "Body",
18474             "type": "String",
18475             "optional": true,
18476             "field": "readAt",
18477             "description": ""
18478           },
18479           {
18480             "group": "Body",
18481             "type": "String",
18482             "optional": true,
18483             "field": "providerName",
18484             "description": ""
18485           },
18486           {
18487             "group": "Body",
18488             "type": "Text",
18489             "optional": true,
18490             "field": "providerResponse",
18491             "description": ""
18492           }
18493         ]
18494       }
18495     },
18496     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18497     "version": "0.0.0",
18498     "filename": "server/api/openchannelMessage/index.js",
18499     "groupTitle": "Openchannel_Messages"
18500   },
18501   {
18502     "type": "delete",
18503     "url": "/api/openchannel/messages/{id}",
18504     "title": "Deletes a Message",
18505     "examples": [
18506       {
18507         "title": "Example usage:",
18508         "content": "curl https://{domain}/api/openchannel/messages/{id} -v -u {name}:{password} -X DELETE",
18509         "type": "json"
18510       }
18511     ],
18512     "name": "DeleteMessages",
18513     "group": "Openchannel_Messages",
18514     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18515     "version": "0.0.0",
18516     "filename": "server/api/openchannelMessage/index.js",
18517     "groupTitle": "Openchannel_Messages"
18518   },
18519   {
18520     "type": "get",
18521     "url": "/api/openchannel/messages/describe",
18522     "title": "Gets table info about Messages",
18523     "examples": [
18524       {
18525         "title": "Example usage:",
18526         "content": "curl https://{domain}/api/openchannel/messages/describe -v -u {name}:{password}",
18527         "type": "json"
18528       }
18529     ],
18530     "name": "DescribeMessages",
18531     "group": "Openchannel_Messages",
18532     "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>",
18533     "version": "0.0.0",
18534     "filename": "server/api/openchannelMessage/index.js",
18535     "groupTitle": "Openchannel_Messages"
18536   },
18537   {
18538     "type": "get",
18539     "url": "/api/openchannel/messages",
18540     "title": "Gets a list of Messages",
18541     "examples": [
18542       {
18543         "title": "Example usage:",
18544         "content": "curl https://{domain}/api/openchannel/messages -v -u {name}:{password}",
18545         "type": "json"
18546       }
18547     ],
18548     "name": "GetMessages",
18549     "group": "Openchannel_Messages",
18550     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
18551     "version": "0.0.0",
18552     "filename": "server/api/openchannelMessage/index.js",
18553     "groupTitle": "Openchannel_Messages"
18554   },
18555   {
18556     "type": "get",
18557     "url": "/api/openchannel/messages/{id}",
18558     "title": "Gets a single Message",
18559     "examples": [
18560       {
18561         "title": "Example usage:",
18562         "content": "curl https://{domain}/api/openchannel/messages/{id} -v -u {name}:{password}",
18563         "type": "json"
18564       }
18565     ],
18566     "name": "ShowMessages",
18567     "group": "Openchannel_Messages",
18568     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18569     "version": "0.0.0",
18570     "filename": "server/api/openchannelMessage/index.js",
18571     "groupTitle": "Openchannel_Messages"
18572   },
18573   {
18574     "type": "put",
18575     "url": "/api/openchannel/messages/{id}/accept",
18576     "title": "Accepts message",
18577     "examples": [
18578       {
18579         "title": "Example usage:",
18580         "content": "curl https://{domain}/api/openchannel/messages/{id}/accept \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
18581         "type": "json"
18582       }
18583     ],
18584     "name": "acceptMessage",
18585     "group": "Openchannel_Messages",
18586     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18587     "version": "0.0.0",
18588     "filename": "server/api/openchannelMessage/index.js",
18589     "groupTitle": "Openchannel_Messages"
18590   },
18591   {
18592     "type": "put",
18593     "url": "/api/openchannel/messages/{id}/reject",
18594     "title": "Rejects message",
18595     "examples": [
18596       {
18597         "title": "Example usage:",
18598         "content": "curl https://{domain}/api/openchannel/messages/{id}/reject \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
18599         "type": "json"
18600       }
18601     ],
18602     "name": "rejectMessage",
18603     "group": "Openchannel_Messages",
18604     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18605     "version": "0.0.0",
18606     "filename": "server/api/openchannelMessage/index.js",
18607     "groupTitle": "Openchannel_Messages"
18608   },
18609   {
18610     "type": "put",
18611     "url": "/api/openchannel/messages/{id}",
18612     "title": "Update an existing Message",
18613     "examples": [
18614       {
18615         "title": "Example usage:",
18616         "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",
18617         "type": "json"
18618       }
18619     ],
18620     "name": "updateMessages",
18621     "group": "Openchannel_Messages",
18622     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18623     "version": "0.0.0",
18624     "filename": "server/api/openchannelMessage/index.js",
18625     "groupTitle": "Openchannel_Messages"
18626   },
18627   {
18628     "type": "post",
18629     "url": "/api/openchannel/reports/queue",
18630     "title": "Creates a new Openchannel Queue Report",
18631     "examples": [
18632       {
18633         "title": "Example usage:",
18634         "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",
18635         "type": "json"
18636       }
18637     ],
18638     "name": "CreateOpenchannel_Queue_Reports",
18639     "group": "Openchannel_Queue_Reports",
18640     "parameter": {
18641       "fields": {
18642         "Body": [
18643           {
18644             "group": "Body",
18645             "type": "String",
18646             "optional": false,
18647             "field": "uniqueid",
18648             "description": ""
18649           },
18650           {
18651             "group": "Body",
18652             "type": "String",
18653             "optional": true,
18654             "field": "from",
18655             "description": ""
18656           },
18657           {
18658             "group": "Body",
18659             "type": "String",
18660             "optional": true,
18661             "field": "joinAt",
18662             "description": ""
18663           },
18664           {
18665             "group": "Body",
18666             "type": "String",
18667             "optional": true,
18668             "field": "leaveAt",
18669             "description": ""
18670           },
18671           {
18672             "group": "Body",
18673             "type": "String",
18674             "optional": true,
18675             "field": "acceptAt",
18676             "description": ""
18677           },
18678           {
18679             "group": "Body",
18680             "type": "String",
18681             "optional": true,
18682             "field": "exitAt",
18683             "description": ""
18684           },
18685           {
18686             "group": "Body",
18687             "type": "String",
18688             "optional": true,
18689             "field": "reason",
18690             "description": ""
18691           }
18692         ]
18693       }
18694     },
18695     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18696     "version": "0.0.0",
18697     "filename": "server/api/openchannelQueueReport/index.js",
18698     "groupTitle": "Openchannel_Queue_Reports"
18699   },
18700   {
18701     "type": "delete",
18702     "url": "/api/openchannel/reports/queue/{id}",
18703     "title": "Deletes a Openchannel Queue Report",
18704     "examples": [
18705       {
18706         "title": "Example usage:",
18707         "content": "curl https://{domain}/api/openchannel/reports/queue/{id} -v -u {name}:{password} -X DELETE",
18708         "type": "json"
18709       }
18710     ],
18711     "name": "DeleteOpenchannel_Queue_Reports",
18712     "group": "Openchannel_Queue_Reports",
18713     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18714     "version": "0.0.0",
18715     "filename": "server/api/openchannelQueueReport/index.js",
18716     "groupTitle": "Openchannel_Queue_Reports"
18717   },
18718   {
18719     "type": "get",
18720     "url": "/api/openchannel/reports/queue/describe",
18721     "title": "Gets table info about Openchannel Queue Reports",
18722     "examples": [
18723       {
18724         "title": "Example usage:",
18725         "content": "curl https://{domain}/api/openchannel/reports/queue/describe -v -u {name}:{password}",
18726         "type": "json"
18727       }
18728     ],
18729     "name": "DescribeOpenchannel_Queue_Reports",
18730     "group": "Openchannel_Queue_Reports",
18731     "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>",
18732     "version": "0.0.0",
18733     "filename": "server/api/openchannelQueueReport/index.js",
18734     "groupTitle": "Openchannel_Queue_Reports"
18735   },
18736   {
18737     "type": "get",
18738     "url": "/api/openchannel/reports/queue",
18739     "title": "Gets a list of Openchannel Queue Reports",
18740     "examples": [
18741       {
18742         "title": "Example usage:",
18743         "content": "curl https://{domain}/api/openchannel/reports/queue -v -u {name}:{password}",
18744         "type": "json"
18745       }
18746     ],
18747     "name": "GetOpenchannel_Queue_Reports",
18748     "group": "Openchannel_Queue_Reports",
18749     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
18750     "version": "0.0.0",
18751     "filename": "server/api/openchannelQueueReport/index.js",
18752     "groupTitle": "Openchannel_Queue_Reports"
18753   },
18754   {
18755     "type": "get",
18756     "url": "/api/openchannel/reports/queue/{id}",
18757     "title": "Gets a single Openchannel Queue Report",
18758     "examples": [
18759       {
18760         "title": "Example usage:",
18761         "content": "curl https://{domain}/api/openchannel/reports/queue/{id} -v -u {name}:{password}",
18762         "type": "json"
18763       }
18764     ],
18765     "name": "ShowOpenchannel_Queue_Reports",
18766     "group": "Openchannel_Queue_Reports",
18767     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18768     "version": "0.0.0",
18769     "filename": "server/api/openchannelQueueReport/index.js",
18770     "groupTitle": "Openchannel_Queue_Reports"
18771   },
18772   {
18773     "type": "put",
18774     "url": "/api/openchannel/reports/queue/{id}",
18775     "title": "Update an existing Openchannel Queue Report",
18776     "examples": [
18777       {
18778         "title": "Example usage:",
18779         "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",
18780         "type": "json"
18781       }
18782     ],
18783     "name": "updateOpenchannel_Queue_Reports",
18784     "group": "Openchannel_Queue_Reports",
18785     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18786     "version": "0.0.0",
18787     "filename": "server/api/openchannelQueueReport/index.js",
18788     "groupTitle": "Openchannel_Queue_Reports"
18789   },
18790   {
18791     "type": "post",
18792     "url": "/api/openchannel/queues/{id}/users",
18793     "title": "Add agents to a queue",
18794     "examples": [
18795       {
18796         "title": "Example usage:",
18797         "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",
18798         "type": "json"
18799       }
18800     ],
18801     "name": "AddAgents",
18802     "group": "Openchannel_Queues",
18803     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18804     "version": "0.0.0",
18805     "filename": "server/api/openchannelQueue/index.js",
18806     "groupTitle": "Openchannel_Queues"
18807   },
18808   {
18809     "type": "post",
18810     "url": "/api/openchannel/queues/{id}/teams",
18811     "title": "Add teams to a queue",
18812     "examples": [
18813       {
18814         "title": "Example usage:",
18815         "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",
18816         "type": "json"
18817       }
18818     ],
18819     "name": "AddTeams",
18820     "group": "Openchannel_Queues",
18821     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18822     "version": "0.0.0",
18823     "filename": "server/api/openchannelQueue/index.js",
18824     "groupTitle": "Openchannel_Queues"
18825   },
18826   {
18827     "type": "post",
18828     "url": "/api/openchannel/queues",
18829     "title": "Creates a new Queue",
18830     "examples": [
18831       {
18832         "title": "Example usage:",
18833         "content": "curl https://{domain}/api/openchannel/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
18834         "type": "json"
18835       }
18836     ],
18837     "name": "CreateQueues",
18838     "group": "Openchannel_Queues",
18839     "parameter": {
18840       "fields": {
18841         "Body": [
18842           {
18843             "group": "Body",
18844             "type": "String",
18845             "optional": true,
18846             "field": "name",
18847             "description": ""
18848           },
18849           {
18850             "group": "Body",
18851             "type": "String",
18852             "optional": true,
18853             "field": "description",
18854             "description": ""
18855           },
18856           {
18857             "group": "Body",
18858             "type": "Integer",
18859             "optional": true,
18860             "field": "timeout",
18861             "description": ""
18862           },
18863           {
18864             "group": "Body",
18865             "type": "String",
18866             "allowedValues": [
18867               "\"rrmemory\"",
18868               "\"beepall\"",
18869               "\"roundrobin\""
18870             ],
18871             "optional": true,
18872             "field": "strategy",
18873             "description": ""
18874           }
18875         ]
18876       }
18877     },
18878     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18879     "version": "0.0.0",
18880     "filename": "server/api/openchannelQueue/index.js",
18881     "groupTitle": "Openchannel_Queues"
18882   },
18883   {
18884     "type": "delete",
18885     "url": "/api/openchannel/queues/{id}",
18886     "title": "Deletes a Queue",
18887     "examples": [
18888       {
18889         "title": "Example usage:",
18890         "content": "curl https://{domain}/api/openchannel/queues/{id} -v -u {name}:{password} -X DELETE",
18891         "type": "json"
18892       }
18893     ],
18894     "name": "DeleteQueues",
18895     "group": "Openchannel_Queues",
18896     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18897     "version": "0.0.0",
18898     "filename": "server/api/openchannelQueue/index.js",
18899     "groupTitle": "Openchannel_Queues"
18900   },
18901   {
18902     "type": "get",
18903     "url": "/api/openchannel/queues/describe",
18904     "title": "Gets table info about Queues",
18905     "examples": [
18906       {
18907         "title": "Example usage:",
18908         "content": "curl https://{domain}/api/openchannel/queues/describe -v -u {name}:{password}",
18909         "type": "json"
18910       }
18911     ],
18912     "name": "DescribeQueues",
18913     "group": "Openchannel_Queues",
18914     "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>",
18915     "version": "0.0.0",
18916     "filename": "server/api/openchannelQueue/index.js",
18917     "groupTitle": "Openchannel_Queues"
18918   },
18919   {
18920     "type": "get",
18921     "url": "/api/openchannel/queues/{id}/users",
18922     "title": "Gets queue agents",
18923     "examples": [
18924       {
18925         "title": "Example usage:",
18926         "content": "curl https://{domain}/api/openchannel/queues/{id}/users -v -u {name}:{password} -X POST",
18927         "type": "json"
18928       }
18929     ],
18930     "name": "GetAgents",
18931     "group": "Openchannel_Queues",
18932     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18933     "version": "0.0.0",
18934     "filename": "server/api/openchannelQueue/index.js",
18935     "groupTitle": "Openchannel_Queues"
18936   },
18937   {
18938     "type": "get",
18939     "url": "/api/openchannel/queues/{id}/members",
18940     "title": "GetMembers",
18941     "examples": [
18942       {
18943         "title": "Example usage:",
18944         "content": "curl https://{domain}/api/openchannel/queues/{id}/members  -v -u {name}:{password}",
18945         "type": "json"
18946       }
18947     ],
18948     "name": "GetMembers",
18949     "group": "Openchannel_Queues",
18950     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18951     "version": "0.0.0",
18952     "filename": "server/api/openchannelQueue/index.js",
18953     "groupTitle": "Openchannel_Queues"
18954   },
18955   {
18956     "type": "get",
18957     "url": "/api/openchannel/queues",
18958     "title": "Gets a list of Queues",
18959     "examples": [
18960       {
18961         "title": "Example usage:",
18962         "content": "curl https://{domain}/api/openchannel/queues -v -u {name}:{password}",
18963         "type": "json"
18964       }
18965     ],
18966     "name": "GetQueues",
18967     "group": "Openchannel_Queues",
18968     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
18969     "version": "0.0.0",
18970     "filename": "server/api/openchannelQueue/index.js",
18971     "groupTitle": "Openchannel_Queues"
18972   },
18973   {
18974     "type": "get",
18975     "url": "/api/openchannel/queues/{id}/teams",
18976     "title": "Gets queues list",
18977     "examples": [
18978       {
18979         "title": "Example usage:",
18980         "content": "curl https://{domain}/api/openchannel/queues/{id}/teams -v -u {name}:{password}",
18981         "type": "json"
18982       }
18983     ],
18984     "name": "GetTeams",
18985     "group": "Openchannel_Queues",
18986     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18987     "version": "0.0.0",
18988     "filename": "server/api/openchannelQueue/index.js",
18989     "groupTitle": "Openchannel_Queues"
18990   },
18991   {
18992     "type": "delete",
18993     "url": "/api/openchannel/queues/{id}/users",
18994     "title": "Removes agents from a queue",
18995     "examples": [
18996       {
18997         "title": "Example usage:",
18998         "content": "curl https://{domain}/api/openchannel/queues/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
18999         "type": "json"
19000       }
19001     ],
19002     "name": "RemoveAgents",
19003     "group": "Openchannel_Queues",
19004     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19005     "version": "0.0.0",
19006     "filename": "server/api/openchannelQueue/index.js",
19007     "groupTitle": "Openchannel_Queues"
19008   },
19009   {
19010     "type": "get",
19011     "url": "/api/openchannel/queues/{id}",
19012     "title": "Gets a single Queue",
19013     "examples": [
19014       {
19015         "title": "Example usage:",
19016         "content": "curl https://{domain}/api/openchannel/queues/{id} -v -u {name}:{password}",
19017         "type": "json"
19018       }
19019     ],
19020     "name": "ShowQueues",
19021     "group": "Openchannel_Queues",
19022     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19023     "version": "0.0.0",
19024     "filename": "server/api/openchannelQueue/index.js",
19025     "groupTitle": "Openchannel_Queues"
19026   },
19027   {
19028     "type": "put",
19029     "url": "/api/openchannel/queues/{id}",
19030     "title": "Update an existing Queue",
19031     "examples": [
19032       {
19033         "title": "Example usage:",
19034         "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",
19035         "type": "json"
19036       }
19037     ],
19038     "name": "updateQueues",
19039     "group": "Openchannel_Queues",
19040     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19041     "version": "0.0.0",
19042     "filename": "server/api/openchannelQueue/index.js",
19043     "groupTitle": "Openchannel_Queues"
19044   },
19045   {
19046     "type": "post",
19047     "url": "/api/openchannel/reports/transfer",
19048     "title": "Creates a new Openchannel Transfer Report",
19049     "examples": [
19050       {
19051         "title": "Example usage:",
19052         "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",
19053         "type": "json"
19054       }
19055     ],
19056     "name": "CreateOpenchannel_Transfer_Reports",
19057     "group": "Openchannel_Transfer_Reports",
19058     "parameter": {
19059       "fields": {
19060         "Body": [
19061           {
19062             "group": "Body",
19063             "type": "String",
19064             "optional": false,
19065             "field": "uniqueid",
19066             "description": ""
19067           },
19068           {
19069             "group": "Body",
19070             "type": "String",
19071             "allowedValues": [
19072               "\"account\"",
19073               "\"agent\"",
19074               "\"queue\""
19075             ],
19076             "optional": false,
19077             "field": "type",
19078             "description": ""
19079           },
19080           {
19081             "group": "Body",
19082             "type": "String",
19083             "optional": false,
19084             "field": "transferredAt",
19085             "description": ""
19086           }
19087         ]
19088       }
19089     },
19090     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19091     "version": "0.0.0",
19092     "filename": "server/api/openchannelTransferReport/index.js",
19093     "groupTitle": "Openchannel_Transfer_Reports"
19094   },
19095   {
19096     "type": "delete",
19097     "url": "/api/openchannel/reports/transfer/{id}",
19098     "title": "Deletes a Openchannel Transfer Report",
19099     "examples": [
19100       {
19101         "title": "Example usage:",
19102         "content": "curl https://{domain}/api/openchannel/reports/transfer/{id} -v -u {name}:{password} -X DELETE",
19103         "type": "json"
19104       }
19105     ],
19106     "name": "DeleteOpenchannel_Transfer_Reports",
19107     "group": "Openchannel_Transfer_Reports",
19108     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19109     "version": "0.0.0",
19110     "filename": "server/api/openchannelTransferReport/index.js",
19111     "groupTitle": "Openchannel_Transfer_Reports"
19112   },
19113   {
19114     "type": "get",
19115     "url": "/api/openchannel/reports/transfer/describe",
19116     "title": "Gets table info about Openchannel Transfer Reports",
19117     "examples": [
19118       {
19119         "title": "Example usage:",
19120         "content": "curl https://{domain}/api/openchannel/reports/transfer/describe -v -u {name}:{password}",
19121         "type": "json"
19122       }
19123     ],
19124     "name": "DescribeOpenchannel_Transfer_Reports",
19125     "group": "Openchannel_Transfer_Reports",
19126     "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>",
19127     "version": "0.0.0",
19128     "filename": "server/api/openchannelTransferReport/index.js",
19129     "groupTitle": "Openchannel_Transfer_Reports"
19130   },
19131   {
19132     "type": "get",
19133     "url": "/api/openchannel/reports/transfer",
19134     "title": "Gets a list of Openchannel Transfer Reports",
19135     "examples": [
19136       {
19137         "title": "Example usage:",
19138         "content": "curl https://{domain}/api/openchannel/reports/transfer -v -u {name}:{password}",
19139         "type": "json"
19140       }
19141     ],
19142     "name": "GetOpenchannel_Transfer_Reports",
19143     "group": "Openchannel_Transfer_Reports",
19144     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
19145     "version": "0.0.0",
19146     "filename": "server/api/openchannelTransferReport/index.js",
19147     "groupTitle": "Openchannel_Transfer_Reports"
19148   },
19149   {
19150     "type": "get",
19151     "url": "/api/openchannel/reports/transfer/{id}",
19152     "title": "Gets a single Openchannel Transfer Report",
19153     "examples": [
19154       {
19155         "title": "Example usage:",
19156         "content": "curl https://{domain}/api/openchannel/reports/transfer/{id} -v -u {name}:{password}",
19157         "type": "json"
19158       }
19159     ],
19160     "name": "ShowOpenchannel_Transfer_Reports",
19161     "group": "Openchannel_Transfer_Reports",
19162     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19163     "version": "0.0.0",
19164     "filename": "server/api/openchannelTransferReport/index.js",
19165     "groupTitle": "Openchannel_Transfer_Reports"
19166   },
19167   {
19168     "type": "put",
19169     "url": "/api/openchannel/reports/transfer/{id}",
19170     "title": "Update an existing Openchannel Transfer Report",
19171     "examples": [
19172       {
19173         "title": "Example usage:",
19174         "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",
19175         "type": "json"
19176       }
19177     ],
19178     "name": "updateOpenchannel_Transfer_Reports",
19179     "group": "Openchannel_Transfer_Reports",
19180     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19181     "version": "0.0.0",
19182     "filename": "server/api/openchannelTransferReport/index.js",
19183     "groupTitle": "Openchannel_Transfer_Reports"
19184   },
19185   {
19186     "type": "post",
19187     "url": "/api/pauses",
19188     "title": "Creates a new Pause",
19189     "examples": [
19190       {
19191         "title": "Example usage:",
19192         "content": "curl https://{domain}/api/pauses -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
19193         "type": "json"
19194       }
19195     ],
19196     "name": "CreatePauses",
19197     "group": "Pauses",
19198     "parameter": {
19199       "fields": {
19200         "Body": [
19201           {
19202             "group": "Body",
19203             "type": "String",
19204             "optional": false,
19205             "field": "name",
19206             "description": ""
19207           },
19208           {
19209             "group": "Body",
19210             "type": "String",
19211             "optional": true,
19212             "field": "description",
19213             "description": ""
19214           }
19215         ]
19216       }
19217     },
19218     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19219     "version": "0.0.0",
19220     "filename": "server/api/pause/index.js",
19221     "groupTitle": "Pauses"
19222   },
19223   {
19224     "type": "delete",
19225     "url": "/api/pauses/{id}",
19226     "title": "Deletes a Pause",
19227     "examples": [
19228       {
19229         "title": "Example usage:",
19230         "content": "curl https://{domain}/api/pauses/{id} -v -u {name}:{password} -X DELETE",
19231         "type": "json"
19232       }
19233     ],
19234     "name": "DeletePauses",
19235     "group": "Pauses",
19236     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19237     "version": "0.0.0",
19238     "filename": "server/api/pause/index.js",
19239     "groupTitle": "Pauses"
19240   },
19241   {
19242     "type": "get",
19243     "url": "/api/pauses",
19244     "title": "Gets a list of Pauses",
19245     "examples": [
19246       {
19247         "title": "Example usage:",
19248         "content": "curl https://{domain}/api/pauses -v -u {name}:{password}",
19249         "type": "json"
19250       }
19251     ],
19252     "name": "GetPauses",
19253     "group": "Pauses",
19254     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
19255     "version": "0.0.0",
19256     "filename": "server/api/pause/index.js",
19257     "groupTitle": "Pauses"
19258   },
19259   {
19260     "type": "get",
19261     "url": "/api/pauses/{id}",
19262     "title": "Gets a single Pause",
19263     "examples": [
19264       {
19265         "title": "Example usage:",
19266         "content": "curl https://{domain}/api/pauses/{id} -v -u {name}:{password}",
19267         "type": "json"
19268       }
19269     ],
19270     "name": "ShowPauses",
19271     "group": "Pauses",
19272     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19273     "version": "0.0.0",
19274     "filename": "server/api/pause/index.js",
19275     "groupTitle": "Pauses"
19276   },
19277   {
19278     "type": "put",
19279     "url": "/api/pauses/{id}",
19280     "title": "Update an existing Pause",
19281     "examples": [
19282       {
19283         "title": "Example usage:",
19284         "content": "curl https://{domain}/api/pauses/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
19285         "type": "json"
19286       }
19287     ],
19288     "name": "updatePauses",
19289     "group": "Pauses",
19290     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19291     "version": "0.0.0",
19292     "filename": "server/api/pause/index.js",
19293     "groupTitle": "Pauses"
19294   },
19295   {
19296     "type": "get",
19297     "url": "/api/plugins",
19298     "title": "Gets a list of Plugins",
19299     "examples": [
19300       {
19301         "title": "Example usage:",
19302         "content": "curl https://{domain}/api/plugins -v -u {name}:{password}",
19303         "type": "json"
19304       }
19305     ],
19306     "name": "GetPlugins",
19307     "group": "Plugins",
19308     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
19309     "version": "0.0.0",
19310     "filename": "server/api/plugin/index.js",
19311     "groupTitle": "Plugins"
19312   },
19313   {
19314     "type": "get",
19315     "url": "/api/plugins/{id}",
19316     "title": "Gets a single Plugin",
19317     "examples": [
19318       {
19319         "title": "Example usage:",
19320         "content": "curl https://{domain}/api/plugins/{id} -v -u {name}:{password}",
19321         "type": "json"
19322       }
19323     ],
19324     "name": "ShowPlugins",
19325     "group": "Plugins",
19326     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19327     "version": "0.0.0",
19328     "filename": "server/api/plugin/index.js",
19329     "groupTitle": "Plugins"
19330   },
19331   {
19332     "type": "delete",
19333     "url": "/api/plugins/{id}",
19334     "title": "Delete a plugin",
19335     "examples": [
19336       {
19337         "title": "Example usage:",
19338         "content": "curl https://{domain}/api/plugins/{id} -v -u {name}:{password} -X DELETE",
19339         "type": "json"
19340       }
19341     ],
19342     "name": "destroyPlugin",
19343     "group": "Plugins",
19344     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19345     "version": "0.0.0",
19346     "filename": "server/api/plugin/index.js",
19347     "groupTitle": "Plugins"
19348   },
19349   {
19350     "type": "get",
19351     "url": "/api/plugins/{id}/download",
19352     "title": "Download plugin source code",
19353     "examples": [
19354       {
19355         "title": "Example usage:",
19356         "content": "curl https://{domain}/api/plugins/{id}/download -v -u {name}:{password} -X GET",
19357         "type": "json"
19358       }
19359     ],
19360     "name": "download",
19361     "group": "Plugins",
19362     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19363     "version": "0.0.0",
19364     "filename": "server/api/plugin/index.js",
19365     "groupTitle": "Plugins"
19366   },
19367   {
19368     "type": "put",
19369     "url": "/api/plugins/{id}",
19370     "title": "Update an existing plugin",
19371     "examples": [
19372       {
19373         "title": "Example usage:",
19374         "content": "curl https://{domain}/api/plugins/{id} -v -u {name}:{password} -X PUT",
19375         "type": "json"
19376       }
19377     ],
19378     "name": "updatePlugin",
19379     "group": "Plugins",
19380     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19381     "version": "0.0.0",
19382     "filename": "server/api/plugin/index.js",
19383     "groupTitle": "Plugins"
19384   },
19385   {
19386     "type": "post",
19387     "url": "/api/plugins",
19388     "title": "Upload new plugin",
19389     "examples": [
19390       {
19391         "title": "Example usage:",
19392         "content": "curl https://{domain}/api/plugins -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
19393         "type": "json"
19394       }
19395     ],
19396     "name": "uploadPlugin",
19397     "group": "Plugins",
19398     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19399     "version": "0.0.0",
19400     "filename": "server/api/plugin/index.js",
19401     "groupTitle": "Plugins"
19402   },
19403   {
19404     "type": "post",
19405     "url": "/api/plugins/webhook?hostname={host}&port={port}&encoding={encoding}&json={json}&path={path}",
19406     "title": "Redirect a plugin request to the specified path",
19407     "examples": [
19408       {
19409         "title": "Example usage:",
19410         "content": "curl https://{domain}/api/plugins/webhook?port={port}&path={path} -H 'Content-Type: application/json' -X POST",
19411         "type": "json"
19412       }
19413     ],
19414     "name": "webhookPlugin",
19415     "group": "Plugins",
19416     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19417     "version": "0.0.0",
19418     "filename": "server/api/plugin/index.js",
19419     "groupTitle": "Plugins"
19420   },
19421   {
19422     "type": "get",
19423     "url": "/api/plugins/webhook?hostname={host}&port={port}&encoding={encoding}&json={json}&path={path}",
19424     "title": "Redirect a plugin request to the specified path",
19425     "examples": [
19426       {
19427         "title": "Example usage:",
19428         "content": "curl https://{domain}/api/plugins/webhook?port={port}&path={path} -v -u {name}:{password} -X GET",
19429         "type": "json"
19430       }
19431     ],
19432     "name": "webhookPlugin",
19433     "group": "Plugins",
19434     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19435     "version": "0.0.0",
19436     "filename": "server/api/plugin/index.js",
19437     "groupTitle": "Plugins"
19438   },
19439   {
19440     "type": "delete",
19441     "url": "/api/pm2/{id}",
19442     "title": "Deletes an existing process",
19443     "examples": [
19444       {
19445         "title": "Example usage:",
19446         "content": "curl https://{domain}/api/pm2/{id} -v -u {name}:{password} -X DELETE",
19447         "type": "json"
19448       }
19449     ],
19450     "name": "DeletePm2Process",
19451     "group": "Pm2",
19452     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19453     "version": "0.0.0",
19454     "filename": "server/api/pm2/index.js",
19455     "groupTitle": "Pm2"
19456   },
19457   {
19458     "type": "get",
19459     "url": "/api/pm2/{id}",
19460     "title": "Gets a single pm2 process",
19461     "examples": [
19462       {
19463         "title": "Example usage:",
19464         "content": "curl https://{domain}/api/pm2/{id} -v -u {name}:{password}",
19465         "type": "json"
19466       }
19467     ],
19468     "name": "GetPm2Process",
19469     "group": "Pm2",
19470     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19471     "version": "0.0.0",
19472     "filename": "server/api/pm2/index.js",
19473     "groupTitle": "Pm2"
19474   },
19475   {
19476     "type": "get",
19477     "url": "/api/pm2",
19478     "title": "Gets pm2 processes",
19479     "examples": [
19480       {
19481         "title": "Example usage:",
19482         "content": "curl https://{domain}/api/pm2 -v -u {name}:{password}",
19483         "type": "json"
19484       }
19485     ],
19486     "name": "GetPm2Processes",
19487     "group": "Pm2",
19488     "description": "<p>Motion returns the pm2 processes list.</p>",
19489     "version": "0.0.0",
19490     "filename": "server/api/pm2/index.js",
19491     "groupTitle": "Pm2"
19492   },
19493   {
19494     "type": "post",
19495     "url": "/api/pm2",
19496     "title": "Start a single pm2 process",
19497     "examples": [
19498       {
19499         "title": "Example usage:",
19500         "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",
19501         "type": "json"
19502       }
19503     ],
19504     "name": "StartPm2Process",
19505     "group": "Pm2",
19506     "parameter": {
19507       "fields": {
19508         "Body": [
19509           {
19510             "group": "Body",
19511             "type": "String",
19512             "optional": false,
19513             "field": "name",
19514             "description": ""
19515           },
19516           {
19517             "group": "Body",
19518             "type": "String",
19519             "optional": false,
19520             "field": "script",
19521             "description": ""
19522           }
19523         ]
19524       }
19525     },
19526     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19527     "version": "0.0.0",
19528     "filename": "server/api/pm2/index.js",
19529     "groupTitle": "Pm2"
19530   },
19531   {
19532     "type": "put",
19533     "url": "/api/pm2/{id}",
19534     "title": "Update an existing process",
19535     "examples": [
19536       {
19537         "title": "Example usage:",
19538         "content": "curl https://{domain}/api/pm2/{id} -d '{\"status\": \"online\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
19539         "type": "json"
19540       }
19541     ],
19542     "name": "UpdatePm2Process",
19543     "group": "Pm2",
19544     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19545     "version": "0.0.0",
19546     "filename": "server/api/pm2/index.js",
19547     "groupTitle": "Pm2"
19548   },
19549   {
19550     "type": "get",
19551     "url": "/api/rpc/campaigns/",
19552     "title": "Gets a list of campaigns",
19553     "examples": [
19554       {
19555         "title": "Example usage:",
19556         "content": "curl https://{domain}/api/rpc/campaigns -v -u {name}:{password}",
19557         "type": "json"
19558       }
19559     ],
19560     "name": "Campaigns",
19561     "group": "RPC_Realtime",
19562     "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>",
19563     "version": "0.0.0",
19564     "filename": "server/api/rpc/index.js",
19565     "groupTitle": "RPC_Realtime"
19566   },
19567   {
19568     "type": "get",
19569     "url": "/api/rpc/fax/accounts",
19570     "title": "Gets a list of FaxAccounts",
19571     "examples": [
19572       {
19573         "title": "Example usage:",
19574         "content": "curl https://{domain}/api/rpc/fax/accounts -v -u {name}:{password}",
19575         "type": "json"
19576       }
19577     ],
19578     "name": "FaxAccounts",
19579     "group": "RPC_Realtime",
19580     "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>",
19581     "version": "0.0.0",
19582     "filename": "server/api/rpc/index.js",
19583     "groupTitle": "RPC_Realtime"
19584   },
19585   {
19586     "type": "put",
19587     "url": "/api/rpc/agents/:id/capacity",
19588     "title": "Sets agent capacity",
19589     "examples": [
19590       {
19591         "title": "Example usage:",
19592         "content": "curl https://{domain}/api/rpc/agents/:id/capacity -v -u {name}:{password}",
19593         "type": "json"
19594       }
19595     ],
19596     "name": "RTAgentCapacity",
19597     "group": "RPC_Realtime",
19598     "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>",
19599     "version": "0.0.0",
19600     "filename": "server/api/rpc/index.js",
19601     "groupTitle": "RPC_Realtime"
19602   },
19603   {
19604     "type": "get",
19605     "url": "/api/rpc/agents",
19606     "title": "Gets a list of RTAgents",
19607     "examples": [
19608       {
19609         "title": "Example usage:",
19610         "content": "curl https://{domain}/api/rpc/agents -v -u {name}:{password}",
19611         "type": "json"
19612       }
19613     ],
19614     "name": "RTAgents",
19615     "group": "RPC_Realtime",
19616     "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>",
19617     "version": "0.0.0",
19618     "filename": "server/api/rpc/index.js",
19619     "groupTitle": "RPC_Realtime"
19620   },
19621   {
19622     "type": "get",
19623     "url": "/api/rpc/chat/queues",
19624     "title": "Gets a list of RTChatQueues",
19625     "examples": [
19626       {
19627         "title": "Example usage:",
19628         "content": "curl https://{domain}/api/rpc/chat/queues -v -u {name}:{password}",
19629         "type": "json"
19630       }
19631     ],
19632     "name": "RTChatQueues",
19633     "group": "RPC_Realtime",
19634     "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>",
19635     "version": "0.0.0",
19636     "filename": "server/api/rpc/index.js",
19637     "groupTitle": "RPC_Realtime"
19638   },
19639   {
19640     "type": "get",
19641     "url": "/api/rpc/fax/queues",
19642     "title": "Gets a list of RTFaxQueues",
19643     "examples": [
19644       {
19645         "title": "Example usage:",
19646         "content": "curl https://{domain}/api/rpc/fax/queues -v -u {name}:{password}",
19647         "type": "json"
19648       }
19649     ],
19650     "name": "RTFaxQueues",
19651     "group": "RPC_Realtime",
19652     "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>",
19653     "version": "0.0.0",
19654     "filename": "server/api/rpc/index.js",
19655     "groupTitle": "RPC_Realtime"
19656   },
19657   {
19658     "type": "get",
19659     "url": "/api/rpc/mail/accounts",
19660     "title": "Gets a list of RTMailAccounts",
19661     "examples": [
19662       {
19663         "title": "Example usage:",
19664         "content": "curl https://{domain}/api/rpc/mail/accounts -v -u {name}:{password}",
19665         "type": "json"
19666       }
19667     ],
19668     "name": "RTMailAccounts",
19669     "group": "RPC_Realtime",
19670     "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>",
19671     "version": "0.0.0",
19672     "filename": "server/api/rpc/index.js",
19673     "groupTitle": "RPC_Realtime"
19674   },
19675   {
19676     "type": "get",
19677     "url": "/api/rpc/mail/queues",
19678     "title": "Gets a list of RTMailQueues",
19679     "examples": [
19680       {
19681         "title": "Example usage:",
19682         "content": "curl https://{domain}/api/rpc/mail/queues -v -u {name}:{password}",
19683         "type": "json"
19684       }
19685     ],
19686     "name": "RTMailQueues",
19687     "group": "RPC_Realtime",
19688     "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>",
19689     "version": "0.0.0",
19690     "filename": "server/api/rpc/index.js",
19691     "groupTitle": "RPC_Realtime"
19692   },
19693   {
19694     "type": "get",
19695     "url": "/api/rpc/openchannel/queues",
19696     "title": "Gets a list of RTOpenchannelQueues",
19697     "examples": [
19698       {
19699         "title": "Example usage:",
19700         "content": "curl https://{domain}/api/rpc/openchannel/queues -v -u {name}:{password}",
19701         "type": "json"
19702       }
19703     ],
19704     "name": "RTOpenchannelQueues",
19705     "group": "RPC_Realtime",
19706     "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>",
19707     "version": "0.0.0",
19708     "filename": "server/api/rpc/index.js",
19709     "groupTitle": "RPC_Realtime"
19710   },
19711   {
19712     "type": "get",
19713     "url": "/api/rpc/outbound/channels",
19714     "title": "Gets a list of RTOutboundChannels",
19715     "examples": [
19716       {
19717         "title": "Example usage:",
19718         "content": "curl https://{domain}/api/rpc/outbound/channels -v -u {name}:{password}",
19719         "type": "json"
19720       }
19721     ],
19722     "name": "RTOutboundChannels",
19723     "group": "RPC_Realtime",
19724     "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>",
19725     "version": "0.0.0",
19726     "filename": "server/api/rpc/index.js",
19727     "groupTitle": "RPC_Realtime"
19728   },
19729   {
19730     "type": "get",
19731     "url": "/api/rpc/sms/queues",
19732     "title": "Gets a list of RTSmsQueues",
19733     "examples": [
19734       {
19735         "title": "Example usage:",
19736         "content": "curl https://{domain}/api/rpc/sms/queues -v -u {name}:{password}",
19737         "type": "json"
19738       }
19739     ],
19740     "name": "RTSmsQueues",
19741     "group": "RPC_Realtime",
19742     "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>",
19743     "version": "0.0.0",
19744     "filename": "server/api/rpc/index.js",
19745     "groupTitle": "RPC_Realtime"
19746   },
19747   {
19748     "type": "get",
19749     "url": "/api/rpc/telephones",
19750     "title": "Gets a list of RTTelephones",
19751     "examples": [
19752       {
19753         "title": "Example usage:",
19754         "content": "curl https://{domain}/api/rpc/telephones -v -u {name}:{password}",
19755         "type": "json"
19756       }
19757     ],
19758     "name": "RTTelephones",
19759     "group": "RPC_Realtime",
19760     "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>",
19761     "version": "0.0.0",
19762     "filename": "server/api/rpc/index.js",
19763     "groupTitle": "RPC_Realtime"
19764   },
19765   {
19766     "type": "get",
19767     "url": "/api/rpc/trunks",
19768     "title": "Gets a list of RTTrunks",
19769     "examples": [
19770       {
19771         "title": "Example usage:",
19772         "content": "curl https://{domain}/api/rpc/trunks -v -u {name}:{password}",
19773         "type": "json"
19774       }
19775     ],
19776     "name": "RTTrunks",
19777     "group": "RPC_Realtime",
19778     "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>",
19779     "version": "0.0.0",
19780     "filename": "server/api/rpc/index.js",
19781     "groupTitle": "RPC_Realtime"
19782   },
19783   {
19784     "type": "get",
19785     "url": "/api/rpc/voice/channels",
19786     "title": "Gets a list of RTVoiceChannelMixMonitor",
19787     "examples": [
19788       {
19789         "title": "Example usage:",
19790         "content": "curl https://{domain}/api/rpc/voice/channels/{uniqueid}/mixmonitor -v -u {name}:{password}",
19791         "type": "json"
19792       }
19793     ],
19794     "name": "RTVoiceChannelMixMonitor",
19795     "group": "RPC_Realtime",
19796     "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>",
19797     "version": "0.0.0",
19798     "filename": "server/api/rpc/index.js",
19799     "groupTitle": "RPC_Realtime"
19800   },
19801   {
19802     "type": "get",
19803     "url": "/api/rpc/voice/channels",
19804     "title": "Gets a list of RTVoiceChannelStopMixMonitor",
19805     "examples": [
19806       {
19807         "title": "Example usage:",
19808         "content": "curl https://{domain}/api/rpc/voice/channels/{uniqueid}/stopmixmonitor -v -u {name}:{password}",
19809         "type": "json"
19810       }
19811     ],
19812     "name": "RTVoiceChannelStopMixMonitor",
19813     "group": "RPC_Realtime",
19814     "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>",
19815     "version": "0.0.0",
19816     "filename": "server/api/rpc/index.js",
19817     "groupTitle": "RPC_Realtime"
19818   },
19819   {
19820     "type": "get",
19821     "url": "/api/rpc/voice/channels",
19822     "title": "Gets a list of RTVoiceChannels",
19823     "examples": [
19824       {
19825         "title": "Example usage:",
19826         "content": "curl https://{domain}/api/rpc/voice/channels -v -u {name}:{password}",
19827         "type": "json"
19828       }
19829     ],
19830     "name": "RTVoiceChannels",
19831     "group": "RPC_Realtime",
19832     "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>",
19833     "version": "0.0.0",
19834     "filename": "server/api/rpc/index.js",
19835     "groupTitle": "RPC_Realtime"
19836   },
19837   {
19838     "type": "get",
19839     "url": "/api/rpc/voice/queues/channels/{uniqueid}",
19840     "title": "Gets a single RTVoiceQueueChannel",
19841     "examples": [
19842       {
19843         "title": "Example usage:",
19844         "content": "curl https://{domain}/api/rpc/voice/queues/channels/{uniqueid} -v -u {name}:{password}",
19845         "type": "json"
19846       }
19847     ],
19848     "name": "RTVoiceQueueChannel",
19849     "group": "RPC_Realtime",
19850     "description": "<p>Motion will return a specific realtime voice queue channel.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19851     "version": "0.0.0",
19852     "filename": "server/api/rpc/index.js",
19853     "groupTitle": "RPC_Realtime"
19854   },
19855   {
19856     "type": "get",
19857     "url": "/api/rpc/voice/queues/channels/{uniqueid}/hangup",
19858     "title": "Hangup a single RTVoiceQueueChannel",
19859     "examples": [
19860       {
19861         "title": "Example usage:",
19862         "content": "curl https://{domain}/api/rpc/voice/queues/channels/{uniqueid}/hangup -v -u {name}:{password}",
19863         "type": "json"
19864       }
19865     ],
19866     "name": "RTVoiceQueueChannelHangup",
19867     "group": "RPC_Realtime",
19868     "description": "<p>Motion will hangup a specific realtime voice queue channel.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19869     "version": "0.0.0",
19870     "filename": "server/api/rpc/index.js",
19871     "groupTitle": "RPC_Realtime"
19872   },
19873   {
19874     "type": "get",
19875     "url": "/api/rpc/voice/queues/channels/{uniqueid}/redirect/{exten}",
19876     "title": "Hangup a single RTVoiceQueueChannel",
19877     "examples": [
19878       {
19879         "title": "Example usage:",
19880         "content": "curl https://{domain}/api/rpc/voice/queues/channels/{uniqueid}/redirect/{exten} -v -u {name}:{password}",
19881         "type": "json"
19882       }
19883     ],
19884     "name": "RTVoiceQueueChannelRedirect",
19885     "group": "RPC_Realtime",
19886     "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>",
19887     "version": "0.0.0",
19888     "filename": "server/api/rpc/index.js",
19889     "groupTitle": "RPC_Realtime"
19890   },
19891   {
19892     "type": "get",
19893     "url": "/api/rpc/voice/queues/preview/{id}",
19894     "title": "Gets a single preview contact",
19895     "examples": [
19896       {
19897         "title": "Example usage:",
19898         "content": "curl https://{domain}/api/rpc/voice/queues/preview/{id} -v -u {name}:{password}",
19899         "type": "json"
19900       }
19901     ],
19902     "name": "RTVoiceQueuePreview",
19903     "group": "RPC_Realtime",
19904     "description": "<p>Motion will return a specific preview contact.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19905     "version": "0.0.0",
19906     "filename": "server/api/rpc/index.js",
19907     "groupTitle": "RPC_Realtime"
19908   },
19909   {
19910     "type": "get",
19911     "url": "/api/rpc/outbound",
19912     "title": "Gets a list of RTOutbound",
19913     "examples": [
19914       {
19915         "title": "Example usage:",
19916         "content": "curl https://{domain}/api/rpc/outbound -v -u {name}:{password}",
19917         "type": "json"
19918       }
19919     ],
19920     "name": "RTVoiceQueues",
19921     "group": "RPC_Realtime",
19922     "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>",
19923     "version": "0.0.0",
19924     "filename": "server/api/rpc/index.js",
19925     "groupTitle": "RPC_Realtime"
19926   },
19927   {
19928     "type": "get",
19929     "url": "/api/rpc/voice/queues",
19930     "title": "Gets a list of RTVoiceQueues",
19931     "examples": [
19932       {
19933         "title": "Example usage:",
19934         "content": "curl https://{domain}/api/rpc/voice/queues -v -u {name}:{password}",
19935         "type": "json"
19936       }
19937     ],
19938     "name": "RTVoiceQueues",
19939     "group": "RPC_Realtime",
19940     "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>",
19941     "version": "0.0.0",
19942     "filename": "server/api/rpc/index.js",
19943     "groupTitle": "RPC_Realtime"
19944   },
19945   {
19946     "type": "get",
19947     "url": "/api/rpc/voice/queues/channels",
19948     "title": "Gets a list of RTVoiceQueuesChannels",
19949     "examples": [
19950       {
19951         "title": "Example usage:",
19952         "content": "curl https://{domain}/api/rpc/voice/queues/channels -v -u {name}:{password}",
19953         "type": "json"
19954       }
19955     ],
19956     "name": "RTVoiceQueuesChannels",
19957     "group": "RPC_Realtime",
19958     "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>",
19959     "version": "0.0.0",
19960     "filename": "server/api/rpc/index.js",
19961     "groupTitle": "RPC_Realtime"
19962   },
19963   {
19964     "type": "get",
19965     "url": "/api/rpc/chat/queues/{id}",
19966     "title": "Gets a single RTChatQueue",
19967     "examples": [
19968       {
19969         "title": "Example usage:",
19970         "content": "curl https://{domain}/api/rpc/chat/queues/{id} -v -u {name}:{password}",
19971         "type": "json"
19972       }
19973     ],
19974     "name": "ShowRTChatQueues",
19975     "group": "RPC_Realtime",
19976     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19977     "version": "0.0.0",
19978     "filename": "server/api/rpc/index.js",
19979     "groupTitle": "RPC_Realtime"
19980   },
19981   {
19982     "type": "get",
19983     "url": "/api/rpc/fax/queues/{id}",
19984     "title": "Gets a single RTFaxQueue",
19985     "examples": [
19986       {
19987         "title": "Example usage:",
19988         "content": "curl https://{domain}/api/rpc/fax/queues/{id} -v -u {name}:{password}",
19989         "type": "json"
19990       }
19991     ],
19992     "name": "ShowRTFaxQueues",
19993     "group": "RPC_Realtime",
19994     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19995     "version": "0.0.0",
19996     "filename": "server/api/rpc/index.js",
19997     "groupTitle": "RPC_Realtime"
19998   },
19999   {
20000     "type": "get",
20001     "url": "/api/rpc/mail/queues/{id}",
20002     "title": "Gets a single RTMailQueue",
20003     "examples": [
20004       {
20005         "title": "Example usage:",
20006         "content": "curl https://{domain}/api/rpc/mail/queues/{id} -v -u {name}:{password}",
20007         "type": "json"
20008       }
20009     ],
20010     "name": "ShowRTMailQueues",
20011     "group": "RPC_Realtime",
20012     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20013     "version": "0.0.0",
20014     "filename": "server/api/rpc/index.js",
20015     "groupTitle": "RPC_Realtime"
20016   },
20017   {
20018     "type": "get",
20019     "url": "/api/rpc/openchannel/queues/{id}",
20020     "title": "Gets a single RTOpenchannelQueue",
20021     "examples": [
20022       {
20023         "title": "Example usage:",
20024         "content": "curl https://{domain}/api/rpc/openchannel/queues/{id} -v -u {name}:{password}",
20025         "type": "json"
20026       }
20027     ],
20028     "name": "ShowRTOpenchannelQueues",
20029     "group": "RPC_Realtime",
20030     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20031     "version": "0.0.0",
20032     "filename": "server/api/rpc/index.js",
20033     "groupTitle": "RPC_Realtime"
20034   },
20035   {
20036     "type": "get",
20037     "url": "/api/rpc/sms/queues/{id}",
20038     "title": "Gets a single RTSmsQueue",
20039     "examples": [
20040       {
20041         "title": "Example usage:",
20042         "content": "curl https://{domain}/api/rpc/sms/queues/{id} -v -u {name}:{password}",
20043         "type": "json"
20044       }
20045     ],
20046     "name": "ShowRTSmsQueues",
20047     "group": "RPC_Realtime",
20048     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20049     "version": "0.0.0",
20050     "filename": "server/api/rpc/index.js",
20051     "groupTitle": "RPC_Realtime"
20052   },
20053   {
20054     "type": "get",
20055     "url": "/api/rpc/voice/queues/{id}",
20056     "title": "Gets a single RTVoiceQueue",
20057     "examples": [
20058       {
20059         "title": "Example usage:",
20060         "content": "curl https://{domain}/api/rpc/voice/queues/{id} -v -u {name}:{password}",
20061         "type": "json"
20062       }
20063     ],
20064     "name": "ShowRTVoiceQueues",
20065     "group": "RPC_Realtime",
20066     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20067     "version": "0.0.0",
20068     "filename": "server/api/rpc/index.js",
20069     "groupTitle": "RPC_Realtime"
20070   },
20071   {
20072     "type": "put",
20073     "url": "/api/rpc/voice/{id}/queues",
20074     "title": "Updates a single VoiceQueue",
20075     "examples": [
20076       {
20077         "title": "Example usage:",
20078         "content": "curl https://{domain}/api/rpc/voice/queues/{id} -v -u {name}:{password}",
20079         "type": "json"
20080       }
20081     ],
20082     "name": "UpdateVoiceQueues",
20083     "group": "RPC_Realtime",
20084     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20085     "version": "0.0.0",
20086     "filename": "server/api/rpc/index.js",
20087     "groupTitle": "RPC_Realtime"
20088   },
20089   {
20090     "type": "post",
20091     "url": "/api/rpc/agents/:id/notify",
20092     "title": "Notify message to a specific agent",
20093     "examples": [
20094       {
20095         "title": "Example usage:",
20096         "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",
20097         "type": "json"
20098       }
20099     ],
20100     "name": "agentNotify",
20101     "group": "RPC_Realtime",
20102     "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>",
20103     "version": "0.0.0",
20104     "filename": "server/api/rpc/index.js",
20105     "groupTitle": "RPC_Realtime"
20106   },
20107   {
20108     "type": "post",
20109     "url": "/api/rpc/chat/queues/:id/notify",
20110     "title": "Notify message to a specific queue",
20111     "examples": [
20112       {
20113         "title": "Example usage:",
20114         "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",
20115         "type": "json"
20116       }
20117     ],
20118     "name": "chatQueueNotify",
20119     "group": "RPC_Realtime",
20120     "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>",
20121     "version": "0.0.0",
20122     "filename": "server/api/rpc/index.js",
20123     "groupTitle": "RPC_Realtime"
20124   },
20125   {
20126     "type": "get",
20127     "url": "/api/rpc/chat/queues/waitinginteractions",
20128     "title": "Gets a list of chatQueuesWaitingInteractions",
20129     "examples": [
20130       {
20131         "title": "Example usage:",
20132         "content": "curl https://{domain}/api/rpc/chat/queues/waitinginteractions -v -u {name}:{password}",
20133         "type": "json"
20134       }
20135     ],
20136     "name": "chatQueuesWaitingInteractions",
20137     "group": "RPC_Realtime",
20138     "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>",
20139     "version": "0.0.0",
20140     "filename": "server/api/rpc/index.js",
20141     "groupTitle": "RPC_Realtime"
20142   },
20143   {
20144     "type": "post",
20145     "url": "/api/rpc/fax/queues/:id/notify",
20146     "title": "Notify message to a specific queue",
20147     "examples": [
20148       {
20149         "title": "Example usage:",
20150         "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",
20151         "type": "json"
20152       }
20153     ],
20154     "name": "faxQueueNotify",
20155     "group": "RPC_Realtime",
20156     "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>",
20157     "version": "0.0.0",
20158     "filename": "server/api/rpc/index.js",
20159     "groupTitle": "RPC_Realtime"
20160   },
20161   {
20162     "type": "get",
20163     "url": "/api/rpc/fax/queues/waitinginteractions",
20164     "title": "Gets a list of faxQueuesWaitingInteractions",
20165     "examples": [
20166       {
20167         "title": "Example usage:",
20168         "content": "curl https://{domain}/api/rpc/fax/queues/waitinginteractions -v -u {name}:{password}",
20169         "type": "json"
20170       }
20171     ],
20172     "name": "faxQueuesWaitingInteractions",
20173     "group": "RPC_Realtime",
20174     "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>",
20175     "version": "0.0.0",
20176     "filename": "server/api/rpc/index.js",
20177     "groupTitle": "RPC_Realtime"
20178   },
20179   {
20180     "type": "post",
20181     "url": "/api/rpc/mail/queues/:id/notify",
20182     "title": "Notify message to a specific queue",
20183     "examples": [
20184       {
20185         "title": "Example usage:",
20186         "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",
20187         "type": "json"
20188       }
20189     ],
20190     "name": "mailQueueNotify",
20191     "group": "RPC_Realtime",
20192     "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>",
20193     "version": "0.0.0",
20194     "filename": "server/api/rpc/index.js",
20195     "groupTitle": "RPC_Realtime"
20196   },
20197   {
20198     "type": "get",
20199     "url": "/api/rpc/mail/queues/waitinginteractions",
20200     "title": "Gets a list of mailQueuesWaitingInteractions",
20201     "examples": [
20202       {
20203         "title": "Example usage:",
20204         "content": "curl https://{domain}/api/rpc/mail/queues/waitinginteractions -v -u {name}:{password}",
20205         "type": "json"
20206       }
20207     ],
20208     "name": "mailQueuesWaitingInteractions",
20209     "group": "RPC_Realtime",
20210     "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>",
20211     "version": "0.0.0",
20212     "filename": "server/api/rpc/index.js",
20213     "groupTitle": "RPC_Realtime"
20214   },
20215   {
20216     "type": "post",
20217     "url": "/api/rpc/openchannel/queues/:id/notify",
20218     "title": "Notify message to a specific queue",
20219     "examples": [
20220       {
20221         "title": "Example usage:",
20222         "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",
20223         "type": "json"
20224       }
20225     ],
20226     "name": "openchannelQueueNotify",
20227     "group": "RPC_Realtime",
20228     "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>",
20229     "version": "0.0.0",
20230     "filename": "server/api/rpc/index.js",
20231     "groupTitle": "RPC_Realtime"
20232   },
20233   {
20234     "type": "get",
20235     "url": "/api/rpc/openchannel/queues/:id/waitinginteractions",
20236     "title": "Gets a list of openchannelQueuesIdWaitingInteractions",
20237     "examples": [
20238       {
20239         "title": "Example usage:",
20240         "content": "curl https://{domain}/api/rpc/openchannel/queues/:id/waitinginteractions -v -u {name}:{password}",
20241         "type": "json"
20242       }
20243     ],
20244     "name": "openchannelQueuesIdWaitingInteractions",
20245     "group": "RPC_Realtime",
20246     "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>",
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/openchannel/queues/waitinginteractions",
20254     "title": "Gets a list of openchannelQueuesWaitingInteractions",
20255     "examples": [
20256       {
20257         "title": "Example usage:",
20258         "content": "curl https://{domain}/api/rpc/openchannel/queues/waitinginteractions -v -u {name}:{password}",
20259         "type": "json"
20260       }
20261     ],
20262     "name": "openchannelQueuesWaitingInteractions",
20263     "group": "RPC_Realtime",
20264     "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>",
20265     "version": "0.0.0",
20266     "filename": "server/api/rpc/index.js",
20267     "groupTitle": "RPC_Realtime"
20268   },
20269   {
20270     "type": "post",
20271     "url": "/api/rpc/sms/queues/:id/notify",
20272     "title": "Notify message to a specific queue",
20273     "examples": [
20274       {
20275         "title": "Example usage:",
20276         "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",
20277         "type": "json"
20278       }
20279     ],
20280     "name": "smsQueueNotify",
20281     "group": "RPC_Realtime",
20282     "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>",
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/sms/queues/waitinginteractions",
20290     "title": "Gets a list of smsQueuesWaitingInteractions",
20291     "examples": [
20292       {
20293         "title": "Example usage:",
20294         "content": "curl https://{domain}/api/rpc/sms/queues/waitinginteractions -v -u {name}:{password}",
20295         "type": "json"
20296       }
20297     ],
20298     "name": "smsQueuesWaitingInteractions",
20299     "group": "RPC_Realtime",
20300     "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>",
20301     "version": "0.0.0",
20302     "filename": "server/api/rpc/index.js",
20303     "groupTitle": "RPC_Realtime"
20304   },
20305   {
20306     "type": "get",
20307     "url": "/api/realtime/agents",
20308     "title": "Gets realtime agents info",
20309     "examples": [
20310       {
20311         "title": "Example usage:",
20312         "content": "curl https://{domain}/api/realtime/agents -v -u {name}:{password}  -X GET",
20313         "type": "json"
20314       }
20315     ],
20316     "name": "getAgents",
20317     "group": "Realtime",
20318     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20319     "version": "0.0.0",
20320     "filename": "server/api/realtime/index.js",
20321     "groupTitle": "Realtime"
20322   },
20323   {
20324     "type": "get",
20325     "url": "/api/realtime/queues",
20326     "title": "Gets realtime queues info",
20327     "examples": [
20328       {
20329         "title": "Example usage:",
20330         "content": "curl https://{domain}/api/realtime/queues -v -u {name}:{password}  -X GET",
20331         "type": "json"
20332       }
20333     ],
20334     "name": "getQueues",
20335     "group": "Realtime",
20336     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20337     "version": "0.0.0",
20338     "filename": "server/api/realtime/index.js",
20339     "groupTitle": "Realtime"
20340   },
20341   {
20342     "type": "post",
20343     "url": "/api/integrations/salesforce/accounts",
20344     "title": "Creates a new Salesforce Account",
20345     "examples": [
20346       {
20347         "title": "Example usage:",
20348         "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",
20349         "type": "json"
20350       }
20351     ],
20352     "name": "CreateSalesforce_Accounts",
20353     "group": "Salesforce_Accounts",
20354     "parameter": {
20355       "fields": {
20356         "Body": [
20357           {
20358             "group": "Body",
20359             "type": "String",
20360             "optional": true,
20361             "field": "name",
20362             "description": ""
20363           },
20364           {
20365             "group": "Body",
20366             "type": "String",
20367             "optional": true,
20368             "field": "description",
20369             "description": ""
20370           },
20371           {
20372             "group": "Body",
20373             "type": "String",
20374             "optional": true,
20375             "field": "username",
20376             "description": ""
20377           },
20378           {
20379             "group": "Body",
20380             "type": "String",
20381             "optional": true,
20382             "field": "remoteUri",
20383             "description": ""
20384           },
20385           {
20386             "group": "Body",
20387             "type": "String",
20388             "optional": true,
20389             "field": "password",
20390             "description": ""
20391           },
20392           {
20393             "group": "Body",
20394             "type": "String",
20395             "optional": true,
20396             "field": "clientId",
20397             "description": ""
20398           },
20399           {
20400             "group": "Body",
20401             "type": "String",
20402             "optional": true,
20403             "field": "clientSecret",
20404             "description": ""
20405           },
20406           {
20407             "group": "Body",
20408             "type": "String",
20409             "optional": true,
20410             "field": "securityToken",
20411             "description": ""
20412           },
20413           {
20414             "group": "Body",
20415             "type": "String",
20416             "optional": false,
20417             "field": "serverUrl",
20418             "description": ""
20419           },
20420           {
20421             "group": "Body",
20422             "type": "String",
20423             "allowedValues": [
20424               "\"integrationTab\"",
20425               "\"newTab\""
20426             ],
20427             "optional": true,
20428             "field": "type",
20429             "description": ""
20430           }
20431         ]
20432       }
20433     },
20434     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20435     "version": "0.0.0",
20436     "filename": "server/api/intSalesforceAccount/index.js",
20437     "groupTitle": "Salesforce_Accounts"
20438   },
20439   {
20440     "type": "delete",
20441     "url": "/api/integrations/salesforce/accounts/{id}",
20442     "title": "Deletes a Salesforce Account",
20443     "examples": [
20444       {
20445         "title": "Example usage:",
20446         "content": "curl https://{domain}/api/integrations/salesforce/accounts/{id} -v -u {name}:{password} -X DELETE",
20447         "type": "json"
20448       }
20449     ],
20450     "name": "DeleteSalesforce_Accounts",
20451     "group": "Salesforce_Accounts",
20452     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20453     "version": "0.0.0",
20454     "filename": "server/api/intSalesforceAccount/index.js",
20455     "groupTitle": "Salesforce_Accounts"
20456   },
20457   {
20458     "type": "get",
20459     "url": "/api/integrations/salesforce/accounts",
20460     "title": "Gets a list of Salesforce Accounts",
20461     "examples": [
20462       {
20463         "title": "Example usage:",
20464         "content": "curl https://{domain}/api/integrations/salesforce/accounts -v -u {name}:{password}",
20465         "type": "json"
20466       }
20467     ],
20468     "name": "GetSalesforce_Accounts",
20469     "group": "Salesforce_Accounts",
20470     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
20471     "version": "0.0.0",
20472     "filename": "server/api/intSalesforceAccount/index.js",
20473     "groupTitle": "Salesforce_Accounts"
20474   },
20475   {
20476     "type": "get",
20477     "url": "/api/integrations/salesforce/accounts/{id}",
20478     "title": "Gets a single Salesforce Account",
20479     "examples": [
20480       {
20481         "title": "Example usage:",
20482         "content": "curl https://{domain}/api/integrations/salesforce/accounts/{id} -v -u {name}:{password}",
20483         "type": "json"
20484       }
20485     ],
20486     "name": "ShowSalesforce_Accounts",
20487     "group": "Salesforce_Accounts",
20488     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20489     "version": "0.0.0",
20490     "filename": "server/api/intSalesforceAccount/index.js",
20491     "groupTitle": "Salesforce_Accounts"
20492   },
20493   {
20494     "type": "post",
20495     "url": "/api/integrations/salesforce/accounts/{id}/configurations",
20496     "title": "Creates new configuration",
20497     "examples": [
20498       {
20499         "title": "Example usage:",
20500         "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",
20501         "type": "json"
20502       }
20503     ],
20504     "name": "addConfiguration",
20505     "group": "Salesforce_Accounts",
20506     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20507     "version": "0.0.0",
20508     "filename": "server/api/intSalesforceAccount/index.js",
20509     "groupTitle": "Salesforce_Accounts"
20510   },
20511   {
20512     "type": "get",
20513     "url": "/api/integrations/salesforce/accounts/{id}/configurations",
20514     "title": "Gets account configurations",
20515     "examples": [
20516       {
20517         "title": "Example usage:",
20518         "content": "curl https://{domain}/api/integrations/salesforce/accounts/{id}/configurations -v -u {name}:{password} -X GET",
20519         "type": "json"
20520       }
20521     ],
20522     "name": "getConfigurations",
20523     "group": "Salesforce_Accounts",
20524     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20525     "version": "0.0.0",
20526     "filename": "server/api/intSalesforceAccount/index.js",
20527     "groupTitle": "Salesforce_Accounts"
20528   },
20529   {
20530     "type": "get",
20531     "url": "/api/integrations/salesforce/accounts/{id}/fields",
20532     "title": "Gets account fields",
20533     "examples": [
20534       {
20535         "title": "Example usage:",
20536         "content": "curl https://{domain}/api/integrations/salesforce/accounts/{id}/fields -v -u {name}:{password} -X GET",
20537         "type": "json"
20538       }
20539     ],
20540     "name": "getFields",
20541     "group": "Salesforce_Accounts",
20542     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20543     "version": "0.0.0",
20544     "filename": "server/api/intSalesforceAccount/index.js",
20545     "groupTitle": "Salesforce_Accounts"
20546   },
20547   {
20548     "type": "put",
20549     "url": "/api/integrations/salesforce/accounts/{id}",
20550     "title": "Update an existing Salesforce Account",
20551     "examples": [
20552       {
20553         "title": "Example usage:",
20554         "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",
20555         "type": "json"
20556       }
20557     ],
20558     "name": "updateSalesforce_Accounts",
20559     "group": "Salesforce_Accounts",
20560     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20561     "version": "0.0.0",
20562     "filename": "server/api/intSalesforceAccount/index.js",
20563     "groupTitle": "Salesforce_Accounts"
20564   },
20565   {
20566     "type": "post",
20567     "url": "/api/integrations/salesforce/configurations",
20568     "title": "Creates a new Salesforce Configuration",
20569     "examples": [
20570       {
20571         "title": "Example usage:",
20572         "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",
20573         "type": "json"
20574       }
20575     ],
20576     "name": "CreateSalesforce_Configurations",
20577     "group": "Salesforce_Configurations",
20578     "parameter": {
20579       "fields": {
20580         "Body": [
20581           {
20582             "group": "Body",
20583             "type": "String",
20584             "optional": true,
20585             "field": "name",
20586             "description": ""
20587           },
20588           {
20589             "group": "Body",
20590             "type": "String",
20591             "optional": true,
20592             "field": "description",
20593             "description": ""
20594           },
20595           {
20596             "group": "Body",
20597             "type": "String",
20598             "allowedValues": [
20599               "\"Task\"",
20600               "\"Case\""
20601             ],
20602             "optional": true,
20603             "field": "ticketType",
20604             "description": ""
20605           },
20606           {
20607             "group": "Body",
20608             "type": "String",
20609             "allowedValues": [
20610               "\"contact_lead\"",
20611               "\"contact\"",
20612               "\"lead\"",
20613               "\"account_contact_lead\"",
20614               "\"account\""
20615             ],
20616             "optional": true,
20617             "field": "moduleSearch",
20618             "description": ""
20619           },
20620           {
20621             "group": "Body",
20622             "type": "String",
20623             "allowedValues": [
20624               "\"nothing\"",
20625               "\"contact\"",
20626               "\"lead\"",
20627               "\"account\""
20628             ],
20629             "optional": true,
20630             "field": "moduleCreate",
20631             "description": ""
20632           },
20633           {
20634             "group": "Body",
20635             "type": "String",
20636             "optional": true,
20637             "field": "leadId",
20638             "description": ""
20639           },
20640           {
20641             "group": "Body",
20642             "type": "String",
20643             "optional": true,
20644             "field": "additionalSearchAccount",
20645             "description": ""
20646           },
20647           {
20648             "group": "Body",
20649             "type": "String",
20650             "optional": true,
20651             "field": "additionalSearchContact",
20652             "description": ""
20653           },
20654           {
20655             "group": "Body",
20656             "type": "String",
20657             "optional": true,
20658             "field": "additionalSearchLead",
20659             "description": ""
20660           }
20661         ]
20662       }
20663     },
20664     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20665     "version": "0.0.0",
20666     "filename": "server/api/intSalesforceConfiguration/index.js",
20667     "groupTitle": "Salesforce_Configurations"
20668   },
20669   {
20670     "type": "delete",
20671     "url": "/api/integrations/salesforce/configurations/{id}",
20672     "title": "Deletes a Salesforce Configuration",
20673     "examples": [
20674       {
20675         "title": "Example usage:",
20676         "content": "curl https://{domain}/api/integrations/salesforce/configurations/{id} -v -u {name}:{password} -X DELETE",
20677         "type": "json"
20678       }
20679     ],
20680     "name": "DeleteSalesforce_Configurations",
20681     "group": "Salesforce_Configurations",
20682     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20683     "version": "0.0.0",
20684     "filename": "server/api/intSalesforceConfiguration/index.js",
20685     "groupTitle": "Salesforce_Configurations"
20686   },
20687   {
20688     "type": "get",
20689     "url": "/api/integrations/salesforce/configurations",
20690     "title": "Gets a list of Salesforce Configurations",
20691     "examples": [
20692       {
20693         "title": "Example usage:",
20694         "content": "curl https://{domain}/api/integrations/salesforce/configurations -v -u {name}:{password}",
20695         "type": "json"
20696       }
20697     ],
20698     "name": "GetSalesforce_Configurations",
20699     "group": "Salesforce_Configurations",
20700     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
20701     "version": "0.0.0",
20702     "filename": "server/api/intSalesforceConfiguration/index.js",
20703     "groupTitle": "Salesforce_Configurations"
20704   },
20705   {
20706     "type": "get",
20707     "url": "/api/integrations/salesforce/configurations/{id}",
20708     "title": "Gets a single Salesforce Configuration",
20709     "examples": [
20710       {
20711         "title": "Example usage:",
20712         "content": "curl https://{domain}/api/integrations/salesforce/configurations/{id} -v -u {name}:{password}",
20713         "type": "json"
20714       }
20715     ],
20716     "name": "ShowSalesforce_Configurations",
20717     "group": "Salesforce_Configurations",
20718     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20719     "version": "0.0.0",
20720     "filename": "server/api/intSalesforceConfiguration/index.js",
20721     "groupTitle": "Salesforce_Configurations"
20722   },
20723   {
20724     "type": "get",
20725     "url": "/api/integrations/salesforce/configurations/{id}/descriptions",
20726     "title": "Gets configurations descriptions",
20727     "examples": [
20728       {
20729         "title": "Example usage:",
20730         "content": "curl https://{domain}/api/integrations/salesforce/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
20731         "type": "json"
20732       }
20733     ],
20734     "name": "getDescriptions",
20735     "group": "Salesforce_Configurations",
20736     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20737     "version": "0.0.0",
20738     "filename": "server/api/intSalesforceConfiguration/index.js",
20739     "groupTitle": "Salesforce_Configurations"
20740   },
20741   {
20742     "type": "get",
20743     "url": "/api/integrations/salesforce/configurations/{id}/fields",
20744     "title": "Gets configurations fields",
20745     "examples": [
20746       {
20747         "title": "Example usage:",
20748         "content": "curl https://{domain}/api/integrations/salesforce/configurations/{id}/fields -v -u {name}:{password} -X GET",
20749         "type": "json"
20750       }
20751     ],
20752     "name": "getFields",
20753     "group": "Salesforce_Configurations",
20754     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20755     "version": "0.0.0",
20756     "filename": "server/api/intSalesforceConfiguration/index.js",
20757     "groupTitle": "Salesforce_Configurations"
20758   },
20759   {
20760     "type": "get",
20761     "url": "/api/integrations/salesforce/configurations/{id}/subjects",
20762     "title": "Gets configurations subjects",
20763     "examples": [
20764       {
20765         "title": "Example usage:",
20766         "content": "curl https://{domain}/api/integrations/salesforce/configurations/{id}/subjects -v -u {name}:{password} -X GET",
20767         "type": "json"
20768       }
20769     ],
20770     "name": "getSubjects",
20771     "group": "Salesforce_Configurations",
20772     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20773     "version": "0.0.0",
20774     "filename": "server/api/intSalesforceConfiguration/index.js",
20775     "groupTitle": "Salesforce_Configurations"
20776   },
20777   {
20778     "type": "put",
20779     "url": "/api/integrations/salesforce/configurations/{id}",
20780     "title": "Update an existing Salesforce Configuration",
20781     "examples": [
20782       {
20783         "title": "Example usage:",
20784         "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",
20785         "type": "json"
20786       }
20787     ],
20788     "name": "updateSalesforce_Configurations",
20789     "group": "Salesforce_Configurations",
20790     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20791     "version": "0.0.0",
20792     "filename": "server/api/intSalesforceConfiguration/index.js",
20793     "groupTitle": "Salesforce_Configurations"
20794   },
20795   {
20796     "type": "post",
20797     "url": "/api/integrations/salesforce/fields",
20798     "title": "Creates a new Salesforce Field",
20799     "examples": [
20800       {
20801         "title": "Example usage:",
20802         "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",
20803         "type": "json"
20804       }
20805     ],
20806     "name": "CreateSalesforce_Fields",
20807     "group": "Salesforce_Fields",
20808     "parameter": {
20809       "fields": {
20810         "Body": [
20811           {
20812             "group": "Body",
20813             "type": "String",
20814             "allowedValues": [
20815               "\"string\"",
20816               "\"variable\"",
20817               "\"customVariable\"",
20818               "\"keyValue\"",
20819               "\"picklist\""
20820             ],
20821             "optional": true,
20822             "field": "type",
20823             "description": ""
20824           },
20825           {
20826             "group": "Body",
20827             "type": "String",
20828             "optional": true,
20829             "field": "content",
20830             "description": ""
20831           },
20832           {
20833             "group": "Body",
20834             "type": "String",
20835             "optional": true,
20836             "field": "key",
20837             "description": ""
20838           },
20839           {
20840             "group": "Body",
20841             "type": "String",
20842             "allowedValues": [
20843               "\"string\"",
20844               "\"variable\"",
20845               "\"customVariable\""
20846             ],
20847             "optional": true,
20848             "field": "keyType",
20849             "description": ""
20850           },
20851           {
20852             "group": "Body",
20853             "type": "String",
20854             "optional": true,
20855             "field": "keyContent",
20856             "description": ""
20857           },
20858           {
20859             "group": "Body",
20860             "type": "String",
20861             "optional": true,
20862             "field": "idField",
20863             "description": ""
20864           },
20865           {
20866             "group": "Body",
20867             "type": "String",
20868             "optional": true,
20869             "field": "variableName",
20870             "description": ""
20871           }
20872         ]
20873       }
20874     },
20875     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20876     "version": "0.0.0",
20877     "filename": "server/api/intSalesforceField/index.js",
20878     "groupTitle": "Salesforce_Fields"
20879   },
20880   {
20881     "type": "delete",
20882     "url": "/api/integrations/salesforce/fields/{id}",
20883     "title": "Deletes a Salesforce Field",
20884     "examples": [
20885       {
20886         "title": "Example usage:",
20887         "content": "curl https://{domain}/api/integrations/salesforce/fields/{id} -v -u {name}:{password} -X DELETE",
20888         "type": "json"
20889       }
20890     ],
20891     "name": "DeleteSalesforce_Fields",
20892     "group": "Salesforce_Fields",
20893     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20894     "version": "0.0.0",
20895     "filename": "server/api/intSalesforceField/index.js",
20896     "groupTitle": "Salesforce_Fields"
20897   },
20898   {
20899     "type": "get",
20900     "url": "/api/integrations/salesforce/fields",
20901     "title": "Gets a list of Salesforce Fields",
20902     "examples": [
20903       {
20904         "title": "Example usage:",
20905         "content": "curl https://{domain}/api/integrations/salesforce/fields -v -u {name}:{password}",
20906         "type": "json"
20907       }
20908     ],
20909     "name": "GetSalesforce_Fields",
20910     "group": "Salesforce_Fields",
20911     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
20912     "version": "0.0.0",
20913     "filename": "server/api/intSalesforceField/index.js",
20914     "groupTitle": "Salesforce_Fields"
20915   },
20916   {
20917     "type": "get",
20918     "url": "/api/integrations/salesforce/fields/{id}",
20919     "title": "Gets a single Salesforce Field",
20920     "examples": [
20921       {
20922         "title": "Example usage:",
20923         "content": "curl https://{domain}/api/integrations/salesforce/fields/{id} -v -u {name}:{password}",
20924         "type": "json"
20925       }
20926     ],
20927     "name": "ShowSalesforce_Fields",
20928     "group": "Salesforce_Fields",
20929     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20930     "version": "0.0.0",
20931     "filename": "server/api/intSalesforceField/index.js",
20932     "groupTitle": "Salesforce_Fields"
20933   },
20934   {
20935     "type": "put",
20936     "url": "/api/integrations/salesforce/fields/{id}",
20937     "title": "Update an existing Salesforce Field",
20938     "examples": [
20939       {
20940         "title": "Example usage:",
20941         "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",
20942         "type": "json"
20943       }
20944     ],
20945     "name": "updateSalesforce_Fields",
20946     "group": "Salesforce_Fields",
20947     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20948     "version": "0.0.0",
20949     "filename": "server/api/intSalesforceField/index.js",
20950     "groupTitle": "Salesforce_Fields"
20951   },
20952   {
20953     "type": "post",
20954     "url": "/api/schedules",
20955     "title": "Creates a new Schedule",
20956     "examples": [
20957       {
20958         "title": "Example usage:",
20959         "content": "curl https://{domain}/api/schedules -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
20960         "type": "json"
20961       }
20962     ],
20963     "name": "CreateSchedules",
20964     "group": "Schedules",
20965     "parameter": {
20966       "fields": {
20967         "Body": [
20968           {
20969             "group": "Body",
20970             "type": "String",
20971             "optional": false,
20972             "field": "name",
20973             "description": ""
20974           },
20975           {
20976             "group": "Body",
20977             "type": "String",
20978             "optional": true,
20979             "field": "description",
20980             "description": ""
20981           },
20982           {
20983             "group": "Body",
20984             "type": "Boolean",
20985             "optional": false,
20986             "field": "active",
20987             "description": ""
20988           },
20989           {
20990             "group": "Body",
20991             "type": "String",
20992             "optional": false,
20993             "field": "cron",
20994             "description": ""
20995           },
20996           {
20997             "group": "Body",
20998             "type": "String",
20999             "optional": false,
21000             "field": "startAt",
21001             "description": ""
21002           },
21003           {
21004             "group": "Body",
21005             "type": "String",
21006             "optional": false,
21007             "field": "endAt",
21008             "description": ""
21009           },
21010           {
21011             "group": "Body",
21012             "type": "Integer",
21013             "optional": false,
21014             "field": "subtractNumber",
21015             "description": ""
21016           },
21017           {
21018             "group": "Body",
21019             "type": "String",
21020             "allowedValues": [
21021               "\"years\"",
21022               "\"quarters\"",
21023               "\"months\"",
21024               "\"weeks\"",
21025               "\"days\"",
21026               "\"hours\"",
21027               "\"minutes\""
21028             ],
21029             "optional": false,
21030             "field": "subtractUnit",
21031             "description": ""
21032           },
21033           {
21034             "group": "Body",
21035             "type": "String",
21036             "allowedValues": [
21037               "\"csv\"",
21038               "\"pdf\"",
21039               "\"xlsx\""
21040             ],
21041             "optional": false,
21042             "field": "output",
21043             "description": ""
21044           },
21045           {
21046             "group": "Body",
21047             "type": "String",
21048             "allowedValues": [
21049               "\"custom\"",
21050               "\"default\""
21051             ],
21052             "optional": false,
21053             "field": "type",
21054             "description": ""
21055           },
21056           {
21057             "group": "Body",
21058             "type": "Boolean",
21059             "optional": true,
21060             "field": "sendMail",
21061             "description": ""
21062           },
21063           {
21064             "group": "Body",
21065             "type": "String",
21066             "optional": true,
21067             "field": "email",
21068             "description": ""
21069           },
21070           {
21071             "group": "Body",
21072             "type": "Text",
21073             "optional": true,
21074             "field": "cc",
21075             "description": ""
21076           },
21077           {
21078             "group": "Body",
21079             "type": "Text",
21080             "optional": true,
21081             "field": "bcc",
21082             "description": ""
21083           },
21084           {
21085             "group": "Body",
21086             "type": "Boolean",
21087             "optional": true,
21088             "field": "sendIfEmpty",
21089             "description": ""
21090           }
21091         ]
21092       }
21093     },
21094     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21095     "version": "0.0.0",
21096     "filename": "server/api/schedule/index.js",
21097     "groupTitle": "Schedules"
21098   },
21099   {
21100     "type": "delete",
21101     "url": "/api/schedules/{id}",
21102     "title": "Deletes a Schedule",
21103     "examples": [
21104       {
21105         "title": "Example usage:",
21106         "content": "curl https://{domain}/api/schedules/{id} -v -u {name}:{password} -X DELETE",
21107         "type": "json"
21108       }
21109     ],
21110     "name": "DeleteSchedules",
21111     "group": "Schedules",
21112     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21113     "version": "0.0.0",
21114     "filename": "server/api/schedule/index.js",
21115     "groupTitle": "Schedules"
21116   },
21117   {
21118     "type": "get",
21119     "url": "/api/schedules",
21120     "title": "Gets a list of Schedules",
21121     "examples": [
21122       {
21123         "title": "Example usage:",
21124         "content": "curl https://{domain}/api/schedules -v -u {name}:{password}",
21125         "type": "json"
21126       }
21127     ],
21128     "name": "GetSchedules",
21129     "group": "Schedules",
21130     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
21131     "version": "0.0.0",
21132     "filename": "server/api/schedule/index.js",
21133     "groupTitle": "Schedules"
21134   },
21135   {
21136     "type": "get",
21137     "url": "/api/schedules/{id}",
21138     "title": "Gets a single Schedule",
21139     "examples": [
21140       {
21141         "title": "Example usage:",
21142         "content": "curl https://{domain}/api/schedules/{id} -v -u {name}:{password}",
21143         "type": "json"
21144       }
21145     ],
21146     "name": "ShowSchedules",
21147     "group": "Schedules",
21148     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21149     "version": "0.0.0",
21150     "filename": "server/api/schedule/index.js",
21151     "groupTitle": "Schedules"
21152   },
21153   {
21154     "type": "get",
21155     "url": "/api/schedules/{id}/run",
21156     "title": "Run Scheduler",
21157     "examples": [
21158       {
21159         "title": "Example usage:",
21160         "content": "curl https://{domain}/api/schedules/{id}/run -v -u {name}:{password} -X GET",
21161         "type": "json"
21162       }
21163     ],
21164     "name": "run",
21165     "group": "Schedules",
21166     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21167     "version": "0.0.0",
21168     "filename": "server/api/schedule/index.js",
21169     "groupTitle": "Schedules"
21170   },
21171   {
21172     "type": "put",
21173     "url": "/api/schedules/{id}",
21174     "title": "Update an existing Schedule",
21175     "examples": [
21176       {
21177         "title": "Example usage:",
21178         "content": "curl https://{domain}/api/schedules/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
21179         "type": "json"
21180       }
21181     ],
21182     "name": "updateSchedules",
21183     "group": "Schedules",
21184     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21185     "version": "0.0.0",
21186     "filename": "server/api/schedule/index.js",
21187     "groupTitle": "Schedules"
21188   },
21189   {
21190     "type": "post",
21191     "url": "/api/screen/recordings",
21192     "title": "Creates a new Recording",
21193     "examples": [
21194       {
21195         "title": "Example usage:",
21196         "content": "curl https://{domain}/api/screen/recordings -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
21197         "type": "json"
21198       }
21199     ],
21200     "name": "CreateRecordings",
21201     "group": "Screen_Recordings",
21202     "parameter": {
21203       "fields": {
21204         "Body": [
21205           {
21206             "group": "Body",
21207             "type": "Virtual",
21208             "optional": true,
21209             "field": "format",
21210             "description": ""
21211           },
21212           {
21213             "group": "Body",
21214             "type": "String",
21215             "optional": true,
21216             "field": "interactionid",
21217             "description": ""
21218           },
21219           {
21220             "group": "Body",
21221             "type": "String",
21222             "optional": true,
21223             "field": "channel",
21224             "description": ""
21225           },
21226           {
21227             "group": "Body",
21228             "type": "String",
21229             "optional": true,
21230             "field": "value",
21231             "description": ""
21232           },
21233           {
21234             "group": "Body",
21235             "type": "Integer",
21236             "optional": true,
21237             "field": "rating",
21238             "description": ""
21239           },
21240           {
21241             "group": "Body",
21242             "type": "Integer",
21243             "optional": true,
21244             "field": "duration",
21245             "description": ""
21246           },
21247           {
21248             "group": "Body",
21249             "type": "String",
21250             "optional": true,
21251             "field": "startedAt",
21252             "description": ""
21253           },
21254           {
21255             "group": "Body",
21256             "type": "String",
21257             "optional": true,
21258             "field": "closedAt",
21259             "description": ""
21260           },
21261           {
21262             "group": "Body",
21263             "type": "String",
21264             "optional": true,
21265             "field": "createdAt",
21266             "description": ""
21267           },
21268           {
21269             "group": "Body",
21270             "type": "String",
21271             "optional": true,
21272             "field": "updatedAt",
21273             "description": ""
21274           }
21275         ]
21276       }
21277     },
21278     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21279     "version": "0.0.0",
21280     "filename": "server/api/screenRecording/index.js",
21281     "groupTitle": "Screen_Recordings"
21282   },
21283   {
21284     "type": "get",
21285     "url": "/api/screen/recordings/describe",
21286     "title": "Gets table info about Recordings",
21287     "examples": [
21288       {
21289         "title": "Example usage:",
21290         "content": "curl https://{domain}/api/screen/recordings/describe -v -u {name}:{password}",
21291         "type": "json"
21292       }
21293     ],
21294     "name": "DescribeRecordings",
21295     "group": "Screen_Recordings",
21296     "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>",
21297     "version": "0.0.0",
21298     "filename": "server/api/screenRecording/index.js",
21299     "groupTitle": "Screen_Recordings"
21300   },
21301   {
21302     "type": "get",
21303     "url": "/api/screen/recordings",
21304     "title": "Gets a list of Recordings",
21305     "examples": [
21306       {
21307         "title": "Example usage:",
21308         "content": "curl https://{domain}/api/screen/recordings -v -u {name}:{password}",
21309         "type": "json"
21310       }
21311     ],
21312     "name": "GetRecordings",
21313     "group": "Screen_Recordings",
21314     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
21315     "version": "0.0.0",
21316     "filename": "server/api/screenRecording/index.js",
21317     "groupTitle": "Screen_Recordings"
21318   },
21319   {
21320     "type": "get",
21321     "url": "/api/screen/recordings/{id}",
21322     "title": "Gets a single Recording",
21323     "examples": [
21324       {
21325         "title": "Example usage:",
21326         "content": "curl https://{domain}/api/screen/recordings/{id} -v -u {name}:{password}",
21327         "type": "json"
21328       }
21329     ],
21330     "name": "ShowRecordings",
21331     "group": "Screen_Recordings",
21332     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21333     "version": "0.0.0",
21334     "filename": "server/api/screenRecording/index.js",
21335     "groupTitle": "Screen_Recordings"
21336   },
21337   {
21338     "type": "delete",
21339     "url": "/api/screen/recordings/{id}",
21340     "title": "Delete screen recording",
21341     "examples": [
21342       {
21343         "title": "Example usage:",
21344         "content": "curl https://{domain}/api/screen/recordings/{id} -v -u {name}:{password} -X DELETE",
21345         "type": "json"
21346       }
21347     ],
21348     "name": "destroy",
21349     "group": "Screen_Recordings",
21350     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21351     "version": "0.0.0",
21352     "filename": "server/api/screenRecording/index.js",
21353     "groupTitle": "Screen_Recordings"
21354   },
21355   {
21356     "type": "get",
21357     "url": "/api/screen/recordings/{id}/download",
21358     "title": "Download Recording",
21359     "examples": [
21360       {
21361         "title": "Example usage:",
21362         "content": "curl https://{domain}/api/screen/recordings/{id}/download -v -u {name}:{password} -X GET",
21363         "type": "json"
21364       }
21365     ],
21366     "name": "download",
21367     "group": "Screen_Recordings",
21368     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21369     "version": "0.0.0",
21370     "filename": "server/api/screenRecording/index.js",
21371     "groupTitle": "Screen_Recordings"
21372   },
21373   {
21374     "type": "put",
21375     "url": "/api/screen/recordings/{id}",
21376     "title": "Update an existing Recording",
21377     "examples": [
21378       {
21379         "title": "Example usage:",
21380         "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",
21381         "type": "json"
21382       }
21383     ],
21384     "name": "updateRecordings",
21385     "group": "Screen_Recordings",
21386     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21387     "version": "0.0.0",
21388     "filename": "server/api/screenRecording/index.js",
21389     "groupTitle": "Screen_Recordings"
21390   },
21391   {
21392     "type": "post",
21393     "url": "/api/integrations/servicenow/accounts",
21394     "title": "Creates a new Servicenow Account",
21395     "examples": [
21396       {
21397         "title": "Example usage:",
21398         "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",
21399         "type": "json"
21400       }
21401     ],
21402     "name": "CreateServicenow_Accounts",
21403     "group": "Servicenow_Accounts",
21404     "parameter": {
21405       "fields": {
21406         "Body": [
21407           {
21408             "group": "Body",
21409             "type": "String",
21410             "optional": true,
21411             "field": "name",
21412             "description": ""
21413           },
21414           {
21415             "group": "Body",
21416             "type": "String",
21417             "optional": true,
21418             "field": "description",
21419             "description": ""
21420           },
21421           {
21422             "group": "Body",
21423             "type": "String",
21424             "optional": true,
21425             "field": "username",
21426             "description": ""
21427           },
21428           {
21429             "group": "Body",
21430             "type": "String",
21431             "optional": true,
21432             "field": "password",
21433             "description": ""
21434           },
21435           {
21436             "group": "Body",
21437             "type": "String",
21438             "optional": true,
21439             "field": "email",
21440             "description": ""
21441           },
21442           {
21443             "group": "Body",
21444             "type": "String",
21445             "optional": true,
21446             "field": "remoteUri",
21447             "description": ""
21448           },
21449           {
21450             "group": "Body",
21451             "type": "String",
21452             "optional": false,
21453             "field": "serverUrl",
21454             "description": ""
21455           }
21456         ]
21457       }
21458     },
21459     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21460     "version": "0.0.0",
21461     "filename": "server/api/intServicenowAccount/index.js",
21462     "groupTitle": "Servicenow_Accounts"
21463   },
21464   {
21465     "type": "delete",
21466     "url": "/api/integrations/servicenow/accounts/{id}",
21467     "title": "Deletes a Servicenow Account",
21468     "examples": [
21469       {
21470         "title": "Example usage:",
21471         "content": "curl https://{domain}/api/integrations/servicenow/accounts/{id} -v -u {name}:{password} -X DELETE",
21472         "type": "json"
21473       }
21474     ],
21475     "name": "DeleteServicenow_Accounts",
21476     "group": "Servicenow_Accounts",
21477     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21478     "version": "0.0.0",
21479     "filename": "server/api/intServicenowAccount/index.js",
21480     "groupTitle": "Servicenow_Accounts"
21481   },
21482   {
21483     "type": "get",
21484     "url": "/api/integrations/servicenow/accounts",
21485     "title": "Gets a list of Servicenow Accounts",
21486     "examples": [
21487       {
21488         "title": "Example usage:",
21489         "content": "curl https://{domain}/api/integrations/servicenow/accounts -v -u {name}:{password}",
21490         "type": "json"
21491       }
21492     ],
21493     "name": "GetServicenow_Accounts",
21494     "group": "Servicenow_Accounts",
21495     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
21496     "version": "0.0.0",
21497     "filename": "server/api/intServicenowAccount/index.js",
21498     "groupTitle": "Servicenow_Accounts"
21499   },
21500   {
21501     "type": "get",
21502     "url": "/api/integrations/servicenow/accounts/{id}",
21503     "title": "Gets a single Servicenow Account",
21504     "examples": [
21505       {
21506         "title": "Example usage:",
21507         "content": "curl https://{domain}/api/integrations/servicenow/accounts/{id} -v -u {name}:{password}",
21508         "type": "json"
21509       }
21510     ],
21511     "name": "ShowServicenow_Accounts",
21512     "group": "Servicenow_Accounts",
21513     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21514     "version": "0.0.0",
21515     "filename": "server/api/intServicenowAccount/index.js",
21516     "groupTitle": "Servicenow_Accounts"
21517   },
21518   {
21519     "type": "post",
21520     "url": "/api/integrations/servicenow/accounts/{id}/configurations",
21521     "title": "Creates new configuration",
21522     "examples": [
21523       {
21524         "title": "Example usage:",
21525         "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",
21526         "type": "json"
21527       }
21528     ],
21529     "name": "addConfiguration",
21530     "group": "Servicenow_Accounts",
21531     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21532     "version": "0.0.0",
21533     "filename": "server/api/intServicenowAccount/index.js",
21534     "groupTitle": "Servicenow_Accounts"
21535   },
21536   {
21537     "type": "get",
21538     "url": "/api/integrations/servicenow/accounts/{id}/configurations",
21539     "title": "Gets account configurations",
21540     "examples": [
21541       {
21542         "title": "Example usage:",
21543         "content": "curl https://{domain}/api/integrations/servicenow/accounts/{id}/configurations -v -u {name}:{password} -X GET",
21544         "type": "json"
21545       }
21546     ],
21547     "name": "getConfigurations",
21548     "group": "Servicenow_Accounts",
21549     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21550     "version": "0.0.0",
21551     "filename": "server/api/intServicenowAccount/index.js",
21552     "groupTitle": "Servicenow_Accounts"
21553   },
21554   {
21555     "type": "get",
21556     "url": "/api/integrations/servicenow/accounts/{id}/fields",
21557     "title": "Gets account fields",
21558     "examples": [
21559       {
21560         "title": "Example usage:",
21561         "content": "curl https://{domain}/api/integrations/servicenow/accounts/{id}/fields -v -u {name}:{password} -X GET",
21562         "type": "json"
21563       }
21564     ],
21565     "name": "getFields",
21566     "group": "Servicenow_Accounts",
21567     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21568     "version": "0.0.0",
21569     "filename": "server/api/intServicenowAccount/index.js",
21570     "groupTitle": "Servicenow_Accounts"
21571   },
21572   {
21573     "type": "put",
21574     "url": "/api/integrations/servicenow/accounts/{id}",
21575     "title": "Update an existing Servicenow Account",
21576     "examples": [
21577       {
21578         "title": "Example usage:",
21579         "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",
21580         "type": "json"
21581       }
21582     ],
21583     "name": "updateServicenow_Accounts",
21584     "group": "Servicenow_Accounts",
21585     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21586     "version": "0.0.0",
21587     "filename": "server/api/intServicenowAccount/index.js",
21588     "groupTitle": "Servicenow_Accounts"
21589   },
21590   {
21591     "type": "post",
21592     "url": "/api/integrations/servicenow/configurations",
21593     "title": "Creates a new Servicenow Configuration",
21594     "examples": [
21595       {
21596         "title": "Example usage:",
21597         "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",
21598         "type": "json"
21599       }
21600     ],
21601     "name": "CreateServicenow_Configurations",
21602     "group": "Servicenow_Configurations",
21603     "parameter": {
21604       "fields": {
21605         "Body": [
21606           {
21607             "group": "Body",
21608             "type": "String",
21609             "optional": true,
21610             "field": "name",
21611             "description": ""
21612           },
21613           {
21614             "group": "Body",
21615             "type": "String",
21616             "optional": true,
21617             "field": "description",
21618             "description": ""
21619           }
21620         ]
21621       }
21622     },
21623     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21624     "version": "0.0.0",
21625     "filename": "server/api/intServicenowConfiguration/index.js",
21626     "groupTitle": "Servicenow_Configurations"
21627   },
21628   {
21629     "type": "delete",
21630     "url": "/api/integrations/servicenow/configurations/{id}",
21631     "title": "Deletes a Servicenow Configuration",
21632     "examples": [
21633       {
21634         "title": "Example usage:",
21635         "content": "curl https://{domain}/api/integrations/servicenow/configurations/{id} -v -u {name}:{password} -X DELETE",
21636         "type": "json"
21637       }
21638     ],
21639     "name": "DeleteServicenow_Configurations",
21640     "group": "Servicenow_Configurations",
21641     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21642     "version": "0.0.0",
21643     "filename": "server/api/intServicenowConfiguration/index.js",
21644     "groupTitle": "Servicenow_Configurations"
21645   },
21646   {
21647     "type": "get",
21648     "url": "/api/integrations/servicenow/configurations",
21649     "title": "Gets a list of Servicenow Configurations",
21650     "examples": [
21651       {
21652         "title": "Example usage:",
21653         "content": "curl https://{domain}/api/integrations/servicenow/configurations -v -u {name}:{password}",
21654         "type": "json"
21655       }
21656     ],
21657     "name": "GetServicenow_Configurations",
21658     "group": "Servicenow_Configurations",
21659     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
21660     "version": "0.0.0",
21661     "filename": "server/api/intServicenowConfiguration/index.js",
21662     "groupTitle": "Servicenow_Configurations"
21663   },
21664   {
21665     "type": "get",
21666     "url": "/api/integrations/servicenow/configurations/{id}",
21667     "title": "Gets a single Servicenow Configuration",
21668     "examples": [
21669       {
21670         "title": "Example usage:",
21671         "content": "curl https://{domain}/api/integrations/servicenow/configurations/{id} -v -u {name}:{password}",
21672         "type": "json"
21673       }
21674     ],
21675     "name": "ShowServicenow_Configurations",
21676     "group": "Servicenow_Configurations",
21677     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21678     "version": "0.0.0",
21679     "filename": "server/api/intServicenowConfiguration/index.js",
21680     "groupTitle": "Servicenow_Configurations"
21681   },
21682   {
21683     "type": "get",
21684     "url": "/api/integrations/servicenow/configurations/{id}/descriptions",
21685     "title": "Gets configurations descriptions",
21686     "examples": [
21687       {
21688         "title": "Example usage:",
21689         "content": "curl https://{domain}/api/integrations/servicenow/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
21690         "type": "json"
21691       }
21692     ],
21693     "name": "getDescriptions",
21694     "group": "Servicenow_Configurations",
21695     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21696     "version": "0.0.0",
21697     "filename": "server/api/intServicenowConfiguration/index.js",
21698     "groupTitle": "Servicenow_Configurations"
21699   },
21700   {
21701     "type": "get",
21702     "url": "/api/integrations/servicenow/configurations/{id}/fields",
21703     "title": "Gets configurations fields",
21704     "examples": [
21705       {
21706         "title": "Example usage:",
21707         "content": "curl https://{domain}/api/integrations/servicenow/configurations/{id}/fields -v -u {name}:{password} -X GET",
21708         "type": "json"
21709       }
21710     ],
21711     "name": "getFields",
21712     "group": "Servicenow_Configurations",
21713     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21714     "version": "0.0.0",
21715     "filename": "server/api/intServicenowConfiguration/index.js",
21716     "groupTitle": "Servicenow_Configurations"
21717   },
21718   {
21719     "type": "get",
21720     "url": "/api/integrations/servicenow/configurations/{id}/subjects",
21721     "title": "Gets configurations subjects",
21722     "examples": [
21723       {
21724         "title": "Example usage:",
21725         "content": "curl https://{domain}/api/integrations/servicenow/configurations/{id}/subjects -v -u {name}:{password} -X GET",
21726         "type": "json"
21727       }
21728     ],
21729     "name": "getSubjects",
21730     "group": "Servicenow_Configurations",
21731     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21732     "version": "0.0.0",
21733     "filename": "server/api/intServicenowConfiguration/index.js",
21734     "groupTitle": "Servicenow_Configurations"
21735   },
21736   {
21737     "type": "put",
21738     "url": "/api/integrations/servicenow/configurations/{id}",
21739     "title": "Update an existing Servicenow Configuration",
21740     "examples": [
21741       {
21742         "title": "Example usage:",
21743         "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",
21744         "type": "json"
21745       }
21746     ],
21747     "name": "updateServicenow_Configurations",
21748     "group": "Servicenow_Configurations",
21749     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21750     "version": "0.0.0",
21751     "filename": "server/api/intServicenowConfiguration/index.js",
21752     "groupTitle": "Servicenow_Configurations"
21753   },
21754   {
21755     "type": "post",
21756     "url": "/api/integrations/servicenow/fields",
21757     "title": "Creates a new Servicenow Field",
21758     "examples": [
21759       {
21760         "title": "Example usage:",
21761         "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",
21762         "type": "json"
21763       }
21764     ],
21765     "name": "CreateServicenow_Fields",
21766     "group": "Servicenow_Fields",
21767     "parameter": {
21768       "fields": {
21769         "Body": [
21770           {
21771             "group": "Body",
21772             "type": "String",
21773             "allowedValues": [
21774               "\"string\"",
21775               "\"variable\"",
21776               "\"customVariable\"",
21777               "\"keyValue\"",
21778               "\"picklist\""
21779             ],
21780             "optional": true,
21781             "field": "type",
21782             "description": ""
21783           },
21784           {
21785             "group": "Body",
21786             "type": "String",
21787             "optional": true,
21788             "field": "content",
21789             "description": ""
21790           },
21791           {
21792             "group": "Body",
21793             "type": "String",
21794             "optional": true,
21795             "field": "key",
21796             "description": ""
21797           },
21798           {
21799             "group": "Body",
21800             "type": "String",
21801             "allowedValues": [
21802               "\"string\"",
21803               "\"variable\"",
21804               "\"customVariable\""
21805             ],
21806             "optional": true,
21807             "field": "keyType",
21808             "description": ""
21809           },
21810           {
21811             "group": "Body",
21812             "type": "String",
21813             "optional": true,
21814             "field": "keyContent",
21815             "description": ""
21816           },
21817           {
21818             "group": "Body",
21819             "type": "String",
21820             "optional": true,
21821             "field": "idField",
21822             "description": ""
21823           },
21824           {
21825             "group": "Body",
21826             "type": "String",
21827             "optional": true,
21828             "field": "nameField",
21829             "description": ""
21830           },
21831           {
21832             "group": "Body",
21833             "type": "Boolean",
21834             "optional": true,
21835             "field": "customField",
21836             "description": ""
21837           },
21838           {
21839             "group": "Body",
21840             "type": "String",
21841             "optional": true,
21842             "field": "variableName",
21843             "description": ""
21844           }
21845         ]
21846       }
21847     },
21848     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21849     "version": "0.0.0",
21850     "filename": "server/api/intServicenowField/index.js",
21851     "groupTitle": "Servicenow_Fields"
21852   },
21853   {
21854     "type": "delete",
21855     "url": "/api/integrations/servicenow/fields/{id}",
21856     "title": "Deletes a Servicenow Field",
21857     "examples": [
21858       {
21859         "title": "Example usage:",
21860         "content": "curl https://{domain}/api/integrations/servicenow/fields/{id} -v -u {name}:{password} -X DELETE",
21861         "type": "json"
21862       }
21863     ],
21864     "name": "DeleteServicenow_Fields",
21865     "group": "Servicenow_Fields",
21866     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21867     "version": "0.0.0",
21868     "filename": "server/api/intServicenowField/index.js",
21869     "groupTitle": "Servicenow_Fields"
21870   },
21871   {
21872     "type": "get",
21873     "url": "/api/integrations/servicenow/fields",
21874     "title": "Gets a list of Servicenow Fields",
21875     "examples": [
21876       {
21877         "title": "Example usage:",
21878         "content": "curl https://{domain}/api/integrations/servicenow/fields -v -u {name}:{password}",
21879         "type": "json"
21880       }
21881     ],
21882     "name": "GetServicenow_Fields",
21883     "group": "Servicenow_Fields",
21884     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
21885     "version": "0.0.0",
21886     "filename": "server/api/intServicenowField/index.js",
21887     "groupTitle": "Servicenow_Fields"
21888   },
21889   {
21890     "type": "get",
21891     "url": "/api/integrations/servicenow/fields/{id}",
21892     "title": "Gets a single Servicenow Field",
21893     "examples": [
21894       {
21895         "title": "Example usage:",
21896         "content": "curl https://{domain}/api/integrations/servicenow/fields/{id} -v -u {name}:{password}",
21897         "type": "json"
21898       }
21899     ],
21900     "name": "ShowServicenow_Fields",
21901     "group": "Servicenow_Fields",
21902     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21903     "version": "0.0.0",
21904     "filename": "server/api/intServicenowField/index.js",
21905     "groupTitle": "Servicenow_Fields"
21906   },
21907   {
21908     "type": "put",
21909     "url": "/api/integrations/servicenow/fields/{id}",
21910     "title": "Update an existing Servicenow Field",
21911     "examples": [
21912       {
21913         "title": "Example usage:",
21914         "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",
21915         "type": "json"
21916       }
21917     ],
21918     "name": "updateServicenow_Fields",
21919     "group": "Servicenow_Fields",
21920     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21921     "version": "0.0.0",
21922     "filename": "server/api/intServicenowField/index.js",
21923     "groupTitle": "Servicenow_Fields"
21924   },
21925   {
21926     "type": "get",
21927     "url": "/api/settings",
21928     "title": "Gets a list of Settings",
21929     "examples": [
21930       {
21931         "title": "Example usage:",
21932         "content": "curl https://{domain}/api/settings -v -u {name}:{password}",
21933         "type": "json"
21934       }
21935     ],
21936     "name": "GetSettings",
21937     "group": "Settings",
21938     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
21939     "version": "0.0.0",
21940     "filename": "server/api/setting/index.js",
21941     "groupTitle": "Settings"
21942   },
21943   {
21944     "type": "get",
21945     "url": "/api/settings/{id}",
21946     "title": "Gets a single Setting",
21947     "examples": [
21948       {
21949         "title": "Example usage:",
21950         "content": "curl https://{domain}/api/settings/{id} -v -u {name}:{password}",
21951         "type": "json"
21952       }
21953     ],
21954     "name": "ShowSettings",
21955     "group": "Settings",
21956     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21957     "version": "0.0.0",
21958     "filename": "server/api/setting/index.js",
21959     "groupTitle": "Settings"
21960   },
21961   {
21962     "type": "post",
21963     "url": "/api/settings/{id}/favicon",
21964     "title": "Add Favicon",
21965     "examples": [
21966       {
21967         "title": "Example usage:",
21968         "content": "curl https://{domain}/api/settings/{id}/favicon -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
21969         "type": "json"
21970       }
21971     ],
21972     "name": "addFavicon",
21973     "group": "Settings",
21974     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21975     "version": "0.0.0",
21976     "filename": "server/api/setting/index.js",
21977     "groupTitle": "Settings"
21978   },
21979   {
21980     "type": "post",
21981     "url": "/api/settings/{id}/logo",
21982     "title": "Add logo",
21983     "examples": [
21984       {
21985         "title": "Example usage:",
21986         "content": "curl https://{domain}/api/settings/{id}/logo -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
21987         "type": "json"
21988       }
21989     ],
21990     "name": "addLogo",
21991     "group": "Settings",
21992     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21993     "version": "0.0.0",
21994     "filename": "server/api/setting/index.js",
21995     "groupTitle": "Settings"
21996   },
21997   {
21998     "type": "post",
21999     "url": "/api/settings/{id}/logo_login",
22000     "title": "Add logo login",
22001     "examples": [
22002       {
22003         "title": "Example usage:",
22004         "content": "curl https://{domain}/api/settings/{id}/logo_login -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
22005         "type": "json"
22006       }
22007     ],
22008     "name": "addLogoLogin",
22009     "group": "Settings",
22010     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22011     "version": "0.0.0",
22012     "filename": "server/api/setting/index.js",
22013     "groupTitle": "Settings"
22014   },
22015   {
22016     "type": "post",
22017     "url": "/api/settings/{id}/preferred",
22018     "title": "Add Preferred",
22019     "examples": [
22020       {
22021         "title": "Example usage:",
22022         "content": "curl https://{domain}/api/settings/{id}/preferred -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
22023         "type": "json"
22024       }
22025     ],
22026     "name": "addPreferred",
22027     "group": "Settings",
22028     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22029     "version": "0.0.0",
22030     "filename": "server/api/setting/index.js",
22031     "groupTitle": "Settings"
22032   },
22033   {
22034     "type": "get",
22035     "url": "/api/settings/now",
22036     "title": "Get Server Current Date",
22037     "examples": [
22038       {
22039         "title": "Example usage:",
22040         "content": "curl https://{domain}/api/settings/now -v -X GET",
22041         "type": "json"
22042       }
22043     ],
22044     "name": "getDate",
22045     "group": "Settings",
22046     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22047     "version": "0.0.0",
22048     "filename": "server/api/setting/index.js",
22049     "groupTitle": "Settings"
22050   },
22051   {
22052     "type": "get",
22053     "url": "/api/settings/{id}/favicon",
22054     "title": "Get Favicon",
22055     "examples": [
22056       {
22057         "title": "Example usage:",
22058         "content": "curl https://{domain}/api/settings/{id}/favicon -v -X GET",
22059         "type": "json"
22060       }
22061     ],
22062     "name": "getFavicon",
22063     "group": "Settings",
22064     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22065     "version": "0.0.0",
22066     "filename": "server/api/setting/index.js",
22067     "groupTitle": "Settings"
22068   },
22069   {
22070     "type": "get",
22071     "url": "/api/settings/{id}/gdpr",
22072     "title": "Get gdpr settings",
22073     "examples": [
22074       {
22075         "title": "Example usage:",
22076         "content": "curl https://{domain}/api/settings/{id}/gdpr -v -u {name}:{password} -X GET",
22077         "type": "json"
22078       }
22079     ],
22080     "name": "getGdpr",
22081     "group": "Settings",
22082     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22083     "version": "0.0.0",
22084     "filename": "server/api/setting/index.js",
22085     "groupTitle": "Settings"
22086   },
22087   {
22088     "type": "get",
22089     "url": "/api/settings/{id}/logo",
22090     "title": "Get logo",
22091     "examples": [
22092       {
22093         "title": "Example usage:",
22094         "content": "curl https://{domain}/api/settings/{id}/logo -v -X GET",
22095         "type": "json"
22096       }
22097     ],
22098     "name": "getLogo",
22099     "group": "Settings",
22100     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22101     "version": "0.0.0",
22102     "filename": "server/api/setting/index.js",
22103     "groupTitle": "Settings"
22104   },
22105   {
22106     "type": "get",
22107     "url": "/api/settings/{id}/logo_login",
22108     "title": "Get logo login",
22109     "examples": [
22110       {
22111         "title": "Example usage:",
22112         "content": "curl https://{domain}/api/settings/{id}/logo_login -v -X GET",
22113         "type": "json"
22114       }
22115     ],
22116     "name": "getLogoLogin",
22117     "group": "Settings",
22118     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22119     "version": "0.0.0",
22120     "filename": "server/api/setting/index.js",
22121     "groupTitle": "Settings"
22122   },
22123   {
22124     "type": "get",
22125     "url": "/api/settings/{id}/preferred",
22126     "title": "Get Preferred",
22127     "examples": [
22128       {
22129         "title": "Example usage:",
22130         "content": "curl https://{domain}/api/settings/{id}/preferred -v -X GET",
22131         "type": "json"
22132       }
22133     ],
22134     "name": "getPreferred",
22135     "group": "Settings",
22136     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22137     "version": "0.0.0",
22138     "filename": "server/api/setting/index.js",
22139     "groupTitle": "Settings"
22140   },
22141   {
22142     "type": "put",
22143     "url": "/api/settings/{id}",
22144     "title": "Update an existing Setting",
22145     "examples": [
22146       {
22147         "title": "Example usage:",
22148         "content": "curl https://{domain}/api/settings/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
22149         "type": "json"
22150       }
22151     ],
22152     "name": "updateSettings",
22153     "group": "Settings",
22154     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22155     "version": "0.0.0",
22156     "filename": "server/api/setting/index.js",
22157     "groupTitle": "Settings"
22158   },
22159   {
22160     "type": "post",
22161     "url": "/api/sms/accounts/{id}/users",
22162     "title": "Add agents to a sms account",
22163     "examples": [
22164       {
22165         "title": "Example usage:",
22166         "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",
22167         "type": "json"
22168       }
22169     ],
22170     "name": "AddAgents",
22171     "group": "Sms_Accounts",
22172     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22173     "version": "0.0.0",
22174     "filename": "server/api/smsAccount/index.js",
22175     "groupTitle": "Sms_Accounts"
22176   },
22177   {
22178     "type": "post",
22179     "url": "/api/sms/accounts",
22180     "title": "Creates a new Account",
22181     "examples": [
22182       {
22183         "title": "Example usage:",
22184         "content": "curl https://{domain}/api/sms/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
22185         "type": "json"
22186       }
22187     ],
22188     "name": "CreateAccounts",
22189     "group": "Sms_Accounts",
22190     "parameter": {
22191       "fields": {
22192         "Body": [
22193           {
22194             "group": "Body",
22195             "type": "String",
22196             "optional": false,
22197             "field": "name",
22198             "description": ""
22199           },
22200           {
22201             "group": "Body",
22202             "type": "String",
22203             "optional": false,
22204             "field": "key",
22205             "description": ""
22206           },
22207           {
22208             "group": "Body",
22209             "type": "String",
22210             "optional": false,
22211             "field": "remote",
22212             "description": ""
22213           },
22214           {
22215             "group": "Body",
22216             "type": "String",
22217             "optional": true,
22218             "field": "token",
22219             "description": ""
22220           },
22221           {
22222             "group": "Body",
22223             "type": "String",
22224             "optional": true,
22225             "field": "phone",
22226             "description": ""
22227           },
22228           {
22229             "group": "Body",
22230             "type": "String",
22231             "allowedValues": [
22232               "\"twilio\"",
22233               "\"skebby\"",
22234               "\"connectel\"",
22235               "\"clicksend\"",
22236               "\"plivo\"",
22237               "\"clickatell\"",
22238               "\"bandwidth\"",
22239               "\"csc\"",
22240               "\"infobip\"",
22241               "\"intelepeer\""
22242             ],
22243             "optional": true,
22244             "field": "type",
22245             "description": ""
22246           },
22247           {
22248             "group": "Body",
22249             "type": "String",
22250             "optional": true,
22251             "field": "accountSid",
22252             "description": ""
22253           },
22254           {
22255             "group": "Body",
22256             "type": "String",
22257             "optional": true,
22258             "field": "authId",
22259             "description": ""
22260           },
22261           {
22262             "group": "Body",
22263             "type": "String",
22264             "optional": true,
22265             "field": "authToken",
22266             "description": ""
22267           },
22268           {
22269             "group": "Body",
22270             "type": "String",
22271             "allowedValues": [
22272               "\"SI\"",
22273               "\"TI\"",
22274               "\"GP\""
22275             ],
22276             "optional": true,
22277             "field": "smsMethod",
22278             "description": ""
22279           },
22280           {
22281             "group": "Body",
22282             "type": "String",
22283             "optional": true,
22284             "field": "username",
22285             "description": ""
22286           },
22287           {
22288             "group": "Body",
22289             "type": "String",
22290             "optional": true,
22291             "field": "password",
22292             "description": ""
22293           },
22294           {
22295             "group": "Body",
22296             "type": "String",
22297             "optional": true,
22298             "field": "apiKey",
22299             "description": ""
22300           },
22301           {
22302             "group": "Body",
22303             "type": "String",
22304             "optional": true,
22305             "field": "applicationId",
22306             "description": ""
22307           },
22308           {
22309             "group": "Body",
22310             "type": "String",
22311             "optional": true,
22312             "field": "accountId",
22313             "description": ""
22314           },
22315           {
22316             "group": "Body",
22317             "type": "String",
22318             "optional": true,
22319             "field": "senderString",
22320             "description": ""
22321           },
22322           {
22323             "group": "Body",
22324             "type": "Boolean",
22325             "optional": true,
22326             "field": "deliveryReport",
22327             "description": ""
22328           },
22329           {
22330             "group": "Body",
22331             "type": "String",
22332             "optional": true,
22333             "field": "description",
22334             "description": ""
22335           },
22336           {
22337             "group": "Body",
22338             "type": "Text",
22339             "optional": true,
22340             "field": "notificationTemplate",
22341             "description": ""
22342           },
22343           {
22344             "group": "Body",
22345             "type": "Boolean",
22346             "optional": true,
22347             "field": "notificationSound",
22348             "description": ""
22349           },
22350           {
22351             "group": "Body",
22352             "type": "Boolean",
22353             "optional": true,
22354             "field": "notificationShake",
22355             "description": ""
22356           },
22357           {
22358             "group": "Body",
22359             "type": "Integer",
22360             "optional": true,
22361             "field": "waitForTheAssignedAgent",
22362             "description": ""
22363           },
22364           {
22365             "group": "Body",
22366             "type": "Boolean",
22367             "optional": true,
22368             "field": "queueTransfer",
22369             "description": ""
22370           },
22371           {
22372             "group": "Body",
22373             "type": "Integer",
22374             "optional": true,
22375             "field": "queueTransferTimeout",
22376             "description": ""
22377           },
22378           {
22379             "group": "Body",
22380             "type": "Boolean",
22381             "optional": true,
22382             "field": "agentTransfer",
22383             "description": ""
22384           },
22385           {
22386             "group": "Body",
22387             "type": "Integer",
22388             "optional": true,
22389             "field": "agentTransferTimeout",
22390             "description": ""
22391           },
22392           {
22393             "group": "Body",
22394             "type": "String",
22395             "optional": true,
22396             "field": "baseUrl",
22397             "description": ""
22398           },
22399           {
22400             "group": "Body",
22401             "type": "Integer",
22402             "optional": true,
22403             "field": "mandatoryDispositionPauseId",
22404             "description": "<p>Status to put when mandatory disposition is enabled</p>"
22405           },
22406           {
22407             "group": "Body",
22408             "type": "Boolean",
22409             "optional": true,
22410             "field": "mandatoryDisposition",
22411             "description": "<p>Enabled/disables mandatory dispo on a queue</p>"
22412           }
22413         ]
22414       }
22415     },
22416     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22417     "version": "0.0.0",
22418     "filename": "server/api/smsAccount/index.js",
22419     "groupTitle": "Sms_Accounts"
22420   },
22421   {
22422     "type": "delete",
22423     "url": "/api/sms/accounts/{id}",
22424     "title": "Deletes a Account",
22425     "examples": [
22426       {
22427         "title": "Example usage:",
22428         "content": "curl https://{domain}/api/sms/accounts/{id} -v -u {name}:{password} -X DELETE",
22429         "type": "json"
22430       }
22431     ],
22432     "name": "DeleteAccounts",
22433     "group": "Sms_Accounts",
22434     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22435     "version": "0.0.0",
22436     "filename": "server/api/smsAccount/index.js",
22437     "groupTitle": "Sms_Accounts"
22438   },
22439   {
22440     "type": "get",
22441     "url": "/api/sms/accounts/describe",
22442     "title": "Gets table info about Accounts",
22443     "examples": [
22444       {
22445         "title": "Example usage:",
22446         "content": "curl https://{domain}/api/sms/accounts/describe -v -u {name}:{password}",
22447         "type": "json"
22448       }
22449     ],
22450     "name": "DescribeAccounts",
22451     "group": "Sms_Accounts",
22452     "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>",
22453     "version": "0.0.0",
22454     "filename": "server/api/smsAccount/index.js",
22455     "groupTitle": "Sms_Accounts"
22456   },
22457   {
22458     "type": "get",
22459     "url": "/api/sms/accounts",
22460     "title": "Gets a list of Accounts",
22461     "examples": [
22462       {
22463         "title": "Example usage:",
22464         "content": "curl https://{domain}/api/sms/accounts -v -u {name}:{password}",
22465         "type": "json"
22466       }
22467     ],
22468     "name": "GetAccounts",
22469     "group": "Sms_Accounts",
22470     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
22471     "version": "0.0.0",
22472     "filename": "server/api/smsAccount/index.js",
22473     "groupTitle": "Sms_Accounts"
22474   },
22475   {
22476     "type": "get",
22477     "url": "/api/sms/accounts/{id}/users",
22478     "title": "Gets agents from sms account",
22479     "examples": [
22480       {
22481         "title": "Example usage:",
22482         "content": "curl https://{domain}/api/sms/accounts/{id}/users -v -u {name}:{password} -X GET",
22483         "type": "json"
22484       }
22485     ],
22486     "name": "GetAgents",
22487     "group": "Sms_Accounts",
22488     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22489     "version": "0.0.0",
22490     "filename": "server/api/smsAccount/index.js",
22491     "groupTitle": "Sms_Accounts"
22492   },
22493   {
22494     "type": "delete",
22495     "url": "/api/sms/accounts/{id}/users",
22496     "title": "Removes agents from a sms account",
22497     "examples": [
22498       {
22499         "title": "Example usage:",
22500         "content": "curl https://{domain}/api/sms/accounts/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
22501         "type": "json"
22502       }
22503     ],
22504     "name": "RemoveAgents",
22505     "group": "Sms_Accounts",
22506     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22507     "version": "0.0.0",
22508     "filename": "server/api/smsAccount/index.js",
22509     "groupTitle": "Sms_Accounts"
22510   },
22511   {
22512     "type": "delete",
22513     "url": "/api/sms/accounts/{id}/canned_answers",
22514     "title": "Removes canned answers from account",
22515     "examples": [
22516       {
22517         "title": "Example usage:",
22518         "content": "curl https://{domain}/api/sms/accounts/{id}/canned_answers?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
22519         "type": "json"
22520       }
22521     ],
22522     "name": "RemoveAnswers",
22523     "group": "Sms_Accounts",
22524     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22525     "version": "0.0.0",
22526     "filename": "server/api/smsAccount/index.js",
22527     "groupTitle": "Sms_Accounts"
22528   },
22529   {
22530     "type": "delete",
22531     "url": "/api/sms/accounts/{id}/dispositions",
22532     "title": "Removes dispositions from account",
22533     "examples": [
22534       {
22535         "title": "Example usage:",
22536         "content": "curl https://{domain}/api/sms/accounts/{id}/dispositions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
22537         "type": "json"
22538       }
22539     ],
22540     "name": "RemoveDispositions",
22541     "group": "Sms_Accounts",
22542     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22543     "version": "0.0.0",
22544     "filename": "server/api/smsAccount/index.js",
22545     "groupTitle": "Sms_Accounts"
22546   },
22547   {
22548     "type": "get",
22549     "url": "/api/sms/accounts/{id}",
22550     "title": "Gets a single Account",
22551     "examples": [
22552       {
22553         "title": "Example usage:",
22554         "content": "curl https://{domain}/api/sms/accounts/{id} -v -u {name}:{password}",
22555         "type": "json"
22556       }
22557     ],
22558     "name": "ShowAccounts",
22559     "group": "Sms_Accounts",
22560     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22561     "version": "0.0.0",
22562     "filename": "server/api/smsAccount/index.js",
22563     "groupTitle": "Sms_Accounts"
22564   },
22565   {
22566     "type": "put",
22567     "url": "/api/sms/messages/{id}/accept",
22568     "title": "Accepts message",
22569     "examples": [
22570       {
22571         "title": "Example usage:",
22572         "content": "curl https://{domain}/api/sms/messages/{id}/accept \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
22573         "type": "json"
22574       }
22575     ],
22576     "name": "acceptMessage",
22577     "group": "Sms_Accounts",
22578     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22579     "version": "0.0.0",
22580     "filename": "server/api/smsMessage/index.js",
22581     "groupTitle": "Sms_Accounts"
22582   },
22583   {
22584     "type": "post",
22585     "url": "/api/sms/accounts/{id}/canned_answers",
22586     "title": "Creates new canned answer",
22587     "examples": [
22588       {
22589         "title": "Example usage:",
22590         "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",
22591         "type": "json"
22592       }
22593     ],
22594     "name": "addAnswer",
22595     "group": "Sms_Accounts",
22596     "parameter": {
22597       "fields": {
22598         "Body": [
22599           {
22600             "group": "Body",
22601             "type": "String",
22602             "optional": false,
22603             "field": "key",
22604             "description": ""
22605           },
22606           {
22607             "group": "Body",
22608             "type": "Text",
22609             "optional": false,
22610             "field": "value",
22611             "description": ""
22612           },
22613           {
22614             "group": "Body",
22615             "type": "String",
22616             "optional": true,
22617             "field": "description",
22618             "description": ""
22619           },
22620           {
22621             "group": "Body",
22622             "type": "Virtual",
22623             "optional": true,
22624             "field": "name",
22625             "description": ""
22626           }
22627         ]
22628       }
22629     },
22630     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22631     "version": "0.0.0",
22632     "filename": "server/api/smsAccount/index.js",
22633     "groupTitle": "Sms_Accounts"
22634   },
22635   {
22636     "type": "post",
22637     "url": "/api/sms/accounts/{id}/applications",
22638     "title": "Creates new applications",
22639     "examples": [
22640       {
22641         "title": "Example usage:",
22642         "content": "curl https://{domain}/api/sms/accounts/{id}/applications -d '[{\"app\": \"queue\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
22643         "type": "json"
22644       }
22645     ],
22646     "name": "addApplications",
22647     "group": "Sms_Accounts",
22648     "parameter": {
22649       "fields": {
22650         "Body": [
22651           {
22652             "group": "Body",
22653             "type": "Integer",
22654             "optional": false,
22655             "field": "priority",
22656             "description": ""
22657           },
22658           {
22659             "group": "Body",
22660             "type": "String",
22661             "optional": false,
22662             "field": "app",
22663             "description": ""
22664           },
22665           {
22666             "group": "Body",
22667             "type": "Text",
22668             "optional": true,
22669             "field": "appdata",
22670             "description": ""
22671           },
22672           {
22673             "group": "Body",
22674             "type": "String",
22675             "optional": true,
22676             "field": "description",
22677             "description": ""
22678           },
22679           {
22680             "group": "Body",
22681             "type": "String",
22682             "optional": true,
22683             "field": "interval",
22684             "description": ""
22685           }
22686         ]
22687       }
22688     },
22689     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22690     "version": "0.0.0",
22691     "filename": "server/api/smsAccount/index.js",
22692     "groupTitle": "Sms_Accounts"
22693   },
22694   {
22695     "type": "post",
22696     "url": "/api/sms/accounts/{id}/dispositions",
22697     "title": "Creates new disposition",
22698     "examples": [
22699       {
22700         "title": "Example usage:",
22701         "content": "curl https://{domain}/api/sms/accounts/{id}/dispositions -d '{\"name\": \"vip\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
22702         "type": "json"
22703       }
22704     ],
22705     "name": "addDisposition",
22706     "group": "Sms_Accounts",
22707     "parameter": {
22708       "fields": {
22709         "Body": [
22710           {
22711             "group": "Body",
22712             "type": "String",
22713             "optional": false,
22714             "field": "name",
22715             "description": ""
22716           },
22717           {
22718             "group": "Body",
22719             "type": "String",
22720             "allowedValues": [
22721               "\"first\"",
22722               "\"second\"",
22723               "\"third\""
22724             ],
22725             "optional": false,
22726             "field": "level",
22727             "description": ""
22728           },
22729           {
22730             "group": "Body",
22731             "type": "String",
22732             "optional": true,
22733             "field": "description",
22734             "description": ""
22735           }
22736         ]
22737       }
22738     },
22739     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22740     "version": "0.0.0",
22741     "filename": "server/api/smsAccount/index.js",
22742     "groupTitle": "Sms_Accounts"
22743   },
22744   {
22745     "type": "get",
22746     "url": "/api/sms/accounts/{id}/canned_answers",
22747     "title": "Gets account canned answers",
22748     "examples": [
22749       {
22750         "title": "Example usage:",
22751         "content": "curl https://{domain}/api/sms/accounts/{id}/canned_answers -v -u {name}:{password} -X GET",
22752         "type": "json"
22753       }
22754     ],
22755     "name": "getAnswers",
22756     "group": "Sms_Accounts",
22757     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22758     "version": "0.0.0",
22759     "filename": "server/api/smsAccount/index.js",
22760     "groupTitle": "Sms_Accounts"
22761   },
22762   {
22763     "type": "get",
22764     "url": "/api/sms/accounts/{id}/applications",
22765     "title": "Gets account applications",
22766     "examples": [
22767       {
22768         "title": "Example usage:",
22769         "content": "curl https://{domain}/api/sms/accounts/{id}/applications -v -u {name}:{password} -X GET",
22770         "type": "json"
22771       }
22772     ],
22773     "name": "getApplications",
22774     "group": "Sms_Accounts",
22775     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22776     "version": "0.0.0",
22777     "filename": "server/api/smsAccount/index.js",
22778     "groupTitle": "Sms_Accounts"
22779   },
22780   {
22781     "type": "get",
22782     "url": "/api/sms/accounts/{id}/dispositions",
22783     "title": "Gets account dispositions",
22784     "examples": [
22785       {
22786         "title": "Example usage:",
22787         "content": "curl https://{domain}/api/sms/accounts/{id}/dispositions -v -u {name}:{password} -X GET",
22788         "type": "json"
22789       }
22790     ],
22791     "name": "getDispositions",
22792     "group": "Sms_Accounts",
22793     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22794     "version": "0.0.0",
22795     "filename": "server/api/smsAccount/index.js",
22796     "groupTitle": "Sms_Accounts"
22797   },
22798   {
22799     "type": "get",
22800     "url": "/api/sms/accounts/{id}/interactions",
22801     "title": "Gets Sms Account interactions",
22802     "examples": [
22803       {
22804         "title": "Example usage:",
22805         "content": "curl https://{domain}/api/sms/accounts/{id}/interactions -v -u {name}:{password} -X GET",
22806         "type": "json"
22807       }
22808     ],
22809     "name": "getInteractions",
22810     "group": "Sms_Accounts",
22811     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22812     "version": "0.0.0",
22813     "filename": "server/api/smsAccount/index.js",
22814     "groupTitle": "Sms_Accounts"
22815   },
22816   {
22817     "type": "post",
22818     "url": "/api/sms/accounts/{id}/notify",
22819     "title": "Notify new message",
22820     "examples": [
22821       {
22822         "title": "Example usage:",
22823         "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",
22824         "type": "json"
22825       }
22826     ],
22827     "name": "notify",
22828     "group": "Sms_Accounts",
22829     "description": "<p>Motion 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>",
22830     "version": "0.0.0",
22831     "filename": "server/api/smsAccount/index.js",
22832     "groupTitle": "Sms_Accounts"
22833   },
22834   {
22835     "type": "put",
22836     "url": "/api/sms/messages/{id}/reject",
22837     "title": "Rejects message",
22838     "examples": [
22839       {
22840         "title": "Example usage:",
22841         "content": "curl https://{domain}/api/sms/messages/{id}/reject \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
22842         "type": "json"
22843       }
22844     ],
22845     "name": "rejectMessage",
22846     "group": "Sms_Accounts",
22847     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22848     "version": "0.0.0",
22849     "filename": "server/api/smsMessage/index.js",
22850     "groupTitle": "Sms_Accounts"
22851   },
22852   {
22853     "type": "post",
22854     "url": "/api/sms/accounts/{id}/send",
22855     "title": "Send new sms message",
22856     "examples": [
22857       {
22858         "title": "Example usage:",
22859         "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",
22860         "type": "json"
22861       }
22862     ],
22863     "name": "sendSms",
22864     "group": "Sms_Accounts",
22865     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22866     "version": "0.0.0",
22867     "filename": "server/api/smsAccount/index.js",
22868     "groupTitle": "Sms_Accounts"
22869   },
22870   {
22871     "type": "post",
22872     "url": "/api/sms/messages/{id}/status",
22873     "title": "Receive message status",
22874     "examples": [
22875       {
22876         "title": "Example usage:",
22877         "content": "curl https://{domain}/api/sms/messages/{id}/status \\ \n -H 'Content-Type: application/json' -v -X POST",
22878         "type": "json"
22879       }
22880     ],
22881     "name": "statusMessage",
22882     "group": "Sms_Accounts",
22883     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22884     "version": "0.0.0",
22885     "filename": "server/api/smsMessage/index.js",
22886     "groupTitle": "Sms_Accounts"
22887   },
22888   {
22889     "type": "get",
22890     "url": "/api/sms/accounts/{id}/status",
22891     "title": "Receive message status as get request",
22892     "examples": [
22893       {
22894         "title": "Example usage:",
22895         "content": "curl https://{domain}/api/sms/accounts/{id}/status -H 'Content-Type: application/json' -v -X GET",
22896         "type": "json"
22897       }
22898     ],
22899     "name": "statusMessage",
22900     "group": "Sms_Accounts",
22901     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22902     "version": "0.0.0",
22903     "filename": "server/api/smsAccount/index.js",
22904     "groupTitle": "Sms_Accounts"
22905   },
22906   {
22907     "type": "post",
22908     "url": "/api/sms/accounts/{id}/status",
22909     "title": "Receive message status",
22910     "examples": [
22911       {
22912         "title": "Example usage:",
22913         "content": "curl https://{domain}/api/sms/accounts/{id}/status -H 'Content-Type: application/json' -v -X POST",
22914         "type": "json"
22915       }
22916     ],
22917     "name": "statusMessage",
22918     "group": "Sms_Accounts",
22919     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22920     "version": "0.0.0",
22921     "filename": "server/api/smsAccount/index.js",
22922     "groupTitle": "Sms_Accounts"
22923   },
22924   {
22925     "type": "put",
22926     "url": "/api/sms/accounts/{id}",
22927     "title": "Update an existing Account",
22928     "examples": [
22929       {
22930         "title": "Example usage:",
22931         "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",
22932         "type": "json"
22933       }
22934     ],
22935     "name": "updateAccounts",
22936     "group": "Sms_Accounts",
22937     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22938     "version": "0.0.0",
22939     "filename": "server/api/smsAccount/index.js",
22940     "groupTitle": "Sms_Accounts"
22941   },
22942   {
22943     "type": "post",
22944     "url": "/api/sms/applications",
22945     "title": "Creates a new Application",
22946     "examples": [
22947       {
22948         "title": "Example usage:",
22949         "content": "curl https://{domain}/api/sms/applications -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
22950         "type": "json"
22951       }
22952     ],
22953     "name": "CreateApplications",
22954     "group": "Sms_Applications",
22955     "parameter": {
22956       "fields": {
22957         "Body": [
22958           {
22959             "group": "Body",
22960             "type": "Integer",
22961             "optional": false,
22962             "field": "priority",
22963             "description": ""
22964           },
22965           {
22966             "group": "Body",
22967             "type": "String",
22968             "optional": false,
22969             "field": "app",
22970             "description": ""
22971           },
22972           {
22973             "group": "Body",
22974             "type": "Text",
22975             "optional": true,
22976             "field": "appdata",
22977             "description": ""
22978           },
22979           {
22980             "group": "Body",
22981             "type": "String",
22982             "optional": true,
22983             "field": "description",
22984             "description": ""
22985           },
22986           {
22987             "group": "Body",
22988             "type": "String",
22989             "optional": true,
22990             "field": "interval",
22991             "description": ""
22992           }
22993         ]
22994       }
22995     },
22996     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22997     "version": "0.0.0",
22998     "filename": "server/api/smsApplication/index.js",
22999     "groupTitle": "Sms_Applications"
23000   },
23001   {
23002     "type": "delete",
23003     "url": "/api/sms/applications/{id}",
23004     "title": "Deletes a Application",
23005     "examples": [
23006       {
23007         "title": "Example usage:",
23008         "content": "curl https://{domain}/api/sms/applications/{id} -v -u {name}:{password} -X DELETE",
23009         "type": "json"
23010       }
23011     ],
23012     "name": "DeleteApplications",
23013     "group": "Sms_Applications",
23014     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23015     "version": "0.0.0",
23016     "filename": "server/api/smsApplication/index.js",
23017     "groupTitle": "Sms_Applications"
23018   },
23019   {
23020     "type": "get",
23021     "url": "/api/sms/applications",
23022     "title": "Gets a list of Applications",
23023     "examples": [
23024       {
23025         "title": "Example usage:",
23026         "content": "curl https://{domain}/api/sms/applications -v -u {name}:{password}",
23027         "type": "json"
23028       }
23029     ],
23030     "name": "GetApplications",
23031     "group": "Sms_Applications",
23032     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
23033     "version": "0.0.0",
23034     "filename": "server/api/smsApplication/index.js",
23035     "groupTitle": "Sms_Applications"
23036   },
23037   {
23038     "type": "get",
23039     "url": "/api/sms/applications/{id}",
23040     "title": "Gets a single Application",
23041     "examples": [
23042       {
23043         "title": "Example usage:",
23044         "content": "curl https://{domain}/api/sms/applications/{id} -v -u {name}:{password}",
23045         "type": "json"
23046       }
23047     ],
23048     "name": "ShowApplications",
23049     "group": "Sms_Applications",
23050     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23051     "version": "0.0.0",
23052     "filename": "server/api/smsApplication/index.js",
23053     "groupTitle": "Sms_Applications"
23054   },
23055   {
23056     "type": "put",
23057     "url": "/api/sms/applications/{id}",
23058     "title": "Update an existing Application",
23059     "examples": [
23060       {
23061         "title": "Example usage:",
23062         "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",
23063         "type": "json"
23064       }
23065     ],
23066     "name": "updateApplications",
23067     "group": "Sms_Applications",
23068     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23069     "version": "0.0.0",
23070     "filename": "server/api/smsApplication/index.js",
23071     "groupTitle": "Sms_Applications"
23072   },
23073   {
23074     "type": "post",
23075     "url": "/api/sms/interactions/{id}/tags",
23076     "title": "Add tags to the interaction",
23077     "examples": [
23078       {
23079         "title": "Example usage:",
23080         "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",
23081         "type": "json"
23082       }
23083     ],
23084     "name": "AddTags",
23085     "group": "Sms_Interactions",
23086     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23087     "version": "0.0.0",
23088     "filename": "server/api/smsInteraction/index.js",
23089     "groupTitle": "Sms_Interactions"
23090   },
23091   {
23092     "type": "post",
23093     "url": "/api/sms/interactions",
23094     "title": "Creates a new Interaction",
23095     "examples": [
23096       {
23097         "title": "Example usage:",
23098         "content": "curl https://{domain}/api/sms/interactions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
23099         "type": "json"
23100       }
23101     ],
23102     "name": "CreateInteractions",
23103     "group": "Sms_Interactions",
23104     "parameter": {
23105       "fields": {
23106         "Body": [
23107           {
23108             "group": "Body",
23109             "type": "Boolean",
23110             "optional": true,
23111             "field": "closed",
23112             "description": ""
23113           },
23114           {
23115             "group": "Body",
23116             "type": "String",
23117             "optional": true,
23118             "field": "closedAt",
23119             "description": ""
23120           },
23121           {
23122             "group": "Body",
23123             "type": "String",
23124             "optional": true,
23125             "field": "disposition",
23126             "description": ""
23127           },
23128           {
23129             "group": "Body",
23130             "type": "String",
23131             "optional": true,
23132             "field": "secondDisposition",
23133             "description": ""
23134           },
23135           {
23136             "group": "Body",
23137             "type": "String",
23138             "optional": true,
23139             "field": "thirdDisposition",
23140             "description": ""
23141           },
23142           {
23143             "group": "Body",
23144             "type": "String",
23145             "optional": true,
23146             "field": "note",
23147             "description": ""
23148           },
23149           {
23150             "group": "Body",
23151             "type": "String",
23152             "optional": true,
23153             "field": "phone",
23154             "description": ""
23155           },
23156           {
23157             "group": "Body",
23158             "type": "String",
23159             "optional": true,
23160             "field": "read1stAt",
23161             "description": ""
23162           },
23163           {
23164             "group": "Body",
23165             "type": "String",
23166             "allowedValues": [
23167               "\"in\"",
23168               "\"out\""
23169             ],
23170             "optional": false,
23171             "field": "firstMsgDirection",
23172             "description": ""
23173           },
23174           {
23175             "group": "Body",
23176             "type": "String",
23177             "optional": true,
23178             "field": "lastMsgAt",
23179             "description": ""
23180           },
23181           {
23182             "group": "Body",
23183             "type": "String",
23184             "allowedValues": [
23185               "\"in\"",
23186               "\"out\""
23187             ],
23188             "optional": false,
23189             "field": "lastMsgDirection",
23190             "description": ""
23191           },
23192           {
23193             "group": "Body",
23194             "type": "Boolean",
23195             "optional": true,
23196             "field": "autoreplyExecuted",
23197             "description": ""
23198           }
23199         ]
23200       }
23201     },
23202     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23203     "version": "0.0.0",
23204     "filename": "server/api/smsInteraction/index.js",
23205     "groupTitle": "Sms_Interactions"
23206   },
23207   {
23208     "type": "delete",
23209     "url": "/api/sms/interactions/{id}",
23210     "title": "Deletes a Interaction",
23211     "examples": [
23212       {
23213         "title": "Example usage:",
23214         "content": "curl https://{domain}/api/sms/interactions/{id} -v -u {name}:{password} -X DELETE",
23215         "type": "json"
23216       }
23217     ],
23218     "name": "DeleteInteractions",
23219     "group": "Sms_Interactions",
23220     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23221     "version": "0.0.0",
23222     "filename": "server/api/smsInteraction/index.js",
23223     "groupTitle": "Sms_Interactions"
23224   },
23225   {
23226     "type": "get",
23227     "url": "/api/sms/interactions/describe",
23228     "title": "Gets table info about Interactions",
23229     "examples": [
23230       {
23231         "title": "Example usage:",
23232         "content": "curl https://{domain}/api/sms/interactions/describe -v -u {name}:{password}",
23233         "type": "json"
23234       }
23235     ],
23236     "name": "DescribeInteractions",
23237     "group": "Sms_Interactions",
23238     "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>",
23239     "version": "0.0.0",
23240     "filename": "server/api/smsInteraction/index.js",
23241     "groupTitle": "Sms_Interactions"
23242   },
23243   {
23244     "type": "get",
23245     "url": "/api/sms/interactions",
23246     "title": "Gets a list of Interactions",
23247     "examples": [
23248       {
23249         "title": "Example usage:",
23250         "content": "curl https://{domain}/api/sms/interactions -v -u {name}:{password}",
23251         "type": "json"
23252       }
23253     ],
23254     "name": "GetInteractions",
23255     "group": "Sms_Interactions",
23256     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
23257     "version": "0.0.0",
23258     "filename": "server/api/smsInteraction/index.js",
23259     "groupTitle": "Sms_Interactions"
23260   },
23261   {
23262     "type": "delete",
23263     "url": "/api/sms/interactions/{id}/tags",
23264     "title": "Removes tags from interaction",
23265     "examples": [
23266       {
23267         "title": "Example usage:",
23268         "content": "curl https://{domain}/api/sms/interactions/{id}/tags?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
23269         "type": "json"
23270       }
23271     ],
23272     "name": "RemoveTags",
23273     "group": "Sms_Interactions",
23274     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23275     "version": "0.0.0",
23276     "filename": "server/api/smsInteraction/index.js",
23277     "groupTitle": "Sms_Interactions"
23278   },
23279   {
23280     "type": "get",
23281     "url": "/api/sms/interactions/{id}",
23282     "title": "Gets a single Interaction",
23283     "examples": [
23284       {
23285         "title": "Example usage:",
23286         "content": "curl https://{domain}/api/sms/interactions/{id} -v -u {name}:{password}",
23287         "type": "json"
23288       }
23289     ],
23290     "name": "ShowInteractions",
23291     "group": "Sms_Interactions",
23292     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23293     "version": "0.0.0",
23294     "filename": "server/api/smsInteraction/index.js",
23295     "groupTitle": "Sms_Interactions"
23296   },
23297   {
23298     "type": "post",
23299     "url": "/api/sms/interactions/{id}/messages",
23300     "title": "Creates new messages",
23301     "examples": [
23302       {
23303         "title": "Example usage:",
23304         "content": "curl https://{domain}/api/sms/interactions/{id}/messages -d '[{\"to\": \"+3901119886500\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
23305         "type": "json"
23306       }
23307     ],
23308     "name": "addMessage",
23309     "group": "Sms_Interactions",
23310     "parameter": {
23311       "fields": {
23312         "Body": [
23313           {
23314             "group": "Body",
23315             "type": "Text",
23316             "optional": false,
23317             "field": "body",
23318             "description": ""
23319           },
23320           {
23321             "group": "Body",
23322             "type": "Boolean",
23323             "optional": true,
23324             "field": "read",
23325             "description": ""
23326           },
23327           {
23328             "group": "Body",
23329             "type": "String",
23330             "allowedValues": [
23331               "\"in\"",
23332               "\"out\""
23333             ],
23334             "optional": false,
23335             "field": "direction",
23336             "description": ""
23337           },
23338           {
23339             "group": "Body",
23340             "type": "String",
23341             "optional": true,
23342             "field": "messageId",
23343             "description": ""
23344           },
23345           {
23346             "group": "Body",
23347             "type": "String",
23348             "optional": true,
23349             "field": "phone",
23350             "description": ""
23351           },
23352           {
23353             "group": "Body",
23354             "type": "String",
23355             "optional": true,
23356             "field": "readAt",
23357             "description": ""
23358           },
23359           {
23360             "group": "Body",
23361             "type": "Boolean",
23362             "optional": true,
23363             "field": "secret",
23364             "description": ""
23365           },
23366           {
23367             "group": "Body",
23368             "type": "String",
23369             "optional": true,
23370             "field": "providerName",
23371             "description": ""
23372           },
23373           {
23374             "group": "Body",
23375             "type": "Text",
23376             "optional": true,
23377             "field": "providerResponse",
23378             "description": ""
23379           }
23380         ]
23381       }
23382     },
23383     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23384     "version": "0.0.0",
23385     "filename": "server/api/smsInteraction/index.js",
23386     "groupTitle": "Sms_Interactions"
23387   },
23388   {
23389     "type": "get",
23390     "url": "/api/sms/interactions/{id}/download",
23391     "title": "Gets interaction",
23392     "examples": [
23393       {
23394         "title": "Example usage:",
23395         "content": "curl https://{domain}/api/sms/interactions/{id}/download -v -u {name}:{password} -X GET",
23396         "type": "json"
23397       }
23398     ],
23399     "name": "download",
23400     "group": "Sms_Interactions",
23401     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23402     "version": "0.0.0",
23403     "filename": "server/api/smsInteraction/index.js",
23404     "groupTitle": "Sms_Interactions"
23405   },
23406   {
23407     "type": "get",
23408     "url": "/api/sms/interactions/{id}/messages",
23409     "title": "Gets interaction messages",
23410     "examples": [
23411       {
23412         "title": "Example usage:",
23413         "content": "curl https://{domain}/api/sms/interactions/{id}/messages -v -u {name}:{password} -X GET",
23414         "type": "json"
23415       }
23416     ],
23417     "name": "getMessages",
23418     "group": "Sms_Interactions",
23419     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23420     "version": "0.0.0",
23421     "filename": "server/api/smsInteraction/index.js",
23422     "groupTitle": "Sms_Interactions"
23423   },
23424   {
23425     "type": "put",
23426     "url": "/api/sms/interactions/{id}",
23427     "title": "Update an existing Interaction",
23428     "examples": [
23429       {
23430         "title": "Example usage:",
23431         "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",
23432         "type": "json"
23433       }
23434     ],
23435     "name": "updateInteractions",
23436     "group": "Sms_Interactions",
23437     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23438     "version": "0.0.0",
23439     "filename": "server/api/smsInteraction/index.js",
23440     "groupTitle": "Sms_Interactions"
23441   },
23442   {
23443     "type": "post",
23444     "url": "/api/sms/messages",
23445     "title": "Creates a new Message",
23446     "examples": [
23447       {
23448         "title": "Example usage:",
23449         "content": "curl https://{domain}/api/sms/messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
23450         "type": "json"
23451       }
23452     ],
23453     "name": "CreateMessages",
23454     "group": "Sms_Messages",
23455     "parameter": {
23456       "fields": {
23457         "Body": [
23458           {
23459             "group": "Body",
23460             "type": "Text",
23461             "optional": false,
23462             "field": "body",
23463             "description": ""
23464           },
23465           {
23466             "group": "Body",
23467             "type": "Boolean",
23468             "optional": true,
23469             "field": "read",
23470             "description": ""
23471           },
23472           {
23473             "group": "Body",
23474             "type": "String",
23475             "allowedValues": [
23476               "\"in\"",
23477               "\"out\""
23478             ],
23479             "optional": false,
23480             "field": "direction",
23481             "description": ""
23482           },
23483           {
23484             "group": "Body",
23485             "type": "String",
23486             "optional": true,
23487             "field": "messageId",
23488             "description": ""
23489           },
23490           {
23491             "group": "Body",
23492             "type": "String",
23493             "optional": true,
23494             "field": "phone",
23495             "description": ""
23496           },
23497           {
23498             "group": "Body",
23499             "type": "String",
23500             "optional": true,
23501             "field": "readAt",
23502             "description": ""
23503           },
23504           {
23505             "group": "Body",
23506             "type": "Boolean",
23507             "optional": true,
23508             "field": "secret",
23509             "description": ""
23510           },
23511           {
23512             "group": "Body",
23513             "type": "String",
23514             "optional": true,
23515             "field": "providerName",
23516             "description": ""
23517           },
23518           {
23519             "group": "Body",
23520             "type": "Text",
23521             "optional": true,
23522             "field": "providerResponse",
23523             "description": ""
23524           }
23525         ]
23526       }
23527     },
23528     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23529     "version": "0.0.0",
23530     "filename": "server/api/smsMessage/index.js",
23531     "groupTitle": "Sms_Messages"
23532   },
23533   {
23534     "type": "delete",
23535     "url": "/api/sms/messages/{id}",
23536     "title": "Deletes a Message",
23537     "examples": [
23538       {
23539         "title": "Example usage:",
23540         "content": "curl https://{domain}/api/sms/messages/{id} -v -u {name}:{password} -X DELETE",
23541         "type": "json"
23542       }
23543     ],
23544     "name": "DeleteMessages",
23545     "group": "Sms_Messages",
23546     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23547     "version": "0.0.0",
23548     "filename": "server/api/smsMessage/index.js",
23549     "groupTitle": "Sms_Messages"
23550   },
23551   {
23552     "type": "get",
23553     "url": "/api/sms/messages/describe",
23554     "title": "Gets table info about Messages",
23555     "examples": [
23556       {
23557         "title": "Example usage:",
23558         "content": "curl https://{domain}/api/sms/messages/describe -v -u {name}:{password}",
23559         "type": "json"
23560       }
23561     ],
23562     "name": "DescribeMessages",
23563     "group": "Sms_Messages",
23564     "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>",
23565     "version": "0.0.0",
23566     "filename": "server/api/smsMessage/index.js",
23567     "groupTitle": "Sms_Messages"
23568   },
23569   {
23570     "type": "get",
23571     "url": "/api/sms/messages",
23572     "title": "Gets a list of Messages",
23573     "examples": [
23574       {
23575         "title": "Example usage:",
23576         "content": "curl https://{domain}/api/sms/messages -v -u {name}:{password}",
23577         "type": "json"
23578       }
23579     ],
23580     "name": "GetMessages",
23581     "group": "Sms_Messages",
23582     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
23583     "version": "0.0.0",
23584     "filename": "server/api/smsMessage/index.js",
23585     "groupTitle": "Sms_Messages"
23586   },
23587   {
23588     "type": "get",
23589     "url": "/api/sms/messages/{id}",
23590     "title": "Gets a single Message",
23591     "examples": [
23592       {
23593         "title": "Example usage:",
23594         "content": "curl https://{domain}/api/sms/messages/{id} -v -u {name}:{password}",
23595         "type": "json"
23596       }
23597     ],
23598     "name": "ShowMessages",
23599     "group": "Sms_Messages",
23600     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23601     "version": "0.0.0",
23602     "filename": "server/api/smsMessage/index.js",
23603     "groupTitle": "Sms_Messages"
23604   },
23605   {
23606     "type": "put",
23607     "url": "/api/sms/messages/{id}",
23608     "title": "Update an existing Message",
23609     "examples": [
23610       {
23611         "title": "Example usage:",
23612         "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",
23613         "type": "json"
23614       }
23615     ],
23616     "name": "updateMessages",
23617     "group": "Sms_Messages",
23618     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23619     "version": "0.0.0",
23620     "filename": "server/api/smsMessage/index.js",
23621     "groupTitle": "Sms_Messages"
23622   },
23623   {
23624     "type": "post",
23625     "url": "/api/sms/reports/queue",
23626     "title": "Creates a new Sms Queue Report",
23627     "examples": [
23628       {
23629         "title": "Example usage:",
23630         "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",
23631         "type": "json"
23632       }
23633     ],
23634     "name": "CreateSms_Queue_Reports",
23635     "group": "Sms_Queue_Reports",
23636     "parameter": {
23637       "fields": {
23638         "Body": [
23639           {
23640             "group": "Body",
23641             "type": "String",
23642             "optional": false,
23643             "field": "uniqueid",
23644             "description": ""
23645           },
23646           {
23647             "group": "Body",
23648             "type": "String",
23649             "optional": true,
23650             "field": "from",
23651             "description": ""
23652           },
23653           {
23654             "group": "Body",
23655             "type": "String",
23656             "optional": true,
23657             "field": "joinAt",
23658             "description": ""
23659           },
23660           {
23661             "group": "Body",
23662             "type": "String",
23663             "optional": true,
23664             "field": "leaveAt",
23665             "description": ""
23666           },
23667           {
23668             "group": "Body",
23669             "type": "String",
23670             "optional": true,
23671             "field": "acceptAt",
23672             "description": ""
23673           },
23674           {
23675             "group": "Body",
23676             "type": "String",
23677             "optional": true,
23678             "field": "exitAt",
23679             "description": ""
23680           },
23681           {
23682             "group": "Body",
23683             "type": "String",
23684             "optional": true,
23685             "field": "reason",
23686             "description": ""
23687           }
23688         ]
23689       }
23690     },
23691     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23692     "version": "0.0.0",
23693     "filename": "server/api/smsQueueReport/index.js",
23694     "groupTitle": "Sms_Queue_Reports"
23695   },
23696   {
23697     "type": "delete",
23698     "url": "/api/sms/reports/queue/{id}",
23699     "title": "Deletes a Sms Queue Report",
23700     "examples": [
23701       {
23702         "title": "Example usage:",
23703         "content": "curl https://{domain}/api/sms/reports/queue/{id} -v -u {name}:{password} -X DELETE",
23704         "type": "json"
23705       }
23706     ],
23707     "name": "DeleteSms_Queue_Reports",
23708     "group": "Sms_Queue_Reports",
23709     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23710     "version": "0.0.0",
23711     "filename": "server/api/smsQueueReport/index.js",
23712     "groupTitle": "Sms_Queue_Reports"
23713   },
23714   {
23715     "type": "get",
23716     "url": "/api/sms/reports/queue/describe",
23717     "title": "Gets table info about Sms Queue Reports",
23718     "examples": [
23719       {
23720         "title": "Example usage:",
23721         "content": "curl https://{domain}/api/sms/reports/queue/describe -v -u {name}:{password}",
23722         "type": "json"
23723       }
23724     ],
23725     "name": "DescribeSms_Queue_Reports",
23726     "group": "Sms_Queue_Reports",
23727     "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>",
23728     "version": "0.0.0",
23729     "filename": "server/api/smsQueueReport/index.js",
23730     "groupTitle": "Sms_Queue_Reports"
23731   },
23732   {
23733     "type": "get",
23734     "url": "/api/sms/reports/queue",
23735     "title": "Gets a list of Sms Queue Reports",
23736     "examples": [
23737       {
23738         "title": "Example usage:",
23739         "content": "curl https://{domain}/api/sms/reports/queue -v -u {name}:{password}",
23740         "type": "json"
23741       }
23742     ],
23743     "name": "GetSms_Queue_Reports",
23744     "group": "Sms_Queue_Reports",
23745     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
23746     "version": "0.0.0",
23747     "filename": "server/api/smsQueueReport/index.js",
23748     "groupTitle": "Sms_Queue_Reports"
23749   },
23750   {
23751     "type": "get",
23752     "url": "/api/sms/reports/queue/{id}",
23753     "title": "Gets a single Sms Queue Report",
23754     "examples": [
23755       {
23756         "title": "Example usage:",
23757         "content": "curl https://{domain}/api/sms/reports/queue/{id} -v -u {name}:{password}",
23758         "type": "json"
23759       }
23760     ],
23761     "name": "ShowSms_Queue_Reports",
23762     "group": "Sms_Queue_Reports",
23763     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23764     "version": "0.0.0",
23765     "filename": "server/api/smsQueueReport/index.js",
23766     "groupTitle": "Sms_Queue_Reports"
23767   },
23768   {
23769     "type": "put",
23770     "url": "/api/sms/reports/queue/{id}",
23771     "title": "Update an existing Sms Queue Report",
23772     "examples": [
23773       {
23774         "title": "Example usage:",
23775         "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",
23776         "type": "json"
23777       }
23778     ],
23779     "name": "updateSms_Queue_Reports",
23780     "group": "Sms_Queue_Reports",
23781     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23782     "version": "0.0.0",
23783     "filename": "server/api/smsQueueReport/index.js",
23784     "groupTitle": "Sms_Queue_Reports"
23785   },
23786   {
23787     "type": "post",
23788     "url": "/api/sms/queues/{id}/users",
23789     "title": "Add agents to a queue",
23790     "examples": [
23791       {
23792         "title": "Example usage:",
23793         "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",
23794         "type": "json"
23795       }
23796     ],
23797     "name": "AddAgents",
23798     "group": "Sms_Queues",
23799     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23800     "version": "0.0.0",
23801     "filename": "server/api/smsQueue/index.js",
23802     "groupTitle": "Sms_Queues"
23803   },
23804   {
23805     "type": "post",
23806     "url": "/api/sms/queues/{id}/teams",
23807     "title": "Add teams to a queue",
23808     "examples": [
23809       {
23810         "title": "Example usage:",
23811         "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",
23812         "type": "json"
23813       }
23814     ],
23815     "name": "AddTeams",
23816     "group": "Sms_Queues",
23817     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23818     "version": "0.0.0",
23819     "filename": "server/api/smsQueue/index.js",
23820     "groupTitle": "Sms_Queues"
23821   },
23822   {
23823     "type": "post",
23824     "url": "/api/sms/queues",
23825     "title": "Creates a new Queue",
23826     "examples": [
23827       {
23828         "title": "Example usage:",
23829         "content": "curl https://{domain}/api/sms/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
23830         "type": "json"
23831       }
23832     ],
23833     "name": "CreateQueues",
23834     "group": "Sms_Queues",
23835     "parameter": {
23836       "fields": {
23837         "Body": [
23838           {
23839             "group": "Body",
23840             "type": "String",
23841             "optional": true,
23842             "field": "name",
23843             "description": ""
23844           },
23845           {
23846             "group": "Body",
23847             "type": "String",
23848             "optional": true,
23849             "field": "description",
23850             "description": ""
23851           },
23852           {
23853             "group": "Body",
23854             "type": "Integer",
23855             "optional": true,
23856             "field": "timeout",
23857             "description": ""
23858           },
23859           {
23860             "group": "Body",
23861             "type": "String",
23862             "allowedValues": [
23863               "\"rrmemory\"",
23864               "\"beepall\"",
23865               "\"roundrobin\""
23866             ],
23867             "optional": true,
23868             "field": "strategy",
23869             "description": ""
23870           }
23871         ]
23872       }
23873     },
23874     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23875     "version": "0.0.0",
23876     "filename": "server/api/smsQueue/index.js",
23877     "groupTitle": "Sms_Queues"
23878   },
23879   {
23880     "type": "delete",
23881     "url": "/api/sms/queues/{id}",
23882     "title": "Deletes a Queue",
23883     "examples": [
23884       {
23885         "title": "Example usage:",
23886         "content": "curl https://{domain}/api/sms/queues/{id} -v -u {name}:{password} -X DELETE",
23887         "type": "json"
23888       }
23889     ],
23890     "name": "DeleteQueues",
23891     "group": "Sms_Queues",
23892     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23893     "version": "0.0.0",
23894     "filename": "server/api/smsQueue/index.js",
23895     "groupTitle": "Sms_Queues"
23896   },
23897   {
23898     "type": "get",
23899     "url": "/api/sms/queues/describe",
23900     "title": "Gets table info about Queues",
23901     "examples": [
23902       {
23903         "title": "Example usage:",
23904         "content": "curl https://{domain}/api/sms/queues/describe -v -u {name}:{password}",
23905         "type": "json"
23906       }
23907     ],
23908     "name": "DescribeQueues",
23909     "group": "Sms_Queues",
23910     "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>",
23911     "version": "0.0.0",
23912     "filename": "server/api/smsQueue/index.js",
23913     "groupTitle": "Sms_Queues"
23914   },
23915   {
23916     "type": "get",
23917     "url": "/api/sms/queues/{id}/users",
23918     "title": "Gets queue agents",
23919     "examples": [
23920       {
23921         "title": "Example usage:",
23922         "content": "curl https://{domain}/api/sms/queues/{id}/users -v -u {name}:{password} -X POST",
23923         "type": "json"
23924       }
23925     ],
23926     "name": "GetAgents",
23927     "group": "Sms_Queues",
23928     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23929     "version": "0.0.0",
23930     "filename": "server/api/smsQueue/index.js",
23931     "groupTitle": "Sms_Queues"
23932   },
23933   {
23934     "type": "get",
23935     "url": "/api/sms/queues/{id}/members",
23936     "title": "GetMembers",
23937     "examples": [
23938       {
23939         "title": "Example usage:",
23940         "content": "curl https://{domain}/api/sms/queues/{id}/members  -v -u {name}:{password}",
23941         "type": "json"
23942       }
23943     ],
23944     "name": "GetMembers",
23945     "group": "Sms_Queues",
23946     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23947     "version": "0.0.0",
23948     "filename": "server/api/smsQueue/index.js",
23949     "groupTitle": "Sms_Queues"
23950   },
23951   {
23952     "type": "get",
23953     "url": "/api/sms/queues",
23954     "title": "Gets a list of Queues",
23955     "examples": [
23956       {
23957         "title": "Example usage:",
23958         "content": "curl https://{domain}/api/sms/queues -v -u {name}:{password}",
23959         "type": "json"
23960       }
23961     ],
23962     "name": "GetQueues",
23963     "group": "Sms_Queues",
23964     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
23965     "version": "0.0.0",
23966     "filename": "server/api/smsQueue/index.js",
23967     "groupTitle": "Sms_Queues"
23968   },
23969   {
23970     "type": "get",
23971     "url": "/api/sms/queues/{id}/teams",
23972     "title": "Gets queues list",
23973     "examples": [
23974       {
23975         "title": "Example usage:",
23976         "content": "curl https://{domain}/api/sms/queues/{id}/teams -v -u {name}:{password}",
23977         "type": "json"
23978       }
23979     ],
23980     "name": "GetTeams",
23981     "group": "Sms_Queues",
23982     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23983     "version": "0.0.0",
23984     "filename": "server/api/smsQueue/index.js",
23985     "groupTitle": "Sms_Queues"
23986   },
23987   {
23988     "type": "delete",
23989     "url": "/api/sms/queues/{id}/users",
23990     "title": "Removes agents from a queue",
23991     "examples": [
23992       {
23993         "title": "Example usage:",
23994         "content": "curl https://{domain}/api/sms/queues/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
23995         "type": "json"
23996       }
23997     ],
23998     "name": "RemoveAgents",
23999     "group": "Sms_Queues",
24000     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24001     "version": "0.0.0",
24002     "filename": "server/api/smsQueue/index.js",
24003     "groupTitle": "Sms_Queues"
24004   },
24005   {
24006     "type": "get",
24007     "url": "/api/sms/queues/{id}",
24008     "title": "Gets a single Queue",
24009     "examples": [
24010       {
24011         "title": "Example usage:",
24012         "content": "curl https://{domain}/api/sms/queues/{id} -v -u {name}:{password}",
24013         "type": "json"
24014       }
24015     ],
24016     "name": "ShowQueues",
24017     "group": "Sms_Queues",
24018     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24019     "version": "0.0.0",
24020     "filename": "server/api/smsQueue/index.js",
24021     "groupTitle": "Sms_Queues"
24022   },
24023   {
24024     "type": "put",
24025     "url": "/api/sms/queues/{id}",
24026     "title": "Update an existing Queue",
24027     "examples": [
24028       {
24029         "title": "Example usage:",
24030         "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",
24031         "type": "json"
24032       }
24033     ],
24034     "name": "updateQueues",
24035     "group": "Sms_Queues",
24036     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24037     "version": "0.0.0",
24038     "filename": "server/api/smsQueue/index.js",
24039     "groupTitle": "Sms_Queues"
24040   },
24041   {
24042     "type": "post",
24043     "url": "/api/sms/reports/transfer",
24044     "title": "Creates a new Sms Transfer Report",
24045     "examples": [
24046       {
24047         "title": "Example usage:",
24048         "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",
24049         "type": "json"
24050       }
24051     ],
24052     "name": "CreateSms_Transfer_Reports",
24053     "group": "Sms_Transfer_Reports",
24054     "parameter": {
24055       "fields": {
24056         "Body": [
24057           {
24058             "group": "Body",
24059             "type": "String",
24060             "optional": false,
24061             "field": "uniqueid",
24062             "description": ""
24063           },
24064           {
24065             "group": "Body",
24066             "type": "String",
24067             "allowedValues": [
24068               "\"account\"",
24069               "\"agent\"",
24070               "\"queue\""
24071             ],
24072             "optional": false,
24073             "field": "type",
24074             "description": ""
24075           },
24076           {
24077             "group": "Body",
24078             "type": "String",
24079             "optional": false,
24080             "field": "transferredAt",
24081             "description": ""
24082           }
24083         ]
24084       }
24085     },
24086     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24087     "version": "0.0.0",
24088     "filename": "server/api/smsTransferReport/index.js",
24089     "groupTitle": "Sms_Transfer_Reports"
24090   },
24091   {
24092     "type": "delete",
24093     "url": "/api/sms/reports/transfer/{id}",
24094     "title": "Deletes a Sms Transfer Report",
24095     "examples": [
24096       {
24097         "title": "Example usage:",
24098         "content": "curl https://{domain}/api/sms/reports/transfer/{id} -v -u {name}:{password} -X DELETE",
24099         "type": "json"
24100       }
24101     ],
24102     "name": "DeleteSms_Transfer_Reports",
24103     "group": "Sms_Transfer_Reports",
24104     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24105     "version": "0.0.0",
24106     "filename": "server/api/smsTransferReport/index.js",
24107     "groupTitle": "Sms_Transfer_Reports"
24108   },
24109   {
24110     "type": "get",
24111     "url": "/api/sms/reports/transfer/describe",
24112     "title": "Gets table info about Sms Transfer Reports",
24113     "examples": [
24114       {
24115         "title": "Example usage:",
24116         "content": "curl https://{domain}/api/sms/reports/transfer/describe -v -u {name}:{password}",
24117         "type": "json"
24118       }
24119     ],
24120     "name": "DescribeSms_Transfer_Reports",
24121     "group": "Sms_Transfer_Reports",
24122     "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>",
24123     "version": "0.0.0",
24124     "filename": "server/api/smsTransferReport/index.js",
24125     "groupTitle": "Sms_Transfer_Reports"
24126   },
24127   {
24128     "type": "get",
24129     "url": "/api/sms/reports/transfer",
24130     "title": "Gets a list of Sms Transfer Reports",
24131     "examples": [
24132       {
24133         "title": "Example usage:",
24134         "content": "curl https://{domain}/api/sms/reports/transfer -v -u {name}:{password}",
24135         "type": "json"
24136       }
24137     ],
24138     "name": "GetSms_Transfer_Reports",
24139     "group": "Sms_Transfer_Reports",
24140     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
24141     "version": "0.0.0",
24142     "filename": "server/api/smsTransferReport/index.js",
24143     "groupTitle": "Sms_Transfer_Reports"
24144   },
24145   {
24146     "type": "get",
24147     "url": "/api/sms/reports/transfer/{id}",
24148     "title": "Gets a single Sms Transfer Report",
24149     "examples": [
24150       {
24151         "title": "Example usage:",
24152         "content": "curl https://{domain}/api/sms/reports/transfer/{id} -v -u {name}:{password}",
24153         "type": "json"
24154       }
24155     ],
24156     "name": "ShowSms_Transfer_Reports",
24157     "group": "Sms_Transfer_Reports",
24158     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24159     "version": "0.0.0",
24160     "filename": "server/api/smsTransferReport/index.js",
24161     "groupTitle": "Sms_Transfer_Reports"
24162   },
24163   {
24164     "type": "put",
24165     "url": "/api/sms/reports/transfer/{id}",
24166     "title": "Update an existing Sms Transfer Report",
24167     "examples": [
24168       {
24169         "title": "Example usage:",
24170         "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",
24171         "type": "json"
24172       }
24173     ],
24174     "name": "updateSms_Transfer_Reports",
24175     "group": "Sms_Transfer_Reports",
24176     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24177     "version": "0.0.0",
24178     "filename": "server/api/smsTransferReport/index.js",
24179     "groupTitle": "Sms_Transfer_Reports"
24180   },
24181   {
24182     "type": "get",
24183     "url": "/api/sounds",
24184     "title": "Gets a list of Sounds",
24185     "examples": [
24186       {
24187         "title": "Example usage:",
24188         "content": "curl https://{domain}/api/sounds -v -u {name}:{password}",
24189         "type": "json"
24190       }
24191     ],
24192     "name": "GetSounds",
24193     "group": "Sounds",
24194     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
24195     "version": "0.0.0",
24196     "filename": "server/api/sound/index.js",
24197     "groupTitle": "Sounds"
24198   },
24199   {
24200     "type": "get",
24201     "url": "/api/sounds/{id}",
24202     "title": "Gets a single Sound",
24203     "examples": [
24204       {
24205         "title": "Example usage:",
24206         "content": "curl https://{domain}/api/sounds/{id} -v -u {name}:{password}",
24207         "type": "json"
24208       }
24209     ],
24210     "name": "ShowSounds",
24211     "group": "Sounds",
24212     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24213     "version": "0.0.0",
24214     "filename": "server/api/sound/index.js",
24215     "groupTitle": "Sounds"
24216   },
24217   {
24218     "type": "post",
24219     "url": "/api/sounds",
24220     "title": "Create a new sound",
24221     "examples": [
24222       {
24223         "title": "Example usage:",
24224         "content": "curl https://{domain}/api/sounds -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
24225         "type": "json"
24226       }
24227     ],
24228     "name": "addSound",
24229     "group": "Sounds",
24230     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24231     "version": "0.0.0",
24232     "filename": "server/api/sound/index.js",
24233     "groupTitle": "Sounds"
24234   },
24235   {
24236     "type": "delete",
24237     "url": "/api/sounds/{id}",
24238     "title": "Deletes a sound",
24239     "examples": [
24240       {
24241         "title": "Example usage:",
24242         "content": "curl https://{domain}/api/sounds/{id} -v -u {name}:{password} -X DELETE",
24243         "type": "json"
24244       }
24245     ],
24246     "name": "destroySound",
24247     "group": "Sounds",
24248     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24249     "version": "0.0.0",
24250     "filename": "server/api/sound/index.js",
24251     "groupTitle": "Sounds"
24252   },
24253   {
24254     "type": "get",
24255     "url": "/api/sounds/{id}/download",
24256     "title": "Download Sound",
24257     "examples": [
24258       {
24259         "title": "Example usage:",
24260         "content": "curl https://{domain}/api/sounds/{id}/download -v -u {name}:{password} -X GET",
24261         "type": "json"
24262       }
24263     ],
24264     "name": "download",
24265     "group": "Sounds",
24266     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24267     "version": "0.0.0",
24268     "filename": "server/api/sound/index.js",
24269     "groupTitle": "Sounds"
24270   },
24271   {
24272     "type": "put",
24273     "url": "/api/sounds",
24274     "title": "Update an existing new sound",
24275     "examples": [
24276       {
24277         "title": "Example usage:",
24278         "content": "curl https://{domain}/api/sounds -d '[\"name\": \"sound_name\", \"description\": \"sound_desc\"]' -v -u {name}:{password} -X PUT",
24279         "type": "json"
24280       }
24281     ],
24282     "name": "updateSound",
24283     "group": "Sounds",
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/sound/index.js",
24287     "groupTitle": "Sounds"
24288   },
24289   {
24290     "type": "post",
24291     "url": "/api/square/details/reports",
24292     "title": "Creates a new Square Detail Report",
24293     "examples": [
24294       {
24295         "title": "Example usage:",
24296         "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",
24297         "type": "json"
24298       }
24299     ],
24300     "name": "CreateSquare_Detail_Reports",
24301     "group": "Square_Details_Reports",
24302     "parameter": {
24303       "fields": {
24304         "Body": [
24305           {
24306             "group": "Body",
24307             "type": "String",
24308             "optional": true,
24309             "field": "uniqueid",
24310             "description": ""
24311           },
24312           {
24313             "group": "Body",
24314             "type": "String",
24315             "optional": true,
24316             "field": "node",
24317             "description": ""
24318           },
24319           {
24320             "group": "Body",
24321             "type": "String",
24322             "optional": true,
24323             "field": "application",
24324             "description": ""
24325           },
24326           {
24327             "group": "Body",
24328             "type": "Text",
24329             "optional": true,
24330             "field": "data",
24331             "description": ""
24332           },
24333           {
24334             "group": "Body",
24335             "type": "String",
24336             "optional": true,
24337             "field": "project_name",
24338             "description": ""
24339           },
24340           {
24341             "group": "Body",
24342             "type": "String",
24343             "optional": true,
24344             "field": "callerid",
24345             "description": ""
24346           }
24347         ]
24348       }
24349     },
24350     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24351     "version": "0.0.0",
24352     "filename": "server/api/squareReportDetail/index.js",
24353     "groupTitle": "Square_Details_Reports"
24354   },
24355   {
24356     "type": "delete",
24357     "url": "/api/square/details/reports/{id}",
24358     "title": "Deletes a Square Detail Report",
24359     "examples": [
24360       {
24361         "title": "Example usage:",
24362         "content": "curl https://{domain}/api/square/details/reports/{id} -v -u {name}:{password} -X DELETE",
24363         "type": "json"
24364       }
24365     ],
24366     "name": "DeleteSquare_Detail_Reports",
24367     "group": "Square_Details_Reports",
24368     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24369     "version": "0.0.0",
24370     "filename": "server/api/squareReportDetail/index.js",
24371     "groupTitle": "Square_Details_Reports"
24372   },
24373   {
24374     "type": "get",
24375     "url": "/api/square/details/reports/describe",
24376     "title": "Gets table info about Square Detail Reports",
24377     "examples": [
24378       {
24379         "title": "Example usage:",
24380         "content": "curl https://{domain}/api/square/details/reports/describe -v -u {name}:{password}",
24381         "type": "json"
24382       }
24383     ],
24384     "name": "DescribeSquare_Detail_Reports",
24385     "group": "Square_Details_Reports",
24386     "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>",
24387     "version": "0.0.0",
24388     "filename": "server/api/squareReportDetail/index.js",
24389     "groupTitle": "Square_Details_Reports"
24390   },
24391   {
24392     "type": "get",
24393     "url": "/api/square/details/reports",
24394     "title": "Gets a list of Square Detail Reports",
24395     "examples": [
24396       {
24397         "title": "Example usage:",
24398         "content": "curl https://{domain}/api/square/details/reports -v -u {name}:{password}",
24399         "type": "json"
24400       }
24401     ],
24402     "name": "GetSquare_Detail_Reports",
24403     "group": "Square_Details_Reports",
24404     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
24405     "version": "0.0.0",
24406     "filename": "server/api/squareReportDetail/index.js",
24407     "groupTitle": "Square_Details_Reports"
24408   },
24409   {
24410     "type": "get",
24411     "url": "/api/square/details/reports/{id}",
24412     "title": "Gets a single Square Detail Report",
24413     "examples": [
24414       {
24415         "title": "Example usage:",
24416         "content": "curl https://{domain}/api/square/details/reports/{id} -v -u {name}:{password}",
24417         "type": "json"
24418       }
24419     ],
24420     "name": "ShowSquare_Detail_Reports",
24421     "group": "Square_Details_Reports",
24422     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24423     "version": "0.0.0",
24424     "filename": "server/api/squareReportDetail/index.js",
24425     "groupTitle": "Square_Details_Reports"
24426   },
24427   {
24428     "type": "put",
24429     "url": "/api/square/details/reports/{id}",
24430     "title": "Update an existing Square Detail Report",
24431     "examples": [
24432       {
24433         "title": "Example usage:",
24434         "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",
24435         "type": "json"
24436       }
24437     ],
24438     "name": "updateSquare_Detail_Reports",
24439     "group": "Square_Details_Reports",
24440     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24441     "version": "0.0.0",
24442     "filename": "server/api/squareReportDetail/index.js",
24443     "groupTitle": "Square_Details_Reports"
24444   },
24445   {
24446     "type": "post",
24447     "url": "/api/square/messages",
24448     "title": "Creates a new Message",
24449     "examples": [
24450       {
24451         "title": "Example usage:",
24452         "content": "curl https://{domain}/api/square/messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
24453         "type": "json"
24454       }
24455     ],
24456     "name": "CreateMessages",
24457     "group": "Square_Messages",
24458     "parameter": {
24459       "fields": {
24460         "Body": [
24461           {
24462             "group": "Body",
24463             "type": "String",
24464             "optional": true,
24465             "field": "uniqueid",
24466             "description": ""
24467           },
24468           {
24469             "group": "Body",
24470             "type": "Text",
24471             "optional": false,
24472             "field": "body",
24473             "description": ""
24474           },
24475           {
24476             "group": "Body",
24477             "type": "String",
24478             "allowedValues": [
24479               "\"in\"",
24480               "\"out\""
24481             ],
24482             "optional": false,
24483             "field": "direction",
24484             "description": ""
24485           },
24486           {
24487             "group": "Body",
24488             "type": "String",
24489             "optional": true,
24490             "field": "providerName",
24491             "description": ""
24492           },
24493           {
24494             "group": "Body",
24495             "type": "Text",
24496             "optional": true,
24497             "field": "providerResponse",
24498             "description": ""
24499           }
24500         ]
24501       }
24502     },
24503     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24504     "version": "0.0.0",
24505     "filename": "server/api/squareMessage/index.js",
24506     "groupTitle": "Square_Messages"
24507   },
24508   {
24509     "type": "delete",
24510     "url": "/api/square/messages/{id}",
24511     "title": "Deletes a Message",
24512     "examples": [
24513       {
24514         "title": "Example usage:",
24515         "content": "curl https://{domain}/api/square/messages/{id} -v -u {name}:{password} -X DELETE",
24516         "type": "json"
24517       }
24518     ],
24519     "name": "DeleteMessages",
24520     "group": "Square_Messages",
24521     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24522     "version": "0.0.0",
24523     "filename": "server/api/squareMessage/index.js",
24524     "groupTitle": "Square_Messages"
24525   },
24526   {
24527     "type": "get",
24528     "url": "/api/square/messages",
24529     "title": "Gets a list of Messages",
24530     "examples": [
24531       {
24532         "title": "Example usage:",
24533         "content": "curl https://{domain}/api/square/messages -v -u {name}:{password}",
24534         "type": "json"
24535       }
24536     ],
24537     "name": "GetMessages",
24538     "group": "Square_Messages",
24539     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
24540     "version": "0.0.0",
24541     "filename": "server/api/squareMessage/index.js",
24542     "groupTitle": "Square_Messages"
24543   },
24544   {
24545     "type": "get",
24546     "url": "/api/square/messages/{id}",
24547     "title": "Gets a single Message",
24548     "examples": [
24549       {
24550         "title": "Example usage:",
24551         "content": "curl https://{domain}/api/square/messages/{id} -v -u {name}:{password}",
24552         "type": "json"
24553       }
24554     ],
24555     "name": "ShowMessages",
24556     "group": "Square_Messages",
24557     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24558     "version": "0.0.0",
24559     "filename": "server/api/squareMessage/index.js",
24560     "groupTitle": "Square_Messages"
24561   },
24562   {
24563     "type": "put",
24564     "url": "/api/square/messages/{id}",
24565     "title": "Update an existing Message",
24566     "examples": [
24567       {
24568         "title": "Example usage:",
24569         "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",
24570         "type": "json"
24571       }
24572     ],
24573     "name": "updateMessages",
24574     "group": "Square_Messages",
24575     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24576     "version": "0.0.0",
24577     "filename": "server/api/squareMessage/index.js",
24578     "groupTitle": "Square_Messages"
24579   },
24580   {
24581     "type": "post",
24582     "url": "/api/square/odbc",
24583     "title": "Creates a new ODBC",
24584     "examples": [
24585       {
24586         "title": "Example usage:",
24587         "content": "curl https://{domain}/api/square/odbc -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
24588         "type": "json"
24589       }
24590     ],
24591     "name": "CreateODBCs",
24592     "group": "Square_ODBC",
24593     "parameter": {
24594       "fields": {
24595         "Body": [
24596           {
24597             "group": "Body",
24598             "type": "String",
24599             "optional": false,
24600             "field": "name",
24601             "description": ""
24602           },
24603           {
24604             "group": "Body",
24605             "type": "String",
24606             "optional": true,
24607             "field": "dsn",
24608             "description": ""
24609           },
24610           {
24611             "group": "Body",
24612             "type": "String",
24613             "optional": true,
24614             "field": "description",
24615             "description": ""
24616           }
24617         ]
24618       }
24619     },
24620     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24621     "version": "0.0.0",
24622     "filename": "server/api/squareOdbc/index.js",
24623     "groupTitle": "Square_ODBC"
24624   },
24625   {
24626     "type": "delete",
24627     "url": "/api/square/odbc/{id}",
24628     "title": "Deletes a ODBC",
24629     "examples": [
24630       {
24631         "title": "Example usage:",
24632         "content": "curl https://{domain}/api/square/odbc/{id} -v -u {name}:{password} -X DELETE",
24633         "type": "json"
24634       }
24635     ],
24636     "name": "DeleteODBCs",
24637     "group": "Square_ODBC",
24638     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24639     "version": "0.0.0",
24640     "filename": "server/api/squareOdbc/index.js",
24641     "groupTitle": "Square_ODBC"
24642   },
24643   {
24644     "type": "get",
24645     "url": "/api/square/odbc",
24646     "title": "Gets a list of ODBCs",
24647     "examples": [
24648       {
24649         "title": "Example usage:",
24650         "content": "curl https://{domain}/api/square/odbc -v -u {name}:{password}",
24651         "type": "json"
24652       }
24653     ],
24654     "name": "GetODBCs",
24655     "group": "Square_ODBC",
24656     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
24657     "version": "0.0.0",
24658     "filename": "server/api/squareOdbc/index.js",
24659     "groupTitle": "Square_ODBC"
24660   },
24661   {
24662     "type": "get",
24663     "url": "/api/square/odbc/{id}",
24664     "title": "Gets a single ODBC",
24665     "examples": [
24666       {
24667         "title": "Example usage:",
24668         "content": "curl https://{domain}/api/square/odbc/{id} -v -u {name}:{password}",
24669         "type": "json"
24670       }
24671     ],
24672     "name": "ShowODBCs",
24673     "group": "Square_ODBC",
24674     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24675     "version": "0.0.0",
24676     "filename": "server/api/squareOdbc/index.js",
24677     "groupTitle": "Square_ODBC"
24678   },
24679   {
24680     "type": "get",
24681     "url": "/api/square/odbc/{id}/test",
24682     "title": "Test Odbc",
24683     "examples": [
24684       {
24685         "title": "Example usage:",
24686         "content": "curl https://{domain}/api/square/odbc/{id}/test -v -u {name}:{password} -X GET",
24687         "type": "json"
24688       }
24689     ],
24690     "name": "test",
24691     "group": "Square_ODBC",
24692     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24693     "version": "0.0.0",
24694     "filename": "server/api/squareOdbc/index.js",
24695     "groupTitle": "Square_ODBC"
24696   },
24697   {
24698     "type": "put",
24699     "url": "/api/square/odbc/{id}",
24700     "title": "Update an existing ODBC",
24701     "examples": [
24702       {
24703         "title": "Example usage:",
24704         "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",
24705         "type": "json"
24706       }
24707     ],
24708     "name": "updateODBCs",
24709     "group": "Square_ODBC",
24710     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24711     "version": "0.0.0",
24712     "filename": "server/api/squareOdbc/index.js",
24713     "groupTitle": "Square_ODBC"
24714   },
24715   {
24716     "type": "post",
24717     "url": "/api/square/projects",
24718     "title": "Creates a new Project",
24719     "examples": [
24720       {
24721         "title": "Example usage:",
24722         "content": "curl https://{domain}/api/square/projects -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
24723         "type": "json"
24724       }
24725     ],
24726     "name": "CreateProjects",
24727     "group": "Square_Projects",
24728     "parameter": {
24729       "fields": {
24730         "Body": [
24731           {
24732             "group": "Body",
24733             "type": "String",
24734             "optional": false,
24735             "field": "name",
24736             "description": ""
24737           },
24738           {
24739             "group": "Body",
24740             "type": "String",
24741             "optional": true,
24742             "field": "description",
24743             "description": ""
24744           },
24745           {
24746             "group": "Body",
24747             "type": "Text",
24748             "optional": true,
24749             "field": "notes",
24750             "description": ""
24751           },
24752           {
24753             "group": "Body",
24754             "type": "Blob",
24755             "optional": true,
24756             "field": "preproduction",
24757             "description": ""
24758           },
24759           {
24760             "group": "Body",
24761             "type": "Blob",
24762             "optional": true,
24763             "field": "production",
24764             "description": ""
24765           },
24766           {
24767             "group": "Body",
24768             "type": "String",
24769             "optional": true,
24770             "field": "savedAt",
24771             "description": ""
24772           },
24773           {
24774             "group": "Body",
24775             "type": "String",
24776             "optional": true,
24777             "field": "publishedAt",
24778             "description": ""
24779           }
24780         ]
24781       }
24782     },
24783     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24784     "version": "0.0.0",
24785     "filename": "server/api/squareProject/index.js",
24786     "groupTitle": "Square_Projects"
24787   },
24788   {
24789     "type": "delete",
24790     "url": "/api/square/projects/{id}",
24791     "title": "Deletes a Project",
24792     "examples": [
24793       {
24794         "title": "Example usage:",
24795         "content": "curl https://{domain}/api/square/projects/{id} -v -u {name}:{password} -X DELETE",
24796         "type": "json"
24797       }
24798     ],
24799     "name": "DeleteProjects",
24800     "group": "Square_Projects",
24801     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24802     "version": "0.0.0",
24803     "filename": "server/api/squareProject/index.js",
24804     "groupTitle": "Square_Projects"
24805   },
24806   {
24807     "type": "get",
24808     "url": "/api/square/projects",
24809     "title": "Gets a list of Projects",
24810     "examples": [
24811       {
24812         "title": "Example usage:",
24813         "content": "curl https://{domain}/api/square/projects -v -u {name}:{password}",
24814         "type": "json"
24815       }
24816     ],
24817     "name": "GetProjects",
24818     "group": "Square_Projects",
24819     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
24820     "version": "0.0.0",
24821     "filename": "server/api/squareProject/index.js",
24822     "groupTitle": "Square_Projects"
24823   },
24824   {
24825     "type": "get",
24826     "url": "/api/square/projects/{id}",
24827     "title": "Gets a single Project",
24828     "examples": [
24829       {
24830         "title": "Example usage:",
24831         "content": "curl https://{domain}/api/square/projects/{id} -v -u {name}:{password}",
24832         "type": "json"
24833       }
24834     ],
24835     "name": "ShowProjects",
24836     "group": "Square_Projects",
24837     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24838     "version": "0.0.0",
24839     "filename": "server/api/squareProject/index.js",
24840     "groupTitle": "Square_Projects"
24841   },
24842   {
24843     "type": "post",
24844     "url": "/api/square/projects/{id}/users",
24845     "title": "Adds user permissions to a Project",
24846     "examples": [
24847       {
24848         "title": "Example usage:",
24849         "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",
24850         "type": "json"
24851       }
24852     ],
24853     "name": "addUsers",
24854     "group": "Square_Projects",
24855     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24856     "version": "0.0.0",
24857     "filename": "server/api/squareProject/index.js",
24858     "groupTitle": "Square_Projects"
24859   },
24860   {
24861     "type": "get",
24862     "url": "/api/square/projects/{id}/users",
24863     "title": "Gets users permissions from Project",
24864     "examples": [
24865       {
24866         "title": "Example usage:",
24867         "content": "curl https://{domain}/api/square/projects/{id}/users -v -u {name}:{password} -X GET",
24868         "type": "json"
24869       }
24870     ],
24871     "name": "getUsers",
24872     "group": "Square_Projects",
24873     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24874     "version": "0.0.0",
24875     "filename": "server/api/squareProject/index.js",
24876     "groupTitle": "Square_Projects"
24877   },
24878   {
24879     "type": "delete",
24880     "url": "/api/square/projects/{id}/users",
24881     "title": "Removes user permissions from a Project",
24882     "examples": [
24883       {
24884         "title": "Example usage:",
24885         "content": "curl https://{domain}/api/square/projects/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
24886         "type": "json"
24887       }
24888     ],
24889     "name": "removeUsers",
24890     "group": "Square_Projects",
24891     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24892     "version": "0.0.0",
24893     "filename": "server/api/squareProject/index.js",
24894     "groupTitle": "Square_Projects"
24895   },
24896   {
24897     "type": "put",
24898     "url": "/api/square/projects/{id}",
24899     "title": "Update an existing Project",
24900     "examples": [
24901       {
24902         "title": "Example usage:",
24903         "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",
24904         "type": "json"
24905       }
24906     ],
24907     "name": "updateProjects",
24908     "group": "Square_Projects",
24909     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24910     "version": "0.0.0",
24911     "filename": "server/api/squareProject/index.js",
24912     "groupTitle": "Square_Projects"
24913   },
24914   {
24915     "type": "post",
24916     "url": "/api/square/recordings",
24917     "title": "Creates a new Recording",
24918     "examples": [
24919       {
24920         "title": "Example usage:",
24921         "content": "curl https://{domain}/api/square/recordings -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
24922         "type": "json"
24923       }
24924     ],
24925     "name": "CreateRecordings",
24926     "group": "Square_Recordings",
24927     "parameter": {
24928       "fields": {
24929         "Body": [
24930           {
24931             "group": "Body",
24932             "type": "String",
24933             "optional": true,
24934             "field": "uniqueid",
24935             "description": ""
24936           },
24937           {
24938             "group": "Body",
24939             "type": "String",
24940             "optional": true,
24941             "field": "callerid",
24942             "description": ""
24943           },
24944           {
24945             "group": "Body",
24946             "type": "String",
24947             "optional": true,
24948             "field": "calleridname",
24949             "description": ""
24950           },
24951           {
24952             "group": "Body",
24953             "type": "String",
24954             "optional": true,
24955             "field": "context",
24956             "description": ""
24957           },
24958           {
24959             "group": "Body",
24960             "type": "String",
24961             "optional": true,
24962             "field": "extension",
24963             "description": ""
24964           },
24965           {
24966             "group": "Body",
24967             "type": "String",
24968             "optional": true,
24969             "field": "priority",
24970             "description": ""
24971           },
24972           {
24973             "group": "Body",
24974             "type": "String",
24975             "optional": true,
24976             "field": "accountcode",
24977             "description": ""
24978           },
24979           {
24980             "group": "Body",
24981             "type": "String",
24982             "optional": true,
24983             "field": "dnid",
24984             "description": ""
24985           },
24986           {
24987             "group": "Body",
24988             "type": "String",
24989             "optional": true,
24990             "field": "projectName",
24991             "description": ""
24992           },
24993           {
24994             "group": "Body",
24995             "type": "String",
24996             "optional": true,
24997             "field": "saveName",
24998             "description": ""
24999           },
25000           {
25001             "group": "Body",
25002             "type": "String",
25003             "optional": true,
25004             "field": "filename",
25005             "description": ""
25006           },
25007           {
25008             "group": "Body",
25009             "type": "String",
25010             "optional": true,
25011             "field": "savePath",
25012             "description": ""
25013           },
25014           {
25015             "group": "Body",
25016             "type": "Virtual",
25017             "optional": true,
25018             "field": "format",
25019             "description": ""
25020           }
25021         ]
25022       }
25023     },
25024     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25025     "version": "0.0.0",
25026     "filename": "server/api/squareRecording/index.js",
25027     "groupTitle": "Square_Recordings"
25028   },
25029   {
25030     "type": "get",
25031     "url": "/api/square/recordings",
25032     "title": "Gets a list of Recordings",
25033     "examples": [
25034       {
25035         "title": "Example usage:",
25036         "content": "curl https://{domain}/api/square/recordings -v -u {name}:{password}",
25037         "type": "json"
25038       }
25039     ],
25040     "name": "GetRecordings",
25041     "group": "Square_Recordings",
25042     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
25043     "version": "0.0.0",
25044     "filename": "server/api/squareRecording/index.js",
25045     "groupTitle": "Square_Recordings"
25046   },
25047   {
25048     "type": "get",
25049     "url": "/api/square/recordings/{id}",
25050     "title": "Gets a single Recording",
25051     "examples": [
25052       {
25053         "title": "Example usage:",
25054         "content": "curl https://{domain}/api/square/recordings/{id} -v -u {name}:{password}",
25055         "type": "json"
25056       }
25057     ],
25058     "name": "ShowRecordings",
25059     "group": "Square_Recordings",
25060     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25061     "version": "0.0.0",
25062     "filename": "server/api/squareRecording/index.js",
25063     "groupTitle": "Square_Recordings"
25064   },
25065   {
25066     "type": "delete",
25067     "url": "/api/square/recordings/{id}",
25068     "title": "Delete recording",
25069     "examples": [
25070       {
25071         "title": "Example usage:",
25072         "content": "curl https://{domain}/api/square/recordings/{id} -v -u {name}:{password} -X DELETE",
25073         "type": "json"
25074       }
25075     ],
25076     "name": "destroy",
25077     "group": "Square_Recordings",
25078     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25079     "version": "0.0.0",
25080     "filename": "server/api/squareRecording/index.js",
25081     "groupTitle": "Square_Recordings"
25082   },
25083   {
25084     "type": "get",
25085     "url": "/api/square/recordings/{id}/download",
25086     "title": "Download Recording",
25087     "examples": [
25088       {
25089         "title": "Example usage:",
25090         "content": "curl https://{domain}/api/square/recordings/{id}/download -v -u {name}:{password} -X GET",
25091         "type": "json"
25092       }
25093     ],
25094     "name": "download",
25095     "group": "Square_Recordings",
25096     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25097     "version": "0.0.0",
25098     "filename": "server/api/squareRecording/index.js",
25099     "groupTitle": "Square_Recordings"
25100   },
25101   {
25102     "type": "put",
25103     "url": "/api/square/recordings/{id}",
25104     "title": "Update an existing Recording",
25105     "examples": [
25106       {
25107         "title": "Example usage:",
25108         "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",
25109         "type": "json"
25110       }
25111     ],
25112     "name": "updateRecordings",
25113     "group": "Square_Recordings",
25114     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25115     "version": "0.0.0",
25116     "filename": "server/api/squareRecording/index.js",
25117     "groupTitle": "Square_Recordings"
25118   },
25119   {
25120     "type": "post",
25121     "url": "/api/square/reports",
25122     "title": "Creates a new Square Report",
25123     "examples": [
25124       {
25125         "title": "Example usage:",
25126         "content": "curl https://{domain}/api/square/reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
25127         "type": "json"
25128       }
25129     ],
25130     "name": "CreateSquare_Reports",
25131     "group": "Square_Reports",
25132     "parameter": {
25133       "fields": {
25134         "Body": [
25135           {
25136             "group": "Body",
25137             "type": "String",
25138             "optional": true,
25139             "field": "network",
25140             "description": ""
25141           },
25142           {
25143             "group": "Body",
25144             "type": "String",
25145             "optional": true,
25146             "field": "network_script",
25147             "description": ""
25148           },
25149           {
25150             "group": "Body",
25151             "type": "String",
25152             "optional": true,
25153             "field": "request",
25154             "description": ""
25155           },
25156           {
25157             "group": "Body",
25158             "type": "String",
25159             "optional": true,
25160             "field": "channel",
25161             "description": ""
25162           },
25163           {
25164             "group": "Body",
25165             "type": "String",
25166             "optional": true,
25167             "field": "language",
25168             "description": ""
25169           },
25170           {
25171             "group": "Body",
25172             "type": "String",
25173             "optional": true,
25174             "field": "type",
25175             "description": ""
25176           },
25177           {
25178             "group": "Body",
25179             "type": "String",
25180             "optional": true,
25181             "field": "uniqueid",
25182             "description": ""
25183           },
25184           {
25185             "group": "Body",
25186             "type": "String",
25187             "optional": true,
25188             "field": "version",
25189             "description": ""
25190           },
25191           {
25192             "group": "Body",
25193             "type": "String",
25194             "optional": true,
25195             "field": "callerid",
25196             "description": ""
25197           },
25198           {
25199             "group": "Body",
25200             "type": "String",
25201             "optional": true,
25202             "field": "calleridname",
25203             "description": ""
25204           },
25205           {
25206             "group": "Body",
25207             "type": "String",
25208             "optional": true,
25209             "field": "callingpres",
25210             "description": ""
25211           },
25212           {
25213             "group": "Body",
25214             "type": "String",
25215             "optional": true,
25216             "field": "callingani2",
25217             "description": ""
25218           },
25219           {
25220             "group": "Body",
25221             "type": "String",
25222             "optional": true,
25223             "field": "callington",
25224             "description": ""
25225           },
25226           {
25227             "group": "Body",
25228             "type": "String",
25229             "optional": true,
25230             "field": "callingtns",
25231             "description": ""
25232           },
25233           {
25234             "group": "Body",
25235             "type": "String",
25236             "optional": true,
25237             "field": "dnid",
25238             "description": ""
25239           },
25240           {
25241             "group": "Body",
25242             "type": "String",
25243             "optional": true,
25244             "field": "rdnis",
25245             "description": ""
25246           },
25247           {
25248             "group": "Body",
25249             "type": "String",
25250             "optional": true,
25251             "field": "context",
25252             "description": ""
25253           },
25254           {
25255             "group": "Body",
25256             "type": "String",
25257             "optional": true,
25258             "field": "extension",
25259             "description": ""
25260           },
25261           {
25262             "group": "Body",
25263             "type": "String",
25264             "optional": true,
25265             "field": "priority",
25266             "description": ""
25267           },
25268           {
25269             "group": "Body",
25270             "type": "String",
25271             "optional": true,
25272             "field": "enhanced",
25273             "description": ""
25274           },
25275           {
25276             "group": "Body",
25277             "type": "String",
25278             "optional": true,
25279             "field": "accountcode",
25280             "description": ""
25281           },
25282           {
25283             "group": "Body",
25284             "type": "String",
25285             "optional": true,
25286             "field": "threadid",
25287             "description": ""
25288           },
25289           {
25290             "group": "Body",
25291             "type": "String",
25292             "optional": true,
25293             "field": "project_name",
25294             "description": ""
25295           },
25296           {
25297             "group": "Body",
25298             "type": "String",
25299             "optional": true,
25300             "field": "joinAt",
25301             "description": ""
25302           },
25303           {
25304             "group": "Body",
25305             "type": "String",
25306             "optional": true,
25307             "field": "leaveAt",
25308             "description": ""
25309           },
25310           {
25311             "group": "Body",
25312             "type": "Boolean",
25313             "optional": true,
25314             "field": "bot",
25315             "description": ""
25316           }
25317         ]
25318       }
25319     },
25320     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25321     "version": "0.0.0",
25322     "filename": "server/api/squareReport/index.js",
25323     "groupTitle": "Square_Reports"
25324   },
25325   {
25326     "type": "delete",
25327     "url": "/api/square/reports/{id}",
25328     "title": "Deletes a Square Report",
25329     "examples": [
25330       {
25331         "title": "Example usage:",
25332         "content": "curl https://{domain}/api/square/reports/{id} -v -u {name}:{password} -X DELETE",
25333         "type": "json"
25334       }
25335     ],
25336     "name": "DeleteSquare_Reports",
25337     "group": "Square_Reports",
25338     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25339     "version": "0.0.0",
25340     "filename": "server/api/squareReport/index.js",
25341     "groupTitle": "Square_Reports"
25342   },
25343   {
25344     "type": "get",
25345     "url": "/api/square/reports/describe",
25346     "title": "Gets table info about Square Reports",
25347     "examples": [
25348       {
25349         "title": "Example usage:",
25350         "content": "curl https://{domain}/api/square/reports/describe -v -u {name}:{password}",
25351         "type": "json"
25352       }
25353     ],
25354     "name": "DescribeSquare_Reports",
25355     "group": "Square_Reports",
25356     "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>",
25357     "version": "0.0.0",
25358     "filename": "server/api/squareReport/index.js",
25359     "groupTitle": "Square_Reports"
25360   },
25361   {
25362     "type": "get",
25363     "url": "/api/square/reports",
25364     "title": "Gets a list of Square Reports",
25365     "examples": [
25366       {
25367         "title": "Example usage:",
25368         "content": "curl https://{domain}/api/square/reports -v -u {name}:{password}",
25369         "type": "json"
25370       }
25371     ],
25372     "name": "GetSquare_Reports",
25373     "group": "Square_Reports",
25374     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
25375     "version": "0.0.0",
25376     "filename": "server/api/squareReport/index.js",
25377     "groupTitle": "Square_Reports"
25378   },
25379   {
25380     "type": "get",
25381     "url": "/api/square/reports/{id}",
25382     "title": "Gets a single Square Report",
25383     "examples": [
25384       {
25385         "title": "Example usage:",
25386         "content": "curl https://{domain}/api/square/reports/{id} -v -u {name}:{password}",
25387         "type": "json"
25388       }
25389     ],
25390     "name": "ShowSquare_Reports",
25391     "group": "Square_Reports",
25392     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25393     "version": "0.0.0",
25394     "filename": "server/api/squareReport/index.js",
25395     "groupTitle": "Square_Reports"
25396   },
25397   {
25398     "type": "put",
25399     "url": "/api/square/reports/{id}",
25400     "title": "Update an existing Square Report",
25401     "examples": [
25402       {
25403         "title": "Example usage:",
25404         "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",
25405         "type": "json"
25406       }
25407     ],
25408     "name": "updateSquare_Reports",
25409     "group": "Square_Reports",
25410     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25411     "version": "0.0.0",
25412     "filename": "server/api/squareReport/index.js",
25413     "groupTitle": "Square_Reports"
25414   },
25415   {
25416     "type": "post",
25417     "url": "/api/integrations/sugarcrm/configurations",
25418     "title": "Creates a new SugarCRM Configuration",
25419     "examples": [
25420       {
25421         "title": "Example usage:",
25422         "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",
25423         "type": "json"
25424       }
25425     ],
25426     "name": "CreateSugarCRM_Configurations",
25427     "group": "SugarCRM_Configurations",
25428     "parameter": {
25429       "fields": {
25430         "Body": [
25431           {
25432             "group": "Body",
25433             "type": "String",
25434             "optional": true,
25435             "field": "name",
25436             "description": ""
25437           },
25438           {
25439             "group": "Body",
25440             "type": "String",
25441             "optional": true,
25442             "field": "description",
25443             "description": ""
25444           }
25445         ]
25446       }
25447     },
25448     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25449     "version": "0.0.0",
25450     "filename": "server/api/intSugarcrmConfiguration/index.js",
25451     "groupTitle": "SugarCRM_Configurations"
25452   },
25453   {
25454     "type": "delete",
25455     "url": "/api/integrations/sugarcrm/configurations/{id}",
25456     "title": "Deletes a SugarCRM Configuration",
25457     "examples": [
25458       {
25459         "title": "Example usage:",
25460         "content": "curl https://{domain}/api/integrations/sugarcrm/configurations/{id} -v -u {name}:{password} -X DELETE",
25461         "type": "json"
25462       }
25463     ],
25464     "name": "DeleteSugarCRM_Configurations",
25465     "group": "SugarCRM_Configurations",
25466     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25467     "version": "0.0.0",
25468     "filename": "server/api/intSugarcrmConfiguration/index.js",
25469     "groupTitle": "SugarCRM_Configurations"
25470   },
25471   {
25472     "type": "get",
25473     "url": "/api/integrations/sugarcrm/configurations",
25474     "title": "Gets a list of SugarCRM Configurations",
25475     "examples": [
25476       {
25477         "title": "Example usage:",
25478         "content": "curl https://{domain}/api/integrations/sugarcrm/configurations -v -u {name}:{password}",
25479         "type": "json"
25480       }
25481     ],
25482     "name": "GetSugarCRM_Configurations",
25483     "group": "SugarCRM_Configurations",
25484     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
25485     "version": "0.0.0",
25486     "filename": "server/api/intSugarcrmConfiguration/index.js",
25487     "groupTitle": "SugarCRM_Configurations"
25488   },
25489   {
25490     "type": "get",
25491     "url": "/api/integrations/sugarcrm/configurations/{id}",
25492     "title": "Gets a single SugarCRM Configuration",
25493     "examples": [
25494       {
25495         "title": "Example usage:",
25496         "content": "curl https://{domain}/api/integrations/sugarcrm/configurations/{id} -v -u {name}:{password}",
25497         "type": "json"
25498       }
25499     ],
25500     "name": "ShowSugarCRM_Configurations",
25501     "group": "SugarCRM_Configurations",
25502     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25503     "version": "0.0.0",
25504     "filename": "server/api/intSugarcrmConfiguration/index.js",
25505     "groupTitle": "SugarCRM_Configurations"
25506   },
25507   {
25508     "type": "put",
25509     "url": "/api/integrations/sugarcrm/configurations/{id}",
25510     "title": "Update an existing SugarCRM Configuration",
25511     "examples": [
25512       {
25513         "title": "Example usage:",
25514         "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",
25515         "type": "json"
25516       }
25517     ],
25518     "name": "updateSugarCRM_Configurations",
25519     "group": "SugarCRM_Configurations",
25520     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25521     "version": "0.0.0",
25522     "filename": "server/api/intSugarcrmConfiguration/index.js",
25523     "groupTitle": "SugarCRM_Configurations"
25524   },
25525   {
25526     "type": "post",
25527     "url": "/api/integrations/sugarcrm/accounts",
25528     "title": "Creates a new Sugarcrm Account",
25529     "examples": [
25530       {
25531         "title": "Example usage:",
25532         "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",
25533         "type": "json"
25534       }
25535     ],
25536     "name": "CreateSugarcrm_Accounts",
25537     "group": "Sugarcrm_Accounts",
25538     "parameter": {
25539       "fields": {
25540         "Body": [
25541           {
25542             "group": "Body",
25543             "type": "String",
25544             "optional": true,
25545             "field": "name",
25546             "description": ""
25547           },
25548           {
25549             "group": "Body",
25550             "type": "String",
25551             "optional": true,
25552             "field": "description",
25553             "description": ""
25554           },
25555           {
25556             "group": "Body",
25557             "type": "String",
25558             "optional": true,
25559             "field": "username",
25560             "description": ""
25561           },
25562           {
25563             "group": "Body",
25564             "type": "String",
25565             "optional": true,
25566             "field": "password",
25567             "description": ""
25568           },
25569           {
25570             "group": "Body",
25571             "type": "String",
25572             "optional": true,
25573             "field": "remoteUri",
25574             "description": ""
25575           },
25576           {
25577             "group": "Body",
25578             "type": "String",
25579             "optional": false,
25580             "field": "serverUrl",
25581             "description": ""
25582           }
25583         ]
25584       }
25585     },
25586     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25587     "version": "0.0.0",
25588     "filename": "server/api/intSugarcrmAccount/index.js",
25589     "groupTitle": "Sugarcrm_Accounts"
25590   },
25591   {
25592     "type": "delete",
25593     "url": "/api/integrations/sugarcrm/accounts/{id}",
25594     "title": "Deletes a Sugarcrm Account",
25595     "examples": [
25596       {
25597         "title": "Example usage:",
25598         "content": "curl https://{domain}/api/integrations/sugarcrm/accounts/{id} -v -u {name}:{password} -X DELETE",
25599         "type": "json"
25600       }
25601     ],
25602     "name": "DeleteSugarcrm_Accounts",
25603     "group": "Sugarcrm_Accounts",
25604     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25605     "version": "0.0.0",
25606     "filename": "server/api/intSugarcrmAccount/index.js",
25607     "groupTitle": "Sugarcrm_Accounts"
25608   },
25609   {
25610     "type": "get",
25611     "url": "/api/integrations/sugarcrm/accounts",
25612     "title": "Gets a list of Sugarcrm Accounts",
25613     "examples": [
25614       {
25615         "title": "Example usage:",
25616         "content": "curl https://{domain}/api/integrations/sugarcrm/accounts -v -u {name}:{password}",
25617         "type": "json"
25618       }
25619     ],
25620     "name": "GetSugarcrm_Accounts",
25621     "group": "Sugarcrm_Accounts",
25622     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
25623     "version": "0.0.0",
25624     "filename": "server/api/intSugarcrmAccount/index.js",
25625     "groupTitle": "Sugarcrm_Accounts"
25626   },
25627   {
25628     "type": "get",
25629     "url": "/api/integrations/sugarcrm/accounts/{id}",
25630     "title": "Gets a single Sugarcrm Account",
25631     "examples": [
25632       {
25633         "title": "Example usage:",
25634         "content": "curl https://{domain}/api/integrations/sugarcrm/accounts/{id} -v -u {name}:{password}",
25635         "type": "json"
25636       }
25637     ],
25638     "name": "ShowSugarcrm_Accounts",
25639     "group": "Sugarcrm_Accounts",
25640     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25641     "version": "0.0.0",
25642     "filename": "server/api/intSugarcrmAccount/index.js",
25643     "groupTitle": "Sugarcrm_Accounts"
25644   },
25645   {
25646     "type": "post",
25647     "url": "/api/integrations/sugarcrm/accounts/{id}/configurations",
25648     "title": "Creates new configuration",
25649     "examples": [
25650       {
25651         "title": "Example usage:",
25652         "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",
25653         "type": "json"
25654       }
25655     ],
25656     "name": "addConfiguration",
25657     "group": "Sugarcrm_Accounts",
25658     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25659     "version": "0.0.0",
25660     "filename": "server/api/intSugarcrmAccount/index.js",
25661     "groupTitle": "Sugarcrm_Accounts"
25662   },
25663   {
25664     "type": "get",
25665     "url": "/api/integrations/sugarcrm/accounts/{id}/configurations",
25666     "title": "Gets account configurations",
25667     "examples": [
25668       {
25669         "title": "Example usage:",
25670         "content": "curl https://{domain}/api/integrations/sugarcrm/accounts/{id}/configurations -v -u {name}:{password} -X GET",
25671         "type": "json"
25672       }
25673     ],
25674     "name": "getConfigurations",
25675     "group": "Sugarcrm_Accounts",
25676     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25677     "version": "0.0.0",
25678     "filename": "server/api/intSugarcrmAccount/index.js",
25679     "groupTitle": "Sugarcrm_Accounts"
25680   },
25681   {
25682     "type": "get",
25683     "url": "/api/integrations/sugarcrm/accounts/{id}/fields",
25684     "title": "Gets account fields",
25685     "examples": [
25686       {
25687         "title": "Example usage:",
25688         "content": "curl https://{domain}/api/integrations/sugarcrm/accounts/{id}/fields -v -u {name}:{password} -X GET",
25689         "type": "json"
25690       }
25691     ],
25692     "name": "getFields",
25693     "group": "Sugarcrm_Accounts",
25694     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25695     "version": "0.0.0",
25696     "filename": "server/api/intSugarcrmAccount/index.js",
25697     "groupTitle": "Sugarcrm_Accounts"
25698   },
25699   {
25700     "type": "put",
25701     "url": "/api/integrations/sugarcrm/accounts/{id}",
25702     "title": "Update an existing Sugarcrm Account",
25703     "examples": [
25704       {
25705         "title": "Example usage:",
25706         "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",
25707         "type": "json"
25708       }
25709     ],
25710     "name": "updateSugarcrm_Accounts",
25711     "group": "Sugarcrm_Accounts",
25712     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25713     "version": "0.0.0",
25714     "filename": "server/api/intSugarcrmAccount/index.js",
25715     "groupTitle": "Sugarcrm_Accounts"
25716   },
25717   {
25718     "type": "get",
25719     "url": "/api/integrations/sugarcrm/configurations/{id}/descriptions",
25720     "title": "Gets configurations descriptions",
25721     "examples": [
25722       {
25723         "title": "Example usage:",
25724         "content": "curl https://{domain}/api/integrations/sugarcrm/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
25725         "type": "json"
25726       }
25727     ],
25728     "name": "getDescriptions",
25729     "group": "Sugarcrm_Configurations",
25730     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25731     "version": "0.0.0",
25732     "filename": "server/api/intSugarcrmConfiguration/index.js",
25733     "groupTitle": "Sugarcrm_Configurations"
25734   },
25735   {
25736     "type": "get",
25737     "url": "/api/integrations/sugarcrm/configurations/{id}/fields",
25738     "title": "Gets configurations fields",
25739     "examples": [
25740       {
25741         "title": "Example usage:",
25742         "content": "curl https://{domain}/api/integrations/sugarcrm/configurations/{id}/fields -v -u {name}:{password} -X GET",
25743         "type": "json"
25744       }
25745     ],
25746     "name": "getFields",
25747     "group": "Sugarcrm_Configurations",
25748     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25749     "version": "0.0.0",
25750     "filename": "server/api/intSugarcrmConfiguration/index.js",
25751     "groupTitle": "Sugarcrm_Configurations"
25752   },
25753   {
25754     "type": "get",
25755     "url": "/api/integrations/sugarcrm/configurations/{id}/subjects",
25756     "title": "Gets configurations subjects",
25757     "examples": [
25758       {
25759         "title": "Example usage:",
25760         "content": "curl https://{domain}/api/integrations/sugarcrm/configurations/{id}/subjects -v -u {name}:{password} -X GET",
25761         "type": "json"
25762       }
25763     ],
25764     "name": "getSubjects",
25765     "group": "Sugarcrm_Configurations",
25766     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25767     "version": "0.0.0",
25768     "filename": "server/api/intSugarcrmConfiguration/index.js",
25769     "groupTitle": "Sugarcrm_Configurations"
25770   },
25771   {
25772     "type": "post",
25773     "url": "/api/integrations/sugarcrm/fields",
25774     "title": "Creates a new Sugarcrm Field",
25775     "examples": [
25776       {
25777         "title": "Example usage:",
25778         "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",
25779         "type": "json"
25780       }
25781     ],
25782     "name": "CreateSugarcrm_Fields",
25783     "group": "Sugarcrm_Fields",
25784     "parameter": {
25785       "fields": {
25786         "Body": [
25787           {
25788             "group": "Body",
25789             "type": "String",
25790             "allowedValues": [
25791               "\"string\"",
25792               "\"variable\"",
25793               "\"customVariable\"",
25794               "\"keyValue\"",
25795               "\"picklist\""
25796             ],
25797             "optional": true,
25798             "field": "type",
25799             "description": ""
25800           },
25801           {
25802             "group": "Body",
25803             "type": "String",
25804             "optional": true,
25805             "field": "content",
25806             "description": ""
25807           },
25808           {
25809             "group": "Body",
25810             "type": "String",
25811             "optional": true,
25812             "field": "key",
25813             "description": ""
25814           },
25815           {
25816             "group": "Body",
25817             "type": "String",
25818             "allowedValues": [
25819               "\"string\"",
25820               "\"variable\"",
25821               "\"customVariable\""
25822             ],
25823             "optional": true,
25824             "field": "keyType",
25825             "description": ""
25826           },
25827           {
25828             "group": "Body",
25829             "type": "String",
25830             "optional": true,
25831             "field": "keyContent",
25832             "description": ""
25833           },
25834           {
25835             "group": "Body",
25836             "type": "String",
25837             "optional": true,
25838             "field": "idField",
25839             "description": ""
25840           },
25841           {
25842             "group": "Body",
25843             "type": "String",
25844             "optional": true,
25845             "field": "nameField",
25846             "description": ""
25847           },
25848           {
25849             "group": "Body",
25850             "type": "Boolean",
25851             "optional": true,
25852             "field": "customField",
25853             "description": ""
25854           },
25855           {
25856             "group": "Body",
25857             "type": "String",
25858             "optional": true,
25859             "field": "variableName",
25860             "description": ""
25861           }
25862         ]
25863       }
25864     },
25865     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25866     "version": "0.0.0",
25867     "filename": "server/api/intSugarcrmField/index.js",
25868     "groupTitle": "Sugarcrm_Fields"
25869   },
25870   {
25871     "type": "delete",
25872     "url": "/api/integrations/sugarcrm/fields/{id}",
25873     "title": "Deletes a Sugarcrm Field",
25874     "examples": [
25875       {
25876         "title": "Example usage:",
25877         "content": "curl https://{domain}/api/integrations/sugarcrm/fields/{id} -v -u {name}:{password} -X DELETE",
25878         "type": "json"
25879       }
25880     ],
25881     "name": "DeleteSugarcrm_Fields",
25882     "group": "Sugarcrm_Fields",
25883     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25884     "version": "0.0.0",
25885     "filename": "server/api/intSugarcrmField/index.js",
25886     "groupTitle": "Sugarcrm_Fields"
25887   },
25888   {
25889     "type": "get",
25890     "url": "/api/integrations/sugarcrm/fields",
25891     "title": "Gets a list of Sugarcrm Fields",
25892     "examples": [
25893       {
25894         "title": "Example usage:",
25895         "content": "curl https://{domain}/api/integrations/sugarcrm/fields -v -u {name}:{password}",
25896         "type": "json"
25897       }
25898     ],
25899     "name": "GetSugarcrm_Fields",
25900     "group": "Sugarcrm_Fields",
25901     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
25902     "version": "0.0.0",
25903     "filename": "server/api/intSugarcrmField/index.js",
25904     "groupTitle": "Sugarcrm_Fields"
25905   },
25906   {
25907     "type": "get",
25908     "url": "/api/integrations/sugarcrm/fields/{id}",
25909     "title": "Gets a single Sugarcrm Field",
25910     "examples": [
25911       {
25912         "title": "Example usage:",
25913         "content": "curl https://{domain}/api/integrations/sugarcrm/fields/{id} -v -u {name}:{password}",
25914         "type": "json"
25915       }
25916     ],
25917     "name": "ShowSugarcrm_Fields",
25918     "group": "Sugarcrm_Fields",
25919     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25920     "version": "0.0.0",
25921     "filename": "server/api/intSugarcrmField/index.js",
25922     "groupTitle": "Sugarcrm_Fields"
25923   },
25924   {
25925     "type": "put",
25926     "url": "/api/integrations/sugarcrm/fields/{id}",
25927     "title": "Update an existing Sugarcrm Field",
25928     "examples": [
25929       {
25930         "title": "Example usage:",
25931         "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",
25932         "type": "json"
25933       }
25934     ],
25935     "name": "updateSugarcrm_Fields",
25936     "group": "Sugarcrm_Fields",
25937     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25938     "version": "0.0.0",
25939     "filename": "server/api/intSugarcrmField/index.js",
25940     "groupTitle": "Sugarcrm_Fields"
25941   },
25942   {
25943     "type": "get",
25944     "url": "/api/system",
25945     "title": "Gets system information",
25946     "examples": [
25947       {
25948         "title": "Example usage:",
25949         "content": "curl https://{domain}/api/system -v -u {name}:{password}",
25950         "type": "json"
25951       }
25952     ],
25953     "name": "GetSystemInformation",
25954     "group": "System_Information",
25955     "description": "<p>Motion returns the system information.</p>",
25956     "version": "0.0.0",
25957     "filename": "server/api/system/index.js",
25958     "groupTitle": "System_Information"
25959   },
25960   {
25961     "type": "get",
25962     "url": "/api/system/process",
25963     "title": "Gets system information",
25964     "examples": [
25965       {
25966         "title": "Example usage:",
25967         "content": "curl https://{domain}/api/system -v -u {name}:{password}",
25968         "type": "json"
25969       }
25970     ],
25971     "name": "GetSystemInformation",
25972     "group": "System_Information",
25973     "description": "<p>Motion returns the system information.</p>",
25974     "version": "0.0.0",
25975     "filename": "server/api/system/index.js",
25976     "groupTitle": "System_Information"
25977   },
25978   {
25979     "type": "post",
25980     "url": "/api/tags",
25981     "title": "Creates a new Tag",
25982     "examples": [
25983       {
25984         "title": "Example usage:",
25985         "content": "curl https://{domain}/api/tags -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
25986         "type": "json"
25987       }
25988     ],
25989     "name": "CreateTags",
25990     "group": "Tags",
25991     "parameter": {
25992       "fields": {
25993         "Body": [
25994           {
25995             "group": "Body",
25996             "type": "String",
25997             "optional": false,
25998             "field": "name",
25999             "description": ""
26000           },
26001           {
26002             "group": "Body",
26003             "type": "String",
26004             "optional": true,
26005             "field": "color",
26006             "description": ""
26007           },
26008           {
26009             "group": "Body",
26010             "type": "String",
26011             "optional": true,
26012             "field": "description",
26013             "description": ""
26014           }
26015         ]
26016       }
26017     },
26018     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26019     "version": "0.0.0",
26020     "filename": "server/api/tag/index.js",
26021     "groupTitle": "Tags"
26022   },
26023   {
26024     "type": "delete",
26025     "url": "/api/tags/{id}",
26026     "title": "Deletes a Tag",
26027     "examples": [
26028       {
26029         "title": "Example usage:",
26030         "content": "curl https://{domain}/api/tags/{id} -v -u {name}:{password} -X DELETE",
26031         "type": "json"
26032       }
26033     ],
26034     "name": "DeleteTags",
26035     "group": "Tags",
26036     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26037     "version": "0.0.0",
26038     "filename": "server/api/tag/index.js",
26039     "groupTitle": "Tags"
26040   },
26041   {
26042     "type": "get",
26043     "url": "/api/tags",
26044     "title": "Gets a list of Tags",
26045     "examples": [
26046       {
26047         "title": "Example usage:",
26048         "content": "curl https://{domain}/api/tags -v -u {name}:{password}",
26049         "type": "json"
26050       }
26051     ],
26052     "name": "GetTags",
26053     "group": "Tags",
26054     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
26055     "version": "0.0.0",
26056     "filename": "server/api/tag/index.js",
26057     "groupTitle": "Tags"
26058   },
26059   {
26060     "type": "get",
26061     "url": "/api/tags/{id}",
26062     "title": "Gets a single Tag",
26063     "examples": [
26064       {
26065         "title": "Example usage:",
26066         "content": "curl https://{domain}/api/tags/{id} -v -u {name}:{password}",
26067         "type": "json"
26068       }
26069     ],
26070     "name": "ShowTags",
26071     "group": "Tags",
26072     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26073     "version": "0.0.0",
26074     "filename": "server/api/tag/index.js",
26075     "groupTitle": "Tags"
26076   },
26077   {
26078     "type": "put",
26079     "url": "/api/tags/{id}",
26080     "title": "Update an existing Tag",
26081     "examples": [
26082       {
26083         "title": "Example usage:",
26084         "content": "curl https://{domain}/api/tags/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
26085         "type": "json"
26086       }
26087     ],
26088     "name": "updateTags",
26089     "group": "Tags",
26090     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26091     "version": "0.0.0",
26092     "filename": "server/api/tag/index.js",
26093     "groupTitle": "Tags"
26094   },
26095   {
26096     "type": "post",
26097     "url": "/api/teams/{id}/queues",
26098     "title": "Add queues to a team",
26099     "examples": [
26100       {
26101         "title": "Example usage:",
26102         "content": "curl https://{domain}/api/teams/{id}/queues -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
26103         "type": "json"
26104       }
26105     ],
26106     "name": "AddQueues",
26107     "group": "Teams",
26108     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26109     "version": "0.0.0",
26110     "filename": "server/api/team/index.js",
26111     "groupTitle": "Teams"
26112   },
26113   {
26114     "type": "post",
26115     "url": "/api/teams",
26116     "title": "Creates a new Team",
26117     "examples": [
26118       {
26119         "title": "Example usage:",
26120         "content": "curl https://{domain}/api/teams -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
26121         "type": "json"
26122       }
26123     ],
26124     "name": "CreateTeams",
26125     "group": "Teams",
26126     "parameter": {
26127       "fields": {
26128         "Body": [
26129           {
26130             "group": "Body",
26131             "type": "String",
26132             "optional": false,
26133             "field": "name",
26134             "description": ""
26135           },
26136           {
26137             "group": "Body",
26138             "type": "String",
26139             "optional": true,
26140             "field": "description",
26141             "description": ""
26142           }
26143         ]
26144       }
26145     },
26146     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26147     "version": "0.0.0",
26148     "filename": "server/api/team/index.js",
26149     "groupTitle": "Teams"
26150   },
26151   {
26152     "type": "delete",
26153     "url": "/api/teams/{id}",
26154     "title": "Deletes a Team",
26155     "examples": [
26156       {
26157         "title": "Example usage:",
26158         "content": "curl https://{domain}/api/teams/{id} -v -u {name}:{password} -X DELETE",
26159         "type": "json"
26160       }
26161     ],
26162     "name": "DeleteTeams",
26163     "group": "Teams",
26164     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26165     "version": "0.0.0",
26166     "filename": "server/api/team/index.js",
26167     "groupTitle": "Teams"
26168   },
26169   {
26170     "type": "get",
26171     "url": "/api/teams/{id}/users",
26172     "title": "Gets agents from team",
26173     "examples": [
26174       {
26175         "title": "Example usage:",
26176         "content": "curl https://{domain}/api/teams/{id}/users -v -u {name}:{password} -X GET",
26177         "type": "json"
26178       }
26179     ],
26180     "name": "GetAgents",
26181     "group": "Teams",
26182     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26183     "version": "0.0.0",
26184     "filename": "server/api/team/index.js",
26185     "groupTitle": "Teams"
26186   },
26187   {
26188     "type": "get",
26189     "url": "/api/teams/{id}/queues?channel={channel}",
26190     "title": "Gets Queues list",
26191     "examples": [
26192       {
26193         "title": "Example usage:",
26194         "content": "curl https://{domain}/api/teams/{id}/queues?channel={channel} -v -u {name}:{password}",
26195         "type": "json"
26196       }
26197     ],
26198     "name": "GetQueues",
26199     "group": "Teams",
26200     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26201     "version": "0.0.0",
26202     "filename": "server/api/team/index.js",
26203     "groupTitle": "Teams"
26204   },
26205   {
26206     "type": "get",
26207     "url": "/api/teams",
26208     "title": "Gets a list of Teams",
26209     "examples": [
26210       {
26211         "title": "Example usage:",
26212         "content": "curl https://{domain}/api/teams -v -u {name}:{password}",
26213         "type": "json"
26214       }
26215     ],
26216     "name": "GetTeams",
26217     "group": "Teams",
26218     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
26219     "version": "0.0.0",
26220     "filename": "server/api/team/index.js",
26221     "groupTitle": "Teams"
26222   },
26223   {
26224     "type": "delete",
26225     "url": "/api/teams/{id}/users",
26226     "title": "Removes agents from a team",
26227     "examples": [
26228       {
26229         "title": "Example usage:",
26230         "content": "curl https://{domain}/api/teams/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
26231         "type": "json"
26232       }
26233     ],
26234     "name": "RemoveAgents",
26235     "group": "Teams",
26236     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26237     "version": "0.0.0",
26238     "filename": "server/api/team/index.js",
26239     "groupTitle": "Teams"
26240   },
26241   {
26242     "type": "delete",
26243     "url": "/api/teams/{id}/queues",
26244     "title": "Remove queues to a team",
26245     "examples": [
26246       {
26247         "title": "Example usage:",
26248         "content": "curl https://{domain}/api/teams/{id}/queues?channel=voice&ids=1&ids=2 -v -u {name}:{password} -X DELETE",
26249         "type": "json"
26250       }
26251     ],
26252     "name": "RemoveQueues",
26253     "group": "Teams",
26254     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26255     "version": "0.0.0",
26256     "filename": "server/api/team/index.js",
26257     "groupTitle": "Teams"
26258   },
26259   {
26260     "type": "delete",
26261     "url": "/api/voice/Prefixes/{id}/teams",
26262     "title": "Remove teams from a voice prefix",
26263     "examples": [
26264       {
26265         "title": "Example usage:",
26266         "content": "curl https://{domain}/api/voice/prefixes/{id}/teams -v -u {name}:{password} -X DELETE",
26267         "type": "json"
26268       }
26269     ],
26270     "name": "RemoveTeams",
26271     "group": "Teams",
26272     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26273     "version": "0.0.0",
26274     "filename": "server/api/voicePrefix/index.js",
26275     "groupTitle": "Teams"
26276   },
26277   {
26278     "type": "delete",
26279     "url": "/api/openchannel/queues/{id}/teams",
26280     "title": "Remove teams from a queue",
26281     "examples": [
26282       {
26283         "title": "Example usage:",
26284         "content": "curl https://{domain}/api/openchannel/queues/{id}/teams -v -u {name}:{password} -X DELETE",
26285         "type": "json"
26286       }
26287     ],
26288     "name": "RemoveTeams",
26289     "group": "Teams",
26290     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26291     "version": "0.0.0",
26292     "filename": "server/api/openchannelQueue/index.js",
26293     "groupTitle": "Teams"
26294   },
26295   {
26296     "type": "delete",
26297     "url": "/api/chat/queues/{id}/teams",
26298     "title": "Remove teams from a queue",
26299     "examples": [
26300       {
26301         "title": "Example usage:",
26302         "content": "curl https://{domain}/api/chat/queues/{id}/teams -v -u {name}:{password} -X DELETE",
26303         "type": "json"
26304       }
26305     ],
26306     "name": "RemoveTeams",
26307     "group": "Teams",
26308     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26309     "version": "0.0.0",
26310     "filename": "server/api/chatQueue/index.js",
26311     "groupTitle": "Teams"
26312   },
26313   {
26314     "type": "delete",
26315     "url": "/api/sms/queues/{id}/teams",
26316     "title": "Remove teams from a queue",
26317     "examples": [
26318       {
26319         "title": "Example usage:",
26320         "content": "curl https://{domain}/api/sms/queues/{id}/teams -v -u {name}:{password} -X DELETE",
26321         "type": "json"
26322       }
26323     ],
26324     "name": "RemoveTeams",
26325     "group": "Teams",
26326     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26327     "version": "0.0.0",
26328     "filename": "server/api/smsQueue/index.js",
26329     "groupTitle": "Teams"
26330   },
26331   {
26332     "type": "delete",
26333     "url": "/api/fax/queues/{id}/teams",
26334     "title": "Remove teams from a queue",
26335     "examples": [
26336       {
26337         "title": "Example usage:",
26338         "content": "curl https://{domain}/api/fax/queues/{id}/teams -v -u {name}:{password} -X DELETE",
26339         "type": "json"
26340       }
26341     ],
26342     "name": "RemoveTeams",
26343     "group": "Teams",
26344     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26345     "version": "0.0.0",
26346     "filename": "server/api/faxQueue/index.js",
26347     "groupTitle": "Teams"
26348   },
26349   {
26350     "type": "delete",
26351     "url": "/api/voice/queues/{id}/teams",
26352     "title": "Remove teams from a queue",
26353     "examples": [
26354       {
26355         "title": "Example usage:",
26356         "content": "curl https://{domain}/api/voice/queues/{id}/teams -v -u {name}:{password} -X DELETE",
26357         "type": "json"
26358       }
26359     ],
26360     "name": "RemoveTeams",
26361     "group": "Teams",
26362     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26363     "version": "0.0.0",
26364     "filename": "server/api/voiceQueue/index.js",
26365     "groupTitle": "Teams"
26366   },
26367   {
26368     "type": "delete",
26369     "url": "/api/mail/queues/{id}/teams",
26370     "title": "Remove teams from a queue",
26371     "examples": [
26372       {
26373         "title": "Example usage:",
26374         "content": "curl https://{domain}/api/mail/queues/{id}/teams -v -u {name}:{password} -X DELETE",
26375         "type": "json"
26376       }
26377     ],
26378     "name": "RemoveTeams",
26379     "group": "Teams",
26380     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26381     "version": "0.0.0",
26382     "filename": "server/api/mailQueue/index.js",
26383     "groupTitle": "Teams"
26384   },
26385   {
26386     "type": "delete",
26387     "url": "/api/whatsapp/queues/{id}/teams",
26388     "title": "Remove teams from a queue",
26389     "examples": [
26390       {
26391         "title": "Example usage:",
26392         "content": "curl https://{domain}/api/whatsapp/queues/{id}/teams -v -u {name}:{password} -X DELETE",
26393         "type": "json"
26394       }
26395     ],
26396     "name": "RemoveTeams",
26397     "group": "Teams",
26398     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26399     "version": "0.0.0",
26400     "filename": "server/api/whatsappQueue/index.js",
26401     "groupTitle": "Teams"
26402   },
26403   {
26404     "type": "get",
26405     "url": "/api/teams/{id}",
26406     "title": "Gets a single Team",
26407     "examples": [
26408       {
26409         "title": "Example usage:",
26410         "content": "curl https://{domain}/api/teams/{id} -v -u {name}:{password}",
26411         "type": "json"
26412       }
26413     ],
26414     "name": "ShowTeams",
26415     "group": "Teams",
26416     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26417     "version": "0.0.0",
26418     "filename": "server/api/team/index.js",
26419     "groupTitle": "Teams"
26420   },
26421   {
26422     "type": "post",
26423     "url": "/api/teams/{id}/users",
26424     "title": "Adds agents to a team",
26425     "examples": [
26426       {
26427         "title": "Example usage:",
26428         "content": "curl https://{domain}/api/teams/{id}/users -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
26429         "type": "json"
26430       }
26431     ],
26432     "name": "addAgents",
26433     "group": "Teams",
26434     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26435     "version": "0.0.0",
26436     "filename": "server/api/team/index.js",
26437     "groupTitle": "Teams"
26438   },
26439   {
26440     "type": "put",
26441     "url": "/api/teams/{id}",
26442     "title": "Update an existing Team",
26443     "examples": [
26444       {
26445         "title": "Example usage:",
26446         "content": "curl https://{domain}/api/teams/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
26447         "type": "json"
26448       }
26449     ],
26450     "name": "updateTeams",
26451     "group": "Teams",
26452     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26453     "version": "0.0.0",
26454     "filename": "server/api/team/index.js",
26455     "groupTitle": "Teams"
26456   },
26457   {
26458     "type": "post",
26459     "url": "/api/templates",
26460     "title": "Creates a new Template",
26461     "examples": [
26462       {
26463         "title": "Example usage:",
26464         "content": "curl https://{domain}/api/templates -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
26465         "type": "json"
26466       }
26467     ],
26468     "name": "CreateTemplates",
26469     "group": "Templates",
26470     "parameter": {
26471       "fields": {
26472         "Body": [
26473           {
26474             "group": "Body",
26475             "type": "String",
26476             "optional": true,
26477             "field": "name",
26478             "description": ""
26479           },
26480           {
26481             "group": "Body",
26482             "type": "String",
26483             "optional": true,
26484             "field": "description",
26485             "description": ""
26486           },
26487           {
26488             "group": "Body",
26489             "type": "Text",
26490             "optional": true,
26491             "field": "html",
26492             "description": ""
26493           }
26494         ]
26495       }
26496     },
26497     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26498     "version": "0.0.0",
26499     "filename": "server/api/template/index.js",
26500     "groupTitle": "Templates"
26501   },
26502   {
26503     "type": "delete",
26504     "url": "/api/templates/{id}",
26505     "title": "Deletes a Template",
26506     "examples": [
26507       {
26508         "title": "Example usage:",
26509         "content": "curl https://{domain}/api/templates/{id} -v -u {name}:{password} -X DELETE",
26510         "type": "json"
26511       }
26512     ],
26513     "name": "DeleteTemplates",
26514     "group": "Templates",
26515     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26516     "version": "0.0.0",
26517     "filename": "server/api/template/index.js",
26518     "groupTitle": "Templates"
26519   },
26520   {
26521     "type": "get",
26522     "url": "/api/templates",
26523     "title": "Gets a list of Templates",
26524     "examples": [
26525       {
26526         "title": "Example usage:",
26527         "content": "curl https://{domain}/api/templates -v -u {name}:{password}",
26528         "type": "json"
26529       }
26530     ],
26531     "name": "GetTemplates",
26532     "group": "Templates",
26533     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
26534     "version": "0.0.0",
26535     "filename": "server/api/template/index.js",
26536     "groupTitle": "Templates"
26537   },
26538   {
26539     "type": "get",
26540     "url": "/api/templates/{id}",
26541     "title": "Gets a single Template",
26542     "examples": [
26543       {
26544         "title": "Example usage:",
26545         "content": "curl https://{domain}/api/templates/{id} -v -u {name}:{password}",
26546         "type": "json"
26547       }
26548     ],
26549     "name": "ShowTemplates",
26550     "group": "Templates",
26551     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26552     "version": "0.0.0",
26553     "filename": "server/api/template/index.js",
26554     "groupTitle": "Templates"
26555   },
26556   {
26557     "type": "put",
26558     "url": "/api/templates/{id}",
26559     "title": "Update an existing Template",
26560     "examples": [
26561       {
26562         "title": "Example usage:",
26563         "content": "curl https://{domain}/api/templates/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
26564         "type": "json"
26565       }
26566     ],
26567     "name": "updateTemplates",
26568     "group": "Templates",
26569     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26570     "version": "0.0.0",
26571     "filename": "server/api/template/index.js",
26572     "groupTitle": "Templates"
26573   },
26574   {
26575     "type": "post",
26576     "url": "/api/triggers",
26577     "title": "Creates a new Trigger",
26578     "examples": [
26579       {
26580         "title": "Example usage:",
26581         "content": "curl https://{domain}/api/triggers -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
26582         "type": "json"
26583       }
26584     ],
26585     "name": "CreateTriggers",
26586     "group": "Triggers",
26587     "parameter": {
26588       "fields": {
26589         "Body": [
26590           {
26591             "group": "Body",
26592             "type": "String",
26593             "optional": true,
26594             "field": "name",
26595             "description": ""
26596           },
26597           {
26598             "group": "Body",
26599             "type": "String",
26600             "optional": true,
26601             "field": "channel",
26602             "description": ""
26603           },
26604           {
26605             "group": "Body",
26606             "type": "String",
26607             "optional": true,
26608             "field": "description",
26609             "description": ""
26610           },
26611           {
26612             "group": "Body",
26613             "type": "Boolean",
26614             "optional": true,
26615             "field": "status",
26616             "description": ""
26617           }
26618         ]
26619       }
26620     },
26621     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26622     "version": "0.0.0",
26623     "filename": "server/api/trigger/index.js",
26624     "groupTitle": "Triggers"
26625   },
26626   {
26627     "type": "delete",
26628     "url": "/api/triggers/{id}",
26629     "title": "Deletes a Trigger",
26630     "examples": [
26631       {
26632         "title": "Example usage:",
26633         "content": "curl https://{domain}/api/triggers/{id} -v -u {name}:{password} -X DELETE",
26634         "type": "json"
26635       }
26636     ],
26637     "name": "DeleteTriggers",
26638     "group": "Triggers",
26639     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26640     "version": "0.0.0",
26641     "filename": "server/api/trigger/index.js",
26642     "groupTitle": "Triggers"
26643   },
26644   {
26645     "type": "get",
26646     "url": "/api/triggers",
26647     "title": "Gets a list of Triggers",
26648     "examples": [
26649       {
26650         "title": "Example usage:",
26651         "content": "curl https://{domain}/api/triggers -v -u {name}:{password}",
26652         "type": "json"
26653       }
26654     ],
26655     "name": "GetTriggers",
26656     "group": "Triggers",
26657     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
26658     "version": "0.0.0",
26659     "filename": "server/api/trigger/index.js",
26660     "groupTitle": "Triggers"
26661   },
26662   {
26663     "type": "get",
26664     "url": "/api/triggers/{id}",
26665     "title": "Gets a single Trigger",
26666     "examples": [
26667       {
26668         "title": "Example usage:",
26669         "content": "curl https://{domain}/api/triggers/{id} -v -u {name}:{password}",
26670         "type": "json"
26671       }
26672     ],
26673     "name": "ShowTriggers",
26674     "group": "Triggers",
26675     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26676     "version": "0.0.0",
26677     "filename": "server/api/trigger/index.js",
26678     "groupTitle": "Triggers"
26679   },
26680   {
26681     "type": "post",
26682     "url": "/api/triggers/{id}/actions",
26683     "title": "Creates new actions",
26684     "examples": [
26685       {
26686         "title": "Example usage:",
26687         "content": "curl https://{domain}/api/triggers/{id}/actions -d '{\"action\": \"contactManager\",\"data1\": \"1\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
26688         "type": "json"
26689       }
26690     ],
26691     "name": "addAction",
26692     "group": "Triggers",
26693     "parameter": {
26694       "fields": {
26695         "Body": [
26696           {
26697             "group": "Body",
26698             "type": "Virtual",
26699             "optional": true,
26700             "field": "name",
26701             "description": ""
26702           },
26703           {
26704             "group": "Body",
26705             "type": "String",
26706             "optional": false,
26707             "field": "action",
26708             "description": "<p>Allowed values: contactManager, integration, motionbar, jscripty, urlForward, browser, bot, script</p>"
26709           },
26710           {
26711             "group": "Body",
26712             "type": "String",
26713             "optional": true,
26714             "field": "data1",
26715             "description": "<p>contactManager[ListId], integration[intName(zendesk)], motionbar[Popup(0),URL(1),WinApp(2)], urlForward[GET,POST], browser[TemplateId(0),URL(1)]</p>"
26716           },
26717           {
26718             "group": "Body",
26719             "type": "String",
26720             "optional": true,
26721             "field": "data2",
26722             "description": "<p>integration[AccountId], motionbar[TemplateId,URL,WinAppPath], urlForward[URL]</p>"
26723           },
26724           {
26725             "group": "Body",
26726             "type": "String",
26727             "optional": true,
26728             "field": "data3",
26729             "description": "<p>motionbar[NULL,NULL,WinAppArguments]</p>"
26730           },
26731           {
26732             "group": "Body",
26733             "type": "String",
26734             "optional": true,
26735             "field": "data4",
26736             "description": ""
26737           },
26738           {
26739             "group": "Body",
26740             "type": "String",
26741             "optional": true,
26742             "field": "data5",
26743             "description": ""
26744           },
26745           {
26746             "group": "Body",
26747             "type": "String",
26748             "optional": true,
26749             "field": "data6",
26750             "description": ""
26751           },
26752           {
26753             "group": "Body",
26754             "type": "Text",
26755             "optional": true,
26756             "field": "data7",
26757             "description": ""
26758           }
26759         ]
26760       }
26761     },
26762     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26763     "version": "0.0.0",
26764     "filename": "server/api/trigger/index.js",
26765     "groupTitle": "Triggers"
26766   },
26767   {
26768     "type": "post",
26769     "url": "/api/triggers/{id}/all_conditions",
26770     "title": "Creates a new \"AND\"condition",
26771     "examples": [
26772       {
26773         "title": "Example usage:",
26774         "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",
26775         "type": "json"
26776       }
26777     ],
26778     "name": "addAllCondition",
26779     "group": "Triggers",
26780     "parameter": {
26781       "fields": {
26782         "Body": [
26783           {
26784             "group": "Body",
26785             "type": "Virtual",
26786             "optional": true,
26787             "field": "name",
26788             "description": ""
26789           },
26790           {
26791             "group": "Body",
26792             "type": "String",
26793             "optional": false,
26794             "field": "field",
26795             "description": ""
26796           },
26797           {
26798             "group": "Body",
26799             "type": "String",
26800             "optional": false,
26801             "field": "operator",
26802             "description": ""
26803           },
26804           {
26805             "group": "Body",
26806             "type": "String",
26807             "optional": false,
26808             "field": "value",
26809             "description": ""
26810           }
26811         ]
26812       }
26813     },
26814     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26815     "version": "0.0.0",
26816     "filename": "server/api/trigger/index.js",
26817     "groupTitle": "Triggers"
26818   },
26819   {
26820     "type": "post",
26821     "url": "/api/triggers/{id}/any_conditions",
26822     "title": "Creates a new \"OR\"condition",
26823     "examples": [
26824       {
26825         "title": "Example usage:",
26826         "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",
26827         "type": "json"
26828       }
26829     ],
26830     "name": "addAnyCondition",
26831     "group": "Triggers",
26832     "parameter": {
26833       "fields": {
26834         "Body": [
26835           {
26836             "group": "Body",
26837             "type": "Virtual",
26838             "optional": true,
26839             "field": "name",
26840             "description": ""
26841           },
26842           {
26843             "group": "Body",
26844             "type": "String",
26845             "optional": false,
26846             "field": "field",
26847             "description": ""
26848           },
26849           {
26850             "group": "Body",
26851             "type": "String",
26852             "optional": false,
26853             "field": "operator",
26854             "description": ""
26855           },
26856           {
26857             "group": "Body",
26858             "type": "String",
26859             "optional": false,
26860             "field": "value",
26861             "description": ""
26862           }
26863         ]
26864       }
26865     },
26866     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26867     "version": "0.0.0",
26868     "filename": "server/api/trigger/index.js",
26869     "groupTitle": "Triggers"
26870   },
26871   {
26872     "type": "get",
26873     "url": "/api/triggers/{id}/actions",
26874     "title": "Gets Trigger Actions",
26875     "examples": [
26876       {
26877         "title": "Example usage:",
26878         "content": "curl https://{domain}/api/triggers/{id}/actions -v -u {name}:{password} -X GET",
26879         "type": "json"
26880       }
26881     ],
26882     "name": "getActions",
26883     "group": "Triggers",
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/trigger/index.js",
26887     "groupTitle": "Triggers"
26888   },
26889   {
26890     "type": "get",
26891     "url": "/api/triggers/{id}/all_conditions",
26892     "title": "Gets \"AND\" Trigger Conditions",
26893     "examples": [
26894       {
26895         "title": "Example usage:",
26896         "content": "curl https://{domain}/api/triggers/{id}/all_conditions -v -u {name}:{password} -X GET",
26897         "type": "json"
26898       }
26899     ],
26900     "name": "getAllConditions",
26901     "group": "Triggers",
26902     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26903     "version": "0.0.0",
26904     "filename": "server/api/trigger/index.js",
26905     "groupTitle": "Triggers"
26906   },
26907   {
26908     "type": "get",
26909     "url": "/api/triggers/{id}/any_conditions",
26910     "title": "Gets \"OR\" Trigger Conditions",
26911     "examples": [
26912       {
26913         "title": "Example usage:",
26914         "content": "curl https://{domain}/api/triggers/{id}/any_conditions -v -u {name}:{password} -X GET",
26915         "type": "json"
26916       }
26917     ],
26918     "name": "getAnyConditions",
26919     "group": "Triggers",
26920     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <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/trigger/index.js",
26923     "groupTitle": "Triggers"
26924   },
26925   {
26926     "type": "put",
26927     "url": "/api/triggers/{id}",
26928     "title": "Update an existing Trigger",
26929     "examples": [
26930       {
26931         "title": "Example usage:",
26932         "content": "curl https://{domain}/api/triggers/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
26933         "type": "json"
26934       }
26935     ],
26936     "name": "updateTriggers",
26937     "group": "Triggers",
26938     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <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/trigger/index.js",
26941     "groupTitle": "Triggers"
26942   },
26943   {
26944     "type": "post",
26945     "url": "/api/trunks/clone",
26946     "title": "Clone an existing Trunk",
26947     "examples": [
26948       {
26949         "title": "Example usage:",
26950         "content": "curl https://{domain}/api/trunks/clone -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
26951         "type": "json"
26952       }
26953     ],
26954     "name": "CloneTrunks",
26955     "group": "Trunks",
26956     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26957     "version": "0.0.0",
26958     "filename": "server/api/trunk/index.js",
26959     "groupTitle": "Trunks"
26960   },
26961   {
26962     "type": "post",
26963     "url": "/api/trunks",
26964     "title": "Create a new trunk",
26965     "examples": [
26966       {
26967         "title": "Example usage:",
26968         "content": "curl https://{domain}/api/trunks -v -u {name}:{password} -X POST",
26969         "type": "json"
26970       }
26971     ],
26972     "name": "Create",
26973     "group": "Trunks",
26974     "parameter": {
26975       "fields": {
26976         "Body": [
26977           {
26978             "group": "Body",
26979             "type": "String",
26980             "optional": false,
26981             "field": "name",
26982             "description": ""
26983           },
26984           {
26985             "group": "Body",
26986             "type": "String",
26987             "allowedValues": [
26988               "\"friend\"",
26989               "\"user\"",
26990               "\"peer\""
26991             ],
26992             "optional": false,
26993             "field": "type",
26994             "description": ""
26995           },
26996           {
26997             "group": "Body",
26998             "type": "String",
26999             "optional": false,
27000             "field": "context",
27001             "description": ""
27002           },
27003           {
27004             "group": "Body",
27005             "type": "String",
27006             "allowedValues": [
27007               "\"ALLOWED_NOT_SCREENED\"",
27008               "\"ALLOWED_PASSED_SCREEN\"",
27009               "\"ALLOWED_FAILED_SCREEN\"",
27010               "\"ALLOWED\"",
27011               "\"PROHIB_NOT_SCREENED\"",
27012               "\"PROHIB_PASSED_SCREEN\"",
27013               "\"PROHIB_FAILED_SCREEN\"",
27014               "\"PROHIB\""
27015             ],
27016             "optional": true,
27017             "field": "callingpres",
27018             "description": ""
27019           },
27020           {
27021             "group": "Body",
27022             "type": "String",
27023             "optional": true,
27024             "field": "deny",
27025             "description": ""
27026           },
27027           {
27028             "group": "Body",
27029             "type": "String",
27030             "optional": true,
27031             "field": "permit",
27032             "description": ""
27033           },
27034           {
27035             "group": "Body",
27036             "type": "String",
27037             "optional": true,
27038             "field": "secret",
27039             "description": ""
27040           },
27041           {
27042             "group": "Body",
27043             "type": "String",
27044             "optional": true,
27045             "field": "md5secret",
27046             "description": ""
27047           },
27048           {
27049             "group": "Body",
27050             "type": "String",
27051             "optional": true,
27052             "field": "remotesecret",
27053             "description": ""
27054           },
27055           {
27056             "group": "Body",
27057             "type": "String",
27058             "optional": true,
27059             "field": "transport",
27060             "description": "<p>String is deprecated. Please use an Array as [&quot;udp&quot;, &quot;tcp&quot;]</p>"
27061           },
27062           {
27063             "group": "Body",
27064             "type": "String",
27065             "allowedValues": [
27066               "\"rfc2833\"",
27067               "\"info\"",
27068               "\"shortinfo\"",
27069               "\"inband\"",
27070               "\"auto\""
27071             ],
27072             "optional": true,
27073             "field": "dtmfmode",
27074             "description": ""
27075           },
27076           {
27077             "group": "Body",
27078             "type": "String",
27079             "allowedValues": [
27080               "\"yes\"",
27081               "\"no\"",
27082               "\"nonat\"",
27083               "\"update\"",
27084               "\"outgoing\""
27085             ],
27086             "optional": true,
27087             "field": "directmedia",
27088             "description": ""
27089           },
27090           {
27091             "group": "Body",
27092             "type": "String",
27093             "allowedValues": [
27094               "\"yes\"",
27095               "\"no\""
27096             ],
27097             "optional": true,
27098             "field": "directrtpsetup",
27099             "description": ""
27100           },
27101           {
27102             "group": "Body",
27103             "type": "String",
27104             "optional": true,
27105             "field": "directmediapermit",
27106             "description": ""
27107           },
27108           {
27109             "group": "Body",
27110             "type": "String",
27111             "optional": true,
27112             "field": "directmediadeny",
27113             "description": ""
27114           },
27115           {
27116             "group": "Body",
27117             "type": "String",
27118             "optional": true,
27119             "field": "nat",
27120             "description": "<p>String is deprecated. Please use an Array as [&quot;force_rport&quot;, &quot;comedia&quot;]</p>"
27121           },
27122           {
27123             "group": "Body",
27124             "type": "String",
27125             "optional": true,
27126             "field": "callgroup",
27127             "description": ""
27128           },
27129           {
27130             "group": "Body",
27131             "type": "String",
27132             "optional": true,
27133             "field": "namedcallgroup",
27134             "description": ""
27135           },
27136           {
27137             "group": "Body",
27138             "type": "String",
27139             "optional": true,
27140             "field": "pickupgroup",
27141             "description": ""
27142           },
27143           {
27144             "group": "Body",
27145             "type": "String",
27146             "optional": true,
27147             "field": "namedpickupgroup",
27148             "description": ""
27149           },
27150           {
27151             "group": "Body",
27152             "type": "String",
27153             "optional": true,
27154             "field": "language",
27155             "description": ""
27156           },
27157           {
27158             "group": "Body",
27159             "type": "String",
27160             "optional": true,
27161             "field": "tonezone",
27162             "description": ""
27163           },
27164           {
27165             "group": "Body",
27166             "type": "String",
27167             "optional": true,
27168             "field": "disallow",
27169             "description": ""
27170           },
27171           {
27172             "group": "Body",
27173             "type": "String",
27174             "optional": false,
27175             "field": "allow",
27176             "description": "<p>String is deprecated. Please use an Array as [&quot;ulaw&quot;, &quot;alaw&quot;, &quot;alaw&quot;]</p>"
27177           },
27178           {
27179             "group": "Body",
27180             "type": "String",
27181             "allowedValues": [
27182               "\"yes\"",
27183               "\"no\""
27184             ],
27185             "optional": true,
27186             "field": "autoframing",
27187             "description": ""
27188           },
27189           {
27190             "group": "Body",
27191             "type": "String",
27192             "optional": true,
27193             "field": "insecure",
27194             "description": "<p>String is deprecated. Please use an Array as [&quot;port&quot;, &quot;invite&quot;]</p>"
27195           },
27196           {
27197             "group": "Body",
27198             "type": "String",
27199             "allowedValues": [
27200               "\"yes\"",
27201               "\"no\""
27202             ],
27203             "optional": true,
27204             "field": "trustrpid",
27205             "description": ""
27206           },
27207           {
27208             "group": "Body",
27209             "type": "String",
27210             "allowedValues": [
27211               "\"yes\"",
27212               "\"no\""
27213             ],
27214             "optional": true,
27215             "field": "trust_id_outbound",
27216             "description": ""
27217           },
27218           {
27219             "group": "Body",
27220             "type": "String",
27221             "allowedValues": [
27222               "\"yes\"",
27223               "\"no\"",
27224               "\"never\""
27225             ],
27226             "optional": true,
27227             "field": "progressinband",
27228             "description": ""
27229           },
27230           {
27231             "group": "Body",
27232             "type": "String",
27233             "allowedValues": [
27234               "\"yes\"",
27235               "\"no\""
27236             ],
27237             "optional": true,
27238             "field": "promiscredir",
27239             "description": ""
27240           },
27241           {
27242             "group": "Body",
27243             "type": "String",
27244             "allowedValues": [
27245               "\"yes\"",
27246               "\"no\""
27247             ],
27248             "optional": true,
27249             "field": "useclientcode",
27250             "description": ""
27251           },
27252           {
27253             "group": "Body",
27254             "type": "Integer",
27255             "optional": true,
27256             "field": "accountcode",
27257             "description": ""
27258           },
27259           {
27260             "group": "Body",
27261             "type": "String",
27262             "optional": true,
27263             "field": "setvar",
27264             "description": ""
27265           },
27266           {
27267             "group": "Body",
27268             "type": "String",
27269             "optional": true,
27270             "field": "callerid",
27271             "description": ""
27272           },
27273           {
27274             "group": "Body",
27275             "type": "String",
27276             "optional": true,
27277             "field": "amaflags",
27278             "description": ""
27279           },
27280           {
27281             "group": "Body",
27282             "type": "String",
27283             "allowedValues": [
27284               "\"yes\"",
27285               "\"no\""
27286             ],
27287             "optional": true,
27288             "field": "callcounter",
27289             "description": ""
27290           },
27291           {
27292             "group": "Body",
27293             "type": "Integer",
27294             "optional": true,
27295             "field": "busylevel",
27296             "description": ""
27297           },
27298           {
27299             "group": "Body",
27300             "type": "String",
27301             "allowedValues": [
27302               "\"yes\"",
27303               "\"no\""
27304             ],
27305             "optional": true,
27306             "field": "allowoverlap",
27307             "description": ""
27308           },
27309           {
27310             "group": "Body",
27311             "type": "String",
27312             "allowedValues": [
27313               "\"yes\"",
27314               "\"no\""
27315             ],
27316             "optional": true,
27317             "field": "allowsubscribe",
27318             "description": ""
27319           },
27320           {
27321             "group": "Body",
27322             "type": "String",
27323             "allowedValues": [
27324               "\"yes\"",
27325               "\"no\""
27326             ],
27327             "optional": true,
27328             "field": "allowtransfer",
27329             "description": ""
27330           },
27331           {
27332             "group": "Body",
27333             "type": "String",
27334             "allowedValues": [
27335               "\"yes\"",
27336               "\"no\""
27337             ],
27338             "optional": true,
27339             "field": "ignoresdpversion",
27340             "description": ""
27341           },
27342           {
27343             "group": "Body",
27344             "type": "String",
27345             "optional": true,
27346             "field": "subscribecontext",
27347             "description": ""
27348           },
27349           {
27350             "group": "Body",
27351             "type": "String",
27352             "optional": true,
27353             "field": "template",
27354             "description": ""
27355           },
27356           {
27357             "group": "Body",
27358             "type": "String",
27359             "allowedValues": [
27360               "\"yes\"",
27361               "\"no\"",
27362               "\"always\""
27363             ],
27364             "optional": true,
27365             "field": "videosupport",
27366             "description": ""
27367           },
27368           {
27369             "group": "Body",
27370             "type": "Integer",
27371             "optional": true,
27372             "field": "maxcallbitrate",
27373             "description": ""
27374           },
27375           {
27376             "group": "Body",
27377             "type": "String",
27378             "allowedValues": [
27379               "\"yes\"",
27380               "\"no\""
27381             ],
27382             "optional": true,
27383             "field": "rfc2833compensate",
27384             "description": ""
27385           },
27386           {
27387             "group": "Body",
27388             "type": "String",
27389             "optional": true,
27390             "field": "mailbox",
27391             "description": ""
27392           },
27393           {
27394             "group": "Body",
27395             "type": "String",
27396             "allowedValues": [
27397               "\"accept\"",
27398               "\"refuse\"",
27399               "\"originate\""
27400             ],
27401             "optional": true,
27402             "field": "session_timers",
27403             "description": ""
27404           },
27405           {
27406             "group": "Body",
27407             "type": "Integer",
27408             "optional": true,
27409             "field": "session_expires",
27410             "description": ""
27411           },
27412           {
27413             "group": "Body",
27414             "type": "Integer",
27415             "optional": true,
27416             "field": "session_minse",
27417             "description": ""
27418           },
27419           {
27420             "group": "Body",
27421             "type": "String",
27422             "allowedValues": [
27423               "\"uac\"",
27424               "\"uas\""
27425             ],
27426             "optional": true,
27427             "field": "session_refresher",
27428             "description": ""
27429           },
27430           {
27431             "group": "Body",
27432             "type": "String",
27433             "optional": true,
27434             "field": "t38pt_usertpsource",
27435             "description": ""
27436           },
27437           {
27438             "group": "Body",
27439             "type": "String",
27440             "optional": true,
27441             "field": "regexten",
27442             "description": ""
27443           },
27444           {
27445             "group": "Body",
27446             "type": "String",
27447             "optional": true,
27448             "field": "fromdomain",
27449             "description": ""
27450           },
27451           {
27452             "group": "Body",
27453             "type": "String",
27454             "optional": true,
27455             "field": "fromuser",
27456             "description": ""
27457           },
27458           {
27459             "group": "Body",
27460             "type": "Integer",
27461             "optional": true,
27462             "field": "port",
27463             "description": ""
27464           },
27465           {
27466             "group": "Body",
27467             "type": "String",
27468             "allowedValues": [
27469               "\"yes\"",
27470               "\"no\""
27471             ],
27472             "optional": true,
27473             "field": "qualify",
27474             "description": ""
27475           },
27476           {
27477             "group": "Body",
27478             "type": "Integer",
27479             "optional": true,
27480             "field": "keepalive",
27481             "description": ""
27482           },
27483           {
27484             "group": "Body",
27485             "type": "String",
27486             "optional": true,
27487             "field": "defaultip",
27488             "description": ""
27489           },
27490           {
27491             "group": "Body",
27492             "type": "String",
27493             "optional": true,
27494             "field": "defaultuser",
27495             "description": ""
27496           },
27497           {
27498             "group": "Body",
27499             "type": "Integer",
27500             "optional": true,
27501             "field": "rtptimeout",
27502             "description": ""
27503           },
27504           {
27505             "group": "Body",
27506             "type": "Integer",
27507             "optional": true,
27508             "field": "rtpholdtimeout",
27509             "description": ""
27510           },
27511           {
27512             "group": "Body",
27513             "type": "Integer",
27514             "optional": true,
27515             "field": "rtpkeepalive",
27516             "description": ""
27517           },
27518           {
27519             "group": "Body",
27520             "type": "String",
27521             "allowedValues": [
27522               "\"yes\"",
27523               "\"no\"",
27524               "\"pai\""
27525             ],
27526             "optional": true,
27527             "field": "sendrpid",
27528             "description": ""
27529           },
27530           {
27531             "group": "Body",
27532             "type": "String",
27533             "optional": true,
27534             "field": "outboundproxy",
27535             "description": ""
27536           },
27537           {
27538             "group": "Body",
27539             "type": "String",
27540             "optional": true,
27541             "field": "callbackextension",
27542             "description": ""
27543           },
27544           {
27545             "group": "Body",
27546             "type": "Integer",
27547             "optional": true,
27548             "field": "timert1",
27549             "description": ""
27550           },
27551           {
27552             "group": "Body",
27553             "type": "Integer",
27554             "optional": true,
27555             "field": "timerb",
27556             "description": ""
27557           },
27558           {
27559             "group": "Body",
27560             "type": "Integer",
27561             "optional": true,
27562             "field": "qualifyfreq",
27563             "description": ""
27564           },
27565           {
27566             "group": "Body",
27567             "type": "String",
27568             "optional": true,
27569             "field": "contactpermit",
27570             "description": ""
27571           },
27572           {
27573             "group": "Body",
27574             "type": "String",
27575             "optional": true,
27576             "field": "contactdeny",
27577             "description": ""
27578           },
27579           {
27580             "group": "Body",
27581             "type": "String",
27582             "optional": true,
27583             "field": "contactacl",
27584             "description": ""
27585           },
27586           {
27587             "group": "Body",
27588             "type": "String",
27589             "optional": true,
27590             "field": "unsolicited_mailbox",
27591             "description": ""
27592           },
27593           {
27594             "group": "Body",
27595             "type": "String",
27596             "optional": true,
27597             "field": "use_q850_reason",
27598             "description": ""
27599           },
27600           {
27601             "group": "Body",
27602             "type": "Integer",
27603             "optional": true,
27604             "field": "maxforwards",
27605             "description": ""
27606           },
27607           {
27608             "group": "Body",
27609             "type": "String",
27610             "allowedValues": [
27611               "\"yes\"",
27612               "\"no\""
27613             ],
27614             "optional": true,
27615             "field": "encryption",
27616             "description": ""
27617           },
27618           {
27619             "group": "Body",
27620             "type": "String",
27621             "allowedValues": [
27622               "\"yes\"",
27623               "\"no\""
27624             ],
27625             "optional": true,
27626             "field": "avpf",
27627             "description": ""
27628           },
27629           {
27630             "group": "Body",
27631             "type": "String",
27632             "allowedValues": [
27633               "\"yes\"",
27634               "\"no\""
27635             ],
27636             "optional": true,
27637             "field": "force_avp",
27638             "description": ""
27639           },
27640           {
27641             "group": "Body",
27642             "type": "String",
27643             "allowedValues": [
27644               "\"yes\"",
27645               "\"no\""
27646             ],
27647             "optional": true,
27648             "field": "icesupport",
27649             "description": ""
27650           },
27651           {
27652             "group": "Body",
27653             "type": "String",
27654             "allowedValues": [
27655               "\"yes\"",
27656               "\"no\""
27657             ],
27658             "optional": true,
27659             "field": "dtlsenable",
27660             "description": ""
27661           },
27662           {
27663             "group": "Body",
27664             "type": "String",
27665             "allowedValues": [
27666               "\"yes\"",
27667               "\"no\"",
27668               "\"fingerprint\"",
27669               "\"certificate\""
27670             ],
27671             "optional": true,
27672             "field": "dtlsverify",
27673             "description": ""
27674           },
27675           {
27676             "group": "Body",
27677             "type": "Integer",
27678             "optional": true,
27679             "field": "dtlsrekey",
27680             "description": ""
27681           },
27682           {
27683             "group": "Body",
27684             "type": "String",
27685             "optional": true,
27686             "field": "dtlscertfile",
27687             "description": ""
27688           },
27689           {
27690             "group": "Body",
27691             "type": "String",
27692             "optional": true,
27693             "field": "dtlsprivatekey",
27694             "description": ""
27695           },
27696           {
27697             "group": "Body",
27698             "type": "String",
27699             "optional": true,
27700             "field": "dtlscipher",
27701             "description": ""
27702           },
27703           {
27704             "group": "Body",
27705             "type": "String",
27706             "optional": true,
27707             "field": "dtlscafile",
27708             "description": ""
27709           },
27710           {
27711             "group": "Body",
27712             "type": "String",
27713             "optional": true,
27714             "field": "dtlscapath",
27715             "description": ""
27716           },
27717           {
27718             "group": "Body",
27719             "type": "String",
27720             "allowedValues": [
27721               "\"active\"",
27722               "\"passive\"",
27723               "\"actpass\""
27724             ],
27725             "optional": true,
27726             "field": "dtlssetup",
27727             "description": ""
27728           },
27729           {
27730             "group": "Body",
27731             "type": "String",
27732             "optional": true,
27733             "field": "dtlsfingerprint",
27734             "description": ""
27735           },
27736           {
27737             "group": "Body",
27738             "type": "String",
27739             "allowedValues": [
27740               "\"yes\"",
27741               "\"no\""
27742             ],
27743             "optional": true,
27744             "field": "usereqphone",
27745             "description": ""
27746           },
27747           {
27748             "group": "Body",
27749             "type": "String",
27750             "optional": true,
27751             "field": "recordonfeature",
27752             "description": ""
27753           },
27754           {
27755             "group": "Body",
27756             "type": "String",
27757             "optional": true,
27758             "field": "recordofffeature",
27759             "description": ""
27760           },
27761           {
27762             "group": "Body",
27763             "type": "Integer",
27764             "optional": true,
27765             "field": "call_limit",
27766             "description": ""
27767           },
27768           {
27769             "group": "Body",
27770             "type": "String",
27771             "allowedValues": [
27772               "\"yes\"",
27773               "\"no\""
27774             ],
27775             "optional": true,
27776             "field": "registertrying",
27777             "description": ""
27778           },
27779           {
27780             "group": "Body",
27781             "type": "String",
27782             "allowedValues": [
27783               "\"yes\"",
27784               "\"no\""
27785             ],
27786             "optional": true,
27787             "field": "subscribemwi",
27788             "description": ""
27789           },
27790           {
27791             "group": "Body",
27792             "type": "String",
27793             "optional": true,
27794             "field": "vmexten",
27795             "description": ""
27796           },
27797           {
27798             "group": "Body",
27799             "type": "String",
27800             "optional": true,
27801             "field": "mohinterpret",
27802             "description": ""
27803           },
27804           {
27805             "group": "Body",
27806             "type": "String",
27807             "optional": true,
27808             "field": "mohsuggest",
27809             "description": ""
27810           },
27811           {
27812             "group": "Body",
27813             "type": "String",
27814             "optional": true,
27815             "field": "parkinglot",
27816             "description": ""
27817           },
27818           {
27819             "group": "Body",
27820             "type": "String",
27821             "optional": true,
27822             "field": "description",
27823             "description": ""
27824           },
27825           {
27826             "group": "Body",
27827             "type": "String",
27828             "optional": true,
27829             "field": "host",
27830             "description": ""
27831           },
27832           {
27833             "group": "Body",
27834             "type": "String",
27835             "allowedValues": [
27836               "\"yes\"",
27837               "\"no\"",
27838               "\"nonat\"",
27839               "\"update\"",
27840               "\"update,nonat\""
27841             ],
27842             "optional": true,
27843             "field": "canreinvite",
27844             "description": ""
27845           },
27846           {
27847             "group": "Body",
27848             "type": "String",
27849             "optional": true,
27850             "field": "registry",
27851             "description": ""
27852           },
27853           {
27854             "group": "Body",
27855             "type": "String",
27856             "optional": true,
27857             "field": "otherFields",
27858             "description": ""
27859           },
27860           {
27861             "group": "Body",
27862             "type": "Boolean",
27863             "optional": false,
27864             "field": "active",
27865             "description": ""
27866           },
27867           {
27868             "group": "Body",
27869             "type": "String",
27870             "optional": true,
27871             "field": "t38pt_udptl",
27872             "description": ""
27873           }
27874         ]
27875       }
27876     },
27877     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27878     "version": "0.0.0",
27879     "filename": "server/api/trunk/index.js",
27880     "groupTitle": "Trunks"
27881   },
27882   {
27883     "type": "delete",
27884     "url": "/api/trunks/{id}",
27885     "title": "Deletes a trunk",
27886     "examples": [
27887       {
27888         "title": "Example usage:",
27889         "content": "curl https://{domain}/api/trunks/{id} -v -u {name}:{password} -X DELETE",
27890         "type": "json"
27891       }
27892     ],
27893     "name": "Delete",
27894     "group": "Trunks",
27895     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27896     "version": "0.0.0",
27897     "filename": "server/api/trunk/index.js",
27898     "groupTitle": "Trunks"
27899   },
27900   {
27901     "type": "get",
27902     "url": "/api/trunks",
27903     "title": "Gets a list of Trunks",
27904     "examples": [
27905       {
27906         "title": "Example usage:",
27907         "content": "curl https://{domain}/api/trunks -v -u {name}:{password}",
27908         "type": "json"
27909       }
27910     ],
27911     "name": "GetTrunks",
27912     "group": "Trunks",
27913     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
27914     "version": "0.0.0",
27915     "filename": "server/api/trunk/index.js",
27916     "groupTitle": "Trunks"
27917   },
27918   {
27919     "type": "get",
27920     "url": "/api/trunks/{id}",
27921     "title": "Gets a single Trunk",
27922     "examples": [
27923       {
27924         "title": "Example usage:",
27925         "content": "curl https://{domain}/api/trunks/{id} -v -u {name}:{password}",
27926         "type": "json"
27927       }
27928     ],
27929     "name": "ShowTrunks",
27930     "group": "Trunks",
27931     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27932     "version": "0.0.0",
27933     "filename": "server/api/trunk/index.js",
27934     "groupTitle": "Trunks"
27935   },
27936   {
27937     "type": "put",
27938     "url": "/api/trunks/{id}",
27939     "title": "Update an existing trunk",
27940     "examples": [
27941       {
27942         "title": "Example usage:",
27943         "content": "curl https://{domain}/api/trunks/{id} -v -u {name}:{password} -X PUT",
27944         "type": "json"
27945       }
27946     ],
27947     "name": "Update",
27948     "group": "Trunks",
27949     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27950     "version": "0.0.0",
27951     "filename": "server/api/trunk/index.js",
27952     "groupTitle": "Trunks"
27953   },
27954   {
27955     "type": "post",
27956     "url": "/api/userNotifications",
27957     "title": "Send notification to user",
27958     "examples": [
27959       {
27960         "title": "Example usage:",
27961         "content": "curl https://{domain}/api/userNotifications -d '{\"text\": \"Hello!\", \"TemplateId\": 1}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
27962         "type": "json"
27963       }
27964     ],
27965     "name": "Send",
27966     "group": "UserNotifications",
27967     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27968     "version": "0.0.0",
27969     "filename": "server/api/userNotification/index.js",
27970     "groupTitle": "UserNotifications"
27971   },
27972   {
27973     "type": "post",
27974     "url": "/api/userProfile/resources",
27975     "title": "Creates a new User Profile Resource",
27976     "examples": [
27977       {
27978         "title": "Example usage:",
27979         "content": "curl https://{domain}/api/userProfile/resources -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
27980         "type": "json"
27981       }
27982     ],
27983     "name": "CreateUser_Profile_Resources",
27984     "group": "User_Profile_Resources",
27985     "parameter": {
27986       "fields": {
27987         "Body": [
27988           {
27989             "group": "Body",
27990             "type": "String",
27991             "optional": false,
27992             "field": "name",
27993             "description": ""
27994           },
27995           {
27996             "group": "Body",
27997             "type": "Integer",
27998             "optional": false,
27999             "field": "resourceId",
28000             "description": ""
28001           },
28002           {
28003             "group": "Body",
28004             "type": "String",
28005             "optional": false,
28006             "field": "type",
28007             "description": ""
28008           }
28009         ]
28010       }
28011     },
28012     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28013     "version": "0.0.0",
28014     "filename": "server/api/userProfileResource/index.js",
28015     "groupTitle": "User_Profile_Resources"
28016   },
28017   {
28018     "type": "delete",
28019     "url": "/api/userProfile/resources/{id}",
28020     "title": "Deletes a User Profile Resource",
28021     "examples": [
28022       {
28023         "title": "Example usage:",
28024         "content": "curl https://{domain}/api/userProfile/resources/{id} -v -u {name}:{password} -X DELETE",
28025         "type": "json"
28026       }
28027     ],
28028     "name": "DeleteUser_Profile_Resources",
28029     "group": "User_Profile_Resources",
28030     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28031     "version": "0.0.0",
28032     "filename": "server/api/userProfileResource/index.js",
28033     "groupTitle": "User_Profile_Resources"
28034   },
28035   {
28036     "type": "get",
28037     "url": "/api/userProfile/resources/describe",
28038     "title": "Gets table info about User Profile Resources",
28039     "examples": [
28040       {
28041         "title": "Example usage:",
28042         "content": "curl https://{domain}/api/userProfile/resources/describe -v -u {name}:{password}",
28043         "type": "json"
28044       }
28045     ],
28046     "name": "DescribeUser_Profile_Resources",
28047     "group": "User_Profile_Resources",
28048     "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>",
28049     "version": "0.0.0",
28050     "filename": "server/api/userProfileResource/index.js",
28051     "groupTitle": "User_Profile_Resources"
28052   },
28053   {
28054     "type": "get",
28055     "url": "/api/userProfile/resources",
28056     "title": "Gets a list of User Profile Resources",
28057     "examples": [
28058       {
28059         "title": "Example usage:",
28060         "content": "curl https://{domain}/api/userProfile/resources -v -u {name}:{password}",
28061         "type": "json"
28062       }
28063     ],
28064     "name": "GetUser_Profile_Resources",
28065     "group": "User_Profile_Resources",
28066     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
28067     "version": "0.0.0",
28068     "filename": "server/api/userProfileResource/index.js",
28069     "groupTitle": "User_Profile_Resources"
28070   },
28071   {
28072     "type": "get",
28073     "url": "/api/userProfile/resources/{id}",
28074     "title": "Gets a single User Profile Resource",
28075     "examples": [
28076       {
28077         "title": "Example usage:",
28078         "content": "curl https://{domain}/api/userProfile/resources/{id} -v -u {name}:{password}",
28079         "type": "json"
28080       }
28081     ],
28082     "name": "ShowUser_Profile_Resources",
28083     "group": "User_Profile_Resources",
28084     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28085     "version": "0.0.0",
28086     "filename": "server/api/userProfileResource/index.js",
28087     "groupTitle": "User_Profile_Resources"
28088   },
28089   {
28090     "type": "put",
28091     "url": "/api/userProfile/resources/{id}",
28092     "title": "Update an existing User Profile Resource",
28093     "examples": [
28094       {
28095         "title": "Example usage:",
28096         "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",
28097         "type": "json"
28098       }
28099     ],
28100     "name": "updateUser_Profile_Resources",
28101     "group": "User_Profile_Resources",
28102     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28103     "version": "0.0.0",
28104     "filename": "server/api/userProfileResource/index.js",
28105     "groupTitle": "User_Profile_Resources"
28106   },
28107   {
28108     "type": "post",
28109     "url": "/api/userProfile/sections",
28110     "title": "Creates a new User Profile Section",
28111     "examples": [
28112       {
28113         "title": "Example usage:",
28114         "content": "curl https://{domain}/api/userProfile/sections -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
28115         "type": "json"
28116       }
28117     ],
28118     "name": "CreateUser_Profile_Sections",
28119     "group": "User_Profile_Sections",
28120     "parameter": {
28121       "fields": {
28122         "Body": [
28123           {
28124             "group": "Body",
28125             "type": "String",
28126             "optional": false,
28127             "field": "name",
28128             "description": ""
28129           },
28130           {
28131             "group": "Body",
28132             "type": "String",
28133             "optional": false,
28134             "field": "category",
28135             "description": ""
28136           },
28137           {
28138             "group": "Body",
28139             "type": "Integer",
28140             "optional": false,
28141             "field": "sectionId",
28142             "description": ""
28143           },
28144           {
28145             "group": "Body",
28146             "type": "Boolean",
28147             "optional": true,
28148             "field": "enabled",
28149             "description": ""
28150           },
28151           {
28152             "group": "Body",
28153             "type": "Boolean",
28154             "optional": true,
28155             "field": "autoAssociation",
28156             "description": ""
28157           },
28158           {
28159             "group": "Body",
28160             "type": "String",
28161             "optional": true,
28162             "field": "crudPermissions",
28163             "description": ""
28164           }
28165         ]
28166       }
28167     },
28168     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28169     "version": "0.0.0",
28170     "filename": "server/api/userProfileSection/index.js",
28171     "groupTitle": "User_Profile_Sections"
28172   },
28173   {
28174     "type": "delete",
28175     "url": "/api/userProfile/sections/{id}",
28176     "title": "Deletes a User Profile Section",
28177     "examples": [
28178       {
28179         "title": "Example usage:",
28180         "content": "curl https://{domain}/api/userProfile/sections/{id} -v -u {name}:{password} -X DELETE",
28181         "type": "json"
28182       }
28183     ],
28184     "name": "DeleteUser_Profile_Sections",
28185     "group": "User_Profile_Sections",
28186     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28187     "version": "0.0.0",
28188     "filename": "server/api/userProfileSection/index.js",
28189     "groupTitle": "User_Profile_Sections"
28190   },
28191   {
28192     "type": "get",
28193     "url": "/api/userProfile/sections/describe",
28194     "title": "Gets table info about User Profile Sections",
28195     "examples": [
28196       {
28197         "title": "Example usage:",
28198         "content": "curl https://{domain}/api/userProfile/sections/describe -v -u {name}:{password}",
28199         "type": "json"
28200       }
28201     ],
28202     "name": "DescribeUser_Profile_Sections",
28203     "group": "User_Profile_Sections",
28204     "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>",
28205     "version": "0.0.0",
28206     "filename": "server/api/userProfileSection/index.js",
28207     "groupTitle": "User_Profile_Sections"
28208   },
28209   {
28210     "type": "get",
28211     "url": "/api/userProfile/sections",
28212     "title": "Gets a list of User Profile Sections",
28213     "examples": [
28214       {
28215         "title": "Example usage:",
28216         "content": "curl https://{domain}/api/userProfile/sections -v -u {name}:{password}",
28217         "type": "json"
28218       }
28219     ],
28220     "name": "GetUser_Profile_Sections",
28221     "group": "User_Profile_Sections",
28222     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
28223     "version": "0.0.0",
28224     "filename": "server/api/userProfileSection/index.js",
28225     "groupTitle": "User_Profile_Sections"
28226   },
28227   {
28228     "type": "get",
28229     "url": "/api/userProfile/sections/{id}",
28230     "title": "Gets a single User Profile Section",
28231     "examples": [
28232       {
28233         "title": "Example usage:",
28234         "content": "curl https://{domain}/api/userProfile/sections/{id} -v -u {name}:{password}",
28235         "type": "json"
28236       }
28237     ],
28238     "name": "ShowUser_Profile_Sections",
28239     "group": "User_Profile_Sections",
28240     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28241     "version": "0.0.0",
28242     "filename": "server/api/userProfileSection/index.js",
28243     "groupTitle": "User_Profile_Sections"
28244   },
28245   {
28246     "type": "put",
28247     "url": "/api/userProfile/sections/{id}",
28248     "title": "Update an existing User Profile Section",
28249     "examples": [
28250       {
28251         "title": "Example usage:",
28252         "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",
28253         "type": "json"
28254       }
28255     ],
28256     "name": "updateUser_Profile_Sections",
28257     "group": "User_Profile_Sections",
28258     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28259     "version": "0.0.0",
28260     "filename": "server/api/userProfileSection/index.js",
28261     "groupTitle": "User_Profile_Sections"
28262   },
28263   {
28264     "type": "post",
28265     "url": "/api/userProfiles/{id}/resources",
28266     "title": "Add resources' permissions to User Profile",
28267     "examples": [
28268       {
28269         "title": "Example usage:",
28270         "content": "curl https://{domain}/api/userProfiles/{id}/resources -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
28271         "type": "json"
28272       }
28273     ],
28274     "name": "AddResources",
28275     "group": "User_Profiles",
28276     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28277     "version": "0.0.0",
28278     "filename": "server/api/userProfile/index.js",
28279     "groupTitle": "User_Profiles"
28280   },
28281   {
28282     "type": "post",
28283     "url": "/api/userProfiles/{id}/sections",
28284     "title": "Add sections' permissions to User Profile",
28285     "examples": [
28286       {
28287         "title": "Example usage:",
28288         "content": "curl https://{domain}/api/userProfiles/{id}/sections -d '[{\"sectionId\": \"name\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
28289         "type": "json"
28290       }
28291     ],
28292     "name": "AddSections",
28293     "group": "User_Profiles",
28294     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28295     "version": "0.0.0",
28296     "filename": "server/api/userProfile/index.js",
28297     "groupTitle": "User_Profiles"
28298   },
28299   {
28300     "type": "post",
28301     "url": "/api/userProfiles/clone",
28302     "title": "Clone an existing User Profile",
28303     "examples": [
28304       {
28305         "title": "Example usage:",
28306         "content": "curl https://{domain}/api/userProfiles/clone -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
28307         "type": "json"
28308       }
28309     ],
28310     "name": "CloneUser_Profiles",
28311     "group": "User_Profiles",
28312     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28313     "version": "0.0.0",
28314     "filename": "server/api/userProfile/index.js",
28315     "groupTitle": "User_Profiles"
28316   },
28317   {
28318     "type": "post",
28319     "url": "/api/userProfiles",
28320     "title": "Creates a new User Profile",
28321     "examples": [
28322       {
28323         "title": "Example usage:",
28324         "content": "curl https://{domain}/api/userProfiles -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
28325         "type": "json"
28326       }
28327     ],
28328     "name": "CreateUser_Profiles",
28329     "group": "User_Profiles",
28330     "parameter": {
28331       "fields": {
28332         "Body": [
28333           {
28334             "group": "Body",
28335             "type": "String",
28336             "optional": false,
28337             "field": "name",
28338             "description": ""
28339           },
28340           {
28341             "group": "Body",
28342             "type": "String",
28343             "optional": false,
28344             "field": "crudPermissions",
28345             "description": ""
28346           },
28347           {
28348             "group": "Body",
28349             "type": "String",
28350             "optional": true,
28351             "field": "description",
28352             "description": ""
28353           },
28354           {
28355             "group": "Body",
28356             "type": "Boolean",
28357             "optional": true,
28358             "field": "privacyEnabled",
28359             "description": ""
28360           },
28361           {
28362             "group": "Body",
28363             "type": "Boolean",
28364             "optional": true,
28365             "field": "downloadAttachments",
28366             "description": ""
28367           },
28368           {
28369             "group": "Body",
28370             "type": "Boolean",
28371             "optional": true,
28372             "field": "downloadCallySquareRecordings",
28373             "description": ""
28374           },
28375           {
28376             "group": "Body",
28377             "type": "Boolean",
28378             "optional": true,
28379             "field": "downloadContactManagerLists",
28380             "description": ""
28381           },
28382           {
28383             "group": "Body",
28384             "type": "Boolean",
28385             "optional": true,
28386             "field": "downloadJscriptySessions",
28387             "description": ""
28388           },
28389           {
28390             "group": "Body",
28391             "type": "Boolean",
28392             "optional": true,
28393             "field": "downloadOmnichannelInteractions",
28394             "description": ""
28395           },
28396           {
28397             "group": "Body",
28398             "type": "Boolean",
28399             "optional": true,
28400             "field": "downloadScreenRecordings",
28401             "description": ""
28402           },
28403           {
28404             "group": "Body",
28405             "type": "Boolean",
28406             "optional": true,
28407             "field": "downloadVoiceRecordings",
28408             "description": ""
28409           }
28410         ]
28411       }
28412     },
28413     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28414     "version": "0.0.0",
28415     "filename": "server/api/userProfile/index.js",
28416     "groupTitle": "User_Profiles"
28417   },
28418   {
28419     "type": "delete",
28420     "url": "/api/userProfiles/{id}",
28421     "title": "Deletes a User Profile",
28422     "examples": [
28423       {
28424         "title": "Example usage:",
28425         "content": "curl https://{domain}/api/userProfiles/{id} -v -u {name}:{password} -X DELETE",
28426         "type": "json"
28427       }
28428     ],
28429     "name": "DeleteUser_Profiles",
28430     "group": "User_Profiles",
28431     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28432     "version": "0.0.0",
28433     "filename": "server/api/userProfile/index.js",
28434     "groupTitle": "User_Profiles"
28435   },
28436   {
28437     "type": "get",
28438     "url": "/api/userProfiles/describe",
28439     "title": "Gets table info about User Profiles",
28440     "examples": [
28441       {
28442         "title": "Example usage:",
28443         "content": "curl https://{domain}/api/userProfiles/describe -v -u {name}:{password}",
28444         "type": "json"
28445       }
28446     ],
28447     "name": "DescribeUser_Profiles",
28448     "group": "User_Profiles",
28449     "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>",
28450     "version": "0.0.0",
28451     "filename": "server/api/userProfile/index.js",
28452     "groupTitle": "User_Profiles"
28453   },
28454   {
28455     "type": "get",
28456     "url": "/api/userProfiles/{id}/resources?section={section}",
28457     "title": "Get Resources assigned to a Section",
28458     "examples": [
28459       {
28460         "title": "Example usage:",
28461         "content": "curl https://{domain}/api/userProfiles/{id}/resources?section={section} -v -u {name}:{password} -X GET",
28462         "type": "json"
28463       }
28464     ],
28465     "name": "GetResources",
28466     "group": "User_Profiles",
28467     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28468     "version": "0.0.0",
28469     "filename": "server/api/userProfile/index.js",
28470     "groupTitle": "User_Profiles"
28471   },
28472   {
28473     "type": "get",
28474     "url": "/api/userProfiles/{id}/sections",
28475     "title": "Get sections associated to a User Profile",
28476     "examples": [
28477       {
28478         "title": "Example usage:",
28479         "content": "curl https://{domain}/api/userProfiles/{id}/sections -v -u {name}:{password} -X GET",
28480         "type": "json"
28481       }
28482     ],
28483     "name": "GetSections",
28484     "group": "User_Profiles",
28485     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28486     "version": "0.0.0",
28487     "filename": "server/api/userProfile/index.js",
28488     "groupTitle": "User_Profiles"
28489   },
28490   {
28491     "type": "get",
28492     "url": "/api/userProfiles",
28493     "title": "Gets a list of User Profiles",
28494     "examples": [
28495       {
28496         "title": "Example usage:",
28497         "content": "curl https://{domain}/api/userProfiles -v -u {name}:{password}",
28498         "type": "json"
28499       }
28500     ],
28501     "name": "GetUser_Profiles",
28502     "group": "User_Profiles",
28503     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
28504     "version": "0.0.0",
28505     "filename": "server/api/userProfile/index.js",
28506     "groupTitle": "User_Profiles"
28507   },
28508   {
28509     "type": "delete",
28510     "url": "/api/userProfiles/{id}/resources",
28511     "title": "Removes resources' permissions from User Profile",
28512     "examples": [
28513       {
28514         "title": "Example usage:",
28515         "content": "curl https://{domain}/api/userProfiles/{id}/resources?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
28516         "type": "json"
28517       }
28518     ],
28519     "name": "RemoveResources",
28520     "group": "User_Profiles",
28521     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28522     "version": "0.0.0",
28523     "filename": "server/api/userProfile/index.js",
28524     "groupTitle": "User_Profiles"
28525   },
28526   {
28527     "type": "delete",
28528     "url": "/api/userProfiles/{id}/sections",
28529     "title": "Removes sections' permissions from User Profile",
28530     "examples": [
28531       {
28532         "title": "Example usage:",
28533         "content": "curl https://{domain}/api/userProfiles/{id}/sections?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
28534         "type": "json"
28535       }
28536     ],
28537     "name": "RemoveSections",
28538     "group": "User_Profiles",
28539     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28540     "version": "0.0.0",
28541     "filename": "server/api/userProfile/index.js",
28542     "groupTitle": "User_Profiles"
28543   },
28544   {
28545     "type": "get",
28546     "url": "/api/userProfiles/{id}",
28547     "title": "Gets a single User Profile",
28548     "examples": [
28549       {
28550         "title": "Example usage:",
28551         "content": "curl https://{domain}/api/userProfiles/{id} -v -u {name}:{password}",
28552         "type": "json"
28553       }
28554     ],
28555     "name": "ShowUser_Profiles",
28556     "group": "User_Profiles",
28557     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28558     "version": "0.0.0",
28559     "filename": "server/api/userProfile/index.js",
28560     "groupTitle": "User_Profiles"
28561   },
28562   {
28563     "type": "put",
28564     "url": "/api/userProfiles/{id}",
28565     "title": "Update an existing User Profile",
28566     "examples": [
28567       {
28568         "title": "Example usage:",
28569         "content": "curl https://{domain}/api/userProfiles/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
28570         "type": "json"
28571       }
28572     ],
28573     "name": "updateUser_Profiles",
28574     "group": "User_Profiles",
28575     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28576     "version": "0.0.0",
28577     "filename": "server/api/userProfile/index.js",
28578     "groupTitle": "User_Profiles"
28579   },
28580   {
28581     "type": "post",
28582     "url": "/api/users/{id}/chat_interactions",
28583     "title": "Add chat interaction tabs to an agent",
28584     "examples": [
28585       {
28586         "title": "Example usage:",
28587         "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",
28588         "type": "json"
28589       }
28590     ],
28591     "name": "AddChatInteractions",
28592     "group": "Users",
28593     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28594     "version": "0.0.0",
28595     "filename": "server/api/user/index.js",
28596     "groupTitle": "Users"
28597   },
28598   {
28599     "type": "post",
28600     "url": "/api/users/{id}/chat_websites",
28601     "title": "Add a Chat Website to a user",
28602     "examples": [
28603       {
28604         "title": "Example usage:",
28605         "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",
28606         "type": "json"
28607       }
28608     ],
28609     "name": "AddChatWebsites",
28610     "group": "Users",
28611     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28612     "version": "0.0.0",
28613     "filename": "server/api/user/index.js",
28614     "groupTitle": "Users"
28615   },
28616   {
28617     "type": "post",
28618     "url": "/api/users/{id}/contacts",
28619     "title": "Add contacts to a user",
28620     "examples": [
28621       {
28622         "title": "Example usage:",
28623         "content": "curl https://{domain}/api/users/{id}/contacts -d '{\"ids\": [1,2]}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
28624         "type": "json"
28625       }
28626     ],
28627     "name": "AddContacts",
28628     "group": "Users",
28629     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28630     "version": "0.0.0",
28631     "filename": "server/api/user/index.js",
28632     "groupTitle": "Users"
28633   },
28634   {
28635     "type": "post",
28636     "url": "/api/users/{id}/fax_accounts",
28637     "title": "Add a Fax Account to a user",
28638     "examples": [
28639       {
28640         "title": "Example usage:",
28641         "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",
28642         "type": "json"
28643       }
28644     ],
28645     "name": "AddFaxAccounts",
28646     "group": "Users",
28647     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28648     "version": "0.0.0",
28649     "filename": "server/api/user/index.js",
28650     "groupTitle": "Users"
28651   },
28652   {
28653     "type": "post",
28654     "url": "/api/users/{id}/fax_interactions",
28655     "title": "Add fax interaction tabs to an agent",
28656     "examples": [
28657       {
28658         "title": "Example usage:",
28659         "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",
28660         "type": "json"
28661       }
28662     ],
28663     "name": "AddFaxInteractions",
28664     "group": "Users",
28665     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28666     "version": "0.0.0",
28667     "filename": "server/api/user/index.js",
28668     "groupTitle": "Users"
28669   },
28670   {
28671     "type": "post",
28672     "url": "/api/users/{id}/mail_accounts",
28673     "title": "Add a Mail Account to a user",
28674     "examples": [
28675       {
28676         "title": "Example usage:",
28677         "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",
28678         "type": "json"
28679       }
28680     ],
28681     "name": "AddMailAccounts",
28682     "group": "Users",
28683     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28684     "version": "0.0.0",
28685     "filename": "server/api/user/index.js",
28686     "groupTitle": "Users"
28687   },
28688   {
28689     "type": "post",
28690     "url": "/api/users/{id}/mail_interactions",
28691     "title": "Add mail interaction tabs to an agent",
28692     "examples": [
28693       {
28694         "title": "Example usage:",
28695         "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",
28696         "type": "json"
28697       }
28698     ],
28699     "name": "AddMailInteractions",
28700     "group": "Users",
28701     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28702     "version": "0.0.0",
28703     "filename": "server/api/user/index.js",
28704     "groupTitle": "Users"
28705   },
28706   {
28707     "type": "post",
28708     "url": "/api/users/{id}/openchannel_accounts",
28709     "title": "Add a Open Channel Account to a user",
28710     "examples": [
28711       {
28712         "title": "Example usage:",
28713         "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",
28714         "type": "json"
28715       }
28716     ],
28717     "name": "AddOpenchannelAccounts",
28718     "group": "Users",
28719     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28720     "version": "0.0.0",
28721     "filename": "server/api/user/index.js",
28722     "groupTitle": "Users"
28723   },
28724   {
28725     "type": "post",
28726     "url": "/api/users/{id}/openchannel_interactions",
28727     "title": "Add openchannel interaction tabs to an agent",
28728     "examples": [
28729       {
28730         "title": "Example usage:",
28731         "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",
28732         "type": "json"
28733       }
28734     ],
28735     "name": "AddOpenchannelInteractions",
28736     "group": "Users",
28737     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28738     "version": "0.0.0",
28739     "filename": "server/api/user/index.js",
28740     "groupTitle": "Users"
28741   },
28742   {
28743     "type": "post",
28744     "url": "/api/users/{id}/queues",
28745     "title": "Add queues to an agent",
28746     "examples": [
28747       {
28748         "title": "Example usage:",
28749         "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",
28750         "type": "json"
28751       }
28752     ],
28753     "name": "AddQueues",
28754     "group": "Users",
28755     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28756     "version": "0.0.0",
28757     "filename": "server/api/user/index.js",
28758     "groupTitle": "Users"
28759   },
28760   {
28761     "type": "post",
28762     "url": "/api/users/{id}/sms_accounts",
28763     "title": "Add a Sms Account to a user",
28764     "examples": [
28765       {
28766         "title": "Example usage:",
28767         "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",
28768         "type": "json"
28769       }
28770     ],
28771     "name": "AddSmsAccounts",
28772     "group": "Users",
28773     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28774     "version": "0.0.0",
28775     "filename": "server/api/user/index.js",
28776     "groupTitle": "Users"
28777   },
28778   {
28779     "type": "post",
28780     "url": "/api/users/{id}/sms_interactions",
28781     "title": "Add sms interaction tabs to an agent",
28782     "examples": [
28783       {
28784         "title": "Example usage:",
28785         "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",
28786         "type": "json"
28787       }
28788     ],
28789     "name": "AddSmsInteractions",
28790     "group": "Users",
28791     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28792     "version": "0.0.0",
28793     "filename": "server/api/user/index.js",
28794     "groupTitle": "Users"
28795   },
28796   {
28797     "type": "post",
28798     "url": "/api/users/{id}/square_projects",
28799     "title": "Add a Square Project to a user",
28800     "examples": [
28801       {
28802         "title": "Example usage:",
28803         "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",
28804         "type": "json"
28805       }
28806     ],
28807     "name": "AddSquareProjects",
28808     "group": "Users",
28809     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28810     "version": "0.0.0",
28811     "filename": "server/api/user/index.js",
28812     "groupTitle": "Users"
28813   },
28814   {
28815     "type": "post",
28816     "url": "/api/users/{id}/teams",
28817     "title": "Add teams to an agent",
28818     "examples": [
28819       {
28820         "title": "Example usage:",
28821         "content": "curl https://{domain}/api/users/{id}/teams -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
28822         "type": "json"
28823       }
28824     ],
28825     "name": "AddTeams",
28826     "group": "Users",
28827     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28828     "version": "0.0.0",
28829     "filename": "server/api/user/index.js",
28830     "groupTitle": "Users"
28831   },
28832   {
28833     "type": "post",
28834     "url": "/api/users/{id}/whatsapp_accounts",
28835     "title": "Add a Whatsapp Account to a user",
28836     "examples": [
28837       {
28838         "title": "Example usage:",
28839         "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",
28840         "type": "json"
28841       }
28842     ],
28843     "name": "AddWhatsappAccounts",
28844     "group": "Users",
28845     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28846     "version": "0.0.0",
28847     "filename": "server/api/user/index.js",
28848     "groupTitle": "Users"
28849   },
28850   {
28851     "type": "post",
28852     "url": "/api/users/{id}/whatsapp_interactions",
28853     "title": "Add Whatsapp interaction tabs to an agent",
28854     "examples": [
28855       {
28856         "title": "Example usage:",
28857         "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",
28858         "type": "json"
28859       }
28860     ],
28861     "name": "AddWhatsappInteractions",
28862     "group": "Users",
28863     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28864     "version": "0.0.0",
28865     "filename": "server/api/user/index.js",
28866     "groupTitle": "Users"
28867   },
28868   {
28869     "type": "put",
28870     "url": "/api/users/{id}/password",
28871     "title": "Change user password",
28872     "examples": [
28873       {
28874         "title": "Example usage:",
28875         "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",
28876         "type": "json"
28877       }
28878     ],
28879     "name": "ChangePwd",
28880     "group": "Users",
28881     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28882     "version": "0.0.0",
28883     "filename": "server/api/user/index.js",
28884     "groupTitle": "Users"
28885   },
28886   {
28887     "type": "post",
28888     "url": "/api/users",
28889     "title": "Create a new user",
28890     "examples": [
28891       {
28892         "title": "Example usage:",
28893         "content": "curl https://{domain}/api/users -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
28894         "type": "json"
28895       }
28896     ],
28897     "name": "Create",
28898     "group": "Users",
28899     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28900     "version": "0.0.0",
28901     "filename": "server/api/user/index.js",
28902     "groupTitle": "Users"
28903   },
28904   {
28905     "type": "post",
28906     "url": "/api/users/{id}/api_key",
28907     "title": "Create a new API access key for the user",
28908     "examples": [
28909       {
28910         "title": "Example usage:",
28911         "content": "curl https://{domain}/api/users/:id/api_key -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
28912         "type": "json"
28913       }
28914     ],
28915     "name": "CreateApiKey",
28916     "group": "Users",
28917     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28918     "version": "0.0.0",
28919     "filename": "server/api/user/index.js",
28920     "groupTitle": "Users"
28921   },
28922   {
28923     "type": "delete",
28924     "url": "/api/users/{id}",
28925     "title": "Deletes a user",
28926     "examples": [
28927       {
28928         "title": "Example usage:",
28929         "content": "curl https://{domain}/api/users/{id} -v -u {name}:{password} -X DELETE",
28930         "type": "json"
28931       }
28932     ],
28933     "name": "Delete",
28934     "group": "Users",
28935     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28936     "version": "0.0.0",
28937     "filename": "server/api/user/index.js",
28938     "groupTitle": "Users"
28939   },
28940   {
28941     "type": "get",
28942     "url": "/api/users/describe",
28943     "title": "Gets table info about Users",
28944     "examples": [
28945       {
28946         "title": "Example usage:",
28947         "content": "curl https://{domain}/api/users/describe -v -u {name}:{password}",
28948         "type": "json"
28949       }
28950     ],
28951     "name": "DescribeUsers",
28952     "group": "Users",
28953     "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>",
28954     "version": "0.0.0",
28955     "filename": "server/api/user/index.js",
28956     "groupTitle": "Users"
28957   },
28958   {
28959     "type": "get",
28960     "url": "/api/users/{id}/agents",
28961     "title": "GetAgents",
28962     "examples": [
28963       {
28964         "title": "Example usage:",
28965         "content": "curl https://{domain}/api/users/{id}/agents -v -u {name}:{password} -X GET",
28966         "type": "json"
28967       }
28968     ],
28969     "name": "GetAgents",
28970     "group": "Users",
28971     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28972     "version": "0.0.0",
28973     "filename": "server/api/user/index.js",
28974     "groupTitle": "Users"
28975   },
28976   {
28977     "type": "get",
28978     "url": "/api/users/{id}/api_key",
28979     "title": "Get the API access key for the user",
28980     "examples": [
28981       {
28982         "title": "Example usage:",
28983         "content": "curl https://{domain}/api/users/:id/api_key -v -u {name}:{password} -X GET",
28984         "type": "json"
28985       }
28986     ],
28987     "name": "GetApiKey",
28988     "group": "Users",
28989     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
28990     "version": "0.0.0",
28991     "filename": "server/api/user/index.js",
28992     "groupTitle": "Users"
28993   },
28994   {
28995     "type": "get",
28996     "url": "/api/users/{id}/groups",
28997     "title": "GetChatGroups",
28998     "examples": [
28999       {
29000         "title": "Example usage:",
29001         "content": "curl https://{domain}/api/users/{id}/groups -v -u {name}:{password} -X GET",
29002         "type": "json"
29003       }
29004     ],
29005     "name": "GetChatGroups",
29006     "group": "Users",
29007     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29008     "version": "0.0.0",
29009     "filename": "server/api/user/index.js",
29010     "groupTitle": "Users"
29011   },
29012   {
29013     "type": "get",
29014     "url": "/api/users/{id}/chat/interactions",
29015     "title": "GetChatInteractions",
29016     "examples": [
29017       {
29018         "title": "Example usage:",
29019         "content": "curl https://{domain}/api/users/{id}/chat/interactions -v -u {name}:{password} -X GET",
29020         "type": "json"
29021       }
29022     ],
29023     "name": "GetChatInteractions",
29024     "group": "Users",
29025     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29026     "version": "0.0.0",
29027     "filename": "server/api/user/index.js",
29028     "groupTitle": "Users"
29029   },
29030   {
29031     "type": "get",
29032     "url": "/api/users/{id}/chat_websites",
29033     "title": "GetChatWebsites",
29034     "examples": [
29035       {
29036         "title": "Example usage:",
29037         "content": "curl https://{domain}/api/users/{id}/chat_websites -v -u {name}:{password} -X GET",
29038         "type": "json"
29039       }
29040     ],
29041     "name": "GetChatWebsites",
29042     "group": "Users",
29043     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29044     "version": "0.0.0",
29045     "filename": "server/api/user/index.js",
29046     "groupTitle": "Users"
29047   },
29048   {
29049     "type": "get",
29050     "url": "/api/users/{id}/contacts",
29051     "title": "GetContacts",
29052     "examples": [
29053       {
29054         "title": "Example usage:",
29055         "content": "curl https://{domain}/api/users/{id}/contacts -v -u {name}:{password} -X GET",
29056         "type": "json"
29057       }
29058     ],
29059     "name": "GetContacts",
29060     "group": "Users",
29061     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29062     "version": "0.0.0",
29063     "filename": "server/api/user/index.js",
29064     "groupTitle": "Users"
29065   },
29066   {
29067     "type": "get",
29068     "url": "/api/users/{id}/fax_accounts",
29069     "title": "GetFaxAccounts",
29070     "examples": [
29071       {
29072         "title": "Example usage:",
29073         "content": "curl https://{domain}/api/users/{id}/fax_accounts -v -u {name}:{password} -X GET",
29074         "type": "json"
29075       }
29076     ],
29077     "name": "GetFaxAccounts",
29078     "group": "Users",
29079     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29080     "version": "0.0.0",
29081     "filename": "server/api/user/index.js",
29082     "groupTitle": "Users"
29083   },
29084   {
29085     "type": "get",
29086     "url": "/api/users/{id}/fax/interactions",
29087     "title": "GetFaxInteractions",
29088     "examples": [
29089       {
29090         "title": "Example usage:",
29091         "content": "curl https://{domain}/api/users/{id}/fax/interactions -v -u {name}:{password} -X GET",
29092         "type": "json"
29093       }
29094     ],
29095     "name": "GetFaxInteractions",
29096     "group": "Users",
29097     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29098     "version": "0.0.0",
29099     "filename": "server/api/user/index.js",
29100     "groupTitle": "Users"
29101   },
29102   {
29103     "type": "get",
29104     "url": "/api/users/{id}/lists",
29105     "title": "GetLists",
29106     "examples": [
29107       {
29108         "title": "Example usage:",
29109         "content": "curl https://{domain}/api/users/{id}/lists -v -u {name}:{password} -X GET",
29110         "type": "json"
29111       }
29112     ],
29113     "name": "GetLists",
29114     "group": "Users",
29115     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <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/user/index.js",
29118     "groupTitle": "Users"
29119   },
29120   {
29121     "type": "get",
29122     "url": "/api/users/{id}/mail_accounts",
29123     "title": "GetMailAccounts",
29124     "examples": [
29125       {
29126         "title": "Example usage:",
29127         "content": "curl https://{domain}/api/users/{id}/mail_accounts -v -u {name}:{password} -X GET",
29128         "type": "json"
29129       }
29130     ],
29131     "name": "GetMailAccounts",
29132     "group": "Users",
29133     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29134     "version": "0.0.0",
29135     "filename": "server/api/user/index.js",
29136     "groupTitle": "Users"
29137   },
29138   {
29139     "type": "get",
29140     "url": "/api/users/{id}/mail/interactions",
29141     "title": "GetMailInteractions",
29142     "examples": [
29143       {
29144         "title": "Example usage:",
29145         "content": "curl https://{domain}/api/users/{id}/mail/interactions -v -u {name}:{password} -X GET",
29146         "type": "json"
29147       }
29148     ],
29149     "name": "GetMailInteractions",
29150     "group": "Users",
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/user/index.js",
29154     "groupTitle": "Users"
29155   },
29156   {
29157     "type": "get",
29158     "url": "/api/users/{id}/openchannel_accounts",
29159     "title": "GetOpenchannelAccounts",
29160     "examples": [
29161       {
29162         "title": "Example usage:",
29163         "content": "curl https://{domain}/api/users/{id}/openchannel_accounts -v -u {name}:{password} -X GET",
29164         "type": "json"
29165       }
29166     ],
29167     "name": "GetOpenchannelAccounts",
29168     "group": "Users",
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/user/index.js",
29172     "groupTitle": "Users"
29173   },
29174   {
29175     "type": "get",
29176     "url": "/api/users/{id}/openchannel/interactions",
29177     "title": "GetOpenchannelInteractions",
29178     "examples": [
29179       {
29180         "title": "Example usage:",
29181         "content": "curl https://{domain}/api/users/{id}/openchannel/interactions -v -u {name}:{password}",
29182         "type": "json"
29183       }
29184     ],
29185     "name": "GetOpenchannelInteractions",
29186     "group": "Users",
29187     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29188     "version": "0.0.0",
29189     "filename": "server/api/user/index.js",
29190     "groupTitle": "Users"
29191   },
29192   {
29193     "type": "get",
29194     "url": "/api/users/{id}/prefixes",
29195     "title": "GetPrefixes",
29196     "examples": [
29197       {
29198         "title": "Example usage:",
29199         "content": "curl https://{domain}/api/users/{id}/prefixes -v -u {name}:{password} -X GET",
29200         "type": "json"
29201       }
29202     ],
29203     "name": "GetPrefixes",
29204     "group": "Users",
29205     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <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/user/index.js",
29208     "groupTitle": "Users"
29209   },
29210   {
29211     "type": "get",
29212     "url": "/api/users/{id}/queues?channel={channel}",
29213     "title": "Gets Queues list",
29214     "examples": [
29215       {
29216         "title": "Example usage:",
29217         "content": "curl https://{domain}/api/users/{id}/queues/?channel={channel} -v -u {name}:{password} -X GET",
29218         "type": "json"
29219       }
29220     ],
29221     "name": "GetQueues",
29222     "group": "Users",
29223     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <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/user/index.js",
29226     "groupTitle": "Users"
29227   },
29228   {
29229     "type": "get",
29230     "url": "/api/users/{id}/recordings",
29231     "title": "GetRecordings",
29232     "examples": [
29233       {
29234         "title": "Example usage:",
29235         "content": "curl https://{domain}/api/users/{id}/recordings -v -u {name}:{password} -X GET",
29236         "type": "json"
29237       }
29238     ],
29239     "name": "GetRecordings",
29240     "group": "Users",
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/user/index.js",
29244     "groupTitle": "Users"
29245   },
29246   {
29247     "type": "get",
29248     "url": "/api/users/{id}/scheduled_calls",
29249     "title": "GetScheduledCalls",
29250     "examples": [
29251       {
29252         "title": "Example usage:",
29253         "content": "curl https://{domain}/api/users/{id}/scheduled_calls -v -u {name}:{password} -X GET",
29254         "type": "json"
29255       }
29256     ],
29257     "name": "GetScheduledCalls",
29258     "group": "Users",
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/user/index.js",
29262     "groupTitle": "Users"
29263   },
29264   {
29265     "type": "get",
29266     "url": "/api/users/{id}/screen_recordings",
29267     "title": "GetScreenRecordings",
29268     "examples": [
29269       {
29270         "title": "Example usage:",
29271         "content": "curl https://{domain}/api/users/{id}/screen_recordings -v -u {name}:{password} -X GET",
29272         "type": "json"
29273       }
29274     ],
29275     "name": "GetScreenRecordings",
29276     "group": "Users",
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/index.js",
29280     "groupTitle": "Users"
29281   },
29282   {
29283     "type": "get",
29284     "url": "/api/users/{id}/sms_accounts",
29285     "title": "GetSmsAccounts",
29286     "examples": [
29287       {
29288         "title": "Example usage:",
29289         "content": "curl https://{domain}/api/users/{id}/sms_accounts -v -u {name}:{password} -X GET",
29290         "type": "json"
29291       }
29292     ],
29293     "name": "GetSmsAccounts",
29294     "group": "Users",
29295     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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": "get",
29302     "url": "/api/users/{id}/sms/interactions",
29303     "title": "GetSmsInteractions",
29304     "examples": [
29305       {
29306         "title": "Example usage:",
29307         "content": "curl https://{domain}/api/users/{id}/sms/interactions -v -u {name}:{password} -X GET",
29308         "type": "json"
29309       }
29310     ],
29311     "name": "GetSmsInteractions",
29312     "group": "Users",
29313     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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": "get",
29320     "url": "/api/users/{id}/square_projects",
29321     "title": "GetSquareProjects",
29322     "examples": [
29323       {
29324         "title": "Example usage:",
29325         "content": "curl https://{domain}/api/users/{id}/square_projects -v -u {name}:{password} -X GET",
29326         "type": "json"
29327       }
29328     ],
29329     "name": "GetSquareProjects",
29330     "group": "Users",
29331     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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": "get",
29338     "url": "/api/users/{id}/teams",
29339     "title": "GetTeams",
29340     "examples": [
29341       {
29342         "title": "Example usage:",
29343         "content": "curl https://{domain}/api/users/{id}/teams -v -u {name}:{password} -X GET",
29344         "type": "json"
29345       }
29346     ],
29347     "name": "GetTeams",
29348     "group": "Users",
29349     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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": "get",
29356     "url": "/api/users",
29357     "title": "Gets a list of Users",
29358     "examples": [
29359       {
29360         "title": "Example usage:",
29361         "content": "curl https://{domain}/api/users -v -u {name}:{password}",
29362         "type": "json"
29363       }
29364     ],
29365     "name": "GetUsers",
29366     "group": "Users",
29367     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
29368     "version": "0.0.0",
29369     "filename": "server/api/user/index.js",
29370     "groupTitle": "Users"
29371   },
29372   {
29373     "type": "get",
29374     "url": "/api/users/{id}/queues_rt",
29375     "title": "GetVoiceQueuesRt",
29376     "examples": [
29377       {
29378         "title": "Example usage:",
29379         "content": "curl https://{domain}/api/users/{id}/queues_rt -v -u {name}:{password} -X GET",
29380         "type": "json"
29381       }
29382     ],
29383     "name": "GetVoiceQueuesRt",
29384     "group": "Users",
29385     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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": "get",
29392     "url": "/api/users/{id}/whatsapp_accounts",
29393     "title": "GetWhatsappAccounts",
29394     "examples": [
29395       {
29396         "title": "Example usage:",
29397         "content": "curl https://{domain}/api/users/{id}/whatsapp_accounts -v -u {name}:{password} -X GET",
29398         "type": "json"
29399       }
29400     ],
29401     "name": "GetWhatsappAccounts",
29402     "group": "Users",
29403     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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": "get",
29410     "url": "/api/users/{id}/whatsapp/interactions",
29411     "title": "GetWhatsappInteractions",
29412     "examples": [
29413       {
29414         "title": "Example usage:",
29415         "content": "curl https://{domain}/api/users/{id}/whatsapp/interactions -v -u {name}:{password} -X GET",
29416         "type": "json"
29417       }
29418     ],
29419     "name": "GetWhatsappInteractions",
29420     "group": "Users",
29421     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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}/login",
29429     "title": "Login",
29430     "examples": [
29431       {
29432         "title": "Example usage:",
29433         "content": "curl https://{domain}/api/users/{id}/login  -v -u {name}:{password} -X POST",
29434         "type": "json"
29435       }
29436     ],
29437     "name": "Login",
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}/logout",
29447     "title": "Logout",
29448     "examples": [
29449       {
29450         "title": "Example usage:",
29451         "content": "curl https://{domain}/api/users/{id}/logout -v -u {name}:{password} -X POST",
29452         "type": "json"
29453       }
29454     ],
29455     "name": "Logout",
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}/pause",
29465     "title": "Pause",
29466     "examples": [
29467       {
29468         "title": "Example usage:",
29469         "content": "curl https://{domain}/api/users/{id}/pause -v -u {name}:{password} -X POST",
29470         "type": "json"
29471       }
29472     ],
29473     "name": "Pause",
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": "delete",
29482     "url": "/api/users/{id}/api_key",
29483     "title": "Remove API access key for the user",
29484     "examples": [
29485       {
29486         "title": "Example usage:",
29487         "content": "curl https://{domain}/api/users/:id/api_key -v -u {name}:{password} -X DELETE",
29488         "type": "json"
29489       }
29490     ],
29491     "name": "RemoveApiKey",
29492     "group": "Users",
29493     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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": "delete",
29500     "url": "/api/users/{id}/chat_interactions",
29501     "title": "Removes interactions from an agent",
29502     "examples": [
29503       {
29504         "title": "Example usage:",
29505         "content": "curl https://{domain}/api/users/{id}/chat_interactions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
29506         "type": "json"
29507       }
29508     ],
29509     "name": "RemoveChatInteractions",
29510     "group": "Users",
29511     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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": "delete",
29518     "url": "/api/users/{id}/chat_websites",
29519     "title": "Removes a Chat Website from a user",
29520     "examples": [
29521       {
29522         "title": "Example usage:",
29523         "content": "curl https://{domain}/api/users/{id}/chat_websites?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
29524         "type": "json"
29525       }
29526     ],
29527     "name": "RemoveChatWebsites",
29528     "group": "Users",
29529     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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": "delete",
29536     "url": "/api/users/{id}/fax_accounts",
29537     "title": "Removes a Fax Account from a user",
29538     "examples": [
29539       {
29540         "title": "Example usage:",
29541         "content": "curl https://{domain}/api/users/{id}/fax_accounts?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
29542         "type": "json"
29543       }
29544     ],
29545     "name": "RemoveFaxAccounts",
29546     "group": "Users",
29547     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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": "delete",
29554     "url": "/api/users/{id}/fax_interactions",
29555     "title": "Removes interactions from an agent",
29556     "examples": [
29557       {
29558         "title": "Example usage:",
29559         "content": "curl https://{domain}/api/users/{id}/fax_interactions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
29560         "type": "json"
29561       }
29562     ],
29563     "name": "RemoveFaxInteractions",
29564     "group": "Users",
29565     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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": "delete",
29572     "url": "/api/users/{id}/mail_accounts",
29573     "title": "Removes a Mail Account from a user",
29574     "examples": [
29575       {
29576         "title": "Example usage:",
29577         "content": "curl https://{domain}/api/users/{id}/mail_accounts?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
29578         "type": "json"
29579       }
29580     ],
29581     "name": "RemoveMailAccounts",
29582     "group": "Users",
29583     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <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": "delete",
29590     "url": "/api/users/{id}/mail_interactions",
29591     "title": "Removes interactions from an agent",
29592     "examples": [
29593       {
29594         "title": "Example usage:",
29595         "content": "curl https://{domain}/api/users/{id}/mail_interactions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
29596         "type": "json"
29597       }
29598     ],
29599     "name": "RemoveMailInteractions",
29600     "group": "Users",
29601     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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": "delete",
29608     "url": "/api/users/{id}/openchannel_accounts",
29609     "title": "Removes a Open Channel Account from a user",
29610     "examples": [
29611       {
29612         "title": "Example usage:",
29613         "content": "curl https://{domain}/api/users/{id}/openchannel_accounts?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
29614         "type": "json"
29615       }
29616     ],
29617     "name": "RemoveOpenchannelAccounts",
29618     "group": "Users",
29619     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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}/openchannel_interactions",
29627     "title": "Removes openchannel interactions from an agent",
29628     "examples": [
29629       {
29630         "title": "Example usage:",
29631         "content": "curl https://{domain}/api/users/{id}/openchannel_interactions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
29632         "type": "json"
29633       }
29634     ],
29635     "name": "RemoveOpenchannelInteractions",
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": "delete",
29644     "url": "/api/users/{id}/queues",
29645     "title": "Remove queues to an agent",
29646     "examples": [
29647       {
29648         "title": "Example usage:",
29649         "content": "curl https://{domain}/api/users/{id}/queues?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
29650         "type": "json"
29651       }
29652     ],
29653     "name": "RemoveQueues",
29654     "group": "Users",
29655     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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": "delete",
29662     "url": "/api/users/{id}/sms_accounts",
29663     "title": "Removes a Sms Account from a user",
29664     "examples": [
29665       {
29666         "title": "Example usage:",
29667         "content": "curl https://{domain}/api/users/{id}/sms_accounts?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
29668         "type": "json"
29669       }
29670     ],
29671     "name": "RemoveSmsAccounts",
29672     "group": "Users",
29673     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <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": "delete",
29680     "url": "/api/users/{id}/sms_interactions",
29681     "title": "Removes interactions from an agent",
29682     "examples": [
29683       {
29684         "title": "Example usage:",
29685         "content": "curl https://{domain}/api/users/{id}/sms_interactions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
29686         "type": "json"
29687       }
29688     ],
29689     "name": "RemoveSmsInteractions",
29690     "group": "Users",
29691     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <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": "delete",
29698     "url": "/api/users/{id}/square_projects",
29699     "title": "Removes a Square Project from a user",
29700     "examples": [
29701       {
29702         "title": "Example usage:",
29703         "content": "curl https://{domain}/api/users/{id}/square_projects?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
29704         "type": "json"
29705       }
29706     ],
29707     "name": "RemoveSquareProjects",
29708     "group": "Users",
29709     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <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": "delete",
29716     "url": "/api/users/{id}/teams",
29717     "title": "Removes teams from an agent",
29718     "examples": [
29719       {
29720         "title": "Example usage:",
29721         "content": "curl https://{domain}/api/users/{id}/teams?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
29722         "type": "json"
29723       }
29724     ],
29725     "name": "RemoveTeams",
29726     "group": "Users",
29727     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <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": "delete",
29734     "url": "/api/users/{id}/whatsapp_accounts",
29735     "title": "Removes a Whatsapp Account from a user",
29736     "examples": [
29737       {
29738         "title": "Example usage:",
29739         "content": "curl https://{domain}/api/users/{id}/whatsapp_accounts?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
29740         "type": "json"
29741       }
29742     ],
29743     "name": "RemoveWhatsappAccounts",
29744     "group": "Users",
29745     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <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": "delete",
29752     "url": "/api/users/{id}/whatsapp_interactions",
29753     "title": "Removes Whatsapp interactions from an agent",
29754     "examples": [
29755       {
29756         "title": "Example usage:",
29757         "content": "curl https://{domain}/api/users/{id}/whatsapp_interactions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
29758         "type": "json"
29759       }
29760     ],
29761     "name": "RemoveWhatsappInteractions",
29762     "group": "Users",
29763     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <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}",
29771     "title": "Gets a single User",
29772     "examples": [
29773       {
29774         "title": "Example usage:",
29775         "content": "curl https://{domain}/api/users/{id} -v -u {name}:{password}",
29776         "type": "json"
29777       }
29778     ],
29779     "name": "ShowUsers",
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": "post",
29788     "url": "/api/users/{id}/unpause",
29789     "title": "Unpause",
29790     "examples": [
29791       {
29792         "title": "Example usage:",
29793         "content": "curl https://{domain}/api/users/{id}/unpause -v -u {name}:{password} -X POST",
29794         "type": "json"
29795       }
29796     ],
29797     "name": "Unpause",
29798     "group": "Users",
29799     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</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/whoami",
29807     "title": "WhoAmI",
29808     "examples": [
29809       {
29810         "title": "Example usage:",
29811         "content": "curl https://{domain}/api/users/whoami -v -u {name}:{password} -X GET",
29812         "type": "json"
29813       }
29814     ],
29815     "name": "WhoAmI",
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": "post",
29824     "url": "/api/users/{id}/avatar",
29825     "title": "Add avatar",
29826     "examples": [
29827       {
29828         "title": "Example usage:",
29829         "content": "curl https://{domain}/api/users/{id}/avatar -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
29830         "type": "json"
29831       }
29832     ],
29833     "name": "addAvatar",
29834     "group": "Users",
29835     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</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": "post",
29842     "url": "/api/users/create_many",
29843     "title": "Create Users",
29844     "examples": [
29845       {
29846         "title": "Example usage:",
29847         "content": "curl https://{domain}/api/users/create_many -d '[{\"name\": \"john.doe\", \"role\": \"user\", \"...\": \"...\"}]' -v -u {name}:{password} -X POST",
29848         "type": "json"
29849       }
29850     ],
29851     "name": "bulkCreate",
29852     "group": "Users",
29853     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</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}/avatar",
29861     "title": "Get avatar",
29862     "examples": [
29863       {
29864         "title": "Example usage:",
29865         "content": "curl https://{domain}/api/users/{id}/avatar -v -u {name}:{password} -X GET",
29866         "type": "json"
29867       }
29868     ],
29869     "name": "getAvatar",
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}/open_tabs",
29879     "title": "Get interactions opened tabs",
29880     "examples": [
29881       {
29882         "title": "Example usage:",
29883         "content": "curl https://{domain}/api/users/{id}/open_tabs -v -u {name}:{password} -X GET",
29884         "type": "json"
29885       }
29886     ],
29887     "name": "getOpenTabs",
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/presence",
29897     "title": "Gets agent presence",
29898     "examples": [
29899       {
29900         "title": "Example usage:",
29901         "content": "curl https://{domain}/api/users/presence -v -u {name}:{password}  -X GET",
29902         "type": "json"
29903       }
29904     ],
29905     "name": "getPresence",
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": "put",
29914     "url": "/api/users/{id}",
29915     "title": "Update an existing User",
29916     "examples": [
29917       {
29918         "title": "Example usage:",
29919         "content": "curl https://{domain}/api/users/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
29920         "type": "json"
29921       }
29922     ],
29923     "name": "updateUsers",
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": "post",
29932     "url": "/api/variables",
29933     "title": "Creates a new Variable",
29934     "examples": [
29935       {
29936         "title": "Example usage:",
29937         "content": "curl https://{domain}/api/variables -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
29938         "type": "json"
29939       }
29940     ],
29941     "name": "CreateVariables",
29942     "group": "Variables",
29943     "parameter": {
29944       "fields": {
29945         "Body": [
29946           {
29947             "group": "Body",
29948             "type": "String",
29949             "optional": false,
29950             "field": "name",
29951             "description": ""
29952           },
29953           {
29954             "group": "Body",
29955             "type": "String",
29956             "optional": true,
29957             "field": "description",
29958             "description": ""
29959           }
29960         ]
29961       }
29962     },
29963     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29964     "version": "0.0.0",
29965     "filename": "server/api/variable/index.js",
29966     "groupTitle": "Variables"
29967   },
29968   {
29969     "type": "delete",
29970     "url": "/api/variables/{id}",
29971     "title": "Deletes a Variable",
29972     "examples": [
29973       {
29974         "title": "Example usage:",
29975         "content": "curl https://{domain}/api/variables/{id} -v -u {name}:{password} -X DELETE",
29976         "type": "json"
29977       }
29978     ],
29979     "name": "DeleteVariables",
29980     "group": "Variables",
29981     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29982     "version": "0.0.0",
29983     "filename": "server/api/variable/index.js",
29984     "groupTitle": "Variables"
29985   },
29986   {
29987     "type": "get",
29988     "url": "/api/variables",
29989     "title": "Gets a list of Variables",
29990     "examples": [
29991       {
29992         "title": "Example usage:",
29993         "content": "curl https://{domain}/api/variables -v -u {name}:{password}",
29994         "type": "json"
29995       }
29996     ],
29997     "name": "GetVariables",
29998     "group": "Variables",
29999     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
30000     "version": "0.0.0",
30001     "filename": "server/api/variable/index.js",
30002     "groupTitle": "Variables"
30003   },
30004   {
30005     "type": "get",
30006     "url": "/api/variables/{id}",
30007     "title": "Gets a single Variable",
30008     "examples": [
30009       {
30010         "title": "Example usage:",
30011         "content": "curl https://{domain}/api/variables/{id} -v -u {name}:{password}",
30012         "type": "json"
30013       }
30014     ],
30015     "name": "ShowVariables",
30016     "group": "Variables",
30017     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30018     "version": "0.0.0",
30019     "filename": "server/api/variable/index.js",
30020     "groupTitle": "Variables"
30021   },
30022   {
30023     "type": "put",
30024     "url": "/api/variables/{id}",
30025     "title": "Update an existing Variable",
30026     "examples": [
30027       {
30028         "title": "Example usage:",
30029         "content": "curl https://{domain}/api/variables/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
30030         "type": "json"
30031       }
30032     ],
30033     "name": "updateVariables",
30034     "group": "Variables",
30035     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30036     "version": "0.0.0",
30037     "filename": "server/api/variable/index.js",
30038     "groupTitle": "Variables"
30039   },
30040   {
30041     "type": "get",
30042     "url": "/api/version/fetch",
30043     "title": "Fetch git version",
30044     "examples": [
30045       {
30046         "title": "Example usage:",
30047         "content": "curl https://{domain}/api/version/fetch -v -u {name}:{password}",
30048         "type": "json"
30049       }
30050     ],
30051     "name": "FetchVersion",
30052     "group": "Version",
30053     "description": "<p>Motion run the following command: git fetch origin master</p>",
30054     "version": "0.0.0",
30055     "filename": "server/api/version/index.js",
30056     "groupTitle": "Version"
30057   },
30058   {
30059     "type": "get",
30060     "url": "/api/version",
30061     "title": "Gets version",
30062     "examples": [
30063       {
30064         "title": "Example usage:",
30065         "content": "curl https://{domain}/api/version -v -u {name}:{password}",
30066         "type": "json"
30067       }
30068     ],
30069     "name": "GetVersion",
30070     "group": "Version",
30071     "description": "<p>Motion returns the current and latest motion version.</p>",
30072     "version": "0.0.0",
30073     "filename": "server/api/version/index.js",
30074     "groupTitle": "Version"
30075   },
30076   {
30077     "type": "get",
30078     "url": "/api/version/migrations",
30079     "title": "Launch database migrations",
30080     "examples": [
30081       {
30082         "title": "Example usage:",
30083         "content": "curl https://{domain}/api/version/migrations -v -u {name}:{password}",
30084         "type": "json"
30085       }
30086     ],
30087     "name": "MigrateVersion",
30088     "group": "Version",
30089     "description": "<p>Motion launch the database migrations, according to the application version</p>",
30090     "version": "0.0.0",
30091     "filename": "server/api/version/index.js",
30092     "groupTitle": "Version"
30093   },
30094   {
30095     "type": "get",
30096     "url": "/api/version/pull",
30097     "title": "Pull git version",
30098     "examples": [
30099       {
30100         "title": "Example usage:",
30101         "content": "curl https://{domain}/api/version/pull -v -u {name}:{password}",
30102         "type": "json"
30103       }
30104     ],
30105     "name": "PullVersion",
30106     "group": "Version",
30107     "description": "<p>Motion run the following command: git pull</p>",
30108     "version": "0.0.0",
30109     "filename": "server/api/version/index.js",
30110     "groupTitle": "Version"
30111   },
30112   {
30113     "type": "get",
30114     "url": "/api/version/reset",
30115     "title": "Reset git version",
30116     "examples": [
30117       {
30118         "title": "Example usage:",
30119         "content": "curl https://{domain}/api/version/reset -v -u {name}:{password}",
30120         "type": "json"
30121       }
30122     ],
30123     "name": "ResetVersion",
30124     "group": "Version",
30125     "description": "<p>Motion run the following command: git reset --hard FETCH_HEAD</p>",
30126     "version": "0.0.0",
30127     "filename": "server/api/version/index.js",
30128     "groupTitle": "Version"
30129   },
30130   {
30131     "type": "get",
30132     "url": "/api/version/restart",
30133     "title": "Restart motion2 after update",
30134     "examples": [
30135       {
30136         "title": "Example usage:",
30137         "content": "curl https://{domain}/api/version/restart -v -u {name}:{password}",
30138         "type": "json"
30139       }
30140     ],
30141     "name": "RestartVersion",
30142     "group": "Version",
30143     "description": "<p>Motion run the following command: pm2 restart motion</p>",
30144     "version": "0.0.0",
30145     "filename": "server/api/version/index.js",
30146     "groupTitle": "Version"
30147   },
30148   {
30149     "type": "get",
30150     "url": "/api/voice/agents/reports/describe",
30151     "title": "Gets table info about Agent Reports",
30152     "examples": [
30153       {
30154         "title": "Example usage:",
30155         "content": "curl https://{domain}/api/voice/agents/reports/describe -v -u {name}:{password}",
30156         "type": "json"
30157       }
30158     ],
30159     "name": "DescribeAgent_Reports",
30160     "group": "Voice_Agent_Reports",
30161     "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>",
30162     "version": "0.0.0",
30163     "filename": "server/api/voiceAgentReport/index.js",
30164     "groupTitle": "Voice_Agent_Reports"
30165   },
30166   {
30167     "type": "get",
30168     "url": "/api/voice/agents/reports",
30169     "title": "Gets a list of Agent Reports",
30170     "examples": [
30171       {
30172         "title": "Example usage:",
30173         "content": "curl https://{domain}/api/voice/agents/reports -v -u {name}:{password}",
30174         "type": "json"
30175       }
30176     ],
30177     "name": "GetAgent_Reports",
30178     "group": "Voice_Agent_Reports",
30179     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
30180     "version": "0.0.0",
30181     "filename": "server/api/voiceAgentReport/index.js",
30182     "groupTitle": "Voice_Agent_Reports"
30183   },
30184   {
30185     "type": "get",
30186     "url": "/api/voice/agents/reports/{id}",
30187     "title": "Gets a single Agent Report",
30188     "examples": [
30189       {
30190         "title": "Example usage:",
30191         "content": "curl https://{domain}/api/voice/agents/reports/{id} -v -u {name}:{password}",
30192         "type": "json"
30193       }
30194     ],
30195     "name": "ShowAgent_Reports",
30196     "group": "Voice_Agent_Reports",
30197     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30198     "version": "0.0.0",
30199     "filename": "server/api/voiceAgentReport/index.js",
30200     "groupTitle": "Voice_Agent_Reports"
30201   },
30202   {
30203     "type": "get",
30204     "url": "/api/voice/calls/reports/describe",
30205     "title": "Gets table info about Call Reports",
30206     "examples": [
30207       {
30208         "title": "Example usage:",
30209         "content": "curl https://{domain}/api/voice/calls/reports/describe -v -u {name}:{password}",
30210         "type": "json"
30211       }
30212     ],
30213     "name": "DescribeCall_Reports",
30214     "group": "Voice_Call_Reports",
30215     "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>",
30216     "version": "0.0.0",
30217     "filename": "server/api/voiceCallReport/index.js",
30218     "groupTitle": "Voice_Call_Reports"
30219   },
30220   {
30221     "type": "get",
30222     "url": "/api/voice/calls/reports",
30223     "title": "Gets a list of Call Reports",
30224     "examples": [
30225       {
30226         "title": "Example usage:",
30227         "content": "curl https://{domain}/api/voice/calls/reports -v -u {name}:{password}",
30228         "type": "json"
30229       }
30230     ],
30231     "name": "GetCall_Reports",
30232     "group": "Voice_Call_Reports",
30233     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
30234     "version": "0.0.0",
30235     "filename": "server/api/voiceCallReport/index.js",
30236     "groupTitle": "Voice_Call_Reports"
30237   },
30238   {
30239     "type": "get",
30240     "url": "/api/voice/calls/reports/{id}",
30241     "title": "Gets a single Call Report",
30242     "examples": [
30243       {
30244         "title": "Example usage:",
30245         "content": "curl https://{domain}/api/voice/calls/reports/{id} -v -u {name}:{password}",
30246         "type": "json"
30247       }
30248     ],
30249     "name": "ShowCall_Reports",
30250     "group": "Voice_Call_Reports",
30251     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30252     "version": "0.0.0",
30253     "filename": "server/api/voiceCallReport/index.js",
30254     "groupTitle": "Voice_Call_Reports"
30255   },
30256   {
30257     "type": "put",
30258     "url": "/api/voice/calls/reports/{id}",
30259     "title": "Update a single cdr",
30260     "examples": [
30261       {
30262         "title": "Example usage:",
30263         "content": "curl https://{domain}/api/voice/calls/reports/{id} -d '{\"userDispositio\": \"OK\"}' -v -u {name}:{password} -X PUT",
30264         "type": "json"
30265       }
30266     ],
30267     "name": "update",
30268     "group": "Voice_Call_Reports",
30269     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30270     "version": "0.0.0",
30271     "filename": "server/api/voiceCallReport/index.js",
30272     "groupTitle": "Voice_Call_Reports"
30273   },
30274   {
30275     "type": "post",
30276     "url": "/api/voice/chanspy",
30277     "title": "Creates a new ChanSpy",
30278     "examples": [
30279       {
30280         "title": "Example usage:",
30281         "content": "curl https://{domain}/api/voice/chanspy -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
30282         "type": "json"
30283       }
30284     ],
30285     "name": "CreateChanSpy",
30286     "group": "Voice_ChanSpy",
30287     "parameter": {
30288       "fields": {
30289         "Body": [
30290           {
30291             "group": "Body",
30292             "type": "String",
30293             "optional": true,
30294             "field": "name",
30295             "description": ""
30296           },
30297           {
30298             "group": "Body",
30299             "type": "String",
30300             "optional": false,
30301             "field": "prefix",
30302             "description": ""
30303           },
30304           {
30305             "group": "Body",
30306             "type": "String",
30307             "optional": true,
30308             "field": "options",
30309             "description": ""
30310           },
30311           {
30312             "group": "Body",
30313             "type": "Boolean",
30314             "optional": true,
30315             "field": "auth",
30316             "description": ""
30317           },
30318           {
30319             "group": "Body",
30320             "type": "String",
30321             "optional": true,
30322             "field": "password",
30323             "description": ""
30324           },
30325           {
30326             "group": "Body",
30327             "type": "Boolean",
30328             "optional": true,
30329             "field": "record",
30330             "description": ""
30331           },
30332           {
30333             "group": "Body",
30334             "type": "String",
30335             "optional": true,
30336             "field": "recordingFormat",
30337             "description": ""
30338           },
30339           {
30340             "group": "Body",
30341             "type": "String",
30342             "optional": true,
30343             "field": "description",
30344             "description": ""
30345           }
30346         ]
30347       }
30348     },
30349     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30350     "version": "0.0.0",
30351     "filename": "server/api/voiceChanSpy/index.js",
30352     "groupTitle": "Voice_ChanSpy"
30353   },
30354   {
30355     "type": "delete",
30356     "url": "/api/voice/chanspy/{id}",
30357     "title": "Deletes a ChanSpy",
30358     "examples": [
30359       {
30360         "title": "Example usage:",
30361         "content": "curl https://{domain}/api/voice/chanspy/{id} -v -u {name}:{password} -X DELETE",
30362         "type": "json"
30363       }
30364     ],
30365     "name": "DeleteChanSpy",
30366     "group": "Voice_ChanSpy",
30367     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30368     "version": "0.0.0",
30369     "filename": "server/api/voiceChanSpy/index.js",
30370     "groupTitle": "Voice_ChanSpy"
30371   },
30372   {
30373     "type": "get",
30374     "url": "/api/voice/chanspy",
30375     "title": "Gets a list of ChanSpy",
30376     "examples": [
30377       {
30378         "title": "Example usage:",
30379         "content": "curl https://{domain}/api/voice/chanspy -v -u {name}:{password}",
30380         "type": "json"
30381       }
30382     ],
30383     "name": "GetChanSpy",
30384     "group": "Voice_ChanSpy",
30385     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
30386     "version": "0.0.0",
30387     "filename": "server/api/voiceChanSpy/index.js",
30388     "groupTitle": "Voice_ChanSpy"
30389   },
30390   {
30391     "type": "get",
30392     "url": "/api/voice/chanspy/{id}",
30393     "title": "Gets a single ChanSpy",
30394     "examples": [
30395       {
30396         "title": "Example usage:",
30397         "content": "curl https://{domain}/api/voice/chanspy/{id} -v -u {name}:{password}",
30398         "type": "json"
30399       }
30400     ],
30401     "name": "ShowChanSpy",
30402     "group": "Voice_ChanSpy",
30403     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30404     "version": "0.0.0",
30405     "filename": "server/api/voiceChanSpy/index.js",
30406     "groupTitle": "Voice_ChanSpy"
30407   },
30408   {
30409     "type": "put",
30410     "url": "/api/voice/chanspy/{id}",
30411     "title": "Update an existing ChanSpy",
30412     "examples": [
30413       {
30414         "title": "Example usage:",
30415         "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",
30416         "type": "json"
30417       }
30418     ],
30419     "name": "updateChanSpy",
30420     "group": "Voice_ChanSpy",
30421     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30422     "version": "0.0.0",
30423     "filename": "server/api/voiceChanSpy/index.js",
30424     "groupTitle": "Voice_ChanSpy"
30425   },
30426   {
30427     "type": "post",
30428     "url": "/api/voice/contexts",
30429     "title": "Create a new context",
30430     "examples": [
30431       {
30432         "title": "Example usage:",
30433         "content": "curl https://{domain}/api/voice/contexts -v -u {name}:{password} -X POST",
30434         "type": "json"
30435       }
30436     ],
30437     "name": "Create",
30438     "group": "Voice_Contexts",
30439     "parameter": {
30440       "fields": {
30441         "Body": [
30442           {
30443             "group": "Body",
30444             "type": "String",
30445             "optional": true,
30446             "field": "name",
30447             "description": ""
30448           },
30449           {
30450             "group": "Body",
30451             "type": "String",
30452             "optional": true,
30453             "field": "description",
30454             "description": ""
30455           },
30456           {
30457             "group": "Body",
30458             "type": "Boolean",
30459             "optional": true,
30460             "field": "defaultEntry",
30461             "description": ""
30462           }
30463         ]
30464       }
30465     },
30466     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30467     "version": "0.0.0",
30468     "filename": "server/api/voiceContext/index.js",
30469     "groupTitle": "Voice_Contexts"
30470   },
30471   {
30472     "type": "delete",
30473     "url": "/api/voice/contexts/{id}",
30474     "title": "Deletes a context",
30475     "examples": [
30476       {
30477         "title": "Example usage:",
30478         "content": "curl https://{domain}/api/voice/contexts/{id} -v -u {name}:{password} -X DELETE",
30479         "type": "json"
30480       }
30481     ],
30482     "name": "Delete",
30483     "group": "Voice_Contexts",
30484     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30485     "version": "0.0.0",
30486     "filename": "server/api/voiceContext/index.js",
30487     "groupTitle": "Voice_Contexts"
30488   },
30489   {
30490     "type": "get",
30491     "url": "/api/voice/contexts",
30492     "title": "Gets a list of Contexts",
30493     "examples": [
30494       {
30495         "title": "Example usage:",
30496         "content": "curl https://{domain}/api/voice/contexts -v -u {name}:{password}",
30497         "type": "json"
30498       }
30499     ],
30500     "name": "GetContexts",
30501     "group": "Voice_Contexts",
30502     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
30503     "version": "0.0.0",
30504     "filename": "server/api/voiceContext/index.js",
30505     "groupTitle": "Voice_Contexts"
30506   },
30507   {
30508     "type": "get",
30509     "url": "/api/voice/contexts/{id}",
30510     "title": "Gets a single Context",
30511     "examples": [
30512       {
30513         "title": "Example usage:",
30514         "content": "curl https://{domain}/api/voice/contexts/{id} -v -u {name}:{password}",
30515         "type": "json"
30516       }
30517     ],
30518     "name": "ShowContexts",
30519     "group": "Voice_Contexts",
30520     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30521     "version": "0.0.0",
30522     "filename": "server/api/voiceContext/index.js",
30523     "groupTitle": "Voice_Contexts"
30524   },
30525   {
30526     "type": "put",
30527     "url": "/api/voice/contexts/{id}",
30528     "title": "Update an existing context",
30529     "examples": [
30530       {
30531         "title": "Example usage:",
30532         "content": "curl https://{domain}/api/voice/contexts/{id} -v -u {name}:{password} -X PUT",
30533         "type": "json"
30534       }
30535     ],
30536     "name": "Update",
30537     "group": "Voice_Contexts",
30538     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30539     "version": "0.0.0",
30540     "filename": "server/api/voiceContext/index.js",
30541     "groupTitle": "Voice_Contexts"
30542   },
30543   {
30544     "type": "get",
30545     "url": "/api/voice/dials/reports/describe",
30546     "title": "Gets table info about Dial Reports",
30547     "examples": [
30548       {
30549         "title": "Example usage:",
30550         "content": "curl https://{domain}/api/voice/dials/reports/describe -v -u {name}:{password}",
30551         "type": "json"
30552       }
30553     ],
30554     "name": "DescribeDial_Reports",
30555     "group": "Voice_Dial_Reports",
30556     "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>",
30557     "version": "0.0.0",
30558     "filename": "server/api/voiceDialReport/index.js",
30559     "groupTitle": "Voice_Dial_Reports"
30560   },
30561   {
30562     "type": "get",
30563     "url": "/api/voice/dials/reports",
30564     "title": "Gets a list of Dial Reports",
30565     "examples": [
30566       {
30567         "title": "Example usage:",
30568         "content": "curl https://{domain}/api/voice/dials/reports -v -u {name}:{password}",
30569         "type": "json"
30570       }
30571     ],
30572     "name": "GetDial_Reports",
30573     "group": "Voice_Dial_Reports",
30574     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
30575     "version": "0.0.0",
30576     "filename": "server/api/voiceDialReport/index.js",
30577     "groupTitle": "Voice_Dial_Reports"
30578   },
30579   {
30580     "type": "get",
30581     "url": "/api/voice/dials/reports/{id}",
30582     "title": "Gets a single Dial Report",
30583     "examples": [
30584       {
30585         "title": "Example usage:",
30586         "content": "curl https://{domain}/api/voice/dials/reports/{id} -v -u {name}:{password}",
30587         "type": "json"
30588       }
30589     ],
30590     "name": "ShowDial_Reports",
30591     "group": "Voice_Dial_Reports",
30592     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30593     "version": "0.0.0",
30594     "filename": "server/api/voiceDialReport/index.js",
30595     "groupTitle": "Voice_Dial_Reports"
30596   },
30597   {
30598     "type": "delete",
30599     "url": "/api/voice/extensions/{id}",
30600     "title": "Deletes a Extension",
30601     "examples": [
30602       {
30603         "title": "Example usage:",
30604         "content": "curl https://{domain}/api/voice/extensions/{id} -v -u {name}:{password} -X DELETE",
30605         "type": "json"
30606       }
30607     ],
30608     "name": "DeleteExtensions",
30609     "group": "Voice_Extensions",
30610     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30611     "version": "0.0.0",
30612     "filename": "server/api/voiceExtension/index.js",
30613     "groupTitle": "Voice_Extensions"
30614   },
30615   {
30616     "type": "get",
30617     "url": "/api/voice/extensions",
30618     "title": "Gets a list of Extensions",
30619     "examples": [
30620       {
30621         "title": "Example usage:",
30622         "content": "curl https://{domain}/api/voice/extensions -v -u {name}:{password}",
30623         "type": "json"
30624       }
30625     ],
30626     "name": "GetExtensions",
30627     "group": "Voice_Extensions",
30628     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
30629     "version": "0.0.0",
30630     "filename": "server/api/voiceExtension/index.js",
30631     "groupTitle": "Voice_Extensions"
30632   },
30633   {
30634     "type": "get",
30635     "url": "/api/voice/extensions/{id}",
30636     "title": "Gets a single Extension",
30637     "examples": [
30638       {
30639         "title": "Example usage:",
30640         "content": "curl https://{domain}/api/voice/extensions/{id} -v -u {name}:{password}",
30641         "type": "json"
30642       }
30643     ],
30644     "name": "ShowExtensions",
30645     "group": "Voice_Extensions",
30646     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30647     "version": "0.0.0",
30648     "filename": "server/api/voiceExtension/index.js",
30649     "groupTitle": "Voice_Extensions"
30650   },
30651   {
30652     "type": "post",
30653     "url": "/api/voice/extensions",
30654     "title": "Create new applications",
30655     "examples": [
30656       {
30657         "title": "Example usage:",
30658         "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",
30659         "type": "json"
30660       }
30661     ],
30662     "name": "addApplications",
30663     "group": "Voice_Extensions",
30664     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30665     "version": "0.0.0",
30666     "filename": "server/api/voiceExtension/index.js",
30667     "groupTitle": "Voice_Extensions"
30668   },
30669   {
30670     "type": "post",
30671     "url": "/api/voice/extensions",
30672     "title": "Create an extension",
30673     "examples": [
30674       {
30675         "title": "Example usage:",
30676         "content": "curl https://{domain}/api/voice/extensions -d '{\"exten\": \"12345\", \"context\": \"from-custom\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
30677         "type": "json"
30678       }
30679     ],
30680     "name": "create",
30681     "group": "Voice_Extensions",
30682     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30683     "version": "0.0.0",
30684     "filename": "server/api/voiceExtension/index.js",
30685     "groupTitle": "Voice_Extensions"
30686   },
30687   {
30688     "type": "put",
30689     "url": "/api/voice/extensions/{id}",
30690     "title": "Update an extension",
30691     "examples": [
30692       {
30693         "title": "Example usage:",
30694         "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",
30695         "type": "json"
30696       }
30697     ],
30698     "name": "update",
30699     "group": "Voice_Extensions",
30700     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30701     "version": "0.0.0",
30702     "filename": "server/api/voiceExtension/index.js",
30703     "groupTitle": "Voice_Extensions"
30704   },
30705   {
30706     "type": "post",
30707     "url": "/api/voice/mohs",
30708     "title": "Create a new a new MOH",
30709     "examples": [
30710       {
30711         "title": "Example usage:",
30712         "content": "curl https://{domain}/api/voice/mohs -d '{\"name\": \"xmas_musics\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
30713         "type": "json"
30714       }
30715     ],
30716     "name": "AddMoh",
30717     "group": "Voice_MOHs",
30718     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30719     "version": "0.0.0",
30720     "filename": "server/api/voiceMusicOnHold/index.js",
30721     "groupTitle": "Voice_MOHs"
30722   },
30723   {
30724     "type": "post",
30725     "url": "/api/voice/mohs/{id}/sounds",
30726     "title": "Add sound to MOH",
30727     "examples": [
30728       {
30729         "title": "Example usage:",
30730         "content": "curl https://{domain}/api/voice/mohs/{id}/sounds -d '{\"id\": 1}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
30731         "type": "json"
30732       }
30733     ],
30734     "name": "AddSound",
30735     "group": "Voice_MOHs",
30736     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30737     "version": "0.0.0",
30738     "filename": "server/api/voiceMusicOnHold/index.js",
30739     "groupTitle": "Voice_MOHs"
30740   },
30741   {
30742     "type": "delete",
30743     "url": "/api/voice/mohs/{id}",
30744     "title": "Deletes an MOH",
30745     "examples": [
30746       {
30747         "title": "Example usage:",
30748         "content": "curl https://{domain}/api/voice/mohs/{id} -v -u {name}:{password} -X DELETE",
30749         "type": "json"
30750       }
30751     ],
30752     "name": "DestroyMoh",
30753     "group": "Voice_MOHs",
30754     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30755     "version": "0.0.0",
30756     "filename": "server/api/voiceMusicOnHold/index.js",
30757     "groupTitle": "Voice_MOHs"
30758   },
30759   {
30760     "type": "get",
30761     "url": "/api/voice/mohs",
30762     "title": "Gets a list of Music On Holds",
30763     "examples": [
30764       {
30765         "title": "Example usage:",
30766         "content": "curl https://{domain}/api/voice/mohs -v -u {name}:{password}",
30767         "type": "json"
30768       }
30769     ],
30770     "name": "GetMusic_On_Holds",
30771     "group": "Voice_MOHs",
30772     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
30773     "version": "0.0.0",
30774     "filename": "server/api/voiceMusicOnHold/index.js",
30775     "groupTitle": "Voice_MOHs"
30776   },
30777   {
30778     "type": "get",
30779     "url": "/api/voice/mohs/{id}/sounds",
30780     "title": "Gets sounds from MOH",
30781     "examples": [
30782       {
30783         "title": "Example usage:",
30784         "content": "curl https://{domain}/api/voice/mohs/{id}/sounds -v -u {name}:{password} -X DELETE",
30785         "type": "json"
30786       }
30787     ],
30788     "name": "GetSounds",
30789     "group": "Voice_MOHs",
30790     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30791     "version": "0.0.0",
30792     "filename": "server/api/voiceMusicOnHold/index.js",
30793     "groupTitle": "Voice_MOHs"
30794   },
30795   {
30796     "type": "delete",
30797     "url": "/api/voice/mohs/{id}/sounds/{id2}",
30798     "title": "Remove sound from MOH",
30799     "examples": [
30800       {
30801         "title": "Example usage:",
30802         "content": "curl https://{domain}/api/voice/mohs/{id}/sounds/{id2} -v -u {name}:{password} -X DELETE",
30803         "type": "json"
30804       }
30805     ],
30806     "name": "RemoveSound",
30807     "group": "Voice_MOHs",
30808     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30809     "version": "0.0.0",
30810     "filename": "server/api/voiceMusicOnHold/index.js",
30811     "groupTitle": "Voice_MOHs"
30812   },
30813   {
30814     "type": "get",
30815     "url": "/api/voice/mohs/{id}",
30816     "title": "Gets a single Music On Hold",
30817     "examples": [
30818       {
30819         "title": "Example usage:",
30820         "content": "curl https://{domain}/api/voice/mohs/{id} -v -u {name}:{password}",
30821         "type": "json"
30822       }
30823     ],
30824     "name": "ShowMusic_On_Holds",
30825     "group": "Voice_MOHs",
30826     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30827     "version": "0.0.0",
30828     "filename": "server/api/voiceMusicOnHold/index.js",
30829     "groupTitle": "Voice_MOHs"
30830   },
30831   {
30832     "type": "put",
30833     "url": "/api/voice/mohs/{id}",
30834     "title": "Update an existing Music On Hold",
30835     "examples": [
30836       {
30837         "title": "Example usage:",
30838         "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",
30839         "type": "json"
30840       }
30841     ],
30842     "name": "updateMusic_On_Holds",
30843     "group": "Voice_MOHs",
30844     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30845     "version": "0.0.0",
30846     "filename": "server/api/voiceMusicOnHold/index.js",
30847     "groupTitle": "Voice_MOHs"
30848   },
30849   {
30850     "type": "post",
30851     "url": "/api/voice/mails",
30852     "title": "Creates a new Mail",
30853     "examples": [
30854       {
30855         "title": "Example usage:",
30856         "content": "curl https://{domain}/api/voice/mails -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
30857         "type": "json"
30858       }
30859     ],
30860     "name": "CreateMails",
30861     "group": "Voice_Mails",
30862     "parameter": {
30863       "fields": {
30864         "Body": [
30865           {
30866             "group": "Body",
30867             "type": "String",
30868             "optional": true,
30869             "field": "customer_id",
30870             "description": ""
30871           },
30872           {
30873             "group": "Body",
30874             "type": "String",
30875             "optional": true,
30876             "field": "context",
30877             "description": ""
30878           },
30879           {
30880             "group": "Body",
30881             "type": "String",
30882             "optional": false,
30883             "field": "mailbox",
30884             "description": ""
30885           },
30886           {
30887             "group": "Body",
30888             "type": "String",
30889             "optional": true,
30890             "field": "password",
30891             "description": ""
30892           },
30893           {
30894             "group": "Body",
30895             "type": "String",
30896             "optional": true,
30897             "field": "fullname",
30898             "description": ""
30899           },
30900           {
30901             "group": "Body",
30902             "type": "String",
30903             "optional": true,
30904             "field": "email",
30905             "description": ""
30906           },
30907           {
30908             "group": "Body",
30909             "type": "String",
30910             "optional": true,
30911             "field": "pager",
30912             "description": ""
30913           },
30914           {
30915             "group": "Body",
30916             "type": "String",
30917             "optional": true,
30918             "field": "tz",
30919             "description": ""
30920           },
30921           {
30922             "group": "Body",
30923             "type": "String",
30924             "allowedValues": [
30925               "\"yes\"",
30926               "\"no\""
30927             ],
30928             "optional": false,
30929             "field": "attach",
30930             "description": ""
30931           },
30932           {
30933             "group": "Body",
30934             "type": "String",
30935             "allowedValues": [
30936               "\"yes\"",
30937               "\"no\""
30938             ],
30939             "optional": false,
30940             "field": "saycid",
30941             "description": ""
30942           },
30943           {
30944             "group": "Body",
30945             "type": "String",
30946             "optional": true,
30947             "field": "dialout",
30948             "description": ""
30949           },
30950           {
30951             "group": "Body",
30952             "type": "String",
30953             "optional": true,
30954             "field": "callback",
30955             "description": ""
30956           },
30957           {
30958             "group": "Body",
30959             "type": "String",
30960             "allowedValues": [
30961               "\"yes\"",
30962               "\"no\""
30963             ],
30964             "optional": false,
30965             "field": "review",
30966             "description": ""
30967           },
30968           {
30969             "group": "Body",
30970             "type": "String",
30971             "allowedValues": [
30972               "\"yes\"",
30973               "\"no\""
30974             ],
30975             "optional": false,
30976             "field": "operator",
30977             "description": ""
30978           },
30979           {
30980             "group": "Body",
30981             "type": "String",
30982             "allowedValues": [
30983               "\"yes\"",
30984               "\"no\""
30985             ],
30986             "optional": false,
30987             "field": "envelope",
30988             "description": ""
30989           },
30990           {
30991             "group": "Body",
30992             "type": "String",
30993             "allowedValues": [
30994               "\"yes\"",
30995               "\"no\""
30996             ],
30997             "optional": false,
30998             "field": "sayduration",
30999             "description": ""
31000           },
31001           {
31002             "group": "Body",
31003             "type": "String",
31004             "optional": false,
31005             "field": "saydurationm",
31006             "description": ""
31007           },
31008           {
31009             "group": "Body",
31010             "type": "String",
31011             "allowedValues": [
31012               "\"yes\"",
31013               "\"no\""
31014             ],
31015             "optional": false,
31016             "field": "sendvoicemail",
31017             "description": ""
31018           },
31019           {
31020             "group": "Body",
31021             "type": "String",
31022             "allowedValues": [
31023               "\"yes\"",
31024               "\"no\""
31025             ],
31026             "optional": false,
31027             "field": "delete",
31028             "description": ""
31029           },
31030           {
31031             "group": "Body",
31032             "type": "String",
31033             "allowedValues": [
31034               "\"yes\"",
31035               "\"no\""
31036             ],
31037             "optional": false,
31038             "field": "nextaftercmd",
31039             "description": ""
31040           },
31041           {
31042             "group": "Body",
31043             "type": "String",
31044             "allowedValues": [
31045               "\"yes\"",
31046               "\"no\""
31047             ],
31048             "optional": false,
31049             "field": "forcename",
31050             "description": ""
31051           },
31052           {
31053             "group": "Body",
31054             "type": "String",
31055             "allowedValues": [
31056               "\"yes\"",
31057               "\"no\""
31058             ],
31059             "optional": false,
31060             "field": "forcegreetings",
31061             "description": ""
31062           },
31063           {
31064             "group": "Body",
31065             "type": "String",
31066             "allowedValues": [
31067               "\"yes\"",
31068               "\"no\""
31069             ],
31070             "optional": false,
31071             "field": "hidefromdir",
31072             "description": ""
31073           },
31074           {
31075             "group": "Body",
31076             "type": "String",
31077             "optional": true,
31078             "field": "stamp",
31079             "description": ""
31080           },
31081           {
31082             "group": "Body",
31083             "type": "String",
31084             "optional": true,
31085             "field": "emailsubject",
31086             "description": ""
31087           },
31088           {
31089             "group": "Body",
31090             "type": "String",
31091             "optional": true,
31092             "field": "emailbody",
31093             "description": ""
31094           },
31095           {
31096             "group": "Body",
31097             "type": "Integer",
31098             "optional": false,
31099             "field": "maxsecs",
31100             "description": ""
31101           },
31102           {
31103             "group": "Body",
31104             "type": "Integer",
31105             "optional": false,
31106             "field": "maxmsg",
31107             "description": ""
31108           },
31109           {
31110             "group": "Body",
31111             "type": "Virtual",
31112             "optional": true,
31113             "field": "name",
31114             "description": ""
31115           }
31116         ]
31117       }
31118     },
31119     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31120     "version": "0.0.0",
31121     "filename": "server/api/voiceMail/index.js",
31122     "groupTitle": "Voice_Mails"
31123   },
31124   {
31125     "type": "delete",
31126     "url": "/api/voice/mails/{id}",
31127     "title": "Deletes a Mail",
31128     "examples": [
31129       {
31130         "title": "Example usage:",
31131         "content": "curl https://{domain}/api/voice/mails/{id} -v -u {name}:{password} -X DELETE",
31132         "type": "json"
31133       }
31134     ],
31135     "name": "DeleteMails",
31136     "group": "Voice_Mails",
31137     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31138     "version": "0.0.0",
31139     "filename": "server/api/voiceMail/index.js",
31140     "groupTitle": "Voice_Mails"
31141   },
31142   {
31143     "type": "get",
31144     "url": "/api/voice/mails",
31145     "title": "Gets a list of Mails",
31146     "examples": [
31147       {
31148         "title": "Example usage:",
31149         "content": "curl https://{domain}/api/voice/mails -v -u {name}:{password}",
31150         "type": "json"
31151       }
31152     ],
31153     "name": "GetMails",
31154     "group": "Voice_Mails",
31155     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
31156     "version": "0.0.0",
31157     "filename": "server/api/voiceMail/index.js",
31158     "groupTitle": "Voice_Mails"
31159   },
31160   {
31161     "type": "get",
31162     "url": "/api/voice/mails/{id}",
31163     "title": "Gets a single Mail",
31164     "examples": [
31165       {
31166         "title": "Example usage:",
31167         "content": "curl https://{domain}/api/voice/mails/{id} -v -u {name}:{password}",
31168         "type": "json"
31169       }
31170     ],
31171     "name": "ShowMails",
31172     "group": "Voice_Mails",
31173     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31174     "version": "0.0.0",
31175     "filename": "server/api/voiceMail/index.js",
31176     "groupTitle": "Voice_Mails"
31177   },
31178   {
31179     "type": "get",
31180     "url": "/api/voice/mails/{id}/messages",
31181     "title": "Gets voice mail messages",
31182     "examples": [
31183       {
31184         "title": "Example usage:",
31185         "content": "curl https://{domain}/api/voice/mails/{id}/messages -v -u {name}:{password} -X GET",
31186         "type": "json"
31187       }
31188     ],
31189     "name": "getMessages",
31190     "group": "Voice_Mails",
31191     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31192     "version": "0.0.0",
31193     "filename": "server/api/voiceMail/index.js",
31194     "groupTitle": "Voice_Mails"
31195   },
31196   {
31197     "type": "put",
31198     "url": "/api/voice/mails/{id}",
31199     "title": "Update an existing Mail",
31200     "examples": [
31201       {
31202         "title": "Example usage:",
31203         "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",
31204         "type": "json"
31205       }
31206     ],
31207     "name": "updateMails",
31208     "group": "Voice_Mails",
31209     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31210     "version": "0.0.0",
31211     "filename": "server/api/voiceMail/index.js",
31212     "groupTitle": "Voice_Mails"
31213   },
31214   {
31215     "type": "post",
31216     "url": "/api/voice/mails/messages",
31217     "title": "Creates a new Message",
31218     "examples": [
31219       {
31220         "title": "Example usage:",
31221         "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",
31222         "type": "json"
31223       }
31224     ],
31225     "name": "CreateMessages",
31226     "group": "Voice_Messages",
31227     "parameter": {
31228       "fields": {
31229         "Body": [
31230           {
31231             "group": "Body",
31232             "type": "Virtual",
31233             "optional": true,
31234             "field": "name",
31235             "description": ""
31236           },
31237           {
31238             "group": "Body",
31239             "type": "Integer",
31240             "optional": false,
31241             "field": "msgnum",
31242             "description": ""
31243           },
31244           {
31245             "group": "Body",
31246             "type": "String",
31247             "optional": true,
31248             "field": "dir",
31249             "description": ""
31250           },
31251           {
31252             "group": "Body",
31253             "type": "String",
31254             "optional": true,
31255             "field": "context",
31256             "description": ""
31257           },
31258           {
31259             "group": "Body",
31260             "type": "String",
31261             "optional": true,
31262             "field": "macrocontext",
31263             "description": ""
31264           },
31265           {
31266             "group": "Body",
31267             "type": "String",
31268             "optional": true,
31269             "field": "callerid",
31270             "description": ""
31271           },
31272           {
31273             "group": "Body",
31274             "type": "String",
31275             "optional": true,
31276             "field": "origtime",
31277             "description": ""
31278           },
31279           {
31280             "group": "Body",
31281             "type": "String",
31282             "optional": true,
31283             "field": "duration",
31284             "description": ""
31285           },
31286           {
31287             "group": "Body",
31288             "type": "String",
31289             "optional": true,
31290             "field": "mailboxuser",
31291             "description": ""
31292           },
31293           {
31294             "group": "Body",
31295             "type": "String",
31296             "optional": true,
31297             "field": "mailboxcontext",
31298             "description": ""
31299           },
31300           {
31301             "group": "Body",
31302             "type": "Blob",
31303             "optional": true,
31304             "field": "recording",
31305             "description": ""
31306           },
31307           {
31308             "group": "Body",
31309             "type": "String",
31310             "optional": true,
31311             "field": "flag",
31312             "description": ""
31313           },
31314           {
31315             "group": "Body",
31316             "type": "String",
31317             "optional": true,
31318             "field": "msg_id",
31319             "description": ""
31320           },
31321           {
31322             "group": "Body",
31323             "type": "String",
31324             "optional": true,
31325             "field": "stamp",
31326             "description": ""
31327           }
31328         ]
31329       }
31330     },
31331     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31332     "version": "0.0.0",
31333     "filename": "server/api/voiceMailMessage/index.js",
31334     "groupTitle": "Voice_Messages"
31335   },
31336   {
31337     "type": "delete",
31338     "url": "/api/voice/mails/messages/{id}",
31339     "title": "Deletes a Message",
31340     "examples": [
31341       {
31342         "title": "Example usage:",
31343         "content": "curl https://{domain}/api/voice/mails/messages/{id} -v -u {name}:{password} -X DELETE",
31344         "type": "json"
31345       }
31346     ],
31347     "name": "DeleteMessages",
31348     "group": "Voice_Messages",
31349     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31350     "version": "0.0.0",
31351     "filename": "server/api/voiceMailMessage/index.js",
31352     "groupTitle": "Voice_Messages"
31353   },
31354   {
31355     "type": "get",
31356     "url": "/api/voice/mails/messages",
31357     "title": "Gets a list of Messages",
31358     "examples": [
31359       {
31360         "title": "Example usage:",
31361         "content": "curl https://{domain}/api/voice/mails/messages -v -u {name}:{password}",
31362         "type": "json"
31363       }
31364     ],
31365     "name": "GetMessages",
31366     "group": "Voice_Messages",
31367     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
31368     "version": "0.0.0",
31369     "filename": "server/api/voiceMailMessage/index.js",
31370     "groupTitle": "Voice_Messages"
31371   },
31372   {
31373     "type": "get",
31374     "url": "/api/voice/mails/messages/{id}",
31375     "title": "Gets a single Message",
31376     "examples": [
31377       {
31378         "title": "Example usage:",
31379         "content": "curl https://{domain}/api/voice/mails/messages/{id} -v -u {name}:{password}",
31380         "type": "json"
31381       }
31382     ],
31383     "name": "ShowMessages",
31384     "group": "Voice_Messages",
31385     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31386     "version": "0.0.0",
31387     "filename": "server/api/voiceMailMessage/index.js",
31388     "groupTitle": "Voice_Messages"
31389   },
31390   {
31391     "type": "get",
31392     "url": "voice/mails/messages/{id}/download",
31393     "title": "Download Voice Message",
31394     "examples": [
31395       {
31396         "title": "Example usage:",
31397         "content": "curl https://{domain}voice/mails/messages/{id}/download -v -u {name}:{password} -X GET",
31398         "type": "json"
31399       }
31400     ],
31401     "name": "download",
31402     "group": "Voice_Messages",
31403     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31404     "version": "0.0.0",
31405     "filename": "server/api/voiceMailMessage/index.js",
31406     "groupTitle": "Voice_Messages"
31407   },
31408   {
31409     "type": "put",
31410     "url": "/api/voice/mails/messages/{id}",
31411     "title": "Update an existing Message",
31412     "examples": [
31413       {
31414         "title": "Example usage:",
31415         "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",
31416         "type": "json"
31417       }
31418     ],
31419     "name": "updateMessages",
31420     "group": "Voice_Messages",
31421     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31422     "version": "0.0.0",
31423     "filename": "server/api/voiceMailMessage/index.js",
31424     "groupTitle": "Voice_Messages"
31425   },
31426   {
31427     "type": "post",
31428     "url": "/api/voice/prefixes/{id}/teams",
31429     "title": "Add teams to voice prefix",
31430     "examples": [
31431       {
31432         "title": "Example usage:",
31433         "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",
31434         "type": "json"
31435       }
31436     ],
31437     "name": "AddTeams",
31438     "group": "Voice_Prefix",
31439     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31440     "version": "0.0.0",
31441     "filename": "server/api/voicePrefix/index.js",
31442     "groupTitle": "Voice_Prefix"
31443   },
31444   {
31445     "type": "get",
31446     "url": "/api/voice/prefixes/{id}/teams",
31447     "title": "Gets voice prefix team",
31448     "examples": [
31449       {
31450         "title": "Example usage:",
31451         "content": "curl https://{domain}/api/voice/prefixes/{id}/teams -v -u {name}:{password}  -X GET",
31452         "type": "json"
31453       }
31454     ],
31455     "name": "GetTeams",
31456     "group": "Voice_Prefix",
31457     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31458     "version": "0.0.0",
31459     "filename": "server/api/voicePrefix/index.js",
31460     "groupTitle": "Voice_Prefix"
31461   },
31462   {
31463     "type": "post",
31464     "url": "/api/voice/prefixes/{id}/users",
31465     "title": "Add agents to a prefix",
31466     "examples": [
31467       {
31468         "title": "Example usage:",
31469         "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",
31470         "type": "json"
31471       }
31472     ],
31473     "name": "AddAgents",
31474     "group": "Voice_Prefixes",
31475     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31476     "version": "0.0.0",
31477     "filename": "server/api/voicePrefix/index.js",
31478     "groupTitle": "Voice_Prefixes"
31479   },
31480   {
31481     "type": "delete",
31482     "url": "/api/voice/prefixes/{id}",
31483     "title": "Deletes a Prefix",
31484     "examples": [
31485       {
31486         "title": "Example usage:",
31487         "content": "curl https://{domain}/api/voice/prefixes/{id} -v -u {name}:{password} -X DELETE",
31488         "type": "json"
31489       }
31490     ],
31491     "name": "DeletePrefixes",
31492     "group": "Voice_Prefixes",
31493     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31494     "version": "0.0.0",
31495     "filename": "server/api/voicePrefix/index.js",
31496     "groupTitle": "Voice_Prefixes"
31497   },
31498   {
31499     "type": "get",
31500     "url": "/api/voice/prefixes/describe",
31501     "title": "Gets table info about Prefixes",
31502     "examples": [
31503       {
31504         "title": "Example usage:",
31505         "content": "curl https://{domain}/api/voice/prefixes/describe -v -u {name}:{password}",
31506         "type": "json"
31507       }
31508     ],
31509     "name": "DescribePrefixes",
31510     "group": "Voice_Prefixes",
31511     "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>",
31512     "version": "0.0.0",
31513     "filename": "server/api/voicePrefix/index.js",
31514     "groupTitle": "Voice_Prefixes"
31515   },
31516   {
31517     "type": "get",
31518     "url": "/api/voice/prefixes/{id}/users",
31519     "title": "Gets agents from prefix",
31520     "examples": [
31521       {
31522         "title": "Example usage:",
31523         "content": "curl https://{domain}/api/voice/prefixes/{id}/users -v -u {name}:{password} -X GET",
31524         "type": "json"
31525       }
31526     ],
31527     "name": "GetAgents",
31528     "group": "Voice_Prefixes",
31529     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31530     "version": "0.0.0",
31531     "filename": "server/api/voicePrefix/index.js",
31532     "groupTitle": "Voice_Prefixes"
31533   },
31534   {
31535     "type": "get",
31536     "url": "/api/voice/prefixes",
31537     "title": "Gets a list of Prefixes",
31538     "examples": [
31539       {
31540         "title": "Example usage:",
31541         "content": "curl https://{domain}/api/voice/prefixes -v -u {name}:{password}",
31542         "type": "json"
31543       }
31544     ],
31545     "name": "GetPrefixes",
31546     "group": "Voice_Prefixes",
31547     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
31548     "version": "0.0.0",
31549     "filename": "server/api/voicePrefix/index.js",
31550     "groupTitle": "Voice_Prefixes"
31551   },
31552   {
31553     "type": "delete",
31554     "url": "/api/voice/prefixes/{id}/users",
31555     "title": "Removes agents from a prefix",
31556     "examples": [
31557       {
31558         "title": "Example usage:",
31559         "content": "curl https://{domain}/api/voice/prefixes/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
31560         "type": "json"
31561       }
31562     ],
31563     "name": "RemoveAgents",
31564     "group": "Voice_Prefixes",
31565     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31566     "version": "0.0.0",
31567     "filename": "server/api/voicePrefix/index.js",
31568     "groupTitle": "Voice_Prefixes"
31569   },
31570   {
31571     "type": "get",
31572     "url": "/api/voice/prefixes/{id}",
31573     "title": "Gets a single Prefix",
31574     "examples": [
31575       {
31576         "title": "Example usage:",
31577         "content": "curl https://{domain}/api/voice/prefixes/{id} -v -u {name}:{password}",
31578         "type": "json"
31579       }
31580     ],
31581     "name": "ShowPrefixes",
31582     "group": "Voice_Prefixes",
31583     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31584     "version": "0.0.0",
31585     "filename": "server/api/voicePrefix/index.js",
31586     "groupTitle": "Voice_Prefixes"
31587   },
31588   {
31589     "type": "put",
31590     "url": "/api/voice/prefixes/{id}",
31591     "title": "Update an existing prefix",
31592     "examples": [
31593       {
31594         "title": "Example usage:",
31595         "content": "curl https://{domain}/api/voice/prefixes/{id} -v -u {name}:{password} -X PUT",
31596         "type": "json"
31597       }
31598     ],
31599     "name": "Update",
31600     "group": "Voice_Prefixes",
31601     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31602     "version": "0.0.0",
31603     "filename": "server/api/voicePrefix/index.js",
31604     "groupTitle": "Voice_Prefixes"
31605   },
31606   {
31607     "type": "post",
31608     "url": "/api/voice/prefixes",
31609     "title": "Create a prefix",
31610     "examples": [
31611       {
31612         "title": "Example usage:",
31613         "content": "curl https://{domain}/api/voice/prefixes -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
31614         "type": "json"
31615       }
31616     ],
31617     "name": "create",
31618     "group": "Voice_Prefixes",
31619     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31620     "version": "0.0.0",
31621     "filename": "server/api/voicePrefix/index.js",
31622     "groupTitle": "Voice_Prefixes"
31623   },
31624   {
31625     "type": "get",
31626     "url": "/api/voice/queues/reports/describe",
31627     "title": "Gets table info about Queue Reports",
31628     "examples": [
31629       {
31630         "title": "Example usage:",
31631         "content": "curl https://{domain}/api/voice/queues/reports/describe -v -u {name}:{password}",
31632         "type": "json"
31633       }
31634     ],
31635     "name": "DescribeQueue_Reports",
31636     "group": "Voice_Queue_Reports",
31637     "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>",
31638     "version": "0.0.0",
31639     "filename": "server/api/voiceQueueReport/index.js",
31640     "groupTitle": "Voice_Queue_Reports"
31641   },
31642   {
31643     "type": "get",
31644     "url": "/api/voice/queues/reports",
31645     "title": "Gets a list of Queue Reports",
31646     "examples": [
31647       {
31648         "title": "Example usage:",
31649         "content": "curl https://{domain}/api/voice/queues/reports -v -u {name}:{password}",
31650         "type": "json"
31651       }
31652     ],
31653     "name": "GetQueue_Reports",
31654     "group": "Voice_Queue_Reports",
31655     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
31656     "version": "0.0.0",
31657     "filename": "server/api/voiceQueueReport/index.js",
31658     "groupTitle": "Voice_Queue_Reports"
31659   },
31660   {
31661     "type": "get",
31662     "url": "/api/voice/queues/reports/{id}",
31663     "title": "Gets a single Queue Report",
31664     "examples": [
31665       {
31666         "title": "Example usage:",
31667         "content": "curl https://{domain}/api/voice/queues/reports/{id} -v -u {name}:{password}",
31668         "type": "json"
31669       }
31670     ],
31671     "name": "ShowQueue_Reports",
31672     "group": "Voice_Queue_Reports",
31673     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31674     "version": "0.0.0",
31675     "filename": "server/api/voiceQueueReport/index.js",
31676     "groupTitle": "Voice_Queue_Reports"
31677   },
31678   {
31679     "type": "get",
31680     "url": "/api/voice/queues/reports/index",
31681     "title": "Get Voice Queues Report",
31682     "examples": [
31683       {
31684         "title": "Example usage:",
31685         "content": "curl https://{domain}/api/voice/queues/reports/index -v -u {name}:{password} -X GET",
31686         "type": "json"
31687       }
31688     ],
31689     "name": "getVoiceQueuesReport",
31690     "group": "Voice_Queue_Reports",
31691     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31692     "version": "0.0.0",
31693     "filename": "server/api/voiceQueueReport/index.js",
31694     "groupTitle": "Voice_Queue_Reports"
31695   },
31696   {
31697     "type": "post",
31698     "url": "/api/voice/queues/{id}/users",
31699     "title": "Add agents to queue",
31700     "examples": [
31701       {
31702         "title": "Example usage:",
31703         "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",
31704         "type": "json"
31705       }
31706     ],
31707     "name": "AddAgents",
31708     "group": "Voice_Queues",
31709     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31710     "version": "0.0.0",
31711     "filename": "server/api/voiceQueue/index.js",
31712     "groupTitle": "Voice_Queues"
31713   },
31714   {
31715     "type": "post",
31716     "url": "/api/voice/queues/{id}/blacklists",
31717     "title": "Add blacklists to a queue",
31718     "examples": [
31719       {
31720         "title": "Example usage:",
31721         "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",
31722         "type": "json"
31723       }
31724     ],
31725     "name": "AddBlackLists",
31726     "group": "Voice_Queues",
31727     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31728     "version": "0.0.0",
31729     "filename": "server/api/voiceQueue/index.js",
31730     "groupTitle": "Voice_Queues"
31731   },
31732   {
31733     "type": "post",
31734     "url": "/api/voice/queues/{id}/lists",
31735     "title": "Add lists to a queue",
31736     "examples": [
31737       {
31738         "title": "Example usage:",
31739         "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",
31740         "type": "json"
31741       }
31742     ],
31743     "name": "AddLists",
31744     "group": "Voice_Queues",
31745     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31746     "version": "0.0.0",
31747     "filename": "server/api/voiceQueue/index.js",
31748     "groupTitle": "Voice_Queues"
31749   },
31750   {
31751     "type": "post",
31752     "url": "/api/voice/queues/{id}/teams",
31753     "title": "Add teams to queue",
31754     "examples": [
31755       {
31756         "title": "Example usage:",
31757         "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",
31758         "type": "json"
31759       }
31760     ],
31761     "name": "AddTeams",
31762     "group": "Voice_Queues",
31763     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31764     "version": "0.0.0",
31765     "filename": "server/api/voiceQueue/index.js",
31766     "groupTitle": "Voice_Queues"
31767   },
31768   {
31769     "type": "post",
31770     "url": "/api/voice/queues/clone",
31771     "title": "Clone an existing Queue",
31772     "examples": [
31773       {
31774         "title": "Example usage:",
31775         "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",
31776         "type": "json"
31777       }
31778     ],
31779     "name": "CloneQueues",
31780     "group": "Voice_Queues",
31781     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31782     "version": "0.0.0",
31783     "filename": "server/api/voiceQueue/index.js",
31784     "groupTitle": "Voice_Queues"
31785   },
31786   {
31787     "type": "post",
31788     "url": "/api/voice/queues",
31789     "title": "Creates a new Queue",
31790     "examples": [
31791       {
31792         "title": "Example usage:",
31793         "content": "curl https://{domain}/api/voice/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
31794         "type": "json"
31795       }
31796     ],
31797     "name": "CreateQueues",
31798     "group": "Voice_Queues",
31799     "parameter": {
31800       "fields": {
31801         "Body": [
31802           {
31803             "group": "Body",
31804             "type": "String",
31805             "optional": false,
31806             "field": "name",
31807             "description": ""
31808           },
31809           {
31810             "group": "Body",
31811             "type": "String",
31812             "allowedValues": [
31813               "\"inbound\"",
31814               "\"outbound\""
31815             ],
31816             "optional": false,
31817             "field": "type",
31818             "description": ""
31819           },
31820           {
31821             "group": "Body",
31822             "type": "String",
31823             "optional": true,
31824             "field": "musiconhold",
31825             "description": ""
31826           },
31827           {
31828             "group": "Body",
31829             "type": "String",
31830             "optional": true,
31831             "field": "announce",
31832             "description": ""
31833           },
31834           {
31835             "group": "Body",
31836             "type": "String",
31837             "allowedValues": [
31838               "\"rr\"",
31839               "\"ringall\"",
31840               "\"leastrecent\"",
31841               "\"fewestcalls\"",
31842               "\"random\"",
31843               "\"rrmemory\"",
31844               "\"linear\"",
31845               "\"wrandom\"",
31846               "\"rrordered\""
31847             ],
31848             "optional": false,
31849             "field": "strategy",
31850             "description": ""
31851           },
31852           {
31853             "group": "Body",
31854             "type": "Integer",
31855             "optional": true,
31856             "field": "servicelevel",
31857             "description": ""
31858           },
31859           {
31860             "group": "Body",
31861             "type": "String",
31862             "optional": true,
31863             "field": "context",
31864             "description": ""
31865           },
31866           {
31867             "group": "Body",
31868             "type": "Integer",
31869             "optional": true,
31870             "field": "penaltymemberslimit",
31871             "description": ""
31872           },
31873           {
31874             "group": "Body",
31875             "type": "Integer",
31876             "optional": true,
31877             "field": "timeout",
31878             "description": ""
31879           },
31880           {
31881             "group": "Body",
31882             "type": "Integer",
31883             "optional": true,
31884             "field": "retry",
31885             "description": ""
31886           },
31887           {
31888             "group": "Body",
31889             "type": "String",
31890             "optional": true,
31891             "field": "timeoutpriority",
31892             "description": ""
31893           },
31894           {
31895             "group": "Body",
31896             "type": "Integer",
31897             "optional": true,
31898             "field": "weight",
31899             "description": ""
31900           },
31901           {
31902             "group": "Body",
31903             "type": "Integer",
31904             "optional": true,
31905             "field": "wrapuptime",
31906             "description": ""
31907           },
31908           {
31909             "group": "Body",
31910             "type": "String",
31911             "allowedValues": [
31912               "\"yes\"",
31913               "\"no\""
31914             ],
31915             "optional": true,
31916             "field": "autofill",
31917             "description": ""
31918           },
31919           {
31920             "group": "Body",
31921             "type": "String",
31922             "allowedValues": [
31923               "\"yes\"",
31924               "\"no\"",
31925               "\"all\""
31926             ],
31927             "optional": true,
31928             "field": "autopause",
31929             "description": ""
31930           },
31931           {
31932             "group": "Body",
31933             "type": "Integer",
31934             "optional": true,
31935             "field": "autopausedelay",
31936             "description": ""
31937           },
31938           {
31939             "group": "Body",
31940             "type": "String",
31941             "allowedValues": [
31942               "\"yes\"",
31943               "\"no\""
31944             ],
31945             "optional": true,
31946             "field": "autopausebusy",
31947             "description": ""
31948           },
31949           {
31950             "group": "Body",
31951             "type": "String",
31952             "allowedValues": [
31953               "\"yes\"",
31954               "\"no\""
31955             ],
31956             "optional": true,
31957             "field": "autopauseunavail",
31958             "description": ""
31959           },
31960           {
31961             "group": "Body",
31962             "type": "Integer",
31963             "optional": true,
31964             "field": "maxlen",
31965             "description": ""
31966           },
31967           {
31968             "group": "Body",
31969             "type": "String",
31970             "allowedValues": [
31971               "\"yes\"",
31972               "\"no\""
31973             ],
31974             "optional": true,
31975             "field": "setinterfacevar",
31976             "description": ""
31977           },
31978           {
31979             "group": "Body",
31980             "type": "String",
31981             "allowedValues": [
31982               "\"yes\"",
31983               "\"no\""
31984             ],
31985             "optional": true,
31986             "field": "setqueueentryvar",
31987             "description": ""
31988           },
31989           {
31990             "group": "Body",
31991             "type": "String",
31992             "allowedValues": [
31993               "\"yes\"",
31994               "\"no\""
31995             ],
31996             "optional": true,
31997             "field": "setqueuevar",
31998             "description": ""
31999           },
32000           {
32001             "group": "Body",
32002             "type": "String",
32003             "allowedValues": [
32004               "\"yes\"",
32005               "\"no\""
32006             ],
32007             "optional": true,
32008             "field": "eventmemberstatus",
32009             "description": ""
32010           },
32011           {
32012             "group": "Body",
32013             "type": "String",
32014             "optional": true,
32015             "field": "membermacro",
32016             "description": ""
32017           },
32018           {
32019             "group": "Body",
32020             "type": "String",
32021             "optional": true,
32022             "field": "membergosub",
32023             "description": ""
32024           },
32025           {
32026             "group": "Body",
32027             "type": "Integer",
32028             "optional": true,
32029             "field": "announce_frequency",
32030             "description": ""
32031           },
32032           {
32033             "group": "Body",
32034             "type": "Integer",
32035             "optional": true,
32036             "field": "min_announce_frequency",
32037             "description": ""
32038           },
32039           {
32040             "group": "Body",
32041             "type": "Integer",
32042             "optional": true,
32043             "field": "periodic_announce_frequency",
32044             "description": ""
32045           },
32046           {
32047             "group": "Body",
32048             "type": "String",
32049             "allowedValues": [
32050               "\"yes\"",
32051               "\"no\""
32052             ],
32053             "optional": true,
32054             "field": "random_periodic_announce",
32055             "description": ""
32056           },
32057           {
32058             "group": "Body",
32059             "type": "String",
32060             "allowedValues": [
32061               "\"yes\"",
32062               "\"no\""
32063             ],
32064             "optional": true,
32065             "field": "relative_periodic_announce",
32066             "description": ""
32067           },
32068           {
32069             "group": "Body",
32070             "type": "String",
32071             "allowedValues": [
32072               "\"yes\"",
32073               "\"no\"",
32074               "\"once\""
32075             ],
32076             "optional": true,
32077             "field": "announce_holdtime",
32078             "description": ""
32079           },
32080           {
32081             "group": "Body",
32082             "type": "String",
32083             "optional": true,
32084             "field": "announce_position",
32085             "description": ""
32086           },
32087           {
32088             "group": "Body",
32089             "type": "String",
32090             "allowedValues": [
32091               "\"yes\"",
32092               "\"no\""
32093             ],
32094             "optional": true,
32095             "field": "announce_to_first_user",
32096             "description": ""
32097           },
32098           {
32099             "group": "Body",
32100             "type": "Integer",
32101             "optional": true,
32102             "field": "announce_position_limit",
32103             "description": ""
32104           },
32105           {
32106             "group": "Body",
32107             "type": "String",
32108             "allowedValues": [
32109               "\"0\"",
32110               "\"5\"",
32111               "\"10\"",
32112               "\"15\"",
32113               "\"20\"",
32114               "\"30\""
32115             ],
32116             "optional": true,
32117             "field": "announce_round_seconds",
32118             "description": ""
32119           },
32120           {
32121             "group": "Body",
32122             "type": "String",
32123             "optional": true,
32124             "field": "monitor_format",
32125             "description": ""
32126           },
32127           {
32128             "group": "Body",
32129             "type": "String",
32130             "optional": true,
32131             "field": "monitor_type",
32132             "description": ""
32133           },
32134           {
32135             "group": "Body",
32136             "type": "String",
32137             "optional": true,
32138             "field": "queue_youarenext",
32139             "description": ""
32140           },
32141           {
32142             "group": "Body",
32143             "type": "String",
32144             "optional": true,
32145             "field": "queue_thereare",
32146             "description": ""
32147           },
32148           {
32149             "group": "Body",
32150             "type": "String",
32151             "optional": true,
32152             "field": "queue_callswaiting",
32153             "description": ""
32154           },
32155           {
32156             "group": "Body",
32157             "type": "String",
32158             "optional": true,
32159             "field": "queue_holdtime",
32160             "description": ""
32161           },
32162           {
32163             "group": "Body",
32164             "type": "String",
32165             "optional": true,
32166             "field": "queue_minute",
32167             "description": ""
32168           },
32169           {
32170             "group": "Body",
32171             "type": "String",
32172             "optional": true,
32173             "field": "queue_minutes",
32174             "description": ""
32175           },
32176           {
32177             "group": "Body",
32178             "type": "String",
32179             "optional": true,
32180             "field": "queue_seconds",
32181             "description": ""
32182           },
32183           {
32184             "group": "Body",
32185             "type": "String",
32186             "optional": true,
32187             "field": "queue_thankyou",
32188             "description": ""
32189           },
32190           {
32191             "group": "Body",
32192             "type": "String",
32193             "optional": true,
32194             "field": "queue_reporthold",
32195             "description": ""
32196           },
32197           {
32198             "group": "Body",
32199             "type": "String",
32200             "optional": true,
32201             "field": "queue_quantity1",
32202             "description": ""
32203           },
32204           {
32205             "group": "Body",
32206             "type": "String",
32207             "optional": true,
32208             "field": "queue_quantity2",
32209             "description": ""
32210           },
32211           {
32212             "group": "Body",
32213             "type": "String",
32214             "optional": true,
32215             "field": "queue_periodic_announce",
32216             "description": ""
32217           },
32218           {
32219             "group": "Body",
32220             "type": "String",
32221             "optional": true,
32222             "field": "queue_less_than",
32223             "description": ""
32224           },
32225           {
32226             "group": "Body",
32227             "type": "Text",
32228             "optional": true,
32229             "field": "periodic_announce",
32230             "description": ""
32231           },
32232           {
32233             "group": "Body",
32234             "type": "String",
32235             "optional": true,
32236             "field": "joinempty",
32237             "description": ""
32238           },
32239           {
32240             "group": "Body",
32241             "type": "String",
32242             "optional": true,
32243             "field": "leavewhenempty",
32244             "description": ""
32245           },
32246           {
32247             "group": "Body",
32248             "type": "String",
32249             "allowedValues": [
32250               "\"yes\"",
32251               "\"no\""
32252             ],
32253             "optional": true,
32254             "field": "reportholdtime",
32255             "description": ""
32256           },
32257           {
32258             "group": "Body",
32259             "type": "String",
32260             "allowedValues": [
32261               "\"yes\"",
32262               "\"no\""
32263             ],
32264             "optional": true,
32265             "field": "ringinuse",
32266             "description": ""
32267           },
32268           {
32269             "group": "Body",
32270             "type": "Integer",
32271             "optional": true,
32272             "field": "memberdelay",
32273             "description": ""
32274           },
32275           {
32276             "group": "Body",
32277             "type": "String",
32278             "allowedValues": [
32279               "\"yes\"",
32280               "\"no\""
32281             ],
32282             "optional": true,
32283             "field": "timeoutrestart",
32284             "description": ""
32285           },
32286           {
32287             "group": "Body",
32288             "type": "String",
32289             "optional": true,
32290             "field": "defaultrule",
32291             "description": ""
32292           },
32293           {
32294             "group": "Body",
32295             "type": "String",
32296             "optional": true,
32297             "field": "description",
32298             "description": ""
32299           },
32300           {
32301             "group": "Body",
32302             "type": "Boolean",
32303             "optional": true,
32304             "field": "acw",
32305             "description": ""
32306           },
32307           {
32308             "group": "Body",
32309             "type": "Integer",
32310             "optional": true,
32311             "field": "acwTimeout",
32312             "description": ""
32313           },
32314           {
32315             "group": "Body",
32316             "type": "Boolean",
32317             "optional": true,
32318             "field": "dialActive",
32319             "description": "<p>Active/Disactive Campaign</p>"
32320           },
32321           {
32322             "group": "Body",
32323             "type": "String",
32324             "allowedValues": [
32325               "\"preview\"",
32326               "\"progressive\"",
32327               "\"power\"",
32328               "\"predictive\"",
32329               "\"booked\""
32330             ],
32331             "optional": true,
32332             "field": "dialMethod",
32333             "description": "<p>Dial Method.</p>"
32334           },
32335           {
32336             "group": "Body",
32337             "type": "Integer",
32338             "optional": true,
32339             "field": "dialLimitChannel",
32340             "description": "<p>Max 9999 channels, 0 means unlimited.</p>"
32341           },
32342           {
32343             "group": "Body",
32344             "type": "Integer",
32345             "optional": true,
32346             "field": "dialLimitQueue",
32347             "description": "<p>Max 9999 member in queue(min:1, max:9999), 0 means unlimited.</p>"
32348           },
32349           {
32350             "group": "Body",
32351             "type": "Float",
32352             "optional": true,
32353             "field": "dialPowerLevel",
32354             "description": "<p>Power Level: Calls for agents (min:1, max:10).</p>"
32355           },
32356           {
32357             "group": "Body",
32358             "type": "String",
32359             "allowedValues": [
32360               "\"agentBusyFactor\"",
32361               "\"dropRate\""
32362             ],
32363             "optional": true,
32364             "field": "dialPredictiveOptimization",
32365             "description": "<p>Only for predictive method.</p>"
32366           },
32367           {
32368             "group": "Body",
32369             "type": "Float",
32370             "optional": true,
32371             "field": "dialPredictiveOptimizationPercentage",
32372             "description": "<p>Predictive Optimization Percentage (min: 1, max: 95)</p>"
32373           },
32374           {
32375             "group": "Body",
32376             "type": "Integer",
32377             "optional": true,
32378             "field": "dialPredictiveInterval",
32379             "description": "<p>Interval Predictive Minutes (min:5 max:30)</p>"
32380           },
32381           {
32382             "group": "Body",
32383             "type": "String",
32384             "optional": true,
32385             "field": "dialOriginateCallerIdName",
32386             "description": ""
32387           },
32388           {
32389             "group": "Body",
32390             "type": "String",
32391             "optional": true,
32392             "field": "dialOriginateCallerIdNumber",
32393             "description": ""
32394           },
32395           {
32396             "group": "Body",
32397             "type": "Integer",
32398             "optional": true,
32399             "field": "dialOriginateTimeout",
32400             "description": "<p>Originate Timeout Seconds (min:1, max:999)</p>"
32401           },
32402           {
32403             "group": "Body",
32404             "type": "String",
32405             "optional": true,
32406             "field": "dialQueueOptions",
32407             "description": "<p>https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_Queue</p>"
32408           },
32409           {
32410             "group": "Body",
32411             "type": "Integer",
32412             "optional": true,
32413             "field": "dialQueueTimeout",
32414             "description": "<p>Queue Timeout Seconds (min:1, max:999)</p>"
32415           },
32416           {
32417             "group": "Body",
32418             "type": "String",
32419             "optional": true,
32420             "field": "dialQueueProject",
32421             "description": "<p>AGI queue option (use: agi://127.0.0.1/square,&lt;project_name&gt;)</p>"
32422           },
32423           {
32424             "group": "Body",
32425             "type": "Integer",
32426             "optional": true,
32427             "field": "dialCongestionMaxRetry",
32428             "description": "<p>#Congestion Retry (min:1, max:999)</p>"
32429           },
32430           {
32431             "group": "Body",
32432             "type": "Integer",
32433             "optional": true,
32434             "field": "dialCongestionRetryFrequency",
32435             "description": "<p>Congestion Retry Frequency Minutes (min:1, max:99999)</p>"
32436           },
32437           {
32438             "group": "Body",
32439             "type": "Integer",
32440             "optional": true,
32441             "field": "dialBusyMaxRetry",
32442             "description": "<p>#Busy Retry (min:1, max:999)</p>"
32443           },
32444           {
32445             "group": "Body",
32446             "type": "Integer",
32447             "optional": true,
32448             "field": "dialBusyRetryFrequency",
32449             "description": "<p>Busy Retry Frequency Minutes (min:1, max:99999)</p>"
32450           },
32451           {
32452             "group": "Body",
32453             "type": "Integer",
32454             "optional": true,
32455             "field": "dialNoAnswerMaxRetry",
32456             "description": "<p>#NoAnswer Retry (min:1, max:999)</p>"
32457           },
32458           {
32459             "group": "Body",
32460             "type": "Integer",
32461             "optional": true,
32462             "field": "dialNoAnswerRetryFrequency",
32463             "description": "<p>NoAnswer Retry Frequency Minutes (min:1, max:99999)</p>"
32464           },
32465           {
32466             "group": "Body",
32467             "type": "Integer",
32468             "optional": true,
32469             "field": "dialGlobalMaxRetry",
32470             "description": "<p>#Global Max Retry (min:1, max:999)</p>"
32471           },
32472           {
32473             "group": "Body",
32474             "type": "String",
32475             "optional": true,
32476             "field": "dialTimezone",
32477             "description": ""
32478           },
32479           {
32480             "group": "Body",
32481             "type": "String",
32482             "optional": true,
32483             "field": "dialGlobalInterval",
32484             "description": ""
32485           },
32486           {
32487             "group": "Body",
32488             "type": "String",
32489             "optional": true,
32490             "field": "dialPrefix",
32491             "description": ""
32492           },
32493           {
32494             "group": "Body",
32495             "type": "String",
32496             "allowedValues": [
32497               "\"always\"",
32498               "\"never\"",
32499               "\"onlyIfOpen\""
32500             ],
32501             "optional": true,
32502             "field": "dialCheckDuplicateType",
32503             "description": ""
32504           },
32505           {
32506             "group": "Body",
32507             "type": "Boolean",
32508             "optional": true,
32509             "field": "dialAMDActive",
32510             "description": "<p>Active/Disactive AMD</p>"
32511           },
32512           {
32513             "group": "Body",
32514             "type": "Integer",
32515             "optional": true,
32516             "field": "dialAMDInitialSilence",
32517             "description": "<p>#AMD Initial Silence</p>"
32518           },
32519           {
32520             "group": "Body",
32521             "type": "Integer",
32522             "optional": true,
32523             "field": "dialAMDGreeting",
32524             "description": "<p>#AMD Greeting</p>"
32525           },
32526           {
32527             "group": "Body",
32528             "type": "Integer",
32529             "optional": true,
32530             "field": "dialAMDAfterGreetingSilence",
32531             "description": "<p>#AMD After Greeting Silence</p>"
32532           },
32533           {
32534             "group": "Body",
32535             "type": "Integer",
32536             "optional": true,
32537             "field": "dialAMDTotalAnalysisTime",
32538             "description": "<p>#AMD Total Analysis Time</p>"
32539           },
32540           {
32541             "group": "Body",
32542             "type": "Integer",
32543             "optional": true,
32544             "field": "dialAMDMinWordLength",
32545             "description": "<p>#AMD Min Word Length</p>"
32546           },
32547           {
32548             "group": "Body",
32549             "type": "Integer",
32550             "optional": true,
32551             "field": "dialAMDBetweenWordsSilence",
32552             "description": "<p>#AMD Between Words Silence</p>"
32553           },
32554           {
32555             "group": "Body",
32556             "type": "Integer",
32557             "optional": true,
32558             "field": "dialAMDMaximumNumberOfWords",
32559             "description": "<p>#AMD Maximum Number Of Words</p>"
32560           },
32561           {
32562             "group": "Body",
32563             "type": "Integer",
32564             "optional": true,
32565             "field": "dialAMDSilenceThreshold",
32566             "description": "<p>#AMD Silence Threshold (min:0, max:32767)</p>"
32567           },
32568           {
32569             "group": "Body",
32570             "type": "Integer",
32571             "optional": true,
32572             "field": "dialAMDMaximumWordLength",
32573             "description": "<p>#AMD Maximum Word Length</p>"
32574           },
32575           {
32576             "group": "Body",
32577             "type": "Integer",
32578             "optional": true,
32579             "field": "dialRecallMeTimeout",
32580             "description": "<p>#RecallMe Timeout (min:1)</p>"
32581           },
32582           {
32583             "group": "Body",
32584             "type": "Boolean",
32585             "optional": true,
32586             "field": "dialRecallInQueue",
32587             "description": "<p>Active/Disactive Recall In Queue</p>"
32588           },
32589           {
32590             "group": "Body",
32591             "type": "String",
32592             "allowedValues": [
32593               "\"DESC\"",
32594               "\"ASC\""
32595             ],
32596             "optional": true,
32597             "field": "dialOrderByScheduledAt",
32598             "description": ""
32599           },
32600           {
32601             "group": "Body",
32602             "type": "String",
32603             "optional": true,
32604             "field": "dialQueueProject2",
32605             "description": "<p>AGI queue option (use: agi://127.0.0.1/square,&lt;project_name&gt;)</p>"
32606           },
32607           {
32608             "group": "Body",
32609             "type": "Boolean",
32610             "optional": true,
32611             "field": "dialAgiAfterHangupClient",
32612             "description": ""
32613           },
32614           {
32615             "group": "Body",
32616             "type": "Boolean",
32617             "optional": true,
32618             "field": "dialAgiAfterHangupAgent",
32619             "description": ""
32620           },
32621           {
32622             "group": "Body",
32623             "type": "Integer",
32624             "optional": true,
32625             "field": "dialRandomLastDigitCallerIdNumber",
32626             "description": "<p>Random Last Digit (min:1, max:15)</p>"
32627           },
32628           {
32629             "group": "Body",
32630             "type": "Integer",
32631             "optional": true,
32632             "field": "dialCutDigit",
32633             "description": "<p>Cut Digit (min:1, max:15)</p>"
32634           },
32635           {
32636             "group": "Body",
32637             "type": "Integer",
32638             "optional": true,
32639             "field": "dialNoSuchNumberMaxRetry",
32640             "description": "<p>#NoSuchNumber Retry (min:1, max:999)</p>"
32641           },
32642           {
32643             "group": "Body",
32644             "type": "Integer",
32645             "optional": true,
32646             "field": "dialNoSuchNumberRetryFrequency",
32647             "description": "<p>NoSuchNumber Retry Frequency Minutes (min:1, max:99999)</p>"
32648           },
32649           {
32650             "group": "Body",
32651             "type": "Integer",
32652             "optional": true,
32653             "field": "dialDropMaxRetry",
32654             "description": "<p>#Drop Retry (min:1, max:999)</p>"
32655           },
32656           {
32657             "group": "Body",
32658             "type": "Integer",
32659             "optional": true,
32660             "field": "dialDropRetryFrequency",
32661             "description": "<p>Drop Retry Frequency Minutes (min:1, max:99999)</p>"
32662           },
32663           {
32664             "group": "Body",
32665             "type": "Integer",
32666             "optional": true,
32667             "field": "dialAbandonedMaxRetry",
32668             "description": "<p>#Abandoned Retry (min:1, max:999)</p>"
32669           },
32670           {
32671             "group": "Body",
32672             "type": "Integer",
32673             "optional": true,
32674             "field": "dialAbandonedRetryFrequency",
32675             "description": "<p>Abandoned Retry Frequency Minutes (min:1, max:99999)</p>"
32676           },
32677           {
32678             "group": "Body",
32679             "type": "Integer",
32680             "optional": true,
32681             "field": "dialMachineMaxRetry",
32682             "description": "<p>#Machine Retry (min:1, max:999)</p>"
32683           },
32684           {
32685             "group": "Body",
32686             "type": "Integer",
32687             "optional": true,
32688             "field": "dialMachineRetryFrequency",
32689             "description": "<p>Machine Retry Frequency Minutes (min:1, max:99999)</p>"
32690           },
32691           {
32692             "group": "Body",
32693             "type": "Integer",
32694             "optional": true,
32695             "field": "dialAgentRejectMaxRetry",
32696             "description": "<p>#AgentReject Retry (min:1, max:999)</p>"
32697           },
32698           {
32699             "group": "Body",
32700             "type": "Integer",
32701             "optional": true,
32702             "field": "dialAgentRejectRetryFrequency",
32703             "description": "<p>AgentReject Retry Frequency Minutes (min:1, max:99999)</p>"
32704           },
32705           {
32706             "group": "Body",
32707             "type": "Integer",
32708             "optional": true,
32709             "field": "mandatoryDispositionPauseId",
32710             "description": "<p>Status to put when mandatory disposition is enabled</p>"
32711           },
32712           {
32713             "group": "Body",
32714             "type": "Boolean",
32715             "optional": true,
32716             "field": "mandatoryDisposition",
32717             "description": "<p>Enabled/disables mandatory dispo on a queue</p>"
32718           },
32719           {
32720             "group": "Body",
32721             "type": "Integer",
32722             "optional": true,
32723             "field": "dialPredictiveIntervalMaxThreshold",
32724             "description": ""
32725           },
32726           {
32727             "group": "Body",
32728             "type": "Integer",
32729             "optional": true,
32730             "field": "dialPredictiveIntervalMinThreshold",
32731             "description": ""
32732           },
32733           {
32734             "group": "Body",
32735             "type": "Boolean",
32736             "optional": true,
32737             "field": "dialPreviewAutoRecallMe",
32738             "description": ""
32739           }
32740         ]
32741       }
32742     },
32743     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32744     "version": "0.0.0",
32745     "filename": "server/api/voiceQueue/index.js",
32746     "groupTitle": "Voice_Queues"
32747   },
32748   {
32749     "type": "delete",
32750     "url": "/api/voice/queues/{id}",
32751     "title": "Deletes a Queue",
32752     "examples": [
32753       {
32754         "title": "Example usage:",
32755         "content": "curl https://{domain}/api/voice/queues/{id} -v -u {name}:{password} -X DELETE",
32756         "type": "json"
32757       }
32758     ],
32759     "name": "DeleteQueues",
32760     "group": "Voice_Queues",
32761     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32762     "version": "0.0.0",
32763     "filename": "server/api/voiceQueue/index.js",
32764     "groupTitle": "Voice_Queues"
32765   },
32766   {
32767     "type": "get",
32768     "url": "/api/voice/queues/{id}/users",
32769     "title": "Gets queue agents",
32770     "examples": [
32771       {
32772         "title": "Example usage:",
32773         "content": "curl https://{domain}/api/voice/queues/{id}/users -v -u {name}:{password} -X GET",
32774         "type": "json"
32775       }
32776     ],
32777     "name": "GetAgents",
32778     "group": "Voice_Queues",
32779     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32780     "version": "0.0.0",
32781     "filename": "server/api/voiceQueue/index.js",
32782     "groupTitle": "Voice_Queues"
32783   },
32784   {
32785     "type": "get",
32786     "url": "/api/voice/queues/{id}/blacklists",
32787     "title": "Get queue blacklists",
32788     "examples": [
32789       {
32790         "title": "Example usage:",
32791         "content": "curl https://{domain}/api/voice/queues/{id}/blacklists -v -u {name}:{password} -X GET",
32792         "type": "json"
32793       }
32794     ],
32795     "name": "GetBlackLists",
32796     "group": "Voice_Queues",
32797     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32798     "version": "0.0.0",
32799     "filename": "server/api/voiceQueue/index.js",
32800     "groupTitle": "Voice_Queues"
32801   },
32802   {
32803     "type": "get",
32804     "url": "/api/voice/queues/{id}/finals",
32805     "title": "Gets queue hopper finals",
32806     "examples": [
32807       {
32808         "title": "Example usage:",
32809         "content": "curl https://{domain}/api/voice/queues/{id}/hopper_finals -v -u {name}:{password}  -X GET",
32810         "type": "json"
32811       }
32812     ],
32813     "name": "GetHopperFinals",
32814     "group": "Voice_Queues",
32815     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32816     "version": "0.0.0",
32817     "filename": "server/api/voiceQueue/index.js",
32818     "groupTitle": "Voice_Queues"
32819   },
32820   {
32821     "type": "get",
32822     "url": "/api/voice/queues/{id}/hopper_histories",
32823     "title": "Gets queue hopper histories",
32824     "examples": [
32825       {
32826         "title": "Example usage:",
32827         "content": "curl https://{domain}/api/voice/queues/{id}/hopper_histories -v -u {name}:{password} -X GET",
32828         "type": "json"
32829       }
32830     ],
32831     "name": "GetHopperHistories",
32832     "group": "Voice_Queues",
32833     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32834     "version": "0.0.0",
32835     "filename": "server/api/voiceQueue/index.js",
32836     "groupTitle": "Voice_Queues"
32837   },
32838   {
32839     "type": "get",
32840     "url": "/api/voice/queues/{id}/hoppers",
32841     "title": "Gets queue hoppers",
32842     "examples": [
32843       {
32844         "title": "Example usage:",
32845         "content": "curl https://{domain}/api/voice/queues/{id}/hoppers -v -u {name}:{password} -X GET",
32846         "type": "json"
32847       }
32848     ],
32849     "name": "GetHoppers",
32850     "group": "Voice_Queues",
32851     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32852     "version": "0.0.0",
32853     "filename": "server/api/voiceQueue/index.js",
32854     "groupTitle": "Voice_Queues"
32855   },
32856   {
32857     "type": "get",
32858     "url": "/api/voice/queues/{id}/lists",
32859     "title": "Get queue lists",
32860     "examples": [
32861       {
32862         "title": "Example usage:",
32863         "content": "curl https://{domain}/api/voice/queues/{id}/lists -v -u {name}:{password} -X GET",
32864         "type": "json"
32865       }
32866     ],
32867     "name": "GetLists",
32868     "group": "Voice_Queues",
32869     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32870     "version": "0.0.0",
32871     "filename": "server/api/voiceQueue/index.js",
32872     "groupTitle": "Voice_Queues"
32873   },
32874   {
32875     "type": "get",
32876     "url": "/api/voice/queues/{id}/members",
32877     "title": "Gets queue members",
32878     "examples": [
32879       {
32880         "title": "Example usage:",
32881         "content": "curl https://{domain}/api/voice/queues/{id}/members -v -u {name}:{password} -X GET",
32882         "type": "json"
32883       }
32884     ],
32885     "name": "GetMembers",
32886     "group": "Voice_Queues",
32887     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32888     "version": "0.0.0",
32889     "filename": "server/api/voiceQueue/index.js",
32890     "groupTitle": "Voice_Queues"
32891   },
32892   {
32893     "type": "get",
32894     "url": "/api/voice/queues",
32895     "title": "Gets a list of Queues",
32896     "examples": [
32897       {
32898         "title": "Example usage:",
32899         "content": "curl https://{domain}/api/voice/queues -v -u {name}:{password}",
32900         "type": "json"
32901       }
32902     ],
32903     "name": "GetQueues",
32904     "group": "Voice_Queues",
32905     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
32906     "version": "0.0.0",
32907     "filename": "server/api/voiceQueue/index.js",
32908     "groupTitle": "Voice_Queues"
32909   },
32910   {
32911     "type": "get",
32912     "url": "/api/voice/queues/{id}/teams",
32913     "title": "Gets queue team",
32914     "examples": [
32915       {
32916         "title": "Example usage:",
32917         "content": "curl https://{domain}/api/voice/queues/{id}/teams -v -u {name}:{password}  -X GET",
32918         "type": "json"
32919       }
32920     ],
32921     "name": "GetTeams",
32922     "group": "Voice_Queues",
32923     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32924     "version": "0.0.0",
32925     "filename": "server/api/voiceQueue/index.js",
32926     "groupTitle": "Voice_Queues"
32927   },
32928   {
32929     "type": "delete",
32930     "url": "/api/voice/queues/{id}/users",
32931     "title": "Removes agents from a queue",
32932     "examples": [
32933       {
32934         "title": "Example usage:",
32935         "content": "curl https://{domain}/api/voice/queues/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
32936         "type": "json"
32937       }
32938     ],
32939     "name": "RemoveAgents",
32940     "group": "Voice_Queues",
32941     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32942     "version": "0.0.0",
32943     "filename": "server/api/voiceQueue/index.js",
32944     "groupTitle": "Voice_Queues"
32945   },
32946   {
32947     "type": "delete",
32948     "url": "/api/voice/queues/{id}/blacklists",
32949     "title": "Remove blacklists from a queue",
32950     "examples": [
32951       {
32952         "title": "Example usage:",
32953         "content": "curl https://{domain}/api/voice/queues/{id}/blacklists?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
32954         "type": "json"
32955       }
32956     ],
32957     "name": "RemoveBlackLists",
32958     "group": "Voice_Queues",
32959     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32960     "version": "0.0.0",
32961     "filename": "server/api/voiceQueue/index.js",
32962     "groupTitle": "Voice_Queues"
32963   },
32964   {
32965     "type": "delete",
32966     "url": "/api/voice/queues/{id}/lists",
32967     "title": "Remove lists from a queue",
32968     "examples": [
32969       {
32970         "title": "Example usage:",
32971         "content": "curl https://{domain}/api/voice/queues/{id}/lists?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
32972         "type": "json"
32973       }
32974     ],
32975     "name": "RemoveLists",
32976     "group": "Voice_Queues",
32977     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32978     "version": "0.0.0",
32979     "filename": "server/api/voiceQueue/index.js",
32980     "groupTitle": "Voice_Queues"
32981   },
32982   {
32983     "type": "get",
32984     "url": "/api/voice/queues/{id}",
32985     "title": "Gets a single Queue",
32986     "examples": [
32987       {
32988         "title": "Example usage:",
32989         "content": "curl https://{domain}/api/voice/queues/{id} -v -u {name}:{password}",
32990         "type": "json"
32991       }
32992     ],
32993     "name": "ShowQueues",
32994     "group": "Voice_Queues",
32995     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32996     "version": "0.0.0",
32997     "filename": "server/api/voiceQueue/index.js",
32998     "groupTitle": "Voice_Queues"
32999   },
33000   {
33001     "type": "get",
33002     "url": "/api/voice/queues/{id}/blacks",
33003     "title": "Gets queue hopper blacks",
33004     "examples": [
33005       {
33006         "title": "Example usage:",
33007         "content": "curl https://{domain}/api/voice/queues/{id}/hopper_black -v -u {name}:{password}  -X GET",
33008         "type": "json"
33009       }
33010     ],
33011     "name": "getHopperBlacks",
33012     "group": "Voice_Queues",
33013     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33014     "version": "0.0.0",
33015     "filename": "server/api/voiceQueue/index.js",
33016     "groupTitle": "Voice_Queues"
33017   },
33018   {
33019     "type": "put",
33020     "url": "/api/voice/queues/{id}",
33021     "title": "Update an existing Queue",
33022     "examples": [
33023       {
33024         "title": "Example usage:",
33025         "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",
33026         "type": "json"
33027       }
33028     ],
33029     "name": "updateQueues",
33030     "group": "Voice_Queues",
33031     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33032     "version": "0.0.0",
33033     "filename": "server/api/voiceQueue/index.js",
33034     "groupTitle": "Voice_Queues"
33035   },
33036   {
33037     "type": "post",
33038     "url": "/api/voice/recordings",
33039     "title": "Creates a new Recording",
33040     "examples": [
33041       {
33042         "title": "Example usage:",
33043         "content": "curl https://{domain}/api/voice/recordings -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
33044         "type": "json"
33045       }
33046     ],
33047     "name": "CreateRecordings",
33048     "group": "Voice_Recordings",
33049     "parameter": {
33050       "fields": {
33051         "Body": [
33052           {
33053             "group": "Body",
33054             "type": "Virtual",
33055             "optional": true,
33056             "field": "format",
33057             "description": ""
33058           },
33059           {
33060             "group": "Body",
33061             "type": "String",
33062             "optional": true,
33063             "field": "uniqueid",
33064             "description": ""
33065           },
33066           {
33067             "group": "Body",
33068             "type": "String",
33069             "optional": true,
33070             "field": "channel",
33071             "description": ""
33072           },
33073           {
33074             "group": "Body",
33075             "type": "String",
33076             "optional": true,
33077             "field": "membername",
33078             "description": ""
33079           },
33080           {
33081             "group": "Body",
33082             "type": "String",
33083             "optional": true,
33084             "field": "calleridnum",
33085             "description": ""
33086           },
33087           {
33088             "group": "Body",
33089             "type": "String",
33090             "optional": true,
33091             "field": "calleridname",
33092             "description": ""
33093           },
33094           {
33095             "group": "Body",
33096             "type": "String",
33097             "optional": true,
33098             "field": "connectedlinenum",
33099             "description": ""
33100           },
33101           {
33102             "group": "Body",
33103             "type": "String",
33104             "optional": true,
33105             "field": "connectedlinename",
33106             "description": ""
33107           },
33108           {
33109             "group": "Body",
33110             "type": "String",
33111             "optional": true,
33112             "field": "accountcode",
33113             "description": ""
33114           },
33115           {
33116             "group": "Body",
33117             "type": "String",
33118             "optional": true,
33119             "field": "context",
33120             "description": ""
33121           },
33122           {
33123             "group": "Body",
33124             "type": "String",
33125             "optional": true,
33126             "field": "exten",
33127             "description": ""
33128           },
33129           {
33130             "group": "Body",
33131             "type": "String",
33132             "optional": true,
33133             "field": "value",
33134             "description": ""
33135           },
33136           {
33137             "group": "Body",
33138             "type": "String",
33139             "optional": true,
33140             "field": "type",
33141             "description": ""
33142           },
33143           {
33144             "group": "Body",
33145             "type": "Integer",
33146             "optional": true,
33147             "field": "rating",
33148             "description": ""
33149           },
33150           {
33151             "group": "Body",
33152             "type": "String",
33153             "optional": true,
33154             "field": "queue",
33155             "description": ""
33156           },
33157           {
33158             "group": "Body",
33159             "type": "String",
33160             "optional": true,
33161             "field": "userDisposition",
33162             "description": ""
33163           },
33164           {
33165             "group": "Body",
33166             "type": "String",
33167             "optional": true,
33168             "field": "userSecondDisposition",
33169             "description": ""
33170           },
33171           {
33172             "group": "Body",
33173             "type": "String",
33174             "optional": true,
33175             "field": "userThirdDisposition",
33176             "description": ""
33177           },
33178           {
33179             "group": "Body",
33180             "type": "Text",
33181             "optional": true,
33182             "field": "location",
33183             "description": ""
33184           },
33185           {
33186             "group": "Body",
33187             "type": "String",
33188             "optional": true,
33189             "field": "transcribeName",
33190             "description": ""
33191           },
33192           {
33193             "group": "Body",
33194             "type": "String",
33195             "optional": true,
33196             "field": "transcribeStatus",
33197             "description": ""
33198           },
33199           {
33200             "group": "Body",
33201             "type": "Text",
33202             "optional": true,
33203             "field": "fileUri",
33204             "description": ""
33205           },
33206           {
33207             "group": "Body",
33208             "type": "Text",
33209             "optional": true,
33210             "field": "fileText",
33211             "description": ""
33212           },
33213           {
33214             "group": "Body",
33215             "type": "Text",
33216             "optional": true,
33217             "field": "failureReason",
33218             "description": ""
33219           },
33220           {
33221             "group": "Body",
33222             "type": "String",
33223             "optional": true,
33224             "field": "sentiment",
33225             "description": ""
33226           },
33227           {
33228             "group": "Body",
33229             "type": "Float",
33230             "optional": true,
33231             "field": "sPositive",
33232             "description": ""
33233           },
33234           {
33235             "group": "Body",
33236             "type": "Float",
33237             "optional": true,
33238             "field": "sNegative",
33239             "description": ""
33240           },
33241           {
33242             "group": "Body",
33243             "type": "Float",
33244             "optional": true,
33245             "field": "sNeutral",
33246             "description": ""
33247           },
33248           {
33249             "group": "Body",
33250             "type": "Float",
33251             "optional": true,
33252             "field": "sMixed",
33253             "description": ""
33254           },
33255           {
33256             "group": "Body",
33257             "type": "Boolean",
33258             "optional": true,
33259             "field": "tempSentiment",
33260             "description": ""
33261           },
33262           {
33263             "group": "Body",
33264             "type": "String",
33265             "optional": true,
33266             "field": "createdAt",
33267             "description": ""
33268           },
33269           {
33270             "group": "Body",
33271             "type": "String",
33272             "optional": true,
33273             "field": "updatedAt",
33274             "description": ""
33275           }
33276         ]
33277       }
33278     },
33279     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33280     "version": "0.0.0",
33281     "filename": "server/api/voiceRecording/index.js",
33282     "groupTitle": "Voice_Recordings"
33283   },
33284   {
33285     "type": "get",
33286     "url": "/api/voice/recordings/describe",
33287     "title": "Gets table info about Recordings",
33288     "examples": [
33289       {
33290         "title": "Example usage:",
33291         "content": "curl https://{domain}/api/voice/recordings/describe -v -u {name}:{password}",
33292         "type": "json"
33293       }
33294     ],
33295     "name": "DescribeRecordings",
33296     "group": "Voice_Recordings",
33297     "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>",
33298     "version": "0.0.0",
33299     "filename": "server/api/voiceRecording/index.js",
33300     "groupTitle": "Voice_Recordings"
33301   },
33302   {
33303     "type": "get",
33304     "url": "/api/voice/recordings",
33305     "title": "Gets a list of Recordings",
33306     "examples": [
33307       {
33308         "title": "Example usage:",
33309         "content": "curl https://{domain}/api/voice/recordings -v -u {name}:{password}",
33310         "type": "json"
33311       }
33312     ],
33313     "name": "GetRecordings",
33314     "group": "Voice_Recordings",
33315     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
33316     "version": "0.0.0",
33317     "filename": "server/api/voiceRecording/index.js",
33318     "groupTitle": "Voice_Recordings"
33319   },
33320   {
33321     "type": "get",
33322     "url": "/api/voice/recordings/{id}",
33323     "title": "Gets a single Recording",
33324     "examples": [
33325       {
33326         "title": "Example usage:",
33327         "content": "curl https://{domain}/api/voice/recordings/{id} -v -u {name}:{password}",
33328         "type": "json"
33329       }
33330     ],
33331     "name": "ShowRecordings",
33332     "group": "Voice_Recordings",
33333     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33334     "version": "0.0.0",
33335     "filename": "server/api/voiceRecording/index.js",
33336     "groupTitle": "Voice_Recordings"
33337   },
33338   {
33339     "type": "delete",
33340     "url": "/api/voice/recordings/{id}",
33341     "title": "Delete voice recording",
33342     "examples": [
33343       {
33344         "title": "Example usage:",
33345         "content": "curl https://{domain}/api/voice/recordings/{id} -v -u {name}:{password} -X DELETE",
33346         "type": "json"
33347       }
33348     ],
33349     "name": "destroy",
33350     "group": "Voice_Recordings",
33351     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33352     "version": "0.0.0",
33353     "filename": "server/api/voiceRecording/index.js",
33354     "groupTitle": "Voice_Recordings"
33355   },
33356   {
33357     "type": "get",
33358     "url": "/api/voice/recordings/{id}/download",
33359     "title": "Download Recording",
33360     "examples": [
33361       {
33362         "title": "Example usage:",
33363         "content": "curl https://{domain}/api/voice/recordings/{id}/download -v -u {name}:{password} -X GET",
33364         "type": "json"
33365       }
33366     ],
33367     "name": "download",
33368     "group": "Voice_Recordings",
33369     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33370     "version": "0.0.0",
33371     "filename": "server/api/voiceRecording/index.js",
33372     "groupTitle": "Voice_Recordings"
33373   },
33374   {
33375     "type": "get",
33376     "url": "/api/voice/recordings/{id}/downloads",
33377     "title": "Download Recording",
33378     "examples": [
33379       {
33380         "title": "Example usage:",
33381         "content": "curl https://{domain}/api/voice/recordings/{id}/downloads -v -u {name}:{password} -X GET",
33382         "type": "json"
33383       }
33384     ],
33385     "name": "downloads",
33386     "group": "Voice_Recordings",
33387     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33388     "version": "0.0.0",
33389     "filename": "server/api/voiceRecording/index.js",
33390     "groupTitle": "Voice_Recordings"
33391   },
33392   {
33393     "type": "get",
33394     "url": "/api/voice/recordings/{id}/transcribe",
33395     "title": "Run Transcribe Recording",
33396     "examples": [
33397       {
33398         "title": "Example usage:",
33399         "content": "curl https://{domain}/api/voice/recordings/{id}/transcribe -v -u {name}:{password} -X GET",
33400         "type": "json"
33401       }
33402     ],
33403     "name": "transcribe",
33404     "group": "Voice_Recordings",
33405     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33406     "version": "0.0.0",
33407     "filename": "server/api/voiceRecording/index.js",
33408     "groupTitle": "Voice_Recordings"
33409   },
33410   {
33411     "type": "post",
33412     "url": "/api/voice/recordings/{id}/transcribe",
33413     "title": "Run Transcribe Recording",
33414     "examples": [
33415       {
33416         "title": "Example usage:",
33417         "content": "curl https://{domain}/api/voice/recordings/{id}/transcribe -d '{\"runSentiment\": \"true\"}' -v -u {name}:{password} -X POST",
33418         "type": "json"
33419       }
33420     ],
33421     "name": "transcribe",
33422     "group": "Voice_Recordings",
33423     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33424     "version": "0.0.0",
33425     "filename": "server/api/voiceRecording/index.js",
33426     "groupTitle": "Voice_Recordings"
33427   },
33428   {
33429     "type": "put",
33430     "url": "/api/voice/recordings/{id}",
33431     "title": "Update an existing Recording",
33432     "examples": [
33433       {
33434         "title": "Example usage:",
33435         "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",
33436         "type": "json"
33437       }
33438     ],
33439     "name": "updateRecordings",
33440     "group": "Voice_Recordings",
33441     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33442     "version": "0.0.0",
33443     "filename": "server/api/voiceRecording/index.js",
33444     "groupTitle": "Voice_Recordings"
33445   },
33446   {
33447     "type": "post",
33448     "url": "/api/voice/transfers/reports",
33449     "title": "Creates a new Transfer Report",
33450     "examples": [
33451       {
33452         "title": "Example usage:",
33453         "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",
33454         "type": "json"
33455       }
33456     ],
33457     "name": "CreateTransfer_Reports",
33458     "group": "Voice_Transfer_Reports",
33459     "parameter": {
33460       "fields": {
33461         "Body": [
33462           {
33463             "group": "Body",
33464             "type": "String",
33465             "allowedValues": [
33466               "\"blind\"",
33467               "\"attended\""
33468             ],
33469             "optional": true,
33470             "field": "type",
33471             "description": ""
33472           },
33473           {
33474             "group": "Body",
33475             "type": "String",
33476             "optional": true,
33477             "field": "result",
33478             "description": ""
33479           },
33480           {
33481             "group": "Body",
33482             "type": "String",
33483             "optional": true,
33484             "field": "transfererchannel",
33485             "description": ""
33486           },
33487           {
33488             "group": "Body",
33489             "type": "String",
33490             "optional": true,
33491             "field": "transferercalleridnum",
33492             "description": ""
33493           },
33494           {
33495             "group": "Body",
33496             "type": "String",
33497             "optional": true,
33498             "field": "transferercalleridname",
33499             "description": ""
33500           },
33501           {
33502             "group": "Body",
33503             "type": "String",
33504             "optional": true,
33505             "field": "transfererconnectedlinenum",
33506             "description": ""
33507           },
33508           {
33509             "group": "Body",
33510             "type": "String",
33511             "optional": true,
33512             "field": "transfererconnectedlinename",
33513             "description": ""
33514           },
33515           {
33516             "group": "Body",
33517             "type": "String",
33518             "optional": true,
33519             "field": "transfereraccountcode",
33520             "description": ""
33521           },
33522           {
33523             "group": "Body",
33524             "type": "String",
33525             "optional": true,
33526             "field": "transferercontext",
33527             "description": ""
33528           },
33529           {
33530             "group": "Body",
33531             "type": "String",
33532             "optional": true,
33533             "field": "transfererexten",
33534             "description": ""
33535           },
33536           {
33537             "group": "Body",
33538             "type": "String",
33539             "optional": true,
33540             "field": "transfererlinkedid",
33541             "description": ""
33542           },
33543           {
33544             "group": "Body",
33545             "type": "String",
33546             "optional": true,
33547             "field": "transfereechannel",
33548             "description": ""
33549           },
33550           {
33551             "group": "Body",
33552             "type": "String",
33553             "optional": true,
33554             "field": "transfereecalleridnum",
33555             "description": ""
33556           },
33557           {
33558             "group": "Body",
33559             "type": "String",
33560             "optional": true,
33561             "field": "transfereecalleridname",
33562             "description": ""
33563           },
33564           {
33565             "group": "Body",
33566             "type": "String",
33567             "optional": true,
33568             "field": "transfereeconnectedlinenum",
33569             "description": ""
33570           },
33571           {
33572             "group": "Body",
33573             "type": "String",
33574             "optional": true,
33575             "field": "transfereeconnectedlinename",
33576             "description": ""
33577           },
33578           {
33579             "group": "Body",
33580             "type": "String",
33581             "optional": true,
33582             "field": "transfereeaccountcode",
33583             "description": ""
33584           },
33585           {
33586             "group": "Body",
33587             "type": "String",
33588             "optional": true,
33589             "field": "transfereecontext",
33590             "description": ""
33591           },
33592           {
33593             "group": "Body",
33594             "type": "String",
33595             "optional": true,
33596             "field": "transfereeexten",
33597             "description": ""
33598           },
33599           {
33600             "group": "Body",
33601             "type": "String",
33602             "optional": true,
33603             "field": "transfereelinkedid",
33604             "description": ""
33605           },
33606           {
33607             "group": "Body",
33608             "type": "String",
33609             "allowedValues": [
33610               "\"Yes\"",
33611               "\"No\""
33612             ],
33613             "optional": true,
33614             "field": "isexternal",
33615             "description": ""
33616           },
33617           {
33618             "group": "Body",
33619             "type": "String",
33620             "optional": true,
33621             "field": "context",
33622             "description": ""
33623           },
33624           {
33625             "group": "Body",
33626             "type": "String",
33627             "optional": true,
33628             "field": "extension",
33629             "description": ""
33630           }
33631         ]
33632       }
33633     },
33634     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33635     "version": "0.0.0",
33636     "filename": "server/api/voiceTransferReport/index.js",
33637     "groupTitle": "Voice_Transfer_Reports"
33638   },
33639   {
33640     "type": "delete",
33641     "url": "/api/voice/transfers/reports/{id}",
33642     "title": "Deletes a Transfer Report",
33643     "examples": [
33644       {
33645         "title": "Example usage:",
33646         "content": "curl https://{domain}/api/voice/transfers/reports/{id} -v -u {name}:{password} -X DELETE",
33647         "type": "json"
33648       }
33649     ],
33650     "name": "DeleteTransfer_Reports",
33651     "group": "Voice_Transfer_Reports",
33652     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33653     "version": "0.0.0",
33654     "filename": "server/api/voiceTransferReport/index.js",
33655     "groupTitle": "Voice_Transfer_Reports"
33656   },
33657   {
33658     "type": "get",
33659     "url": "/api/voice/transfers/reports/describe",
33660     "title": "Gets table info about Transfer Reports",
33661     "examples": [
33662       {
33663         "title": "Example usage:",
33664         "content": "curl https://{domain}/api/voice/transfers/reports/describe -v -u {name}:{password}",
33665         "type": "json"
33666       }
33667     ],
33668     "name": "DescribeTransfer_Reports",
33669     "group": "Voice_Transfer_Reports",
33670     "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>",
33671     "version": "0.0.0",
33672     "filename": "server/api/voiceTransferReport/index.js",
33673     "groupTitle": "Voice_Transfer_Reports"
33674   },
33675   {
33676     "type": "get",
33677     "url": "/api/voice/transfers/reports",
33678     "title": "Gets a list of Transfer Reports",
33679     "examples": [
33680       {
33681         "title": "Example usage:",
33682         "content": "curl https://{domain}/api/voice/transfers/reports -v -u {name}:{password}",
33683         "type": "json"
33684       }
33685     ],
33686     "name": "GetTransfer_Reports",
33687     "group": "Voice_Transfer_Reports",
33688     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
33689     "version": "0.0.0",
33690     "filename": "server/api/voiceTransferReport/index.js",
33691     "groupTitle": "Voice_Transfer_Reports"
33692   },
33693   {
33694     "type": "get",
33695     "url": "/api/voice/transfers/reports/{id}",
33696     "title": "Gets a single Transfer Report",
33697     "examples": [
33698       {
33699         "title": "Example usage:",
33700         "content": "curl https://{domain}/api/voice/transfers/reports/{id} -v -u {name}:{password}",
33701         "type": "json"
33702       }
33703     ],
33704     "name": "ShowTransfer_Reports",
33705     "group": "Voice_Transfer_Reports",
33706     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33707     "version": "0.0.0",
33708     "filename": "server/api/voiceTransferReport/index.js",
33709     "groupTitle": "Voice_Transfer_Reports"
33710   },
33711   {
33712     "type": "put",
33713     "url": "/api/voice/transfers/reports/{id}",
33714     "title": "Update an existing Transfer Report",
33715     "examples": [
33716       {
33717         "title": "Example usage:",
33718         "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",
33719         "type": "json"
33720       }
33721     ],
33722     "name": "updateTransfer_Reports",
33723     "group": "Voice_Transfer_Reports",
33724     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33725     "version": "0.0.0",
33726     "filename": "server/api/voiceTransferReport/index.js",
33727     "groupTitle": "Voice_Transfer_Reports"
33728   },
33729   {
33730     "type": "post",
33731     "url": "/api/integrations/vtiger/accounts",
33732     "title": "Creates a new Vtiger Account",
33733     "examples": [
33734       {
33735         "title": "Example usage:",
33736         "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",
33737         "type": "json"
33738       }
33739     ],
33740     "name": "CreateVtiger_Accounts",
33741     "group": "Vtiger_Accounts",
33742     "parameter": {
33743       "fields": {
33744         "Body": [
33745           {
33746             "group": "Body",
33747             "type": "String",
33748             "optional": false,
33749             "field": "name",
33750             "description": ""
33751           },
33752           {
33753             "group": "Body",
33754             "type": "String",
33755             "optional": true,
33756             "field": "description",
33757             "description": ""
33758           },
33759           {
33760             "group": "Body",
33761             "type": "String",
33762             "optional": false,
33763             "field": "username",
33764             "description": ""
33765           },
33766           {
33767             "group": "Body",
33768             "type": "String",
33769             "optional": false,
33770             "field": "moduleName",
33771             "description": ""
33772           },
33773           {
33774             "group": "Body",
33775             "type": "String",
33776             "optional": false,
33777             "field": "remoteUri",
33778             "description": ""
33779           },
33780           {
33781             "group": "Body",
33782             "type": "String",
33783             "optional": false,
33784             "field": "serverUrl",
33785             "description": ""
33786           },
33787           {
33788             "group": "Body",
33789             "type": "String",
33790             "optional": false,
33791             "field": "accessKey",
33792             "description": ""
33793           }
33794         ]
33795       }
33796     },
33797     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33798     "version": "0.0.0",
33799     "filename": "server/api/intVtigerAccount/index.js",
33800     "groupTitle": "Vtiger_Accounts"
33801   },
33802   {
33803     "type": "delete",
33804     "url": "/api/integrations/vtiger/accounts/{id}",
33805     "title": "Deletes a Vtiger Account",
33806     "examples": [
33807       {
33808         "title": "Example usage:",
33809         "content": "curl https://{domain}/api/integrations/vtiger/accounts/{id} -v -u {name}:{password} -X DELETE",
33810         "type": "json"
33811       }
33812     ],
33813     "name": "DeleteVtiger_Accounts",
33814     "group": "Vtiger_Accounts",
33815     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33816     "version": "0.0.0",
33817     "filename": "server/api/intVtigerAccount/index.js",
33818     "groupTitle": "Vtiger_Accounts"
33819   },
33820   {
33821     "type": "get",
33822     "url": "/api/integrations/vtiger/accounts",
33823     "title": "Gets a list of Vtiger Accounts",
33824     "examples": [
33825       {
33826         "title": "Example usage:",
33827         "content": "curl https://{domain}/api/integrations/vtiger/accounts -v -u {name}:{password}",
33828         "type": "json"
33829       }
33830     ],
33831     "name": "GetVtiger_Accounts",
33832     "group": "Vtiger_Accounts",
33833     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
33834     "version": "0.0.0",
33835     "filename": "server/api/intVtigerAccount/index.js",
33836     "groupTitle": "Vtiger_Accounts"
33837   },
33838   {
33839     "type": "get",
33840     "url": "/api/integrations/vtiger/accounts/{id}",
33841     "title": "Gets a single Vtiger Account",
33842     "examples": [
33843       {
33844         "title": "Example usage:",
33845         "content": "curl https://{domain}/api/integrations/vtiger/accounts/{id} -v -u {name}:{password}",
33846         "type": "json"
33847       }
33848     ],
33849     "name": "ShowVtiger_Accounts",
33850     "group": "Vtiger_Accounts",
33851     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33852     "version": "0.0.0",
33853     "filename": "server/api/intVtigerAccount/index.js",
33854     "groupTitle": "Vtiger_Accounts"
33855   },
33856   {
33857     "type": "post",
33858     "url": "/api/integrations/vtiger/accounts/{id}/configurations",
33859     "title": "Creates new configuration",
33860     "examples": [
33861       {
33862         "title": "Example usage:",
33863         "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",
33864         "type": "json"
33865       }
33866     ],
33867     "name": "addConfiguration",
33868     "group": "Vtiger_Accounts",
33869     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33870     "version": "0.0.0",
33871     "filename": "server/api/intVtigerAccount/index.js",
33872     "groupTitle": "Vtiger_Accounts"
33873   },
33874   {
33875     "type": "get",
33876     "url": "/api/integrations/vtiger/accounts/{id}/configurations",
33877     "title": "Gets account configurations",
33878     "examples": [
33879       {
33880         "title": "Example usage:",
33881         "content": "curl https://{domain}/api/integrations/vtiger/accounts/{id}/configurations -v -u {name}:{password} -X GET",
33882         "type": "json"
33883       }
33884     ],
33885     "name": "getConfigurations",
33886     "group": "Vtiger_Accounts",
33887     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33888     "version": "0.0.0",
33889     "filename": "server/api/intVtigerAccount/index.js",
33890     "groupTitle": "Vtiger_Accounts"
33891   },
33892   {
33893     "type": "get",
33894     "url": "/api/integrations/vtiger/accounts/{id}/fields",
33895     "title": "Gets account fields",
33896     "examples": [
33897       {
33898         "title": "Example usage:",
33899         "content": "curl https://{domain}/api/integrations/vtiger/accounts/{id}/fields -v -u {name}:{password} -X GET",
33900         "type": "json"
33901       }
33902     ],
33903     "name": "getFields",
33904     "group": "Vtiger_Accounts",
33905     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33906     "version": "0.0.0",
33907     "filename": "server/api/intVtigerAccount/index.js",
33908     "groupTitle": "Vtiger_Accounts"
33909   },
33910   {
33911     "type": "put",
33912     "url": "/api/integrations/vtiger/accounts/{id}",
33913     "title": "Update an existing Vtiger Account",
33914     "examples": [
33915       {
33916         "title": "Example usage:",
33917         "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",
33918         "type": "json"
33919       }
33920     ],
33921     "name": "updateVtiger_Accounts",
33922     "group": "Vtiger_Accounts",
33923     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33924     "version": "0.0.0",
33925     "filename": "server/api/intVtigerAccount/index.js",
33926     "groupTitle": "Vtiger_Accounts"
33927   },
33928   {
33929     "type": "post",
33930     "url": "/api/integrations/vtiger/configurations",
33931     "title": "Creates a new Vtiger Configuration",
33932     "examples": [
33933       {
33934         "title": "Example usage:",
33935         "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",
33936         "type": "json"
33937       }
33938     ],
33939     "name": "CreateVtiger_Configurations",
33940     "group": "Vtiger_Configurations",
33941     "parameter": {
33942       "fields": {
33943         "Body": [
33944           {
33945             "group": "Body",
33946             "type": "String",
33947             "optional": true,
33948             "field": "name",
33949             "description": ""
33950           },
33951           {
33952             "group": "Body",
33953             "type": "String",
33954             "optional": true,
33955             "field": "description",
33956             "description": ""
33957           }
33958         ]
33959       }
33960     },
33961     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33962     "version": "0.0.0",
33963     "filename": "server/api/intVtigerConfiguration/index.js",
33964     "groupTitle": "Vtiger_Configurations"
33965   },
33966   {
33967     "type": "delete",
33968     "url": "/api/integrations/vtiger/configurations/{id}",
33969     "title": "Deletes a Vtiger Configuration",
33970     "examples": [
33971       {
33972         "title": "Example usage:",
33973         "content": "curl https://{domain}/api/integrations/vtiger/configurations/{id} -v -u {name}:{password} -X DELETE",
33974         "type": "json"
33975       }
33976     ],
33977     "name": "DeleteVtiger_Configurations",
33978     "group": "Vtiger_Configurations",
33979     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33980     "version": "0.0.0",
33981     "filename": "server/api/intVtigerConfiguration/index.js",
33982     "groupTitle": "Vtiger_Configurations"
33983   },
33984   {
33985     "type": "get",
33986     "url": "/api/integrations/vtiger/configurations",
33987     "title": "Gets a list of Vtiger Configurations",
33988     "examples": [
33989       {
33990         "title": "Example usage:",
33991         "content": "curl https://{domain}/api/integrations/vtiger/configurations -v -u {name}:{password}",
33992         "type": "json"
33993       }
33994     ],
33995     "name": "GetVtiger_Configurations",
33996     "group": "Vtiger_Configurations",
33997     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
33998     "version": "0.0.0",
33999     "filename": "server/api/intVtigerConfiguration/index.js",
34000     "groupTitle": "Vtiger_Configurations"
34001   },
34002   {
34003     "type": "get",
34004     "url": "/api/integrations/vtiger/configurations/{id}",
34005     "title": "Gets a single Vtiger Configuration",
34006     "examples": [
34007       {
34008         "title": "Example usage:",
34009         "content": "curl https://{domain}/api/integrations/vtiger/configurations/{id} -v -u {name}:{password}",
34010         "type": "json"
34011       }
34012     ],
34013     "name": "ShowVtiger_Configurations",
34014     "group": "Vtiger_Configurations",
34015     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34016     "version": "0.0.0",
34017     "filename": "server/api/intVtigerConfiguration/index.js",
34018     "groupTitle": "Vtiger_Configurations"
34019   },
34020   {
34021     "type": "get",
34022     "url": "/api/integrations/vtiger/configurations/{id}/descriptions",
34023     "title": "Gets configurations descriptions",
34024     "examples": [
34025       {
34026         "title": "Example usage:",
34027         "content": "curl https://{domain}/api/integrations/vtiger/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
34028         "type": "json"
34029       }
34030     ],
34031     "name": "getDescriptions",
34032     "group": "Vtiger_Configurations",
34033     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34034     "version": "0.0.0",
34035     "filename": "server/api/intVtigerConfiguration/index.js",
34036     "groupTitle": "Vtiger_Configurations"
34037   },
34038   {
34039     "type": "get",
34040     "url": "/api/integrations/vtiger/configurations/{id}/fields",
34041     "title": "Gets configurations fields",
34042     "examples": [
34043       {
34044         "title": "Example usage:",
34045         "content": "curl https://{domain}/api/integrations/vtiger/configurations/{id}/fields -v -u {name}:{password} -X GET",
34046         "type": "json"
34047       }
34048     ],
34049     "name": "getFields",
34050     "group": "Vtiger_Configurations",
34051     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34052     "version": "0.0.0",
34053     "filename": "server/api/intVtigerConfiguration/index.js",
34054     "groupTitle": "Vtiger_Configurations"
34055   },
34056   {
34057     "type": "get",
34058     "url": "/api/integrations/vtiger/configurations/{id}/subjects",
34059     "title": "Gets configurations subjects",
34060     "examples": [
34061       {
34062         "title": "Example usage:",
34063         "content": "curl https://{domain}/api/integrations/vtiger/configurations/{id}/subjects -v -u {name}:{password} -X GET",
34064         "type": "json"
34065       }
34066     ],
34067     "name": "getSubjects",
34068     "group": "Vtiger_Configurations",
34069     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34070     "version": "0.0.0",
34071     "filename": "server/api/intVtigerConfiguration/index.js",
34072     "groupTitle": "Vtiger_Configurations"
34073   },
34074   {
34075     "type": "put",
34076     "url": "/api/integrations/vtiger/configurations/{id}",
34077     "title": "Update an existing Vtiger Configuration",
34078     "examples": [
34079       {
34080         "title": "Example usage:",
34081         "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",
34082         "type": "json"
34083       }
34084     ],
34085     "name": "updateVtiger_Configurations",
34086     "group": "Vtiger_Configurations",
34087     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34088     "version": "0.0.0",
34089     "filename": "server/api/intVtigerConfiguration/index.js",
34090     "groupTitle": "Vtiger_Configurations"
34091   },
34092   {
34093     "type": "post",
34094     "url": "/api/integrations/vtiger/fields",
34095     "title": "Creates a new Vtiger Field",
34096     "examples": [
34097       {
34098         "title": "Example usage:",
34099         "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",
34100         "type": "json"
34101       }
34102     ],
34103     "name": "CreateVtiger_Fields",
34104     "group": "Vtiger_Fields",
34105     "parameter": {
34106       "fields": {
34107         "Body": [
34108           {
34109             "group": "Body",
34110             "type": "String",
34111             "allowedValues": [
34112               "\"string\"",
34113               "\"variable\"",
34114               "\"customVariable\"",
34115               "\"keyValue\"",
34116               "\"picklist\""
34117             ],
34118             "optional": true,
34119             "field": "type",
34120             "description": ""
34121           },
34122           {
34123             "group": "Body",
34124             "type": "String",
34125             "optional": true,
34126             "field": "content",
34127             "description": ""
34128           },
34129           {
34130             "group": "Body",
34131             "type": "String",
34132             "optional": true,
34133             "field": "key",
34134             "description": ""
34135           },
34136           {
34137             "group": "Body",
34138             "type": "String",
34139             "allowedValues": [
34140               "\"string\"",
34141               "\"variable\"",
34142               "\"customVariable\""
34143             ],
34144             "optional": true,
34145             "field": "keyType",
34146             "description": ""
34147           },
34148           {
34149             "group": "Body",
34150             "type": "String",
34151             "optional": true,
34152             "field": "keyContent",
34153             "description": ""
34154           },
34155           {
34156             "group": "Body",
34157             "type": "String",
34158             "optional": true,
34159             "field": "idField",
34160             "description": ""
34161           },
34162           {
34163             "group": "Body",
34164             "type": "String",
34165             "optional": true,
34166             "field": "nameField",
34167             "description": ""
34168           },
34169           {
34170             "group": "Body",
34171             "type": "Boolean",
34172             "optional": true,
34173             "field": "customField",
34174             "description": ""
34175           },
34176           {
34177             "group": "Body",
34178             "type": "String",
34179             "optional": true,
34180             "field": "variableName",
34181             "description": ""
34182           }
34183         ]
34184       }
34185     },
34186     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34187     "version": "0.0.0",
34188     "filename": "server/api/intVtigerField/index.js",
34189     "groupTitle": "Vtiger_Fields"
34190   },
34191   {
34192     "type": "delete",
34193     "url": "/api/integrations/vtiger/fields/{id}",
34194     "title": "Deletes a Vtiger Field",
34195     "examples": [
34196       {
34197         "title": "Example usage:",
34198         "content": "curl https://{domain}/api/integrations/vtiger/fields/{id} -v -u {name}:{password} -X DELETE",
34199         "type": "json"
34200       }
34201     ],
34202     "name": "DeleteVtiger_Fields",
34203     "group": "Vtiger_Fields",
34204     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34205     "version": "0.0.0",
34206     "filename": "server/api/intVtigerField/index.js",
34207     "groupTitle": "Vtiger_Fields"
34208   },
34209   {
34210     "type": "get",
34211     "url": "/api/integrations/vtiger/fields",
34212     "title": "Gets a list of Vtiger Fields",
34213     "examples": [
34214       {
34215         "title": "Example usage:",
34216         "content": "curl https://{domain}/api/integrations/vtiger/fields -v -u {name}:{password}",
34217         "type": "json"
34218       }
34219     ],
34220     "name": "GetVtiger_Fields",
34221     "group": "Vtiger_Fields",
34222     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
34223     "version": "0.0.0",
34224     "filename": "server/api/intVtigerField/index.js",
34225     "groupTitle": "Vtiger_Fields"
34226   },
34227   {
34228     "type": "get",
34229     "url": "/api/integrations/vtiger/fields/{id}",
34230     "title": "Gets a single Vtiger Field",
34231     "examples": [
34232       {
34233         "title": "Example usage:",
34234         "content": "curl https://{domain}/api/integrations/vtiger/fields/{id} -v -u {name}:{password}",
34235         "type": "json"
34236       }
34237     ],
34238     "name": "ShowVtiger_Fields",
34239     "group": "Vtiger_Fields",
34240     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34241     "version": "0.0.0",
34242     "filename": "server/api/intVtigerField/index.js",
34243     "groupTitle": "Vtiger_Fields"
34244   },
34245   {
34246     "type": "put",
34247     "url": "/api/integrations/vtiger/fields/{id}",
34248     "title": "Update an existing Vtiger Field",
34249     "examples": [
34250       {
34251         "title": "Example usage:",
34252         "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",
34253         "type": "json"
34254       }
34255     ],
34256     "name": "updateVtiger_Fields",
34257     "group": "Vtiger_Fields",
34258     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34259     "version": "0.0.0",
34260     "filename": "server/api/intVtigerField/index.js",
34261     "groupTitle": "Vtiger_Fields"
34262   },
34263   {
34264     "type": "post",
34265     "url": "/api/webbar/answer",
34266     "title": "answer webrtc call",
34267     "examples": [
34268       {
34269         "title": "Example usage:",
34270         "content": "curl https://{domain}/api/webbar/answer -d '{\"sessionId\": \"<sessionId>\", \"userId\": 54}' \\\n -H \"Content-Type: application/json\" -X POST",
34271         "type": "json"
34272       }
34273     ],
34274     "name": "Web_Bar_answer",
34275     "group": "WebBar",
34276     "parameter": {
34277       "fields": {
34278         "Body": [
34279           {
34280             "group": "Body",
34281             "type": "String",
34282             "optional": false,
34283             "field": "sessionId",
34284             "description": ""
34285           },
34286           {
34287             "group": "Body",
34288             "type": "number",
34289             "optional": false,
34290             "field": "userId",
34291             "description": ""
34292           }
34293         ]
34294       }
34295     },
34296     "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>",
34297     "version": "0.0.0",
34298     "filename": "server/api/webbar/index.js",
34299     "groupTitle": "WebBar"
34300   },
34301   {
34302     "type": "post",
34303     "url": "/api/webbar/calls",
34304     "title": "webrtc call list",
34305     "examples": [
34306       {
34307         "title": "Example usage:",
34308         "content": "curl https://{domain}/api/webbar/calls -d '{\"userId\": 54}' \\\n -H \"Content-Type: application/json\" -X POST",
34309         "type": "json"
34310       }
34311     ],
34312     "name": "Web_Bar_calls",
34313     "group": "WebBar",
34314     "parameter": {
34315       "fields": {
34316         "Body": [
34317           {
34318             "group": "Body",
34319             "type": "number",
34320             "optional": false,
34321             "field": "userId",
34322             "description": ""
34323           }
34324         ]
34325       }
34326     },
34327     "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>",
34328     "version": "0.0.0",
34329     "filename": "server/api/webbar/index.js",
34330     "groupTitle": "WebBar"
34331   },
34332   {
34333     "type": "post",
34334     "url": "/api/webbar/hangup",
34335     "title": "hangup webrtc call",
34336     "examples": [
34337       {
34338         "title": "Example usage:",
34339         "content": "curl https://{domain}/api/webbar/hangup -d '{\"sessionId\": \"<sessionId>\", \"userId\": 54}' \\\n -H \"Content-Type: application/json\" -X POST",
34340         "type": "json"
34341       }
34342     ],
34343     "name": "Web_Bar_hangup",
34344     "group": "WebBar",
34345     "parameter": {
34346       "fields": {
34347         "Body": [
34348           {
34349             "group": "Body",
34350             "type": "String",
34351             "optional": false,
34352             "field": "sessionId",
34353             "description": ""
34354           },
34355           {
34356             "group": "Body",
34357             "type": "number",
34358             "optional": false,
34359             "field": "userId",
34360             "description": ""
34361           }
34362         ]
34363       }
34364     },
34365     "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>",
34366     "version": "0.0.0",
34367     "filename": "server/api/webbar/index.js",
34368     "groupTitle": "WebBar"
34369   },
34370   {
34371     "type": "post",
34372     "url": "/api/webbar/unhold",
34373     "title": "unhold webrtc call",
34374     "examples": [
34375       {
34376         "title": "Example usage:",
34377         "content": "curl https://{domain}/api/webbar/unhold -d '{\"sessionId\": \"<sessionId>\", \"userId\": 54}' \\\n -H \"Content-Type: application/json\" -X POST",
34378         "type": "json"
34379       }
34380     ],
34381     "name": "Web_Bar_hold",
34382     "group": "WebBar",
34383     "parameter": {
34384       "fields": {
34385         "Body": [
34386           {
34387             "group": "Body",
34388             "type": "String",
34389             "optional": false,
34390             "field": "sessionId",
34391             "description": ""
34392           },
34393           {
34394             "group": "Body",
34395             "type": "number",
34396             "optional": false,
34397             "field": "userId",
34398             "description": ""
34399           }
34400         ]
34401       }
34402     },
34403     "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>",
34404     "version": "0.0.0",
34405     "filename": "server/api/webbar/index.js",
34406     "groupTitle": "WebBar"
34407   },
34408   {
34409     "type": "post",
34410     "url": "/api/webbar/hold",
34411     "title": "hold webrtc call",
34412     "examples": [
34413       {
34414         "title": "Example usage:",
34415         "content": "curl https://{domain}/api/webbar/hold -d '{\"sessionId\": \"<sessionId>\", \"userId\": 54}' \\\n -H \"Content-Type: application/json\" -X POST",
34416         "type": "json"
34417       }
34418     ],
34419     "name": "Web_Bar_hold",
34420     "group": "WebBar",
34421     "parameter": {
34422       "fields": {
34423         "Body": [
34424           {
34425             "group": "Body",
34426             "type": "String",
34427             "optional": true,
34428             "field": "sessionId",
34429             "description": ""
34430           },
34431           {
34432             "group": "Body",
34433             "type": "number",
34434             "optional": false,
34435             "field": "userId",
34436             "description": ""
34437           }
34438         ]
34439       }
34440     },
34441     "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>",
34442     "version": "0.0.0",
34443     "filename": "server/api/webbar/index.js",
34444     "groupTitle": "WebBar"
34445   },
34446   {
34447     "type": "post",
34448     "url": "/api/webbar/originate",
34449     "title": "Originate new webrtc call",
34450     "examples": [
34451       {
34452         "title": "Example usage:",
34453         "content": "curl https://{domain}/api/webbar/originate -d '{\"callNumber\": \"0119692844\", \"userId\": 54}' \\\n -H \"Content-Type: application/json\" -X POST",
34454         "type": "json"
34455       }
34456     ],
34457     "name": "Web_Bar_originate",
34458     "group": "WebBar",
34459     "parameter": {
34460       "fields": {
34461         "Body": [
34462           {
34463             "group": "Body",
34464             "type": "String",
34465             "optional": false,
34466             "field": "callNumber",
34467             "description": ""
34468           },
34469           {
34470             "group": "Body",
34471             "type": "number",
34472             "optional": false,
34473             "field": "userId",
34474             "description": ""
34475           },
34476           {
34477             "group": "Body",
34478             "type": "String",
34479             "optional": false,
34480             "field": "callerId",
34481             "description": ""
34482           },
34483           {
34484             "group": "Body",
34485             "type": "String",
34486             "optional": false,
34487             "field": "callbackUrl",
34488             "description": ""
34489           }
34490         ]
34491       }
34492     },
34493     "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>",
34494     "version": "0.0.0",
34495     "filename": "server/api/webbar/index.js",
34496     "groupTitle": "WebBar"
34497   },
34498   {
34499     "type": "post",
34500     "url": "/api/webbar/transfer",
34501     "title": "blind transfer webrtc call",
34502     "examples": [
34503       {
34504         "title": "Example usage:",
34505         "content": "curl https://{domain}/api/webbar/transfer -d '{\"userId\": 54, \"sessionId\":\"<sessionId>\", \"transferNumber\":\"<transferNumber>\"}' \\\n -H \"Content-Type: application/json\" -X POST",
34506         "type": "json"
34507       }
34508     ],
34509     "name": "Web_Bar_transfer",
34510     "group": "WebBar",
34511     "parameter": {
34512       "fields": {
34513         "Body": [
34514           {
34515             "group": "Body",
34516             "type": "number",
34517             "optional": false,
34518             "field": "userId",
34519             "description": ""
34520           },
34521           {
34522             "group": "Body",
34523             "type": "string",
34524             "optional": false,
34525             "field": "sessionId",
34526             "description": ""
34527           },
34528           {
34529             "group": "Body",
34530             "type": "string",
34531             "optional": false,
34532             "field": "transferNumber",
34533             "description": ""
34534           }
34535         ]
34536       }
34537     },
34538     "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>",
34539     "version": "0.0.0",
34540     "filename": "server/api/webbar/index.js",
34541     "groupTitle": "WebBar"
34542   },
34543   {
34544     "type": "post",
34545     "url": "/api/whatsapp/accounts/{id}/users",
34546     "title": "Add agents to a whatsapp account",
34547     "examples": [
34548       {
34549         "title": "Example usage:",
34550         "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",
34551         "type": "json"
34552       }
34553     ],
34554     "name": "AddAgents",
34555     "group": "Whatsapp_Accounts",
34556     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34557     "version": "0.0.0",
34558     "filename": "server/api/whatsappAccount/index.js",
34559     "groupTitle": "Whatsapp_Accounts"
34560   },
34561   {
34562     "type": "post",
34563     "url": "/api/whatsapp/accounts",
34564     "title": "Creates a new Account",
34565     "examples": [
34566       {
34567         "title": "Example usage:",
34568         "content": "curl https://{domain}/api/whatsapp/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
34569         "type": "json"
34570       }
34571     ],
34572     "name": "CreateAccounts",
34573     "group": "Whatsapp_Accounts",
34574     "parameter": {
34575       "fields": {
34576         "Body": [
34577           {
34578             "group": "Body",
34579             "type": "String",
34580             "optional": false,
34581             "field": "name",
34582             "description": ""
34583           },
34584           {
34585             "group": "Body",
34586             "type": "String",
34587             "optional": false,
34588             "field": "key",
34589             "description": ""
34590           },
34591           {
34592             "group": "Body",
34593             "type": "String",
34594             "optional": false,
34595             "field": "remote",
34596             "description": ""
34597           },
34598           {
34599             "group": "Body",
34600             "type": "String",
34601             "optional": true,
34602             "field": "token",
34603             "description": ""
34604           },
34605           {
34606             "group": "Body",
34607             "type": "String",
34608             "optional": true,
34609             "field": "phone",
34610             "description": ""
34611           },
34612           {
34613             "group": "Body",
34614             "type": "String",
34615             "allowedValues": [
34616               "\"twilio\""
34617             ],
34618             "optional": true,
34619             "field": "type",
34620             "description": ""
34621           },
34622           {
34623             "group": "Body",
34624             "type": "String",
34625             "optional": true,
34626             "field": "accountSid",
34627             "description": ""
34628           },
34629           {
34630             "group": "Body",
34631             "type": "String",
34632             "optional": true,
34633             "field": "authToken",
34634             "description": ""
34635           },
34636           {
34637             "group": "Body",
34638             "type": "Text",
34639             "optional": true,
34640             "field": "notificationTemplate",
34641             "description": ""
34642           },
34643           {
34644             "group": "Body",
34645             "type": "Boolean",
34646             "optional": true,
34647             "field": "notificationSound",
34648             "description": ""
34649           },
34650           {
34651             "group": "Body",
34652             "type": "Boolean",
34653             "optional": true,
34654             "field": "notificationShake",
34655             "description": ""
34656           },
34657           {
34658             "group": "Body",
34659             "type": "Integer",
34660             "optional": true,
34661             "field": "waitForTheAssignedAgent",
34662             "description": ""
34663           },
34664           {
34665             "group": "Body",
34666             "type": "Boolean",
34667             "optional": true,
34668             "field": "queueTransfer",
34669             "description": ""
34670           },
34671           {
34672             "group": "Body",
34673             "type": "Integer",
34674             "optional": true,
34675             "field": "queueTransferTimeout",
34676             "description": ""
34677           },
34678           {
34679             "group": "Body",
34680             "type": "Boolean",
34681             "optional": true,
34682             "field": "agentTransfer",
34683             "description": ""
34684           },
34685           {
34686             "group": "Body",
34687             "type": "Integer",
34688             "optional": true,
34689             "field": "agentTransferTimeout",
34690             "description": ""
34691           },
34692           {
34693             "group": "Body",
34694             "type": "Integer",
34695             "optional": true,
34696             "field": "mandatoryDispositionPauseId",
34697             "description": "<p>Status to put when mandatory disposition is enabled</p>"
34698           },
34699           {
34700             "group": "Body",
34701             "type": "Boolean",
34702             "optional": true,
34703             "field": "mandatoryDisposition",
34704             "description": "<p>Enabled/disables mandatory dispo on a queue</p>"
34705           },
34706           {
34707             "group": "Body",
34708             "type": "String",
34709             "optional": true,
34710             "field": "description",
34711             "description": ""
34712           }
34713         ]
34714       }
34715     },
34716     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34717     "version": "0.0.0",
34718     "filename": "server/api/whatsappAccount/index.js",
34719     "groupTitle": "Whatsapp_Accounts"
34720   },
34721   {
34722     "type": "delete",
34723     "url": "/api/whatsapp/accounts/{id}",
34724     "title": "Deletes a Account",
34725     "examples": [
34726       {
34727         "title": "Example usage:",
34728         "content": "curl https://{domain}/api/whatsapp/accounts/{id} -v -u {name}:{password} -X DELETE",
34729         "type": "json"
34730       }
34731     ],
34732     "name": "DeleteAccounts",
34733     "group": "Whatsapp_Accounts",
34734     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34735     "version": "0.0.0",
34736     "filename": "server/api/whatsappAccount/index.js",
34737     "groupTitle": "Whatsapp_Accounts"
34738   },
34739   {
34740     "type": "get",
34741     "url": "/api/whatsapp/accounts/describe",
34742     "title": "Gets table info about Accounts",
34743     "examples": [
34744       {
34745         "title": "Example usage:",
34746         "content": "curl https://{domain}/api/whatsapp/accounts/describe -v -u {name}:{password}",
34747         "type": "json"
34748       }
34749     ],
34750     "name": "DescribeAccounts",
34751     "group": "Whatsapp_Accounts",
34752     "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>",
34753     "version": "0.0.0",
34754     "filename": "server/api/whatsappAccount/index.js",
34755     "groupTitle": "Whatsapp_Accounts"
34756   },
34757   {
34758     "type": "get",
34759     "url": "/api/whatsapp/accounts",
34760     "title": "Gets a list of Accounts",
34761     "examples": [
34762       {
34763         "title": "Example usage:",
34764         "content": "curl https://{domain}/api/whatsapp/accounts -v -u {name}:{password}",
34765         "type": "json"
34766       }
34767     ],
34768     "name": "GetAccounts",
34769     "group": "Whatsapp_Accounts",
34770     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
34771     "version": "0.0.0",
34772     "filename": "server/api/whatsappAccount/index.js",
34773     "groupTitle": "Whatsapp_Accounts"
34774   },
34775   {
34776     "type": "get",
34777     "url": "/api/whatsapp/accounts/{id}/users",
34778     "title": "Gets agents from whatsapp account",
34779     "examples": [
34780       {
34781         "title": "Example usage:",
34782         "content": "curl https://{domain}/api/whatsapp/accounts/{id}/users -v -u {name}:{password} -X GET",
34783         "type": "json"
34784       }
34785     ],
34786     "name": "GetAgents",
34787     "group": "Whatsapp_Accounts",
34788     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34789     "version": "0.0.0",
34790     "filename": "server/api/whatsappAccount/index.js",
34791     "groupTitle": "Whatsapp_Accounts"
34792   },
34793   {
34794     "type": "delete",
34795     "url": "/api/whatsapp/accounts/{id}/users",
34796     "title": "Removes agents from a whatsapp account",
34797     "examples": [
34798       {
34799         "title": "Example usage:",
34800         "content": "curl https://{domain}/api/whatsapp/accounts/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
34801         "type": "json"
34802       }
34803     ],
34804     "name": "RemoveAgents",
34805     "group": "Whatsapp_Accounts",
34806     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34807     "version": "0.0.0",
34808     "filename": "server/api/whatsappAccount/index.js",
34809     "groupTitle": "Whatsapp_Accounts"
34810   },
34811   {
34812     "type": "delete",
34813     "url": "/api/whatsapp/accounts/{id}/canned_answers",
34814     "title": "Removes canned answers from account",
34815     "examples": [
34816       {
34817         "title": "Example usage:",
34818         "content": "curl https://{domain}/api/whatsapp/accounts/{id}/canned_answers?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
34819         "type": "json"
34820       }
34821     ],
34822     "name": "RemoveAnswers",
34823     "group": "Whatsapp_Accounts",
34824     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34825     "version": "0.0.0",
34826     "filename": "server/api/whatsappAccount/index.js",
34827     "groupTitle": "Whatsapp_Accounts"
34828   },
34829   {
34830     "type": "delete",
34831     "url": "/api/whatsapp/accounts/{id}/dispositions",
34832     "title": "Removes dispositions from account",
34833     "examples": [
34834       {
34835         "title": "Example usage:",
34836         "content": "curl https://{domain}/api/whatsapp/accounts/{id}/dispositions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
34837         "type": "json"
34838       }
34839     ],
34840     "name": "RemoveDispositions",
34841     "group": "Whatsapp_Accounts",
34842     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34843     "version": "0.0.0",
34844     "filename": "server/api/whatsappAccount/index.js",
34845     "groupTitle": "Whatsapp_Accounts"
34846   },
34847   {
34848     "type": "get",
34849     "url": "/api/whatsapp/accounts/{id}",
34850     "title": "Gets a single Account",
34851     "examples": [
34852       {
34853         "title": "Example usage:",
34854         "content": "curl https://{domain}/api/whatsapp/accounts/{id} -v -u {name}:{password}",
34855         "type": "json"
34856       }
34857     ],
34858     "name": "ShowAccounts",
34859     "group": "Whatsapp_Accounts",
34860     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34861     "version": "0.0.0",
34862     "filename": "server/api/whatsappAccount/index.js",
34863     "groupTitle": "Whatsapp_Accounts"
34864   },
34865   {
34866     "type": "put",
34867     "url": "/api/whatsapp/messages/{id}/accept",
34868     "title": "Accepts message",
34869     "examples": [
34870       {
34871         "title": "Example usage:",
34872         "content": "curl https://{domain}/api/whatsapp/messages/{id}/accept \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
34873         "type": "json"
34874       }
34875     ],
34876     "name": "acceptMessage",
34877     "group": "Whatsapp_Accounts",
34878     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34879     "version": "0.0.0",
34880     "filename": "server/api/whatsappMessage/index.js",
34881     "groupTitle": "Whatsapp_Accounts"
34882   },
34883   {
34884     "type": "post",
34885     "url": "/api/whatsapp/accounts/{id}/canned_answers",
34886     "title": "Creates new canned answer",
34887     "examples": [
34888       {
34889         "title": "Example usage:",
34890         "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",
34891         "type": "json"
34892       }
34893     ],
34894     "name": "addAnswer",
34895     "group": "Whatsapp_Accounts",
34896     "parameter": {
34897       "fields": {
34898         "Body": [
34899           {
34900             "group": "Body",
34901             "type": "String",
34902             "optional": false,
34903             "field": "key",
34904             "description": ""
34905           },
34906           {
34907             "group": "Body",
34908             "type": "Text",
34909             "optional": false,
34910             "field": "value",
34911             "description": ""
34912           },
34913           {
34914             "group": "Body",
34915             "type": "String",
34916             "optional": true,
34917             "field": "description",
34918             "description": ""
34919           },
34920           {
34921             "group": "Body",
34922             "type": "Virtual",
34923             "optional": true,
34924             "field": "name",
34925             "description": ""
34926           }
34927         ]
34928       }
34929     },
34930     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34931     "version": "0.0.0",
34932     "filename": "server/api/whatsappAccount/index.js",
34933     "groupTitle": "Whatsapp_Accounts"
34934   },
34935   {
34936     "type": "post",
34937     "url": "/api/whatsapp/accounts/{id}/applications",
34938     "title": "Creates new applications",
34939     "examples": [
34940       {
34941         "title": "Example usage:",
34942         "content": "curl https://{domain}/api/whatsapp/accounts/{id}/applications -d '[{\"app\": \"queue\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
34943         "type": "json"
34944       }
34945     ],
34946     "name": "addApplications",
34947     "group": "Whatsapp_Accounts",
34948     "parameter": {
34949       "fields": {
34950         "Body": [
34951           {
34952             "group": "Body",
34953             "type": "Integer",
34954             "optional": false,
34955             "field": "priority",
34956             "description": ""
34957           },
34958           {
34959             "group": "Body",
34960             "type": "String",
34961             "optional": false,
34962             "field": "app",
34963             "description": ""
34964           },
34965           {
34966             "group": "Body",
34967             "type": "Text",
34968             "optional": true,
34969             "field": "appdata",
34970             "description": ""
34971           },
34972           {
34973             "group": "Body",
34974             "type": "String",
34975             "optional": true,
34976             "field": "description",
34977             "description": ""
34978           },
34979           {
34980             "group": "Body",
34981             "type": "String",
34982             "optional": true,
34983             "field": "interval",
34984             "description": ""
34985           }
34986         ]
34987       }
34988     },
34989     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34990     "version": "0.0.0",
34991     "filename": "server/api/whatsappAccount/index.js",
34992     "groupTitle": "Whatsapp_Accounts"
34993   },
34994   {
34995     "type": "post",
34996     "url": "/api/whatsapp/accounts/{id}/dispositions",
34997     "title": "Creates new disposition",
34998     "examples": [
34999       {
35000         "title": "Example usage:",
35001         "content": "curl https://{domain}/api/whatsapp/accounts/{id}/dispositions -d '{\"name\": \"vip\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
35002         "type": "json"
35003       }
35004     ],
35005     "name": "addDisposition",
35006     "group": "Whatsapp_Accounts",
35007     "parameter": {
35008       "fields": {
35009         "Body": [
35010           {
35011             "group": "Body",
35012             "type": "String",
35013             "optional": false,
35014             "field": "name",
35015             "description": ""
35016           },
35017           {
35018             "group": "Body",
35019             "type": "String",
35020             "allowedValues": [
35021               "\"first\"",
35022               "\"second\"",
35023               "\"third\""
35024             ],
35025             "optional": false,
35026             "field": "level",
35027             "description": ""
35028           },
35029           {
35030             "group": "Body",
35031             "type": "String",
35032             "optional": true,
35033             "field": "description",
35034             "description": ""
35035           }
35036         ]
35037       }
35038     },
35039     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35040     "version": "0.0.0",
35041     "filename": "server/api/whatsappAccount/index.js",
35042     "groupTitle": "Whatsapp_Accounts"
35043   },
35044   {
35045     "type": "get",
35046     "url": "/api/whatsapp/accounts/{id}/canned_answers",
35047     "title": "Gets account canned answers",
35048     "examples": [
35049       {
35050         "title": "Example usage:",
35051         "content": "curl https://{domain}/api/whatsapp/accounts/{id}/canned_answers -v -u {name}:{password} -X GET",
35052         "type": "json"
35053       }
35054     ],
35055     "name": "getAnswers",
35056     "group": "Whatsapp_Accounts",
35057     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35058     "version": "0.0.0",
35059     "filename": "server/api/whatsappAccount/index.js",
35060     "groupTitle": "Whatsapp_Accounts"
35061   },
35062   {
35063     "type": "get",
35064     "url": "/api/whatsapp/accounts/{id}/applications",
35065     "title": "Gets account applications",
35066     "examples": [
35067       {
35068         "title": "Example usage:",
35069         "content": "curl https://{domain}/api/whatsapp/accounts/{id}/applications -v -u {name}:{password} -X GET",
35070         "type": "json"
35071       }
35072     ],
35073     "name": "getApplications",
35074     "group": "Whatsapp_Accounts",
35075     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35076     "version": "0.0.0",
35077     "filename": "server/api/whatsappAccount/index.js",
35078     "groupTitle": "Whatsapp_Accounts"
35079   },
35080   {
35081     "type": "get",
35082     "url": "/api/whatsapp/accounts/{id}/dispositions",
35083     "title": "Gets account dispositions",
35084     "examples": [
35085       {
35086         "title": "Example usage:",
35087         "content": "curl https://{domain}/api/whatsapp/accounts/{id}/dispositions -v -u {name}:{password} -X GET",
35088         "type": "json"
35089       }
35090     ],
35091     "name": "getDispositions",
35092     "group": "Whatsapp_Accounts",
35093     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35094     "version": "0.0.0",
35095     "filename": "server/api/whatsappAccount/index.js",
35096     "groupTitle": "Whatsapp_Accounts"
35097   },
35098   {
35099     "type": "post",
35100     "url": "/api/whatsapp/accounts/{id}/notify",
35101     "title": "Notify new message",
35102     "examples": [
35103       {
35104         "title": "Example usage:",
35105         "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",
35106         "type": "json"
35107       }
35108     ],
35109     "name": "notify",
35110     "group": "Whatsapp_Accounts",
35111     "description": "<p>Motion 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>",
35112     "version": "0.0.0",
35113     "filename": "server/api/whatsappAccount/index.js",
35114     "groupTitle": "Whatsapp_Accounts"
35115   },
35116   {
35117     "type": "put",
35118     "url": "/api/whatsapp/messages/{id}/reject",
35119     "title": "Rejects message",
35120     "examples": [
35121       {
35122         "title": "Example usage:",
35123         "content": "curl https://{domain}/api/whatsapp/messages/{id}/reject \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
35124         "type": "json"
35125       }
35126     ],
35127     "name": "rejectMessage",
35128     "group": "Whatsapp_Accounts",
35129     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35130     "version": "0.0.0",
35131     "filename": "server/api/whatsappMessage/index.js",
35132     "groupTitle": "Whatsapp_Accounts"
35133   },
35134   {
35135     "type": "post",
35136     "url": "/api/whatsapp/accounts/{id}/send",
35137     "title": "Send new whatsapp message",
35138     "examples": [
35139       {
35140         "title": "Example usage:",
35141         "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",
35142         "type": "json"
35143       }
35144     ],
35145     "name": "sendWhatsapp",
35146     "group": "Whatsapp_Accounts",
35147     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35148     "version": "0.0.0",
35149     "filename": "server/api/whatsappAccount/index.js",
35150     "groupTitle": "Whatsapp_Accounts"
35151   },
35152   {
35153     "type": "post",
35154     "url": "/api/whatsapp/messages/{id}/status",
35155     "title": "Receive message status",
35156     "examples": [
35157       {
35158         "title": "Example usage:",
35159         "content": "curl https://{domain}/api/whatsapp/messages/{id}/status \\ \n -H 'Content-Type: application/json' -v -X POST",
35160         "type": "json"
35161       }
35162     ],
35163     "name": "statusMessage",
35164     "group": "Whatsapp_Accounts",
35165     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35166     "version": "0.0.0",
35167     "filename": "server/api/whatsappMessage/index.js",
35168     "groupTitle": "Whatsapp_Accounts"
35169   },
35170   {
35171     "type": "put",
35172     "url": "/api/whatsapp/accounts/{id}",
35173     "title": "Update an existing Account",
35174     "examples": [
35175       {
35176         "title": "Example usage:",
35177         "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",
35178         "type": "json"
35179       }
35180     ],
35181     "name": "updateAccounts",
35182     "group": "Whatsapp_Accounts",
35183     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35184     "version": "0.0.0",
35185     "filename": "server/api/whatsappAccount/index.js",
35186     "groupTitle": "Whatsapp_Accounts"
35187   },
35188   {
35189     "type": "post",
35190     "url": "/api/whatsapp/applications",
35191     "title": "Creates a new Application",
35192     "examples": [
35193       {
35194         "title": "Example usage:",
35195         "content": "curl https://{domain}/api/whatsapp/applications -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
35196         "type": "json"
35197       }
35198     ],
35199     "name": "CreateApplications",
35200     "group": "Whatsapp_Applications",
35201     "parameter": {
35202       "fields": {
35203         "Body": [
35204           {
35205             "group": "Body",
35206             "type": "Integer",
35207             "optional": false,
35208             "field": "priority",
35209             "description": ""
35210           },
35211           {
35212             "group": "Body",
35213             "type": "String",
35214             "optional": false,
35215             "field": "app",
35216             "description": ""
35217           },
35218           {
35219             "group": "Body",
35220             "type": "Text",
35221             "optional": true,
35222             "field": "appdata",
35223             "description": ""
35224           },
35225           {
35226             "group": "Body",
35227             "type": "String",
35228             "optional": true,
35229             "field": "description",
35230             "description": ""
35231           },
35232           {
35233             "group": "Body",
35234             "type": "String",
35235             "optional": true,
35236             "field": "interval",
35237             "description": ""
35238           }
35239         ]
35240       }
35241     },
35242     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35243     "version": "0.0.0",
35244     "filename": "server/api/whatsappApplication/index.js",
35245     "groupTitle": "Whatsapp_Applications"
35246   },
35247   {
35248     "type": "delete",
35249     "url": "/api/whatsapp/applications/{id}",
35250     "title": "Deletes a Application",
35251     "examples": [
35252       {
35253         "title": "Example usage:",
35254         "content": "curl https://{domain}/api/whatsapp/applications/{id} -v -u {name}:{password} -X DELETE",
35255         "type": "json"
35256       }
35257     ],
35258     "name": "DeleteApplications",
35259     "group": "Whatsapp_Applications",
35260     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35261     "version": "0.0.0",
35262     "filename": "server/api/whatsappApplication/index.js",
35263     "groupTitle": "Whatsapp_Applications"
35264   },
35265   {
35266     "type": "get",
35267     "url": "/api/whatsapp/applications",
35268     "title": "Gets a list of Applications",
35269     "examples": [
35270       {
35271         "title": "Example usage:",
35272         "content": "curl https://{domain}/api/whatsapp/applications -v -u {name}:{password}",
35273         "type": "json"
35274       }
35275     ],
35276     "name": "GetApplications",
35277     "group": "Whatsapp_Applications",
35278     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
35279     "version": "0.0.0",
35280     "filename": "server/api/whatsappApplication/index.js",
35281     "groupTitle": "Whatsapp_Applications"
35282   },
35283   {
35284     "type": "get",
35285     "url": "/api/whatsapp/applications/{id}",
35286     "title": "Gets a single Application",
35287     "examples": [
35288       {
35289         "title": "Example usage:",
35290         "content": "curl https://{domain}/api/whatsapp/applications/{id} -v -u {name}:{password}",
35291         "type": "json"
35292       }
35293     ],
35294     "name": "ShowApplications",
35295     "group": "Whatsapp_Applications",
35296     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35297     "version": "0.0.0",
35298     "filename": "server/api/whatsappApplication/index.js",
35299     "groupTitle": "Whatsapp_Applications"
35300   },
35301   {
35302     "type": "put",
35303     "url": "/api/whatsapp/applications/{id}",
35304     "title": "Update an existing Application",
35305     "examples": [
35306       {
35307         "title": "Example usage:",
35308         "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",
35309         "type": "json"
35310       }
35311     ],
35312     "name": "updateApplications",
35313     "group": "Whatsapp_Applications",
35314     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35315     "version": "0.0.0",
35316     "filename": "server/api/whatsappApplication/index.js",
35317     "groupTitle": "Whatsapp_Applications"
35318   },
35319   {
35320     "type": "post",
35321     "url": "/api/whatsapp/interactions/{id}/tags",
35322     "title": "Add tags to the interaction",
35323     "examples": [
35324       {
35325         "title": "Example usage:",
35326         "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",
35327         "type": "json"
35328       }
35329     ],
35330     "name": "AddTags",
35331     "group": "Whatsapp_Interactions",
35332     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35333     "version": "0.0.0",
35334     "filename": "server/api/whatsappInteraction/index.js",
35335     "groupTitle": "Whatsapp_Interactions"
35336   },
35337   {
35338     "type": "post",
35339     "url": "/api/whatsapp/interactions",
35340     "title": "Creates a new Interaction",
35341     "examples": [
35342       {
35343         "title": "Example usage:",
35344         "content": "curl https://{domain}/api/whatsapp/interactions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
35345         "type": "json"
35346       }
35347     ],
35348     "name": "CreateInteractions",
35349     "group": "Whatsapp_Interactions",
35350     "parameter": {
35351       "fields": {
35352         "Body": [
35353           {
35354             "group": "Body",
35355             "type": "Boolean",
35356             "optional": true,
35357             "field": "closed",
35358             "description": ""
35359           },
35360           {
35361             "group": "Body",
35362             "type": "String",
35363             "optional": true,
35364             "field": "closedAt",
35365             "description": ""
35366           },
35367           {
35368             "group": "Body",
35369             "type": "String",
35370             "optional": true,
35371             "field": "disposition",
35372             "description": ""
35373           },
35374           {
35375             "group": "Body",
35376             "type": "String",
35377             "optional": true,
35378             "field": "secondDisposition",
35379             "description": ""
35380           },
35381           {
35382             "group": "Body",
35383             "type": "String",
35384             "optional": true,
35385             "field": "thirdDisposition",
35386             "description": ""
35387           },
35388           {
35389             "group": "Body",
35390             "type": "String",
35391             "optional": true,
35392             "field": "note",
35393             "description": ""
35394           },
35395           {
35396             "group": "Body",
35397             "type": "String",
35398             "optional": true,
35399             "field": "phone",
35400             "description": ""
35401           },
35402           {
35403             "group": "Body",
35404             "type": "String",
35405             "optional": true,
35406             "field": "read1stAt",
35407             "description": ""
35408           },
35409           {
35410             "group": "Body",
35411             "type": "String",
35412             "allowedValues": [
35413               "\"in\"",
35414               "\"out\""
35415             ],
35416             "optional": false,
35417             "field": "firstMsgDirection",
35418             "description": ""
35419           },
35420           {
35421             "group": "Body",
35422             "type": "String",
35423             "optional": true,
35424             "field": "lastMsgAt",
35425             "description": ""
35426           },
35427           {
35428             "group": "Body",
35429             "type": "String",
35430             "allowedValues": [
35431               "\"in\"",
35432               "\"out\""
35433             ],
35434             "optional": false,
35435             "field": "lastMsgDirection",
35436             "description": ""
35437           },
35438           {
35439             "group": "Body",
35440             "type": "Boolean",
35441             "optional": true,
35442             "field": "autoreplyExecuted",
35443             "description": ""
35444           }
35445         ]
35446       }
35447     },
35448     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35449     "version": "0.0.0",
35450     "filename": "server/api/whatsappInteraction/index.js",
35451     "groupTitle": "Whatsapp_Interactions"
35452   },
35453   {
35454     "type": "delete",
35455     "url": "/api/whatsapp/interactions/{id}",
35456     "title": "Deletes a Interaction",
35457     "examples": [
35458       {
35459         "title": "Example usage:",
35460         "content": "curl https://{domain}/api/whatsapp/interactions/{id} -v -u {name}:{password} -X DELETE",
35461         "type": "json"
35462       }
35463     ],
35464     "name": "DeleteInteractions",
35465     "group": "Whatsapp_Interactions",
35466     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35467     "version": "0.0.0",
35468     "filename": "server/api/whatsappInteraction/index.js",
35469     "groupTitle": "Whatsapp_Interactions"
35470   },
35471   {
35472     "type": "get",
35473     "url": "/api/whatsapp/interactions/describe",
35474     "title": "Gets table info about Interactions",
35475     "examples": [
35476       {
35477         "title": "Example usage:",
35478         "content": "curl https://{domain}/api/whatsapp/interactions/describe -v -u {name}:{password}",
35479         "type": "json"
35480       }
35481     ],
35482     "name": "DescribeInteractions",
35483     "group": "Whatsapp_Interactions",
35484     "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>",
35485     "version": "0.0.0",
35486     "filename": "server/api/whatsappInteraction/index.js",
35487     "groupTitle": "Whatsapp_Interactions"
35488   },
35489   {
35490     "type": "get",
35491     "url": "/api/whatsapp/interactions",
35492     "title": "Gets a list of Interactions",
35493     "examples": [
35494       {
35495         "title": "Example usage:",
35496         "content": "curl https://{domain}/api/whatsapp/interactions -v -u {name}:{password}",
35497         "type": "json"
35498       }
35499     ],
35500     "name": "GetInteractions",
35501     "group": "Whatsapp_Interactions",
35502     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
35503     "version": "0.0.0",
35504     "filename": "server/api/whatsappInteraction/index.js",
35505     "groupTitle": "Whatsapp_Interactions"
35506   },
35507   {
35508     "type": "delete",
35509     "url": "/api/whatsapp/interactions/{id}/tags",
35510     "title": "Removes tags from interaction",
35511     "examples": [
35512       {
35513         "title": "Example usage:",
35514         "content": "curl https://{domain}/api/whatsapp/interactions/{id}/tags?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
35515         "type": "json"
35516       }
35517     ],
35518     "name": "RemoveTags",
35519     "group": "Whatsapp_Interactions",
35520     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35521     "version": "0.0.0",
35522     "filename": "server/api/whatsappInteraction/index.js",
35523     "groupTitle": "Whatsapp_Interactions"
35524   },
35525   {
35526     "type": "get",
35527     "url": "/api/whatsapp/interactions/{id}",
35528     "title": "Gets a single Interaction",
35529     "examples": [
35530       {
35531         "title": "Example usage:",
35532         "content": "curl https://{domain}/api/whatsapp/interactions/{id} -v -u {name}:{password}",
35533         "type": "json"
35534       }
35535     ],
35536     "name": "ShowInteractions",
35537     "group": "Whatsapp_Interactions",
35538     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35539     "version": "0.0.0",
35540     "filename": "server/api/whatsappInteraction/index.js",
35541     "groupTitle": "Whatsapp_Interactions"
35542   },
35543   {
35544     "type": "post",
35545     "url": "/api/whatsapp/interactions/{id}/messages",
35546     "title": "Creates new messages",
35547     "examples": [
35548       {
35549         "title": "Example usage:",
35550         "content": "curl https://{domain}/api/whatsapp/interactions/{id}/messages -d '[{\"to\": \"+3901119886500\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
35551         "type": "json"
35552       }
35553     ],
35554     "name": "addMessage",
35555     "group": "Whatsapp_Interactions",
35556     "parameter": {
35557       "fields": {
35558         "Body": [
35559           {
35560             "group": "Body",
35561             "type": "Text",
35562             "optional": false,
35563             "field": "body",
35564             "description": ""
35565           },
35566           {
35567             "group": "Body",
35568             "type": "Boolean",
35569             "optional": true,
35570             "field": "read",
35571             "description": ""
35572           },
35573           {
35574             "group": "Body",
35575             "type": "String",
35576             "allowedValues": [
35577               "\"in\"",
35578               "\"out\""
35579             ],
35580             "optional": false,
35581             "field": "direction",
35582             "description": ""
35583           },
35584           {
35585             "group": "Body",
35586             "type": "String",
35587             "optional": true,
35588             "field": "messageId",
35589             "description": ""
35590           },
35591           {
35592             "group": "Body",
35593             "type": "String",
35594             "optional": true,
35595             "field": "phone",
35596             "description": ""
35597           },
35598           {
35599             "group": "Body",
35600             "type": "String",
35601             "optional": true,
35602             "field": "readAt",
35603             "description": ""
35604           },
35605           {
35606             "group": "Body",
35607             "type": "Boolean",
35608             "optional": true,
35609             "field": "secret",
35610             "description": ""
35611           },
35612           {
35613             "group": "Body",
35614             "type": "String",
35615             "optional": true,
35616             "field": "providerName",
35617             "description": ""
35618           },
35619           {
35620             "group": "Body",
35621             "type": "Text",
35622             "optional": true,
35623             "field": "providerResponse",
35624             "description": ""
35625           }
35626         ]
35627       }
35628     },
35629     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35630     "version": "0.0.0",
35631     "filename": "server/api/whatsappInteraction/index.js",
35632     "groupTitle": "Whatsapp_Interactions"
35633   },
35634   {
35635     "type": "get",
35636     "url": "/api/whatsapp/interactions/{id}/download",
35637     "title": "Gets interaction",
35638     "examples": [
35639       {
35640         "title": "Example usage:",
35641         "content": "curl https://{domain}/api/whatsapp/interactions/{id}/download -v -u {name}:{password} -X GET",
35642         "type": "json"
35643       }
35644     ],
35645     "name": "download",
35646     "group": "Whatsapp_Interactions",
35647     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35648     "version": "0.0.0",
35649     "filename": "server/api/whatsappInteraction/index.js",
35650     "groupTitle": "Whatsapp_Interactions"
35651   },
35652   {
35653     "type": "get",
35654     "url": "/api/whatsapp/interactions/{id}/messages",
35655     "title": "Gets interaction messages",
35656     "examples": [
35657       {
35658         "title": "Example usage:",
35659         "content": "curl https://{domain}/api/whatsapp/interactions/{id}/messages -v -u {name}:{password} -X GET",
35660         "type": "json"
35661       }
35662     ],
35663     "name": "getMessages",
35664     "group": "Whatsapp_Interactions",
35665     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35666     "version": "0.0.0",
35667     "filename": "server/api/whatsappInteraction/index.js",
35668     "groupTitle": "Whatsapp_Interactions"
35669   },
35670   {
35671     "type": "put",
35672     "url": "/api/whatsapp/interactions/{id}",
35673     "title": "Update an existing Interaction",
35674     "examples": [
35675       {
35676         "title": "Example usage:",
35677         "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",
35678         "type": "json"
35679       }
35680     ],
35681     "name": "updateInteractions",
35682     "group": "Whatsapp_Interactions",
35683     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35684     "version": "0.0.0",
35685     "filename": "server/api/whatsappInteraction/index.js",
35686     "groupTitle": "Whatsapp_Interactions"
35687   },
35688   {
35689     "type": "post",
35690     "url": "/api/whatsapp/messages",
35691     "title": "Creates a new Message",
35692     "examples": [
35693       {
35694         "title": "Example usage:",
35695         "content": "curl https://{domain}/api/whatsapp/messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
35696         "type": "json"
35697       }
35698     ],
35699     "name": "CreateMessages",
35700     "group": "Whatsapp_Messages",
35701     "parameter": {
35702       "fields": {
35703         "Body": [
35704           {
35705             "group": "Body",
35706             "type": "Text",
35707             "optional": false,
35708             "field": "body",
35709             "description": ""
35710           },
35711           {
35712             "group": "Body",
35713             "type": "Boolean",
35714             "optional": true,
35715             "field": "read",
35716             "description": ""
35717           },
35718           {
35719             "group": "Body",
35720             "type": "String",
35721             "allowedValues": [
35722               "\"in\"",
35723               "\"out\""
35724             ],
35725             "optional": false,
35726             "field": "direction",
35727             "description": ""
35728           },
35729           {
35730             "group": "Body",
35731             "type": "String",
35732             "optional": true,
35733             "field": "messageId",
35734             "description": ""
35735           },
35736           {
35737             "group": "Body",
35738             "type": "String",
35739             "optional": true,
35740             "field": "phone",
35741             "description": ""
35742           },
35743           {
35744             "group": "Body",
35745             "type": "String",
35746             "optional": true,
35747             "field": "readAt",
35748             "description": ""
35749           },
35750           {
35751             "group": "Body",
35752             "type": "Boolean",
35753             "optional": true,
35754             "field": "secret",
35755             "description": ""
35756           },
35757           {
35758             "group": "Body",
35759             "type": "String",
35760             "optional": true,
35761             "field": "providerName",
35762             "description": ""
35763           },
35764           {
35765             "group": "Body",
35766             "type": "Text",
35767             "optional": true,
35768             "field": "providerResponse",
35769             "description": ""
35770           }
35771         ]
35772       }
35773     },
35774     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35775     "version": "0.0.0",
35776     "filename": "server/api/whatsappMessage/index.js",
35777     "groupTitle": "Whatsapp_Messages"
35778   },
35779   {
35780     "type": "delete",
35781     "url": "/api/whatsapp/messages/{id}",
35782     "title": "Deletes a Message",
35783     "examples": [
35784       {
35785         "title": "Example usage:",
35786         "content": "curl https://{domain}/api/whatsapp/messages/{id} -v -u {name}:{password} -X DELETE",
35787         "type": "json"
35788       }
35789     ],
35790     "name": "DeleteMessages",
35791     "group": "Whatsapp_Messages",
35792     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35793     "version": "0.0.0",
35794     "filename": "server/api/whatsappMessage/index.js",
35795     "groupTitle": "Whatsapp_Messages"
35796   },
35797   {
35798     "type": "get",
35799     "url": "/api/whatsapp/messages/describe",
35800     "title": "Gets table info about Messages",
35801     "examples": [
35802       {
35803         "title": "Example usage:",
35804         "content": "curl https://{domain}/api/whatsapp/messages/describe -v -u {name}:{password}",
35805         "type": "json"
35806       }
35807     ],
35808     "name": "DescribeMessages",
35809     "group": "Whatsapp_Messages",
35810     "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>",
35811     "version": "0.0.0",
35812     "filename": "server/api/whatsappMessage/index.js",
35813     "groupTitle": "Whatsapp_Messages"
35814   },
35815   {
35816     "type": "get",
35817     "url": "/api/whatsapp/messages",
35818     "title": "Gets a list of Messages",
35819     "examples": [
35820       {
35821         "title": "Example usage:",
35822         "content": "curl https://{domain}/api/whatsapp/messages -v -u {name}:{password}",
35823         "type": "json"
35824       }
35825     ],
35826     "name": "GetMessages",
35827     "group": "Whatsapp_Messages",
35828     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
35829     "version": "0.0.0",
35830     "filename": "server/api/whatsappMessage/index.js",
35831     "groupTitle": "Whatsapp_Messages"
35832   },
35833   {
35834     "type": "get",
35835     "url": "/api/whatsapp/messages/{id}",
35836     "title": "Gets a single Message",
35837     "examples": [
35838       {
35839         "title": "Example usage:",
35840         "content": "curl https://{domain}/api/whatsapp/messages/{id} -v -u {name}:{password}",
35841         "type": "json"
35842       }
35843     ],
35844     "name": "ShowMessages",
35845     "group": "Whatsapp_Messages",
35846     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35847     "version": "0.0.0",
35848     "filename": "server/api/whatsappMessage/index.js",
35849     "groupTitle": "Whatsapp_Messages"
35850   },
35851   {
35852     "type": "put",
35853     "url": "/api/whatsapp/messages/{id}",
35854     "title": "Update an existing Message",
35855     "examples": [
35856       {
35857         "title": "Example usage:",
35858         "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",
35859         "type": "json"
35860       }
35861     ],
35862     "name": "updateMessages",
35863     "group": "Whatsapp_Messages",
35864     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35865     "version": "0.0.0",
35866     "filename": "server/api/whatsappMessage/index.js",
35867     "groupTitle": "Whatsapp_Messages"
35868   },
35869   {
35870     "type": "post",
35871     "url": "/api/whatsapp/reports/queue",
35872     "title": "Creates a new Whatsapp Queue Report",
35873     "examples": [
35874       {
35875         "title": "Example usage:",
35876         "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",
35877         "type": "json"
35878       }
35879     ],
35880     "name": "CreateWhatsapp_Queue_Reports",
35881     "group": "Whatsapp_Queue_Reports",
35882     "parameter": {
35883       "fields": {
35884         "Body": [
35885           {
35886             "group": "Body",
35887             "type": "String",
35888             "optional": false,
35889             "field": "uniqueid",
35890             "description": ""
35891           },
35892           {
35893             "group": "Body",
35894             "type": "String",
35895             "optional": true,
35896             "field": "from",
35897             "description": ""
35898           },
35899           {
35900             "group": "Body",
35901             "type": "String",
35902             "optional": true,
35903             "field": "joinAt",
35904             "description": ""
35905           },
35906           {
35907             "group": "Body",
35908             "type": "String",
35909             "optional": true,
35910             "field": "leaveAt",
35911             "description": ""
35912           },
35913           {
35914             "group": "Body",
35915             "type": "String",
35916             "optional": true,
35917             "field": "acceptAt",
35918             "description": ""
35919           },
35920           {
35921             "group": "Body",
35922             "type": "String",
35923             "optional": true,
35924             "field": "exitAt",
35925             "description": ""
35926           },
35927           {
35928             "group": "Body",
35929             "type": "String",
35930             "optional": true,
35931             "field": "reason",
35932             "description": ""
35933           }
35934         ]
35935       }
35936     },
35937     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35938     "version": "0.0.0",
35939     "filename": "server/api/whatsappQueueReport/index.js",
35940     "groupTitle": "Whatsapp_Queue_Reports"
35941   },
35942   {
35943     "type": "delete",
35944     "url": "/api/whatsapp/reports/queue/{id}",
35945     "title": "Deletes a Whatsapp Queue Report",
35946     "examples": [
35947       {
35948         "title": "Example usage:",
35949         "content": "curl https://{domain}/api/whatsapp/reports/queue/{id} -v -u {name}:{password} -X DELETE",
35950         "type": "json"
35951       }
35952     ],
35953     "name": "DeleteWhatsapp_Queue_Reports",
35954     "group": "Whatsapp_Queue_Reports",
35955     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35956     "version": "0.0.0",
35957     "filename": "server/api/whatsappQueueReport/index.js",
35958     "groupTitle": "Whatsapp_Queue_Reports"
35959   },
35960   {
35961     "type": "get",
35962     "url": "/api/whatsapp/reports/queue/describe",
35963     "title": "Gets table info about Whatsapp Queue Reports",
35964     "examples": [
35965       {
35966         "title": "Example usage:",
35967         "content": "curl https://{domain}/api/whatsapp/reports/queue/describe -v -u {name}:{password}",
35968         "type": "json"
35969       }
35970     ],
35971     "name": "DescribeWhatsapp_Queue_Reports",
35972     "group": "Whatsapp_Queue_Reports",
35973     "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>",
35974     "version": "0.0.0",
35975     "filename": "server/api/whatsappQueueReport/index.js",
35976     "groupTitle": "Whatsapp_Queue_Reports"
35977   },
35978   {
35979     "type": "get",
35980     "url": "/api/whatsapp/reports/queue",
35981     "title": "Gets a list of Whatsapp Queue Reports",
35982     "examples": [
35983       {
35984         "title": "Example usage:",
35985         "content": "curl https://{domain}/api/whatsapp/reports/queue -v -u {name}:{password}",
35986         "type": "json"
35987       }
35988     ],
35989     "name": "GetWhatsapp_Queue_Reports",
35990     "group": "Whatsapp_Queue_Reports",
35991     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
35992     "version": "0.0.0",
35993     "filename": "server/api/whatsappQueueReport/index.js",
35994     "groupTitle": "Whatsapp_Queue_Reports"
35995   },
35996   {
35997     "type": "get",
35998     "url": "/api/whatsapp/reports/queue/{id}",
35999     "title": "Gets a single Whatsapp Queue Report",
36000     "examples": [
36001       {
36002         "title": "Example usage:",
36003         "content": "curl https://{domain}/api/whatsapp/reports/queue/{id} -v -u {name}:{password}",
36004         "type": "json"
36005       }
36006     ],
36007     "name": "ShowWhatsapp_Queue_Reports",
36008     "group": "Whatsapp_Queue_Reports",
36009     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36010     "version": "0.0.0",
36011     "filename": "server/api/whatsappQueueReport/index.js",
36012     "groupTitle": "Whatsapp_Queue_Reports"
36013   },
36014   {
36015     "type": "put",
36016     "url": "/api/whatsapp/reports/queue/{id}",
36017     "title": "Update an existing Whatsapp Queue Report",
36018     "examples": [
36019       {
36020         "title": "Example usage:",
36021         "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",
36022         "type": "json"
36023       }
36024     ],
36025     "name": "updateWhatsapp_Queue_Reports",
36026     "group": "Whatsapp_Queue_Reports",
36027     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36028     "version": "0.0.0",
36029     "filename": "server/api/whatsappQueueReport/index.js",
36030     "groupTitle": "Whatsapp_Queue_Reports"
36031   },
36032   {
36033     "type": "post",
36034     "url": "/api/whatsapp/queues/{id}/users",
36035     "title": "Add agents to a queue",
36036     "examples": [
36037       {
36038         "title": "Example usage:",
36039         "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",
36040         "type": "json"
36041       }
36042     ],
36043     "name": "AddAgents",
36044     "group": "Whatsapp_Queues",
36045     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36046     "version": "0.0.0",
36047     "filename": "server/api/whatsappQueue/index.js",
36048     "groupTitle": "Whatsapp_Queues"
36049   },
36050   {
36051     "type": "post",
36052     "url": "/api/whatsapp/queues/{id}/teams",
36053     "title": "Add teams to a queue",
36054     "examples": [
36055       {
36056         "title": "Example usage:",
36057         "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",
36058         "type": "json"
36059       }
36060     ],
36061     "name": "AddTeams",
36062     "group": "Whatsapp_Queues",
36063     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36064     "version": "0.0.0",
36065     "filename": "server/api/whatsappQueue/index.js",
36066     "groupTitle": "Whatsapp_Queues"
36067   },
36068   {
36069     "type": "post",
36070     "url": "/api/whatsapp/queues",
36071     "title": "Creates a new Queue",
36072     "examples": [
36073       {
36074         "title": "Example usage:",
36075         "content": "curl https://{domain}/api/whatsapp/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
36076         "type": "json"
36077       }
36078     ],
36079     "name": "CreateQueues",
36080     "group": "Whatsapp_Queues",
36081     "parameter": {
36082       "fields": {
36083         "Body": [
36084           {
36085             "group": "Body",
36086             "type": "String",
36087             "optional": true,
36088             "field": "name",
36089             "description": ""
36090           },
36091           {
36092             "group": "Body",
36093             "type": "Integer",
36094             "optional": true,
36095             "field": "timeout",
36096             "description": ""
36097           },
36098           {
36099             "group": "Body",
36100             "type": "String",
36101             "allowedValues": [
36102               "\"rrmemory\"",
36103               "\"beepall\"",
36104               "\"roundrobin\""
36105             ],
36106             "optional": true,
36107             "field": "strategy",
36108             "description": ""
36109           },
36110           {
36111             "group": "Body",
36112             "type": "String",
36113             "optional": true,
36114             "field": "description",
36115             "description": ""
36116           }
36117         ]
36118       }
36119     },
36120     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36121     "version": "0.0.0",
36122     "filename": "server/api/whatsappQueue/index.js",
36123     "groupTitle": "Whatsapp_Queues"
36124   },
36125   {
36126     "type": "delete",
36127     "url": "/api/whatsapp/queues/{id}",
36128     "title": "Deletes a Queue",
36129     "examples": [
36130       {
36131         "title": "Example usage:",
36132         "content": "curl https://{domain}/api/whatsapp/queues/{id} -v -u {name}:{password} -X DELETE",
36133         "type": "json"
36134       }
36135     ],
36136     "name": "DeleteQueues",
36137     "group": "Whatsapp_Queues",
36138     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36139     "version": "0.0.0",
36140     "filename": "server/api/whatsappQueue/index.js",
36141     "groupTitle": "Whatsapp_Queues"
36142   },
36143   {
36144     "type": "get",
36145     "url": "/api/whatsapp/queues/describe",
36146     "title": "Gets table info about Queues",
36147     "examples": [
36148       {
36149         "title": "Example usage:",
36150         "content": "curl https://{domain}/api/whatsapp/queues/describe -v -u {name}:{password}",
36151         "type": "json"
36152       }
36153     ],
36154     "name": "DescribeQueues",
36155     "group": "Whatsapp_Queues",
36156     "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>",
36157     "version": "0.0.0",
36158     "filename": "server/api/whatsappQueue/index.js",
36159     "groupTitle": "Whatsapp_Queues"
36160   },
36161   {
36162     "type": "get",
36163     "url": "/api/whatsapp/queues/{id}/users",
36164     "title": "Gets queue agents",
36165     "examples": [
36166       {
36167         "title": "Example usage:",
36168         "content": "curl https://{domain}/api/whatsapp/queues/{id}/users -v -u {name}:{password} -X POST",
36169         "type": "json"
36170       }
36171     ],
36172     "name": "GetAgents",
36173     "group": "Whatsapp_Queues",
36174     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36175     "version": "0.0.0",
36176     "filename": "server/api/whatsappQueue/index.js",
36177     "groupTitle": "Whatsapp_Queues"
36178   },
36179   {
36180     "type": "get",
36181     "url": "/api/whatsapp/queues/{id}/members",
36182     "title": "GetMembers",
36183     "examples": [
36184       {
36185         "title": "Example usage:",
36186         "content": "curl https://{domain}/api/whatsapp/queues/{id}/members  -v -u {name}:{password}",
36187         "type": "json"
36188       }
36189     ],
36190     "name": "GetMembers",
36191     "group": "Whatsapp_Queues",
36192     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36193     "version": "0.0.0",
36194     "filename": "server/api/whatsappQueue/index.js",
36195     "groupTitle": "Whatsapp_Queues"
36196   },
36197   {
36198     "type": "get",
36199     "url": "/api/whatsapp/queues",
36200     "title": "Gets a list of Queues",
36201     "examples": [
36202       {
36203         "title": "Example usage:",
36204         "content": "curl https://{domain}/api/whatsapp/queues -v -u {name}:{password}",
36205         "type": "json"
36206       }
36207     ],
36208     "name": "GetQueues",
36209     "group": "Whatsapp_Queues",
36210     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
36211     "version": "0.0.0",
36212     "filename": "server/api/whatsappQueue/index.js",
36213     "groupTitle": "Whatsapp_Queues"
36214   },
36215   {
36216     "type": "get",
36217     "url": "/api/whatsapp/queues/{id}/teams",
36218     "title": "Gets queues list",
36219     "examples": [
36220       {
36221         "title": "Example usage:",
36222         "content": "curl https://{domain}/api/whatsapp/queues/{id}/teams -v -u {name}:{password}",
36223         "type": "json"
36224       }
36225     ],
36226     "name": "GetTeams",
36227     "group": "Whatsapp_Queues",
36228     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36229     "version": "0.0.0",
36230     "filename": "server/api/whatsappQueue/index.js",
36231     "groupTitle": "Whatsapp_Queues"
36232   },
36233   {
36234     "type": "delete",
36235     "url": "/api/whatsapp/queues/{id}/users",
36236     "title": "Removes agents from a queue",
36237     "examples": [
36238       {
36239         "title": "Example usage:",
36240         "content": "curl https://{domain}/api/whatsapp/queues/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
36241         "type": "json"
36242       }
36243     ],
36244     "name": "RemoveAgents",
36245     "group": "Whatsapp_Queues",
36246     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36247     "version": "0.0.0",
36248     "filename": "server/api/whatsappQueue/index.js",
36249     "groupTitle": "Whatsapp_Queues"
36250   },
36251   {
36252     "type": "get",
36253     "url": "/api/whatsapp/queues/{id}",
36254     "title": "Gets a single Queue",
36255     "examples": [
36256       {
36257         "title": "Example usage:",
36258         "content": "curl https://{domain}/api/whatsapp/queues/{id} -v -u {name}:{password}",
36259         "type": "json"
36260       }
36261     ],
36262     "name": "ShowQueues",
36263     "group": "Whatsapp_Queues",
36264     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36265     "version": "0.0.0",
36266     "filename": "server/api/whatsappQueue/index.js",
36267     "groupTitle": "Whatsapp_Queues"
36268   },
36269   {
36270     "type": "put",
36271     "url": "/api/whatsapp/queues/{id}",
36272     "title": "Update an existing Queue",
36273     "examples": [
36274       {
36275         "title": "Example usage:",
36276         "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",
36277         "type": "json"
36278       }
36279     ],
36280     "name": "updateQueues",
36281     "group": "Whatsapp_Queues",
36282     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36283     "version": "0.0.0",
36284     "filename": "server/api/whatsappQueue/index.js",
36285     "groupTitle": "Whatsapp_Queues"
36286   },
36287   {
36288     "type": "post",
36289     "url": "/api/whatsapp/reports/transfer",
36290     "title": "Creates a new Whatsapp Transfer Report",
36291     "examples": [
36292       {
36293         "title": "Example usage:",
36294         "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",
36295         "type": "json"
36296       }
36297     ],
36298     "name": "CreateWhatsapp_Transfer_Reports",
36299     "group": "Whatsapp_Transfer_Reports",
36300     "parameter": {
36301       "fields": {
36302         "Body": [
36303           {
36304             "group": "Body",
36305             "type": "String",
36306             "optional": false,
36307             "field": "uniqueid",
36308             "description": ""
36309           },
36310           {
36311             "group": "Body",
36312             "type": "String",
36313             "allowedValues": [
36314               "\"account\"",
36315               "\"agent\"",
36316               "\"queue\""
36317             ],
36318             "optional": false,
36319             "field": "type",
36320             "description": ""
36321           },
36322           {
36323             "group": "Body",
36324             "type": "String",
36325             "optional": true,
36326             "field": "transferredAt",
36327             "description": ""
36328           }
36329         ]
36330       }
36331     },
36332     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36333     "version": "0.0.0",
36334     "filename": "server/api/whatsappTransferReport/index.js",
36335     "groupTitle": "Whatsapp_Transfer_Reports"
36336   },
36337   {
36338     "type": "delete",
36339     "url": "/api/whatsapp/reports/transfer/{id}",
36340     "title": "Deletes a Whatsapp Transfer Report",
36341     "examples": [
36342       {
36343         "title": "Example usage:",
36344         "content": "curl https://{domain}/api/whatsapp/reports/transfer/{id} -v -u {name}:{password} -X DELETE",
36345         "type": "json"
36346       }
36347     ],
36348     "name": "DeleteWhatsapp_Transfer_Reports",
36349     "group": "Whatsapp_Transfer_Reports",
36350     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36351     "version": "0.0.0",
36352     "filename": "server/api/whatsappTransferReport/index.js",
36353     "groupTitle": "Whatsapp_Transfer_Reports"
36354   },
36355   {
36356     "type": "get",
36357     "url": "/api/whatsapp/reports/transfer/describe",
36358     "title": "Gets table info about Whatsapp Transfer Reports",
36359     "examples": [
36360       {
36361         "title": "Example usage:",
36362         "content": "curl https://{domain}/api/whatsapp/reports/transfer/describe -v -u {name}:{password}",
36363         "type": "json"
36364       }
36365     ],
36366     "name": "DescribeWhatsapp_Transfer_Reports",
36367     "group": "Whatsapp_Transfer_Reports",
36368     "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>",
36369     "version": "0.0.0",
36370     "filename": "server/api/whatsappTransferReport/index.js",
36371     "groupTitle": "Whatsapp_Transfer_Reports"
36372   },
36373   {
36374     "type": "get",
36375     "url": "/api/whatsapp/reports/transfer",
36376     "title": "Gets a list of Whatsapp Transfer Reports",
36377     "examples": [
36378       {
36379         "title": "Example usage:",
36380         "content": "curl https://{domain}/api/whatsapp/reports/transfer -v -u {name}:{password}",
36381         "type": "json"
36382       }
36383     ],
36384     "name": "GetWhatsapp_Transfer_Reports",
36385     "group": "Whatsapp_Transfer_Reports",
36386     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
36387     "version": "0.0.0",
36388     "filename": "server/api/whatsappTransferReport/index.js",
36389     "groupTitle": "Whatsapp_Transfer_Reports"
36390   },
36391   {
36392     "type": "get",
36393     "url": "/api/whatsapp/reports/transfer/{id}",
36394     "title": "Gets a single Whatsapp Transfer Report",
36395     "examples": [
36396       {
36397         "title": "Example usage:",
36398         "content": "curl https://{domain}/api/whatsapp/reports/transfer/{id} -v -u {name}:{password}",
36399         "type": "json"
36400       }
36401     ],
36402     "name": "ShowWhatsapp_Transfer_Reports",
36403     "group": "Whatsapp_Transfer_Reports",
36404     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36405     "version": "0.0.0",
36406     "filename": "server/api/whatsappTransferReport/index.js",
36407     "groupTitle": "Whatsapp_Transfer_Reports"
36408   },
36409   {
36410     "type": "put",
36411     "url": "/api/whatsapp/reports/transfer/{id}",
36412     "title": "Update an existing Whatsapp Transfer Report",
36413     "examples": [
36414       {
36415         "title": "Example usage:",
36416         "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",
36417         "type": "json"
36418       }
36419     ],
36420     "name": "updateWhatsapp_Transfer_Reports",
36421     "group": "Whatsapp_Transfer_Reports",
36422     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36423     "version": "0.0.0",
36424     "filename": "server/api/whatsappTransferReport/index.js",
36425     "groupTitle": "Whatsapp_Transfer_Reports"
36426   },
36427   {
36428     "type": "post",
36429     "url": "/api/integrations/zendesk/accounts",
36430     "title": "Creates a new Zendesk Account",
36431     "examples": [
36432       {
36433         "title": "Example usage:",
36434         "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",
36435         "type": "json"
36436       }
36437     ],
36438     "name": "CreateZendesk_Accounts",
36439     "group": "Zendesk_Accounts",
36440     "parameter": {
36441       "fields": {
36442         "Body": [
36443           {
36444             "group": "Body",
36445             "type": "String",
36446             "optional": true,
36447             "field": "name",
36448             "description": ""
36449           },
36450           {
36451             "group": "Body",
36452             "type": "String",
36453             "optional": true,
36454             "field": "description",
36455             "description": ""
36456           },
36457           {
36458             "group": "Body",
36459             "type": "String",
36460             "optional": true,
36461             "field": "username",
36462             "description": ""
36463           },
36464           {
36465             "group": "Body",
36466             "type": "String",
36467             "optional": true,
36468             "field": "password",
36469             "description": ""
36470           },
36471           {
36472             "group": "Body",
36473             "type": "String",
36474             "optional": true,
36475             "field": "token",
36476             "description": ""
36477           },
36478           {
36479             "group": "Body",
36480             "type": "String",
36481             "optional": true,
36482             "field": "remoteUri",
36483             "description": ""
36484           },
36485           {
36486             "group": "Body",
36487             "type": "String",
36488             "allowedValues": [
36489               "\"password\"",
36490               "\"token\""
36491             ],
36492             "optional": true,
36493             "field": "authType",
36494             "description": ""
36495           },
36496           {
36497             "group": "Body",
36498             "type": "String",
36499             "optional": false,
36500             "field": "serverUrl",
36501             "description": ""
36502           },
36503           {
36504             "group": "Body",
36505             "type": "String",
36506             "allowedValues": [
36507               "\"integrationTab\"",
36508               "\"newTab\""
36509             ],
36510             "optional": true,
36511             "field": "type",
36512             "description": ""
36513           }
36514         ]
36515       }
36516     },
36517     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36518     "version": "0.0.0",
36519     "filename": "server/api/intZendeskAccount/index.js",
36520     "groupTitle": "Zendesk_Accounts"
36521   },
36522   {
36523     "type": "delete",
36524     "url": "/api/integrations/zendesk/accounts/{id}",
36525     "title": "Deletes a Zendesk Account",
36526     "examples": [
36527       {
36528         "title": "Example usage:",
36529         "content": "curl https://{domain}/api/integrations/zendesk/accounts/{id} -v -u {name}:{password} -X DELETE",
36530         "type": "json"
36531       }
36532     ],
36533     "name": "DeleteZendesk_Accounts",
36534     "group": "Zendesk_Accounts",
36535     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36536     "version": "0.0.0",
36537     "filename": "server/api/intZendeskAccount/index.js",
36538     "groupTitle": "Zendesk_Accounts"
36539   },
36540   {
36541     "type": "get",
36542     "url": "/api/integrations/zendesk/accounts",
36543     "title": "Gets a list of Zendesk Accounts",
36544     "examples": [
36545       {
36546         "title": "Example usage:",
36547         "content": "curl https://{domain}/api/integrations/zendesk/accounts -v -u {name}:{password}",
36548         "type": "json"
36549       }
36550     ],
36551     "name": "GetZendesk_Accounts",
36552     "group": "Zendesk_Accounts",
36553     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
36554     "version": "0.0.0",
36555     "filename": "server/api/intZendeskAccount/index.js",
36556     "groupTitle": "Zendesk_Accounts"
36557   },
36558   {
36559     "type": "get",
36560     "url": "/api/integrations/zendesk/accounts/{id}",
36561     "title": "Gets a single Zendesk Account",
36562     "examples": [
36563       {
36564         "title": "Example usage:",
36565         "content": "curl https://{domain}/api/integrations/zendesk/accounts/{id} -v -u {name}:{password}",
36566         "type": "json"
36567       }
36568     ],
36569     "name": "ShowZendesk_Accounts",
36570     "group": "Zendesk_Accounts",
36571     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36572     "version": "0.0.0",
36573     "filename": "server/api/intZendeskAccount/index.js",
36574     "groupTitle": "Zendesk_Accounts"
36575   },
36576   {
36577     "type": "post",
36578     "url": "/api/integrations/zendesk/accounts/{id}/configurations",
36579     "title": "Creates new configuration",
36580     "examples": [
36581       {
36582         "title": "Example usage:",
36583         "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",
36584         "type": "json"
36585       }
36586     ],
36587     "name": "addConfiguration",
36588     "group": "Zendesk_Accounts",
36589     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36590     "version": "0.0.0",
36591     "filename": "server/api/intZendeskAccount/index.js",
36592     "groupTitle": "Zendesk_Accounts"
36593   },
36594   {
36595     "type": "get",
36596     "url": "/api/integrations/zendesk/accounts/{id}/configurations",
36597     "title": "Gets account configurations",
36598     "examples": [
36599       {
36600         "title": "Example usage:",
36601         "content": "curl https://{domain}/api/integrations/zendesk/accounts/{id}/configurations -v -u {name}:{password} -X GET",
36602         "type": "json"
36603       }
36604     ],
36605     "name": "getConfigurations",
36606     "group": "Zendesk_Accounts",
36607     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36608     "version": "0.0.0",
36609     "filename": "server/api/intZendeskAccount/index.js",
36610     "groupTitle": "Zendesk_Accounts"
36611   },
36612   {
36613     "type": "get",
36614     "url": "/api/integrations/zendesk/accounts/{id}/fields",
36615     "title": "Gets account fields",
36616     "examples": [
36617       {
36618         "title": "Example usage:",
36619         "content": "curl https://{domain}/api/integrations/zendesk/accounts/{id}/fields -v -u {name}:{password} -X GET",
36620         "type": "json"
36621       }
36622     ],
36623     "name": "getFields",
36624     "group": "Zendesk_Accounts",
36625     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36626     "version": "0.0.0",
36627     "filename": "server/api/intZendeskAccount/index.js",
36628     "groupTitle": "Zendesk_Accounts"
36629   },
36630   {
36631     "type": "put",
36632     "url": "/api/integrations/zendesk/accounts/{id}",
36633     "title": "Update an existing Zendesk Account",
36634     "examples": [
36635       {
36636         "title": "Example usage:",
36637         "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",
36638         "type": "json"
36639       }
36640     ],
36641     "name": "updateZendesk_Accounts",
36642     "group": "Zendesk_Accounts",
36643     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36644     "version": "0.0.0",
36645     "filename": "server/api/intZendeskAccount/index.js",
36646     "groupTitle": "Zendesk_Accounts"
36647   },
36648   {
36649     "type": "post",
36650     "url": "/api/integrations/zendesk/configurations",
36651     "title": "Creates a new Zendesk Configuration",
36652     "examples": [
36653       {
36654         "title": "Example usage:",
36655         "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",
36656         "type": "json"
36657       }
36658     ],
36659     "name": "CreateZendesk_Configurations",
36660     "group": "Zendesk_Configurations",
36661     "parameter": {
36662       "fields": {
36663         "Body": [
36664           {
36665             "group": "Body",
36666             "type": "String",
36667             "optional": true,
36668             "field": "name",
36669             "description": ""
36670           },
36671           {
36672             "group": "Body",
36673             "type": "String",
36674             "optional": true,
36675             "field": "description",
36676             "description": ""
36677           }
36678         ]
36679       }
36680     },
36681     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36682     "version": "0.0.0",
36683     "filename": "server/api/intZendeskConfiguration/index.js",
36684     "groupTitle": "Zendesk_Configurations"
36685   },
36686   {
36687     "type": "delete",
36688     "url": "/api/integrations/zendesk/configurations/{id}",
36689     "title": "Deletes a Zendesk Configuration",
36690     "examples": [
36691       {
36692         "title": "Example usage:",
36693         "content": "curl https://{domain}/api/integrations/zendesk/configurations/{id} -v -u {name}:{password} -X DELETE",
36694         "type": "json"
36695       }
36696     ],
36697     "name": "DeleteZendesk_Configurations",
36698     "group": "Zendesk_Configurations",
36699     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36700     "version": "0.0.0",
36701     "filename": "server/api/intZendeskConfiguration/index.js",
36702     "groupTitle": "Zendesk_Configurations"
36703   },
36704   {
36705     "type": "get",
36706     "url": "/api/integrations/zendesk/configurations",
36707     "title": "Gets a list of Zendesk Configurations",
36708     "examples": [
36709       {
36710         "title": "Example usage:",
36711         "content": "curl https://{domain}/api/integrations/zendesk/configurations -v -u {name}:{password}",
36712         "type": "json"
36713       }
36714     ],
36715     "name": "GetZendesk_Configurations",
36716     "group": "Zendesk_Configurations",
36717     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
36718     "version": "0.0.0",
36719     "filename": "server/api/intZendeskConfiguration/index.js",
36720     "groupTitle": "Zendesk_Configurations"
36721   },
36722   {
36723     "type": "get",
36724     "url": "/api/integrations/zendesk/configurations/{id}",
36725     "title": "Gets a single Zendesk Configuration",
36726     "examples": [
36727       {
36728         "title": "Example usage:",
36729         "content": "curl https://{domain}/api/integrations/zendesk/configurations/{id} -v -u {name}:{password}",
36730         "type": "json"
36731       }
36732     ],
36733     "name": "ShowZendesk_Configurations",
36734     "group": "Zendesk_Configurations",
36735     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36736     "version": "0.0.0",
36737     "filename": "server/api/intZendeskConfiguration/index.js",
36738     "groupTitle": "Zendesk_Configurations"
36739   },
36740   {
36741     "type": "get",
36742     "url": "/api/integrations/zendesk/configurations/{id}/descriptions",
36743     "title": "Gets configurations descriptions",
36744     "examples": [
36745       {
36746         "title": "Example usage:",
36747         "content": "curl https://{domain}/api/integrations/zendesk/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
36748         "type": "json"
36749       }
36750     ],
36751     "name": "getDescriptions",
36752     "group": "Zendesk_Configurations",
36753     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36754     "version": "0.0.0",
36755     "filename": "server/api/intZendeskConfiguration/index.js",
36756     "groupTitle": "Zendesk_Configurations"
36757   },
36758   {
36759     "type": "get",
36760     "url": "/api/integrations/zendesk/configurations/{id}/fields",
36761     "title": "Gets configurations fields",
36762     "examples": [
36763       {
36764         "title": "Example usage:",
36765         "content": "curl https://{domain}/api/integrations/zendesk/configurations/{id}/fields -v -u {name}:{password} -X GET",
36766         "type": "json"
36767       }
36768     ],
36769     "name": "getFields",
36770     "group": "Zendesk_Configurations",
36771     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36772     "version": "0.0.0",
36773     "filename": "server/api/intZendeskConfiguration/index.js",
36774     "groupTitle": "Zendesk_Configurations"
36775   },
36776   {
36777     "type": "get",
36778     "url": "/api/integrations/zendesk/configurations/{id}/subjects",
36779     "title": "Gets configurations subjects",
36780     "examples": [
36781       {
36782         "title": "Example usage:",
36783         "content": "curl https://{domain}/api/integrations/zendesk/configurations/{id}/subjects -v -u {name}:{password} -X GET",
36784         "type": "json"
36785       }
36786     ],
36787     "name": "getSubjects",
36788     "group": "Zendesk_Configurations",
36789     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36790     "version": "0.0.0",
36791     "filename": "server/api/intZendeskConfiguration/index.js",
36792     "groupTitle": "Zendesk_Configurations"
36793   },
36794   {
36795     "type": "get",
36796     "url": "/api/integrations/zendesk/configurations/{id}/tags",
36797     "title": "Gets configurations tags",
36798     "examples": [
36799       {
36800         "title": "Example usage:",
36801         "content": "curl https://{domain}/api/integrations/zendesk/configurations/{id}/tags -v -u {name}:{password} -X GET",
36802         "type": "json"
36803       }
36804     ],
36805     "name": "getTags",
36806     "group": "Zendesk_Configurations",
36807     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36808     "version": "0.0.0",
36809     "filename": "server/api/intZendeskConfiguration/index.js",
36810     "groupTitle": "Zendesk_Configurations"
36811   },
36812   {
36813     "type": "post",
36814     "url": "/api/integrations/zendesk/configurations/{id}/tags",
36815     "title": "Sets new tags",
36816     "examples": [
36817       {
36818         "title": "Example usage:",
36819         "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",
36820         "type": "json"
36821       }
36822     ],
36823     "name": "setTags",
36824     "group": "Zendesk_Configurations",
36825     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36826     "version": "0.0.0",
36827     "filename": "server/api/intZendeskConfiguration/index.js",
36828     "groupTitle": "Zendesk_Configurations"
36829   },
36830   {
36831     "type": "put",
36832     "url": "/api/integrations/zendesk/configurations/{id}",
36833     "title": "Update an existing Zendesk Configuration",
36834     "examples": [
36835       {
36836         "title": "Example usage:",
36837         "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",
36838         "type": "json"
36839       }
36840     ],
36841     "name": "updateZendesk_Configurations",
36842     "group": "Zendesk_Configurations",
36843     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36844     "version": "0.0.0",
36845     "filename": "server/api/intZendeskConfiguration/index.js",
36846     "groupTitle": "Zendesk_Configurations"
36847   },
36848   {
36849     "type": "post",
36850     "url": "/api/integrations/zendesk/fields",
36851     "title": "Creates a new Zendesk Field",
36852     "examples": [
36853       {
36854         "title": "Example usage:",
36855         "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",
36856         "type": "json"
36857       }
36858     ],
36859     "name": "CreateZendesk_Fields",
36860     "group": "Zendesk_Fields",
36861     "parameter": {
36862       "fields": {
36863         "Body": [
36864           {
36865             "group": "Body",
36866             "type": "String",
36867             "allowedValues": [
36868               "\"string\"",
36869               "\"variable\"",
36870               "\"customVariable\"",
36871               "\"keyValue\"",
36872               "\"picklist\""
36873             ],
36874             "optional": true,
36875             "field": "type",
36876             "description": ""
36877           },
36878           {
36879             "group": "Body",
36880             "type": "String",
36881             "optional": true,
36882             "field": "content",
36883             "description": ""
36884           },
36885           {
36886             "group": "Body",
36887             "type": "String",
36888             "optional": true,
36889             "field": "key",
36890             "description": ""
36891           },
36892           {
36893             "group": "Body",
36894             "type": "String",
36895             "allowedValues": [
36896               "\"string\"",
36897               "\"variable\"",
36898               "\"customVariable\""
36899             ],
36900             "optional": true,
36901             "field": "keyType",
36902             "description": ""
36903           },
36904           {
36905             "group": "Body",
36906             "type": "String",
36907             "optional": true,
36908             "field": "keyContent",
36909             "description": ""
36910           },
36911           {
36912             "group": "Body",
36913             "type": "String",
36914             "optional": true,
36915             "field": "idField",
36916             "description": ""
36917           },
36918           {
36919             "group": "Body",
36920             "type": "String",
36921             "optional": true,
36922             "field": "nameField",
36923             "description": ""
36924           },
36925           {
36926             "group": "Body",
36927             "type": "Boolean",
36928             "optional": true,
36929             "field": "customField",
36930             "description": ""
36931           },
36932           {
36933             "group": "Body",
36934             "type": "String",
36935             "optional": true,
36936             "field": "variableName",
36937             "description": ""
36938           }
36939         ]
36940       }
36941     },
36942     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36943     "version": "0.0.0",
36944     "filename": "server/api/intZendeskField/index.js",
36945     "groupTitle": "Zendesk_Fields"
36946   },
36947   {
36948     "type": "delete",
36949     "url": "/api/integrations/zendesk/fields/{id}",
36950     "title": "Deletes a Zendesk Field",
36951     "examples": [
36952       {
36953         "title": "Example usage:",
36954         "content": "curl https://{domain}/api/integrations/zendesk/fields/{id} -v -u {name}:{password} -X DELETE",
36955         "type": "json"
36956       }
36957     ],
36958     "name": "DeleteZendesk_Fields",
36959     "group": "Zendesk_Fields",
36960     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36961     "version": "0.0.0",
36962     "filename": "server/api/intZendeskField/index.js",
36963     "groupTitle": "Zendesk_Fields"
36964   },
36965   {
36966     "type": "get",
36967     "url": "/api/integrations/zendesk/fields",
36968     "title": "Gets a list of Zendesk Fields",
36969     "examples": [
36970       {
36971         "title": "Example usage:",
36972         "content": "curl https://{domain}/api/integrations/zendesk/fields -v -u {name}:{password}",
36973         "type": "json"
36974       }
36975     ],
36976     "name": "GetZendesk_Fields",
36977     "group": "Zendesk_Fields",
36978     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
36979     "version": "0.0.0",
36980     "filename": "server/api/intZendeskField/index.js",
36981     "groupTitle": "Zendesk_Fields"
36982   },
36983   {
36984     "type": "get",
36985     "url": "/api/integrations/zendesk/fields/{id}",
36986     "title": "Gets a single Zendesk Field",
36987     "examples": [
36988       {
36989         "title": "Example usage:",
36990         "content": "curl https://{domain}/api/integrations/zendesk/fields/{id} -v -u {name}:{password}",
36991         "type": "json"
36992       }
36993     ],
36994     "name": "ShowZendesk_Fields",
36995     "group": "Zendesk_Fields",
36996     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
36997     "version": "0.0.0",
36998     "filename": "server/api/intZendeskField/index.js",
36999     "groupTitle": "Zendesk_Fields"
37000   },
37001   {
37002     "type": "put",
37003     "url": "/api/integrations/zendesk/fields/{id}",
37004     "title": "Update an existing Zendesk Field",
37005     "examples": [
37006       {
37007         "title": "Example usage:",
37008         "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",
37009         "type": "json"
37010       }
37011     ],
37012     "name": "updateZendesk_Fields",
37013     "group": "Zendesk_Fields",
37014     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37015     "version": "0.0.0",
37016     "filename": "server/api/intZendeskField/index.js",
37017     "groupTitle": "Zendesk_Fields"
37018   },
37019   {
37020     "type": "post",
37021     "url": "/api/integrations/zoho/accounts",
37022     "title": "Creates a new Zoho Account",
37023     "examples": [
37024       {
37025         "title": "Example usage:",
37026         "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",
37027         "type": "json"
37028       }
37029     ],
37030     "name": "CreateZoho_Accounts",
37031     "group": "Zoho_Accounts",
37032     "parameter": {
37033       "fields": {
37034         "Body": [
37035           {
37036             "group": "Body",
37037             "type": "String",
37038             "optional": true,
37039             "field": "name",
37040             "description": ""
37041           },
37042           {
37043             "group": "Body",
37044             "type": "String",
37045             "optional": true,
37046             "field": "description",
37047             "description": ""
37048           },
37049           {
37050             "group": "Body",
37051             "type": "String",
37052             "optional": true,
37053             "field": "host",
37054             "description": ""
37055           },
37056           {
37057             "group": "Body",
37058             "type": "String",
37059             "optional": true,
37060             "field": "zone",
37061             "description": ""
37062           },
37063           {
37064             "group": "Body",
37065             "type": "String",
37066             "optional": true,
37067             "field": "clientId",
37068             "description": ""
37069           },
37070           {
37071             "group": "Body",
37072             "type": "String",
37073             "optional": true,
37074             "field": "clientSecret",
37075             "description": ""
37076           },
37077           {
37078             "group": "Body",
37079             "type": "String",
37080             "optional": false,
37081             "field": "serverUrl",
37082             "description": ""
37083           },
37084           {
37085             "group": "Body",
37086             "type": "String",
37087             "optional": true,
37088             "field": "code",
37089             "description": ""
37090           },
37091           {
37092             "group": "Body",
37093             "type": "String",
37094             "optional": true,
37095             "field": "refreshToken",
37096             "description": ""
37097           }
37098         ]
37099       }
37100     },
37101     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37102     "version": "0.0.0",
37103     "filename": "server/api/intZohoAccount/index.js",
37104     "groupTitle": "Zoho_Accounts"
37105   },
37106   {
37107     "type": "delete",
37108     "url": "/api/integrations/zoho/accounts/{id}",
37109     "title": "Deletes a Zoho Account",
37110     "examples": [
37111       {
37112         "title": "Example usage:",
37113         "content": "curl https://{domain}/api/integrations/zoho/accounts/{id} -v -u {name}:{password} -X DELETE",
37114         "type": "json"
37115       }
37116     ],
37117     "name": "DeleteZoho_Accounts",
37118     "group": "Zoho_Accounts",
37119     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37120     "version": "0.0.0",
37121     "filename": "server/api/intZohoAccount/index.js",
37122     "groupTitle": "Zoho_Accounts"
37123   },
37124   {
37125     "type": "get",
37126     "url": "/api/integrations/zoho/accounts",
37127     "title": "Gets a list of Zoho Accounts",
37128     "examples": [
37129       {
37130         "title": "Example usage:",
37131         "content": "curl https://{domain}/api/integrations/zoho/accounts -v -u {name}:{password}",
37132         "type": "json"
37133       }
37134     ],
37135     "name": "GetZoho_Accounts",
37136     "group": "Zoho_Accounts",
37137     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
37138     "version": "0.0.0",
37139     "filename": "server/api/intZohoAccount/index.js",
37140     "groupTitle": "Zoho_Accounts"
37141   },
37142   {
37143     "type": "get",
37144     "url": "/api/integrations/zoho/accounts/{id}",
37145     "title": "Gets a single Zoho Account",
37146     "examples": [
37147       {
37148         "title": "Example usage:",
37149         "content": "curl https://{domain}/api/integrations/zoho/accounts/{id} -v -u {name}:{password}",
37150         "type": "json"
37151       }
37152     ],
37153     "name": "ShowZoho_Accounts",
37154     "group": "Zoho_Accounts",
37155     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37156     "version": "0.0.0",
37157     "filename": "server/api/intZohoAccount/index.js",
37158     "groupTitle": "Zoho_Accounts"
37159   },
37160   {
37161     "type": "post",
37162     "url": "/api/integrations/zoho/accounts/{id}/configurations",
37163     "title": "Creates new configuration",
37164     "examples": [
37165       {
37166         "title": "Example usage:",
37167         "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",
37168         "type": "json"
37169       }
37170     ],
37171     "name": "addConfiguration",
37172     "group": "Zoho_Accounts",
37173     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37174     "version": "0.0.0",
37175     "filename": "server/api/intZohoAccount/index.js",
37176     "groupTitle": "Zoho_Accounts"
37177   },
37178   {
37179     "type": "get",
37180     "url": "/api/integrations/zoho/accounts/{id}/configurations",
37181     "title": "Gets account configurations",
37182     "examples": [
37183       {
37184         "title": "Example usage:",
37185         "content": "curl https://{domain}/api/integrations/zoho/accounts/{id}/configurations -v -u {name}:{password} -X GET",
37186         "type": "json"
37187       }
37188     ],
37189     "name": "getConfigurations",
37190     "group": "Zoho_Accounts",
37191     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37192     "version": "0.0.0",
37193     "filename": "server/api/intZohoAccount/index.js",
37194     "groupTitle": "Zoho_Accounts"
37195   },
37196   {
37197     "type": "get",
37198     "url": "/api/integrations/zoho/accounts/{id}/fields",
37199     "title": "Gets account fields",
37200     "examples": [
37201       {
37202         "title": "Example usage:",
37203         "content": "curl https://{domain}/api/integrations/zoho/accounts/{id}/fields -v -u {name}:{password} -X GET",
37204         "type": "json"
37205       }
37206     ],
37207     "name": "getFields",
37208     "group": "Zoho_Accounts",
37209     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37210     "version": "0.0.0",
37211     "filename": "server/api/intZohoAccount/index.js",
37212     "groupTitle": "Zoho_Accounts"
37213   },
37214   {
37215     "type": "put",
37216     "url": "/api/integrations/zoho/accounts/{id}",
37217     "title": "Update an existing Zoho Account",
37218     "examples": [
37219       {
37220         "title": "Example usage:",
37221         "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",
37222         "type": "json"
37223       }
37224     ],
37225     "name": "updateZoho_Accounts",
37226     "group": "Zoho_Accounts",
37227     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37228     "version": "0.0.0",
37229     "filename": "server/api/intZohoAccount/index.js",
37230     "groupTitle": "Zoho_Accounts"
37231   },
37232   {
37233     "type": "post",
37234     "url": "/api/integrations/zoho/configurations",
37235     "title": "Creates a new Zoho Configuration",
37236     "examples": [
37237       {
37238         "title": "Example usage:",
37239         "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",
37240         "type": "json"
37241       }
37242     ],
37243     "name": "CreateZoho_Configurations",
37244     "group": "Zoho_Configurations",
37245     "parameter": {
37246       "fields": {
37247         "Body": [
37248           {
37249             "group": "Body",
37250             "type": "String",
37251             "optional": true,
37252             "field": "name",
37253             "description": ""
37254           },
37255           {
37256             "group": "Body",
37257             "type": "String",
37258             "allowedValues": [
37259               "\"lead\"",
37260               "\"contact\"",
37261               "\"nothing\""
37262             ],
37263             "optional": true,
37264             "field": "moduleCreate",
37265             "description": ""
37266           },
37267           {
37268             "group": "Body",
37269             "type": "String",
37270             "allowedValues": [
37271               "\"contact_lead\"",
37272               "\"contact\"",
37273               "\"lead\""
37274             ],
37275             "optional": true,
37276             "field": "moduleSearch",
37277             "description": ""
37278           },
37279           {
37280             "group": "Body",
37281             "type": "String",
37282             "optional": true,
37283             "field": "description",
37284             "description": ""
37285           }
37286         ]
37287       }
37288     },
37289     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37290     "version": "0.0.0",
37291     "filename": "server/api/intZohoConfiguration/index.js",
37292     "groupTitle": "Zoho_Configurations"
37293   },
37294   {
37295     "type": "delete",
37296     "url": "/api/integrations/zoho/configurations/{id}",
37297     "title": "Deletes a Zoho Configuration",
37298     "examples": [
37299       {
37300         "title": "Example usage:",
37301         "content": "curl https://{domain}/api/integrations/zoho/configurations/{id} -v -u {name}:{password} -X DELETE",
37302         "type": "json"
37303       }
37304     ],
37305     "name": "DeleteZoho_Configurations",
37306     "group": "Zoho_Configurations",
37307     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37308     "version": "0.0.0",
37309     "filename": "server/api/intZohoConfiguration/index.js",
37310     "groupTitle": "Zoho_Configurations"
37311   },
37312   {
37313     "type": "get",
37314     "url": "/api/integrations/zoho/configurations",
37315     "title": "Gets a list of Zoho Configurations",
37316     "examples": [
37317       {
37318         "title": "Example usage:",
37319         "content": "curl https://{domain}/api/integrations/zoho/configurations -v -u {name}:{password}",
37320         "type": "json"
37321       }
37322     ],
37323     "name": "GetZoho_Configurations",
37324     "group": "Zoho_Configurations",
37325     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
37326     "version": "0.0.0",
37327     "filename": "server/api/intZohoConfiguration/index.js",
37328     "groupTitle": "Zoho_Configurations"
37329   },
37330   {
37331     "type": "get",
37332     "url": "/api/integrations/zoho/configurations/{id}",
37333     "title": "Gets a single Zoho Configuration",
37334     "examples": [
37335       {
37336         "title": "Example usage:",
37337         "content": "curl https://{domain}/api/integrations/zoho/configurations/{id} -v -u {name}:{password}",
37338         "type": "json"
37339       }
37340     ],
37341     "name": "ShowZoho_Configurations",
37342     "group": "Zoho_Configurations",
37343     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37344     "version": "0.0.0",
37345     "filename": "server/api/intZohoConfiguration/index.js",
37346     "groupTitle": "Zoho_Configurations"
37347   },
37348   {
37349     "type": "get",
37350     "url": "/api/integrations/zoho/configurations/{id}/descriptions",
37351     "title": "Gets configurations descriptions",
37352     "examples": [
37353       {
37354         "title": "Example usage:",
37355         "content": "curl https://{domain}/api/integrations/zoho/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
37356         "type": "json"
37357       }
37358     ],
37359     "name": "getDescriptions",
37360     "group": "Zoho_Configurations",
37361     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37362     "version": "0.0.0",
37363     "filename": "server/api/intZohoConfiguration/index.js",
37364     "groupTitle": "Zoho_Configurations"
37365   },
37366   {
37367     "type": "get",
37368     "url": "/api/integrations/zoho/configurations/{id}/fields",
37369     "title": "Gets configurations fields",
37370     "examples": [
37371       {
37372         "title": "Example usage:",
37373         "content": "curl https://{domain}/api/integrations/zoho/configurations/{id}/fields -v -u {name}:{password} -X GET",
37374         "type": "json"
37375       }
37376     ],
37377     "name": "getFields",
37378     "group": "Zoho_Configurations",
37379     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37380     "version": "0.0.0",
37381     "filename": "server/api/intZohoConfiguration/index.js",
37382     "groupTitle": "Zoho_Configurations"
37383   },
37384   {
37385     "type": "get",
37386     "url": "/api/integrations/zoho/configurations/{id}/subjects",
37387     "title": "Gets configurations subjects",
37388     "examples": [
37389       {
37390         "title": "Example usage:",
37391         "content": "curl https://{domain}/api/integrations/zoho/configurations/{id}/subjects -v -u {name}:{password} -X GET",
37392         "type": "json"
37393       }
37394     ],
37395     "name": "getSubjects",
37396     "group": "Zoho_Configurations",
37397     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37398     "version": "0.0.0",
37399     "filename": "server/api/intZohoConfiguration/index.js",
37400     "groupTitle": "Zoho_Configurations"
37401   },
37402   {
37403     "type": "put",
37404     "url": "/api/integrations/zoho/configurations/{id}",
37405     "title": "Update an existing Zoho Configuration",
37406     "examples": [
37407       {
37408         "title": "Example usage:",
37409         "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",
37410         "type": "json"
37411       }
37412     ],
37413     "name": "updateZoho_Configurations",
37414     "group": "Zoho_Configurations",
37415     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37416     "version": "0.0.0",
37417     "filename": "server/api/intZohoConfiguration/index.js",
37418     "groupTitle": "Zoho_Configurations"
37419   },
37420   {
37421     "type": "post",
37422     "url": "/api/integrations/zoho/fields",
37423     "title": "Creates a new Zoho Field",
37424     "examples": [
37425       {
37426         "title": "Example usage:",
37427         "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",
37428         "type": "json"
37429       }
37430     ],
37431     "name": "CreateZoho_Fields",
37432     "group": "Zoho_Fields",
37433     "parameter": {
37434       "fields": {
37435         "Body": [
37436           {
37437             "group": "Body",
37438             "type": "String",
37439             "allowedValues": [
37440               "\"string\"",
37441               "\"variable\"",
37442               "\"customVariable\"",
37443               "\"keyValue\"",
37444               "\"picklist\""
37445             ],
37446             "optional": true,
37447             "field": "type",
37448             "description": ""
37449           },
37450           {
37451             "group": "Body",
37452             "type": "String",
37453             "optional": true,
37454             "field": "content",
37455             "description": ""
37456           },
37457           {
37458             "group": "Body",
37459             "type": "String",
37460             "optional": true,
37461             "field": "key",
37462             "description": ""
37463           },
37464           {
37465             "group": "Body",
37466             "type": "String",
37467             "allowedValues": [
37468               "\"string\"",
37469               "\"variable\"",
37470               "\"customVariable\""
37471             ],
37472             "optional": true,
37473             "field": "keyType",
37474             "description": ""
37475           },
37476           {
37477             "group": "Body",
37478             "type": "String",
37479             "optional": true,
37480             "field": "keyContent",
37481             "description": ""
37482           },
37483           {
37484             "group": "Body",
37485             "type": "String",
37486             "optional": true,
37487             "field": "idField",
37488             "description": ""
37489           },
37490           {
37491             "group": "Body",
37492             "type": "String",
37493             "optional": true,
37494             "field": "nameField",
37495             "description": ""
37496           },
37497           {
37498             "group": "Body",
37499             "type": "Boolean",
37500             "optional": true,
37501             "field": "customField",
37502             "description": ""
37503           },
37504           {
37505             "group": "Body",
37506             "type": "String",
37507             "optional": true,
37508             "field": "variableName",
37509             "description": ""
37510           }
37511         ]
37512       }
37513     },
37514     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37515     "version": "0.0.0",
37516     "filename": "server/api/intZohoField/index.js",
37517     "groupTitle": "Zoho_Fields"
37518   },
37519   {
37520     "type": "delete",
37521     "url": "/api/integrations/zoho/fields/{id}",
37522     "title": "Deletes a Zoho Field",
37523     "examples": [
37524       {
37525         "title": "Example usage:",
37526         "content": "curl https://{domain}/api/integrations/zoho/fields/{id} -v -u {name}:{password} -X DELETE",
37527         "type": "json"
37528       }
37529     ],
37530     "name": "DeleteZoho_Fields",
37531     "group": "Zoho_Fields",
37532     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37533     "version": "0.0.0",
37534     "filename": "server/api/intZohoField/index.js",
37535     "groupTitle": "Zoho_Fields"
37536   },
37537   {
37538     "type": "get",
37539     "url": "/api/integrations/zoho/fields",
37540     "title": "Gets a list of Zoho Fields",
37541     "examples": [
37542       {
37543         "title": "Example usage:",
37544         "content": "curl https://{domain}/api/integrations/zoho/fields -v -u {name}:{password}",
37545         "type": "json"
37546       }
37547     ],
37548     "name": "GetZoho_Fields",
37549     "group": "Zoho_Fields",
37550     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
37551     "version": "0.0.0",
37552     "filename": "server/api/intZohoField/index.js",
37553     "groupTitle": "Zoho_Fields"
37554   },
37555   {
37556     "type": "get",
37557     "url": "/api/integrations/zoho/fields/{id}",
37558     "title": "Gets a single Zoho Field",
37559     "examples": [
37560       {
37561         "title": "Example usage:",
37562         "content": "curl https://{domain}/api/integrations/zoho/fields/{id} -v -u {name}:{password}",
37563         "type": "json"
37564       }
37565     ],
37566     "name": "ShowZoho_Fields",
37567     "group": "Zoho_Fields",
37568     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37569     "version": "0.0.0",
37570     "filename": "server/api/intZohoField/index.js",
37571     "groupTitle": "Zoho_Fields"
37572   },
37573   {
37574     "type": "put",
37575     "url": "/api/integrations/zoho/fields/{id}",
37576     "title": "Update an existing Zoho Field",
37577     "examples": [
37578       {
37579         "title": "Example usage:",
37580         "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",
37581         "type": "json"
37582       }
37583     ],
37584     "name": "updateZoho_Fields",
37585     "group": "Zoho_Fields",
37586     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37587     "version": "0.0.0",
37588     "filename": "server/api/intZohoField/index.js",
37589     "groupTitle": "Zoho_Fields"
37590   },
37591   {
37592     "type": "post",
37593     "url": "/api/cdr",
37594     "title": "Creates a new Cdr",
37595     "examples": [
37596       {
37597         "title": "Example usage:",
37598         "content": "curl https://{domain}/api/cdr -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
37599         "type": "json"
37600       }
37601     ],
37602     "name": "CreateCdrs",
37603     "group": "cdr",
37604     "parameter": {
37605       "fields": {
37606         "Body": [
37607           {
37608             "group": "Body",
37609             "type": "String",
37610             "optional": false,
37611             "field": "calldate",
37612             "description": ""
37613           },
37614           {
37615             "group": "Body",
37616             "type": "String",
37617             "optional": true,
37618             "field": "clid",
37619             "description": ""
37620           },
37621           {
37622             "group": "Body",
37623             "type": "String",
37624             "optional": true,
37625             "field": "src",
37626             "description": ""
37627           },
37628           {
37629             "group": "Body",
37630             "type": "String",
37631             "optional": true,
37632             "field": "dst",
37633             "description": ""
37634           },
37635           {
37636             "group": "Body",
37637             "type": "String",
37638             "optional": true,
37639             "field": "dcontext",
37640             "description": ""
37641           },
37642           {
37643             "group": "Body",
37644             "type": "String",
37645             "optional": true,
37646             "field": "channel",
37647             "description": ""
37648           },
37649           {
37650             "group": "Body",
37651             "type": "String",
37652             "optional": true,
37653             "field": "dstchannel",
37654             "description": ""
37655           },
37656           {
37657             "group": "Body",
37658             "type": "String",
37659             "optional": true,
37660             "field": "lastapp",
37661             "description": ""
37662           },
37663           {
37664             "group": "Body",
37665             "type": "String",
37666             "optional": true,
37667             "field": "lastdata",
37668             "description": ""
37669           },
37670           {
37671             "group": "Body",
37672             "type": "Integer",
37673             "optional": false,
37674             "field": "duration",
37675             "description": ""
37676           },
37677           {
37678             "group": "Body",
37679             "type": "Integer",
37680             "optional": false,
37681             "field": "billsec",
37682             "description": ""
37683           },
37684           {
37685             "group": "Body",
37686             "type": "String",
37687             "optional": true,
37688             "field": "disposition",
37689             "description": ""
37690           },
37691           {
37692             "group": "Body",
37693             "type": "Integer",
37694             "optional": false,
37695             "field": "amaflags",
37696             "description": ""
37697           },
37698           {
37699             "group": "Body",
37700             "type": "String",
37701             "optional": true,
37702             "field": "accountcode",
37703             "description": ""
37704           },
37705           {
37706             "group": "Body",
37707             "type": "String",
37708             "optional": true,
37709             "field": "userfield",
37710             "description": ""
37711           },
37712           {
37713             "group": "Body",
37714             "type": "String",
37715             "optional": true,
37716             "field": "uniqueid",
37717             "description": ""
37718           },
37719           {
37720             "group": "Body",
37721             "type": "String",
37722             "optional": true,
37723             "field": "linkedid",
37724             "description": ""
37725           },
37726           {
37727             "group": "Body",
37728             "type": "String",
37729             "optional": true,
37730             "field": "sequence",
37731             "description": ""
37732           },
37733           {
37734             "group": "Body",
37735             "type": "String",
37736             "optional": true,
37737             "field": "peeraccount",
37738             "description": ""
37739           },
37740           {
37741             "group": "Body",
37742             "type": "String",
37743             "optional": true,
37744             "field": "type",
37745             "description": ""
37746           },
37747           {
37748             "group": "Body",
37749             "type": "String",
37750             "optional": true,
37751             "field": "tag",
37752             "description": ""
37753           }
37754         ]
37755       }
37756     },
37757     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37758     "version": "0.0.0",
37759     "filename": "server/api/cdr/index.js",
37760     "groupTitle": "cdr"
37761   },
37762   {
37763     "type": "delete",
37764     "url": "/api/cdr/{id}",
37765     "title": "Deletes a Cdr",
37766     "examples": [
37767       {
37768         "title": "Example usage:",
37769         "content": "curl https://{domain}/api/cdr/{id} -v -u {name}:{password} -X DELETE",
37770         "type": "json"
37771       }
37772     ],
37773     "name": "DeleteCdrs",
37774     "group": "cdr",
37775     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37776     "version": "0.0.0",
37777     "filename": "server/api/cdr/index.js",
37778     "groupTitle": "cdr"
37779   },
37780   {
37781     "type": "get",
37782     "url": "/api/cdr/describe",
37783     "title": "Gets table info about Cdrs",
37784     "examples": [
37785       {
37786         "title": "Example usage:",
37787         "content": "curl https://{domain}/api/cdr/describe -v -u {name}:{password}",
37788         "type": "json"
37789       }
37790     ],
37791     "name": "DescribeCdrs",
37792     "group": "cdr",
37793     "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>",
37794     "version": "0.0.0",
37795     "filename": "server/api/cdr/index.js",
37796     "groupTitle": "cdr"
37797   },
37798   {
37799     "type": "get",
37800     "url": "/api/cdr",
37801     "title": "Gets a list of Cdrs",
37802     "examples": [
37803       {
37804         "title": "Example usage:",
37805         "content": "curl https://{domain}/api/cdr -v -u {name}:{password}",
37806         "type": "json"
37807       }
37808     ],
37809     "name": "GetCdrs",
37810     "group": "cdr",
37811     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
37812     "version": "0.0.0",
37813     "filename": "server/api/cdr/index.js",
37814     "groupTitle": "cdr"
37815   },
37816   {
37817     "type": "get",
37818     "url": "/api/cdr/{id}",
37819     "title": "Gets a single Cdr",
37820     "examples": [
37821       {
37822         "title": "Example usage:",
37823         "content": "curl https://{domain}/api/cdr/{id} -v -u {name}:{password}",
37824         "type": "json"
37825       }
37826     ],
37827     "name": "ShowCdrs",
37828     "group": "cdr",
37829     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37830     "version": "0.0.0",
37831     "filename": "server/api/cdr/index.js",
37832     "groupTitle": "cdr"
37833   },
37834   {
37835     "type": "put",
37836     "url": "/api/cdr/{id}",
37837     "title": "Update an existing Cdr",
37838     "examples": [
37839       {
37840         "title": "Example usage:",
37841         "content": "curl https://{domain}/api/cdr/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
37842         "type": "json"
37843       }
37844     ],
37845     "name": "updateCdrs",
37846     "group": "cdr",
37847     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37848     "version": "0.0.0",
37849     "filename": "server/api/cdr/index.js",
37850     "groupTitle": "cdr"
37851   },
37852   {
37853     "type": "post",
37854     "url": "/api/voiceQueuesLog",
37855     "title": "Creates a new VoiceQueuesLog",
37856     "examples": [
37857       {
37858         "title": "Example usage:",
37859         "content": "curl https://{domain}/api/voiceQueuesLog -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
37860         "type": "json"
37861       }
37862     ],
37863     "name": "CreateVoiceQueuesLogs",
37864     "group": "voiceQueuesLog",
37865     "parameter": {
37866       "fields": {
37867         "Body": [
37868           {
37869             "group": "Body",
37870             "type": "String",
37871             "optional": true,
37872             "field": "time",
37873             "description": ""
37874           },
37875           {
37876             "group": "Body",
37877             "type": "String",
37878             "optional": false,
37879             "field": "callid",
37880             "description": ""
37881           },
37882           {
37883             "group": "Body",
37884             "type": "String",
37885             "optional": false,
37886             "field": "queuename",
37887             "description": ""
37888           },
37889           {
37890             "group": "Body",
37891             "type": "String",
37892             "optional": false,
37893             "field": "agent",
37894             "description": ""
37895           },
37896           {
37897             "group": "Body",
37898             "type": "String",
37899             "optional": false,
37900             "field": "event",
37901             "description": ""
37902           },
37903           {
37904             "group": "Body",
37905             "type": "String",
37906             "optional": false,
37907             "field": "data",
37908             "description": ""
37909           },
37910           {
37911             "group": "Body",
37912             "type": "String",
37913             "optional": false,
37914             "field": "data1",
37915             "description": ""
37916           },
37917           {
37918             "group": "Body",
37919             "type": "String",
37920             "optional": false,
37921             "field": "data2",
37922             "description": ""
37923           },
37924           {
37925             "group": "Body",
37926             "type": "String",
37927             "optional": false,
37928             "field": "data3",
37929             "description": ""
37930           },
37931           {
37932             "group": "Body",
37933             "type": "String",
37934             "optional": false,
37935             "field": "data4",
37936             "description": ""
37937           },
37938           {
37939             "group": "Body",
37940             "type": "String",
37941             "optional": false,
37942             "field": "data5",
37943             "description": ""
37944           },
37945           {
37946             "group": "Body",
37947             "type": "String",
37948             "optional": false,
37949             "field": "dtm",
37950             "description": ""
37951           }
37952         ]
37953       }
37954     },
37955     "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37956     "version": "0.0.0",
37957     "filename": "server/api/voiceQueuesLog/index.js",
37958     "groupTitle": "voiceQueuesLog"
37959   },
37960   {
37961     "type": "delete",
37962     "url": "/api/voiceQueuesLog/{id}",
37963     "title": "Deletes a VoiceQueuesLog",
37964     "examples": [
37965       {
37966         "title": "Example usage:",
37967         "content": "curl https://{domain}/api/voiceQueuesLog/{id} -v -u {name}:{password} -X DELETE",
37968         "type": "json"
37969       }
37970     ],
37971     "name": "DeleteVoiceQueuesLogs",
37972     "group": "voiceQueuesLog",
37973     "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
37974     "version": "0.0.0",
37975     "filename": "server/api/voiceQueuesLog/index.js",
37976     "groupTitle": "voiceQueuesLog"
37977   },
37978   {
37979     "type": "get",
37980     "url": "/api/voiceQueuesLog",
37981     "title": "Gets a list of VoiceQueuesLogs",
37982     "examples": [
37983       {
37984         "title": "Example usage:",
37985         "content": "curl https://{domain}/api/voiceQueuesLog -v -u {name}:{password}",
37986         "type": "json"
37987       }
37988     ],
37989     "name": "GetVoiceQueuesLogs",
37990     "group": "voiceQueuesLog",
37991     "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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>",
37992     "version": "0.0.0",
37993     "filename": "server/api/voiceQueuesLog/index.js",
37994     "groupTitle": "voiceQueuesLog"
37995   },
37996   {
37997     "type": "get",
37998     "url": "/api/voiceQueuesLog/{id}",
37999     "title": "Gets a single VoiceQueuesLog",
38000     "examples": [
38001       {
38002         "title": "Example usage:",
38003         "content": "curl https://{domain}/api/voiceQueuesLog/{id} -v -u {name}:{password}",
38004         "type": "json"
38005       }
38006     ],
38007     "name": "ShowVoiceQueuesLogs",
38008     "group": "voiceQueuesLog",
38009     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <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/voiceQueuesLog/index.js",
38012     "groupTitle": "voiceQueuesLog"
38013   },
38014   {
38015     "type": "put",
38016     "url": "/api/voiceQueuesLog/{id}",
38017     "title": "Update an existing VoiceQueuesLog",
38018     "examples": [
38019       {
38020         "title": "Example usage:",
38021         "content": "curl https://{domain}/api/voiceQueuesLog/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
38022         "type": "json"
38023       }
38024     ],
38025     "name": "updateVoiceQueuesLogs",
38026     "group": "voiceQueuesLog",
38027     "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
38028     "version": "0.0.0",
38029     "filename": "server/api/voiceQueuesLog/index.js",
38030     "groupTitle": "voiceQueuesLog"
38031   }
38032 ] });