4 "url": "/api/actions/{id}",
5 "title": "Deletes a Action",
8 "title": "Example usage:",
9 "content": "curl https://{domain}/api/actions/{id} -v -u {name}:{password} -X DELETE",
13 "name": "DeleteActions",
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>",
17 "filename": "server/api/action/index.js",
18 "groupTitle": "Actions"
22 "url": "/api/actions/{id}",
23 "title": "Update an existing Action",
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",
31 "name": "updateActions",
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>",
35 "filename": "server/api/action/index.js",
36 "groupTitle": "Actions"
40 "url": "/api/analytics/custom_reports",
41 "title": "Creates a new Analytic Custom Report",
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",
49 "name": "CreateAnalytic_Custom_Reports",
50 "group": "Analytic_Custom_Reports",
65 "field": "description",
86 "field": "conditions",
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>",
101 "filename": "server/api/analyticCustomReport/index.js",
102 "groupTitle": "Analytic_Custom_Reports"
106 "url": "/api/analytics/custom_reports/{id}",
107 "title": "Deletes a Analytic Custom Report",
110 "title": "Example usage:",
111 "content": "curl https://{domain}/api/analytics/custom_reports/{id} -v -u {name}:{password} -X DELETE",
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>",
119 "filename": "server/api/analyticCustomReport/index.js",
120 "groupTitle": "Analytic_Custom_Reports"
124 "url": "/api/analytics/custom_reports",
125 "title": "Gets a list of Analytic Custom Reports",
128 "title": "Example usage:",
129 "content": "curl https://{domain}/api/analytics/custom_reports -v -u {name}:{password}",
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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
137 "filename": "server/api/analyticCustomReport/index.js",
138 "groupTitle": "Analytic_Custom_Reports"
142 "url": "/api/analytics/custom_reports/{id}",
143 "title": "Gets a single Analytic Custom Report",
146 "title": "Example usage:",
147 "content": "curl https://{domain}/api/analytics/custom_reports/{id} -v -u {name}:{password}",
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>",
155 "filename": "server/api/analyticCustomReport/index.js",
156 "groupTitle": "Analytic_Custom_Reports"
160 "url": "/api/analytics/custom_reports/{id}/preview",
161 "title": "Report Preview",
164 "title": "Example usage:",
165 "content": "curl https://{domain}/api/analytics/custom_reports/{id}/preview -v -u {name}:{password} -X GET",
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>",
173 "filename": "server/api/analyticCustomReport/index.js",
174 "groupTitle": "Analytic_Custom_Reports"
178 "url": "/api/analytics/custom_reports/{id}/query",
179 "title": "Report Query SQL",
182 "title": "Example usage:",
183 "content": "curl https://{domain}/api/analytics/custom_reports/{id}/query -v -u {name}:{password} -X GET",
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>",
191 "filename": "server/api/analyticCustomReport/index.js",
192 "groupTitle": "Analytic_Custom_Reports"
196 "url": "/api/analytics/custom_reports/{id}/run",
197 "title": "Report Run",
200 "title": "Example usage:",
201 "content": "curl https://{domain}/api/analytics/custom_reports/{id}/run -v -u {name}:{password} -X GET",
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>",
209 "filename": "server/api/analyticCustomReport/index.js",
210 "groupTitle": "Analytic_Custom_Reports"
214 "url": "/api/analytics/custom_reports/{id}",
215 "title": "Update an existing Analytic Custom Report",
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",
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>",
227 "filename": "server/api/analyticCustomReport/index.js",
228 "groupTitle": "Analytic_Custom_Reports"
232 "url": "/api/analytics/default_reports",
233 "title": "Creates a new Analytic Default Report",
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",
241 "name": "CreateAnalytic_Default_Reports",
242 "group": "Analytic_Default_Reports",
257 "field": "description",
278 "field": "conditions",
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>",
293 "filename": "server/api/analyticDefaultReport/index.js",
294 "groupTitle": "Analytic_Default_Reports"
298 "url": "/api/analytics/default_reports/{id}",
299 "title": "Deletes a Analytic Default Report",
302 "title": "Example usage:",
303 "content": "curl https://{domain}/api/analytics/default_reports/{id} -v -u {name}:{password} -X DELETE",
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>",
311 "filename": "server/api/analyticDefaultReport/index.js",
312 "groupTitle": "Analytic_Default_Reports"
316 "url": "/api/analytics/default_reports",
317 "title": "Gets a list of Analytic Default Reports",
320 "title": "Example usage:",
321 "content": "curl https://{domain}/api/analytics/default_reports -v -u {name}:{password}",
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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
329 "filename": "server/api/analyticDefaultReport/index.js",
330 "groupTitle": "Analytic_Default_Reports"
334 "url": "/api/analytics/default_reports/{id}",
335 "title": "Gets a single Analytic Default Report",
338 "title": "Example usage:",
339 "content": "curl https://{domain}/api/analytics/default_reports/{id} -v -u {name}:{password}",
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>",
347 "filename": "server/api/analyticDefaultReport/index.js",
348 "groupTitle": "Analytic_Default_Reports"
352 "url": "/api/analytics/default_reports/{id}/preview",
353 "title": "Report Preview",
356 "title": "Example usage:",
357 "content": "curl https://{domain}/api/analytics/default_reports/{id}/preview -v -u {name}:{password} -X GET",
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>",
365 "filename": "server/api/analyticDefaultReport/index.js",
366 "groupTitle": "Analytic_Default_Reports"
370 "url": "/api/analytics/default_reports/{id}/query",
371 "title": "Report Query SQL",
374 "title": "Example usage:",
375 "content": "curl https://{domain}/api/analytics/default_reports/{id}/query -v -u {name}:{password} -X GET",
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>",
383 "filename": "server/api/analyticDefaultReport/index.js",
384 "groupTitle": "Analytic_Default_Reports"
388 "url": "/api/analytics/default_reports/{id}/run",
389 "title": "Report Run",
392 "title": "Example usage:",
393 "content": "curl https://{domain}/api/analytics/default_reports/{id}/run -v -u {name}:{password} -X GET",
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>",
401 "filename": "server/api/analyticDefaultReport/index.js",
402 "groupTitle": "Analytic_Default_Reports"
406 "url": "/api/analytics/default_reports/{id}",
407 "title": "Update an existing Analytic Default Report",
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",
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>",
419 "filename": "server/api/analyticDefaultReport/index.js",
420 "groupTitle": "Analytic_Default_Reports"
424 "url": "/api/analytics/extracted_reports",
425 "title": "Creates a new Analytic Extracted Report",
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",
433 "name": "CreateAnalytic_Extacted_Reports",
434 "group": "Analytic_Extracted_Reports",
475 "field": "startDate",
514 "field": "reportType",
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>",
522 "filename": "server/api/analyticExtractedReport/index.js",
523 "groupTitle": "Analytic_Extracted_Reports"
527 "url": "/api/analytics/extracted_reports/{id}",
528 "title": "Deletes a Analytic Extracted Report",
531 "title": "Example usage:",
532 "content": "curl https://{domain}/api/analytics/extracted_reports/{id} -v -u {name}:{password} -X DELETE",
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>",
540 "filename": "server/api/analyticExtractedReport/index.js",
541 "groupTitle": "Analytic_Extracted_Reports"
545 "url": "/api/analytics/extracted_reports",
546 "title": "Gets a list of Analytic Extacted Reports",
549 "title": "Example usage:",
550 "content": "curl https://{domain}/api/analytics/extracted_reports -v -u {name}:{password}",
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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
558 "filename": "server/api/analyticExtractedReport/index.js",
559 "groupTitle": "Analytic_Extracted_Reports"
563 "url": "/api/analytics/extracted_reports/{id}",
564 "title": "Gets a single Analytic Extracted Report",
567 "title": "Example usage:",
568 "content": "curl https://{domain}/api/analytics/extracted_reports/{id} -v -u {name}:{password}",
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>",
576 "filename": "server/api/analyticExtractedReport/index.js",
577 "groupTitle": "Analytic_Extracted_Reports"
581 "url": "/api/analytics/extracted_reports/{id}/download",
582 "title": "Download Extracted Report",
585 "title": "Example usage:",
586 "content": "curl https://{domain}/api/analytics/extracted_reports/{id}/download -v -u {name}:{password} -X GET",
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>",
594 "filename": "server/api/analyticExtractedReport/index.js",
595 "groupTitle": "Analytic_Extracted_Reports"
599 "url": "/api/analytics/extracted_reports/{id}",
600 "title": "Update an existing Analytic Extracted Report",
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",
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>",
612 "filename": "server/api/analyticExtractedReport/index.js",
613 "groupTitle": "Analytic_Extracted_Reports"
617 "url": "/api/analytics/field_reports/create_many",
618 "title": "Creates many Analytic Field Reports",
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",
626 "name": "BulkCreateAnalytic_Field_Reports",
627 "group": "Analytic_Field_Reports",
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>",
685 "filename": "server/api/analyticFieldReport/index.js",
686 "groupTitle": "Analytic_Field_Reports"
690 "url": "/api/analytics/field_reports/destroy_many?ids={ids}",
691 "title": "Deletes many Analytic Field Reports",
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",
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>",
703 "filename": "server/api/analyticFieldReport/index.js",
704 "groupTitle": "Analytic_Field_Reports"
708 "url": "/api/analytics/field_reports",
709 "title": "Creates a new Analytic Field Report",
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",
717 "name": "CreateAnalytic_Field_Reports",
718 "group": "Analytic_Field_Reports",
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>",
776 "filename": "server/api/analyticFieldReport/index.js",
777 "groupTitle": "Analytic_Field_Reports"
781 "url": "/api/analytics/field_reports/{id}",
782 "title": "Deletes a Analytic Field Report",
785 "title": "Example usage:",
786 "content": "curl https://{domain}/api/analytics/field_reports/{id} -v -u {name}:{password} -X DELETE",
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>",
794 "filename": "server/api/analyticFieldReport/index.js",
795 "groupTitle": "Analytic_Field_Reports"
799 "url": "/api/analytics/field_reports",
800 "title": "Gets a list of Analytic Field Reports",
803 "title": "Example usage:",
804 "content": "curl https://{domain}/api/analytics/field_reports -v -u {name}:{password}",
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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
812 "filename": "server/api/analyticFieldReport/index.js",
813 "groupTitle": "Analytic_Field_Reports"
817 "url": "/api/analytics/field_reports/{id}",
818 "title": "Gets a single Analytic Field Report",
821 "title": "Example usage:",
822 "content": "curl https://{domain}/api/analytics/field_reports/{id} -v -u {name}:{password}",
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>",
830 "filename": "server/api/analyticFieldReport/index.js",
831 "groupTitle": "Analytic_Field_Reports"
835 "url": "/api/analytics/field_reports/{id}/create_many",
836 "title": "Rewrite fields set",
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",
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>",
848 "filename": "server/api/analyticFieldReport/index.js",
849 "groupTitle": "Analytic_Field_Reports"
853 "url": "/api/analytics/field_reports/{id}",
854 "title": "Update an existing Analytic Field Report",
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",
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>",
866 "filename": "server/api/analyticFieldReport/index.js",
867 "groupTitle": "Analytic_Field_Reports"
871 "url": "/api/analytics/metrics",
872 "title": "Creates a new Analytic Metrics",
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",
880 "name": "CreateAnalytic_Metric",
881 "group": "Analytic_Metrics",
910 "field": "description",
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>",
918 "filename": "server/api/analyticMetric/index.js",
919 "groupTitle": "Analytic_Metrics"
923 "url": "/api/analytics/metrics/{id}",
924 "title": "Deletes a Analytic Metrics",
927 "title": "Example usage:",
928 "content": "curl https://{domain}/api/analytics/metrics/{id} -v -u {name}:{password} -X DELETE",
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>",
936 "filename": "server/api/analyticMetric/index.js",
937 "groupTitle": "Analytic_Metrics"
941 "url": "/api/analytics/metrics",
942 "title": "Gets a list of Analytic Metric",
945 "title": "Example usage:",
946 "content": "curl https://{domain}/api/analytics/metrics -v -u {name}:{password}",
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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
954 "filename": "server/api/analyticMetric/index.js",
955 "groupTitle": "Analytic_Metrics"
959 "url": "/api/analytics/metrics/{id}",
960 "title": "Gets a single Analytic Metrics",
963 "title": "Example usage:",
964 "content": "curl https://{domain}/api/analytics/metrics/{id} -v -u {name}:{password}",
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>",
972 "filename": "server/api/analyticMetric/index.js",
973 "groupTitle": "Analytic_Metrics"
977 "url": "/api/analytics/metrics/{id}",
978 "title": "Update an existing Analytic Metrics",
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",
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>",
990 "filename": "server/api/analyticMetric/index.js",
991 "groupTitle": "Analytic_Metrics"
995 "url": "/api/analytics/tree_reports",
996 "title": "Creates a new Analytic Tree Report",
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",
1004 "name": "CreateAnalytic_Tree_Reports",
1005 "group": "Analytic_Tree_Reports",
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>",
1021 "filename": "server/api/analyticTreeReport/index.js",
1022 "groupTitle": "Analytic_Tree_Reports"
1026 "url": "/api/analytics/tree_reports/{id}",
1027 "title": "Deletes a Analytic Tree Report",
1030 "title": "Example usage:",
1031 "content": "curl https://{domain}/api/analytics/tree_reports/{id} -v -u {name}:{password} -X DELETE",
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>",
1039 "filename": "server/api/analyticTreeReport/index.js",
1040 "groupTitle": "Analytic_Tree_Reports"
1044 "url": "/api/analytics/tree_reports",
1045 "title": "Gets a list of Analytic Tree Reports",
1048 "title": "Example usage:",
1049 "content": "curl https://{domain}/api/analytics/tree_reports -v -u {name}:{password}",
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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
1057 "filename": "server/api/analyticTreeReport/index.js",
1058 "groupTitle": "Analytic_Tree_Reports"
1062 "url": "/api/analytics/tree_reports/{id}",
1063 "title": "Gets a single Analytic Tree Report",
1066 "title": "Example usage:",
1067 "content": "curl https://{domain}/api/analytics/tree_reports/{id} -v -u {name}:{password}",
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>",
1075 "filename": "server/api/analyticTreeReport/index.js",
1076 "groupTitle": "Analytic_Tree_Reports"
1080 "url": "/api/analytics/tree_reports/{id}",
1081 "title": "Update an existing Analytic Tree Report",
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",
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>",
1093 "filename": "server/api/analyticTreeReport/index.js",
1094 "groupTitle": "Analytic_Tree_Reports"
1098 "url": "/api/attachments/clone",
1099 "title": "Clone an existing Attachment",
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",
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>",
1111 "filename": "server/api/attachment/index.js",
1112 "groupTitle": "Attachments"
1116 "url": "/api/attachments/{id}",
1117 "title": "Deletes a Attachment",
1120 "title": "Example usage:",
1121 "content": "curl https://{domain}/api/attachments/{id} -v -u {name}:{password} -X DELETE",
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>",
1129 "filename": "server/api/attachment/index.js",
1130 "groupTitle": "Attachments"
1134 "url": "/api/attachments",
1135 "title": "Gets a list of Attachments",
1138 "title": "Example usage:",
1139 "content": "curl https://{domain}/api/attachments -v -u {name}:{password}",
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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
1147 "filename": "server/api/attachment/index.js",
1148 "groupTitle": "Attachments"
1152 "url": "/api/attachments/{id}",
1153 "title": "Gets a single Attachment",
1156 "title": "Example usage:",
1157 "content": "curl https://{domain}/api/attachments/{id} -v -u {name}:{password}",
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>",
1165 "filename": "server/api/attachment/index.js",
1166 "groupTitle": "Attachments"
1170 "url": "/api/attachments",
1171 "title": "Add attachment",
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",
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>",
1183 "filename": "server/api/attachment/index.js",
1184 "groupTitle": "Attachments"
1188 "url": "/api/attachments/:id/download",
1189 "title": "Download attachment",
1192 "title": "Example usage:",
1193 "content": "curl https://{domain}/api/attachments/:id/download -v -u {name}:{password} -X GET",
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>",
1201 "filename": "server/api/attachment/index.js",
1202 "groupTitle": "Attachments"
1206 "url": "/api/chat/interactions/{id}/attachment_download",
1207 "title": "Download attachment",
1210 "title": "Example usage:",
1211 "content": "curl https://{domain}/api/chat/interactions/{id}/attachment_download -v -u {name}:{password} -X GET",
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>",
1219 "filename": "server/api/chatInteraction/index.js",
1220 "groupTitle": "Attachments"
1224 "url": "/api/attachments/{id}",
1225 "title": "Update an existing Attachment",
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",
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>",
1237 "filename": "server/api/attachment/index.js",
1238 "groupTitle": "Attachments"
1242 "url": "/api/auth/local/forgot",
1243 "title": "Creates a new password reset token",
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",
1251 "name": "Local_Forgot_Password",
1252 "group": "Authentication",
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>",
1268 "filename": "server/api/authLocal/index.js",
1269 "groupTitle": "Authentication"
1273 "url": "/api/auth/local/reset/:token",
1274 "title": "Reset user password",
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",
1282 "name": "Local_Reset_Password",
1283 "group": "Authentication",
1291 "field": "password",
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>",
1299 "filename": "server/api/authLocal/index.js",
1300 "groupTitle": "Authentication"
1304 "url": "/api/auth/local",
1305 "title": "Creates a new User token",
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",
1313 "name": "Local_login",
1314 "group": "Authentication",
1329 "field": "password",
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>",
1337 "filename": "server/api/authLocal/index.js",
1338 "groupTitle": "Authentication"
1342 "url": "/api/auth/google",
1343 "title": "Creates a new User token",
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",
1351 "name": "Local_login",
1352 "group": "Authentication",
1367 "field": "password",
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>",
1375 "filename": "server/api/authGoogle/index.js",
1376 "groupTitle": "Authentication"
1380 "url": "/api/automations",
1381 "title": "Creates a new Automation",
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",
1389 "name": "CreateAutomations",
1390 "group": "Automations",
1412 "field": "description",
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>",
1434 "filename": "server/api/automation/index.js",
1435 "groupTitle": "Automations"
1439 "url": "/api/automations/{id}",
1440 "title": "Deletes a Automation",
1443 "title": "Example usage:",
1444 "content": "curl https://{domain}/api/automations/{id} -v -u {name}:{password} -X DELETE",
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>",
1452 "filename": "server/api/automation/index.js",
1453 "groupTitle": "Automations"
1457 "url": "/api/automations",
1458 "title": "Gets a list of Automations",
1461 "title": "Example usage:",
1462 "content": "curl https://{domain}/api/automations -v -u {name}:{password}",
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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
1470 "filename": "server/api/automation/index.js",
1471 "groupTitle": "Automations"
1475 "url": "/api/automations/{id}",
1476 "title": "Gets a single Automation",
1479 "title": "Example usage:",
1480 "content": "curl https://{domain}/api/automations/{id} -v -u {name}:{password}",
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>",
1488 "filename": "server/api/automation/index.js",
1489 "groupTitle": "Automations"
1493 "url": "/api/automations/{id}/actions",
1494 "title": "Creates new actions",
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",
1502 "name": "addActions",
1503 "group": "Automations",
1519 "description": "<p>Allowed values: contactManager, integration, motionbar, jscripty, urlForward, browser, bot, script</p>"
1526 "description": "<p>contactManager[ListId], integration[intName(zendesk)], motionbar[Popup(0),URL(1),WinApp(2)], urlForward[GET,POST], browser[TemplateId(0),URL(1)]</p>"
1533 "description": "<p>integration[AccountId], motionbar[TemplateId,URL,WinAppPath], urlForward[URL]</p>"
1540 "description": "<p>motionbar[NULL,NULL,WinAppArguments]</p>"
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>",
1575 "filename": "server/api/automation/index.js",
1576 "groupTitle": "Automations"
1580 "url": "/api/automations/{id}/conditions",
1581 "title": "Creates new conditions",
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",
1589 "name": "addConditions",
1590 "group": "Automations",
1612 "field": "operator",
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>",
1627 "filename": "server/api/automation/index.js",
1628 "groupTitle": "Automations"
1632 "url": "/api/automations/{id}/actions",
1633 "title": "Gets Automation Actions",
1636 "title": "Example usage:",
1637 "content": "curl https://{domain}/api/automations/{id}/actions -v -u {name}:{password} -X GET",
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>",
1645 "filename": "server/api/automation/index.js",
1646 "groupTitle": "Automations"
1650 "url": "/api/automations/{id}/conditions",
1651 "title": "Gets Automation Conditions",
1654 "title": "Example usage:",
1655 "content": "curl https://{domain}/api/automations/{id}/conditions -v -u {name}:{password} -X GET",
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>",
1663 "filename": "server/api/automation/index.js",
1664 "groupTitle": "Automations"
1668 "url": "/api/automations/{id}",
1669 "title": "Update an existing Automation",
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",
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>",
1681 "filename": "server/api/automation/index.js",
1682 "groupTitle": "Automations"
1686 "url": "/api/canned_answers",
1687 "title": "Create a new canned answer",
1690 "title": "Example usage:",
1691 "content": "curl https://{domain}/api/canned_answers -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
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>",
1699 "filename": "server/api/cannedAnswer/index.js",
1700 "groupTitle": "Canned_Answers"
1704 "url": "/api/canned_answers/{id}",
1705 "title": "Deletes a Canned Answer",
1708 "title": "Example usage:",
1709 "content": "curl https://{domain}/api/canned_answers/{id} -v -u {name}:{password} -X DELETE",
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>",
1717 "filename": "server/api/cannedAnswer/index.js",
1718 "groupTitle": "Canned_Answers"
1722 "url": "/api/canned_answers",
1723 "title": "Gets a list of Canned Answers",
1726 "title": "Example usage:",
1727 "content": "curl https://{domain}/api/canned_answers -v -u {name}:{password}",
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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
1735 "filename": "server/api/cannedAnswer/index.js",
1736 "groupTitle": "Canned_Answers"
1740 "url": "/api/canned_answers/{id}",
1741 "title": "Gets a single Canned Answer",
1744 "title": "Example usage:",
1745 "content": "curl https://{domain}/api/canned_answers/{id} -v -u {name}:{password}",
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>",
1753 "filename": "server/api/cannedAnswer/index.js",
1754 "groupTitle": "Canned_Answers"
1758 "url": "/api/canned_answers/{id}",
1759 "title": "Update an existing Canned Answer",
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",
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>",
1771 "filename": "server/api/cannedAnswer/index.js",
1772 "groupTitle": "Canned_Answers"
1776 "url": "/chat/internal/users",
1777 "title": "Gets Users Last Messages",
1780 "title": "Example usage:",
1781 "content": "curl https://{domain}/chat/internal/users -v -u {name}:{password} -X GET",
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>",
1789 "filename": "server/api/chatInternalMessage/index.js",
1790 "groupTitle": "ChatInternalMessage"
1794 "url": "/api/chat/applications/{id}",
1795 "title": "Deletes a Application",
1798 "title": "Example usage:",
1799 "content": "curl https://{domain}/api/chat/applications/{id} -v -u {name}:{password} -X DELETE",
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>",
1807 "filename": "server/api/chatApplication/index.js",
1808 "groupTitle": "Chat_Applications"
1812 "url": "/api/chat/applications/{id}",
1813 "title": "Gets a single Application",
1816 "title": "Example usage:",
1817 "content": "curl https://{domain}/api/chat/applications/{id} -v -u {name}:{password}",
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>",
1825 "filename": "server/api/chatApplication/index.js",
1826 "groupTitle": "Chat_Applications"
1830 "url": "/api/chat/applications/{id}",
1831 "title": "Update an existing Application",
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",
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>",
1843 "filename": "server/api/chatApplication/index.js",
1844 "groupTitle": "Chat_Applications"
1848 "url": "/api/chat/groups",
1849 "title": "Creates a new Group",
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",
1857 "name": "CreateGroups",
1858 "group": "Chat_Groups",
1873 "field": "description",
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>",
1888 "filename": "server/api/chatGroup/index.js",
1889 "groupTitle": "Chat_Groups"
1893 "url": "/api/chat/groups/{id}",
1894 "title": "Deletes a Group",
1897 "title": "Example usage:",
1898 "content": "curl https://{domain}/api/chat/groups/{id} -v -u {name}:{password} -X DELETE",
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>",
1906 "filename": "server/api/chatGroup/index.js",
1907 "groupTitle": "Chat_Groups"
1911 "url": "/api/chat/groups/describe",
1912 "title": "Gets table info about Groups",
1915 "title": "Example usage:",
1916 "content": "curl https://{domain}/api/chat/groups/describe -v -u {name}:{password}",
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>",
1924 "filename": "server/api/chatGroup/index.js",
1925 "groupTitle": "Chat_Groups"
1929 "url": "/api/chat/groups",
1930 "title": "Gets a list of Groups",
1933 "title": "Example usage:",
1934 "content": "curl https://{domain}/api/chat/groups -v -u {name}:{password}",
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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
1942 "filename": "server/api/chatGroup/index.js",
1943 "groupTitle": "Chat_Groups"
1947 "url": "/api/chat/groups/{id}/members",
1948 "title": "Removes members from a group",
1951 "title": "Example usage:",
1952 "content": "curl https://{domain}/api/chat/groups/{id}/members?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
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>",
1960 "filename": "server/api/chatGroup/index.js",
1961 "groupTitle": "Chat_Groups"
1965 "url": "/api/chat/groups/{id}",
1966 "title": "Gets a single Group",
1969 "title": "Example usage:",
1970 "content": "curl https://{domain}/api/chat/groups/{id} -v -u {name}:{password}",
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>",
1978 "filename": "server/api/chatGroup/index.js",
1979 "groupTitle": "Chat_Groups"
1983 "url": "/api/chat/groups/{id}/members",
1984 "title": "Add members to chat group",
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",
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>",
1996 "filename": "server/api/chatGroup/index.js",
1997 "groupTitle": "Chat_Groups"
2001 "url": "/api/chat/groups/{id}/messages",
2002 "title": "Creates a new group message",
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",
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>",
2014 "filename": "server/api/chatGroup/index.js",
2015 "groupTitle": "Chat_Groups"
2019 "url": "/api/chat/groups/{id}/members",
2020 "title": "Gets Members",
2023 "title": "Example usage:",
2024 "content": "curl https://{domain}/api/chat/groups/{id}/members -v -u {name}:{password} -X GET",
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>",
2032 "filename": "server/api/chatGroup/index.js",
2033 "groupTitle": "Chat_Groups"
2037 "url": "/api/chat/groups/{id}/messages",
2038 "title": "Gets Messages",
2041 "title": "Example usage:",
2042 "content": "curl https://{domain}/api/chat/groups/{id}/messages -v -u {name}:{password} -X GET",
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>",
2050 "filename": "server/api/chatGroup/index.js",
2051 "groupTitle": "Chat_Groups"
2055 "url": "/api/chat/groups/{id}/unread",
2056 "title": "Get unread chat group messages",
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",
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>",
2068 "filename": "server/api/chatGroup/index.js",
2069 "groupTitle": "Chat_Groups"
2073 "url": "/api/chat/groups/{id}",
2074 "title": "Update an existing Group",
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",
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>",
2086 "filename": "server/api/chatGroup/index.js",
2087 "groupTitle": "Chat_Groups"
2091 "url": "/api/chat/interactions/{id}/tags",
2092 "title": "Add tags to the interaction",
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",
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>",
2104 "filename": "server/api/chatInteraction/index.js",
2105 "groupTitle": "Chat_Interactions"
2109 "url": "/api/chat/interactions",
2110 "title": "Creates a new Interaction",
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",
2118 "name": "CreateInteractions",
2119 "group": "Chat_Interactions",
2134 "field": "ratingValue",
2145 "field": "ratingType",
2152 "field": "ratingMessage",
2159 "field": "pathTranscript",
2166 "field": "mailTranscript",
2173 "field": "closedAt",
2180 "field": "disposition",
2194 "field": "browserName",
2201 "field": "browserVersion",
2215 "field": "osVersion",
2222 "field": "deviceModel",
2229 "field": "deviceVendor",
2236 "field": "deviceType",
2250 "field": "customerIp",
2257 "field": "formData",
2264 "field": "read1stAt",
2271 "field": "lastMsgAt",
2282 "field": "lastMsgDirection",
2289 "field": "closeReason",
2296 "field": "customerPort",
2302 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2304 "filename": "server/api/chatInteraction/index.js",
2305 "groupTitle": "Chat_Interactions"
2309 "url": "/api/chat/interactions/{id}",
2310 "title": "Deletes a Interaction",
2313 "title": "Example usage:",
2314 "content": "curl https://{domain}/api/chat/interactions/{id} -v -u {name}:{password} -X DELETE",
2318 "name": "DeleteInteractions",
2319 "group": "Chat_Interactions",
2320 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2322 "filename": "server/api/chatInteraction/index.js",
2323 "groupTitle": "Chat_Interactions"
2327 "url": "/api/chat/interactions/describe",
2328 "title": "Gets table info about Interactions",
2331 "title": "Example usage:",
2332 "content": "curl https://{domain}/api/chat/interactions/describe -v -u {name}:{password}",
2336 "name": "DescribeInteractions",
2337 "group": "Chat_Interactions",
2338 "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>",
2340 "filename": "server/api/chatInteraction/index.js",
2341 "groupTitle": "Chat_Interactions"
2345 "url": "/api/chat/interactions",
2346 "title": "Gets a list of Interactions",
2349 "title": "Example usage:",
2350 "content": "curl https://{domain}/api/chat/interactions -v -u {name}:{password}",
2354 "name": "GetInteractions",
2355 "group": "Chat_Interactions",
2356 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
2358 "filename": "server/api/chatInteraction/index.js",
2359 "groupTitle": "Chat_Interactions"
2363 "url": "/api/chat/interactions/{id}/tags",
2364 "title": "Removes tags from interaction",
2367 "title": "Example usage:",
2368 "content": "curl https://{domain}/api/chat/interactions/{id}/tags?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
2372 "name": "RemoveTags",
2373 "group": "Chat_Interactions",
2374 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2376 "filename": "server/api/chatInteraction/index.js",
2377 "groupTitle": "Chat_Interactions"
2381 "url": "/api/chat/interactions/{id}",
2382 "title": "Gets a single Interaction",
2385 "title": "Example usage:",
2386 "content": "curl https://{domain}/api/chat/interactions/{id} -v -u {name}:{password}",
2390 "name": "ShowInteractions",
2391 "group": "Chat_Interactions",
2392 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2394 "filename": "server/api/chatInteraction/index.js",
2395 "groupTitle": "Chat_Interactions"
2399 "url": "/api/chat/interactions/{id}/abandon",
2400 "title": "Abandon interaction",
2403 "title": "Example usage:",
2404 "content": "curl https://{domain}/api/chat/interactions/{id}/abandon -d '{\"channel\": \"chat\", \"...\": \"...\"}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
2409 "group": "Chat_Interactions",
2410 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <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>",
2412 "filename": "server/api/chatInteraction/index.js",
2413 "groupTitle": "Chat_Interactions"
2417 "url": "/api/chat/interactions/{id}/close",
2418 "title": "Close Interaction",
2421 "title": "Example usage:",
2422 "content": "curl https://{domain}/api/chat/interactions/{id}/close -d '[{\"to\": \"+3901119886500\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
2426 "name": "addMessage",
2427 "group": "Chat_Interactions",
2428 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2430 "filename": "server/api/chatInteraction/index.js",
2431 "groupTitle": "Chat_Interactions"
2435 "url": "/api/chat/interactions/{id}/messages",
2436 "title": "Creates new messages",
2439 "title": "Example usage:",
2440 "content": "curl https://{domain}/api/chat/interactions/{id}/messages -d '[{\"to\": \"+3901119886500\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
2444 "name": "addMessage",
2445 "group": "Chat_Interactions",
2478 "field": "direction",
2491 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2493 "filename": "server/api/chatInteraction/index.js",
2494 "groupTitle": "Chat_Interactions"
2498 "url": "/api/chat/interactions/{id}/attachment_upload",
2499 "title": "Add attachment",
2502 "title": "Example usage:",
2503 "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",
2507 "name": "attachmentUpload",
2508 "group": "Chat_Interactions",
2509 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2511 "filename": "server/api/chatInteraction/index.js",
2512 "groupTitle": "Chat_Interactions"
2516 "url": "/api/chat/interactions/{id}/custom_update",
2517 "title": "Update interaction",
2520 "title": "Example usage:",
2521 "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",
2525 "name": "customUpdate",
2526 "group": "Chat_Interactions",
2527 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <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>",
2529 "filename": "server/api/chatInteraction/index.js",
2530 "groupTitle": "Chat_Interactions"
2534 "url": "/api/chat/interactions/{id}/download",
2535 "title": "Gets interaction",
2538 "title": "Example usage:",
2539 "content": "curl https://{domain}/api/chat/interactions/{id}/download -v -u {name}:{password} -X GET",
2544 "group": "Chat_Interactions",
2545 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2547 "filename": "server/api/chatInteraction/index.js",
2548 "groupTitle": "Chat_Interactions"
2552 "url": "/api/chat/interactions/{id}/messages",
2553 "title": "Gets interaction messages",
2556 "title": "Example usage:",
2557 "content": "curl https://{domain}/api/chat/interactions/{id}/messages -v -u {name}:{password} -X GET",
2561 "name": "getMessages",
2562 "group": "Chat_Interactions",
2563 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2565 "filename": "server/api/chatInteraction/index.js",
2566 "groupTitle": "Chat_Interactions"
2570 "url": "/api/chat/interactions/{id}/my_messages",
2571 "title": "Gets interaction messages",
2574 "title": "Example usage:",
2575 "content": "curl https://{domain}/api/chat/interactions/{id}/my_messages -v -u {name}:{password} -X GET",
2579 "name": "getMyMessages",
2580 "group": "Chat_Interactions",
2581 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2583 "filename": "server/api/chatInteraction/index.js",
2584 "groupTitle": "Chat_Interactions"
2588 "url": "/api/chat/interactions/{id}",
2589 "title": "Update an existing Interaction",
2592 "title": "Example usage:",
2593 "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",
2597 "name": "updateInteractions",
2598 "group": "Chat_Interactions",
2599 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2601 "filename": "server/api/chatInteraction/index.js",
2602 "groupTitle": "Chat_Interactions"
2606 "url": "/api/chat/internal/messages",
2607 "title": "Creates a new Message",
2610 "title": "Example usage:",
2611 "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",
2615 "name": "CreateMessages",
2616 "group": "Chat_Internal_Messages",
2638 "field": "ChatInternalMessageId",
2644 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2646 "filename": "server/api/chatInternalMessage/index.js",
2647 "groupTitle": "Chat_Internal_Messages"
2651 "url": "/api/chat/internal/messages/{id}",
2652 "title": "Deletes a Message",
2655 "title": "Example usage:",
2656 "content": "curl https://{domain}/api/chat/internal/messages/{id} -v -u {name}:{password} -X DELETE",
2660 "name": "DeleteMessages",
2661 "group": "Chat_Internal_Messages",
2662 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2664 "filename": "server/api/chatInternalMessage/index.js",
2665 "groupTitle": "Chat_Internal_Messages"
2669 "url": "/api/chat/internal/messages/describe",
2670 "title": "Gets table info about Messages",
2673 "title": "Example usage:",
2674 "content": "curl https://{domain}/api/chat/internal/messages/describe -v -u {name}:{password}",
2678 "name": "DescribeMessages",
2679 "group": "Chat_Internal_Messages",
2680 "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>",
2682 "filename": "server/api/chatInternalMessage/index.js",
2683 "groupTitle": "Chat_Internal_Messages"
2687 "url": "/api/chat/internal/messages",
2688 "title": "Gets a list of Messages",
2691 "title": "Example usage:",
2692 "content": "curl https://{domain}/api/chat/internal/messages -v -u {name}:{password}",
2696 "name": "GetMessages",
2697 "group": "Chat_Internal_Messages",
2698 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
2700 "filename": "server/api/chatInternalMessage/index.js",
2701 "groupTitle": "Chat_Internal_Messages"
2705 "url": "/api/chat/internal/messages/{id}",
2706 "title": "Gets a single Message",
2709 "title": "Example usage:",
2710 "content": "curl https://{domain}/api/chat/internal/messages/{id} -v -u {name}:{password}",
2714 "name": "ShowMessages",
2715 "group": "Chat_Internal_Messages",
2716 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2718 "filename": "server/api/chatInternalMessage/index.js",
2719 "groupTitle": "Chat_Internal_Messages"
2723 "url": "/api/chat/internal/messages/{id}",
2724 "title": "Update an existing Message",
2727 "title": "Example usage:",
2728 "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",
2732 "name": "updateMessages",
2733 "group": "Chat_Internal_Messages",
2734 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2736 "filename": "server/api/chatInternalMessage/index.js",
2737 "groupTitle": "Chat_Internal_Messages"
2741 "url": "/api/chat/messages",
2742 "title": "Creates a new Message",
2745 "title": "Example usage:",
2746 "content": "curl https://{domain}/api/chat/messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
2750 "name": "CreateMessages",
2751 "group": "Chat_Messages",
2784 "field": "direction",
2797 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2799 "filename": "server/api/chatMessage/index.js",
2800 "groupTitle": "Chat_Messages"
2804 "url": "/api/chat/messages/{id}",
2805 "title": "Deletes a Message",
2808 "title": "Example usage:",
2809 "content": "curl https://{domain}/api/chat/messages/{id} -v -u {name}:{password} -X DELETE",
2813 "name": "DeleteMessages",
2814 "group": "Chat_Messages",
2815 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2817 "filename": "server/api/chatMessage/index.js",
2818 "groupTitle": "Chat_Messages"
2822 "url": "/api/chat/messages/describe",
2823 "title": "Gets table info about Messages",
2826 "title": "Example usage:",
2827 "content": "curl https://{domain}/api/chat/messages/describe -v -u {name}:{password}",
2831 "name": "DescribeMessages",
2832 "group": "Chat_Messages",
2833 "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>",
2835 "filename": "server/api/chatMessage/index.js",
2836 "groupTitle": "Chat_Messages"
2840 "url": "/api/chat/messages",
2841 "title": "Gets a list of Messages",
2844 "title": "Example usage:",
2845 "content": "curl https://{domain}/api/chat/messages -v -u {name}:{password}",
2849 "name": "GetMessages",
2850 "group": "Chat_Messages",
2851 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
2853 "filename": "server/api/chatMessage/index.js",
2854 "groupTitle": "Chat_Messages"
2858 "url": "/api/chat/messages/{id}",
2859 "title": "Gets a single Message",
2862 "title": "Example usage:",
2863 "content": "curl https://{domain}/api/chat/messages/{id} -v -u {name}:{password}",
2867 "name": "ShowMessages",
2868 "group": "Chat_Messages",
2869 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2871 "filename": "server/api/chatMessage/index.js",
2872 "groupTitle": "Chat_Messages"
2876 "url": "/api/chat/messages/{id}",
2877 "title": "Update an existing Message",
2880 "title": "Example usage:",
2881 "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",
2885 "name": "updateMessages",
2886 "group": "Chat_Messages",
2887 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2889 "filename": "server/api/chatMessage/index.js",
2890 "groupTitle": "Chat_Messages"
2894 "url": "/api/chat/offline_messages",
2895 "title": "Creates a new OfflineMessage",
2898 "title": "Example usage:",
2899 "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",
2903 "name": "CreateOfflineMessages",
2904 "group": "Chat_Offline_Messages",
2918 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2920 "filename": "server/api/chatOfflineMessage/index.js",
2921 "groupTitle": "Chat_Offline_Messages"
2925 "url": "/api/chat/offline_messages/{id}",
2926 "title": "Deletes a OfflineMessage",
2929 "title": "Example usage:",
2930 "content": "curl https://{domain}/api/chat/offline_messages/{id} -v -u {name}:{password} -X DELETE",
2934 "name": "DeleteOfflineMessages",
2935 "group": "Chat_Offline_Messages",
2936 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2938 "filename": "server/api/chatOfflineMessage/index.js",
2939 "groupTitle": "Chat_Offline_Messages"
2943 "url": "/api/chat/offline_messages/describe",
2944 "title": "Gets table info about OfflineMessages",
2947 "title": "Example usage:",
2948 "content": "curl https://{domain}/api/chat/offline_messages/describe -v -u {name}:{password}",
2952 "name": "DescribeOfflineMessages",
2953 "group": "Chat_Offline_Messages",
2954 "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>",
2956 "filename": "server/api/chatOfflineMessage/index.js",
2957 "groupTitle": "Chat_Offline_Messages"
2961 "url": "/api/chat/offline_messages",
2962 "title": "Gets a list of OfflineMessages",
2965 "title": "Example usage:",
2966 "content": "curl https://{domain}/api/chat/offline_messages -v -u {name}:{password}",
2970 "name": "GetOfflineMessages",
2971 "group": "Chat_Offline_Messages",
2972 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
2974 "filename": "server/api/chatOfflineMessage/index.js",
2975 "groupTitle": "Chat_Offline_Messages"
2979 "url": "/api/chat/offline_messages/{id}",
2980 "title": "Gets a single OfflineMessage",
2983 "title": "Example usage:",
2984 "content": "curl https://{domain}/api/chat/offline_messages/{id} -v -u {name}:{password}",
2988 "name": "ShowOfflineMessages",
2989 "group": "Chat_Offline_Messages",
2990 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
2992 "filename": "server/api/chatOfflineMessage/index.js",
2993 "groupTitle": "Chat_Offline_Messages"
2997 "url": "/api/chat/offline_messages/{id}",
2998 "title": "Update an existing OfflineMessage",
3001 "title": "Example usage:",
3002 "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",
3006 "name": "updateOfflineMessages",
3007 "group": "Chat_Offline_Messages",
3008 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3010 "filename": "server/api/chatOfflineMessage/index.js",
3011 "groupTitle": "Chat_Offline_Messages"
3015 "url": "/api/chat/proactive_actions",
3016 "title": "Creates a new Proactive Action",
3019 "title": "Example usage:",
3020 "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",
3024 "name": "CreateProactive_Actions",
3025 "group": "Chat_Proactive_Actions",
3051 "field": "selector",
3064 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3066 "filename": "server/api/chatProactiveAction/index.js",
3067 "groupTitle": "Chat_Proactive_Actions"
3071 "url": "/api/chat/proactive_actions/{id}",
3072 "title": "Deletes a Proactive Action",
3075 "title": "Example usage:",
3076 "content": "curl https://{domain}/api/chat/proactive_actions/{id} -v -u {name}:{password} -X DELETE",
3080 "name": "DeleteProactive_Actions",
3081 "group": "Chat_Proactive_Actions",
3082 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3084 "filename": "server/api/chatProactiveAction/index.js",
3085 "groupTitle": "Chat_Proactive_Actions"
3089 "url": "/api/chat/proactive_actions/{id}",
3090 "title": "Gets a single Proactive Action",
3093 "title": "Example usage:",
3094 "content": "curl https://{domain}/api/chat/proactive_actions/{id} -v -u {name}:{password}",
3098 "name": "ShowProactive_Actions",
3099 "group": "Chat_Proactive_Actions",
3100 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3102 "filename": "server/api/chatProactiveAction/index.js",
3103 "groupTitle": "Chat_Proactive_Actions"
3107 "url": "/api/chat/proactive_actions/{id}",
3108 "title": "Update an existing Proactive Action",
3111 "title": "Example usage:",
3112 "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",
3116 "name": "updateProactive_Actions",
3117 "group": "Chat_Proactive_Actions",
3118 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3120 "filename": "server/api/chatProactiveAction/index.js",
3121 "groupTitle": "Chat_Proactive_Actions"
3125 "url": "/api/chat/reports/queue",
3126 "title": "Creates a new Chat Queue Report",
3129 "title": "Example usage:",
3130 "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",
3134 "name": "CreateChat_Queue_Reports",
3135 "group": "Chat_Queue_Reports",
3143 "field": "uniqueid",
3171 "field": "acceptAt",
3191 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3193 "filename": "server/api/chatQueueReport/index.js",
3194 "groupTitle": "Chat_Queue_Reports"
3198 "url": "/api/chat/reports/queue/{id}",
3199 "title": "Deletes a Chat Queue Report",
3202 "title": "Example usage:",
3203 "content": "curl https://{domain}/api/chat/reports/queue/{id} -v -u {name}:{password} -X DELETE",
3207 "name": "DeleteChat_Queue_Reports",
3208 "group": "Chat_Queue_Reports",
3209 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3211 "filename": "server/api/chatQueueReport/index.js",
3212 "groupTitle": "Chat_Queue_Reports"
3216 "url": "/api/chat/reports/queue/describe",
3217 "title": "Gets table info about Chat Queue Reports",
3220 "title": "Example usage:",
3221 "content": "curl https://{domain}/api/chat/reports/queue/describe -v -u {name}:{password}",
3225 "name": "DescribeChat_Queue_Reports",
3226 "group": "Chat_Queue_Reports",
3227 "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>",
3229 "filename": "server/api/chatQueueReport/index.js",
3230 "groupTitle": "Chat_Queue_Reports"
3234 "url": "/api/chat/reports/queue",
3235 "title": "Gets a list of Chat Queue Reports",
3238 "title": "Example usage:",
3239 "content": "curl https://{domain}/api/chat/reports/queue -v -u {name}:{password}",
3243 "name": "GetChat_Queue_Reports",
3244 "group": "Chat_Queue_Reports",
3245 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
3247 "filename": "server/api/chatQueueReport/index.js",
3248 "groupTitle": "Chat_Queue_Reports"
3252 "url": "/api/chat/reports/queue/{id}",
3253 "title": "Gets a single Chat Queue Report",
3256 "title": "Example usage:",
3257 "content": "curl https://{domain}/api/chat/reports/queue/{id} -v -u {name}:{password}",
3261 "name": "ShowChat_Queue_Reports",
3262 "group": "Chat_Queue_Reports",
3263 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3265 "filename": "server/api/chatQueueReport/index.js",
3266 "groupTitle": "Chat_Queue_Reports"
3270 "url": "/api/chat/reports/queue/{id}",
3271 "title": "Update an existing Chat Queue Report",
3274 "title": "Example usage:",
3275 "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",
3279 "name": "updateChat_Queue_Reports",
3280 "group": "Chat_Queue_Reports",
3281 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3283 "filename": "server/api/chatQueueReport/index.js",
3284 "groupTitle": "Chat_Queue_Reports"
3288 "url": "/api/chat/queues/{id}/users",
3289 "title": "Add agents to a queue",
3292 "title": "Example usage:",
3293 "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",
3297 "name": "AddAgents",
3298 "group": "Chat_Queues",
3299 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3301 "filename": "server/api/chatQueue/index.js",
3302 "groupTitle": "Chat_Queues"
3306 "url": "/api/chat/queues/{id}/teams",
3307 "title": "Add teams to a queue",
3310 "title": "Example usage:",
3311 "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",
3316 "group": "Chat_Queues",
3317 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3319 "filename": "server/api/chatQueue/index.js",
3320 "groupTitle": "Chat_Queues"
3324 "url": "/api/chat/queues",
3325 "title": "Creates a new Queue",
3328 "title": "Example usage:",
3329 "content": "curl https://{domain}/api/chat/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
3333 "name": "CreateQueues",
3334 "group": "Chat_Queues",
3349 "field": "description",
3368 "field": "strategy",
3374 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3376 "filename": "server/api/chatQueue/index.js",
3377 "groupTitle": "Chat_Queues"
3381 "url": "/api/chat/queues/{id}",
3382 "title": "Deletes a Queue",
3385 "title": "Example usage:",
3386 "content": "curl https://{domain}/api/chat/queues/{id} -v -u {name}:{password} -X DELETE",
3390 "name": "DeleteQueues",
3391 "group": "Chat_Queues",
3392 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3394 "filename": "server/api/chatQueue/index.js",
3395 "groupTitle": "Chat_Queues"
3399 "url": "/api/chat/queues/describe",
3400 "title": "Gets table info about Queues",
3403 "title": "Example usage:",
3404 "content": "curl https://{domain}/api/chat/queues/describe -v -u {name}:{password}",
3408 "name": "DescribeQueues",
3409 "group": "Chat_Queues",
3410 "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>",
3412 "filename": "server/api/chatQueue/index.js",
3413 "groupTitle": "Chat_Queues"
3417 "url": "/api/chat/queues/{id}/users",
3418 "title": "Gets queue agents",
3421 "title": "Example usage:",
3422 "content": "curl https://{domain}/api/chat/queues/{id}/users -v -u {name}:{password} -X POST",
3426 "name": "GetAgents",
3427 "group": "Chat_Queues",
3428 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3430 "filename": "server/api/chatQueue/index.js",
3431 "groupTitle": "Chat_Queues"
3435 "url": "/api/chat/queues/{id}/members",
3436 "title": "GetMembers",
3439 "title": "Example usage:",
3440 "content": "curl https://{domain}/api/chat/queues/{id}/members -v -u {name}:{password}",
3444 "name": "GetMembers",
3445 "group": "Chat_Queues",
3446 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3448 "filename": "server/api/chatQueue/index.js",
3449 "groupTitle": "Chat_Queues"
3453 "url": "/api/chat/queues",
3454 "title": "Gets a list of Queues",
3457 "title": "Example usage:",
3458 "content": "curl https://{domain}/api/chat/queues -v -u {name}:{password}",
3462 "name": "GetQueues",
3463 "group": "Chat_Queues",
3464 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
3466 "filename": "server/api/chatQueue/index.js",
3467 "groupTitle": "Chat_Queues"
3471 "url": "/api/chat/queues/{id}/teams",
3472 "title": "Gets queues list",
3475 "title": "Example usage:",
3476 "content": "curl https://{domain}/api/chat/queues/{id}/teams -v -u {name}:{password}",
3481 "group": "Chat_Queues",
3482 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3484 "filename": "server/api/chatQueue/index.js",
3485 "groupTitle": "Chat_Queues"
3489 "url": "/api/chat/queues/{id}/users",
3490 "title": "Removes agents from a queue",
3493 "title": "Example usage:",
3494 "content": "curl https://{domain}/api/chat/queues/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
3498 "name": "RemoveAgents",
3499 "group": "Chat_Queues",
3500 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3502 "filename": "server/api/chatQueue/index.js",
3503 "groupTitle": "Chat_Queues"
3507 "url": "/api/chat/queues/{id}",
3508 "title": "Gets a single Queue",
3511 "title": "Example usage:",
3512 "content": "curl https://{domain}/api/chat/queues/{id} -v -u {name}:{password}",
3516 "name": "ShowQueues",
3517 "group": "Chat_Queues",
3518 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3520 "filename": "server/api/chatQueue/index.js",
3521 "groupTitle": "Chat_Queues"
3525 "url": "/api/chat/queues/{id}",
3526 "title": "Update an existing Queue",
3529 "title": "Example usage:",
3530 "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",
3534 "name": "updateQueues",
3535 "group": "Chat_Queues",
3536 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3538 "filename": "server/api/chatQueue/index.js",
3539 "groupTitle": "Chat_Queues"
3543 "url": "/api/chat/reports/transfer",
3544 "title": "Creates a new Chat Transfer Report",
3547 "title": "Example usage:",
3548 "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",
3552 "name": "CreateChat_Transfer_Reports",
3553 "group": "Chat_Transfer_Reports",
3561 "field": "uniqueid",
3580 "field": "transferredAt",
3586 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3588 "filename": "server/api/chatTransferReport/index.js",
3589 "groupTitle": "Chat_Transfer_Reports"
3593 "url": "/api/chat/reports/transfer/{id}",
3594 "title": "Deletes a Chat Transfer Report",
3597 "title": "Example usage:",
3598 "content": "curl https://{domain}/api/chat/reports/transfer/{id} -v -u {name}:{password} -X DELETE",
3602 "name": "DeleteChat_Transfer_Reports",
3603 "group": "Chat_Transfer_Reports",
3604 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3606 "filename": "server/api/chatTransferReport/index.js",
3607 "groupTitle": "Chat_Transfer_Reports"
3611 "url": "/api/chat/reports/transfer/describe",
3612 "title": "Gets table info about Chat Transfer Reports",
3615 "title": "Example usage:",
3616 "content": "curl https://{domain}/api/chat/reports/transfer/describe -v -u {name}:{password}",
3620 "name": "DescribeChat_Transfer_Reports",
3621 "group": "Chat_Transfer_Reports",
3622 "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>",
3624 "filename": "server/api/chatTransferReport/index.js",
3625 "groupTitle": "Chat_Transfer_Reports"
3629 "url": "/api/chat/reports/transfer",
3630 "title": "Gets a list of Chat Transfer Reports",
3633 "title": "Example usage:",
3634 "content": "curl https://{domain}/api/chat/reports/transfer -v -u {name}:{password}",
3638 "name": "GetChat_Transfer_Reports",
3639 "group": "Chat_Transfer_Reports",
3640 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
3642 "filename": "server/api/chatTransferReport/index.js",
3643 "groupTitle": "Chat_Transfer_Reports"
3647 "url": "/api/chat/reports/transfer/{id}",
3648 "title": "Gets a single Chat Transfer Report",
3651 "title": "Example usage:",
3652 "content": "curl https://{domain}/api/chat/reports/transfer/{id} -v -u {name}:{password}",
3656 "name": "ShowChat_Transfer_Reports",
3657 "group": "Chat_Transfer_Reports",
3658 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3660 "filename": "server/api/chatTransferReport/index.js",
3661 "groupTitle": "Chat_Transfer_Reports"
3665 "url": "/api/chat/reports/transfer/{id}",
3666 "title": "Update an existing Chat Transfer Report",
3669 "title": "Example usage:",
3670 "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",
3674 "name": "updateChat_Transfer_Reports",
3675 "group": "Chat_Transfer_Reports",
3676 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3678 "filename": "server/api/chatTransferReport/index.js",
3679 "groupTitle": "Chat_Transfer_Reports"
3683 "url": "/api/chat/websites/{id}/users",
3684 "title": "Add agents to a website",
3687 "title": "Example usage:",
3688 "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",
3692 "name": "AddAgents",
3693 "group": "Chat_Websites",
3694 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
3696 "filename": "server/api/chatWebsite/index.js",
3697 "groupTitle": "Chat_Websites"
3701 "url": "/api/chat/websites",
3702 "title": "Creates a new Website",
3705 "title": "Example usage:",
3706 "content": "curl https://{domain}/api/chat/websites -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
3710 "name": "CreateWebsites",
3711 "group": "Chat_Websites",
3733 "field": "description",
3747 "field": "mapKeyOffline",
3761 "field": "agentAlias",
3768 "field": "customerAlias",
3782 "field": "color_button",
3789 "field": "textColor",
3796 "field": "fontSize",
3810 "field": "animation",
3821 "field": "header_shape",
3828 "field": "header_online",
3835 "field": "start_chat_button",
3842 "field": "offline_chat_button",
3849 "field": "header_offline",
3856 "field": "download_transcript",
3870 "field": "whiteLabel",
3877 "field": "defaultWhiteLabel",
3891 "field": "closingQuestion",
3898 "field": "formSubmitSuccessMessage",
3905 "field": "formSubmitFailureMessage",
3912 "field": "noteTitle",
3919 "field": "placeholderMessage",
3926 "field": "closingMessage",
3933 "field": "closingMessageButton",
3940 "field": "skipMessageButton",
3947 "field": "conditionAgreement",
3954 "field": "enableRating",
3961 "field": "enableFeedback",
3968 "field": "enableSendButton",
3975 "field": "feedbackTitle",
3986 "field": "ratingType",
3993 "field": "ratingStarsNumber",
4000 "field": "onlineForm",
4007 "field": "offlineForm",
4021 "field": "autoclose",
4028 "field": "enableCustomerWriting",
4035 "field": "forwardTranscript",
4042 "field": "forwardTranscriptMessage",
4049 "field": "forwardOffline",
4056 "field": "forwardOfflineAddress",
4063 "field": "waitingTitle",
4070 "field": "waitingMessage",
4077 "field": "offlineMessageSubject",
4084 "field": "offlineMessageBody",
4091 "field": "enableUnmanagedNote",
4098 "field": "unmanagedMessage",
4105 "field": "skipUnmanaged",
4112 "field": "sendUnmanaged",
4119 "field": "enableCustomerAttachment",
4126 "field": "enableCustomerCheckmarks",
4133 "field": "agentAvatar",
4140 "field": "showAgentAvatar",
4147 "field": "timezone",
4154 "field": "notificationTemplate",
4161 "field": "notificationSound",
4168 "field": "notificationShake",
4175 "field": "hideWhenOffline",
4182 "field": "agentIdentifier",
4189 "field": "waitForTheAssignedAgent",
4196 "field": "alignment",
4203 "field": "verticalAlignment",
4210 "field": "messagesAlignment",
4217 "field": "defaultTitle",
4224 "field": "customerAvatar",
4231 "field": "showCustomerAvatar",
4238 "field": "messageFontSize",
4245 "field": "backgroundColor",
4252 "field": "queueTransfer",
4259 "field": "queueTransferTimeout",
4266 "field": "agentTransfer",
4273 "field": "agentTransferTimeout",
4280 "field": "systemAlias",
4287 "field": "systemAvatar",
4294 "field": "mandatoryDispositionPauseId",
4295 "description": "<p>Status to put when mandatory disposition is enabled</p>"
4301 "field": "mandatoryDisposition",
4302 "description": "<p>Enabled/disables mandatory dispo on a queue</p>"
4307 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4309 "filename": "server/api/chatWebsite/index.js",
4310 "groupTitle": "Chat_Websites"
4314 "url": "/api/chat/websites/{id}",
4315 "title": "Deletes a Website",
4318 "title": "Example usage:",
4319 "content": "curl https://{domain}/api/chat/websites/{id} -v -u {name}:{password} -X DELETE",
4323 "name": "DeleteWebsites",
4324 "group": "Chat_Websites",
4325 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4327 "filename": "server/api/chatWebsite/index.js",
4328 "groupTitle": "Chat_Websites"
4332 "url": "/api/chat/websites/describe",
4333 "title": "Gets table info about Websites",
4336 "title": "Example usage:",
4337 "content": "curl https://{domain}/api/chat/websites/describe -v -u {name}:{password}",
4341 "name": "DescribeWebsites",
4342 "group": "Chat_Websites",
4343 "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>",
4345 "filename": "server/api/chatWebsite/index.js",
4346 "groupTitle": "Chat_Websites"
4350 "url": "/api/chat/websites/{id}/users",
4351 "title": "Gets agents from website",
4354 "title": "Example usage:",
4355 "content": "curl https://{domain}/api/chat/websites/{id}/users -v -u {name}:{password} -X GET",
4359 "name": "GetAgents",
4360 "group": "Chat_Websites",
4361 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4363 "filename": "server/api/chatWebsite/index.js",
4364 "groupTitle": "Chat_Websites"
4368 "url": "/api/chat/websites",
4369 "title": "Gets a list of Websites",
4372 "title": "Example usage:",
4373 "content": "curl https://{domain}/api/chat/websites -v -u {name}:{password}",
4377 "name": "GetWebsites",
4378 "group": "Chat_Websites",
4379 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
4381 "filename": "server/api/chatWebsite/index.js",
4382 "groupTitle": "Chat_Websites"
4386 "url": "/api/chat/websites/{id}/users",
4387 "title": "Removes agents from a website",
4390 "title": "Example usage:",
4391 "content": "curl https://{domain}/api/chat/websites/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
4395 "name": "RemoveAgents",
4396 "group": "Chat_Websites",
4397 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4399 "filename": "server/api/chatWebsite/index.js",
4400 "groupTitle": "Chat_Websites"
4404 "url": "/api/chat/websites/{id}/canned_answers",
4405 "title": "Removes canned answers from account",
4408 "title": "Example usage:",
4409 "content": "curl https://{domain}/api/chat/websites/{id}/canned_answers?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
4413 "name": "RemoveAnswers",
4414 "group": "Chat_Websites",
4415 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4417 "filename": "server/api/chatWebsite/index.js",
4418 "groupTitle": "Chat_Websites"
4422 "url": "/api/chat/websites/{id}/dispositions",
4423 "title": "Removes canned answers from account",
4426 "title": "Example usage:",
4427 "content": "curl https://{domain}/api/chat/websites/{id}/dispositions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
4431 "name": "RemoveDispositions",
4432 "group": "Chat_Websites",
4433 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4435 "filename": "server/api/chatWebsite/index.js",
4436 "groupTitle": "Chat_Websites"
4440 "url": "/api/chat/websites/{id}",
4441 "title": "Gets a single Website",
4444 "title": "Example usage:",
4445 "content": "curl https://{domain}/api/chat/websites/{id} -v -u {name}:{password}",
4449 "name": "ShowWebsites",
4450 "group": "Chat_Websites",
4451 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4453 "filename": "server/api/chatWebsite/index.js",
4454 "groupTitle": "Chat_Websites"
4458 "url": "/api/chat/messages/{id}/accept",
4459 "title": "Accepts message",
4462 "title": "Example usage:",
4463 "content": "curl https://{domain}/api/chat/messages/{id}/accept \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
4467 "name": "acceptMessage",
4468 "group": "Chat_Websites",
4469 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4471 "filename": "server/api/chatMessage/index.js",
4472 "groupTitle": "Chat_Websites"
4476 "url": "/api/chat/websites/{id}/canned_answers",
4477 "title": "Creates new canned answer",
4480 "title": "Example usage:",
4481 "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",
4485 "name": "addAnswer",
4486 "group": "Chat_Websites",
4508 "field": "description",
4521 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4523 "filename": "server/api/chatWebsite/index.js",
4524 "groupTitle": "Chat_Websites"
4528 "url": "/api/chat/websites/{id}/applications",
4529 "title": "Creates new applications",
4532 "title": "Example usage:",
4533 "content": "curl https://{domain}/api/chat/websites/{id}/applications -d '[{\"app\": \"queue\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
4537 "name": "addApplications",
4538 "group": "Chat_Websites",
4546 "field": "priority",
4567 "field": "description",
4574 "field": "interval",
4580 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4582 "filename": "server/api/chatWebsite/index.js",
4583 "groupTitle": "Chat_Websites"
4587 "url": "/api/chat/websites/{id}/avatar",
4588 "title": "Add avatar",
4591 "title": "Example usage:",
4592 "content": "curl https://{domain}/api/chat/websites/{id}/avatar -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
4596 "name": "addAvatar",
4597 "group": "Chat_Websites",
4598 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4600 "filename": "server/api/chatWebsite/index.js",
4601 "groupTitle": "Chat_Websites"
4605 "url": "/api/chat/websites/{id}/customer_avatar",
4606 "title": "Add customer avatar",
4609 "title": "Example usage:",
4610 "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",
4614 "name": "addCustomerAvatar",
4615 "group": "Chat_Websites",
4616 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4618 "filename": "server/api/chatWebsite/index.js",
4619 "groupTitle": "Chat_Websites"
4623 "url": "/api/chat/websites/{id}/dispositions",
4624 "title": "Creates new disposition",
4627 "title": "Example usage:",
4628 "content": "curl https://{domain}/api/chat/websites/{id}/dispositions -d '{\"name\": \"vip\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
4632 "name": "addDisposition",
4633 "group": "Chat_Websites",
4647 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4649 "filename": "server/api/chatWebsite/index.js",
4650 "groupTitle": "Chat_Websites"
4654 "url": "/api/chat/accounts/{id}/interactions",
4655 "title": "Creates new interactions",
4658 "title": "Example usage:",
4659 "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",
4663 "name": "addInteraction",
4664 "group": "Chat_Websites",
4679 "field": "ratingValue",
4690 "field": "ratingType",
4697 "field": "ratingMessage",
4704 "field": "pathTranscript",
4711 "field": "mailTranscript",
4718 "field": "closedAt",
4725 "field": "disposition",
4739 "field": "browserName",
4746 "field": "browserVersion",
4760 "field": "osVersion",
4767 "field": "deviceModel",
4774 "field": "deviceVendor",
4781 "field": "deviceType",
4795 "field": "customerIp",
4802 "field": "formData",
4809 "field": "read1stAt",
4816 "field": "lastMsgAt",
4827 "field": "lastMsgDirection",
4834 "field": "closeReason",
4841 "field": "customerPort",
4847 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4849 "filename": "server/api/chatWebsite/index.js",
4850 "groupTitle": "Chat_Websites"
4854 "url": "/api/chat/websites/{id}/logo",
4855 "title": "Add logo",
4858 "title": "Example usage:",
4859 "content": "curl https://{domain}/api/chat/websites/{id}/logo -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
4864 "group": "Chat_Websites",
4865 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4867 "filename": "server/api/chatWebsite/index.js",
4868 "groupTitle": "Chat_Websites"
4872 "url": "/api/chat/websites/{id}/proactive_actions",
4873 "title": "Creates new Proactive Actions",
4876 "title": "Example usage:",
4877 "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",
4881 "name": "addProactiveActions",
4882 "group": "Chat_Websites",
4908 "field": "selector",
4921 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4923 "filename": "server/api/chatWebsite/index.js",
4924 "groupTitle": "Chat_Websites"
4928 "url": "/api/chat/websites/{id}/system_avatar",
4929 "title": "Add system avatar",
4932 "title": "Example usage:",
4933 "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",
4937 "name": "addSystemAvatar",
4938 "group": "Chat_Websites",
4939 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4941 "filename": "server/api/chatWebsite/index.js",
4942 "groupTitle": "Chat_Websites"
4946 "url": "/api/chat/websites/{id}/canned_answers",
4947 "title": "Gets account canned answers",
4950 "title": "Example usage:",
4951 "content": "curl https://{domain}/api/chat/websites/{id}/canned_answers -v -u {name}:{password} -X GET",
4955 "name": "getAnswers",
4956 "group": "Chat_Websites",
4957 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4959 "filename": "server/api/chatWebsite/index.js",
4960 "groupTitle": "Chat_Websites"
4964 "url": "/api/chat/websites/{id}/applications",
4965 "title": "Gets Website Applications",
4968 "title": "Example usage:",
4969 "content": "curl https://{domain}/api/chat/websites/{id}/applications -v -u {name}:{password} -X GET",
4973 "name": "getApplications",
4974 "group": "Chat_Websites",
4975 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4977 "filename": "server/api/chatWebsite/index.js",
4978 "groupTitle": "Chat_Websites"
4982 "url": "/api/chat/websites/{id}/avatar",
4983 "title": "Get avatar",
4986 "title": "Example usage:",
4987 "content": "curl https://{domain}/api/chat/websites/{id}/avatar -v -u {name}:{password} -X GET",
4991 "name": "getAvatar",
4992 "group": "Chat_Websites",
4993 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
4995 "filename": "server/api/chatWebsite/index.js",
4996 "groupTitle": "Chat_Websites"
5000 "url": "/api/chat/websites/{id}/customer_avatar",
5001 "title": "Get Customer Avatar",
5004 "title": "Example usage:",
5005 "content": "curl https://{domain}/api/chat/websites/{id}/customer_avatar -v -u {name}:{password} -X GET",
5009 "name": "getCustomerAvatar",
5010 "group": "Chat_Websites",
5011 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5013 "filename": "server/api/chatWebsite/index.js",
5014 "groupTitle": "Chat_Websites"
5018 "url": "/api/chat/websites/{id}/dispositions",
5019 "title": "Gets account dispositions",
5022 "title": "Example usage:",
5023 "content": "curl https://{domain}/api/chat/websites/{id}/dispositions -v -u {name}:{password} -X GET",
5027 "name": "getDispositions",
5028 "group": "Chat_Websites",
5029 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5031 "filename": "server/api/chatWebsite/index.js",
5032 "groupTitle": "Chat_Websites"
5036 "url": "/api/chat/websites/{id}/fields",
5037 "title": "Gets Website Fields",
5040 "title": "Example usage:",
5041 "content": "curl https://{domain}/api/chat/websites/{id}/fields -v -u {name}:{password} -X GET",
5045 "name": "getFields",
5046 "group": "Chat_Websites",
5047 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5049 "filename": "server/api/chatWebsite/index.js",
5050 "groupTitle": "Chat_Websites"
5054 "url": "/api/chat/websites/{id}/interactions",
5055 "title": "Gets Website Interactions",
5058 "title": "Example usage:",
5059 "content": "curl https://{domain}/api/chat/websites/{id}/interactions -v -u {name}:{password} -X GET",
5063 "name": "getInteraction",
5064 "group": "Chat_Websites",
5065 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5067 "filename": "server/api/chatWebsite/index.js",
5068 "groupTitle": "Chat_Websites"
5072 "url": "/api/chat/websites/{id}/logo",
5073 "title": "Get logo",
5076 "title": "Example usage:",
5077 "content": "curl https://{domain}/api/chat/websites/{id}/logo -v -u {name}:{password} -X GET",
5082 "group": "Chat_Websites",
5083 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5085 "filename": "server/api/chatWebsite/index.js",
5086 "groupTitle": "Chat_Websites"
5090 "url": "/api/chat/websites/{id}/offline_messages",
5091 "title": "Gets Website Offline Messages",
5094 "title": "Example usage:",
5095 "content": "curl https://{domain}/api/chat/websites/{id}/offline_messages -v -u {name}:{password} -X GET",
5099 "name": "getOfflineMessages",
5100 "group": "Chat_Websites",
5101 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5103 "filename": "server/api/chatWebsite/index.js",
5104 "groupTitle": "Chat_Websites"
5108 "url": "/api/chat/websites/{id}/proactive_actions",
5109 "title": "Gets Website Proactive Actions",
5112 "title": "Example usage:",
5113 "content": "curl https://{domain}/api/chat/websites/{id}/proactive_actions -v -u {name}:{password} -X GET",
5117 "name": "getProactiveActions",
5118 "group": "Chat_Websites",
5119 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5121 "filename": "server/api/chatWebsite/index.js",
5122 "groupTitle": "Chat_Websites"
5126 "url": "/api/chat/websites/{id}/snippet",
5127 "title": "Gets Website Snippet",
5130 "title": "Example usage:",
5131 "content": "curl https://{domain}/api/chat/websites/{id}/snippet -v -u {name}:{password} -X GET",
5135 "name": "getSnippet",
5136 "group": "Chat_Websites",
5137 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5139 "filename": "server/api/chatWebsite/index.js",
5140 "groupTitle": "Chat_Websites"
5144 "url": "/api/chat/websites/{id}/system_avatar",
5145 "title": "Get System Avatar",
5148 "title": "Example usage:",
5149 "content": "curl https://{domain}/api/chat/websites/{id}/system_avatar -v -u {name}:{password} -X GET",
5153 "name": "getSystemAvatar",
5154 "group": "Chat_Websites",
5155 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5157 "filename": "server/api/chatWebsite/index.js",
5158 "groupTitle": "Chat_Websites"
5162 "url": "/api/chat/websites/{id}/notify",
5163 "title": "Notify new message",
5166 "title": "Example usage:",
5167 "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",
5172 "group": "Chat_Websites",
5173 "description": "<p>Motion 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>",
5175 "filename": "server/api/chatWebsite/index.js",
5176 "groupTitle": "Chat_Websites"
5180 "url": "/api/chat/websites/{id}/offline",
5181 "title": "Offline message",
5184 "title": "Example usage:",
5185 "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",
5190 "group": "Chat_Websites",
5191 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5193 "filename": "server/api/chatWebsite/index.js",
5194 "groupTitle": "Chat_Websites"
5198 "url": "/api/chat/messages/{id}/reject",
5199 "title": "Rejects message",
5202 "title": "Example usage:",
5203 "content": "curl https://{domain}/api/chat/messages/{id}/reject \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
5207 "name": "rejectMessage",
5208 "group": "Chat_Websites",
5209 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5211 "filename": "server/api/chatMessage/index.js",
5212 "groupTitle": "Chat_Websites"
5216 "url": "/api/chat/websites/{id}",
5217 "title": "Update an existing Website",
5220 "title": "Example usage:",
5221 "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",
5225 "name": "updateWebsites",
5226 "group": "Chat_Websites",
5227 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5229 "filename": "server/api/chatWebsite/index.js",
5230 "groupTitle": "Chat_Websites"
5234 "url": "/api/cm/companies",
5235 "title": "Creates a new Company",
5238 "title": "Example usage:",
5239 "content": "curl https://{domain}/api/cm/companies -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
5243 "name": "CreateCompanies",
5244 "group": "Cm_Companies",
5266 "field": "companyId",
5308 "field": "postalCode",
5336 "field": "emailDomain",
5350 "field": "sPostalCode",
5364 "field": "sCountry",
5371 "field": "description",
5377 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5379 "filename": "server/api/cmCompany/index.js",
5380 "groupTitle": "Cm_Companies"
5384 "url": "/api/cm/companies/{id}",
5385 "title": "Deletes a Company",
5388 "title": "Example usage:",
5389 "content": "curl https://{domain}/api/cm/companies/{id} -v -u {name}:{password} -X DELETE",
5393 "name": "DeleteCompanies",
5394 "group": "Cm_Companies",
5395 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5397 "filename": "server/api/cmCompany/index.js",
5398 "groupTitle": "Cm_Companies"
5402 "url": "/api/cm/companies/describe",
5403 "title": "Gets table info about Companies",
5406 "title": "Example usage:",
5407 "content": "curl https://{domain}/api/cm/companies/describe -v -u {name}:{password}",
5411 "name": "DescribeCompanies",
5412 "group": "Cm_Companies",
5413 "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>",
5415 "filename": "server/api/cmCompany/index.js",
5416 "groupTitle": "Cm_Companies"
5420 "url": "/api/cm/companies",
5421 "title": "Gets a list of Companies",
5424 "title": "Example usage:",
5425 "content": "curl https://{domain}/api/cm/companies -v -u {name}:{password}",
5429 "name": "GetCompanies",
5430 "group": "Cm_Companies",
5431 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
5433 "filename": "server/api/cmCompany/index.js",
5434 "groupTitle": "Cm_Companies"
5438 "url": "/api/cm/companies/{id}",
5439 "title": "Gets a single Company",
5442 "title": "Example usage:",
5443 "content": "curl https://{domain}/api/cm/companies/{id} -v -u {name}:{password}",
5447 "name": "ShowCompanies",
5448 "group": "Cm_Companies",
5449 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5451 "filename": "server/api/cmCompany/index.js",
5452 "groupTitle": "Cm_Companies"
5456 "url": "/api/cm/companies/{id}/contacts",
5457 "title": "Creates new contacts",
5460 "title": "Example usage:",
5461 "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",
5465 "name": "addContacts",
5466 "group": "Cm_Companies",
5474 "field": "firstName",
5481 "field": "lastName",
5495 "field": "postalCode",
5516 "field": "dateOfBirth",
5523 "field": "description",
5565 "field": "facebook",
5621 "field": "telegram",
5635 "field": "priority",
5642 "field": "scheduledat",
5648 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5650 "filename": "server/api/cmCompany/index.js",
5651 "groupTitle": "Cm_Companies"
5655 "url": "/api/cm/companies/{id}/contacts",
5656 "title": "Gets List Contacts",
5659 "title": "Example usage:",
5660 "content": "curl https://{domain}/api/fax/companies/{id}/contacts -v -u {name}:{password} -X GET",
5664 "name": "getContacts",
5665 "group": "Cm_Companies",
5666 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5668 "filename": "server/api/cmCompany/index.js",
5669 "groupTitle": "Cm_Companies"
5673 "url": "/api/cm/companies/{id}",
5674 "title": "Update an existing Company",
5677 "title": "Example usage:",
5678 "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",
5682 "name": "updateCompanies",
5683 "group": "Cm_Companies",
5684 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5686 "filename": "server/api/cmCompany/index.js",
5687 "groupTitle": "Cm_Companies"
5691 "url": "/api/cm/contacts/{id}",
5692 "title": "Deletes a Contact",
5695 "title": "Example usage:",
5696 "content": "curl https://{domain}/api/cm/contacts/{id} -v -u {name}:{password} -X DELETE",
5700 "name": "DeleteContacts",
5701 "group": "Cm_Contacts",
5702 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5704 "filename": "server/api/cmContact/index.js",
5705 "groupTitle": "Cm_Contacts"
5709 "url": "/api/cm/contacts/describe",
5710 "title": "Gets table info about Contacts",
5713 "title": "Example usage:",
5714 "content": "curl https://{domain}/api/cm/contacts/describe -v -u {name}:{password}",
5718 "name": "DescribeContacts",
5719 "group": "Cm_Contacts",
5720 "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>",
5722 "filename": "server/api/cmContact/index.js",
5723 "groupTitle": "Cm_Contacts"
5727 "url": "/api/cm/contacts",
5728 "title": "Gets a list of Contacts",
5731 "title": "Example usage:",
5732 "content": "curl https://{domain}/api/cm/contacts -v -u {name}:{password}",
5736 "name": "GetContacts",
5737 "group": "Cm_Contacts",
5738 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
5740 "filename": "server/api/cmContact/index.js",
5741 "groupTitle": "Cm_Contacts"
5745 "url": "/api/cm/contacts/{id}/finals",
5746 "title": "Gets contact hopper finals",
5749 "title": "Example usage:",
5750 "content": "curl https://{domain}/api/cm/contacts/{id}/hopper_finals -v -u {name}:{password} -X GET",
5754 "name": "GetHopperFinals",
5755 "group": "Cm_Contacts",
5756 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5758 "filename": "server/api/cmContact/index.js",
5759 "groupTitle": "Cm_Contacts"
5763 "url": "/api/cm/contacts/{id}/hopper_histories",
5764 "title": "Gets contact hopper histories",
5767 "title": "Example usage:",
5768 "content": "curl https://{domain}/api/cm/contacts/{id}/hopper_histories -v -u {name}:{password} -X GET",
5772 "name": "GetHopperHistories",
5773 "group": "Cm_Contacts",
5774 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5776 "filename": "server/api/cmContact/index.js",
5777 "groupTitle": "Cm_Contacts"
5781 "url": "/api/cm/contacts/{id}/hoppers",
5782 "title": "Gets contact hoppers",
5785 "title": "Example usage:",
5786 "content": "curl https://{domain}/api/cm/contacts/{id}/hoppers -v -u {name}:{password} -X GET",
5790 "name": "GetHoppers",
5791 "group": "Cm_Contacts",
5792 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5794 "filename": "server/api/cmContact/index.js",
5795 "groupTitle": "Cm_Contacts"
5799 "url": "/api/cm/contacts/create_many",
5800 "title": "Create Contacts",
5803 "title": "Example usage:",
5804 "content": "curl https://{domain}/api/cm/contacts/create_many -d '[{\"firstName\": \"John\", \"lastName\": \"doe\", \"...\": \"...\"}]' -v -u {name}:{password} -X POST",
5808 "name": "bulkCreate",
5809 "group": "Cm_Contacts",
5810 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5812 "filename": "server/api/cmContact/index.js",
5813 "groupTitle": "Cm_Contacts"
5817 "url": "/api/cm/contacts",
5818 "title": "Create Contact",
5821 "title": "Example usage:",
5822 "content": "curl https://{domain}/api/cm/contacts -d '{\"firstName\": \"John\", \"lastName\": \"doe\", \"...\": \"...\"}' -v -u {name}:{password} -X POST",
5827 "group": "Cm_Contacts",
5828 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5830 "filename": "server/api/cmContact/index.js",
5831 "groupTitle": "Cm_Contacts"
5835 "url": "/api/cm/contacts/{id}/jscripty_sessions",
5836 "title": "Gets contact hopper blacks",
5839 "title": "Example usage:",
5840 "content": "curl https://{domain}/api/cm/contacts/{id}/hopper_black -v -u {name}:{password} -X GET",
5844 "name": "getJscriptySessions",
5845 "group": "Cm_Contacts",
5846 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5848 "filename": "server/api/cmContact/index.js",
5849 "groupTitle": "Cm_Contacts"
5853 "url": "/api/cm/contacts/{id}/tags",
5854 "title": "Gets configurations tags",
5857 "title": "Example usage:",
5858 "content": "curl https://{domain}/api/cm/contacts/{id}/tags -v -u {name}:{password} -X GET",
5863 "group": "Cm_Contacts",
5864 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5866 "filename": "server/api/cmContact/index.js",
5867 "groupTitle": "Cm_Contacts"
5871 "url": "/api/cm/contacts/merge",
5872 "title": "Merge Contact",
5875 "title": "Example usage:",
5876 "content": "curl https://{domain}/api/cm/contacts/merge -d '{\"from\": 1, \"to\": 2}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
5881 "group": "Cm_Contacts",
5882 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5884 "filename": "server/api/cmContact/index.js",
5885 "groupTitle": "Cm_Contacts"
5889 "url": "/api/cm/contacts/{id}/tags",
5890 "title": "Sets new tags",
5893 "title": "Example usage:",
5894 "content": "curl https://{domain}/api/cm/contacts/{id}/tags -d '{\"ids\": [1,12]}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
5899 "group": "Cm_Contacts",
5900 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5902 "filename": "server/api/cmContact/index.js",
5903 "groupTitle": "Cm_Contacts"
5907 "url": "/api/cm/contacts/{id}",
5908 "title": "Gets a single Contact",
5911 "title": "Example usage:",
5912 "content": "curl https://{domain}/api/cm/contacts/{id} -v -u {name}:{password} -X GET",
5917 "group": "Cm_Contacts",
5918 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5920 "filename": "server/api/cmContact/index.js",
5921 "groupTitle": "Cm_Contacts"
5925 "url": "/api/cm/contacts/{id}",
5926 "title": "Update a single Contact",
5929 "title": "Example usage:",
5930 "content": "curl https://{domain}/api/cm/contacts/{id} -d '{\"firstName\": \"John\", \"lastName\": \"Doe\"}' -v -u {name}:{password} -X PUT",
5935 "group": "Cm_Contacts",
5936 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5938 "filename": "server/api/cmContact/index.js",
5939 "groupTitle": "Cm_Contacts"
5943 "url": "/api/cm/custom_fields/{id}",
5944 "title": "Deletes a Custom Field",
5947 "title": "Example usage:",
5948 "content": "curl https://{domain}/api/cm/custom_fields/{id} -v -u {name}:{password} -X DELETE",
5952 "name": "DeleteCustom_Fields",
5953 "group": "Cm_Custom_Fields",
5954 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5956 "filename": "server/api/cmCustomField/index.js",
5957 "groupTitle": "Cm_Custom_Fields"
5961 "url": "/api/cm/custom_fields",
5962 "title": "Gets a list of Custom Fields",
5965 "title": "Example usage:",
5966 "content": "curl https://{domain}/api/cm/custom_fields -v -u {name}:{password}",
5970 "name": "GetCustom_Fields",
5971 "group": "Cm_Custom_Fields",
5972 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
5974 "filename": "server/api/cmCustomField/index.js",
5975 "groupTitle": "Cm_Custom_Fields"
5979 "url": "/api/cm/custom_fields/{id}",
5980 "title": "Gets a single Custom Field",
5983 "title": "Example usage:",
5984 "content": "curl https://{domain}/api/cm/custom_fields/{id} -v -u {name}:{password}",
5988 "name": "ShowCustom_Fields",
5989 "group": "Cm_Custom_Fields",
5990 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
5992 "filename": "server/api/cmCustomField/index.js",
5993 "groupTitle": "Cm_Custom_Fields"
5997 "url": "/api/cm/custom_fields/{id}",
5998 "title": "Update an existing Custom Field",
6001 "title": "Example usage:",
6002 "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",
6006 "name": "updateCustom_Fields",
6007 "group": "Cm_Custom_Fields",
6008 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6010 "filename": "server/api/cmCustomField/index.js",
6011 "groupTitle": "Cm_Custom_Fields"
6015 "url": "/api/cm/hopper",
6016 "title": "Creates a new Hopper",
6019 "title": "Example usage:",
6020 "content": "curl https://{domain}/api/cm/hopper -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
6024 "name": "CreateHopper",
6025 "group": "Cm_Hopper",
6047 "field": "scheduledat",
6054 "field": "countbusyretry",
6061 "field": "countcongestionretry",
6068 "field": "countnoanswerretry",
6075 "field": "callback",
6082 "field": "callbackuniqueid",
6089 "field": "callbackat",
6096 "field": "priority",
6103 "field": "recallme",
6110 "field": "ContactId",
6131 "field": "VoiceQueueId",
6138 "field": "CampaignId",
6144 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6146 "filename": "server/api/cmHopper/index.js",
6147 "groupTitle": "Cm_Hopper"
6151 "url": "/api/cm/hopper/describe",
6152 "title": "Gets table info about Hopper",
6155 "title": "Example usage:",
6156 "content": "curl https://{domain}/api/cm/hopper/describe -v -u {name}:{password}",
6160 "name": "DescribeHopper",
6161 "group": "Cm_Hopper",
6162 "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>",
6164 "filename": "server/api/cmHopper/index.js",
6165 "groupTitle": "Cm_Hopper"
6169 "url": "/api/cm/hopper",
6170 "title": "Gets a list of Hopper",
6173 "title": "Example usage:",
6174 "content": "curl https://{domain}/api/cm/hopper -v -u {name}:{password}",
6178 "name": "GetHopper",
6179 "group": "Cm_Hopper",
6180 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
6182 "filename": "server/api/cmHopper/index.js",
6183 "groupTitle": "Cm_Hopper"
6187 "url": "/api/cm/hopper/{id}",
6188 "title": "Gets a single Hopper",
6191 "title": "Example usage:",
6192 "content": "curl https://{domain}/api/cm/hopper/{id} -v -u {name}:{password}",
6196 "name": "ShowHopper",
6197 "group": "Cm_Hopper",
6198 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6200 "filename": "server/api/cmHopper/index.js",
6201 "groupTitle": "Cm_Hopper"
6205 "url": "/api/cm/hopper_black/{id}",
6206 "title": "Deletes a Hopper Black",
6209 "title": "Example usage:",
6210 "content": "curl https://{domain}/api/cm/hopper_black/{id} -v -u {name}:{password} -X DELETE",
6214 "name": "DeleteHopper_Black",
6215 "group": "Cm_Hopper_Black",
6216 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6218 "filename": "server/api/cmHopperBlack/index.js",
6219 "groupTitle": "Cm_Hopper_Black"
6223 "url": "/api/cm/hopper_black/describe",
6224 "title": "Gets table info about Hopper Black",
6227 "title": "Example usage:",
6228 "content": "curl https://{domain}/api/cm/hopper_black/describe -v -u {name}:{password}",
6232 "name": "DescribeHopper_Black",
6233 "group": "Cm_Hopper_Black",
6234 "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>",
6236 "filename": "server/api/cmHopperBlack/index.js",
6237 "groupTitle": "Cm_Hopper_Black"
6241 "url": "/api/cm/hopper_black",
6242 "title": "Gets a list of Hopper Black",
6245 "title": "Example usage:",
6246 "content": "curl https://{domain}/api/cm/hopper_black -v -u {name}:{password}",
6250 "name": "GetHopper_Black",
6251 "group": "Cm_Hopper_Black",
6252 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
6254 "filename": "server/api/cmHopperBlack/index.js",
6255 "groupTitle": "Cm_Hopper_Black"
6259 "url": "/api/cm/hopper_black/{id}",
6260 "title": "Gets a single Hopper Black",
6263 "title": "Example usage:",
6264 "content": "curl https://{domain}/api/cm/hopper_black/{id} -v -u {name}:{password}",
6268 "name": "ShowHopper_Black",
6269 "group": "Cm_Hopper_Black",
6270 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6272 "filename": "server/api/cmHopperBlack/index.js",
6273 "groupTitle": "Cm_Hopper_Black"
6277 "url": "/api/cm/hopper_black/{id}",
6278 "title": "Update an existing Hopper Black",
6281 "title": "Example usage:",
6282 "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",
6286 "name": "updateHopper_Black",
6287 "group": "Cm_Hopper_Black",
6288 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6290 "filename": "server/api/cmHopperBlack/index.js",
6291 "groupTitle": "Cm_Hopper_Black"
6295 "url": "/api/cm/hopper_final/checkContactHopper",
6296 "title": "Check if contact is in hopper",
6299 "title": "Example usage:",
6300 "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",
6304 "name": "/checkContactHopper",
6305 "group": "Cm_Hopper_Final",
6306 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6308 "filename": "server/api/cmHopperFinal/index.js",
6309 "groupTitle": "Cm_Hopper_Final"
6313 "url": "/api/cm/hopper_final/describe",
6314 "title": "Gets table info about HopperFinal",
6317 "title": "Example usage:",
6318 "content": "curl https://{domain}/api/cm/hopper_final/describe -v -u {name}:{password}",
6322 "name": "DescribeHopperFinal",
6323 "group": "Cm_Hopper_Final",
6324 "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>",
6326 "filename": "server/api/cmHopperFinal/index.js",
6327 "groupTitle": "Cm_Hopper_Final"
6331 "url": "/api/cm/hopper_final",
6332 "title": "Gets a list of HopperFinal",
6335 "title": "Example usage:",
6336 "content": "curl https://{domain}/api/cm/hopper_final -v -u {name}:{password}",
6340 "name": "GetHopperFinal",
6341 "group": "Cm_Hopper_Final",
6342 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
6344 "filename": "server/api/cmHopperFinal/index.js",
6345 "groupTitle": "Cm_Hopper_Final"
6349 "url": "/api/cm/hopper_final/{id}",
6350 "title": "Gets a single HopperFinal",
6353 "title": "Example usage:",
6354 "content": "curl https://{domain}/api/cm/hopper_final/{id} -v -u {name}:{password}",
6358 "name": "ShowHopperFinal",
6359 "group": "Cm_Hopper_Final",
6360 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6362 "filename": "server/api/cmHopperFinal/index.js",
6363 "groupTitle": "Cm_Hopper_Final"
6367 "url": "/api/cm/hopper_final/campaign/countAttributes/{id}",
6368 "title": "Return number contacts for attributes",
6371 "title": "Example usage:",
6372 "content": "curl https://{domain}/api/hopper_final/campaign/countAttributes/{id} -d '{\"disposition\": \"OK\"}' -v -u {name}:{password} -X GET",
6376 "name": "countContactsIvrCampaignHopperFinal",
6377 "group": "Cm_Hopper_Final",
6378 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6380 "filename": "server/api/cmHopperFinal/index.js",
6381 "groupTitle": "Cm_Hopper_Final"
6385 "url": "/api/cm/hopper_final/voice/queue/countAttributes/{id}",
6386 "title": "Return number contacts for attributes",
6389 "title": "Example usage:",
6390 "content": "curl https://{domain}/api/hopper_final/voice/queue/countAttributes/{id} -d '{\"disposition\": \"OK\"}' -v -u {name}:{password} -X GET",
6394 "name": "countContactsQueueCampaignHopperFinal",
6395 "group": "Cm_Hopper_Final",
6396 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6398 "filename": "server/api/cmHopperFinal/index.js",
6399 "groupTitle": "Cm_Hopper_Final"
6403 "url": "/api/cm/hopper_final/campaign/{id}",
6404 "title": "Move contacts in hopper",
6407 "title": "Example usage:",
6408 "content": "curl https://{domain}/api/hopper_final/campaign/moveContacts/{id} -d '{\"state\": \"state\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
6412 "name": "moveContactsIvrCampaignHopperFinal",
6413 "group": "Cm_Hopper_Final",
6414 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6416 "filename": "server/api/cmHopperFinal/index.js",
6417 "groupTitle": "Cm_Hopper_Final"
6421 "url": "/api/cm/hopper_final/voice/queue/{id}",
6422 "title": "Move contacts in hopper",
6425 "title": "Example usage:",
6426 "content": "curl https://{domain}/api/hopper_final/voice/queue/moveContacts/{id} -d '{\"state\": \"state\"}' -H 'Content-Type: application/json' -v -u {name}:{password}",
6430 "name": "moveContactsQueueCampaignHopperFinal",
6431 "group": "Cm_Hopper_Final",
6432 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6434 "filename": "server/api/cmHopperFinal/index.js",
6435 "groupTitle": "Cm_Hopper_Final"
6439 "url": "/api/cm/hopper_final/{id}",
6440 "title": "Update a single hopper final",
6443 "title": "Example usage:",
6444 "content": "curl https://{domain}/api/hopper_final/{id} -d '{\"disposition\": \"OK\"}' -v -u {name}:{password} -X PUT",
6449 "group": "Cm_Hopper_Final",
6450 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6452 "filename": "server/api/cmHopperFinal/index.js",
6453 "groupTitle": "Cm_Hopper_Final"
6457 "url": "/api/cm/hopper_history",
6458 "title": "Creates a new HopperHistory",
6461 "title": "Example usage:",
6462 "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",
6466 "name": "CreateHopperHistory",
6467 "group": "Cm_Hopper_History",
6482 "field": "statedesc",
6489 "field": "scheduledat",
6496 "field": "countbusyretry",
6503 "field": "countcongestionretry",
6510 "field": "countnoanswerretry",
6517 "field": "countglobal",
6524 "field": "uniqueid",
6531 "field": "originatecalleridnum",
6538 "field": "originatecalleridname",
6545 "field": "calleridnum",
6552 "field": "calleridname",
6559 "field": "starttime",
6566 "field": "responsetime",
6573 "field": "answertime",
6580 "field": "droptime",
6594 "field": "ringtime",
6601 "field": "holdtime",
6608 "field": "talktime",
6615 "field": "followuptime",
6622 "field": "dropreason",
6629 "field": "campaign",
6636 "field": "campaigntype",
6643 "field": "membername",
6671 "field": "callback",
6678 "field": "callbackuniqueid",
6685 "field": "callbackat",
6692 "field": "recallme",
6699 "field": "editedat",
6712 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6714 "filename": "server/api/cmHopperHistory/index.js",
6715 "groupTitle": "Cm_Hopper_History"
6719 "url": "/api/cm/hopper_history/describe",
6720 "title": "Gets table info about HopperHistory",
6723 "title": "Example usage:",
6724 "content": "curl https://{domain}/api/cm/hopper_history/describe -v -u {name}:{password}",
6728 "name": "DescribeHopperHistory",
6729 "group": "Cm_Hopper_History",
6730 "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>",
6732 "filename": "server/api/cmHopperHistory/index.js",
6733 "groupTitle": "Cm_Hopper_History"
6737 "url": "/api/cm/hopper_history",
6738 "title": "Gets a list of HopperHistory",
6741 "title": "Example usage:",
6742 "content": "curl https://{domain}/api/cm/hopper_history -v -u {name}:{password}",
6746 "name": "GetHopperHistory",
6747 "group": "Cm_Hopper_History",
6748 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
6750 "filename": "server/api/cmHopperHistory/index.js",
6751 "groupTitle": "Cm_Hopper_History"
6755 "url": "/api/cm/hopper_history/{id}",
6756 "title": "Gets a single HopperHistory",
6759 "title": "Example usage:",
6760 "content": "curl https://{domain}/api/cm/hopper_history/{id} -v -u {name}:{password}",
6764 "name": "ShowHopperHistory",
6765 "group": "Cm_Hopper_History",
6766 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6768 "filename": "server/api/cmHopperHistory/index.js",
6769 "groupTitle": "Cm_Hopper_History"
6773 "url": "/api/cm/hopper_history/{id}",
6774 "title": "Update a single hopper history",
6777 "title": "Example usage:",
6778 "content": "curl https://{domain}/api/hopper_history/{id} -d '{\"disposition\": \"OK\"}' -v -u {name}:{password} -X PUT",
6783 "group": "Cm_Hopper_History",
6784 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6786 "filename": "server/api/cmHopperHistory/index.js",
6787 "groupTitle": "Cm_Hopper_History"
6791 "url": "/api/cm/hopper/{id}",
6792 "title": "Delete Hopper",
6795 "title": "Example usage:",
6796 "content": "curl https://{domain}/api/cm/hopper/{id} -v -u {name}:{password} -X DELETE",
6801 "group": "Cm_Hopper",
6802 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6804 "filename": "server/api/cmHopper/index.js",
6805 "groupTitle": "Cm_Hopper"
6809 "url": "/api/cm/hopper/opencontacts",
6810 "title": "Gets Open Contacts",
6813 "title": "Example usage:",
6814 "content": "curl https://{domain}/api/cm/hopper/opencontacts -v -u {name}:{password} -X GET",
6818 "name": "getOpenContacts",
6819 "group": "Cm_Hopper",
6820 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6822 "filename": "server/api/cmHopper/index.js",
6823 "groupTitle": "Cm_Hopper"
6827 "url": "/api/cm/hopper/preview",
6828 "title": "Gets Preview Dialer Contacts",
6831 "title": "Example usage:",
6832 "content": "curl https://{domain}/api/cm/hopper/preview -d '{\"hopperIds\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X GET",
6836 "name": "getPreview",
6837 "group": "Cm_Hopper",
6838 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6840 "filename": "server/api/cmHopper/index.js",
6841 "groupTitle": "Cm_Hopper"
6845 "url": "/api/cm/hopper/{id}",
6846 "title": "Update an existing Hopper",
6849 "title": "Example usage:",
6850 "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",
6854 "name": "updateHopper",
6855 "group": "Cm_Hopper",
6856 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6858 "filename": "server/api/cmHopper/index.js",
6859 "groupTitle": "Cm_Hopper"
6863 "url": "/api/cm/lists",
6864 "title": "Creates a new List",
6867 "title": "Example usage:",
6868 "content": "curl https://{domain}/api/cm/lists -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
6872 "name": "CreateLists",
6873 "group": "Cm_Lists",
6888 "field": "description",
6895 "field": "dialPrefix",
6901 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6903 "filename": "server/api/cmList/index.js",
6904 "groupTitle": "Cm_Lists"
6908 "url": "/api/cm/lists/{id}",
6909 "title": "Deletes a List",
6912 "title": "Example usage:",
6913 "content": "curl https://{domain}/api/cm/lists/{id} -v -u {name}:{password} -X DELETE",
6917 "name": "DeleteLists",
6918 "group": "Cm_Lists",
6919 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6921 "filename": "server/api/cmList/index.js",
6922 "groupTitle": "Cm_Lists"
6926 "url": "/api/cm/lists/describe",
6927 "title": "Gets table info about Lists",
6930 "title": "Example usage:",
6931 "content": "curl https://{domain}/api/cm/lists/describe -v -u {name}:{password}",
6935 "name": "DescribeLists",
6936 "group": "Cm_Lists",
6937 "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>",
6939 "filename": "server/api/cmList/index.js",
6940 "groupTitle": "Cm_Lists"
6944 "url": "/api/cm/lists/{id}/users",
6945 "title": "Gets agents from list",
6948 "title": "Example usage:",
6949 "content": "curl https://{domain}/api/cm/lists/{id}/users -v -u {name}:{password} -X GET",
6953 "name": "GetAgents",
6954 "group": "Cm_Lists",
6955 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6957 "filename": "server/api/cmList/index.js",
6958 "groupTitle": "Cm_Lists"
6962 "url": "/api/cm/lists",
6963 "title": "Gets a list of Lists",
6966 "title": "Example usage:",
6967 "content": "curl https://{domain}/api/cm/lists -v -u {name}:{password}",
6972 "group": "Cm_Lists",
6973 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
6975 "filename": "server/api/cmList/index.js",
6976 "groupTitle": "Cm_Lists"
6980 "url": "/api/cm/lists/{id}/users",
6981 "title": "Removes agents from a list",
6984 "title": "Example usage:",
6985 "content": "curl https://{domain}/api/cm/lists/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
6989 "name": "RemoveAgents",
6990 "group": "Cm_Lists",
6991 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
6993 "filename": "server/api/cmList/index.js",
6994 "groupTitle": "Cm_Lists"
6998 "url": "/api/cm/lists/{id}/dispositions",
6999 "title": "Removes dispositions from account",
7002 "title": "Example usage:",
7003 "content": "curl https://{domain}/api/cm/lists/{id}/dispositions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
7007 "name": "RemoveDispositions",
7008 "group": "Cm_Lists",
7009 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7011 "filename": "server/api/cmList/index.js",
7012 "groupTitle": "Cm_Lists"
7016 "url": "/api/cm/lists/{id}",
7017 "title": "Gets a single List",
7020 "title": "Example usage:",
7021 "content": "curl https://{domain}/api/cm/lists/{id} -v -u {name}:{password}",
7025 "name": "ShowLists",
7026 "group": "Cm_Lists",
7027 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7029 "filename": "server/api/cmList/index.js",
7030 "groupTitle": "Cm_Lists"
7034 "url": "/api/cm/lists/{id}/users",
7035 "title": "Adds agents to a list",
7038 "title": "Example usage:",
7039 "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",
7043 "name": "addAgents",
7044 "group": "Cm_Lists",
7045 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7047 "filename": "server/api/cmList/index.js",
7048 "groupTitle": "Cm_Lists"
7052 "url": "/api/cm/lists/{id}/contacts",
7053 "title": "Creates new contacts",
7056 "title": "Example usage:",
7057 "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",
7061 "name": "addContacts",
7062 "group": "Cm_Lists",
7070 "field": "firstName",
7077 "field": "lastName",
7091 "field": "postalCode",
7112 "field": "dateOfBirth",
7119 "field": "description",
7161 "field": "facebook",
7217 "field": "telegram",
7231 "field": "priority",
7238 "field": "scheduledat",
7244 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7246 "filename": "server/api/cmList/index.js",
7247 "groupTitle": "Cm_Lists"
7251 "url": "/api/cm/lists/{id}/fields",
7252 "title": "Creates a new custom field",
7255 "title": "Example usage:",
7256 "content": "curl https://{domain}/api/cm/lists/{id}/fields -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
7260 "name": "addCustomField",
7261 "group": "Cm_Lists",
7262 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7264 "filename": "server/api/cmList/index.js",
7265 "groupTitle": "Cm_Lists"
7269 "url": "/api/cm/lists/{id}/dispositions",
7270 "title": "Creates new disposition",
7273 "title": "Example usage:",
7274 "content": "curl https://{domain}/api/cm/lists/{id}/dispositions -d '{\"name\": \"vip\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
7278 "name": "addDisposition",
7279 "group": "Cm_Lists",
7293 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7295 "filename": "server/api/cmList/index.js",
7296 "groupTitle": "Cm_Lists"
7300 "url": "/api/cm/lists/{id}/contacts",
7301 "title": "Gets List Contacts",
7304 "title": "Example usage:",
7305 "content": "curl https://{domain}/api/cm/lists/{id}/contacts -v -u {name}:{password} -X GET",
7309 "name": "getContacts",
7310 "group": "Cm_Lists",
7311 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7313 "filename": "server/api/cmList/index.js",
7314 "groupTitle": "Cm_Lists"
7318 "url": "/api/cm/lists/{id}/fields",
7319 "title": "Gets Custom Fields",
7322 "title": "Example usage:",
7323 "content": "curl https://{domain}/api/cm/lists/{id}/fields -v -u {name}:{password} -X GET",
7327 "name": "getCustomFields",
7328 "group": "Cm_Lists",
7329 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7331 "filename": "server/api/cmList/index.js",
7332 "groupTitle": "Cm_Lists"
7336 "url": "/api/cm/lists/{id}/dispositions",
7337 "title": "Gets list dispositions",
7340 "title": "Example usage:",
7341 "content": "curl https://{domain}/api/cm/lists/{id}/dispositions -v -u {name}:{password} -X GET",
7345 "name": "getDispositions",
7346 "group": "Cm_Lists",
7347 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7349 "filename": "server/api/cmList/index.js",
7350 "groupTitle": "Cm_Lists"
7354 "url": "/api/cm/lists/{id}/contacts/csv",
7355 "title": "Gets CSV List Contacts",
7358 "title": "Example usage:",
7359 "content": "curl https://{domain}/api/cm/lists/{id}/contacts/csv -v -u {name}:{password} -X GET",
7364 "group": "Cm_Lists",
7365 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7367 "filename": "server/api/cmList/index.js",
7368 "groupTitle": "Cm_Lists"
7372 "url": "/api/cm/lists/{id}",
7373 "title": "Update an existing List",
7376 "title": "Example usage:",
7377 "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",
7381 "name": "updateLists",
7382 "group": "Cm_Lists",
7383 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7385 "filename": "server/api/cmList/index.js",
7386 "groupTitle": "Cm_Lists"
7390 "url": "/api/cm/contacts/upload/:id",
7391 "title": "Import new contacts by csv",
7394 "title": "Example usage:",
7395 "content": "curl https://{domain}/api/cm/contacts/upload/:id -v -u {name}:{password} -X POST",
7400 "group": "Cm_contacts",
7401 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7403 "filename": "server/api/cmContact/index.js",
7404 "groupTitle": "Cm_contacts"
7408 "url": "/api/cm/contacts/upload",
7409 "title": "Upload csv",
7412 "title": "Example usage:",
7413 "content": "curl https://{domain}/api/cm/contacts/upload -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
7418 "group": "Cm_contacts",
7419 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7421 "filename": "server/api/cmContact/index.js",
7422 "groupTitle": "Cm_contacts"
7426 "url": "/api/cm/contacts/csv",
7427 "title": "Create new contacts by csv",
7430 "title": "Example usage:",
7431 "content": "curl https://{domain}/api/cm/contacts/csv -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
7435 "name": "uploadCsv",
7436 "group": "Cm_contacts",
7437 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7439 "filename": "server/api/cmContact/index.js",
7440 "groupTitle": "Cm_contacts"
7444 "url": "/api/conditions/{id}",
7445 "title": "Deletes a Condition",
7448 "title": "Example usage:",
7449 "content": "curl https://{domain}/api/conditions/{id} -v -u {name}:{password} -X DELETE",
7453 "name": "DeleteConditions",
7454 "group": "Conditions",
7455 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7457 "filename": "server/api/condition/index.js",
7458 "groupTitle": "Conditions"
7462 "url": "/api/conditions/{id}",
7463 "title": "Update an existing Condition",
7466 "title": "Example usage:",
7467 "content": "curl https://{domain}/api/conditions/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
7471 "name": "updateConditions",
7472 "group": "Conditions",
7473 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7475 "filename": "server/api/condition/index.js",
7476 "groupTitle": "Conditions"
7480 "url": "/api/cm/custom_field",
7481 "title": "Create a new custom field",
7484 "title": "Example usage:",
7485 "content": "curl https://{domain}/api/cm/custom_field -d '{\"name\": \"mycf\", \"type\": \"text\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
7489 "name": "CreateCustomField",
7490 "group": "Custom_Fields",
7491 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7493 "filename": "server/api/cmCustomField/index.js",
7494 "groupTitle": "Custom_Fields"
7498 "url": "/api/dashboards/items",
7499 "title": "Create dasboard item",
7502 "title": "Example usage:",
7503 "content": "curl https://{domain}/api/dashboards/items \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
7508 "group": "Dashboard_Items",
7509 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7511 "filename": "server/api/dashboardItem/index.js",
7512 "groupTitle": "Dashboard_Items"
7516 "url": "/api/dashboards/items/{id}",
7517 "title": "Deletes a Dashboard Item",
7520 "title": "Example usage:",
7521 "content": "curl https://{domain}/api/dashboards/items/{id} -v -u {name}:{password} -X DELETE",
7525 "name": "DeleteDashboard_Items",
7526 "group": "Dashboard_Items",
7527 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7529 "filename": "server/api/dashboardItem/index.js",
7530 "groupTitle": "Dashboard_Items"
7534 "url": "/api/dashboards/items/{id}",
7535 "title": "Gets a single Dashboard Item",
7538 "title": "Example usage:",
7539 "content": "curl https://{domain}/api/dashboards/items/{id} -v -u {name}:{password}",
7543 "name": "ShowDashboard_Items",
7544 "group": "Dashboard_Items",
7545 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7547 "filename": "server/api/dashboardItem/index.js",
7548 "groupTitle": "Dashboard_Items"
7552 "url": "/api/dashboards/items/{id}",
7553 "title": "Update an existing item",
7556 "title": "Example usage:",
7557 "content": "curl https://{domain}/api/dashboards/items/{id} -v -u {name}:{password} -X PUT",
7562 "group": "Dashboard_Items",
7563 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7565 "filename": "server/api/dashboardItem/index.js",
7566 "groupTitle": "Dashboard_Items"
7570 "url": "/api/dashboards/clone",
7571 "title": "Clone an existing Dashboard",
7574 "title": "Example usage:",
7575 "content": "curl https://{domain}/api/dashboards/clone -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
7579 "name": "CloneDashboards",
7580 "group": "Dashboards",
7581 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7583 "filename": "server/api/dashboard/index.js",
7584 "groupTitle": "Dashboards"
7588 "url": "/api/dashboards",
7589 "title": "Creates a new Dashboard",
7592 "title": "Example usage:",
7593 "content": "curl https://{domain}/api/dashboards -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
7597 "name": "CreateDashboards",
7598 "group": "Dashboards",
7613 "field": "description",
7619 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7621 "filename": "server/api/dashboard/index.js",
7622 "groupTitle": "Dashboards"
7626 "url": "/api/dashboards/{id}",
7627 "title": "Deletes a Dashboard",
7630 "title": "Example usage:",
7631 "content": "curl https://{domain}/api/dashboards/{id} -v -u {name}:{password} -X DELETE",
7635 "name": "DeleteDashboards",
7636 "group": "Dashboards",
7637 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7639 "filename": "server/api/dashboard/index.js",
7640 "groupTitle": "Dashboards"
7644 "url": "/api/dashboards",
7645 "title": "Gets a list of Dashboards",
7648 "title": "Example usage:",
7649 "content": "curl https://{domain}/api/dashboards -v -u {name}:{password}",
7653 "name": "GetDashboards",
7654 "group": "Dashboards",
7655 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
7657 "filename": "server/api/dashboard/index.js",
7658 "groupTitle": "Dashboards"
7662 "url": "/api/dashboards/{id}",
7663 "title": "Gets a single Dashboard",
7666 "title": "Example usage:",
7667 "content": "curl https://{domain}/api/dashboards/{id} -v -u {name}:{password}",
7671 "name": "ShowDashboards",
7672 "group": "Dashboards",
7673 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7675 "filename": "server/api/dashboard/index.js",
7676 "groupTitle": "Dashboards"
7680 "url": "/api/dashboards/{id}/items",
7681 "title": "Creates new item",
7684 "title": "Example usage:",
7685 "content": "curl https://{domain}/api/dashboards/{id}/items -d '{\"type\": \"counter\", \"...\": \"...\"}]' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
7690 "group": "Dashboards",
7691 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7693 "filename": "server/api/dashboard/index.js",
7694 "groupTitle": "Dashboards"
7698 "url": "/api/dashboards/{id}/items",
7699 "title": "Gets items",
7702 "title": "Example usage:",
7703 "content": "curl https://{domain}/api/dashboards/{id}/items -v -u {name}:{password} -X GET",
7708 "group": "Dashboards",
7709 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7711 "filename": "server/api/dashboard/index.js",
7712 "groupTitle": "Dashboards"
7716 "url": "/api/dashboards/{id}",
7717 "title": "Update an existing Dashboard",
7720 "title": "Example usage:",
7721 "content": "curl https://{domain}/api/dashboards/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
7725 "name": "updateDashboards",
7726 "group": "Dashboards",
7727 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7729 "filename": "server/api/dashboard/index.js",
7730 "groupTitle": "Dashboards"
7734 "url": "/api/integrations/desk/accounts",
7735 "title": "Creates a new Desk Account",
7738 "title": "Example usage:",
7739 "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",
7743 "name": "CreateDesk_Accounts",
7744 "group": "Desk_Accounts",
7759 "field": "description",
7766 "field": "username",
7773 "field": "remoteUri",
7783 "field": "authType",
7790 "field": "password",
7797 "field": "consumerKey",
7804 "field": "consumerSecret",
7818 "field": "tokenSecret",
7825 "field": "serverUrl",
7832 "\"integrationTab\"",
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>",
7844 "filename": "server/api/intDeskAccount/index.js",
7845 "groupTitle": "Desk_Accounts"
7849 "url": "/api/integrations/desk/accounts/{id}",
7850 "title": "Deletes a Desk Account",
7853 "title": "Example usage:",
7854 "content": "curl https://{domain}/api/integrations/desk/accounts/{id} -v -u {name}:{password} -X DELETE",
7858 "name": "DeleteDesk_Accounts",
7859 "group": "Desk_Accounts",
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>",
7862 "filename": "server/api/intDeskAccount/index.js",
7863 "groupTitle": "Desk_Accounts"
7867 "url": "/api/integrations/desk/accounts",
7868 "title": "Gets a list of Desk Accounts",
7871 "title": "Example usage:",
7872 "content": "curl https://{domain}/api/integrations/desk/accounts -v -u {name}:{password}",
7876 "name": "GetDesk_Accounts",
7877 "group": "Desk_Accounts",
7878 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
7880 "filename": "server/api/intDeskAccount/index.js",
7881 "groupTitle": "Desk_Accounts"
7885 "url": "/api/integrations/desk/accounts/{id}",
7886 "title": "Gets a single Desk Account",
7889 "title": "Example usage:",
7890 "content": "curl https://{domain}/api/integrations/desk/accounts/{id} -v -u {name}:{password}",
7894 "name": "ShowDesk_Accounts",
7895 "group": "Desk_Accounts",
7896 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7898 "filename": "server/api/intDeskAccount/index.js",
7899 "groupTitle": "Desk_Accounts"
7903 "url": "/api/integrations/desk/accounts/{id}/configurations",
7904 "title": "Creates new configuration",
7907 "title": "Example usage:",
7908 "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",
7912 "name": "addConfiguration",
7913 "group": "Desk_Accounts",
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>",
7916 "filename": "server/api/intDeskAccount/index.js",
7917 "groupTitle": "Desk_Accounts"
7921 "url": "/api/integrations/desk/accounts/{id}/configurations",
7922 "title": "Gets account configurations",
7925 "title": "Example usage:",
7926 "content": "curl https://{domain}/api/integrations/desk/accounts/{id}/configurations -v -u {name}:{password} -X GET",
7930 "name": "getConfigurations",
7931 "group": "Desk_Accounts",
7932 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
7934 "filename": "server/api/intDeskAccount/index.js",
7935 "groupTitle": "Desk_Accounts"
7939 "url": "/api/integrations/desk/accounts/{id}/fields",
7940 "title": "Gets account fields",
7943 "title": "Example usage:",
7944 "content": "curl https://{domain}/api/integrations/desk/accounts/{id}/fields -v -u {name}:{password} -X GET",
7948 "name": "getFields",
7949 "group": "Desk_Accounts",
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>",
7952 "filename": "server/api/intDeskAccount/index.js",
7953 "groupTitle": "Desk_Accounts"
7957 "url": "/api/integrations/desk/accounts/{id}",
7958 "title": "Update an existing Desk Account",
7961 "title": "Example usage:",
7962 "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",
7966 "name": "updateDesk_Accounts",
7967 "group": "Desk_Accounts",
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>",
7970 "filename": "server/api/intDeskAccount/index.js",
7971 "groupTitle": "Desk_Accounts"
7975 "url": "/api/integrations/desk/configurations",
7976 "title": "Creates a new Desk Configuration",
7979 "title": "Example usage:",
7980 "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",
7984 "name": "CreateDesk_Configurations",
7985 "group": "Desk_Configurations",
8000 "field": "description",
8006 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8008 "filename": "server/api/intDeskConfiguration/index.js",
8009 "groupTitle": "Desk_Configurations"
8013 "url": "/api/integrations/desk/configurations/{id}",
8014 "title": "Deletes a Desk Configuration",
8017 "title": "Example usage:",
8018 "content": "curl https://{domain}/api/integrations/desk/configurations/{id} -v -u {name}:{password} -X DELETE",
8022 "name": "DeleteDesk_Configurations",
8023 "group": "Desk_Configurations",
8024 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8026 "filename": "server/api/intDeskConfiguration/index.js",
8027 "groupTitle": "Desk_Configurations"
8031 "url": "/api/integrations/desk/configurations",
8032 "title": "Gets a list of Desk Configurations",
8035 "title": "Example usage:",
8036 "content": "curl https://{domain}/api/integrations/desk/configurations -v -u {name}:{password}",
8040 "name": "GetDesk_Configurations",
8041 "group": "Desk_Configurations",
8042 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
8044 "filename": "server/api/intDeskConfiguration/index.js",
8045 "groupTitle": "Desk_Configurations"
8049 "url": "/api/integrations/desk/configurations/{id}",
8050 "title": "Gets a single Desk Configuration",
8053 "title": "Example usage:",
8054 "content": "curl https://{domain}/api/integrations/desk/configurations/{id} -v -u {name}:{password}",
8058 "name": "ShowDesk_Configurations",
8059 "group": "Desk_Configurations",
8060 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8062 "filename": "server/api/intDeskConfiguration/index.js",
8063 "groupTitle": "Desk_Configurations"
8067 "url": "/api/integrations/desk/configurations/{id}/descriptions",
8068 "title": "Gets configurations descriptions",
8071 "title": "Example usage:",
8072 "content": "curl https://{domain}/api/integrations/desk/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
8076 "name": "getDescriptions",
8077 "group": "Desk_Configurations",
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>",
8080 "filename": "server/api/intDeskConfiguration/index.js",
8081 "groupTitle": "Desk_Configurations"
8085 "url": "/api/integrations/desk/configurations/{id}/fields",
8086 "title": "Gets configurations fields",
8089 "title": "Example usage:",
8090 "content": "curl https://{domain}/api/integrations/desk/configurations/{id}/fields -v -u {name}:{password} -X GET",
8094 "name": "getFields",
8095 "group": "Desk_Configurations",
8096 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8098 "filename": "server/api/intDeskConfiguration/index.js",
8099 "groupTitle": "Desk_Configurations"
8103 "url": "/api/integrations/desk/configurations/{id}/subjects",
8104 "title": "Gets configurations subjects",
8107 "title": "Example usage:",
8108 "content": "curl https://{domain}/api/integrations/desk/configurations/{id}/subjects -v -u {name}:{password} -X GET",
8112 "name": "getSubjects",
8113 "group": "Desk_Configurations",
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>",
8116 "filename": "server/api/intDeskConfiguration/index.js",
8117 "groupTitle": "Desk_Configurations"
8121 "url": "/api/integrations/desk/configurations/{id}/tags",
8122 "title": "Gets configurations tags",
8125 "title": "Example usage:",
8126 "content": "curl https://{domain}/api/integrations/desk/configurations/{id}/tags -v -u {name}:{password} -X GET",
8131 "group": "Desk_Configurations",
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>",
8134 "filename": "server/api/intDeskConfiguration/index.js",
8135 "groupTitle": "Desk_Configurations"
8139 "url": "/api/integrations/desk/configurations/{id}/tags",
8140 "title": "Sets new tags",
8143 "title": "Example usage:",
8144 "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",
8149 "group": "Desk_Configurations",
8150 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8152 "filename": "server/api/intDeskConfiguration/index.js",
8153 "groupTitle": "Desk_Configurations"
8157 "url": "/api/integrations/desk/configurations/{id}",
8158 "title": "Update an existing Desk Configuration",
8161 "title": "Example usage:",
8162 "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",
8166 "name": "updateDesk_Configurations",
8167 "group": "Desk_Configurations",
8168 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8170 "filename": "server/api/intDeskConfiguration/index.js",
8171 "groupTitle": "Desk_Configurations"
8175 "url": "/api/integrations/desk/fields",
8176 "title": "Creates a new Desk Field",
8179 "title": "Example usage:",
8180 "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",
8184 "name": "CreateDesk_Fields",
8185 "group": "Desk_Fields",
8195 "\"customVariable\"",
8222 "\"customVariable\""
8232 "field": "keyContent",
8246 "field": "nameField",
8253 "field": "customField",
8260 "field": "variableName",
8266 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8268 "filename": "server/api/intDeskField/index.js",
8269 "groupTitle": "Desk_Fields"
8273 "url": "/api/integrations/desk/fields/{id}",
8274 "title": "Deletes a Desk Field",
8277 "title": "Example usage:",
8278 "content": "curl https://{domain}/api/integrations/desk/fields/{id} -v -u {name}:{password} -X DELETE",
8282 "name": "DeleteDesk_Fields",
8283 "group": "Desk_Fields",
8284 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8286 "filename": "server/api/intDeskField/index.js",
8287 "groupTitle": "Desk_Fields"
8291 "url": "/api/integrations/desk/fields",
8292 "title": "Gets a list of Desk Fields",
8295 "title": "Example usage:",
8296 "content": "curl https://{domain}/api/integrations/desk/fields -v -u {name}:{password}",
8300 "name": "GetDesk_Fields",
8301 "group": "Desk_Fields",
8302 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
8304 "filename": "server/api/intDeskField/index.js",
8305 "groupTitle": "Desk_Fields"
8309 "url": "/api/integrations/desk/fields/{id}",
8310 "title": "Gets a single Desk Field",
8313 "title": "Example usage:",
8314 "content": "curl https://{domain}/api/integrations/desk/fields/{id} -v -u {name}:{password}",
8318 "name": "ShowDesk_Fields",
8319 "group": "Desk_Fields",
8320 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8322 "filename": "server/api/intDeskField/index.js",
8323 "groupTitle": "Desk_Fields"
8327 "url": "/api/integrations/desk/fields/{id}",
8328 "title": "Update an existing Desk Field",
8331 "title": "Example usage:",
8332 "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",
8336 "name": "updateDesk_Fields",
8337 "group": "Desk_Fields",
8338 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8340 "filename": "server/api/intDeskField/index.js",
8341 "groupTitle": "Desk_Fields"
8345 "url": "/api/dispositions",
8346 "title": "Creates a new Disposition",
8349 "title": "Example usage:",
8350 "content": "curl https://{domain}/api/dispositions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
8354 "name": "CreateDispositions",
8355 "group": "Dispositions",
8369 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8371 "filename": "server/api/disposition/index.js",
8372 "groupTitle": "Dispositions"
8376 "url": "/api/dispositions/{id}",
8377 "title": "Deletes a Disposition",
8380 "title": "Example usage:",
8381 "content": "curl https://{domain}/api/dispositions/{id} -v -u {name}:{password} -X DELETE",
8385 "name": "DeleteDispositions",
8386 "group": "Dispositions",
8387 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8389 "filename": "server/api/disposition/index.js",
8390 "groupTitle": "Dispositions"
8394 "url": "/api/dispositions",
8395 "title": "Gets a list of Dispositions",
8398 "title": "Example usage:",
8399 "content": "curl https://{domain}/api/dispositions -v -u {name}:{password}",
8403 "name": "GetDispositions",
8404 "group": "Dispositions",
8405 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
8407 "filename": "server/api/disposition/index.js",
8408 "groupTitle": "Dispositions"
8412 "url": "/api/dispositions/{id}",
8413 "title": "Gets a single Disposition",
8416 "title": "Example usage:",
8417 "content": "curl https://{domain}/api/dispositions/{id} -v -u {name}:{password}",
8421 "name": "ShowDispositions",
8422 "group": "Dispositions",
8423 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8425 "filename": "server/api/disposition/index.js",
8426 "groupTitle": "Dispositions"
8430 "url": "/api/dispositions/{id}",
8431 "title": "Update an existing Disposition",
8434 "title": "Example usage:",
8435 "content": "curl https://{domain}/api/dispositions/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
8439 "name": "updateDispositions",
8440 "group": "Dispositions",
8441 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8443 "filename": "server/api/disposition/index.js",
8444 "groupTitle": "Dispositions"
8448 "url": "/api/integrations/dynamics365/accounts",
8449 "title": "Creates a new Dynamics365 Account",
8452 "title": "Example usage:",
8453 "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",
8457 "name": "CreateDynamics365_Accounts",
8458 "group": "Dynamics365_Accounts",
8473 "field": "username",
8480 "field": "password",
8487 "field": "remoteUri",
8494 "field": "tenantId",
8501 "field": "clientId",
8508 "field": "clientSecret",
8515 "field": "serverUrl",
8522 "field": "description",
8528 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8530 "filename": "server/api/intDynamics365Account/index.js",
8531 "groupTitle": "Dynamics365_Accounts"
8535 "url": "/api/integrations/dynamics365/accounts/{id}",
8536 "title": "Deletes a Dynamics365 Account",
8539 "title": "Example usage:",
8540 "content": "curl https://{domain}/api/integrations/dynamics365/accounts/{id} -v -u {name}:{password} -X DELETE",
8544 "name": "DeleteDynamics365_Accounts",
8545 "group": "Dynamics365_Accounts",
8546 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8548 "filename": "server/api/intDynamics365Account/index.js",
8549 "groupTitle": "Dynamics365_Accounts"
8553 "url": "/api/integrations/dynamics365/accounts",
8554 "title": "Gets a list of Dynamics365 Accounts",
8557 "title": "Example usage:",
8558 "content": "curl https://{domain}/api/integrations/dynamics365/accounts -v -u {name}:{password}",
8562 "name": "GetDynamics365_Accounts",
8563 "group": "Dynamics365_Accounts",
8564 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
8566 "filename": "server/api/intDynamics365Account/index.js",
8567 "groupTitle": "Dynamics365_Accounts"
8571 "url": "/api/integrations/dynamics365/accounts/{id}",
8572 "title": "Gets a single Dynamics365 Account",
8575 "title": "Example usage:",
8576 "content": "curl https://{domain}/api/integrations/dynamics365/accounts/{id} -v -u {name}:{password}",
8580 "name": "ShowDynamics365_Accounts",
8581 "group": "Dynamics365_Accounts",
8582 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8584 "filename": "server/api/intDynamics365Account/index.js",
8585 "groupTitle": "Dynamics365_Accounts"
8589 "url": "/api/integrations/dynamics365/accounts/{id}/configurations",
8590 "title": "Creates new configuration",
8593 "title": "Example usage:",
8594 "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",
8598 "name": "addConfiguration",
8599 "group": "Dynamics365_Accounts",
8600 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8602 "filename": "server/api/intDynamics365Account/index.js",
8603 "groupTitle": "Dynamics365_Accounts"
8607 "url": "/api/integrations/dynamics365/accounts/{id}/configurations",
8608 "title": "Gets account configurations",
8611 "title": "Example usage:",
8612 "content": "curl https://{domain}/api/integrations/dynamics365/accounts/{id}/configurations -v -u {name}:{password} -X GET",
8616 "name": "getConfigurations",
8617 "group": "Dynamics365_Accounts",
8618 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8620 "filename": "server/api/intDynamics365Account/index.js",
8621 "groupTitle": "Dynamics365_Accounts"
8625 "url": "/api/integrations/dynamics365/accounts/{id}/fields",
8626 "title": "Gets account fields",
8629 "title": "Example usage:",
8630 "content": "curl https://{domain}/api/integrations/dynamics365/accounts/{id}/fields -v -u {name}:{password} -X GET",
8634 "name": "getFields",
8635 "group": "Dynamics365_Accounts",
8636 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8638 "filename": "server/api/intDynamics365Account/index.js",
8639 "groupTitle": "Dynamics365_Accounts"
8643 "url": "/api/integrations/dynamics365/accounts/{id}",
8644 "title": "Update an existing Dynamics365 Account",
8647 "title": "Example usage:",
8648 "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",
8652 "name": "updateDynamics365_Accounts",
8653 "group": "Dynamics365_Accounts",
8654 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8656 "filename": "server/api/intDynamics365Account/index.js",
8657 "groupTitle": "Dynamics365_Accounts"
8661 "url": "/api/integrations/dynamics365/configurations",
8662 "title": "Creates a new Dynamics365 Configuration",
8665 "title": "Example usage:",
8666 "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",
8670 "name": "CreateDynamics365_Configurations",
8671 "group": "Dynamics365_Configurations",
8686 "field": "description",
8697 "field": "ticketType",
8703 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8705 "filename": "server/api/intDynamics365Configuration/index.js",
8706 "groupTitle": "Dynamics365_Configurations"
8710 "url": "/api/integrations/dynamics365/configurations/{id}",
8711 "title": "Deletes a Dynamics365 Configuration",
8714 "title": "Example usage:",
8715 "content": "curl https://{domain}/api/integrations/dynamics365/configurations/{id} -v -u {name}:{password} -X DELETE",
8719 "name": "DeleteDynamics365_Configurations",
8720 "group": "Dynamics365_Configurations",
8721 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8723 "filename": "server/api/intDynamics365Configuration/index.js",
8724 "groupTitle": "Dynamics365_Configurations"
8728 "url": "/api/integrations/dynamics365/configurations",
8729 "title": "Gets a list of Dynamics365 Configurations",
8732 "title": "Example usage:",
8733 "content": "curl https://{domain}/api/integrations/dynamics365/configurations -v -u {name}:{password}",
8737 "name": "GetDynamics365_Configurations",
8738 "group": "Dynamics365_Configurations",
8739 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
8741 "filename": "server/api/intDynamics365Configuration/index.js",
8742 "groupTitle": "Dynamics365_Configurations"
8746 "url": "/api/integrations/dynamics365/configurations/{id}",
8747 "title": "Gets a single Dynamics365 Configuration",
8750 "title": "Example usage:",
8751 "content": "curl https://{domain}/api/integrations/dynamics365/configurations/{id} -v -u {name}:{password}",
8755 "name": "ShowDynamics365_Configurations",
8756 "group": "Dynamics365_Configurations",
8757 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8759 "filename": "server/api/intDynamics365Configuration/index.js",
8760 "groupTitle": "Dynamics365_Configurations"
8764 "url": "/api/integrations/dynamics365/configurations/{id}/descriptions",
8765 "title": "Gets configurations descriptions",
8768 "title": "Example usage:",
8769 "content": "curl https://{domain}/api/integrations/dynamics365/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
8773 "name": "getDescriptions",
8774 "group": "Dynamics365_Configurations",
8775 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8777 "filename": "server/api/intDynamics365Configuration/index.js",
8778 "groupTitle": "Dynamics365_Configurations"
8782 "url": "/api/integrations/dynamics365/configurations/{id}/fields",
8783 "title": "Gets configurations fields",
8786 "title": "Example usage:",
8787 "content": "curl https://{domain}/api/integrations/zoho/configurations/{id}/fields -v -u {name}:{password} -X GET",
8791 "name": "getFields",
8792 "group": "Dynamics365_Configurations",
8793 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8795 "filename": "server/api/intDynamics365Configuration/index.js",
8796 "groupTitle": "Dynamics365_Configurations"
8800 "url": "/api/integrations/zoho/configurations/{id}/subjects",
8801 "title": "Gets configurations subjects",
8804 "title": "Example usage:",
8805 "content": "curl https://{domain}/api/integrations/dynamics365/configurations/{id}/subjects -v -u {name}:{password} -X GET",
8809 "name": "getSubjects",
8810 "group": "Dynamics365_Configurations",
8811 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <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 "filename": "server/api/intDynamics365Configuration/index.js",
8814 "groupTitle": "Dynamics365_Configurations"
8818 "url": "/api/integrations/dynamics365/configurations/{id}",
8819 "title": "Update an existing Dynamics365 Configuration",
8822 "title": "Example usage:",
8823 "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",
8827 "name": "updateDynamics365_Configurations",
8828 "group": "Dynamics365_Configurations",
8829 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8831 "filename": "server/api/intDynamics365Configuration/index.js",
8832 "groupTitle": "Dynamics365_Configurations"
8836 "url": "/api/integrations/dynamics365/fields",
8837 "title": "Creates a new Dynamics365 Field",
8840 "title": "Example usage:",
8841 "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",
8845 "name": "CreateDynamics365_Fields",
8846 "group": "Dynamics365_Fields",
8856 "\"customVariable\"",
8883 "\"customVariable\""
8893 "field": "keyContent",
8907 "field": "nameField",
8914 "field": "customField",
8921 "field": "variableName",
8927 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8929 "filename": "server/api/intDynamics365Field/index.js",
8930 "groupTitle": "Dynamics365_Fields"
8934 "url": "/api/integrations/dynamics365/fields/{id}",
8935 "title": "Deletes a Dynamics365 Field",
8938 "title": "Example usage:",
8939 "content": "curl https://{domain}/api/integrations/dynamics365/fields/{id} -v -u {name}:{password} -X DELETE",
8943 "name": "DeleteDynamics365_Fields",
8944 "group": "Dynamics365_Fields",
8945 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8947 "filename": "server/api/intDynamics365Field/index.js",
8948 "groupTitle": "Dynamics365_Fields"
8952 "url": "/api/integrations/dynamics365/fields",
8953 "title": "Gets a list of Dynamics365 Fields",
8956 "title": "Example usage:",
8957 "content": "curl https://{domain}/api/integrations/dynamics365/fields -v -u {name}:{password}",
8961 "name": "GetDynamics365_Fields",
8962 "group": "Dynamics365_Fields",
8963 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
8965 "filename": "server/api/intDynamics365Field/index.js",
8966 "groupTitle": "Dynamics365_Fields"
8970 "url": "/api/integrations/dynamics365/fields/{id}",
8971 "title": "Gets a single Dynamics365 Field",
8974 "title": "Example usage:",
8975 "content": "curl https://{domain}/api/integrations/dynamics365/fields/{id} -v -u {name}:{password}",
8979 "name": "ShowDynamics365_Fields",
8980 "group": "Dynamics365_Fields",
8981 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
8983 "filename": "server/api/intDynamics365Field/index.js",
8984 "groupTitle": "Dynamics365_Fields"
8988 "url": "/api/integrations/dynamics365/fields/{id}",
8989 "title": "Update an existing Dynamics365 Field",
8992 "title": "Example usage:",
8993 "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",
8997 "name": "updateDynamics365_Fields",
8998 "group": "Dynamics365_Fields",
8999 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9001 "filename": "server/api/intDynamics365Field/index.js",
9002 "groupTitle": "Dynamics365_Fields"
9006 "url": "/api/fax/accounts/{id}/users",
9007 "title": "Add agents to a fax account",
9010 "title": "Example usage:",
9011 "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",
9015 "name": "AddAgents",
9016 "group": "Fax_Accounts",
9017 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9019 "filename": "server/api/faxAccount/index.js",
9020 "groupTitle": "Fax_Accounts"
9024 "url": "/api/fax/accounts",
9025 "title": "Creates a new Account",
9028 "title": "Example usage:",
9029 "content": "curl https://{domain}/api/fax/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
9033 "name": "CreateAccounts",
9034 "group": "Fax_Accounts",
9049 "field": "description",
9067 "field": "headerinfo",
9074 "field": "localstationid",
9125 "field": "faxdetect",
9132 "field": "t38timeout",
9159 "field": "notificationTemplate",
9166 "field": "notificationSound",
9173 "field": "notificationShake",
9180 "field": "waitForTheAssignedAgent",
9187 "field": "queueTransfer",
9194 "field": "queueTransferTimeout",
9201 "field": "agentTransfer",
9208 "field": "agentTransferTimeout",
9215 "field": "mandatoryDispositionPauseId",
9216 "description": "<p>Status to put when mandatory disposition is enabled</p>"
9222 "field": "mandatoryDisposition",
9223 "description": "<p>Enabled/disables mandatory dispo on a queue</p>"
9228 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9230 "filename": "server/api/faxAccount/index.js",
9231 "groupTitle": "Fax_Accounts"
9235 "url": "/api/fax/accounts/{id}",
9236 "title": "Deletes a Account",
9239 "title": "Example usage:",
9240 "content": "curl https://{domain}/api/fax/accounts/{id} -v -u {name}:{password} -X DELETE",
9244 "name": "DeleteAccounts",
9245 "group": "Fax_Accounts",
9246 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9248 "filename": "server/api/faxAccount/index.js",
9249 "groupTitle": "Fax_Accounts"
9253 "url": "/api/fax/accounts/describe",
9254 "title": "Gets table info about Accounts",
9257 "title": "Example usage:",
9258 "content": "curl https://{domain}/api/fax/accounts/describe -v -u {name}:{password}",
9262 "name": "DescribeAccounts",
9263 "group": "Fax_Accounts",
9264 "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>",
9266 "filename": "server/api/faxAccount/index.js",
9267 "groupTitle": "Fax_Accounts"
9271 "url": "/api/fax/accounts",
9272 "title": "Gets a list of Accounts",
9275 "title": "Example usage:",
9276 "content": "curl https://{domain}/api/fax/accounts -v -u {name}:{password}",
9280 "name": "GetAccounts",
9281 "group": "Fax_Accounts",
9282 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
9284 "filename": "server/api/faxAccount/index.js",
9285 "groupTitle": "Fax_Accounts"
9289 "url": "/api/fax/accounts/{id}/users",
9290 "title": "Gets agents from fax account",
9293 "title": "Example usage:",
9294 "content": "curl https://{domain}/api/fax/accounts/{id}/users -v -u {name}:{password} -X GET",
9298 "name": "GetAgents",
9299 "group": "Fax_Accounts",
9300 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9302 "filename": "server/api/faxAccount/index.js",
9303 "groupTitle": "Fax_Accounts"
9307 "url": "/api/fax/accounts/{id}/users",
9308 "title": "Removes agents from a fax account",
9311 "title": "Example usage:",
9312 "content": "curl https://{domain}/api/fax/accounts/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
9316 "name": "RemoveAgents",
9317 "group": "Fax_Accounts",
9318 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9320 "filename": "server/api/faxAccount/index.js",
9321 "groupTitle": "Fax_Accounts"
9325 "url": "/api/fax/accounts/{id}/canned_answers",
9326 "title": "Removes canned answers from account",
9329 "title": "Example usage:",
9330 "content": "curl https://{domain}/api/fax/accounts/{id}/canned_answers?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
9334 "name": "RemoveAnswers",
9335 "group": "Fax_Accounts",
9336 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9338 "filename": "server/api/faxAccount/index.js",
9339 "groupTitle": "Fax_Accounts"
9343 "url": "/api/fax/accounts/{id}/dispositions",
9344 "title": "Removes dispositions from account",
9347 "title": "Example usage:",
9348 "content": "curl https://{domain}/api/fax/accounts/{id}/dispositions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
9352 "name": "RemoveDispositions",
9353 "group": "Fax_Accounts",
9354 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9356 "filename": "server/api/faxAccount/index.js",
9357 "groupTitle": "Fax_Accounts"
9361 "url": "/api/fax/accounts/{id}",
9362 "title": "Gets a single Account",
9365 "title": "Example usage:",
9366 "content": "curl https://{domain}/api/fax/accounts/{id} -v -u {name}:{password}",
9370 "name": "ShowAccounts",
9371 "group": "Fax_Accounts",
9372 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9374 "filename": "server/api/faxAccount/index.js",
9375 "groupTitle": "Fax_Accounts"
9379 "url": "/api/fax/accounts/{id}/canned_answers",
9380 "title": "Creates new canned answer",
9383 "title": "Example usage:",
9384 "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",
9388 "name": "addAnswer",
9389 "group": "Fax_Accounts",
9411 "field": "description",
9424 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9426 "filename": "server/api/faxAccount/index.js",
9427 "groupTitle": "Fax_Accounts"
9431 "url": "/api/fax/accounts/{id}/applications",
9432 "title": "Creates new applications",
9435 "title": "Example usage:",
9436 "content": "curl https://{domain}/api/fax/accounts/{id}/applications -d '[{\"app\": \"queue\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
9440 "name": "addApplications",
9441 "group": "Fax_Accounts",
9449 "field": "priority",
9470 "field": "description",
9477 "field": "interval",
9483 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9485 "filename": "server/api/faxAccount/index.js",
9486 "groupTitle": "Fax_Accounts"
9490 "url": "/api/fax/accounts/addaccountapplications",
9491 "title": "Creates new account and applications",
9494 "title": "Example usage:",
9495 "content": "curl https://{domain}/api/fax/accounts/addaccountapplications -d '[{\"name\": \"name\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
9499 "name": "addApplications",
9500 "group": "Fax_Accounts",
9508 "field": "priority",
9529 "field": "description",
9536 "field": "interval",
9542 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9544 "filename": "server/api/faxAccount/index.js",
9545 "groupTitle": "Fax_Accounts"
9549 "url": "/api/fax/accounts/{id}/dispositions",
9550 "title": "Creates new disposition",
9553 "title": "Example usage:",
9554 "content": "curl https://{domain}/api/fax/accounts/{id}/dispositions -d '{\"name\": \"vip\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
9558 "name": "addDisposition",
9559 "group": "Fax_Accounts",
9573 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9575 "filename": "server/api/faxAccount/index.js",
9576 "groupTitle": "Fax_Accounts"
9580 "url": "/api/fax/accounts/{id}/interactions",
9581 "title": "Creates new interactions",
9584 "title": "Example usage:",
9585 "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",
9589 "name": "addInteraction",
9590 "group": "Fax_Accounts",
9605 "field": "closedAt",
9612 "field": "disposition",
9626 "field": "read1stAt",
9644 "field": "firstMsgDirection",
9651 "field": "lastMsgAt",
9662 "field": "lastMsgDirection",
9668 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9670 "filename": "server/api/faxAccount/index.js",
9671 "groupTitle": "Fax_Accounts"
9675 "url": "/api/fax/accounts/{id}/canned_answers",
9676 "title": "Gets account canned answers",
9679 "title": "Example usage:",
9680 "content": "curl https://{domain}/api/fax/accounts/{id}/canned_answers -v -u {name}:{password} -X GET",
9684 "name": "getAnswers",
9685 "group": "Fax_Accounts",
9686 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9688 "filename": "server/api/faxAccount/index.js",
9689 "groupTitle": "Fax_Accounts"
9693 "url": "/api/fax/accounts/{id}/applications",
9694 "title": "Gets account pplications",
9697 "title": "Example usage:",
9698 "content": "curl https://{domain}/api/fax/accounts/{id}/applications -v -u {name}:{password} -X GET",
9702 "name": "getApplications",
9703 "group": "Fax_Accounts",
9704 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9706 "filename": "server/api/faxAccount/index.js",
9707 "groupTitle": "Fax_Accounts"
9711 "url": "/api/fax/accounts/{id}/dispositions",
9712 "title": "Gets account dispositions",
9715 "title": "Example usage:",
9716 "content": "curl https://{domain}/api/fax/accounts/{id}/dispositions -v -u {name}:{password} -X GET",
9720 "name": "getDispositions",
9721 "group": "Fax_Accounts",
9722 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9724 "filename": "server/api/faxAccount/index.js",
9725 "groupTitle": "Fax_Accounts"
9729 "url": "/api/fax/accounts/{id}/interactions",
9730 "title": "Gets account interactions",
9733 "title": "Example usage:",
9734 "content": "curl https://{domain}/api/fax/accounts/{id}/interactions -v -u {name}:{password} -X GET",
9738 "name": "getInteraction",
9739 "group": "Fax_Accounts",
9740 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9742 "filename": "server/api/faxAccount/index.js",
9743 "groupTitle": "Fax_Accounts"
9747 "url": "/api/fax/accounts/{id}/messages",
9748 "title": "Gets account messages",
9751 "title": "Example usage:",
9752 "content": "curl https://{domain}/api/fax/accounts/{id}/messages -v -u {name}:{password} -X GET",
9756 "name": "getMessages",
9757 "group": "Fax_Accounts",
9758 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9760 "filename": "server/api/faxAccount/index.js",
9761 "groupTitle": "Fax_Accounts"
9765 "url": "/api/fax/accounts/{id}/send",
9766 "title": "Send new fax",
9769 "title": "Example usage:",
9770 "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",
9775 "group": "Fax_Accounts",
9776 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9778 "filename": "server/api/faxAccount/index.js",
9779 "groupTitle": "Fax_Accounts"
9783 "url": "/api/fax/accounts/{id}",
9784 "title": "Update an existing Account",
9787 "title": "Example usage:",
9788 "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",
9792 "name": "updateAccounts",
9793 "group": "Fax_Accounts",
9794 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9796 "filename": "server/api/faxAccount/index.js",
9797 "groupTitle": "Fax_Accounts"
9801 "url": "/api/fax/accounts/updateaccountapplications",
9802 "title": "Update account and applications",
9805 "title": "Example usage:",
9806 "content": "curl https://{domain}/api/fax/accounts/updateaccountapplications -d '[{\"name\": \"name\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
9810 "name": "updateApplications",
9811 "group": "Fax_Accounts",
9819 "field": "priority",
9840 "field": "description",
9847 "field": "interval",
9853 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9855 "filename": "server/api/faxAccount/index.js",
9856 "groupTitle": "Fax_Accounts"
9860 "url": "/api/fax/applications",
9861 "title": "Creates a new Application",
9864 "title": "Example usage:",
9865 "content": "curl https://{domain}/api/fax/applications -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
9869 "name": "CreateApplications",
9870 "group": "Fax_Applications",
9878 "field": "priority",
9899 "field": "description",
9906 "field": "interval",
9912 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9914 "filename": "server/api/faxApplication/index.js",
9915 "groupTitle": "Fax_Applications"
9919 "url": "/api/fax/applications/{id}",
9920 "title": "Deletes a Application",
9923 "title": "Example usage:",
9924 "content": "curl https://{domain}/api/fax/applications/{id} -v -u {name}:{password} -X DELETE",
9928 "name": "DeleteApplications",
9929 "group": "Fax_Applications",
9930 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9932 "filename": "server/api/faxApplication/index.js",
9933 "groupTitle": "Fax_Applications"
9937 "url": "/api/fax/applications",
9938 "title": "Gets a list of Applications",
9941 "title": "Example usage:",
9942 "content": "curl https://{domain}/api/fax/applications -v -u {name}:{password}",
9946 "name": "GetApplications",
9947 "group": "Fax_Applications",
9948 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
9950 "filename": "server/api/faxApplication/index.js",
9951 "groupTitle": "Fax_Applications"
9955 "url": "/api/fax/applications/{id}",
9956 "title": "Gets a single Application",
9959 "title": "Example usage:",
9960 "content": "curl https://{domain}/api/fax/applications/{id} -v -u {name}:{password}",
9964 "name": "ShowApplications",
9965 "group": "Fax_Applications",
9966 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9968 "filename": "server/api/faxApplication/index.js",
9969 "groupTitle": "Fax_Applications"
9973 "url": "/api/fax/applications/{id}",
9974 "title": "Update an existing Application",
9977 "title": "Example usage:",
9978 "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",
9982 "name": "updateApplications",
9983 "group": "Fax_Applications",
9984 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
9986 "filename": "server/api/faxApplication/index.js",
9987 "groupTitle": "Fax_Applications"
9991 "url": "/api/fax/interactions/{id}/tags",
9992 "title": "Add tags to the interaction",
9995 "title": "Example usage:",
9996 "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",
10001 "group": "Fax_Interactions",
10002 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10003 "version": "0.0.0",
10004 "filename": "server/api/faxInteraction/index.js",
10005 "groupTitle": "Fax_Interactions"
10009 "url": "/api/fax/interactions",
10010 "title": "Creates a new Interaction",
10013 "title": "Example usage:",
10014 "content": "curl https://{domain}/api/fax/interactions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
10018 "name": "CreateInteractions",
10019 "group": "Fax_Interactions",
10034 "field": "closedAt",
10041 "field": "disposition",
10055 "field": "read1stAt",
10073 "field": "firstMsgDirection",
10080 "field": "lastMsgAt",
10091 "field": "lastMsgDirection",
10097 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10098 "version": "0.0.0",
10099 "filename": "server/api/faxInteraction/index.js",
10100 "groupTitle": "Fax_Interactions"
10104 "url": "/api/fax/interactions/{id}",
10105 "title": "Deletes a Interaction",
10108 "title": "Example usage:",
10109 "content": "curl https://{domain}/api/fax/interactions/{id} -v -u {name}:{password} -X DELETE",
10113 "name": "DeleteInteractions",
10114 "group": "Fax_Interactions",
10115 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10116 "version": "0.0.0",
10117 "filename": "server/api/faxInteraction/index.js",
10118 "groupTitle": "Fax_Interactions"
10122 "url": "/api/fax/interactions/describe",
10123 "title": "Gets table info about Interactions",
10126 "title": "Example usage:",
10127 "content": "curl https://{domain}/api/fax/interactions/describe -v -u {name}:{password}",
10131 "name": "DescribeInteractions",
10132 "group": "Fax_Interactions",
10133 "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>",
10134 "version": "0.0.0",
10135 "filename": "server/api/faxInteraction/index.js",
10136 "groupTitle": "Fax_Interactions"
10140 "url": "/api/fax/interactions",
10141 "title": "Gets a list of Interactions",
10144 "title": "Example usage:",
10145 "content": "curl https://{domain}/api/fax/interactions -v -u {name}:{password}",
10149 "name": "GetInteractions",
10150 "group": "Fax_Interactions",
10151 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
10152 "version": "0.0.0",
10153 "filename": "server/api/faxInteraction/index.js",
10154 "groupTitle": "Fax_Interactions"
10158 "url": "/api/fax/interactions/{id}/tags",
10159 "title": "Removes tags from interaction",
10162 "title": "Example usage:",
10163 "content": "curl https://{domain}/api/fax/interactions/{id}/tags?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
10167 "name": "RemoveTags",
10168 "group": "Fax_Interactions",
10169 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10170 "version": "0.0.0",
10171 "filename": "server/api/faxInteraction/index.js",
10172 "groupTitle": "Fax_Interactions"
10176 "url": "/api/fax/interactions/{id}",
10177 "title": "Gets a single Interaction",
10180 "title": "Example usage:",
10181 "content": "curl https://{domain}/api/fax/interactions/{id} -v -u {name}:{password}",
10185 "name": "ShowInteractions",
10186 "group": "Fax_Interactions",
10187 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10188 "version": "0.0.0",
10189 "filename": "server/api/faxInteraction/index.js",
10190 "groupTitle": "Fax_Interactions"
10194 "url": "/api/fax/interactions/{id}/messages",
10195 "title": "Creates new messages",
10198 "title": "Example usage:",
10199 "content": "curl https://{domain}/api/fax/interactions/{id}/messages -d '[{\"to\": \"+3901119886500\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
10203 "name": "addMessage",
10204 "group": "Fax_Interactions",
10230 "field": "direction",
10237 "field": "failMessage",
10250 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10251 "version": "0.0.0",
10252 "filename": "server/api/faxInteraction/index.js",
10253 "groupTitle": "Fax_Interactions"
10257 "url": "/api/fax/interactions/{id}/download",
10258 "title": "Get interactions",
10261 "title": "Example usage:",
10262 "content": "curl https://{domain}/api/fax/interactions/{id}/download -v -u {name}:{password} -X GET",
10266 "name": "download",
10267 "group": "Fax_Interactions",
10268 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10269 "version": "0.0.0",
10270 "filename": "server/api/faxInteraction/index.js",
10271 "groupTitle": "Fax_Interactions"
10275 "url": "/api/fax/interactions/{id}/messages",
10276 "title": "Gets interaction messages",
10279 "title": "Example usage:",
10280 "content": "curl https://{domain}/api/fax/interactions/{id}/messages -v -u {name}:{password} -X GET",
10284 "name": "getMessages",
10285 "group": "Fax_Interactions",
10286 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10287 "version": "0.0.0",
10288 "filename": "server/api/faxInteraction/index.js",
10289 "groupTitle": "Fax_Interactions"
10293 "url": "/api/fax/interactions/{id}",
10294 "title": "Update an existing Interaction",
10297 "title": "Example usage:",
10298 "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",
10302 "name": "updateInteractions",
10303 "group": "Fax_Interactions",
10304 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10305 "version": "0.0.0",
10306 "filename": "server/api/faxInteraction/index.js",
10307 "groupTitle": "Fax_Interactions"
10311 "url": "/api/fax/messages/{id}/download",
10312 "title": "Get message",
10315 "title": "Example usage:",
10316 "content": "curl https://{domain}/api/fax/messages/{id}/download -v -u {name}:{password} -X GET",
10320 "name": "download",
10321 "group": "Fax_Message",
10322 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10323 "version": "0.0.0",
10324 "filename": "server/api/faxMessage/index.js",
10325 "groupTitle": "Fax_Message"
10329 "url": "/api/fax/messages/{id}",
10330 "title": "Deletes a Message",
10333 "title": "Example usage:",
10334 "content": "curl https://{domain}/api/fax/messages/{id} -v -u {name}:{password} -X DELETE",
10338 "name": "DeleteMessages",
10339 "group": "Fax_Messages",
10340 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10341 "version": "0.0.0",
10342 "filename": "server/api/faxMessage/index.js",
10343 "groupTitle": "Fax_Messages"
10347 "url": "/api/fax/messages/describe",
10348 "title": "Gets table info about Messages",
10351 "title": "Example usage:",
10352 "content": "curl https://{domain}/api/fax/messages/describe -v -u {name}:{password}",
10356 "name": "DescribeMessages",
10357 "group": "Fax_Messages",
10358 "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>",
10359 "version": "0.0.0",
10360 "filename": "server/api/faxMessage/index.js",
10361 "groupTitle": "Fax_Messages"
10365 "url": "/api/fax/messages",
10366 "title": "Gets a list of Messages",
10369 "title": "Example usage:",
10370 "content": "curl https://{domain}/api/fax/messages -v -u {name}:{password}",
10374 "name": "GetMessages",
10375 "group": "Fax_Messages",
10376 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
10377 "version": "0.0.0",
10378 "filename": "server/api/faxMessage/index.js",
10379 "groupTitle": "Fax_Messages"
10383 "url": "/api/fax/messages/{id}",
10384 "title": "Gets a single Message",
10387 "title": "Example usage:",
10388 "content": "curl https://{domain}/api/fax/messages/{id} -v -u {name}:{password}",
10392 "name": "ShowMessages",
10393 "group": "Fax_Messages",
10394 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10395 "version": "0.0.0",
10396 "filename": "server/api/faxMessage/index.js",
10397 "groupTitle": "Fax_Messages"
10401 "url": "/api/fax/messages/{id}/accept",
10402 "title": "Accepts message",
10405 "title": "Example usage:",
10406 "content": "curl https://{domain}/api/fax/messages/{id}/accept \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
10410 "name": "acceptMessage",
10411 "group": "Fax_Messages",
10412 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10413 "version": "0.0.0",
10414 "filename": "server/api/faxMessage/index.js",
10415 "groupTitle": "Fax_Messages"
10419 "url": "/api/fax/messages/{id}/reject",
10420 "title": "Rejects message",
10423 "title": "Example usage:",
10424 "content": "curl https://{domain}/api/fax/messages/{id}/reject \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
10428 "name": "rejectMessage",
10429 "group": "Fax_Messages",
10430 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10431 "version": "0.0.0",
10432 "filename": "server/api/faxMessage/index.js",
10433 "groupTitle": "Fax_Messages"
10437 "url": "/api/fax/messages",
10438 "title": "Create message and send Fax",
10441 "title": "Example usage:",
10442 "content": "curl https://{domain}/api/fax/messages/{id}/reject \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
10446 "name": "rejectMessage",
10447 "group": "Fax_Messages",
10448 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10449 "version": "0.0.0",
10450 "filename": "server/api/faxMessage/index.js",
10451 "groupTitle": "Fax_Messages"
10455 "url": "/api/fax/messages/{id}",
10456 "title": "Update an existing Message",
10459 "title": "Example usage:",
10460 "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",
10464 "name": "updateMessages",
10465 "group": "Fax_Messages",
10466 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10467 "version": "0.0.0",
10468 "filename": "server/api/faxMessage/index.js",
10469 "groupTitle": "Fax_Messages"
10473 "url": "/api/fax/reports/queue",
10474 "title": "Creates a new Fax Queue Report",
10477 "title": "Example usage:",
10478 "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",
10482 "name": "CreateFax_Queue_Reports",
10483 "group": "Fax_Queue_Reports",
10491 "field": "uniqueid",
10512 "field": "leaveAt",
10519 "field": "acceptAt",
10539 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10540 "version": "0.0.0",
10541 "filename": "server/api/faxQueueReport/index.js",
10542 "groupTitle": "Fax_Queue_Reports"
10546 "url": "/api/fax/reports/queue/{id}",
10547 "title": "Deletes a Fax Queue Report",
10550 "title": "Example usage:",
10551 "content": "curl https://{domain}/api/fax/reports/queue/{id} -v -u {name}:{password} -X DELETE",
10555 "name": "DeleteFax_Queue_Reports",
10556 "group": "Fax_Queue_Reports",
10557 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10558 "version": "0.0.0",
10559 "filename": "server/api/faxQueueReport/index.js",
10560 "groupTitle": "Fax_Queue_Reports"
10564 "url": "/api/fax/reports/queue/describe",
10565 "title": "Gets table info about Fax Queue Reports",
10568 "title": "Example usage:",
10569 "content": "curl https://{domain}/api/fax/reports/queue/describe -v -u {name}:{password}",
10573 "name": "DescribeFax_Queue_Reports",
10574 "group": "Fax_Queue_Reports",
10575 "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>",
10576 "version": "0.0.0",
10577 "filename": "server/api/faxQueueReport/index.js",
10578 "groupTitle": "Fax_Queue_Reports"
10582 "url": "/api/fax/reports/queue",
10583 "title": "Gets a list of Fax Queue Reports",
10586 "title": "Example usage:",
10587 "content": "curl https://{domain}/api/fax/reports/queue -v -u {name}:{password}",
10591 "name": "GetFax_Queue_Reports",
10592 "group": "Fax_Queue_Reports",
10593 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
10594 "version": "0.0.0",
10595 "filename": "server/api/faxQueueReport/index.js",
10596 "groupTitle": "Fax_Queue_Reports"
10600 "url": "/api/fax/reports/queue/{id}",
10601 "title": "Gets a single Fax Queue Report",
10604 "title": "Example usage:",
10605 "content": "curl https://{domain}/api/fax/reports/queue/{id} -v -u {name}:{password}",
10609 "name": "ShowFax_Queue_Reports",
10610 "group": "Fax_Queue_Reports",
10611 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10612 "version": "0.0.0",
10613 "filename": "server/api/faxQueueReport/index.js",
10614 "groupTitle": "Fax_Queue_Reports"
10618 "url": "/api/fax/reports/queue/{id}",
10619 "title": "Update an existing Fax Queue Report",
10622 "title": "Example usage:",
10623 "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",
10627 "name": "updateFax_Queue_Reports",
10628 "group": "Fax_Queue_Reports",
10629 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10630 "version": "0.0.0",
10631 "filename": "server/api/faxQueueReport/index.js",
10632 "groupTitle": "Fax_Queue_Reports"
10636 "url": "/api/fax/queues/{id}/users",
10637 "title": "Add agents to a queue",
10640 "title": "Example usage:",
10641 "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",
10645 "name": "AddAgents",
10646 "group": "Fax_Queues",
10647 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10648 "version": "0.0.0",
10649 "filename": "server/api/faxQueue/index.js",
10650 "groupTitle": "Fax_Queues"
10654 "url": "/api/fax/queues/{id}/teams",
10655 "title": "Add teams to a queue",
10658 "title": "Example usage:",
10659 "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",
10663 "name": "AddTeams",
10664 "group": "Fax_Queues",
10665 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10666 "version": "0.0.0",
10667 "filename": "server/api/faxQueue/index.js",
10668 "groupTitle": "Fax_Queues"
10672 "url": "/api/fax/queues",
10673 "title": "Creates a new Queue",
10676 "title": "Example usage:",
10677 "content": "curl https://{domain}/api/fax/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
10681 "name": "CreateQueues",
10682 "group": "Fax_Queues",
10697 "field": "description",
10704 "field": "timeout",
10716 "field": "strategy",
10723 "field": "lastAgent",
10729 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10730 "version": "0.0.0",
10731 "filename": "server/api/faxQueue/index.js",
10732 "groupTitle": "Fax_Queues"
10736 "url": "/api/fax/queues/{id}",
10737 "title": "Deletes a Queue",
10740 "title": "Example usage:",
10741 "content": "curl https://{domain}/api/fax/queues/{id} -v -u {name}:{password} -X DELETE",
10745 "name": "DeleteQueues",
10746 "group": "Fax_Queues",
10747 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10748 "version": "0.0.0",
10749 "filename": "server/api/faxQueue/index.js",
10750 "groupTitle": "Fax_Queues"
10754 "url": "/api/fax/queues/describe",
10755 "title": "Gets table info about Queues",
10758 "title": "Example usage:",
10759 "content": "curl https://{domain}/api/fax/queues/describe -v -u {name}:{password}",
10763 "name": "DescribeQueues",
10764 "group": "Fax_Queues",
10765 "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>",
10766 "version": "0.0.0",
10767 "filename": "server/api/faxQueue/index.js",
10768 "groupTitle": "Fax_Queues"
10772 "url": "/api/fax/queues/{id}/users",
10773 "title": "Gets queue agents",
10776 "title": "Example usage:",
10777 "content": "curl https://{domain}/api/fax/queues/{id}/users -v -u {name}:{password} -X POST",
10781 "name": "GetAgents",
10782 "group": "Fax_Queues",
10783 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10784 "version": "0.0.0",
10785 "filename": "server/api/faxQueue/index.js",
10786 "groupTitle": "Fax_Queues"
10790 "url": "/api/fax/queues/{id}/members",
10791 "title": "GetMembers",
10794 "title": "Example usage:",
10795 "content": "curl https://{domain}/api/fax/queues/{id}/members -v -u {name}:{password}",
10799 "name": "GetMembers",
10800 "group": "Fax_Queues",
10801 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10802 "version": "0.0.0",
10803 "filename": "server/api/faxQueue/index.js",
10804 "groupTitle": "Fax_Queues"
10808 "url": "/api/fax/queues",
10809 "title": "Gets a list of Queues",
10812 "title": "Example usage:",
10813 "content": "curl https://{domain}/api/fax/queues -v -u {name}:{password}",
10817 "name": "GetQueues",
10818 "group": "Fax_Queues",
10819 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
10820 "version": "0.0.0",
10821 "filename": "server/api/faxQueue/index.js",
10822 "groupTitle": "Fax_Queues"
10826 "url": "/api/fax/queues/{id}/teams",
10827 "title": "Gets queues list",
10830 "title": "Example usage:",
10831 "content": "curl https://{domain}/api/fax/queues/{id}/teams -v -u {name}:{password}",
10835 "name": "GetTeams",
10836 "group": "Fax_Queues",
10837 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10838 "version": "0.0.0",
10839 "filename": "server/api/faxQueue/index.js",
10840 "groupTitle": "Fax_Queues"
10844 "url": "/api/fax/queues/{id}/users",
10845 "title": "Removes agents from a queue",
10848 "title": "Example usage:",
10849 "content": "curl https://{domain}/api/fax/queues/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
10853 "name": "RemoveAgents",
10854 "group": "Fax_Queues",
10855 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10856 "version": "0.0.0",
10857 "filename": "server/api/faxQueue/index.js",
10858 "groupTitle": "Fax_Queues"
10862 "url": "/api/fax/queues/{id}",
10863 "title": "Gets a single Queue",
10866 "title": "Example usage:",
10867 "content": "curl https://{domain}/api/fax/queues/{id} -v -u {name}:{password}",
10871 "name": "ShowQueues",
10872 "group": "Fax_Queues",
10873 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10874 "version": "0.0.0",
10875 "filename": "server/api/faxQueue/index.js",
10876 "groupTitle": "Fax_Queues"
10880 "url": "/api/fax/queues/{id}",
10881 "title": "Update an existing Queue",
10884 "title": "Example usage:",
10885 "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",
10889 "name": "updateQueues",
10890 "group": "Fax_Queues",
10891 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10892 "version": "0.0.0",
10893 "filename": "server/api/faxQueue/index.js",
10894 "groupTitle": "Fax_Queues"
10898 "url": "/api/fax/reports/transfer",
10899 "title": "Creates a new Fax Transfer Report",
10902 "title": "Example usage:",
10903 "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",
10907 "name": "CreateFax_Transfer_Reports",
10908 "group": "Fax_Transfer_Reports",
10916 "field": "uniqueid",
10935 "field": "transferredAt",
10941 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10942 "version": "0.0.0",
10943 "filename": "server/api/faxTransferReport/index.js",
10944 "groupTitle": "Fax_Transfer_Reports"
10948 "url": "/api/fax/reports/transfer/{id}",
10949 "title": "Deletes a Fax Transfer Report",
10952 "title": "Example usage:",
10953 "content": "curl https://{domain}/api/fax/reports/transfer/{id} -v -u {name}:{password} -X DELETE",
10957 "name": "DeleteFax_Transfer_Reports",
10958 "group": "Fax_Transfer_Reports",
10959 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
10960 "version": "0.0.0",
10961 "filename": "server/api/faxTransferReport/index.js",
10962 "groupTitle": "Fax_Transfer_Reports"
10966 "url": "/api/fax/reports/transfer/describe",
10967 "title": "Gets table info about Fax Transfer Reports",
10970 "title": "Example usage:",
10971 "content": "curl https://{domain}/api/fax/reports/transfer/describe -v -u {name}:{password}",
10975 "name": "DescribeFax_Transfer_Reports",
10976 "group": "Fax_Transfer_Reports",
10977 "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>",
10978 "version": "0.0.0",
10979 "filename": "server/api/faxTransferReport/index.js",
10980 "groupTitle": "Fax_Transfer_Reports"
10984 "url": "/api/fax/reports/transfer",
10985 "title": "Gets a list of Fax Transfer Reports",
10988 "title": "Example usage:",
10989 "content": "curl https://{domain}/api/fax/reports/transfer -v -u {name}:{password}",
10993 "name": "GetFax_Transfer_Reports",
10994 "group": "Fax_Transfer_Reports",
10995 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
10996 "version": "0.0.0",
10997 "filename": "server/api/faxTransferReport/index.js",
10998 "groupTitle": "Fax_Transfer_Reports"
11002 "url": "/api/fax/reports/transfer/{id}",
11003 "title": "Gets a single Fax Transfer Report",
11006 "title": "Example usage:",
11007 "content": "curl https://{domain}/api/fax/reports/transfer/{id} -v -u {name}:{password}",
11011 "name": "ShowFax_Transfer_Reports",
11012 "group": "Fax_Transfer_Reports",
11013 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11014 "version": "0.0.0",
11015 "filename": "server/api/faxTransferReport/index.js",
11016 "groupTitle": "Fax_Transfer_Reports"
11020 "url": "/api/fax/reports/transfer/{id}",
11021 "title": "Update an existing Fax Transfer Report",
11024 "title": "Example usage:",
11025 "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",
11029 "name": "updateFax_Transfer_Reports",
11030 "group": "Fax_Transfer_Reports",
11031 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11032 "version": "0.0.0",
11033 "filename": "server/api/faxTransferReport/index.js",
11034 "groupTitle": "Fax_Transfer_Reports"
11038 "url": "/api/integrations/freshdesk/accounts",
11039 "title": "Creates a new Freshdesk Account",
11042 "title": "Example usage:",
11043 "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",
11047 "name": "CreateFreshdesk_Accounts",
11048 "group": "Freshdesk_Accounts",
11063 "field": "description",
11070 "field": "username",
11084 "field": "remoteUri",
11091 "field": "serverUrl",
11097 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11098 "version": "0.0.0",
11099 "filename": "server/api/intFreshdeskAccount/index.js",
11100 "groupTitle": "Freshdesk_Accounts"
11104 "url": "/api/integrations/freshdesk/accounts/{id}",
11105 "title": "Deletes a Freshdesk Account",
11108 "title": "Example usage:",
11109 "content": "curl https://{domain}/api/integrations/freshdesk/accounts/{id} -v -u {name}:{password} -X DELETE",
11113 "name": "DeleteFreshdesk_Accounts",
11114 "group": "Freshdesk_Accounts",
11115 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11116 "version": "0.0.0",
11117 "filename": "server/api/intFreshdeskAccount/index.js",
11118 "groupTitle": "Freshdesk_Accounts"
11122 "url": "/api/integrations/freshdesk/accounts",
11123 "title": "Gets a list of Freshdesk Accounts",
11126 "title": "Example usage:",
11127 "content": "curl https://{domain}/api/integrations/freshdesk/accounts -v -u {name}:{password}",
11131 "name": "GetFreshdesk_Accounts",
11132 "group": "Freshdesk_Accounts",
11133 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
11134 "version": "0.0.0",
11135 "filename": "server/api/intFreshdeskAccount/index.js",
11136 "groupTitle": "Freshdesk_Accounts"
11140 "url": "/api/integrations/freshdesk/accounts/{id}",
11141 "title": "Gets a single Freshdesk Account",
11144 "title": "Example usage:",
11145 "content": "curl https://{domain}/api/integrations/freshdesk/accounts/{id} -v -u {name}:{password}",
11149 "name": "ShowFreshdesk_Accounts",
11150 "group": "Freshdesk_Accounts",
11151 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11152 "version": "0.0.0",
11153 "filename": "server/api/intFreshdeskAccount/index.js",
11154 "groupTitle": "Freshdesk_Accounts"
11158 "url": "/api/integrations/freshdesk/accounts/{id}/configurations",
11159 "title": "Creates new configuration",
11162 "title": "Example usage:",
11163 "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",
11167 "name": "addConfiguration",
11168 "group": "Freshdesk_Accounts",
11169 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11170 "version": "0.0.0",
11171 "filename": "server/api/intFreshdeskAccount/index.js",
11172 "groupTitle": "Freshdesk_Accounts"
11176 "url": "/api/integrations/freshdesk/accounts/{id}/configurations",
11177 "title": "Gets account configurations",
11180 "title": "Example usage:",
11181 "content": "curl https://{domain}/api/integrations/freshdesk/accounts/{id}/configurations -v -u {name}:{password} -X GET",
11185 "name": "getConfigurations",
11186 "group": "Freshdesk_Accounts",
11187 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11188 "version": "0.0.0",
11189 "filename": "server/api/intFreshdeskAccount/index.js",
11190 "groupTitle": "Freshdesk_Accounts"
11194 "url": "/api/integrations/freshdesk/accounts/{id}/fields",
11195 "title": "Gets account fields",
11198 "title": "Example usage:",
11199 "content": "curl https://{domain}/api/integrations/freshdesk/accounts/{id}/fields -v -u {name}:{password} -X GET",
11203 "name": "getFields",
11204 "group": "Freshdesk_Accounts",
11205 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11206 "version": "0.0.0",
11207 "filename": "server/api/intFreshdeskAccount/index.js",
11208 "groupTitle": "Freshdesk_Accounts"
11212 "url": "/api/integrations/freshdesk/accounts/{id}",
11213 "title": "Update an existing Freshdesk Account",
11216 "title": "Example usage:",
11217 "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",
11221 "name": "updateFreshdesk_Accounts",
11222 "group": "Freshdesk_Accounts",
11223 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11224 "version": "0.0.0",
11225 "filename": "server/api/intFreshdeskAccount/index.js",
11226 "groupTitle": "Freshdesk_Accounts"
11230 "url": "/api/integrations/freshdesk/configurations",
11231 "title": "Creates a new Freshdesk Configuration",
11234 "title": "Example usage:",
11235 "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",
11239 "name": "CreateFreshdesk_Configurations",
11240 "group": "Freshdesk_Configurations",
11255 "field": "description",
11261 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11262 "version": "0.0.0",
11263 "filename": "server/api/intFreshdeskConfiguration/index.js",
11264 "groupTitle": "Freshdesk_Configurations"
11268 "url": "/api/integrations/freshdesk/configurations/{id}",
11269 "title": "Deletes a Freshdesk Configuration",
11272 "title": "Example usage:",
11273 "content": "curl https://{domain}/api/integrations/freshdesk/configurations/{id} -v -u {name}:{password} -X DELETE",
11277 "name": "DeleteFreshdesk_Configurations",
11278 "group": "Freshdesk_Configurations",
11279 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11280 "version": "0.0.0",
11281 "filename": "server/api/intFreshdeskConfiguration/index.js",
11282 "groupTitle": "Freshdesk_Configurations"
11286 "url": "/api/integrations/freshdesk/configurations",
11287 "title": "Gets a list of Freshdesk Configurations",
11290 "title": "Example usage:",
11291 "content": "curl https://{domain}/api/integrations/freshdesk/configurations -v -u {name}:{password}",
11295 "name": "GetFreshdesk_Configurations",
11296 "group": "Freshdesk_Configurations",
11297 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
11298 "version": "0.0.0",
11299 "filename": "server/api/intFreshdeskConfiguration/index.js",
11300 "groupTitle": "Freshdesk_Configurations"
11304 "url": "/api/integrations/freshdesk/configurations/{id}",
11305 "title": "Gets a single Freshdesk Configuration",
11308 "title": "Example usage:",
11309 "content": "curl https://{domain}/api/integrations/freshdesk/configurations/{id} -v -u {name}:{password}",
11313 "name": "ShowFreshdesk_Configurations",
11314 "group": "Freshdesk_Configurations",
11315 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11316 "version": "0.0.0",
11317 "filename": "server/api/intFreshdeskConfiguration/index.js",
11318 "groupTitle": "Freshdesk_Configurations"
11322 "url": "/api/integrations/freshdesk/configurations/{id}/descriptions",
11323 "title": "Gets configurations descriptions",
11326 "title": "Example usage:",
11327 "content": "curl https://{domain}/api/integrations/freshdesk/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
11331 "name": "getDescriptions",
11332 "group": "Freshdesk_Configurations",
11333 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11334 "version": "0.0.0",
11335 "filename": "server/api/intFreshdeskConfiguration/index.js",
11336 "groupTitle": "Freshdesk_Configurations"
11340 "url": "/api/integrations/freshdesk/configurations/{id}/fields",
11341 "title": "Gets configurations fields",
11344 "title": "Example usage:",
11345 "content": "curl https://{domain}/api/integrations/freshdesk/configurations/{id}/fields -v -u {name}:{password} -X GET",
11349 "name": "getFields",
11350 "group": "Freshdesk_Configurations",
11351 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11352 "version": "0.0.0",
11353 "filename": "server/api/intFreshdeskConfiguration/index.js",
11354 "groupTitle": "Freshdesk_Configurations"
11358 "url": "/api/integrations/freshdesk/configurations/{id}/subjects",
11359 "title": "Gets configurations subjects",
11362 "title": "Example usage:",
11363 "content": "curl https://{domain}/api/integrations/freshdesk/configurations/{id}/subjects -v -u {name}:{password} -X GET",
11367 "name": "getSubjects",
11368 "group": "Freshdesk_Configurations",
11369 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11370 "version": "0.0.0",
11371 "filename": "server/api/intFreshdeskConfiguration/index.js",
11372 "groupTitle": "Freshdesk_Configurations"
11376 "url": "/api/integrations/freshdesk/configurations/{id}/tags",
11377 "title": "Gets configurations tags",
11380 "title": "Example usage:",
11381 "content": "curl https://{domain}/api/integrations/freshdesk/configurations/{id}/tags -v -u {name}:{password} -X GET",
11386 "group": "Freshdesk_Configurations",
11387 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11388 "version": "0.0.0",
11389 "filename": "server/api/intFreshdeskConfiguration/index.js",
11390 "groupTitle": "Freshdesk_Configurations"
11394 "url": "/api/integrations/freshdesk/configurations/{id}/tags",
11395 "title": "Sets new tags",
11398 "title": "Example usage:",
11399 "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",
11404 "group": "Freshdesk_Configurations",
11405 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11406 "version": "0.0.0",
11407 "filename": "server/api/intFreshdeskConfiguration/index.js",
11408 "groupTitle": "Freshdesk_Configurations"
11412 "url": "/api/integrations/freshdesk/configurations/{id}",
11413 "title": "Update an existing Freshdesk Configuration",
11416 "title": "Example usage:",
11417 "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",
11421 "name": "updateFreshdesk_Configurations",
11422 "group": "Freshdesk_Configurations",
11423 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11424 "version": "0.0.0",
11425 "filename": "server/api/intFreshdeskConfiguration/index.js",
11426 "groupTitle": "Freshdesk_Configurations"
11430 "url": "/api/integrations/freshdesk/fields",
11431 "title": "Creates a new Freshdesk Field",
11434 "title": "Example usage:",
11435 "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",
11439 "name": "CreateFreshdesk_Fields",
11440 "group": "Freshdesk_Fields",
11450 "\"customVariable\"",
11461 "field": "content",
11477 "\"customVariable\""
11480 "field": "keyType",
11487 "field": "keyContent",
11494 "field": "idField",
11501 "field": "nameField",
11508 "field": "customField",
11515 "field": "variableName",
11521 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11522 "version": "0.0.0",
11523 "filename": "server/api/intFreshdeskField/index.js",
11524 "groupTitle": "Freshdesk_Fields"
11528 "url": "/api/integrations/freshdesk/fields/{id}",
11529 "title": "Deletes a Freshdesk Field",
11532 "title": "Example usage:",
11533 "content": "curl https://{domain}/api/integrations/freshdesk/fields/{id} -v -u {name}:{password} -X DELETE",
11537 "name": "DeleteFreshdesk_Fields",
11538 "group": "Freshdesk_Fields",
11539 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11540 "version": "0.0.0",
11541 "filename": "server/api/intFreshdeskField/index.js",
11542 "groupTitle": "Freshdesk_Fields"
11546 "url": "/api/integrations/freshdesk/fields",
11547 "title": "Gets a list of Freshdesk Fields",
11550 "title": "Example usage:",
11551 "content": "curl https://{domain}/api/integrations/freshdesk/fields -v -u {name}:{password}",
11555 "name": "GetFreshdesk_Fields",
11556 "group": "Freshdesk_Fields",
11557 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
11558 "version": "0.0.0",
11559 "filename": "server/api/intFreshdeskField/index.js",
11560 "groupTitle": "Freshdesk_Fields"
11564 "url": "/api/integrations/freshdesk/fields/{id}",
11565 "title": "Gets a single Freshdesk Field",
11568 "title": "Example usage:",
11569 "content": "curl https://{domain}/api/integrations/freshdesk/fields/{id} -v -u {name}:{password}",
11573 "name": "ShowFreshdesk_Fields",
11574 "group": "Freshdesk_Fields",
11575 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11576 "version": "0.0.0",
11577 "filename": "server/api/intFreshdeskField/index.js",
11578 "groupTitle": "Freshdesk_Fields"
11582 "url": "/api/integrations/freshdesk/fields/{id}",
11583 "title": "Update an existing Freshdesk Field",
11586 "title": "Example usage:",
11587 "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",
11591 "name": "updateFreshdesk_Fields",
11592 "group": "Freshdesk_Fields",
11593 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11594 "version": "0.0.0",
11595 "filename": "server/api/intFreshdeskField/index.js",
11596 "groupTitle": "Freshdesk_Fields"
11600 "url": "/api/integrations/freshsales/accounts",
11601 "title": "Creates a new Freshsales Account",
11604 "title": "Example usage:",
11605 "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",
11609 "name": "CreateFreshsales_Accounts",
11610 "group": "Freshsales_Accounts",
11625 "field": "description",
11632 "field": "username",
11646 "field": "remoteUri",
11653 "field": "serverUrl",
11659 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11660 "version": "0.0.0",
11661 "filename": "server/api/intFreshsalesAccount/index.js",
11662 "groupTitle": "Freshsales_Accounts"
11666 "url": "/api/integrations/freshsales/accounts/{id}",
11667 "title": "Deletes a Freshsales Account",
11670 "title": "Example usage:",
11671 "content": "curl https://{domain}/api/integrations/freshsales/accounts/{id} -v -u {name}:{password} -X DELETE",
11675 "name": "DeleteFreshsales_Accounts",
11676 "group": "Freshsales_Accounts",
11677 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11678 "version": "0.0.0",
11679 "filename": "server/api/intFreshsalesAccount/index.js",
11680 "groupTitle": "Freshsales_Accounts"
11684 "url": "/api/integrations/freshsales/accounts",
11685 "title": "Gets a list of Freshsales Accounts",
11688 "title": "Example usage:",
11689 "content": "curl https://{domain}/api/integrations/freshsales/accounts -v -u {name}:{password}",
11693 "name": "GetFreshsales_Accounts",
11694 "group": "Freshsales_Accounts",
11695 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
11696 "version": "0.0.0",
11697 "filename": "server/api/intFreshsalesAccount/index.js",
11698 "groupTitle": "Freshsales_Accounts"
11702 "url": "/api/integrations/freshsales/accounts/{id}",
11703 "title": "Gets a single Freshsales Account",
11706 "title": "Example usage:",
11707 "content": "curl https://{domain}/api/integrations/freshsales/accounts/{id} -v -u {name}:{password}",
11711 "name": "ShowFreshsales_Accounts",
11712 "group": "Freshsales_Accounts",
11713 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11714 "version": "0.0.0",
11715 "filename": "server/api/intFreshsalesAccount/index.js",
11716 "groupTitle": "Freshsales_Accounts"
11720 "url": "/api/integrations/freshsales/accounts/{id}/configurations",
11721 "title": "Creates new configuration",
11724 "title": "Example usage:",
11725 "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",
11729 "name": "addConfiguration",
11730 "group": "Freshsales_Accounts",
11731 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11732 "version": "0.0.0",
11733 "filename": "server/api/intFreshsalesAccount/index.js",
11734 "groupTitle": "Freshsales_Accounts"
11738 "url": "/api/integrations/freshsales/accounts/{id}/configurations",
11739 "title": "Gets account configurations",
11742 "title": "Example usage:",
11743 "content": "curl https://{domain}/api/integrations/freshsales/accounts/{id}/configurations -v -u {name}:{password} -X GET",
11747 "name": "getConfigurations",
11748 "group": "Freshsales_Accounts",
11749 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11750 "version": "0.0.0",
11751 "filename": "server/api/intFreshsalesAccount/index.js",
11752 "groupTitle": "Freshsales_Accounts"
11756 "url": "/api/integrations/freshsales/accounts/{id}/fields",
11757 "title": "Gets account fields",
11760 "title": "Example usage:",
11761 "content": "curl https://{domain}/api/integrations/freshsales/accounts/{id}/fields -v -u {name}:{password} -X GET",
11765 "name": "getFields",
11766 "group": "Freshsales_Accounts",
11767 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11768 "version": "0.0.0",
11769 "filename": "server/api/intFreshsalesAccount/index.js",
11770 "groupTitle": "Freshsales_Accounts"
11774 "url": "/api/integrations/freshsales/accounts/{id}",
11775 "title": "Update an existing Freshsales Account",
11778 "title": "Example usage:",
11779 "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",
11783 "name": "updateFreshsales_Accounts",
11784 "group": "Freshsales_Accounts",
11785 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11786 "version": "0.0.0",
11787 "filename": "server/api/intFreshsalesAccount/index.js",
11788 "groupTitle": "Freshsales_Accounts"
11792 "url": "/api/integrations/freshsales/configurations",
11793 "title": "Creates a new Freshsales Configuration",
11796 "title": "Example usage:",
11797 "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",
11801 "name": "CreateFreshsales_Configurations",
11802 "group": "Freshsales_Configurations",
11817 "field": "description",
11823 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11824 "version": "0.0.0",
11825 "filename": "server/api/intFreshsalesConfiguration/index.js",
11826 "groupTitle": "Freshsales_Configurations"
11830 "url": "/api/integrations/freshsales/configurations/{id}",
11831 "title": "Deletes a Freshsales Configuration",
11834 "title": "Example usage:",
11835 "content": "curl https://{domain}/api/integrations/freshsales/configurations/{id} -v -u {name}:{password} -X DELETE",
11839 "name": "DeleteFreshsales_Configurations",
11840 "group": "Freshsales_Configurations",
11841 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11842 "version": "0.0.0",
11843 "filename": "server/api/intFreshsalesConfiguration/index.js",
11844 "groupTitle": "Freshsales_Configurations"
11848 "url": "/api/integrations/freshsales/configurations",
11849 "title": "Gets a list of Freshsales Configurations",
11852 "title": "Example usage:",
11853 "content": "curl https://{domain}/api/integrations/freshsales/configurations -v -u {name}:{password}",
11857 "name": "GetFreshsales_Configurations",
11858 "group": "Freshsales_Configurations",
11859 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
11860 "version": "0.0.0",
11861 "filename": "server/api/intFreshsalesConfiguration/index.js",
11862 "groupTitle": "Freshsales_Configurations"
11866 "url": "/api/integrations/freshsales/configurations/{id}",
11867 "title": "Gets a single Freshsales Configuration",
11870 "title": "Example usage:",
11871 "content": "curl https://{domain}/api/integrations/freshsales/configurations/{id} -v -u {name}:{password}",
11875 "name": "ShowFreshsales_Configurations",
11876 "group": "Freshsales_Configurations",
11877 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11878 "version": "0.0.0",
11879 "filename": "server/api/intFreshsalesConfiguration/index.js",
11880 "groupTitle": "Freshsales_Configurations"
11884 "url": "/api/integrations/freshsales/configurations/{id}/descriptions",
11885 "title": "Gets configurations descriptions",
11888 "title": "Example usage:",
11889 "content": "curl https://{domain}/api/integrations/freshsales/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
11893 "name": "getDescriptions",
11894 "group": "Freshsales_Configurations",
11895 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11896 "version": "0.0.0",
11897 "filename": "server/api/intFreshsalesConfiguration/index.js",
11898 "groupTitle": "Freshsales_Configurations"
11902 "url": "/api/integrations/freshsales/configurations/{id}/fields",
11903 "title": "Gets configurations fields",
11906 "title": "Example usage:",
11907 "content": "curl https://{domain}/api/integrations/freshsales/configurations/{id}/fields -v -u {name}:{password} -X GET",
11911 "name": "getFields",
11912 "group": "Freshsales_Configurations",
11913 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11914 "version": "0.0.0",
11915 "filename": "server/api/intFreshsalesConfiguration/index.js",
11916 "groupTitle": "Freshsales_Configurations"
11920 "url": "/api/integrations/freshsales/configurations/{id}/subjects",
11921 "title": "Gets configurations subjects",
11924 "title": "Example usage:",
11925 "content": "curl https://{domain}/api/integrations/freshsales/configurations/{id}/subjects -v -u {name}:{password} -X GET",
11929 "name": "getSubjects",
11930 "group": "Freshsales_Configurations",
11931 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11932 "version": "0.0.0",
11933 "filename": "server/api/intFreshsalesConfiguration/index.js",
11934 "groupTitle": "Freshsales_Configurations"
11938 "url": "/api/integrations/freshsales/configurations/{id}",
11939 "title": "Update an existing Freshsales Configuration",
11942 "title": "Example usage:",
11943 "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",
11947 "name": "updateFreshsales_Configurations",
11948 "group": "Freshsales_Configurations",
11949 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
11950 "version": "0.0.0",
11951 "filename": "server/api/intFreshsalesConfiguration/index.js",
11952 "groupTitle": "Freshsales_Configurations"
11956 "url": "/api/integrations/freshsales/fields",
11957 "title": "Creates a new Freshsales Field",
11960 "title": "Example usage:",
11961 "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",
11965 "name": "CreateFreshsales_Fields",
11966 "group": "Freshsales_Fields",
11976 "\"customVariable\"",
11987 "field": "content",
12003 "\"customVariable\""
12006 "field": "keyType",
12013 "field": "keyContent",
12020 "field": "idField",
12027 "field": "nameField",
12034 "field": "customField",
12041 "field": "variableName",
12047 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12048 "version": "0.0.0",
12049 "filename": "server/api/intFreshsalesField/index.js",
12050 "groupTitle": "Freshsales_Fields"
12054 "url": "/api/integrations/freshsales/fields/{id}",
12055 "title": "Deletes a Freshsales Field",
12058 "title": "Example usage:",
12059 "content": "curl https://{domain}/api/integrations/freshsales/fields/{id} -v -u {name}:{password} -X DELETE",
12063 "name": "DeleteFreshsales_Fields",
12064 "group": "Freshsales_Fields",
12065 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12066 "version": "0.0.0",
12067 "filename": "server/api/intFreshsalesField/index.js",
12068 "groupTitle": "Freshsales_Fields"
12072 "url": "/api/integrations/freshsales/fields",
12073 "title": "Gets a list of Freshsales Fields",
12076 "title": "Example usage:",
12077 "content": "curl https://{domain}/api/integrations/freshsales/fields -v -u {name}:{password}",
12081 "name": "GetFreshsales_Fields",
12082 "group": "Freshsales_Fields",
12083 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
12084 "version": "0.0.0",
12085 "filename": "server/api/intFreshsalesField/index.js",
12086 "groupTitle": "Freshsales_Fields"
12090 "url": "/api/integrations/freshsales/fields/{id}",
12091 "title": "Gets a single Freshsales Field",
12094 "title": "Example usage:",
12095 "content": "curl https://{domain}/api/integrations/freshsales/fields/{id} -v -u {name}:{password}",
12099 "name": "ShowFreshsales_Fields",
12100 "group": "Freshsales_Fields",
12101 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12102 "version": "0.0.0",
12103 "filename": "server/api/intFreshsalesField/index.js",
12104 "groupTitle": "Freshsales_Fields"
12108 "url": "/api/integrations/freshsales/fields/{id}",
12109 "title": "Update an existing Freshsales Field",
12112 "title": "Example usage:",
12113 "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",
12117 "name": "updateFreshsales_Fields",
12118 "group": "Freshsales_Fields",
12119 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12120 "version": "0.0.0",
12121 "filename": "server/api/intFreshsalesField/index.js",
12122 "groupTitle": "Freshsales_Fields"
12126 "url": "/api/campaigns/{id}/blacklists",
12127 "title": "Add blacklists to an IVR campaign",
12130 "title": "Example usage:",
12131 "content": "curl https://{domain}/api/campaigns/{id}/blacklists -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
12135 "name": "AddBlackLists",
12136 "group": "IVR_Campaigns",
12137 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12138 "version": "0.0.0",
12139 "filename": "server/api/campaign/index.js",
12140 "groupTitle": "IVR_Campaigns"
12144 "url": "/api/campaigns/{id}/lists",
12145 "title": "Add lists to an IVR campaign",
12148 "title": "Example usage:",
12149 "content": "curl https://{domain}/api/campaigns/{id}/lists -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
12153 "name": "AddLists",
12154 "group": "IVR_Campaigns",
12155 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12156 "version": "0.0.0",
12157 "filename": "server/api/campaign/index.js",
12158 "groupTitle": "IVR_Campaigns"
12162 "url": "/api/campaigns/clone",
12163 "title": "Clone an existing IVR Campaign",
12166 "title": "Example usage:",
12167 "content": "curl https://{domain}/api/campaigns/clone -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
12171 "name": "CloneIVR_Campaigns",
12172 "group": "IVR_Campaigns",
12173 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12174 "version": "0.0.0",
12175 "filename": "server/api/campaign/index.js",
12176 "groupTitle": "IVR_Campaigns"
12180 "url": "/api/campaigns",
12181 "title": "Creates a new IVR Campaign",
12184 "title": "Example usage:",
12185 "content": "curl https://{domain}/api/campaigns -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
12189 "name": "CreateIVR_Campaigns",
12190 "group": "IVR_Campaigns",
12215 "field": "description",
12223 "description": "<p>Active/Disactive Campaign</p>"
12229 "field": "limitCalls",
12230 "description": "<p>Max 200 calls.</p>"
12236 "field": "dialOriginateCallerIdName",
12243 "field": "dialOriginateCallerIdNumber",
12250 "field": "dialOriginateTimeout",
12251 "description": "<p>Originate Timeout Seconds (min:1, max:999)</p>"
12257 "field": "dialCongestionMaxRetry",
12258 "description": "<p>#Congestion Retry (min:1, max:999)</p>"
12264 "field": "dialCongestionRetryFrequency",
12265 "description": "<p>Congestion Retry Frequency Minutes (min:1, max:99999)</p>"
12271 "field": "dialBusyMaxRetry",
12272 "description": "<p>#Busy Retry (min:1, max:999)</p>"
12278 "field": "dialBusyRetryFrequency",
12279 "description": "<p>Busy Retry Frequency Minutes (min:1, max:99999)</p>"
12285 "field": "dialNoAnswerMaxRetry",
12286 "description": "<p>#NoAnswer Retry (min:1, max:999)</p>"
12292 "field": "dialNoAnswerRetryFrequency",
12293 "description": "<p>NoAnswer Retry Frequency Minutes (min:1, max:99999)</p>"
12299 "field": "dialGlobalMaxRetry",
12300 "description": "<p>#Global Max Retry (min:1, max:999)</p>"
12306 "field": "dialTimezone",
12313 "field": "dialGlobalInterval",
12325 "field": "dialCheckDuplicateType",
12332 "field": "dialAMDActive",
12333 "description": "<p>Active/Disactive AMD</p>"
12339 "field": "dialAMDInitialSilence",
12340 "description": "<p>#AMD Initial Silence</p>"
12346 "field": "dialAMDGreeting",
12347 "description": "<p>#AMD Greeting</p>"
12353 "field": "dialAMDAfterGreetingSilence",
12354 "description": "<p>#AMD After Greeting Silence</p>"
12360 "field": "dialAMDTotalAnalysisTime",
12361 "description": "<p>#AMD Total Analysis Time</p>"
12367 "field": "dialAMDMinWordLength",
12368 "description": "<p>#AMD Min Word Length</p>"
12374 "field": "dialAMDBetweenWordsSilence",
12375 "description": "<p>#AMD Between Words Silence</p>"
12381 "field": "dialAMDMaximumNumberOfWords",
12382 "description": "<p>#AMD Maximum Number Of Words</p>"
12388 "field": "dialAMDSilenceThreshold",
12389 "description": "<p>#AMD Silence Threshold (min:0, max:32767)</p>"
12395 "field": "dialAMDMaximumWordLength",
12396 "description": "<p>#AMD Maximum Word Length</p>"
12406 "field": "dialOrderByScheduledAt",
12413 "field": "dialPrefix",
12420 "field": "dialRandomLastDigitCallerIdNumber",
12421 "description": "<p>Random Last Digit (min:1, max:15)</p>"
12427 "field": "dialCutDigit",
12428 "description": "<p>Cut Digit (min:1, max:15)</p>"
12433 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12434 "version": "0.0.0",
12435 "filename": "server/api/campaign/index.js",
12436 "groupTitle": "IVR_Campaigns"
12440 "url": "/api/campaigns/{id}",
12441 "title": "Deletes a IVR Campaign",
12444 "title": "Example usage:",
12445 "content": "curl https://{domain}/api/campaigns/{id} -v -u {name}:{password} -X DELETE",
12449 "name": "DeleteIVR_Campaigns",
12450 "group": "IVR_Campaigns",
12451 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12452 "version": "0.0.0",
12453 "filename": "server/api/campaign/index.js",
12454 "groupTitle": "IVR_Campaigns"
12458 "url": "/api/campaigns/{id}/blacklists",
12459 "title": "Get IVR campaign blacklists",
12462 "title": "Example usage:",
12463 "content": "curl https://{domain}/api/campaigns/{id}/blacklists -v -u {name}:{password} -X GET",
12467 "name": "GetBlackLists",
12468 "group": "IVR_Campaigns",
12469 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12470 "version": "0.0.0",
12471 "filename": "server/api/campaign/index.js",
12472 "groupTitle": "IVR_Campaigns"
12476 "url": "/api/campaigns/{id}/finals",
12477 "title": "Gets IVR campaign hopper finals",
12480 "title": "Example usage:",
12481 "content": "curl https://{domain}/api/campaigns/{id}/hopper_finals -v -u {name}:{password} -X GET",
12485 "name": "GetHopperFinals",
12486 "group": "IVR_Campaigns",
12487 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12488 "version": "0.0.0",
12489 "filename": "server/api/campaign/index.js",
12490 "groupTitle": "IVR_Campaigns"
12494 "url": "/api/campaigns/{id}/hopper_histories",
12495 "title": "Gets IVR campaign hopper histories",
12498 "title": "Example usage:",
12499 "content": "curl https://{domain}/api/campaigns/{id}/hopper_histories -v -u {name}:{password} -X GET",
12503 "name": "GetHopperHistories",
12504 "group": "IVR_Campaigns",
12505 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12506 "version": "0.0.0",
12507 "filename": "server/api/campaign/index.js",
12508 "groupTitle": "IVR_Campaigns"
12512 "url": "/api/campaigns/{id}/hoppers",
12513 "title": "Gets IVR campaign hoppers",
12516 "title": "Example usage:",
12517 "content": "curl https://{domain}/api/campaigns/{id}/hoppers -v -u {name}:{password} -X GET",
12521 "name": "GetHoppers",
12522 "group": "IVR_Campaigns",
12523 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12524 "version": "0.0.0",
12525 "filename": "server/api/campaign/index.js",
12526 "groupTitle": "IVR_Campaigns"
12530 "url": "/api/campaigns",
12531 "title": "Gets a list of IVR Campaigns",
12534 "title": "Example usage:",
12535 "content": "curl https://{domain}/api/campaigns -v -u {name}:{password}",
12539 "name": "GetIVR_Campaigns",
12540 "group": "IVR_Campaigns",
12541 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
12542 "version": "0.0.0",
12543 "filename": "server/api/campaign/index.js",
12544 "groupTitle": "IVR_Campaigns"
12548 "url": "/api/campaigns/{id}/lists",
12549 "title": "Get IVR campaign lists",
12552 "title": "Example usage:",
12553 "content": "curl https://{domain}/api/campaigns/{id}/lists -v -u {name}:{password} -X GET",
12557 "name": "GetLists",
12558 "group": "IVR_Campaigns",
12559 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12560 "version": "0.0.0",
12561 "filename": "server/api/campaign/index.js",
12562 "groupTitle": "IVR_Campaigns"
12566 "url": "/api/campaigns/{id}/blacklists",
12567 "title": "Remove blacklists from an IVR Campaign",
12570 "title": "Example usage:",
12571 "content": "curl https://{domain}/api/campaigns/{id}/blacklists?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
12575 "name": "RemoveBlackLists",
12576 "group": "IVR_Campaigns",
12577 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12578 "version": "0.0.0",
12579 "filename": "server/api/campaign/index.js",
12580 "groupTitle": "IVR_Campaigns"
12584 "url": "/api/campaigns/{id}/lists",
12585 "title": "Remove lists from an IVR Campaign",
12588 "title": "Example usage:",
12589 "content": "curl https://{domain}/api/campaigns/{id}/lists?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
12593 "name": "RemoveLists",
12594 "group": "IVR_Campaigns",
12595 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12596 "version": "0.0.0",
12597 "filename": "server/api/campaign/index.js",
12598 "groupTitle": "IVR_Campaigns"
12602 "url": "/api/campaigns/{id}",
12603 "title": "Gets a single IVR Campaign",
12606 "title": "Example usage:",
12607 "content": "curl https://{domain}/api/campaigns/{id} -v -u {name}:{password}",
12611 "name": "ShowIVR_Campaigns",
12612 "group": "IVR_Campaigns",
12613 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12614 "version": "0.0.0",
12615 "filename": "server/api/campaign/index.js",
12616 "groupTitle": "IVR_Campaigns"
12620 "url": "/api/campaigns/{id}/blacks",
12621 "title": "Gets IVR campaign hopper blacks",
12624 "title": "Example usage:",
12625 "content": "curl https://{domain}/api/campaigns/{id}/hopper_black -v -u {name}:{password} -X GET",
12629 "name": "getHopperBlacks",
12630 "group": "IVR_Campaigns",
12631 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12632 "version": "0.0.0",
12633 "filename": "server/api/campaign/index.js",
12634 "groupTitle": "IVR_Campaigns"
12638 "url": "/api/campaigns/{id}",
12639 "title": "Update an existing IVR Campaign",
12642 "title": "Example usage:",
12643 "content": "curl https://{domain}/api/campaigns/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
12647 "name": "updateIVR_Campaigns",
12648 "group": "IVR_Campaigns",
12649 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
12650 "version": "0.0.0",
12651 "filename": "server/api/campaign/index.js",
12652 "groupTitle": "IVR_Campaigns"
12656 "url": "/api/integrations/reports",
12657 "title": "Creates a new Integration Report",
12660 "title": "Example usage:",
12661 "content": "curl https://{domain}/api/integrations/reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
12665 "name": "CreateIntegration_Reports",
12666 "group": "Integration_Reports",
12674 "field": "integration",
12681 "field": "eventChannel",
12688 "field": "exitStatus",
12695 "field": "ticketId",
12702 "field": "integrationId",
12709 "field": "contacts",
12716 "field": "uniqueid",
12723 "field": "calleridnum",
12730 "field": "calleridname",
12744 "field": "interface",
12751 "field": "membername",
12758 "field": "agentcalledAt",
12765 "field": "agentconnectAt",
12772 "field": "holdtime",
12779 "field": "agentcomplete",
12786 "field": "agentcompleteAt",
12793 "field": "talktime",
12800 "field": "agentacw",
12807 "field": "acwtime",
12821 "field": "agentringnoanswer",
12828 "field": "agentringnoanswerAt",
12835 "field": "agentdump",
12842 "field": "agentdumpAt",
12849 "field": "lastevent",
12856 "field": "channel",
12863 "field": "channelstate",
12870 "field": "channelstatedesc",
12877 "field": "connectedlinenum",
12884 "field": "connectedlinename",
12891 "field": "language",
12898 "field": "accountcode",
12905 "field": "context",
12919 "field": "priority",
12926 "field": "destchannel",
12933 "field": "destchannelstate",
12940 "field": "destchannelstatedesc",
12947 "field": "destcalleridnum",
12954 "field": "destcalleridname",
12961 "field": "destconnectedlinenum",
12968 "field": "destconnectedlinename",
12975 "field": "destlanguage",
12982 "field": "destaccountcode",
12989 "field": "destcontext",
12996 "field": "destexten",
13003 "field": "destpriority",
13010 "field": "destuniqueid",
13017 "field": "messageId",
13024 "field": "inReplyTo",
13031 "field": "subject",
13059 "field": "attachment",
13107 "field": "appdata",
13114 "field": "projectId",
13120 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13121 "version": "0.0.0",
13122 "filename": "server/api/integrationReport/index.js",
13123 "groupTitle": "Integration_Reports"
13127 "url": "/api/integrations/reports/{id}",
13128 "title": "Deletes a Integration Report",
13131 "title": "Example usage:",
13132 "content": "curl https://{domain}/api/integrations/reports/{id} -v -u {name}:{password} -X DELETE",
13136 "name": "DeleteIntegration_Reports",
13137 "group": "Integration_Reports",
13138 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13139 "version": "0.0.0",
13140 "filename": "server/api/integrationReport/index.js",
13141 "groupTitle": "Integration_Reports"
13145 "url": "/api/integrations/reports/describe",
13146 "title": "Gets table info about Integration Reports",
13149 "title": "Example usage:",
13150 "content": "curl https://{domain}/api/integrations/reports/describe -v -u {name}:{password}",
13154 "name": "DescribeIntegration_Reports",
13155 "group": "Integration_Reports",
13156 "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>",
13157 "version": "0.0.0",
13158 "filename": "server/api/integrationReport/index.js",
13159 "groupTitle": "Integration_Reports"
13163 "url": "/api/integrations/reports",
13164 "title": "Gets a list of Integration Reports",
13167 "title": "Example usage:",
13168 "content": "curl https://{domain}/api/integrations/reports -v -u {name}:{password}",
13172 "name": "GetIntegration_Reports",
13173 "group": "Integration_Reports",
13174 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
13175 "version": "0.0.0",
13176 "filename": "server/api/integrationReport/index.js",
13177 "groupTitle": "Integration_Reports"
13181 "url": "/api/integrations/reports/{id}",
13182 "title": "Gets a single Integration Report",
13185 "title": "Example usage:",
13186 "content": "curl https://{domain}/api/integrations/reports/{id} -v -u {name}:{password}",
13190 "name": "ShowIntegration_Reports",
13191 "group": "Integration_Reports",
13192 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13193 "version": "0.0.0",
13194 "filename": "server/api/integrationReport/index.js",
13195 "groupTitle": "Integration_Reports"
13199 "url": "/api/integrations/reports/{id}",
13200 "title": "Update an existing Integration Report",
13203 "title": "Example usage:",
13204 "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",
13208 "name": "updateIntegration_Reports",
13209 "group": "Integration_Reports",
13210 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13211 "version": "0.0.0",
13212 "filename": "server/api/integrationReport/index.js",
13213 "groupTitle": "Integration_Reports"
13217 "url": "/api/intervals",
13218 "title": "Creates a new Interval",
13221 "title": "Example usage:",
13222 "content": "curl https://{domain}/api/intervals -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
13226 "name": "CreateIntervals",
13227 "group": "Intervals",
13242 "field": "description",
13249 "field": "interval",
13255 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13256 "version": "0.0.0",
13257 "filename": "server/api/interval/index.js",
13258 "groupTitle": "Intervals"
13262 "url": "/api/intervals/{id}",
13263 "title": "Deletes a Interval",
13266 "title": "Example usage:",
13267 "content": "curl https://{domain}/api/intervals/{id} -v -u {name}:{password} -X DELETE",
13271 "name": "DeleteIntervals",
13272 "group": "Intervals",
13273 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13274 "version": "0.0.0",
13275 "filename": "server/api/interval/index.js",
13276 "groupTitle": "Intervals"
13280 "url": "/api/intervals",
13281 "title": "Gets a list of Intervals",
13284 "title": "Example usage:",
13285 "content": "curl https://{domain}/api/intervals -v -u {name}:{password}",
13289 "name": "GetIntervals",
13290 "group": "Intervals",
13291 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
13292 "version": "0.0.0",
13293 "filename": "server/api/interval/index.js",
13294 "groupTitle": "Intervals"
13298 "url": "/api/intervals/{id}",
13299 "title": "Gets a single Interval",
13302 "title": "Example usage:",
13303 "content": "curl https://{domain}/api/intervals/{id} -v -u {name}:{password}",
13307 "name": "ShowIntervals",
13308 "group": "Intervals",
13309 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13310 "version": "0.0.0",
13311 "filename": "server/api/interval/index.js",
13312 "groupTitle": "Intervals"
13316 "url": "/api/intervals/{id}/sub_intervals",
13317 "title": "Creates a new sub interval",
13320 "title": "Example usage:",
13321 "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",
13325 "name": "addInterval",
13326 "group": "Intervals",
13327 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13328 "version": "0.0.0",
13329 "filename": "server/api/interval/index.js",
13330 "groupTitle": "Intervals"
13334 "url": "/api/intervals/{id}/sub_intervals/create_many",
13335 "title": "Create new sub intervals set",
13338 "title": "Example usage:",
13339 "content": "curl https://{domain}/api/intervals/{id}/sub_intervals -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
13343 "name": "addIntervals",
13344 "group": "Intervals",
13345 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13346 "version": "0.0.0",
13347 "filename": "server/api/interval/index.js",
13348 "groupTitle": "Intervals"
13352 "url": "/api/intervals/{id}/sub_intervals",
13353 "title": "Get sub intervals set",
13356 "title": "Example usage:",
13357 "content": "curl https://{domain}/api/intervals/{id}/sub_intervals -v -u {name}:{password} -X GET",
13361 "name": "getIntervals",
13362 "group": "Intervals",
13363 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13364 "version": "0.0.0",
13365 "filename": "server/api/interval/index.js",
13366 "groupTitle": "Intervals"
13370 "url": "/api/intervals/{id}",
13371 "title": "Update an existing Interval",
13374 "title": "Example usage:",
13375 "content": "curl https://{domain}/api/intervals/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
13379 "name": "updateIntervals",
13380 "group": "Intervals",
13381 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13382 "version": "0.0.0",
13383 "filename": "server/api/interval/index.js",
13384 "groupTitle": "Intervals"
13388 "url": "/api/jira",
13389 "title": "Creates a new issue",
13392 "title": "Example usage:",
13393 "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}",
13397 "name": "Creates_Issue",
13409 "field": "issuetype",
13416 "field": "summary",
13423 "field": "description",
13429 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13430 "version": "0.0.0",
13431 "filename": "server/api/jira/index.js",
13432 "groupTitle": "Issue"
13436 "url": "/api/jscripty/answers/reports",
13437 "title": "Creates a new Report",
13440 "title": "Example usage:",
13441 "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",
13445 "name": "CreateReports",
13446 "group": "JscriptyAnswerReport",
13454 "field": "question",
13468 "field": "membername",
13475 "field": "projectname",
13489 "field": "uniqueid",
13496 "field": "calleridname",
13503 "field": "calleridnum",
13510 "field": "questionId",
13516 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13517 "version": "0.0.0",
13518 "filename": "server/api/jscriptyAnswerReport/index.js",
13519 "groupTitle": "JscriptyAnswerReport"
13523 "url": "/api/jscripty/answers/reports/{id}",
13524 "title": "Deletes a Report",
13527 "title": "Example usage:",
13528 "content": "curl https://{domain}/api/jscripty/answers/reports/{id} -v -u {name}:{password} -X DELETE",
13532 "name": "DeleteReports",
13533 "group": "JscriptyAnswerReport",
13534 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13535 "version": "0.0.0",
13536 "filename": "server/api/jscriptyAnswerReport/index.js",
13537 "groupTitle": "JscriptyAnswerReport"
13541 "url": "/api/jscripty/answers/reports/describe",
13542 "title": "Gets table info about Reports",
13545 "title": "Example usage:",
13546 "content": "curl https://{domain}/api/jscripty/answers/reports/describe -v -u {name}:{password}",
13550 "name": "DescribeReports",
13551 "group": "JscriptyAnswerReport",
13552 "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>",
13553 "version": "0.0.0",
13554 "filename": "server/api/jscriptyAnswerReport/index.js",
13555 "groupTitle": "JscriptyAnswerReport"
13559 "url": "/api/jscripty/answers/reports",
13560 "title": "Gets a list of Reports",
13563 "title": "Example usage:",
13564 "content": "curl https://{domain}/api/jscripty/answers/reports -v -u {name}:{password}",
13568 "name": "GetReports",
13569 "group": "JscriptyAnswerReport",
13570 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
13571 "version": "0.0.0",
13572 "filename": "server/api/jscriptyAnswerReport/index.js",
13573 "groupTitle": "JscriptyAnswerReport"
13577 "url": "/api/jscripty/answers/reports/{id}",
13578 "title": "Gets a single Report",
13581 "title": "Example usage:",
13582 "content": "curl https://{domain}/api/jscripty/answers/reports/{id} -v -u {name}:{password}",
13586 "name": "ShowReports",
13587 "group": "JscriptyAnswerReport",
13588 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13589 "version": "0.0.0",
13590 "filename": "server/api/jscriptyAnswerReport/index.js",
13591 "groupTitle": "JscriptyAnswerReport"
13595 "url": "/api/jscripty/answers/reports/{id}",
13596 "title": "Update an existing Report",
13599 "title": "Example usage:",
13600 "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",
13604 "name": "updateReports",
13605 "group": "JscriptyAnswerReport",
13606 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13607 "version": "0.0.0",
13608 "filename": "server/api/jscriptyAnswerReport/index.js",
13609 "groupTitle": "JscriptyAnswerReport"
13613 "url": "/api/jscripty/questions/reports",
13614 "title": "Creates a new Report",
13617 "title": "Example usage:",
13618 "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",
13622 "name": "CreateReports",
13623 "group": "JscriptyQuestionReport",
13631 "field": "question",
13645 "field": "membername",
13652 "field": "projectname",
13666 "field": "uniqueid",
13673 "field": "calleridname",
13680 "field": "calleridnum",
13687 "field": "questionId",
13693 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13694 "version": "0.0.0",
13695 "filename": "server/api/jscriptyQuestionReport/index.js",
13696 "groupTitle": "JscriptyQuestionReport"
13700 "url": "/api/jscripty/questions/reports/{id}",
13701 "title": "Deletes a Report",
13704 "title": "Example usage:",
13705 "content": "curl https://{domain}/api/jscripty/questions/reports/{id} -v -u {name}:{password} -X DELETE",
13709 "name": "DeleteReports",
13710 "group": "JscriptyQuestionReport",
13711 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13712 "version": "0.0.0",
13713 "filename": "server/api/jscriptyQuestionReport/index.js",
13714 "groupTitle": "JscriptyQuestionReport"
13718 "url": "/api/jscripty/questions/reports/describe",
13719 "title": "Gets table info about Reports",
13722 "title": "Example usage:",
13723 "content": "curl https://{domain}/api/jscripty/questions/reports/describe -v -u {name}:{password}",
13727 "name": "DescribeReports",
13728 "group": "JscriptyQuestionReport",
13729 "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>",
13730 "version": "0.0.0",
13731 "filename": "server/api/jscriptyQuestionReport/index.js",
13732 "groupTitle": "JscriptyQuestionReport"
13736 "url": "/api/jscripty/questions/reports",
13737 "title": "Gets a list of Reports",
13740 "title": "Example usage:",
13741 "content": "curl https://{domain}/api/jscripty/questions/reports -v -u {name}:{password}",
13745 "name": "GetReports",
13746 "group": "JscriptyQuestionReport",
13747 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
13748 "version": "0.0.0",
13749 "filename": "server/api/jscriptyQuestionReport/index.js",
13750 "groupTitle": "JscriptyQuestionReport"
13754 "url": "/api/jscripty/questions/reports/{id}",
13755 "title": "Gets a single Report",
13758 "title": "Example usage:",
13759 "content": "curl https://{domain}/api/jscripty/questions/reports/{id} -v -u {name}:{password}",
13763 "name": "ShowReports",
13764 "group": "JscriptyQuestionReport",
13765 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13766 "version": "0.0.0",
13767 "filename": "server/api/jscriptyQuestionReport/index.js",
13768 "groupTitle": "JscriptyQuestionReport"
13772 "url": "/api/jscripty/questions/reports/{id}",
13773 "title": "Update an existing Report",
13776 "title": "Example usage:",
13777 "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",
13781 "name": "updateReports",
13782 "group": "JscriptyQuestionReport",
13783 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13784 "version": "0.0.0",
13785 "filename": "server/api/jscriptyQuestionReport/index.js",
13786 "groupTitle": "JscriptyQuestionReport"
13790 "url": "/api/jscripty/sessions/reports",
13791 "title": "Creates a new Report",
13794 "title": "Example usage:",
13795 "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",
13799 "name": "CreateReports",
13800 "group": "JscriptySessionReport",
13808 "field": "starttime",
13815 "field": "endtime",
13822 "field": "membername",
13829 "field": "projectname",
13843 "field": "uniqueid",
13850 "field": "calleridname",
13857 "field": "calleridnum",
13864 "field": "completed",
13870 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13871 "version": "0.0.0",
13872 "filename": "server/api/jscriptySessionReport/index.js",
13873 "groupTitle": "JscriptySessionReport"
13877 "url": "/api/jscripty/sessions/reports/{id}",
13878 "title": "Deletes a Report",
13881 "title": "Example usage:",
13882 "content": "curl https://{domain}/api/jscripty/sessions/reports/{id} -v -u {name}:{password} -X DELETE",
13886 "name": "DeleteReports",
13887 "group": "JscriptySessionReport",
13888 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13889 "version": "0.0.0",
13890 "filename": "server/api/jscriptySessionReport/index.js",
13891 "groupTitle": "JscriptySessionReport"
13895 "url": "/api/jscripty/sessions/reports/describe",
13896 "title": "Gets table info about Reports",
13899 "title": "Example usage:",
13900 "content": "curl https://{domain}/api/jscripty/sessions/reports/describe -v -u {name}:{password}",
13904 "name": "DescribeReports",
13905 "group": "JscriptySessionReport",
13906 "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>",
13907 "version": "0.0.0",
13908 "filename": "server/api/jscriptySessionReport/index.js",
13909 "groupTitle": "JscriptySessionReport"
13913 "url": "/api/jscripty/sessions/reports",
13914 "title": "Gets a list of Reports",
13917 "title": "Example usage:",
13918 "content": "curl https://{domain}/api/jscripty/sessions/reports -v -u {name}:{password}",
13922 "name": "GetReports",
13923 "group": "JscriptySessionReport",
13924 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
13925 "version": "0.0.0",
13926 "filename": "server/api/jscriptySessionReport/index.js",
13927 "groupTitle": "JscriptySessionReport"
13931 "url": "/api/jscripty/sessions/reports/{id}",
13932 "title": "Gets a single Report",
13935 "title": "Example usage:",
13936 "content": "curl https://{domain}/api/jscripty/sessions/reports/{id} -v -u {name}:{password}",
13940 "name": "ShowReports",
13941 "group": "JscriptySessionReport",
13942 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13943 "version": "0.0.0",
13944 "filename": "server/api/jscriptySessionReport/index.js",
13945 "groupTitle": "JscriptySessionReport"
13949 "url": "/api/jscripty/sessions/reports/{id}/questions",
13950 "title": "Gets Jscripty Session questions",
13953 "title": "Example usage:",
13954 "content": "curl https://{domain}/api/jscripty/sessions/reports/{id}/questions -v -u {name}:{password} -X GET",
13958 "name": "getQuestions",
13959 "group": "JscriptySessionReport",
13960 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13961 "version": "0.0.0",
13962 "filename": "server/api/jscriptySessionReport/index.js",
13963 "groupTitle": "JscriptySessionReport"
13967 "url": "/api/jscripty/sessions/reports/{id}",
13968 "title": "Update an existing Report",
13971 "title": "Example usage:",
13972 "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",
13976 "name": "updateReports",
13977 "group": "JscriptySessionReport",
13978 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13979 "version": "0.0.0",
13980 "filename": "server/api/jscriptySessionReport/index.js",
13981 "groupTitle": "JscriptySessionReport"
13985 "url": "/api/jscripty/projects/clone",
13986 "title": "Clone an existing Project",
13989 "title": "Example usage:",
13990 "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",
13994 "name": "CloneProjects",
13995 "group": "Jscripty_Projects",
13996 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
13997 "version": "0.0.0",
13998 "filename": "server/api/jscriptyProject/index.js",
13999 "groupTitle": "Jscripty_Projects"
14003 "url": "/api/jscripty/projects",
14004 "title": "Creates a new Project",
14007 "title": "Example usage:",
14008 "content": "curl https://{domain}/api/jscripty/projects -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
14012 "name": "CreateProjects",
14013 "group": "Jscripty_Projects",
14028 "field": "description",
14035 "field": "formData",
14042 "field": "enableUncompleteSave",
14049 "field": "sendUnpauseOnSubmit",
14055 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14056 "version": "0.0.0",
14057 "filename": "server/api/jscriptyProject/index.js",
14058 "groupTitle": "Jscripty_Projects"
14062 "url": "/api/jscripty/projects/{id}",
14063 "title": "Deletes a Project",
14066 "title": "Example usage:",
14067 "content": "curl https://{domain}/api/jscripty/projects/{id} -v -u {name}:{password} -X DELETE",
14071 "name": "DeleteProjects",
14072 "group": "Jscripty_Projects",
14073 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14074 "version": "0.0.0",
14075 "filename": "server/api/jscriptyProject/index.js",
14076 "groupTitle": "Jscripty_Projects"
14080 "url": "/api/jscripty/projects",
14081 "title": "Gets a list of Projects",
14084 "title": "Example usage:",
14085 "content": "curl https://{domain}/api/jscripty/projects -v -u {name}:{password}",
14089 "name": "GetProjects",
14090 "group": "Jscripty_Projects",
14091 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
14092 "version": "0.0.0",
14093 "filename": "server/api/jscriptyProject/index.js",
14094 "groupTitle": "Jscripty_Projects"
14098 "url": "/api/jscripty/projects/{id}",
14099 "title": "Gets a single Project",
14102 "title": "Example usage:",
14103 "content": "curl https://{domain}/api/jscripty/projects/{id} -v -u {name}:{password}",
14107 "name": "ShowProjects",
14108 "group": "Jscripty_Projects",
14109 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14110 "version": "0.0.0",
14111 "filename": "server/api/jscriptyProject/index.js",
14112 "groupTitle": "Jscripty_Projects"
14116 "url": "/api/jscripty/projects/{id}/answers",
14117 "title": "Gets jscripty project answers",
14120 "title": "Example usage:",
14121 "content": "curl https://{domain}/api/jscripty/projects/{id}/answers -v -u {name}:{password} -X GET",
14125 "name": "getAnswers",
14126 "group": "Jscripty_Projects",
14127 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14128 "version": "0.0.0",
14129 "filename": "server/api/jscriptyProject/index.js",
14130 "groupTitle": "Jscripty_Projects"
14134 "url": "/api/jscripty/projects/{id}/sessions",
14135 "title": "Gets jscripty project sessions",
14138 "title": "Example usage:",
14139 "content": "curl https://{domain}/api/jscripty/projects/{id}/sessions -v -u {name}:{password} -X GET",
14143 "name": "getSessions",
14144 "group": "Jscripty_Projects",
14145 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14146 "version": "0.0.0",
14147 "filename": "server/api/jscriptyProject/index.js",
14148 "groupTitle": "Jscripty_Projects"
14152 "url": "/api/jscripty/projects/{id}/summary",
14153 "title": "Gets jscripty project summary",
14156 "title": "Example usage:",
14157 "content": "curl https://{domain}/api/jscripty/projects/{id}/summary -v -u {name}:{password} -X GET",
14161 "name": "getSummary",
14162 "group": "Jscripty_Projects",
14163 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14164 "version": "0.0.0",
14165 "filename": "server/api/jscriptyProject/index.js",
14166 "groupTitle": "Jscripty_Projects"
14170 "url": "/api/jscripty/projects/{id}",
14171 "title": "Update an existing Project",
14174 "title": "Example usage:",
14175 "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",
14179 "name": "updateProjects",
14180 "group": "Jscripty_Projects",
14181 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14182 "version": "0.0.0",
14183 "filename": "server/api/jscriptyProject/index.js",
14184 "groupTitle": "Jscripty_Projects"
14188 "url": "/api/license",
14189 "title": "Gets License Info",
14192 "title": "Example usage:",
14193 "content": "curl https://{domain}/api/license -v -u {name}:{password} -X GET",
14198 "group": "License",
14199 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14200 "version": "0.0.0",
14201 "filename": "server/api/license/index.js",
14202 "groupTitle": "License"
14206 "url": "/api/license/{id}",
14207 "title": "Update License Info",
14210 "title": "Example usage:",
14211 "content": "curl https://{domain}/api/license/{id} -v -u {name}:{password} -X PUT",
14216 "group": "License",
14217 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14218 "version": "0.0.0",
14219 "filename": "server/api/license/index.js",
14220 "groupTitle": "License"
14224 "url": "/api/mail/accounts/{id}/users",
14225 "title": "Add agents to a mail account",
14228 "title": "Example usage:",
14229 "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",
14233 "name": "AddAgents",
14234 "group": "Mail_Accounts",
14235 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14236 "version": "0.0.0",
14237 "filename": "server/api/mailAccount/index.js",
14238 "groupTitle": "Mail_Accounts"
14242 "url": "/api/mail/accounts/{id}/in_servers",
14243 "title": "Creates a new IMAP server",
14246 "title": "Example usage:",
14247 "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",
14252 "group": "Mail_Accounts",
14260 "field": "description",
14274 "field": "authentication",
14288 "field": "password",
14309 "field": "mailbox",
14316 "field": "connTimeout",
14323 "field": "authTimeout",
14330 "field": "service",
14336 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14337 "version": "0.0.0",
14338 "filename": "server/api/mailAccount/index.js",
14339 "groupTitle": "Mail_Accounts"
14343 "url": "/api/mail/accounts/{id}/out_servers",
14344 "title": "Creates a new SMTP server",
14347 "title": "Example usage:",
14348 "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",
14353 "group": "Mail_Accounts",
14361 "field": "description",
14403 "field": "service",
14410 "field": "authentication",
14416 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14417 "version": "0.0.0",
14418 "filename": "server/api/mailAccount/index.js",
14419 "groupTitle": "Mail_Accounts"
14423 "url": "/api/mail/accounts/{id}",
14424 "title": "Deletes a mail account",
14427 "title": "Example usage:",
14428 "content": "curl https://{domain}/api/mail/accounts/{id} -v -u {name}:{password} -X DELETE",
14432 "name": "DeleteMailAccounts",
14433 "group": "Mail_Accounts",
14434 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14435 "version": "0.0.0",
14436 "filename": "server/api/mailAccount/index.js",
14437 "groupTitle": "Mail_Accounts"
14441 "url": "/api/mail/accounts/describe",
14442 "title": "Gets table info about Accounts",
14445 "title": "Example usage:",
14446 "content": "curl https://{domain}/api/mail/accounts/describe -v -u {name}:{password}",
14450 "name": "DescribeAccounts",
14451 "group": "Mail_Accounts",
14452 "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>",
14453 "version": "0.0.0",
14454 "filename": "server/api/mailAccount/index.js",
14455 "groupTitle": "Mail_Accounts"
14459 "url": "/api/mail/accounts",
14460 "title": "Gets a list of Accounts",
14463 "title": "Example usage:",
14464 "content": "curl https://{domain}/api/mail/accounts -v -u {name}:{password}",
14468 "name": "GetAccounts",
14469 "group": "Mail_Accounts",
14470 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
14471 "version": "0.0.0",
14472 "filename": "server/api/mailAccount/index.js",
14473 "groupTitle": "Mail_Accounts"
14477 "url": "/api/mail/accounts/{id}/users",
14478 "title": "Gets agents from mail account",
14481 "title": "Example usage:",
14482 "content": "curl https://{domain}/api/mail/accounts/{id}/users -v -u {name}:{password} -X GET",
14486 "name": "GetAgents",
14487 "group": "Mail_Accounts",
14488 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14489 "version": "0.0.0",
14490 "filename": "server/api/mailAccount/index.js",
14491 "groupTitle": "Mail_Accounts"
14495 "url": "/api/mail/accounts/{id}/in_servers",
14496 "title": "Gets account IMAP server",
14499 "title": "Example usage:",
14500 "content": "curl https://{domain}/api/mail/accounts/{id}/in_servers -v -u {name}:{password} -X GET",
14505 "group": "Mail_Accounts",
14506 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14507 "version": "0.0.0",
14508 "filename": "server/api/mailAccount/index.js",
14509 "groupTitle": "Mail_Accounts"
14513 "url": "/api/mail/accounts/{id}/out_servers",
14514 "title": "Gets account SMTP server",
14517 "title": "Example usage:",
14518 "content": "curl https://{domain}/api/mail/accounts/{id}/out_servers -v -u {name}:{password} -X GET",
14523 "group": "Mail_Accounts",
14524 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14525 "version": "0.0.0",
14526 "filename": "server/api/mailAccount/index.js",
14527 "groupTitle": "Mail_Accounts"
14531 "url": "/api/mail/accounts/{id}/users",
14532 "title": "Removes agents from a mail account",
14535 "title": "Example usage:",
14536 "content": "curl https://{domain}/api/mail/accounts/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
14540 "name": "RemoveAgents",
14541 "group": "Mail_Accounts",
14542 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14543 "version": "0.0.0",
14544 "filename": "server/api/mailAccount/index.js",
14545 "groupTitle": "Mail_Accounts"
14549 "url": "/api/mail/accounts/{id}/canned_answers",
14550 "title": "Removes canned answers from account",
14553 "title": "Example usage:",
14554 "content": "curl https://{domain}/api/mail/accounts/{id}/canned_answers?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
14558 "name": "RemoveAnswers",
14559 "group": "Mail_Accounts",
14560 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14561 "version": "0.0.0",
14562 "filename": "server/api/mailAccount/index.js",
14563 "groupTitle": "Mail_Accounts"
14567 "url": "/api/mail/accounts/{id}/dispositions",
14568 "title": "Removes dispositions from account",
14571 "title": "Example usage:",
14572 "content": "curl https://{domain}/api/mail/accounts/{id}/dispositions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
14576 "name": "RemoveDispositions",
14577 "group": "Mail_Accounts",
14578 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14579 "version": "0.0.0",
14580 "filename": "server/api/mailAccount/index.js",
14581 "groupTitle": "Mail_Accounts"
14585 "url": "/api/mail/accounts/{id}/in_servers",
14586 "title": "Removes IMAP server from an account",
14589 "title": "Example usage:",
14590 "content": "curl https://{domain}/api/mail/accounts/{id}/in_servers -v -u {name}:{password} -X DELETE",
14594 "name": "RemoveImmap",
14595 "group": "Mail_Accounts",
14596 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14597 "version": "0.0.0",
14598 "filename": "server/api/mailAccount/index.js",
14599 "groupTitle": "Mail_Accounts"
14603 "url": "/api/mail/accounts/{id}/out_servers",
14604 "title": "Removes SMTP server from an account",
14607 "title": "Example usage:",
14608 "content": "curl https://{domain}/api/mail/accounts/{id}/out_servers -v -u {name}:{password} -X DELETE",
14612 "name": "RemoveSmtp",
14613 "group": "Mail_Accounts",
14614 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14615 "version": "0.0.0",
14616 "filename": "server/api/mailAccount/index.js",
14617 "groupTitle": "Mail_Accounts"
14621 "url": "/api/mail/accounts/{id}",
14622 "title": "Gets a single Account",
14625 "title": "Example usage:",
14626 "content": "curl https://{domain}/api/mail/accounts/{id} -v -u {name}:{password}",
14630 "name": "ShowAccounts",
14631 "group": "Mail_Accounts",
14632 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14633 "version": "0.0.0",
14634 "filename": "server/api/mailAccount/index.js",
14635 "groupTitle": "Mail_Accounts"
14639 "url": "/api/mail/accounts/{id}/canned_answers",
14640 "title": "Creates new canned answer",
14643 "title": "Example usage:",
14644 "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",
14648 "name": "addAnswer",
14649 "group": "Mail_Accounts",
14671 "field": "description",
14684 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14685 "version": "0.0.0",
14686 "filename": "server/api/mailAccount/index.js",
14687 "groupTitle": "Mail_Accounts"
14691 "url": "/api/mail/accounts/{id}/applications",
14692 "title": "Creates new applications",
14695 "title": "Example usage:",
14696 "content": "curl https://{domain}/api/mail/accounts/{id}/applications -d '[{\"app\": \"queue\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
14700 "name": "addApplications",
14701 "group": "Mail_Accounts",
14709 "field": "priority",
14723 "field": "appdata",
14730 "field": "description",
14737 "field": "interval",
14743 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14744 "version": "0.0.0",
14745 "filename": "server/api/mailAccount/index.js",
14746 "groupTitle": "Mail_Accounts"
14750 "url": "/api/mail/accounts/{id}/dispositions",
14751 "title": "Creates new disposition",
14754 "title": "Example usage:",
14755 "content": "curl https://{domain}/api/mail/accounts/{id}/dispositions -d '{\"name\": \"vip\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
14759 "name": "addDisposition",
14760 "group": "Mail_Accounts",
14774 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14775 "version": "0.0.0",
14776 "filename": "server/api/mailAccount/index.js",
14777 "groupTitle": "Mail_Accounts"
14781 "url": "/api/mail/accounts/{id}/interactions",
14782 "title": "Creates new interactions",
14785 "title": "Example usage:",
14786 "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",
14790 "name": "addInteraction",
14791 "group": "Mail_Accounts",
14806 "field": "closedAt",
14813 "field": "disposition",
14827 "field": "inReplyTo",
14848 "field": "subject",
14862 "field": "read1stAt",
14869 "field": "substatus",
14876 "field": "substatusAt",
14887 "field": "firstMsgDirection",
14894 "field": "lastMsgAt",
14905 "field": "lastMsgDirection",
14912 "field": "lastMsgBody",
14919 "field": "lastMsgText",
14925 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14926 "version": "0.0.0",
14927 "filename": "server/api/mailAccount/index.js",
14928 "groupTitle": "Mail_Accounts"
14932 "url": "/api/mail/accounts",
14933 "title": "Create a mail account",
14936 "title": "Example usage:",
14937 "content": "curl https://{domain}/api/mail/accounts \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
14942 "group": "Mail_Accounts",
14943 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
14944 "version": "0.0.0",
14945 "filename": "server/api/mailAccount/index.js",
14946 "groupTitle": "Mail_Accounts"
14950 "url": "/api/mail/accounts/{id}/canned_answers",
14951 "title": "Gets account canned answers",
14954 "title": "Example usage:",
14955 "content": "curl https://{domain}/api/mail/accounts/{id}/canned_answers -v -u {name}:{password} -X GET",
14959 "name": "getAnswers",
14960 "group": "Mail_Accounts",
14961 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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"
14968 "url": "/api/mail/accounts/{id}/applications",
14969 "title": "Gets account applications",
14972 "title": "Example usage:",
14973 "content": "curl https://{domain}/api/mail/accounts/{id}/applications -v -u {name}:{password} -X GET",
14977 "name": "getApplications",
14978 "group": "Mail_Accounts",
14979 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <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"
14986 "url": "/api/mail/accounts/{id}/dispositions",
14987 "title": "Gets account dispositions",
14990 "title": "Example usage:",
14991 "content": "curl https://{domain}/api/mail/accounts/{id}/dispositions -v -u {name}:{password} -X GET",
14995 "name": "getDispositions",
14996 "group": "Mail_Accounts",
14997 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</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"
15004 "url": "/api/mail/accounts/{id}/interactions",
15005 "title": "Gets account interactions",
15008 "title": "Example usage:",
15009 "content": "curl https://{domain}/api/mail/accounts/{id}/interactions -v -u {name}:{password} -X GET",
15013 "name": "getInteraction",
15014 "group": "Mail_Accounts",
15015 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15016 "version": "0.0.0",
15017 "filename": "server/api/mailAccount/index.js",
15018 "groupTitle": "Mail_Accounts"
15022 "url": "/api/mail/accounts/{id}/messages",
15023 "title": "Gets account messages",
15026 "title": "Example usage:",
15027 "content": "curl https://{domain}/api/mail/accounts/{id}/messages -v -u {name}:{password} -X GET",
15031 "name": "getMessages",
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"
15040 "url": "/api/mail/accounts/{id}/send",
15041 "title": "Send new mail",
15044 "title": "Example usage:",
15045 "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",
15049 "name": "sendMail",
15050 "group": "Mail_Accounts",
15051 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</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"
15058 "url": "/api/mail/accounts/{id}",
15059 "title": "Update an existing Account",
15062 "title": "Example usage:",
15063 "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",
15067 "name": "updateAccounts",
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"
15076 "url": "/api/mail/accounts/{id}/verify",
15077 "title": "Verify mail account",
15080 "title": "Example usage:",
15081 "content": "curl https://{domain}/api/mail/accounts/{id}/verify -v -u {name}:{password} -X GET",
15085 "name": "verifySmtp",
15086 "group": "Mail_Accounts",
15087 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <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"
15094 "url": "/api/mail/applications/{id}",
15095 "title": "Deletes a Application",
15098 "title": "Example usage:",
15099 "content": "curl https://{domain}/api/mail/applications/{id} -v -u {name}:{password} -X DELETE",
15103 "name": "DeleteApplications",
15104 "group": "Mail_Applications",
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/mailApplication/index.js",
15108 "groupTitle": "Mail_Applications"
15112 "url": "/api/mail/applications/{id}",
15113 "title": "Gets a single Application",
15116 "title": "Example usage:",
15117 "content": "curl https://{domain}/api/mail/applications/{id} -v -u {name}:{password}",
15121 "name": "ShowApplications",
15122 "group": "Mail_Applications",
15123 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <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/mailApplication/index.js",
15126 "groupTitle": "Mail_Applications"
15130 "url": "/api/mail/applications/{id}",
15131 "title": "Update an existing Application",
15134 "title": "Example usage:",
15135 "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",
15139 "name": "updateApplications",
15140 "group": "Mail_Applications",
15141 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <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/mailApplication/index.js",
15144 "groupTitle": "Mail_Applications"
15148 "url": "/api/mail/interactions/{id}/tags",
15149 "title": "Add tags to the interaction",
15152 "title": "Example usage:",
15153 "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",
15158 "group": "Mail_Interactions",
15159 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15160 "version": "0.0.0",
15161 "filename": "server/api/mailInteraction/index.js",
15162 "groupTitle": "Mail_Interactions"
15166 "url": "/api/mail/interactions",
15167 "title": "Creates a new Interaction",
15170 "title": "Example usage:",
15171 "content": "curl https://{domain}/api/mail/interactions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
15175 "name": "CreateInteractions",
15176 "group": "Mail_Interactions",
15191 "field": "closedAt",
15198 "field": "disposition",
15212 "field": "inReplyTo",
15233 "field": "subject",
15247 "field": "read1stAt",
15254 "field": "substatus",
15261 "field": "substatusAt",
15272 "field": "firstMsgDirection",
15279 "field": "lastMsgAt",
15290 "field": "lastMsgDirection",
15297 "field": "lastMsgBody",
15304 "field": "lastMsgText",
15310 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15311 "version": "0.0.0",
15312 "filename": "server/api/mailInteraction/index.js",
15313 "groupTitle": "Mail_Interactions"
15317 "url": "/api/mail/interactions/{id}",
15318 "title": "Deletes a Interaction",
15321 "title": "Example usage:",
15322 "content": "curl https://{domain}/api/mail/interactions/{id} -v -u {name}:{password} -X DELETE",
15326 "name": "DeleteInteractions",
15327 "group": "Mail_Interactions",
15328 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15329 "version": "0.0.0",
15330 "filename": "server/api/mailInteraction/index.js",
15331 "groupTitle": "Mail_Interactions"
15335 "url": "/api/mail/interactions/describe",
15336 "title": "Gets table info about Interactions",
15339 "title": "Example usage:",
15340 "content": "curl https://{domain}/api/mail/interactions/describe -v -u {name}:{password}",
15344 "name": "DescribeInteractions",
15345 "group": "Mail_Interactions",
15346 "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>",
15347 "version": "0.0.0",
15348 "filename": "server/api/mailInteraction/index.js",
15349 "groupTitle": "Mail_Interactions"
15353 "url": "/api/mail/interactions",
15354 "title": "Gets a list of Interactions",
15357 "title": "Example usage:",
15358 "content": "curl https://{domain}/api/mail/interactions -v -u {name}:{password}",
15362 "name": "GetInteractions",
15363 "group": "Mail_Interactions",
15364 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
15365 "version": "0.0.0",
15366 "filename": "server/api/mailInteraction/index.js",
15367 "groupTitle": "Mail_Interactions"
15371 "url": "/api/mail/interactions/{id}/tags",
15372 "title": "Removes tags from interaction",
15375 "title": "Example usage:",
15376 "content": "curl https://{domain}/api/mail/interactions/{id}/tags?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
15380 "name": "RemoveTags",
15381 "group": "Mail_Interactions",
15382 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15383 "version": "0.0.0",
15384 "filename": "server/api/mailInteraction/index.js",
15385 "groupTitle": "Mail_Interactions"
15389 "url": "/api/mail/interactions/{id}",
15390 "title": "Gets a single Interaction",
15393 "title": "Example usage:",
15394 "content": "curl https://{domain}/api/mail/interactions/{id} -v -u {name}:{password}",
15398 "name": "ShowInteractions",
15399 "group": "Mail_Interactions",
15400 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15401 "version": "0.0.0",
15402 "filename": "server/api/mailInteraction/index.js",
15403 "groupTitle": "Mail_Interactions"
15407 "url": "/api/mail/interactions/{id}/messages",
15408 "title": "Creates new message",
15411 "title": "Example usage:",
15412 "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",
15416 "name": "addMessage",
15417 "group": "Mail_Interactions",
15432 "field": "plainBody",
15450 "field": "direction",
15457 "field": "messageId",
15492 "field": "subject",
15527 "field": "originTo",
15534 "field": "originCc",
15540 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15541 "version": "0.0.0",
15542 "filename": "server/api/mailInteraction/index.js",
15543 "groupTitle": "Mail_Interactions"
15547 "url": "/api/mail/interactions/{id}/download",
15548 "title": "Gets interaction",
15551 "title": "Example usage:",
15552 "content": "curl https://{domain}/api/mail/interactions/{id}/download -v -u {name}:{password} -X GET",
15556 "name": "download",
15557 "group": "Mail_Interactions",
15558 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15559 "version": "0.0.0",
15560 "filename": "server/api/mailInteraction/index.js",
15561 "groupTitle": "Mail_Interactions"
15565 "url": "/api/mail/interactions/{id}/messages",
15566 "title": "Gets interaction messages",
15569 "title": "Example usage:",
15570 "content": "curl https://{domain}/api/mail/interactions/{id}/messages -v -u {name}:{password} -X GET",
15574 "name": "getMessages",
15575 "group": "Mail_Interactions",
15576 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15577 "version": "0.0.0",
15578 "filename": "server/api/mailInteraction/index.js",
15579 "groupTitle": "Mail_Interactions"
15583 "url": "/api/mail/interactions/{id}",
15584 "title": "Update an existing Interaction",
15587 "title": "Example usage:",
15588 "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",
15592 "name": "updateInteractions",
15593 "group": "Mail_Interactions",
15594 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15595 "version": "0.0.0",
15596 "filename": "server/api/mailInteraction/index.js",
15597 "groupTitle": "Mail_Interactions"
15601 "url": "/api/mail/messages/{id}",
15602 "title": "Deletes a Message",
15605 "title": "Example usage:",
15606 "content": "curl https://{domain}/api/mail/messages/{id} -v -u {name}:{password} -X DELETE",
15610 "name": "DeleteMessages",
15611 "group": "Mail_Messages",
15612 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15613 "version": "0.0.0",
15614 "filename": "server/api/mailMessage/index.js",
15615 "groupTitle": "Mail_Messages"
15619 "url": "/api/mail/messages/describe",
15620 "title": "Gets table info about Messages",
15623 "title": "Example usage:",
15624 "content": "curl https://{domain}/api/mail/messages/describe -v -u {name}:{password}",
15628 "name": "DescribeMessages",
15629 "group": "Mail_Messages",
15630 "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>",
15631 "version": "0.0.0",
15632 "filename": "server/api/mailMessage/index.js",
15633 "groupTitle": "Mail_Messages"
15637 "url": "/api/mail/messages",
15638 "title": "Gets a list of Messages",
15641 "title": "Example usage:",
15642 "content": "curl https://{domain}/api/mail/messages -v -u {name}:{password}",
15646 "name": "GetMessages",
15647 "group": "Mail_Messages",
15648 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
15649 "version": "0.0.0",
15650 "filename": "server/api/mailMessage/index.js",
15651 "groupTitle": "Mail_Messages"
15655 "url": "/api/mail/messages/{id}",
15656 "title": "Gets a single Message",
15659 "title": "Example usage:",
15660 "content": "curl https://{domain}/api/mail/messages/{id} -v -u {name}:{password}",
15664 "name": "ShowMessages",
15665 "group": "Mail_Messages",
15666 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15667 "version": "0.0.0",
15668 "filename": "server/api/mailMessage/index.js",
15669 "groupTitle": "Mail_Messages"
15673 "url": "/api/mail/messages/{id}/accept",
15674 "title": "Accepts message",
15677 "title": "Example usage:",
15678 "content": "curl https://{domain}/api/mail/messages/{id}/accept \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
15682 "name": "acceptMessage",
15683 "group": "Mail_Messages",
15684 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15685 "version": "0.0.0",
15686 "filename": "server/api/mailMessage/index.js",
15687 "groupTitle": "Mail_Messages"
15691 "url": "/api/mail/messages",
15692 "title": "Create a message",
15695 "title": "Example usage:",
15696 "content": "curl https://{domain}/api/mail/messages \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
15700 "name": "createMessage",
15701 "group": "Mail_Messages",
15702 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15703 "version": "0.0.0",
15704 "filename": "server/api/mailMessage/index.js",
15705 "groupTitle": "Mail_Messages"
15709 "url": "/api/mail/messages/{id}/download",
15710 "title": "Gets message",
15713 "title": "Example usage:",
15714 "content": "curl https://{domain}/api/mail/messages/{id}/download -v -u {name}:{password} -X GET",
15718 "name": "download",
15719 "group": "Mail_Messages",
15720 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15721 "version": "0.0.0",
15722 "filename": "server/api/mailMessage/index.js",
15723 "groupTitle": "Mail_Messages"
15727 "url": "/api/mail/messages/{id}/reject",
15728 "title": "Rejects message",
15731 "title": "Example usage:",
15732 "content": "curl https://{domain}/api/mail/messages/{id}/reject \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
15736 "name": "rejectMessage",
15737 "group": "Mail_Messages",
15738 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15739 "version": "0.0.0",
15740 "filename": "server/api/mailMessage/index.js",
15741 "groupTitle": "Mail_Messages"
15745 "url": "/api/mail/messages/{id}",
15746 "title": "Update an existing Message",
15749 "title": "Example usage:",
15750 "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",
15754 "name": "updateMessages",
15755 "group": "Mail_Messages",
15756 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15757 "version": "0.0.0",
15758 "filename": "server/api/mailMessage/index.js",
15759 "groupTitle": "Mail_Messages"
15763 "url": "/api/mail/reports/queue",
15764 "title": "Creates a new Mail Queue Report",
15767 "title": "Example usage:",
15768 "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",
15772 "name": "CreateMail_Queue_Reports",
15773 "group": "Mail_Queue_Reports",
15781 "field": "uniqueid",
15802 "field": "leaveAt",
15809 "field": "acceptAt",
15829 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15830 "version": "0.0.0",
15831 "filename": "server/api/mailQueueReport/index.js",
15832 "groupTitle": "Mail_Queue_Reports"
15836 "url": "/api/mail/reports/queue/{id}",
15837 "title": "Deletes a Mail Queue Report",
15840 "title": "Example usage:",
15841 "content": "curl https://{domain}/api/mail/reports/queue/{id} -v -u {name}:{password} -X DELETE",
15845 "name": "DeleteMail_Queue_Reports",
15846 "group": "Mail_Queue_Reports",
15847 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15848 "version": "0.0.0",
15849 "filename": "server/api/mailQueueReport/index.js",
15850 "groupTitle": "Mail_Queue_Reports"
15854 "url": "/api/mail/reports/queue/describe",
15855 "title": "Gets table info about Mail Queue Reports",
15858 "title": "Example usage:",
15859 "content": "curl https://{domain}/api/mail/reports/queue/describe -v -u {name}:{password}",
15863 "name": "DescribeMail_Queue_Reports",
15864 "group": "Mail_Queue_Reports",
15865 "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>",
15866 "version": "0.0.0",
15867 "filename": "server/api/mailQueueReport/index.js",
15868 "groupTitle": "Mail_Queue_Reports"
15872 "url": "/api/mail/reports/queue",
15873 "title": "Gets a list of Mail Queue Reports",
15876 "title": "Example usage:",
15877 "content": "curl https://{domain}/api/mail/reports/queue -v -u {name}:{password}",
15881 "name": "GetMail_Queue_Reports",
15882 "group": "Mail_Queue_Reports",
15883 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
15884 "version": "0.0.0",
15885 "filename": "server/api/mailQueueReport/index.js",
15886 "groupTitle": "Mail_Queue_Reports"
15890 "url": "/api/mail/reports/queue/{id}",
15891 "title": "Gets a single Mail Queue Report",
15894 "title": "Example usage:",
15895 "content": "curl https://{domain}/api/mail/reports/queue/{id} -v -u {name}:{password}",
15899 "name": "ShowMail_Queue_Reports",
15900 "group": "Mail_Queue_Reports",
15901 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15902 "version": "0.0.0",
15903 "filename": "server/api/mailQueueReport/index.js",
15904 "groupTitle": "Mail_Queue_Reports"
15908 "url": "/api/mail/reports/queue/{id}",
15909 "title": "Update an existing Mail Queue Report",
15912 "title": "Example usage:",
15913 "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",
15917 "name": "updateMail_Queue_Reports",
15918 "group": "Mail_Queue_Reports",
15919 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15920 "version": "0.0.0",
15921 "filename": "server/api/mailQueueReport/index.js",
15922 "groupTitle": "Mail_Queue_Reports"
15926 "url": "/api/mail/queues/{id}/users",
15927 "title": "Add agents to a queue",
15930 "title": "Example usage:",
15931 "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",
15935 "name": "AddAgents",
15936 "group": "Mail_Queues",
15937 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15938 "version": "0.0.0",
15939 "filename": "server/api/mailQueue/index.js",
15940 "groupTitle": "Mail_Queues"
15944 "url": "/api/mail/queues/{id}/teams",
15945 "title": "Add teams to a queue",
15948 "title": "Example usage:",
15949 "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",
15953 "name": "AddTeams",
15954 "group": "Mail_Queues",
15955 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
15956 "version": "0.0.0",
15957 "filename": "server/api/mailQueue/index.js",
15958 "groupTitle": "Mail_Queues"
15962 "url": "/api/mail/queues",
15963 "title": "Creates a new Queue",
15966 "title": "Example usage:",
15967 "content": "curl https://{domain}/api/mail/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
15971 "name": "CreateQueues",
15972 "group": "Mail_Queues",
15987 "field": "description",
15994 "field": "timeout",
16006 "field": "strategy",
16012 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16013 "version": "0.0.0",
16014 "filename": "server/api/mailQueue/index.js",
16015 "groupTitle": "Mail_Queues"
16019 "url": "/api/mail/queues/{id}",
16020 "title": "Deletes a Queue",
16023 "title": "Example usage:",
16024 "content": "curl https://{domain}/api/mail/queues/{id} -v -u {name}:{password} -X DELETE",
16028 "name": "DeleteQueues",
16029 "group": "Mail_Queues",
16030 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16031 "version": "0.0.0",
16032 "filename": "server/api/mailQueue/index.js",
16033 "groupTitle": "Mail_Queues"
16037 "url": "/api/mail/queues/describe",
16038 "title": "Gets table info about Queues",
16041 "title": "Example usage:",
16042 "content": "curl https://{domain}/api/mail/queues/describe -v -u {name}:{password}",
16046 "name": "DescribeQueues",
16047 "group": "Mail_Queues",
16048 "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>",
16049 "version": "0.0.0",
16050 "filename": "server/api/mailQueue/index.js",
16051 "groupTitle": "Mail_Queues"
16055 "url": "/api/mail/queues/{id}/users",
16056 "title": "Gets queue agents",
16059 "title": "Example usage:",
16060 "content": "curl https://{domain}/api/mail/queues/{id}/users -v -u {name}:{password} -X POST",
16064 "name": "GetAgents",
16065 "group": "Mail_Queues",
16066 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16067 "version": "0.0.0",
16068 "filename": "server/api/mailQueue/index.js",
16069 "groupTitle": "Mail_Queues"
16073 "url": "/api/mail/queues/{id}/members",
16074 "title": "GetMembers",
16077 "title": "Example usage:",
16078 "content": "curl https://{domain}/api/mail/queues/{id}/members -v -u {name}:{password}",
16082 "name": "GetMembers",
16083 "group": "Mail_Queues",
16084 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16085 "version": "0.0.0",
16086 "filename": "server/api/mailQueue/index.js",
16087 "groupTitle": "Mail_Queues"
16091 "url": "/api/mail/queues",
16092 "title": "Gets a list of Queues",
16095 "title": "Example usage:",
16096 "content": "curl https://{domain}/api/mail/queues -v -u {name}:{password}",
16100 "name": "GetQueues",
16101 "group": "Mail_Queues",
16102 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
16103 "version": "0.0.0",
16104 "filename": "server/api/mailQueue/index.js",
16105 "groupTitle": "Mail_Queues"
16109 "url": "/api/mail/queues/{id}/teams",
16110 "title": "Gets queues list",
16113 "title": "Example usage:",
16114 "content": "curl https://{domain}/api/mail/queues/{id}/teams -v -u {name}:{password}",
16118 "name": "GetTeams",
16119 "group": "Mail_Queues",
16120 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16121 "version": "0.0.0",
16122 "filename": "server/api/mailQueue/index.js",
16123 "groupTitle": "Mail_Queues"
16127 "url": "/api/mail/queues/{id}/users",
16128 "title": "Removes agents from a queue",
16131 "title": "Example usage:",
16132 "content": "curl https://{domain}/api/mail/queues/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
16136 "name": "RemoveAgents",
16137 "group": "Mail_Queues",
16138 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16139 "version": "0.0.0",
16140 "filename": "server/api/mailQueue/index.js",
16141 "groupTitle": "Mail_Queues"
16145 "url": "/api/mail/queues/{id}",
16146 "title": "Gets a single Queue",
16149 "title": "Example usage:",
16150 "content": "curl https://{domain}/api/mail/queues/{id} -v -u {name}:{password}",
16154 "name": "ShowQueues",
16155 "group": "Mail_Queues",
16156 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16157 "version": "0.0.0",
16158 "filename": "server/api/mailQueue/index.js",
16159 "groupTitle": "Mail_Queues"
16163 "url": "/api/mail/queues/{id}",
16164 "title": "Update an existing Queue",
16167 "title": "Example usage:",
16168 "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",
16172 "name": "updateQueues",
16173 "group": "Mail_Queues",
16174 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16175 "version": "0.0.0",
16176 "filename": "server/api/mailQueue/index.js",
16177 "groupTitle": "Mail_Queues"
16181 "url": "/api/mail/out_servers",
16182 "title": "Creates a new SMTP",
16185 "title": "Example usage:",
16186 "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",
16190 "name": "CreateSMTPs",
16191 "group": "Mail_SMTP",
16199 "field": "description",
16241 "field": "service",
16248 "field": "authentication",
16254 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16255 "version": "0.0.0",
16256 "filename": "server/api/mailServerOut/index.js",
16257 "groupTitle": "Mail_SMTP"
16261 "url": "/api/mail/out_servers/{id}",
16262 "title": "Deletes a SMTP",
16265 "title": "Example usage:",
16266 "content": "curl https://{domain}/api/mail/out_servers/{id} -v -u {name}:{password} -X DELETE",
16270 "name": "DeleteSMTPs",
16271 "group": "Mail_SMTP",
16272 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16273 "version": "0.0.0",
16274 "filename": "server/api/mailServerOut/index.js",
16275 "groupTitle": "Mail_SMTP"
16279 "url": "/api/mail/out_servers",
16280 "title": "Gets a list of SMTPs",
16283 "title": "Example usage:",
16284 "content": "curl https://{domain}/api/mail/out_servers -v -u {name}:{password}",
16288 "name": "GetSMTPs",
16289 "group": "Mail_SMTP",
16290 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
16291 "version": "0.0.0",
16292 "filename": "server/api/mailServerOut/index.js",
16293 "groupTitle": "Mail_SMTP"
16297 "url": "/api/mail/out_servers/{id}",
16298 "title": "Gets a single SMTP",
16301 "title": "Example usage:",
16302 "content": "curl https://{domain}/api/mail/out_servers/{id} -v -u {name}:{password}",
16306 "name": "ShowSMTPs",
16307 "group": "Mail_SMTP",
16308 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16309 "version": "0.0.0",
16310 "filename": "server/api/mailServerOut/index.js",
16311 "groupTitle": "Mail_SMTP"
16315 "url": "/api/mail/out_servers/{id}",
16316 "title": "Update an existing SMTP",
16319 "title": "Example usage:",
16320 "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",
16324 "name": "updateSMTPs",
16325 "group": "Mail_SMTP",
16326 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16327 "version": "0.0.0",
16328 "filename": "server/api/mailServerOut/index.js",
16329 "groupTitle": "Mail_SMTP"
16333 "url": "/api/mail/substatuses",
16334 "title": "Creates a new Queue",
16337 "title": "Example usage:",
16338 "content": "curl https://{domain}/api/mail/substatuses -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
16342 "name": "CreateSubstatuses",
16343 "group": "Mail_Substatuses",
16358 "field": "description",
16364 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16365 "version": "0.0.0",
16366 "filename": "server/api/mailSubstatus/index.js",
16367 "groupTitle": "Mail_Substatuses"
16371 "url": "/api/mail/substatuses/{id}",
16372 "title": "Deletes a Queue",
16375 "title": "Example usage:",
16376 "content": "curl https://{domain}/api/mail/substatuses/{id} -v -u {name}:{password} -X DELETE",
16380 "name": "DeleteSubstatuses",
16381 "group": "Mail_Substatuses",
16382 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16383 "version": "0.0.0",
16384 "filename": "server/api/mailSubstatus/index.js",
16385 "groupTitle": "Mail_Substatuses"
16389 "url": "/api/mail/substatuses/describe",
16390 "title": "Gets table info about Substatuses",
16393 "title": "Example usage:",
16394 "content": "curl https://{domain}/api/mail/substatuses/describe -v -u {name}:{password}",
16398 "name": "DescribeSubstatuses",
16399 "group": "Mail_Substatuses",
16400 "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>",
16401 "version": "0.0.0",
16402 "filename": "server/api/mailSubstatus/index.js",
16403 "groupTitle": "Mail_Substatuses"
16407 "url": "/api/mail/substatuses",
16408 "title": "Gets a list of Substatuses",
16411 "title": "Example usage:",
16412 "content": "curl https://{domain}/api/mail/substatuses -v -u {name}:{password}",
16416 "name": "GetSubstatuses",
16417 "group": "Mail_Substatuses",
16418 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
16419 "version": "0.0.0",
16420 "filename": "server/api/mailSubstatus/index.js",
16421 "groupTitle": "Mail_Substatuses"
16425 "url": "/api/mail/substatuses/{id}",
16426 "title": "Gets a single Queue",
16429 "title": "Example usage:",
16430 "content": "curl https://{domain}/api/mail/substatuses/{id} -v -u {name}:{password}",
16434 "name": "ShowSubstatuses",
16435 "group": "Mail_Substatuses",
16436 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <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/mailSubstatus/index.js",
16439 "groupTitle": "Mail_Substatuses"
16443 "url": "/api/mail/substatuses/{id}",
16444 "title": "Update an existing Queue",
16447 "title": "Example usage:",
16448 "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",
16452 "name": "updateSubstatuses",
16453 "group": "Mail_Substatuses",
16454 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16455 "version": "0.0.0",
16456 "filename": "server/api/mailSubstatus/index.js",
16457 "groupTitle": "Mail_Substatuses"
16461 "url": "/api/mail/reports/transfer",
16462 "title": "Creates a new Mail Transfer Report",
16465 "title": "Example usage:",
16466 "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",
16470 "name": "CreateMail_Transfer_Reports",
16471 "group": "Mail_Transfer_Reports",
16479 "field": "uniqueid",
16498 "field": "transferredAt",
16504 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16505 "version": "0.0.0",
16506 "filename": "server/api/mailTransferReport/index.js",
16507 "groupTitle": "Mail_Transfer_Reports"
16511 "url": "/api/mail/reports/transfer/{id}",
16512 "title": "Deletes a Mail Transfer Report",
16515 "title": "Example usage:",
16516 "content": "curl https://{domain}/api/mail/reports/transfer/{id} -v -u {name}:{password} -X DELETE",
16520 "name": "DeleteMail_Transfer_Reports",
16521 "group": "Mail_Transfer_Reports",
16522 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16523 "version": "0.0.0",
16524 "filename": "server/api/mailTransferReport/index.js",
16525 "groupTitle": "Mail_Transfer_Reports"
16529 "url": "/api/mail/reports/transfer/describe",
16530 "title": "Gets table info about Mail Transfer Reports",
16533 "title": "Example usage:",
16534 "content": "curl https://{domain}/api/mail/reports/transfer/describe -v -u {name}:{password}",
16538 "name": "DescribeMail_Transfer_Reports",
16539 "group": "Mail_Transfer_Reports",
16540 "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>",
16541 "version": "0.0.0",
16542 "filename": "server/api/mailTransferReport/index.js",
16543 "groupTitle": "Mail_Transfer_Reports"
16547 "url": "/api/mail/reports/transfer",
16548 "title": "Gets a list of Mail Transfer Reports",
16551 "title": "Example usage:",
16552 "content": "curl https://{domain}/api/mail/reports/transfer -v -u {name}:{password}",
16556 "name": "GetMail_Transfer_Reports",
16557 "group": "Mail_Transfer_Reports",
16558 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
16559 "version": "0.0.0",
16560 "filename": "server/api/mailTransferReport/index.js",
16561 "groupTitle": "Mail_Transfer_Reports"
16565 "url": "/api/mail/reports/transfer/{id}",
16566 "title": "Gets a single Mail Transfer Report",
16569 "title": "Example usage:",
16570 "content": "curl https://{domain}/api/mail/reports/transfer/{id} -v -u {name}:{password}",
16574 "name": "ShowMail_Transfer_Reports",
16575 "group": "Mail_Transfer_Reports",
16576 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16577 "version": "0.0.0",
16578 "filename": "server/api/mailTransferReport/index.js",
16579 "groupTitle": "Mail_Transfer_Reports"
16583 "url": "/api/mail/reports/transfer/{id}",
16584 "title": "Update an existing Mail Transfer Report",
16587 "title": "Example usage:",
16588 "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",
16592 "name": "updateMail_Transfer_Reports",
16593 "group": "Mail_Transfer_Reports",
16594 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16595 "version": "0.0.0",
16596 "filename": "server/api/mailTransferReport/index.js",
16597 "groupTitle": "Mail_Transfer_Reports"
16601 "url": "/api/members/reports/describe",
16602 "title": "Gets table info about Member Reports",
16605 "title": "Example usage:",
16606 "content": "curl https://{domain}/api/members/reports/describe -v -u {name}:{password}",
16610 "name": "DescribeMember_Reports",
16611 "group": "Member_Reports",
16612 "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>",
16613 "version": "0.0.0",
16614 "filename": "server/api/memberReport/index.js",
16615 "groupTitle": "Member_Reports"
16619 "url": "/api/members/reports",
16620 "title": "Gets a list of Member Reports",
16623 "title": "Example usage:",
16624 "content": "curl https://{domain}/api/members/reports -v -u {name}:{password}",
16628 "name": "GetMember_Reports",
16629 "group": "Member_Reports",
16630 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
16631 "version": "0.0.0",
16632 "filename": "server/api/memberReport/index.js",
16633 "groupTitle": "Member_Reports"
16637 "url": "/api/members/reports/{id}",
16638 "title": "Gets a single Member Report",
16641 "title": "Example usage:",
16642 "content": "curl https://{domain}/api/members/reports/{id} -v -u {name}:{password}",
16646 "name": "ShowMember_Reports",
16647 "group": "Member_Reports",
16648 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16649 "version": "0.0.0",
16650 "filename": "server/api/memberReport/index.js",
16651 "groupTitle": "Member_Reports"
16655 "url": "/api/migrations",
16656 "title": "Gets a list of Migrations",
16659 "title": "Example usage:",
16660 "content": "curl https://{domain}/api/migrations -v -u {name}:{password}",
16664 "name": "GetMigrations",
16665 "group": "Migrations",
16666 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
16667 "version": "0.0.0",
16668 "filename": "server/api/migration/index.js",
16669 "groupTitle": "Migrations"
16673 "url": "/api/voice/networks",
16674 "title": "Create a new network",
16677 "title": "Example usage:",
16678 "content": "curl https://{domain}/api/voice/networks -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
16683 "group": "Networks",
16684 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16685 "version": "0.0.0",
16686 "filename": "server/api/network/index.js",
16687 "groupTitle": "Networks"
16691 "url": "/api/voice/networks/{id}",
16692 "title": "Deletes a network",
16695 "title": "Example usage:",
16696 "content": "curl https://{domain}/api/voice/networks/{id} -v -u {name}:{password} -X DELETE",
16701 "group": "Networks",
16702 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16703 "version": "0.0.0",
16704 "filename": "server/api/network/index.js",
16705 "groupTitle": "Networks"
16709 "url": "/api/networks",
16710 "title": "Gets a list of Networks",
16713 "title": "Example usage:",
16714 "content": "curl https://{domain}/api/networks -v -u {name}:{password}",
16718 "name": "GetNetworks",
16719 "group": "Networks",
16720 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
16721 "version": "0.0.0",
16722 "filename": "server/api/network/index.js",
16723 "groupTitle": "Networks"
16727 "url": "/api/networks/{id}",
16728 "title": "Gets a single Network",
16731 "title": "Example usage:",
16732 "content": "curl https://{domain}/api/networks/{id} -v -u {name}:{password}",
16736 "name": "ShowNetworks",
16737 "group": "Networks",
16738 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16739 "version": "0.0.0",
16740 "filename": "server/api/network/index.js",
16741 "groupTitle": "Networks"
16745 "url": "/api/voice/networks/{id}",
16746 "title": "Update an existing network",
16749 "title": "Example usage:",
16750 "content": "curl https://{domain}/api/voice/networks/{id} -v -u {name}:{password} -X PUT",
16755 "group": "Networks",
16756 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16757 "version": "0.0.0",
16758 "filename": "server/api/network/index.js",
16759 "groupTitle": "Networks"
16763 "url": "/api/openchannel/accounts/{id}/users",
16764 "title": "Add agents to a openchannel account",
16767 "title": "Example usage:",
16768 "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",
16772 "name": "AddAgents",
16773 "group": "Openchannel_Accounts",
16774 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16775 "version": "0.0.0",
16776 "filename": "server/api/openchannelAccount/index.js",
16777 "groupTitle": "Openchannel_Accounts"
16781 "url": "/api/openchannel/accounts",
16782 "title": "Creates a new Account",
16785 "title": "Example usage:",
16786 "content": "curl https://{domain}/api/openchannel/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
16790 "name": "CreateAccounts",
16791 "group": "Openchannel_Accounts",
16806 "field": "description",
16820 "field": "replyUri",
16834 "field": "notificationTemplate",
16841 "field": "notificationSound",
16848 "field": "notificationShake",
16855 "field": "waitForTheAssignedAgent",
16869 "field": "queueTransfer",
16876 "field": "queueTransferTimeout",
16883 "field": "agentTransfer",
16890 "field": "agentTransferTimeout",
16897 "field": "mandatoryDispositionPauseId",
16898 "description": "<p>Status to put when mandatory disposition is enabled</p>"
16904 "field": "mandatoryDisposition",
16905 "description": "<p>Enabled/disables mandatory dispo on a queue</p>"
16910 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16911 "version": "0.0.0",
16912 "filename": "server/api/openchannelAccount/index.js",
16913 "groupTitle": "Openchannel_Accounts"
16917 "url": "/api/openchannel/accounts/{id}",
16918 "title": "Deletes a Account",
16921 "title": "Example usage:",
16922 "content": "curl https://{domain}/api/openchannel/accounts/{id} -v -u {name}:{password} -X DELETE",
16926 "name": "DeleteAccounts",
16927 "group": "Openchannel_Accounts",
16928 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16929 "version": "0.0.0",
16930 "filename": "server/api/openchannelAccount/index.js",
16931 "groupTitle": "Openchannel_Accounts"
16935 "url": "/api/openchannel/accounts/describe",
16936 "title": "Gets table info about Accounts",
16939 "title": "Example usage:",
16940 "content": "curl https://{domain}/api/openchannel/accounts/describe -v -u {name}:{password}",
16944 "name": "DescribeAccounts",
16945 "group": "Openchannel_Accounts",
16946 "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>",
16947 "version": "0.0.0",
16948 "filename": "server/api/openchannelAccount/index.js",
16949 "groupTitle": "Openchannel_Accounts"
16953 "url": "/api/openchannel/accounts",
16954 "title": "Gets a list of Accounts",
16957 "title": "Example usage:",
16958 "content": "curl https://{domain}/api/openchannel/accounts -v -u {name}:{password}",
16962 "name": "GetAccounts",
16963 "group": "Openchannel_Accounts",
16964 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
16965 "version": "0.0.0",
16966 "filename": "server/api/openchannelAccount/index.js",
16967 "groupTitle": "Openchannel_Accounts"
16971 "url": "/api/openchannel/accounts/{id}/users",
16972 "title": "Gets agents from openchannel account",
16975 "title": "Example usage:",
16976 "content": "curl https://{domain}/api/openchannel/accounts/{id}/users -v -u {name}:{password} -X GET",
16980 "name": "GetAgents",
16981 "group": "Openchannel_Accounts",
16982 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
16983 "version": "0.0.0",
16984 "filename": "server/api/openchannelAccount/index.js",
16985 "groupTitle": "Openchannel_Accounts"
16989 "url": "/api/openchannel/accounts/{id}/users",
16990 "title": "Removes agents from a openchannel account",
16993 "title": "Example usage:",
16994 "content": "curl https://{domain}/api/openchannel/accounts/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
16998 "name": "RemoveAgents",
16999 "group": "Openchannel_Accounts",
17000 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17001 "version": "0.0.0",
17002 "filename": "server/api/openchannelAccount/index.js",
17003 "groupTitle": "Openchannel_Accounts"
17007 "url": "/api/openchannel/accounts/{id}/canned_answers",
17008 "title": "Removes canned answers from account",
17011 "title": "Example usage:",
17012 "content": "curl https://{domain}/api/openchannel/accounts/{id}/canned_answers?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
17016 "name": "RemoveAnswers",
17017 "group": "Openchannel_Accounts",
17018 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17019 "version": "0.0.0",
17020 "filename": "server/api/openchannelAccount/index.js",
17021 "groupTitle": "Openchannel_Accounts"
17025 "url": "/api/openchannel/accounts/{id}/dispositions",
17026 "title": "Removes dispositions from account",
17029 "title": "Example usage:",
17030 "content": "curl https://{domain}/api/openchannel/accounts/{id}/dispositions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
17034 "name": "RemoveDispositions",
17035 "group": "Openchannel_Accounts",
17036 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17037 "version": "0.0.0",
17038 "filename": "server/api/openchannelAccount/index.js",
17039 "groupTitle": "Openchannel_Accounts"
17043 "url": "/api/openchannel/accounts/{id}",
17044 "title": "Gets a single Account",
17047 "title": "Example usage:",
17048 "content": "curl https://{domain}/api/openchannel/accounts/{id} -v -u {name}:{password}",
17052 "name": "ShowAccounts",
17053 "group": "Openchannel_Accounts",
17054 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17055 "version": "0.0.0",
17056 "filename": "server/api/openchannelAccount/index.js",
17057 "groupTitle": "Openchannel_Accounts"
17061 "url": "/api/openchannel/accounts/{id}/canned_answers",
17062 "title": "Creates new canned answer",
17065 "title": "Example usage:",
17066 "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",
17070 "name": "addAnswer",
17071 "group": "Openchannel_Accounts",
17093 "field": "description",
17106 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17107 "version": "0.0.0",
17108 "filename": "server/api/openchannelAccount/index.js",
17109 "groupTitle": "Openchannel_Accounts"
17113 "url": "/api/openchannel/accounts/{id}/applications",
17114 "title": "Creates new applications",
17117 "title": "Example usage:",
17118 "content": "curl https://{domain}/api/openchannel/accounts/{id}/applications -d '[{\"app\": \"queue\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
17122 "name": "addApplications",
17123 "group": "Openchannel_Accounts",
17131 "field": "priority",
17145 "field": "appdata",
17152 "field": "description",
17159 "field": "interval",
17165 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17166 "version": "0.0.0",
17167 "filename": "server/api/openchannelAccount/index.js",
17168 "groupTitle": "Openchannel_Accounts"
17172 "url": "/api/openchannel/accounts/{id}/dispositions",
17173 "title": "Creates new disposition",
17176 "title": "Example usage:",
17177 "content": "curl https://{domain}/api/openchannel/accounts/{id}/dispositions -d '{\"name\": \"vip\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
17181 "name": "addDisposition",
17182 "group": "Openchannel_Accounts",
17196 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17197 "version": "0.0.0",
17198 "filename": "server/api/openchannelAccount/index.js",
17199 "groupTitle": "Openchannel_Accounts"
17203 "url": "/api/openchannel/accounts/{id}/canned_answers",
17204 "title": "Gets account canned answers",
17207 "title": "Example usage:",
17208 "content": "curl https://{domain}/api/openchannel/accounts/{id}/canned_answers -v -u {name}:{password} -X GET",
17212 "name": "getAnswers",
17213 "group": "Openchannel_Accounts",
17214 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17215 "version": "0.0.0",
17216 "filename": "server/api/openchannelAccount/index.js",
17217 "groupTitle": "Openchannel_Accounts"
17221 "url": "/api/openchannel/accounts/{id}/applications",
17222 "title": "Gets account applications",
17225 "title": "Example usage:",
17226 "content": "curl https://{domain}/api/openchannel/accounts/{id}/applications -v -u {name}:{password} -X GET",
17230 "name": "getApplications",
17231 "group": "Openchannel_Accounts",
17232 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17233 "version": "0.0.0",
17234 "filename": "server/api/openchannelAccount/index.js",
17235 "groupTitle": "Openchannel_Accounts"
17239 "url": "/api/openchannel/accounts/{id}/dispositions",
17240 "title": "Gets account dispositions",
17243 "title": "Example usage:",
17244 "content": "curl https://{domain}/api/openchannel/accounts/{id}/dispositions -v -u {name}:{password} -X GET",
17248 "name": "getDispositions",
17249 "group": "Openchannel_Accounts",
17250 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17251 "version": "0.0.0",
17252 "filename": "server/api/openchannelAccount/index.js",
17253 "groupTitle": "Openchannel_Accounts"
17257 "url": "/api/openchannel/accounts/{id}/interactions",
17258 "title": "Gets Openchannel Account Interactions",
17261 "title": "Example usage:",
17262 "content": "curl https://{domain}/api/openchannel/accounts/{id}/interactions -v -u {name}:{password} -X GET",
17266 "name": "getInteractions",
17267 "group": "Openchannel_Accounts",
17268 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17269 "version": "0.0.0",
17270 "filename": "server/api/openchannelAccount/index.js",
17271 "groupTitle": "Openchannel_Accounts"
17275 "url": "/api/openchannel/accounts/{id}/notify",
17276 "title": "Notify new message",
17279 "title": "Example usage:",
17280 "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",
17285 "group": "Openchannel_Accounts",
17286 "description": "<p>Motion 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>",
17287 "version": "0.0.0",
17288 "filename": "server/api/openchannelAccount/index.js",
17289 "groupTitle": "Openchannel_Accounts"
17293 "url": "/api/openchannel/accounts/{id}/send",
17294 "title": "Send new openchannel message",
17297 "title": "Example usage:",
17298 "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",
17302 "name": "sendOpenchannel",
17303 "group": "Openchannel_Accounts",
17304 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17305 "version": "0.0.0",
17306 "filename": "server/api/openchannelAccount/index.js",
17307 "groupTitle": "Openchannel_Accounts"
17311 "url": "/api/openchannel/accounts/{id}",
17312 "title": "Update an existing Account",
17315 "title": "Example usage:",
17316 "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",
17320 "name": "updateAccounts",
17321 "group": "Openchannel_Accounts",
17322 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17323 "version": "0.0.0",
17324 "filename": "server/api/openchannelAccount/index.js",
17325 "groupTitle": "Openchannel_Accounts"
17329 "url": "/api/openchannel/applications",
17330 "title": "Creates a new Application",
17333 "title": "Example usage:",
17334 "content": "curl https://{domain}/api/openchannel/applications -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
17338 "name": "CreateApplications",
17339 "group": "Openchannel_Applications",
17347 "field": "priority",
17361 "field": "appdata",
17368 "field": "description",
17375 "field": "interval",
17381 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17382 "version": "0.0.0",
17383 "filename": "server/api/openchannelApplication/index.js",
17384 "groupTitle": "Openchannel_Applications"
17388 "url": "/api/openchannel/applications/{id}",
17389 "title": "Deletes a Application",
17392 "title": "Example usage:",
17393 "content": "curl https://{domain}/api/openchannel/applications/{id} -v -u {name}:{password} -X DELETE",
17397 "name": "DeleteApplications",
17398 "group": "Openchannel_Applications",
17399 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17400 "version": "0.0.0",
17401 "filename": "server/api/openchannelApplication/index.js",
17402 "groupTitle": "Openchannel_Applications"
17406 "url": "/api/openchannel/applications",
17407 "title": "Gets a list of Applications",
17410 "title": "Example usage:",
17411 "content": "curl https://{domain}/api/openchannel/applications -v -u {name}:{password}",
17415 "name": "GetApplications",
17416 "group": "Openchannel_Applications",
17417 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
17418 "version": "0.0.0",
17419 "filename": "server/api/openchannelApplication/index.js",
17420 "groupTitle": "Openchannel_Applications"
17424 "url": "/api/openchannel/applications/{id}",
17425 "title": "Gets a single Application",
17428 "title": "Example usage:",
17429 "content": "curl https://{domain}/api/openchannel/applications/{id} -v -u {name}:{password}",
17433 "name": "ShowApplications",
17434 "group": "Openchannel_Applications",
17435 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17436 "version": "0.0.0",
17437 "filename": "server/api/openchannelApplication/index.js",
17438 "groupTitle": "Openchannel_Applications"
17442 "url": "/api/openchannel/applications/{id}",
17443 "title": "Update an existing Application",
17446 "title": "Example usage:",
17447 "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",
17451 "name": "updateApplications",
17452 "group": "Openchannel_Applications",
17453 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17454 "version": "0.0.0",
17455 "filename": "server/api/openchannelApplication/index.js",
17456 "groupTitle": "Openchannel_Applications"
17460 "url": "/api/openchannel/interactions/{id}/tags",
17461 "title": "Add tags to the interaction",
17464 "title": "Example usage:",
17465 "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",
17470 "group": "Openchannel_Interactions",
17471 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17472 "version": "0.0.0",
17473 "filename": "server/api/openchannelInteraction/index.js",
17474 "groupTitle": "Openchannel_Interactions"
17478 "url": "/api/openchannel/interactions",
17479 "title": "Creates a new Interaction",
17482 "title": "Example usage:",
17483 "content": "curl https://{domain}/api/openchannel/interactions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
17487 "name": "CreateInteractions",
17488 "group": "Openchannel_Interactions",
17503 "field": "closedAt",
17510 "field": "disposition",
17524 "field": "read1stAt",
17531 "field": "threadId",
17538 "field": "externalUrl",
17545 "field": "lastMsgAt",
17556 "field": "lastMsgDirection",
17569 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17570 "version": "0.0.0",
17571 "filename": "server/api/openchannelInteraction/index.js",
17572 "groupTitle": "Openchannel_Interactions"
17576 "url": "/api/openchannel/interactions/{id}",
17577 "title": "Deletes a Interaction",
17580 "title": "Example usage:",
17581 "content": "curl https://{domain}/api/openchannel/interactions/{id} -v -u {name}:{password} -X DELETE",
17585 "name": "DeleteInteractions",
17586 "group": "Openchannel_Interactions",
17587 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17588 "version": "0.0.0",
17589 "filename": "server/api/openchannelInteraction/index.js",
17590 "groupTitle": "Openchannel_Interactions"
17594 "url": "/api/openchannel/interactions/describe",
17595 "title": "Gets table info about Interactions",
17598 "title": "Example usage:",
17599 "content": "curl https://{domain}/api/openchannel/interactions/describe -v -u {name}:{password}",
17603 "name": "DescribeInteractions",
17604 "group": "Openchannel_Interactions",
17605 "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>",
17606 "version": "0.0.0",
17607 "filename": "server/api/openchannelInteraction/index.js",
17608 "groupTitle": "Openchannel_Interactions"
17612 "url": "/api/openchannel/interactions",
17613 "title": "Gets a list of Interactions",
17616 "title": "Example usage:",
17617 "content": "curl https://{domain}/api/openchannel/interactions -v -u {name}:{password}",
17621 "name": "GetInteractions",
17622 "group": "Openchannel_Interactions",
17623 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
17624 "version": "0.0.0",
17625 "filename": "server/api/openchannelInteraction/index.js",
17626 "groupTitle": "Openchannel_Interactions"
17630 "url": "/api/openchannel/interactions/{id}/tags",
17631 "title": "Removes tags from interaction",
17634 "title": "Example usage:",
17635 "content": "curl https://{domain}/api/openchannel/interactions/{id}/tags?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
17639 "name": "RemoveTags",
17640 "group": "Openchannel_Interactions",
17641 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17642 "version": "0.0.0",
17643 "filename": "server/api/openchannelInteraction/index.js",
17644 "groupTitle": "Openchannel_Interactions"
17648 "url": "/api/openchannel/interactions/{id}",
17649 "title": "Gets a single Interaction",
17652 "title": "Example usage:",
17653 "content": "curl https://{domain}/api/openchannel/interactions/{id} -v -u {name}:{password}",
17657 "name": "ShowInteractions",
17658 "group": "Openchannel_Interactions",
17659 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17660 "version": "0.0.0",
17661 "filename": "server/api/openchannelInteraction/index.js",
17662 "groupTitle": "Openchannel_Interactions"
17666 "url": "/api/openchannel/interactions/{id}/messages",
17667 "title": "Creates new messages",
17670 "title": "Example usage:",
17671 "content": "curl https://{domain}/api/openchannel/interactions/{id}/messages -d '[{\"to\": \"+3901119886500\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
17675 "name": "addMessage",
17676 "group": "Openchannel_Interactions",
17709 "field": "direction",
17722 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17723 "version": "0.0.0",
17724 "filename": "server/api/openchannelInteraction/index.js",
17725 "groupTitle": "Openchannel_Interactions"
17729 "url": "/api/openchannel/interactions/{id}/download",
17730 "title": "Gets interaction",
17733 "title": "Example usage:",
17734 "content": "curl https://{domain}/api/openchannel/interactions/{id}/download -v -u {name}:{password} -X GET",
17738 "name": "download",
17739 "group": "Openchannel_Interactions",
17740 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17741 "version": "0.0.0",
17742 "filename": "server/api/openchannelInteraction/index.js",
17743 "groupTitle": "Openchannel_Interactions"
17747 "url": "/api/openchannel/interactions/{id}/messages",
17748 "title": "Gets interaction messages",
17751 "title": "Example usage:",
17752 "content": "curl https://{domain}/api/openchannel/interactions/{id}/messages -v -u {name}:{password} -X GET",
17756 "name": "getMessages",
17757 "group": "Openchannel_Interactions",
17758 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17759 "version": "0.0.0",
17760 "filename": "server/api/openchannelInteraction/index.js",
17761 "groupTitle": "Openchannel_Interactions"
17765 "url": "/api/openchannel/interactions/{id}",
17766 "title": "Update an existing Interaction",
17769 "title": "Example usage:",
17770 "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",
17774 "name": "updateInteractions",
17775 "group": "Openchannel_Interactions",
17776 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17777 "version": "0.0.0",
17778 "filename": "server/api/openchannelInteraction/index.js",
17779 "groupTitle": "Openchannel_Interactions"
17783 "url": "/api/openchannel/messages",
17784 "title": "Creates a new Message",
17787 "title": "Example usage:",
17788 "content": "curl https://{domain}/api/openchannel/messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
17792 "name": "CreateMessages",
17793 "group": "Openchannel_Messages",
17826 "field": "direction",
17839 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17840 "version": "0.0.0",
17841 "filename": "server/api/openchannelMessage/index.js",
17842 "groupTitle": "Openchannel_Messages"
17846 "url": "/api/openchannel/messages/{id}",
17847 "title": "Deletes a Message",
17850 "title": "Example usage:",
17851 "content": "curl https://{domain}/api/openchannel/messages/{id} -v -u {name}:{password} -X DELETE",
17855 "name": "DeleteMessages",
17856 "group": "Openchannel_Messages",
17857 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17858 "version": "0.0.0",
17859 "filename": "server/api/openchannelMessage/index.js",
17860 "groupTitle": "Openchannel_Messages"
17864 "url": "/api/openchannel/messages/describe",
17865 "title": "Gets table info about Messages",
17868 "title": "Example usage:",
17869 "content": "curl https://{domain}/api/openchannel/messages/describe -v -u {name}:{password}",
17873 "name": "DescribeMessages",
17874 "group": "Openchannel_Messages",
17875 "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>",
17876 "version": "0.0.0",
17877 "filename": "server/api/openchannelMessage/index.js",
17878 "groupTitle": "Openchannel_Messages"
17882 "url": "/api/openchannel/messages",
17883 "title": "Gets a list of Messages",
17886 "title": "Example usage:",
17887 "content": "curl https://{domain}/api/openchannel/messages -v -u {name}:{password}",
17891 "name": "GetMessages",
17892 "group": "Openchannel_Messages",
17893 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
17894 "version": "0.0.0",
17895 "filename": "server/api/openchannelMessage/index.js",
17896 "groupTitle": "Openchannel_Messages"
17900 "url": "/api/openchannel/messages/{id}",
17901 "title": "Gets a single Message",
17904 "title": "Example usage:",
17905 "content": "curl https://{domain}/api/openchannel/messages/{id} -v -u {name}:{password}",
17909 "name": "ShowMessages",
17910 "group": "Openchannel_Messages",
17911 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17912 "version": "0.0.0",
17913 "filename": "server/api/openchannelMessage/index.js",
17914 "groupTitle": "Openchannel_Messages"
17918 "url": "/api/openchannel/messages/{id}/accept",
17919 "title": "Accepts message",
17922 "title": "Example usage:",
17923 "content": "curl https://{domain}/api/openchannel/messages/{id}/accept \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
17927 "name": "acceptMessage",
17928 "group": "Openchannel_Messages",
17929 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17930 "version": "0.0.0",
17931 "filename": "server/api/openchannelMessage/index.js",
17932 "groupTitle": "Openchannel_Messages"
17936 "url": "/api/openchannel/messages/{id}/reject",
17937 "title": "Rejects message",
17940 "title": "Example usage:",
17941 "content": "curl https://{domain}/api/openchannel/messages/{id}/reject \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
17945 "name": "rejectMessage",
17946 "group": "Openchannel_Messages",
17947 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17948 "version": "0.0.0",
17949 "filename": "server/api/openchannelMessage/index.js",
17950 "groupTitle": "Openchannel_Messages"
17954 "url": "/api/openchannel/messages/{id}",
17955 "title": "Update an existing Message",
17958 "title": "Example usage:",
17959 "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",
17963 "name": "updateMessages",
17964 "group": "Openchannel_Messages",
17965 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
17966 "version": "0.0.0",
17967 "filename": "server/api/openchannelMessage/index.js",
17968 "groupTitle": "Openchannel_Messages"
17972 "url": "/api/openchannel/reports/queue",
17973 "title": "Creates a new Openchannel Queue Report",
17976 "title": "Example usage:",
17977 "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",
17981 "name": "CreateOpenchannel_Queue_Reports",
17982 "group": "Openchannel_Queue_Reports",
17990 "field": "uniqueid",
18011 "field": "leaveAt",
18018 "field": "acceptAt",
18038 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18039 "version": "0.0.0",
18040 "filename": "server/api/openchannelQueueReport/index.js",
18041 "groupTitle": "Openchannel_Queue_Reports"
18045 "url": "/api/openchannel/reports/queue/{id}",
18046 "title": "Deletes a Openchannel Queue Report",
18049 "title": "Example usage:",
18050 "content": "curl https://{domain}/api/openchannel/reports/queue/{id} -v -u {name}:{password} -X DELETE",
18054 "name": "DeleteOpenchannel_Queue_Reports",
18055 "group": "Openchannel_Queue_Reports",
18056 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18057 "version": "0.0.0",
18058 "filename": "server/api/openchannelQueueReport/index.js",
18059 "groupTitle": "Openchannel_Queue_Reports"
18063 "url": "/api/openchannel/reports/queue/describe",
18064 "title": "Gets table info about Openchannel Queue Reports",
18067 "title": "Example usage:",
18068 "content": "curl https://{domain}/api/openchannel/reports/queue/describe -v -u {name}:{password}",
18072 "name": "DescribeOpenchannel_Queue_Reports",
18073 "group": "Openchannel_Queue_Reports",
18074 "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>",
18075 "version": "0.0.0",
18076 "filename": "server/api/openchannelQueueReport/index.js",
18077 "groupTitle": "Openchannel_Queue_Reports"
18081 "url": "/api/openchannel/reports/queue",
18082 "title": "Gets a list of Openchannel Queue Reports",
18085 "title": "Example usage:",
18086 "content": "curl https://{domain}/api/openchannel/reports/queue -v -u {name}:{password}",
18090 "name": "GetOpenchannel_Queue_Reports",
18091 "group": "Openchannel_Queue_Reports",
18092 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
18093 "version": "0.0.0",
18094 "filename": "server/api/openchannelQueueReport/index.js",
18095 "groupTitle": "Openchannel_Queue_Reports"
18099 "url": "/api/openchannel/reports/queue/{id}",
18100 "title": "Gets a single Openchannel Queue Report",
18103 "title": "Example usage:",
18104 "content": "curl https://{domain}/api/openchannel/reports/queue/{id} -v -u {name}:{password}",
18108 "name": "ShowOpenchannel_Queue_Reports",
18109 "group": "Openchannel_Queue_Reports",
18110 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18111 "version": "0.0.0",
18112 "filename": "server/api/openchannelQueueReport/index.js",
18113 "groupTitle": "Openchannel_Queue_Reports"
18117 "url": "/api/openchannel/reports/queue/{id}",
18118 "title": "Update an existing Openchannel Queue Report",
18121 "title": "Example usage:",
18122 "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",
18126 "name": "updateOpenchannel_Queue_Reports",
18127 "group": "Openchannel_Queue_Reports",
18128 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18129 "version": "0.0.0",
18130 "filename": "server/api/openchannelQueueReport/index.js",
18131 "groupTitle": "Openchannel_Queue_Reports"
18135 "url": "/api/openchannel/queues/{id}/users",
18136 "title": "Add agents to a queue",
18139 "title": "Example usage:",
18140 "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",
18144 "name": "AddAgents",
18145 "group": "Openchannel_Queues",
18146 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18147 "version": "0.0.0",
18148 "filename": "server/api/openchannelQueue/index.js",
18149 "groupTitle": "Openchannel_Queues"
18153 "url": "/api/openchannel/queues/{id}/teams",
18154 "title": "Add teams to a queue",
18157 "title": "Example usage:",
18158 "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",
18162 "name": "AddTeams",
18163 "group": "Openchannel_Queues",
18164 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18165 "version": "0.0.0",
18166 "filename": "server/api/openchannelQueue/index.js",
18167 "groupTitle": "Openchannel_Queues"
18171 "url": "/api/openchannel/queues",
18172 "title": "Creates a new Queue",
18175 "title": "Example usage:",
18176 "content": "curl https://{domain}/api/openchannel/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
18180 "name": "CreateQueues",
18181 "group": "Openchannel_Queues",
18196 "field": "description",
18203 "field": "timeout",
18215 "field": "strategy",
18221 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18222 "version": "0.0.0",
18223 "filename": "server/api/openchannelQueue/index.js",
18224 "groupTitle": "Openchannel_Queues"
18228 "url": "/api/openchannel/queues/{id}",
18229 "title": "Deletes a Queue",
18232 "title": "Example usage:",
18233 "content": "curl https://{domain}/api/openchannel/queues/{id} -v -u {name}:{password} -X DELETE",
18237 "name": "DeleteQueues",
18238 "group": "Openchannel_Queues",
18239 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18240 "version": "0.0.0",
18241 "filename": "server/api/openchannelQueue/index.js",
18242 "groupTitle": "Openchannel_Queues"
18246 "url": "/api/openchannel/queues/describe",
18247 "title": "Gets table info about Queues",
18250 "title": "Example usage:",
18251 "content": "curl https://{domain}/api/openchannel/queues/describe -v -u {name}:{password}",
18255 "name": "DescribeQueues",
18256 "group": "Openchannel_Queues",
18257 "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>",
18258 "version": "0.0.0",
18259 "filename": "server/api/openchannelQueue/index.js",
18260 "groupTitle": "Openchannel_Queues"
18264 "url": "/api/openchannel/queues/{id}/users",
18265 "title": "Gets queue agents",
18268 "title": "Example usage:",
18269 "content": "curl https://{domain}/api/openchannel/queues/{id}/users -v -u {name}:{password} -X POST",
18273 "name": "GetAgents",
18274 "group": "Openchannel_Queues",
18275 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18276 "version": "0.0.0",
18277 "filename": "server/api/openchannelQueue/index.js",
18278 "groupTitle": "Openchannel_Queues"
18282 "url": "/api/openchannel/queues/{id}/members",
18283 "title": "GetMembers",
18286 "title": "Example usage:",
18287 "content": "curl https://{domain}/api/openchannel/queues/{id}/members -v -u {name}:{password}",
18291 "name": "GetMembers",
18292 "group": "Openchannel_Queues",
18293 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18294 "version": "0.0.0",
18295 "filename": "server/api/openchannelQueue/index.js",
18296 "groupTitle": "Openchannel_Queues"
18300 "url": "/api/openchannel/queues",
18301 "title": "Gets a list of Queues",
18304 "title": "Example usage:",
18305 "content": "curl https://{domain}/api/openchannel/queues -v -u {name}:{password}",
18309 "name": "GetQueues",
18310 "group": "Openchannel_Queues",
18311 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
18312 "version": "0.0.0",
18313 "filename": "server/api/openchannelQueue/index.js",
18314 "groupTitle": "Openchannel_Queues"
18318 "url": "/api/openchannel/queues/{id}/teams",
18319 "title": "Gets queues list",
18322 "title": "Example usage:",
18323 "content": "curl https://{domain}/api/openchannel/queues/{id}/teams -v -u {name}:{password}",
18327 "name": "GetTeams",
18328 "group": "Openchannel_Queues",
18329 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18330 "version": "0.0.0",
18331 "filename": "server/api/openchannelQueue/index.js",
18332 "groupTitle": "Openchannel_Queues"
18336 "url": "/api/openchannel/queues/{id}/users",
18337 "title": "Removes agents from a queue",
18340 "title": "Example usage:",
18341 "content": "curl https://{domain}/api/openchannel/queues/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
18345 "name": "RemoveAgents",
18346 "group": "Openchannel_Queues",
18347 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18348 "version": "0.0.0",
18349 "filename": "server/api/openchannelQueue/index.js",
18350 "groupTitle": "Openchannel_Queues"
18354 "url": "/api/openchannel/queues/{id}",
18355 "title": "Gets a single Queue",
18358 "title": "Example usage:",
18359 "content": "curl https://{domain}/api/openchannel/queues/{id} -v -u {name}:{password}",
18363 "name": "ShowQueues",
18364 "group": "Openchannel_Queues",
18365 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18366 "version": "0.0.0",
18367 "filename": "server/api/openchannelQueue/index.js",
18368 "groupTitle": "Openchannel_Queues"
18372 "url": "/api/openchannel/queues/{id}",
18373 "title": "Update an existing Queue",
18376 "title": "Example usage:",
18377 "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",
18381 "name": "updateQueues",
18382 "group": "Openchannel_Queues",
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/openchannelQueue/index.js",
18386 "groupTitle": "Openchannel_Queues"
18390 "url": "/api/openchannel/reports/transfer",
18391 "title": "Creates a new Openchannel Transfer Report",
18394 "title": "Example usage:",
18395 "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",
18399 "name": "CreateOpenchannel_Transfer_Reports",
18400 "group": "Openchannel_Transfer_Reports",
18408 "field": "uniqueid",
18427 "field": "transferredAt",
18433 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18434 "version": "0.0.0",
18435 "filename": "server/api/openchannelTransferReport/index.js",
18436 "groupTitle": "Openchannel_Transfer_Reports"
18440 "url": "/api/openchannel/reports/transfer/{id}",
18441 "title": "Deletes a Openchannel Transfer Report",
18444 "title": "Example usage:",
18445 "content": "curl https://{domain}/api/openchannel/reports/transfer/{id} -v -u {name}:{password} -X DELETE",
18449 "name": "DeleteOpenchannel_Transfer_Reports",
18450 "group": "Openchannel_Transfer_Reports",
18451 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18452 "version": "0.0.0",
18453 "filename": "server/api/openchannelTransferReport/index.js",
18454 "groupTitle": "Openchannel_Transfer_Reports"
18458 "url": "/api/openchannel/reports/transfer/describe",
18459 "title": "Gets table info about Openchannel Transfer Reports",
18462 "title": "Example usage:",
18463 "content": "curl https://{domain}/api/openchannel/reports/transfer/describe -v -u {name}:{password}",
18467 "name": "DescribeOpenchannel_Transfer_Reports",
18468 "group": "Openchannel_Transfer_Reports",
18469 "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>",
18470 "version": "0.0.0",
18471 "filename": "server/api/openchannelTransferReport/index.js",
18472 "groupTitle": "Openchannel_Transfer_Reports"
18476 "url": "/api/openchannel/reports/transfer",
18477 "title": "Gets a list of Openchannel Transfer Reports",
18480 "title": "Example usage:",
18481 "content": "curl https://{domain}/api/openchannel/reports/transfer -v -u {name}:{password}",
18485 "name": "GetOpenchannel_Transfer_Reports",
18486 "group": "Openchannel_Transfer_Reports",
18487 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
18488 "version": "0.0.0",
18489 "filename": "server/api/openchannelTransferReport/index.js",
18490 "groupTitle": "Openchannel_Transfer_Reports"
18494 "url": "/api/openchannel/reports/transfer/{id}",
18495 "title": "Gets a single Openchannel Transfer Report",
18498 "title": "Example usage:",
18499 "content": "curl https://{domain}/api/openchannel/reports/transfer/{id} -v -u {name}:{password}",
18503 "name": "ShowOpenchannel_Transfer_Reports",
18504 "group": "Openchannel_Transfer_Reports",
18505 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18506 "version": "0.0.0",
18507 "filename": "server/api/openchannelTransferReport/index.js",
18508 "groupTitle": "Openchannel_Transfer_Reports"
18512 "url": "/api/openchannel/reports/transfer/{id}",
18513 "title": "Update an existing Openchannel Transfer Report",
18516 "title": "Example usage:",
18517 "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",
18521 "name": "updateOpenchannel_Transfer_Reports",
18522 "group": "Openchannel_Transfer_Reports",
18523 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18524 "version": "0.0.0",
18525 "filename": "server/api/openchannelTransferReport/index.js",
18526 "groupTitle": "Openchannel_Transfer_Reports"
18530 "url": "/api/pauses",
18531 "title": "Creates a new Pause",
18534 "title": "Example usage:",
18535 "content": "curl https://{domain}/api/pauses -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
18539 "name": "CreatePauses",
18555 "field": "description",
18561 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18562 "version": "0.0.0",
18563 "filename": "server/api/pause/index.js",
18564 "groupTitle": "Pauses"
18568 "url": "/api/pauses/{id}",
18569 "title": "Deletes a Pause",
18572 "title": "Example usage:",
18573 "content": "curl https://{domain}/api/pauses/{id} -v -u {name}:{password} -X DELETE",
18577 "name": "DeletePauses",
18579 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18580 "version": "0.0.0",
18581 "filename": "server/api/pause/index.js",
18582 "groupTitle": "Pauses"
18586 "url": "/api/pauses",
18587 "title": "Gets a list of Pauses",
18590 "title": "Example usage:",
18591 "content": "curl https://{domain}/api/pauses -v -u {name}:{password}",
18595 "name": "GetPauses",
18597 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
18598 "version": "0.0.0",
18599 "filename": "server/api/pause/index.js",
18600 "groupTitle": "Pauses"
18604 "url": "/api/pauses/{id}",
18605 "title": "Gets a single Pause",
18608 "title": "Example usage:",
18609 "content": "curl https://{domain}/api/pauses/{id} -v -u {name}:{password}",
18613 "name": "ShowPauses",
18615 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18616 "version": "0.0.0",
18617 "filename": "server/api/pause/index.js",
18618 "groupTitle": "Pauses"
18622 "url": "/api/pauses/{id}",
18623 "title": "Update an existing Pause",
18626 "title": "Example usage:",
18627 "content": "curl https://{domain}/api/pauses/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
18631 "name": "updatePauses",
18633 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18634 "version": "0.0.0",
18635 "filename": "server/api/pause/index.js",
18636 "groupTitle": "Pauses"
18640 "url": "/api/plugins",
18641 "title": "Gets a list of Plugins",
18644 "title": "Example usage:",
18645 "content": "curl https://{domain}/api/plugins -v -u {name}:{password}",
18649 "name": "GetPlugins",
18650 "group": "Plugins",
18651 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
18652 "version": "0.0.0",
18653 "filename": "server/api/plugin/index.js",
18654 "groupTitle": "Plugins"
18658 "url": "/api/plugins/{id}",
18659 "title": "Gets a single Plugin",
18662 "title": "Example usage:",
18663 "content": "curl https://{domain}/api/plugins/{id} -v -u {name}:{password}",
18667 "name": "ShowPlugins",
18668 "group": "Plugins",
18669 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18670 "version": "0.0.0",
18671 "filename": "server/api/plugin/index.js",
18672 "groupTitle": "Plugins"
18676 "url": "/api/plugins/{id}",
18677 "title": "Delete a plugin",
18680 "title": "Example usage:",
18681 "content": "curl https://{domain}/api/plugins/{id} -v -u {name}:{password} -X DELETE",
18685 "name": "destroyPlugin",
18686 "group": "Plugins",
18687 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18688 "version": "0.0.0",
18689 "filename": "server/api/plugin/index.js",
18690 "groupTitle": "Plugins"
18694 "url": "/api/plugins/{id}/download",
18695 "title": "Download plugin source code",
18698 "title": "Example usage:",
18699 "content": "curl https://{domain}/api/plugins/{id}/download -v -u {name}:{password} -X GET",
18703 "name": "download",
18704 "group": "Plugins",
18705 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18706 "version": "0.0.0",
18707 "filename": "server/api/plugin/index.js",
18708 "groupTitle": "Plugins"
18712 "url": "/api/plugins/{id}",
18713 "title": "Update an existing plugin",
18716 "title": "Example usage:",
18717 "content": "curl https://{domain}/api/plugins/{id} -v -u {name}:{password} -X PUT",
18721 "name": "updatePlugin",
18722 "group": "Plugins",
18723 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18724 "version": "0.0.0",
18725 "filename": "server/api/plugin/index.js",
18726 "groupTitle": "Plugins"
18730 "url": "/api/plugins",
18731 "title": "Upload new plugin",
18734 "title": "Example usage:",
18735 "content": "curl https://{domain}/api/plugins -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
18739 "name": "uploadPlugin",
18740 "group": "Plugins",
18741 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18742 "version": "0.0.0",
18743 "filename": "server/api/plugin/index.js",
18744 "groupTitle": "Plugins"
18748 "url": "/api/plugins/webhook?hostname={host}&port={port}&encoding={encoding}&json={json}&path={path}",
18749 "title": "Redirect a plugin request to the specified path",
18752 "title": "Example usage:",
18753 "content": "curl https://{domain}/api/plugins/webhook?port={port}&path={path} -H 'Content-Type: application/json' -X POST",
18757 "name": "webhookPlugin",
18758 "group": "Plugins",
18759 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18760 "version": "0.0.0",
18761 "filename": "server/api/plugin/index.js",
18762 "groupTitle": "Plugins"
18766 "url": "/api/plugins/webhook?hostname={host}&port={port}&encoding={encoding}&json={json}&path={path}",
18767 "title": "Redirect a plugin request to the specified path",
18770 "title": "Example usage:",
18771 "content": "curl https://{domain}/api/plugins/webhook?port={port}&path={path} -v -u {name}:{password} -X GET",
18775 "name": "webhookPlugin",
18776 "group": "Plugins",
18777 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18778 "version": "0.0.0",
18779 "filename": "server/api/plugin/index.js",
18780 "groupTitle": "Plugins"
18784 "url": "/api/pm2/{id}",
18785 "title": "Deletes an existing process",
18788 "title": "Example usage:",
18789 "content": "curl https://{domain}/api/pm2/{id} -v -u {name}:{password} -X DELETE",
18793 "name": "DeletePm2Process",
18795 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18796 "version": "0.0.0",
18797 "filename": "server/api/pm2/index.js",
18798 "groupTitle": "Pm2"
18802 "url": "/api/pm2/{id}",
18803 "title": "Gets a single pm2 process",
18806 "title": "Example usage:",
18807 "content": "curl https://{domain}/api/pm2/{id} -v -u {name}:{password}",
18811 "name": "GetPm2Process",
18813 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18814 "version": "0.0.0",
18815 "filename": "server/api/pm2/index.js",
18816 "groupTitle": "Pm2"
18821 "title": "Gets pm2 processes",
18824 "title": "Example usage:",
18825 "content": "curl https://{domain}/api/pm2 -v -u {name}:{password}",
18829 "name": "GetPm2Processes",
18831 "description": "<p>Motion returns the pm2 processes list.</p>",
18832 "version": "0.0.0",
18833 "filename": "server/api/pm2/index.js",
18834 "groupTitle": "Pm2"
18839 "title": "Start a single pm2 process",
18842 "title": "Example usage:",
18843 "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",
18847 "name": "StartPm2Process",
18869 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18870 "version": "0.0.0",
18871 "filename": "server/api/pm2/index.js",
18872 "groupTitle": "Pm2"
18876 "url": "/api/pm2/{id}",
18877 "title": "Update an existing process",
18880 "title": "Example usage:",
18881 "content": "curl https://{domain}/api/pm2/{id} -d '{\"status\": \"online\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
18885 "name": "UpdatePm2Process",
18887 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
18888 "version": "0.0.0",
18889 "filename": "server/api/pm2/index.js",
18890 "groupTitle": "Pm2"
18894 "url": "/api/rpc/campaigns/",
18895 "title": "Gets a list of campaigns",
18898 "title": "Example usage:",
18899 "content": "curl https://{domain}/api/rpc/campaigns -v -u {name}:{password}",
18903 "name": "Campaigns",
18904 "group": "RPC_Realtime",
18905 "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>",
18906 "version": "0.0.0",
18907 "filename": "server/api/rpc/index.js",
18908 "groupTitle": "RPC_Realtime"
18912 "url": "/api/rpc/fax/accounts",
18913 "title": "Gets a list of FaxAccounts",
18916 "title": "Example usage:",
18917 "content": "curl https://{domain}/api/rpc/fax/accounts -v -u {name}:{password}",
18921 "name": "FaxAccounts",
18922 "group": "RPC_Realtime",
18923 "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>",
18924 "version": "0.0.0",
18925 "filename": "server/api/rpc/index.js",
18926 "groupTitle": "RPC_Realtime"
18930 "url": "/api/rpc/agents/:id/capacity",
18931 "title": "Sets agent capacity",
18934 "title": "Example usage:",
18935 "content": "curl https://{domain}/api/rpc/agents/:id/capacity -v -u {name}:{password}",
18939 "name": "RTAgentCapacity",
18940 "group": "RPC_Realtime",
18941 "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>",
18942 "version": "0.0.0",
18943 "filename": "server/api/rpc/index.js",
18944 "groupTitle": "RPC_Realtime"
18948 "url": "/api/rpc/agents",
18949 "title": "Gets a list of RTAgents",
18952 "title": "Example usage:",
18953 "content": "curl https://{domain}/api/rpc/agents -v -u {name}:{password}",
18957 "name": "RTAgents",
18958 "group": "RPC_Realtime",
18959 "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>",
18960 "version": "0.0.0",
18961 "filename": "server/api/rpc/index.js",
18962 "groupTitle": "RPC_Realtime"
18966 "url": "/api/rpc/chat/queues",
18967 "title": "Gets a list of RTChatQueues",
18970 "title": "Example usage:",
18971 "content": "curl https://{domain}/api/rpc/chat/queues -v -u {name}:{password}",
18975 "name": "RTChatQueues",
18976 "group": "RPC_Realtime",
18977 "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>",
18978 "version": "0.0.0",
18979 "filename": "server/api/rpc/index.js",
18980 "groupTitle": "RPC_Realtime"
18984 "url": "/api/rpc/fax/queues",
18985 "title": "Gets a list of RTFaxQueues",
18988 "title": "Example usage:",
18989 "content": "curl https://{domain}/api/rpc/fax/queues -v -u {name}:{password}",
18993 "name": "RTFaxQueues",
18994 "group": "RPC_Realtime",
18995 "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>",
18996 "version": "0.0.0",
18997 "filename": "server/api/rpc/index.js",
18998 "groupTitle": "RPC_Realtime"
19002 "url": "/api/rpc/mail/accounts",
19003 "title": "Gets a list of RTMailAccounts",
19006 "title": "Example usage:",
19007 "content": "curl https://{domain}/api/rpc/mail/accounts -v -u {name}:{password}",
19011 "name": "RTMailAccounts",
19012 "group": "RPC_Realtime",
19013 "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>",
19014 "version": "0.0.0",
19015 "filename": "server/api/rpc/index.js",
19016 "groupTitle": "RPC_Realtime"
19020 "url": "/api/rpc/mail/queues",
19021 "title": "Gets a list of RTMailQueues",
19024 "title": "Example usage:",
19025 "content": "curl https://{domain}/api/rpc/mail/queues -v -u {name}:{password}",
19029 "name": "RTMailQueues",
19030 "group": "RPC_Realtime",
19031 "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>",
19032 "version": "0.0.0",
19033 "filename": "server/api/rpc/index.js",
19034 "groupTitle": "RPC_Realtime"
19038 "url": "/api/rpc/openchannel/queues",
19039 "title": "Gets a list of RTOpenchannelQueues",
19042 "title": "Example usage:",
19043 "content": "curl https://{domain}/api/rpc/openchannel/queues -v -u {name}:{password}",
19047 "name": "RTOpenchannelQueues",
19048 "group": "RPC_Realtime",
19049 "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>",
19050 "version": "0.0.0",
19051 "filename": "server/api/rpc/index.js",
19052 "groupTitle": "RPC_Realtime"
19056 "url": "/api/rpc/outbound/channels",
19057 "title": "Gets a list of RTOutboundChannels",
19060 "title": "Example usage:",
19061 "content": "curl https://{domain}/api/rpc/outbound/channels -v -u {name}:{password}",
19065 "name": "RTOutboundChannels",
19066 "group": "RPC_Realtime",
19067 "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>",
19068 "version": "0.0.0",
19069 "filename": "server/api/rpc/index.js",
19070 "groupTitle": "RPC_Realtime"
19074 "url": "/api/rpc/sms/queues",
19075 "title": "Gets a list of RTSmsQueues",
19078 "title": "Example usage:",
19079 "content": "curl https://{domain}/api/rpc/sms/queues -v -u {name}:{password}",
19083 "name": "RTSmsQueues",
19084 "group": "RPC_Realtime",
19085 "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>",
19086 "version": "0.0.0",
19087 "filename": "server/api/rpc/index.js",
19088 "groupTitle": "RPC_Realtime"
19092 "url": "/api/rpc/telephones",
19093 "title": "Gets a list of RTTelephones",
19096 "title": "Example usage:",
19097 "content": "curl https://{domain}/api/rpc/telephones -v -u {name}:{password}",
19101 "name": "RTTelephones",
19102 "group": "RPC_Realtime",
19103 "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>",
19104 "version": "0.0.0",
19105 "filename": "server/api/rpc/index.js",
19106 "groupTitle": "RPC_Realtime"
19110 "url": "/api/rpc/trunks",
19111 "title": "Gets a list of RTTrunks",
19114 "title": "Example usage:",
19115 "content": "curl https://{domain}/api/rpc/trunks -v -u {name}:{password}",
19119 "name": "RTTrunks",
19120 "group": "RPC_Realtime",
19121 "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>",
19122 "version": "0.0.0",
19123 "filename": "server/api/rpc/index.js",
19124 "groupTitle": "RPC_Realtime"
19128 "url": "/api/rpc/voice/channels",
19129 "title": "Gets a list of RTVoiceChannelMixMonitor",
19132 "title": "Example usage:",
19133 "content": "curl https://{domain}/api/rpc/voice/channels/{uniqueid}/mixmonitor -v -u {name}:{password}",
19137 "name": "RTVoiceChannelMixMonitor",
19138 "group": "RPC_Realtime",
19139 "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>",
19140 "version": "0.0.0",
19141 "filename": "server/api/rpc/index.js",
19142 "groupTitle": "RPC_Realtime"
19146 "url": "/api/rpc/voice/channels",
19147 "title": "Gets a list of RTVoiceChannelStopMixMonitor",
19150 "title": "Example usage:",
19151 "content": "curl https://{domain}/api/rpc/voice/channels/{uniqueid}/stopmixmonitor -v -u {name}:{password}",
19155 "name": "RTVoiceChannelStopMixMonitor",
19156 "group": "RPC_Realtime",
19157 "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>",
19158 "version": "0.0.0",
19159 "filename": "server/api/rpc/index.js",
19160 "groupTitle": "RPC_Realtime"
19164 "url": "/api/rpc/voice/channels",
19165 "title": "Gets a list of RTVoiceChannels",
19168 "title": "Example usage:",
19169 "content": "curl https://{domain}/api/rpc/voice/channels -v -u {name}:{password}",
19173 "name": "RTVoiceChannels",
19174 "group": "RPC_Realtime",
19175 "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>",
19176 "version": "0.0.0",
19177 "filename": "server/api/rpc/index.js",
19178 "groupTitle": "RPC_Realtime"
19182 "url": "/api/rpc/voice/queues/channels/{uniqueid}",
19183 "title": "Gets a single RTVoiceQueueChannel",
19186 "title": "Example usage:",
19187 "content": "curl https://{domain}/api/rpc/voice/queues/channels/{uniqueid} -v -u {name}:{password}",
19191 "name": "RTVoiceQueueChannel",
19192 "group": "RPC_Realtime",
19193 "description": "<p>Motion will return a specific realtime voice queue channel.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19194 "version": "0.0.0",
19195 "filename": "server/api/rpc/index.js",
19196 "groupTitle": "RPC_Realtime"
19200 "url": "/api/rpc/voice/queues/channels/{uniqueid}/hangup",
19201 "title": "Hangup a single RTVoiceQueueChannel",
19204 "title": "Example usage:",
19205 "content": "curl https://{domain}/api/rpc/voice/queues/channels/{uniqueid}/hangup -v -u {name}:{password}",
19209 "name": "RTVoiceQueueChannelHangup",
19210 "group": "RPC_Realtime",
19211 "description": "<p>Motion will hangup a specific realtime voice queue channel.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19212 "version": "0.0.0",
19213 "filename": "server/api/rpc/index.js",
19214 "groupTitle": "RPC_Realtime"
19218 "url": "/api/rpc/voice/queues/channels/{uniqueid}/redirect/{exten}",
19219 "title": "Hangup a single RTVoiceQueueChannel",
19222 "title": "Example usage:",
19223 "content": "curl https://{domain}/api/rpc/voice/queues/channels/{uniqueid}/redirect/{exten} -v -u {name}:{password}",
19227 "name": "RTVoiceQueueChannelRedirect",
19228 "group": "RPC_Realtime",
19229 "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>",
19230 "version": "0.0.0",
19231 "filename": "server/api/rpc/index.js",
19232 "groupTitle": "RPC_Realtime"
19236 "url": "/api/rpc/voice/queues/preview/{id}",
19237 "title": "Gets a single preview contact",
19240 "title": "Example usage:",
19241 "content": "curl https://{domain}/api/rpc/voice/queues/preview/{id} -v -u {name}:{password}",
19245 "name": "RTVoiceQueuePreview",
19246 "group": "RPC_Realtime",
19247 "description": "<p>Motion will return a specific preview contact.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19248 "version": "0.0.0",
19249 "filename": "server/api/rpc/index.js",
19250 "groupTitle": "RPC_Realtime"
19254 "url": "/api/rpc/outbound",
19255 "title": "Gets a list of RTOutbound",
19258 "title": "Example usage:",
19259 "content": "curl https://{domain}/api/rpc/outbound -v -u {name}:{password}",
19263 "name": "RTVoiceQueues",
19264 "group": "RPC_Realtime",
19265 "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>",
19266 "version": "0.0.0",
19267 "filename": "server/api/rpc/index.js",
19268 "groupTitle": "RPC_Realtime"
19272 "url": "/api/rpc/voice/queues",
19273 "title": "Gets a list of RTVoiceQueues",
19276 "title": "Example usage:",
19277 "content": "curl https://{domain}/api/rpc/voice/queues -v -u {name}:{password}",
19281 "name": "RTVoiceQueues",
19282 "group": "RPC_Realtime",
19283 "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>",
19284 "version": "0.0.0",
19285 "filename": "server/api/rpc/index.js",
19286 "groupTitle": "RPC_Realtime"
19290 "url": "/api/rpc/voice/queues/channels",
19291 "title": "Gets a list of RTVoiceQueuesChannels",
19294 "title": "Example usage:",
19295 "content": "curl https://{domain}/api/rpc/voice/queues/channels -v -u {name}:{password}",
19299 "name": "RTVoiceQueuesChannels",
19300 "group": "RPC_Realtime",
19301 "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>",
19302 "version": "0.0.0",
19303 "filename": "server/api/rpc/index.js",
19304 "groupTitle": "RPC_Realtime"
19308 "url": "/api/rpc/chat/queues/{id}",
19309 "title": "Gets a single RTChatQueue",
19312 "title": "Example usage:",
19313 "content": "curl https://{domain}/api/rpc/chat/queues/{id} -v -u {name}:{password}",
19317 "name": "ShowRTChatQueues",
19318 "group": "RPC_Realtime",
19319 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19320 "version": "0.0.0",
19321 "filename": "server/api/rpc/index.js",
19322 "groupTitle": "RPC_Realtime"
19326 "url": "/api/rpc/fax/queues/{id}",
19327 "title": "Gets a single RTFaxQueue",
19330 "title": "Example usage:",
19331 "content": "curl https://{domain}/api/rpc/fax/queues/{id} -v -u {name}:{password}",
19335 "name": "ShowRTFaxQueues",
19336 "group": "RPC_Realtime",
19337 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19338 "version": "0.0.0",
19339 "filename": "server/api/rpc/index.js",
19340 "groupTitle": "RPC_Realtime"
19344 "url": "/api/rpc/mail/queues/{id}",
19345 "title": "Gets a single RTMailQueue",
19348 "title": "Example usage:",
19349 "content": "curl https://{domain}/api/rpc/mail/queues/{id} -v -u {name}:{password}",
19353 "name": "ShowRTMailQueues",
19354 "group": "RPC_Realtime",
19355 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19356 "version": "0.0.0",
19357 "filename": "server/api/rpc/index.js",
19358 "groupTitle": "RPC_Realtime"
19362 "url": "/api/rpc/openchannel/queues/{id}",
19363 "title": "Gets a single RTOpenchannelQueue",
19366 "title": "Example usage:",
19367 "content": "curl https://{domain}/api/rpc/openchannel/queues/{id} -v -u {name}:{password}",
19371 "name": "ShowRTOpenchannelQueues",
19372 "group": "RPC_Realtime",
19373 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19374 "version": "0.0.0",
19375 "filename": "server/api/rpc/index.js",
19376 "groupTitle": "RPC_Realtime"
19380 "url": "/api/rpc/sms/queues/{id}",
19381 "title": "Gets a single RTSmsQueue",
19384 "title": "Example usage:",
19385 "content": "curl https://{domain}/api/rpc/sms/queues/{id} -v -u {name}:{password}",
19389 "name": "ShowRTSmsQueues",
19390 "group": "RPC_Realtime",
19391 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19392 "version": "0.0.0",
19393 "filename": "server/api/rpc/index.js",
19394 "groupTitle": "RPC_Realtime"
19398 "url": "/api/rpc/voice/queues/{id}",
19399 "title": "Gets a single RTVoiceQueue",
19402 "title": "Example usage:",
19403 "content": "curl https://{domain}/api/rpc/voice/queues/{id} -v -u {name}:{password}",
19407 "name": "ShowRTVoiceQueues",
19408 "group": "RPC_Realtime",
19409 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19410 "version": "0.0.0",
19411 "filename": "server/api/rpc/index.js",
19412 "groupTitle": "RPC_Realtime"
19416 "url": "/api/rpc/agents/:id/notify",
19417 "title": "Notify message to a specific agent",
19420 "title": "Example usage:",
19421 "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",
19425 "name": "agentNotify",
19426 "group": "RPC_Realtime",
19427 "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>",
19428 "version": "0.0.0",
19429 "filename": "server/api/rpc/index.js",
19430 "groupTitle": "RPC_Realtime"
19434 "url": "/api/rpc/chat/queues/:id/notify",
19435 "title": "Notify message to a specific queue",
19438 "title": "Example usage:",
19439 "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",
19443 "name": "chatQueueNotify",
19444 "group": "RPC_Realtime",
19445 "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>",
19446 "version": "0.0.0",
19447 "filename": "server/api/rpc/index.js",
19448 "groupTitle": "RPC_Realtime"
19452 "url": "/api/rpc/chat/queues/waitinginteractions",
19453 "title": "Gets a list of chatQueuesWaitingInteractions",
19456 "title": "Example usage:",
19457 "content": "curl https://{domain}/api/rpc/chat/queues/waitinginteractions -v -u {name}:{password}",
19461 "name": "chatQueuesWaitingInteractions",
19462 "group": "RPC_Realtime",
19463 "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>",
19464 "version": "0.0.0",
19465 "filename": "server/api/rpc/index.js",
19466 "groupTitle": "RPC_Realtime"
19470 "url": "/api/rpc/fax/queues/:id/notify",
19471 "title": "Notify message to a specific queue",
19474 "title": "Example usage:",
19475 "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",
19479 "name": "faxQueueNotify",
19480 "group": "RPC_Realtime",
19481 "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>",
19482 "version": "0.0.0",
19483 "filename": "server/api/rpc/index.js",
19484 "groupTitle": "RPC_Realtime"
19488 "url": "/api/rpc/fax/queues/waitinginteractions",
19489 "title": "Gets a list of faxQueuesWaitingInteractions",
19492 "title": "Example usage:",
19493 "content": "curl https://{domain}/api/rpc/fax/queues/waitinginteractions -v -u {name}:{password}",
19497 "name": "faxQueuesWaitingInteractions",
19498 "group": "RPC_Realtime",
19499 "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>",
19500 "version": "0.0.0",
19501 "filename": "server/api/rpc/index.js",
19502 "groupTitle": "RPC_Realtime"
19506 "url": "/api/rpc/mail/queues/:id/notify",
19507 "title": "Notify message to a specific queue",
19510 "title": "Example usage:",
19511 "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",
19515 "name": "mailQueueNotify",
19516 "group": "RPC_Realtime",
19517 "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>",
19518 "version": "0.0.0",
19519 "filename": "server/api/rpc/index.js",
19520 "groupTitle": "RPC_Realtime"
19524 "url": "/api/rpc/mail/queues/waitinginteractions",
19525 "title": "Gets a list of mailQueuesWaitingInteractions",
19528 "title": "Example usage:",
19529 "content": "curl https://{domain}/api/rpc/mail/queues/waitinginteractions -v -u {name}:{password}",
19533 "name": "mailQueuesWaitingInteractions",
19534 "group": "RPC_Realtime",
19535 "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>",
19536 "version": "0.0.0",
19537 "filename": "server/api/rpc/index.js",
19538 "groupTitle": "RPC_Realtime"
19542 "url": "/api/rpc/openchannel/queues/:id/notify",
19543 "title": "Notify message to a specific queue",
19546 "title": "Example usage:",
19547 "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",
19551 "name": "openchannelQueueNotify",
19552 "group": "RPC_Realtime",
19553 "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>",
19554 "version": "0.0.0",
19555 "filename": "server/api/rpc/index.js",
19556 "groupTitle": "RPC_Realtime"
19560 "url": "/api/rpc/openchannel/queues/waitinginteractions",
19561 "title": "Gets a list of openchannelQueuesWaitingInteractions",
19564 "title": "Example usage:",
19565 "content": "curl https://{domain}/api/rpc/openchannel/queues/waitinginteractions -v -u {name}:{password}",
19569 "name": "openchannelQueuesWaitingInteractions",
19570 "group": "RPC_Realtime",
19571 "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>",
19572 "version": "0.0.0",
19573 "filename": "server/api/rpc/index.js",
19574 "groupTitle": "RPC_Realtime"
19578 "url": "/api/rpc/sms/queues/:id/notify",
19579 "title": "Notify message to a specific queue",
19582 "title": "Example usage:",
19583 "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",
19587 "name": "smsQueueNotify",
19588 "group": "RPC_Realtime",
19589 "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>",
19590 "version": "0.0.0",
19591 "filename": "server/api/rpc/index.js",
19592 "groupTitle": "RPC_Realtime"
19596 "url": "/api/rpc/sms/queues/waitinginteractions",
19597 "title": "Gets a list of smsQueuesWaitingInteractions",
19600 "title": "Example usage:",
19601 "content": "curl https://{domain}/api/rpc/sms/queues/waitinginteractions -v -u {name}:{password}",
19605 "name": "smsQueuesWaitingInteractions",
19606 "group": "RPC_Realtime",
19607 "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>",
19608 "version": "0.0.0",
19609 "filename": "server/api/rpc/index.js",
19610 "groupTitle": "RPC_Realtime"
19614 "url": "/api/integrations/salesforce/accounts",
19615 "title": "Creates a new Salesforce Account",
19618 "title": "Example usage:",
19619 "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",
19623 "name": "CreateSalesforce_Accounts",
19624 "group": "Salesforce_Accounts",
19639 "field": "description",
19646 "field": "username",
19653 "field": "remoteUri",
19660 "field": "password",
19667 "field": "clientId",
19674 "field": "clientSecret",
19681 "field": "securityToken",
19688 "field": "serverUrl",
19695 "\"integrationTab\"",
19705 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19706 "version": "0.0.0",
19707 "filename": "server/api/intSalesforceAccount/index.js",
19708 "groupTitle": "Salesforce_Accounts"
19712 "url": "/api/integrations/salesforce/accounts/{id}",
19713 "title": "Deletes a Salesforce Account",
19716 "title": "Example usage:",
19717 "content": "curl https://{domain}/api/integrations/salesforce/accounts/{id} -v -u {name}:{password} -X DELETE",
19721 "name": "DeleteSalesforce_Accounts",
19722 "group": "Salesforce_Accounts",
19723 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19724 "version": "0.0.0",
19725 "filename": "server/api/intSalesforceAccount/index.js",
19726 "groupTitle": "Salesforce_Accounts"
19730 "url": "/api/integrations/salesforce/accounts",
19731 "title": "Gets a list of Salesforce Accounts",
19734 "title": "Example usage:",
19735 "content": "curl https://{domain}/api/integrations/salesforce/accounts -v -u {name}:{password}",
19739 "name": "GetSalesforce_Accounts",
19740 "group": "Salesforce_Accounts",
19741 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
19742 "version": "0.0.0",
19743 "filename": "server/api/intSalesforceAccount/index.js",
19744 "groupTitle": "Salesforce_Accounts"
19748 "url": "/api/integrations/salesforce/accounts/{id}",
19749 "title": "Gets a single Salesforce Account",
19752 "title": "Example usage:",
19753 "content": "curl https://{domain}/api/integrations/salesforce/accounts/{id} -v -u {name}:{password}",
19757 "name": "ShowSalesforce_Accounts",
19758 "group": "Salesforce_Accounts",
19759 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19760 "version": "0.0.0",
19761 "filename": "server/api/intSalesforceAccount/index.js",
19762 "groupTitle": "Salesforce_Accounts"
19766 "url": "/api/integrations/salesforce/accounts/{id}/configurations",
19767 "title": "Creates new configuration",
19770 "title": "Example usage:",
19771 "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",
19775 "name": "addConfiguration",
19776 "group": "Salesforce_Accounts",
19777 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19778 "version": "0.0.0",
19779 "filename": "server/api/intSalesforceAccount/index.js",
19780 "groupTitle": "Salesforce_Accounts"
19784 "url": "/api/integrations/salesforce/accounts/{id}/configurations",
19785 "title": "Gets account configurations",
19788 "title": "Example usage:",
19789 "content": "curl https://{domain}/api/integrations/salesforce/accounts/{id}/configurations -v -u {name}:{password} -X GET",
19793 "name": "getConfigurations",
19794 "group": "Salesforce_Accounts",
19795 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19796 "version": "0.0.0",
19797 "filename": "server/api/intSalesforceAccount/index.js",
19798 "groupTitle": "Salesforce_Accounts"
19802 "url": "/api/integrations/salesforce/accounts/{id}/fields",
19803 "title": "Gets account fields",
19806 "title": "Example usage:",
19807 "content": "curl https://{domain}/api/integrations/salesforce/accounts/{id}/fields -v -u {name}:{password} -X GET",
19811 "name": "getFields",
19812 "group": "Salesforce_Accounts",
19813 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19814 "version": "0.0.0",
19815 "filename": "server/api/intSalesforceAccount/index.js",
19816 "groupTitle": "Salesforce_Accounts"
19820 "url": "/api/integrations/salesforce/accounts/{id}",
19821 "title": "Update an existing Salesforce Account",
19824 "title": "Example usage:",
19825 "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",
19829 "name": "updateSalesforce_Accounts",
19830 "group": "Salesforce_Accounts",
19831 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19832 "version": "0.0.0",
19833 "filename": "server/api/intSalesforceAccount/index.js",
19834 "groupTitle": "Salesforce_Accounts"
19838 "url": "/api/integrations/salesforce/configurations",
19839 "title": "Creates a new Salesforce Configuration",
19842 "title": "Example usage:",
19843 "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",
19847 "name": "CreateSalesforce_Configurations",
19848 "group": "Salesforce_Configurations",
19863 "field": "description",
19874 "field": "ticketType",
19881 "\"contact_lead\"",
19886 "field": "moduleSearch",
19898 "field": "moduleCreate",
19904 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19905 "version": "0.0.0",
19906 "filename": "server/api/intSalesforceConfiguration/index.js",
19907 "groupTitle": "Salesforce_Configurations"
19911 "url": "/api/integrations/salesforce/configurations/{id}",
19912 "title": "Deletes a Salesforce Configuration",
19915 "title": "Example usage:",
19916 "content": "curl https://{domain}/api/integrations/salesforce/configurations/{id} -v -u {name}:{password} -X DELETE",
19920 "name": "DeleteSalesforce_Configurations",
19921 "group": "Salesforce_Configurations",
19922 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19923 "version": "0.0.0",
19924 "filename": "server/api/intSalesforceConfiguration/index.js",
19925 "groupTitle": "Salesforce_Configurations"
19929 "url": "/api/integrations/salesforce/configurations",
19930 "title": "Gets a list of Salesforce Configurations",
19933 "title": "Example usage:",
19934 "content": "curl https://{domain}/api/integrations/salesforce/configurations -v -u {name}:{password}",
19938 "name": "GetSalesforce_Configurations",
19939 "group": "Salesforce_Configurations",
19940 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
19941 "version": "0.0.0",
19942 "filename": "server/api/intSalesforceConfiguration/index.js",
19943 "groupTitle": "Salesforce_Configurations"
19947 "url": "/api/integrations/salesforce/configurations/{id}",
19948 "title": "Gets a single Salesforce Configuration",
19951 "title": "Example usage:",
19952 "content": "curl https://{domain}/api/integrations/salesforce/configurations/{id} -v -u {name}:{password}",
19956 "name": "ShowSalesforce_Configurations",
19957 "group": "Salesforce_Configurations",
19958 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
19959 "version": "0.0.0",
19960 "filename": "server/api/intSalesforceConfiguration/index.js",
19961 "groupTitle": "Salesforce_Configurations"
19965 "url": "/api/integrations/salesforce/configurations/{id}/descriptions",
19966 "title": "Gets configurations descriptions",
19969 "title": "Example usage:",
19970 "content": "curl https://{domain}/api/integrations/salesforce/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
19974 "name": "getDescriptions",
19975 "group": "Salesforce_Configurations",
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/intSalesforceConfiguration/index.js",
19979 "groupTitle": "Salesforce_Configurations"
19983 "url": "/api/integrations/salesforce/configurations/{id}/fields",
19984 "title": "Gets configurations fields",
19987 "title": "Example usage:",
19988 "content": "curl https://{domain}/api/integrations/salesforce/configurations/{id}/fields -v -u {name}:{password} -X GET",
19992 "name": "getFields",
19993 "group": "Salesforce_Configurations",
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/intSalesforceConfiguration/index.js",
19997 "groupTitle": "Salesforce_Configurations"
20001 "url": "/api/integrations/salesforce/configurations/{id}/subjects",
20002 "title": "Gets configurations subjects",
20005 "title": "Example usage:",
20006 "content": "curl https://{domain}/api/integrations/salesforce/configurations/{id}/subjects -v -u {name}:{password} -X GET",
20010 "name": "getSubjects",
20011 "group": "Salesforce_Configurations",
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/intSalesforceConfiguration/index.js",
20015 "groupTitle": "Salesforce_Configurations"
20019 "url": "/api/integrations/salesforce/configurations/{id}",
20020 "title": "Update an existing Salesforce Configuration",
20023 "title": "Example usage:",
20024 "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",
20028 "name": "updateSalesforce_Configurations",
20029 "group": "Salesforce_Configurations",
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/intSalesforceConfiguration/index.js",
20033 "groupTitle": "Salesforce_Configurations"
20037 "url": "/api/integrations/salesforce/fields",
20038 "title": "Creates a new Salesforce Field",
20041 "title": "Example usage:",
20042 "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",
20046 "name": "CreateSalesforce_Fields",
20047 "group": "Salesforce_Fields",
20057 "\"customVariable\"",
20068 "field": "content",
20084 "\"customVariable\""
20087 "field": "keyType",
20094 "field": "keyContent",
20101 "field": "idField",
20108 "field": "variableName",
20114 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20115 "version": "0.0.0",
20116 "filename": "server/api/intSalesforceField/index.js",
20117 "groupTitle": "Salesforce_Fields"
20121 "url": "/api/integrations/salesforce/fields/{id}",
20122 "title": "Deletes a Salesforce Field",
20125 "title": "Example usage:",
20126 "content": "curl https://{domain}/api/integrations/salesforce/fields/{id} -v -u {name}:{password} -X DELETE",
20130 "name": "DeleteSalesforce_Fields",
20131 "group": "Salesforce_Fields",
20132 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20133 "version": "0.0.0",
20134 "filename": "server/api/intSalesforceField/index.js",
20135 "groupTitle": "Salesforce_Fields"
20139 "url": "/api/integrations/salesforce/fields",
20140 "title": "Gets a list of Salesforce Fields",
20143 "title": "Example usage:",
20144 "content": "curl https://{domain}/api/integrations/salesforce/fields -v -u {name}:{password}",
20148 "name": "GetSalesforce_Fields",
20149 "group": "Salesforce_Fields",
20150 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
20151 "version": "0.0.0",
20152 "filename": "server/api/intSalesforceField/index.js",
20153 "groupTitle": "Salesforce_Fields"
20157 "url": "/api/integrations/salesforce/fields/{id}",
20158 "title": "Gets a single Salesforce Field",
20161 "title": "Example usage:",
20162 "content": "curl https://{domain}/api/integrations/salesforce/fields/{id} -v -u {name}:{password}",
20166 "name": "ShowSalesforce_Fields",
20167 "group": "Salesforce_Fields",
20168 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20169 "version": "0.0.0",
20170 "filename": "server/api/intSalesforceField/index.js",
20171 "groupTitle": "Salesforce_Fields"
20175 "url": "/api/integrations/salesforce/fields/{id}",
20176 "title": "Update an existing Salesforce Field",
20179 "title": "Example usage:",
20180 "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",
20184 "name": "updateSalesforce_Fields",
20185 "group": "Salesforce_Fields",
20186 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20187 "version": "0.0.0",
20188 "filename": "server/api/intSalesforceField/index.js",
20189 "groupTitle": "Salesforce_Fields"
20193 "url": "/api/schedules",
20194 "title": "Creates a new Schedule",
20197 "title": "Example usage:",
20198 "content": "curl https://{domain}/api/schedules -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
20202 "name": "CreateSchedules",
20203 "group": "Schedules",
20218 "field": "description",
20239 "field": "startAt",
20253 "field": "subtractNumber",
20269 "field": "subtractUnit",
20299 "field": "sendMail",
20327 "field": "sendIfEmpty",
20333 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20334 "version": "0.0.0",
20335 "filename": "server/api/schedule/index.js",
20336 "groupTitle": "Schedules"
20340 "url": "/api/schedules/{id}",
20341 "title": "Deletes a Schedule",
20344 "title": "Example usage:",
20345 "content": "curl https://{domain}/api/schedules/{id} -v -u {name}:{password} -X DELETE",
20349 "name": "DeleteSchedules",
20350 "group": "Schedules",
20351 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20352 "version": "0.0.0",
20353 "filename": "server/api/schedule/index.js",
20354 "groupTitle": "Schedules"
20358 "url": "/api/schedules",
20359 "title": "Gets a list of Schedules",
20362 "title": "Example usage:",
20363 "content": "curl https://{domain}/api/schedules -v -u {name}:{password}",
20367 "name": "GetSchedules",
20368 "group": "Schedules",
20369 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
20370 "version": "0.0.0",
20371 "filename": "server/api/schedule/index.js",
20372 "groupTitle": "Schedules"
20376 "url": "/api/schedules/{id}",
20377 "title": "Gets a single Schedule",
20380 "title": "Example usage:",
20381 "content": "curl https://{domain}/api/schedules/{id} -v -u {name}:{password}",
20385 "name": "ShowSchedules",
20386 "group": "Schedules",
20387 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20388 "version": "0.0.0",
20389 "filename": "server/api/schedule/index.js",
20390 "groupTitle": "Schedules"
20394 "url": "/api/schedules/{id}/run",
20395 "title": "Run Scheduler",
20398 "title": "Example usage:",
20399 "content": "curl https://{domain}/api/schedules/{id}/run -v -u {name}:{password} -X GET",
20404 "group": "Schedules",
20405 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20406 "version": "0.0.0",
20407 "filename": "server/api/schedule/index.js",
20408 "groupTitle": "Schedules"
20412 "url": "/api/schedules/{id}",
20413 "title": "Update an existing Schedule",
20416 "title": "Example usage:",
20417 "content": "curl https://{domain}/api/schedules/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
20421 "name": "updateSchedules",
20422 "group": "Schedules",
20423 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20424 "version": "0.0.0",
20425 "filename": "server/api/schedule/index.js",
20426 "groupTitle": "Schedules"
20430 "url": "/api/screen/recordings",
20431 "title": "Creates a new Recording",
20434 "title": "Example usage:",
20435 "content": "curl https://{domain}/api/screen/recordings -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
20439 "name": "CreateRecordings",
20440 "group": "Screen_Recordings",
20455 "field": "interactionid",
20462 "field": "channel",
20483 "field": "duration",
20490 "field": "startedAt",
20497 "field": "closedAt",
20504 "field": "createdAt",
20511 "field": "updatedAt",
20517 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20518 "version": "0.0.0",
20519 "filename": "server/api/screenRecording/index.js",
20520 "groupTitle": "Screen_Recordings"
20524 "url": "/api/screen/recordings/describe",
20525 "title": "Gets table info about Recordings",
20528 "title": "Example usage:",
20529 "content": "curl https://{domain}/api/screen/recordings/describe -v -u {name}:{password}",
20533 "name": "DescribeRecordings",
20534 "group": "Screen_Recordings",
20535 "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>",
20536 "version": "0.0.0",
20537 "filename": "server/api/screenRecording/index.js",
20538 "groupTitle": "Screen_Recordings"
20542 "url": "/api/screen/recordings",
20543 "title": "Gets a list of Recordings",
20546 "title": "Example usage:",
20547 "content": "curl https://{domain}/api/screen/recordings -v -u {name}:{password}",
20551 "name": "GetRecordings",
20552 "group": "Screen_Recordings",
20553 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
20554 "version": "0.0.0",
20555 "filename": "server/api/screenRecording/index.js",
20556 "groupTitle": "Screen_Recordings"
20560 "url": "/api/screen/recordings/{id}",
20561 "title": "Gets a single Recording",
20564 "title": "Example usage:",
20565 "content": "curl https://{domain}/api/screen/recordings/{id} -v -u {name}:{password}",
20569 "name": "ShowRecordings",
20570 "group": "Screen_Recordings",
20571 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20572 "version": "0.0.0",
20573 "filename": "server/api/screenRecording/index.js",
20574 "groupTitle": "Screen_Recordings"
20578 "url": "/api/screen/recordings/{id}",
20579 "title": "Delete screen recording",
20582 "title": "Example usage:",
20583 "content": "curl https://{domain}/api/screen/recordings/{id} -v -u {name}:{password} -X DELETE",
20588 "group": "Screen_Recordings",
20589 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20590 "version": "0.0.0",
20591 "filename": "server/api/screenRecording/index.js",
20592 "groupTitle": "Screen_Recordings"
20596 "url": "/api/screen/recordings/{id}/download",
20597 "title": "Download Recording",
20600 "title": "Example usage:",
20601 "content": "curl https://{domain}/api/screen/recordings/{id}/download -v -u {name}:{password} -X GET",
20605 "name": "download",
20606 "group": "Screen_Recordings",
20607 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20608 "version": "0.0.0",
20609 "filename": "server/api/screenRecording/index.js",
20610 "groupTitle": "Screen_Recordings"
20614 "url": "/api/screen/recordings/{id}",
20615 "title": "Update an existing Recording",
20618 "title": "Example usage:",
20619 "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",
20623 "name": "updateRecordings",
20624 "group": "Screen_Recordings",
20625 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20626 "version": "0.0.0",
20627 "filename": "server/api/screenRecording/index.js",
20628 "groupTitle": "Screen_Recordings"
20632 "url": "/api/integrations/servicenow/accounts",
20633 "title": "Creates a new Servicenow Account",
20636 "title": "Example usage:",
20637 "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",
20641 "name": "CreateServicenow_Accounts",
20642 "group": "Servicenow_Accounts",
20657 "field": "description",
20664 "field": "username",
20671 "field": "password",
20685 "field": "remoteUri",
20692 "field": "serverUrl",
20698 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20699 "version": "0.0.0",
20700 "filename": "server/api/intServicenowAccount/index.js",
20701 "groupTitle": "Servicenow_Accounts"
20705 "url": "/api/integrations/servicenow/accounts/{id}",
20706 "title": "Deletes a Servicenow Account",
20709 "title": "Example usage:",
20710 "content": "curl https://{domain}/api/integrations/servicenow/accounts/{id} -v -u {name}:{password} -X DELETE",
20714 "name": "DeleteServicenow_Accounts",
20715 "group": "Servicenow_Accounts",
20716 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20717 "version": "0.0.0",
20718 "filename": "server/api/intServicenowAccount/index.js",
20719 "groupTitle": "Servicenow_Accounts"
20723 "url": "/api/integrations/servicenow/accounts",
20724 "title": "Gets a list of Servicenow Accounts",
20727 "title": "Example usage:",
20728 "content": "curl https://{domain}/api/integrations/servicenow/accounts -v -u {name}:{password}",
20732 "name": "GetServicenow_Accounts",
20733 "group": "Servicenow_Accounts",
20734 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
20735 "version": "0.0.0",
20736 "filename": "server/api/intServicenowAccount/index.js",
20737 "groupTitle": "Servicenow_Accounts"
20741 "url": "/api/integrations/servicenow/accounts/{id}",
20742 "title": "Gets a single Servicenow Account",
20745 "title": "Example usage:",
20746 "content": "curl https://{domain}/api/integrations/servicenow/accounts/{id} -v -u {name}:{password}",
20750 "name": "ShowServicenow_Accounts",
20751 "group": "Servicenow_Accounts",
20752 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20753 "version": "0.0.0",
20754 "filename": "server/api/intServicenowAccount/index.js",
20755 "groupTitle": "Servicenow_Accounts"
20759 "url": "/api/integrations/servicenow/accounts/{id}/configurations",
20760 "title": "Creates new configuration",
20763 "title": "Example usage:",
20764 "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",
20768 "name": "addConfiguration",
20769 "group": "Servicenow_Accounts",
20770 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20771 "version": "0.0.0",
20772 "filename": "server/api/intServicenowAccount/index.js",
20773 "groupTitle": "Servicenow_Accounts"
20777 "url": "/api/integrations/servicenow/accounts/{id}/configurations",
20778 "title": "Gets account configurations",
20781 "title": "Example usage:",
20782 "content": "curl https://{domain}/api/integrations/servicenow/accounts/{id}/configurations -v -u {name}:{password} -X GET",
20786 "name": "getConfigurations",
20787 "group": "Servicenow_Accounts",
20788 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20789 "version": "0.0.0",
20790 "filename": "server/api/intServicenowAccount/index.js",
20791 "groupTitle": "Servicenow_Accounts"
20795 "url": "/api/integrations/servicenow/accounts/{id}/fields",
20796 "title": "Gets account fields",
20799 "title": "Example usage:",
20800 "content": "curl https://{domain}/api/integrations/servicenow/accounts/{id}/fields -v -u {name}:{password} -X GET",
20804 "name": "getFields",
20805 "group": "Servicenow_Accounts",
20806 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20807 "version": "0.0.0",
20808 "filename": "server/api/intServicenowAccount/index.js",
20809 "groupTitle": "Servicenow_Accounts"
20813 "url": "/api/integrations/servicenow/accounts/{id}",
20814 "title": "Update an existing Servicenow Account",
20817 "title": "Example usage:",
20818 "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",
20822 "name": "updateServicenow_Accounts",
20823 "group": "Servicenow_Accounts",
20824 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20825 "version": "0.0.0",
20826 "filename": "server/api/intServicenowAccount/index.js",
20827 "groupTitle": "Servicenow_Accounts"
20831 "url": "/api/integrations/servicenow/configurations",
20832 "title": "Creates a new Servicenow Configuration",
20835 "title": "Example usage:",
20836 "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",
20840 "name": "CreateServicenow_Configurations",
20841 "group": "Servicenow_Configurations",
20856 "field": "description",
20862 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20863 "version": "0.0.0",
20864 "filename": "server/api/intServicenowConfiguration/index.js",
20865 "groupTitle": "Servicenow_Configurations"
20869 "url": "/api/integrations/servicenow/configurations/{id}",
20870 "title": "Deletes a Servicenow Configuration",
20873 "title": "Example usage:",
20874 "content": "curl https://{domain}/api/integrations/servicenow/configurations/{id} -v -u {name}:{password} -X DELETE",
20878 "name": "DeleteServicenow_Configurations",
20879 "group": "Servicenow_Configurations",
20880 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20881 "version": "0.0.0",
20882 "filename": "server/api/intServicenowConfiguration/index.js",
20883 "groupTitle": "Servicenow_Configurations"
20887 "url": "/api/integrations/servicenow/configurations",
20888 "title": "Gets a list of Servicenow Configurations",
20891 "title": "Example usage:",
20892 "content": "curl https://{domain}/api/integrations/servicenow/configurations -v -u {name}:{password}",
20896 "name": "GetServicenow_Configurations",
20897 "group": "Servicenow_Configurations",
20898 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
20899 "version": "0.0.0",
20900 "filename": "server/api/intServicenowConfiguration/index.js",
20901 "groupTitle": "Servicenow_Configurations"
20905 "url": "/api/integrations/servicenow/configurations/{id}",
20906 "title": "Gets a single Servicenow Configuration",
20909 "title": "Example usage:",
20910 "content": "curl https://{domain}/api/integrations/servicenow/configurations/{id} -v -u {name}:{password}",
20914 "name": "ShowServicenow_Configurations",
20915 "group": "Servicenow_Configurations",
20916 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20917 "version": "0.0.0",
20918 "filename": "server/api/intServicenowConfiguration/index.js",
20919 "groupTitle": "Servicenow_Configurations"
20923 "url": "/api/integrations/servicenow/configurations/{id}/descriptions",
20924 "title": "Gets configurations descriptions",
20927 "title": "Example usage:",
20928 "content": "curl https://{domain}/api/integrations/servicenow/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
20932 "name": "getDescriptions",
20933 "group": "Servicenow_Configurations",
20934 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20935 "version": "0.0.0",
20936 "filename": "server/api/intServicenowConfiguration/index.js",
20937 "groupTitle": "Servicenow_Configurations"
20941 "url": "/api/integrations/servicenow/configurations/{id}/fields",
20942 "title": "Gets configurations fields",
20945 "title": "Example usage:",
20946 "content": "curl https://{domain}/api/integrations/servicenow/configurations/{id}/fields -v -u {name}:{password} -X GET",
20950 "name": "getFields",
20951 "group": "Servicenow_Configurations",
20952 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20953 "version": "0.0.0",
20954 "filename": "server/api/intServicenowConfiguration/index.js",
20955 "groupTitle": "Servicenow_Configurations"
20959 "url": "/api/integrations/servicenow/configurations/{id}/subjects",
20960 "title": "Gets configurations subjects",
20963 "title": "Example usage:",
20964 "content": "curl https://{domain}/api/integrations/servicenow/configurations/{id}/subjects -v -u {name}:{password} -X GET",
20968 "name": "getSubjects",
20969 "group": "Servicenow_Configurations",
20970 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20971 "version": "0.0.0",
20972 "filename": "server/api/intServicenowConfiguration/index.js",
20973 "groupTitle": "Servicenow_Configurations"
20977 "url": "/api/integrations/servicenow/configurations/{id}",
20978 "title": "Update an existing Servicenow Configuration",
20981 "title": "Example usage:",
20982 "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",
20986 "name": "updateServicenow_Configurations",
20987 "group": "Servicenow_Configurations",
20988 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
20989 "version": "0.0.0",
20990 "filename": "server/api/intServicenowConfiguration/index.js",
20991 "groupTitle": "Servicenow_Configurations"
20995 "url": "/api/integrations/servicenow/fields",
20996 "title": "Creates a new Servicenow Field",
20999 "title": "Example usage:",
21000 "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",
21004 "name": "CreateServicenow_Fields",
21005 "group": "Servicenow_Fields",
21015 "\"customVariable\"",
21026 "field": "content",
21042 "\"customVariable\""
21045 "field": "keyType",
21052 "field": "keyContent",
21059 "field": "idField",
21066 "field": "nameField",
21073 "field": "customField",
21080 "field": "variableName",
21086 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21087 "version": "0.0.0",
21088 "filename": "server/api/intServicenowField/index.js",
21089 "groupTitle": "Servicenow_Fields"
21093 "url": "/api/integrations/servicenow/fields/{id}",
21094 "title": "Deletes a Servicenow Field",
21097 "title": "Example usage:",
21098 "content": "curl https://{domain}/api/integrations/servicenow/fields/{id} -v -u {name}:{password} -X DELETE",
21102 "name": "DeleteServicenow_Fields",
21103 "group": "Servicenow_Fields",
21104 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21105 "version": "0.0.0",
21106 "filename": "server/api/intServicenowField/index.js",
21107 "groupTitle": "Servicenow_Fields"
21111 "url": "/api/integrations/servicenow/fields",
21112 "title": "Gets a list of Servicenow Fields",
21115 "title": "Example usage:",
21116 "content": "curl https://{domain}/api/integrations/servicenow/fields -v -u {name}:{password}",
21120 "name": "GetServicenow_Fields",
21121 "group": "Servicenow_Fields",
21122 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
21123 "version": "0.0.0",
21124 "filename": "server/api/intServicenowField/index.js",
21125 "groupTitle": "Servicenow_Fields"
21129 "url": "/api/integrations/servicenow/fields/{id}",
21130 "title": "Gets a single Servicenow Field",
21133 "title": "Example usage:",
21134 "content": "curl https://{domain}/api/integrations/servicenow/fields/{id} -v -u {name}:{password}",
21138 "name": "ShowServicenow_Fields",
21139 "group": "Servicenow_Fields",
21140 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21141 "version": "0.0.0",
21142 "filename": "server/api/intServicenowField/index.js",
21143 "groupTitle": "Servicenow_Fields"
21147 "url": "/api/integrations/servicenow/fields/{id}",
21148 "title": "Update an existing Servicenow Field",
21151 "title": "Example usage:",
21152 "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",
21156 "name": "updateServicenow_Fields",
21157 "group": "Servicenow_Fields",
21158 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21159 "version": "0.0.0",
21160 "filename": "server/api/intServicenowField/index.js",
21161 "groupTitle": "Servicenow_Fields"
21165 "url": "/api/settings",
21166 "title": "Gets a list of Settings",
21169 "title": "Example usage:",
21170 "content": "curl https://{domain}/api/settings -v -u {name}:{password}",
21174 "name": "GetSettings",
21175 "group": "Settings",
21176 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
21177 "version": "0.0.0",
21178 "filename": "server/api/setting/index.js",
21179 "groupTitle": "Settings"
21183 "url": "/api/settings/{id}",
21184 "title": "Gets a single Setting",
21187 "title": "Example usage:",
21188 "content": "curl https://{domain}/api/settings/{id} -v -u {name}:{password}",
21192 "name": "ShowSettings",
21193 "group": "Settings",
21194 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21195 "version": "0.0.0",
21196 "filename": "server/api/setting/index.js",
21197 "groupTitle": "Settings"
21201 "url": "/api/settings/{id}/favicon",
21202 "title": "Add Favicon",
21205 "title": "Example usage:",
21206 "content": "curl https://{domain}/api/settings/{id}/favicon -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
21210 "name": "addFavicon",
21211 "group": "Settings",
21212 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21213 "version": "0.0.0",
21214 "filename": "server/api/setting/index.js",
21215 "groupTitle": "Settings"
21219 "url": "/api/settings/{id}/logo",
21220 "title": "Add logo",
21223 "title": "Example usage:",
21224 "content": "curl https://{domain}/api/settings/{id}/logo -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
21229 "group": "Settings",
21230 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21231 "version": "0.0.0",
21232 "filename": "server/api/setting/index.js",
21233 "groupTitle": "Settings"
21237 "url": "/api/settings/{id}/logo_login",
21238 "title": "Add logo login",
21241 "title": "Example usage:",
21242 "content": "curl https://{domain}/api/settings/{id}/logo_login -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
21246 "name": "addLogoLogin",
21247 "group": "Settings",
21248 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21249 "version": "0.0.0",
21250 "filename": "server/api/setting/index.js",
21251 "groupTitle": "Settings"
21255 "url": "/api/settings/{id}/preferred",
21256 "title": "Add Preferred",
21259 "title": "Example usage:",
21260 "content": "curl https://{domain}/api/settings/{id}/preferred -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
21264 "name": "addPreferred",
21265 "group": "Settings",
21266 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21267 "version": "0.0.0",
21268 "filename": "server/api/setting/index.js",
21269 "groupTitle": "Settings"
21273 "url": "/api/settings/{id}/favicon",
21274 "title": "Get Favicon",
21277 "title": "Example usage:",
21278 "content": "curl https://{domain}/api/settings/{id}/favicon -v -X GET",
21282 "name": "getFavicon",
21283 "group": "Settings",
21284 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21285 "version": "0.0.0",
21286 "filename": "server/api/setting/index.js",
21287 "groupTitle": "Settings"
21291 "url": "/api/settings/{id}/gdpr",
21292 "title": "Get gdpr settings",
21295 "title": "Example usage:",
21296 "content": "curl https://{domain}/api/settings/{id}/gdpr -v -u {name}:{password} -X GET",
21301 "group": "Settings",
21302 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21303 "version": "0.0.0",
21304 "filename": "server/api/setting/index.js",
21305 "groupTitle": "Settings"
21309 "url": "/api/settings/{id}/logo",
21310 "title": "Get logo",
21313 "title": "Example usage:",
21314 "content": "curl https://{domain}/api/settings/{id}/logo -v -X GET",
21319 "group": "Settings",
21320 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21321 "version": "0.0.0",
21322 "filename": "server/api/setting/index.js",
21323 "groupTitle": "Settings"
21327 "url": "/api/settings/{id}/logo_login",
21328 "title": "Get logo login",
21331 "title": "Example usage:",
21332 "content": "curl https://{domain}/api/settings/{id}/logo_login -v -X GET",
21336 "name": "getLogoLogin",
21337 "group": "Settings",
21338 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21339 "version": "0.0.0",
21340 "filename": "server/api/setting/index.js",
21341 "groupTitle": "Settings"
21345 "url": "/api/settings/{id}/preferred",
21346 "title": "Get Preferred",
21349 "title": "Example usage:",
21350 "content": "curl https://{domain}/api/settings/{id}/preferred -v -X GET",
21354 "name": "getPreferred",
21355 "group": "Settings",
21356 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21357 "version": "0.0.0",
21358 "filename": "server/api/setting/index.js",
21359 "groupTitle": "Settings"
21363 "url": "/api/settings/{id}",
21364 "title": "Update an existing Setting",
21367 "title": "Example usage:",
21368 "content": "curl https://{domain}/api/settings/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
21372 "name": "updateSettings",
21373 "group": "Settings",
21374 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21375 "version": "0.0.0",
21376 "filename": "server/api/setting/index.js",
21377 "groupTitle": "Settings"
21381 "url": "/api/sms/accounts/{id}/users",
21382 "title": "Add agents to a sms account",
21385 "title": "Example usage:",
21386 "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",
21390 "name": "AddAgents",
21391 "group": "Sms_Accounts",
21392 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21393 "version": "0.0.0",
21394 "filename": "server/api/smsAccount/index.js",
21395 "groupTitle": "Sms_Accounts"
21399 "url": "/api/sms/accounts",
21400 "title": "Creates a new Account",
21403 "title": "Example usage:",
21404 "content": "curl https://{domain}/api/sms/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
21408 "name": "CreateAccounts",
21409 "group": "Sms_Accounts",
21470 "field": "accountSid",
21484 "field": "authToken",
21496 "field": "smsMethod",
21503 "field": "username",
21510 "field": "password",
21524 "field": "senderString",
21531 "field": "deliveryReport",
21538 "field": "description",
21545 "field": "notificationTemplate",
21552 "field": "notificationSound",
21559 "field": "notificationShake",
21566 "field": "waitForTheAssignedAgent",
21573 "field": "queueTransfer",
21580 "field": "queueTransferTimeout",
21587 "field": "agentTransfer",
21594 "field": "agentTransferTimeout",
21601 "field": "baseUrl",
21608 "field": "mandatoryDispositionPauseId",
21609 "description": "<p>Status to put when mandatory disposition is enabled</p>"
21615 "field": "mandatoryDisposition",
21616 "description": "<p>Enabled/disables mandatory dispo on a queue</p>"
21621 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21622 "version": "0.0.0",
21623 "filename": "server/api/smsAccount/index.js",
21624 "groupTitle": "Sms_Accounts"
21628 "url": "/api/sms/accounts/{id}",
21629 "title": "Deletes a Account",
21632 "title": "Example usage:",
21633 "content": "curl https://{domain}/api/sms/accounts/{id} -v -u {name}:{password} -X DELETE",
21637 "name": "DeleteAccounts",
21638 "group": "Sms_Accounts",
21639 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21640 "version": "0.0.0",
21641 "filename": "server/api/smsAccount/index.js",
21642 "groupTitle": "Sms_Accounts"
21646 "url": "/api/sms/accounts/describe",
21647 "title": "Gets table info about Accounts",
21650 "title": "Example usage:",
21651 "content": "curl https://{domain}/api/sms/accounts/describe -v -u {name}:{password}",
21655 "name": "DescribeAccounts",
21656 "group": "Sms_Accounts",
21657 "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>",
21658 "version": "0.0.0",
21659 "filename": "server/api/smsAccount/index.js",
21660 "groupTitle": "Sms_Accounts"
21664 "url": "/api/sms/accounts",
21665 "title": "Gets a list of Accounts",
21668 "title": "Example usage:",
21669 "content": "curl https://{domain}/api/sms/accounts -v -u {name}:{password}",
21673 "name": "GetAccounts",
21674 "group": "Sms_Accounts",
21675 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
21676 "version": "0.0.0",
21677 "filename": "server/api/smsAccount/index.js",
21678 "groupTitle": "Sms_Accounts"
21682 "url": "/api/sms/accounts/{id}/users",
21683 "title": "Gets agents from sms account",
21686 "title": "Example usage:",
21687 "content": "curl https://{domain}/api/sms/accounts/{id}/users -v -u {name}:{password} -X GET",
21691 "name": "GetAgents",
21692 "group": "Sms_Accounts",
21693 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21694 "version": "0.0.0",
21695 "filename": "server/api/smsAccount/index.js",
21696 "groupTitle": "Sms_Accounts"
21700 "url": "/api/sms/accounts/{id}/users",
21701 "title": "Removes agents from a sms account",
21704 "title": "Example usage:",
21705 "content": "curl https://{domain}/api/sms/accounts/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
21709 "name": "RemoveAgents",
21710 "group": "Sms_Accounts",
21711 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21712 "version": "0.0.0",
21713 "filename": "server/api/smsAccount/index.js",
21714 "groupTitle": "Sms_Accounts"
21718 "url": "/api/sms/accounts/{id}/canned_answers",
21719 "title": "Removes canned answers from account",
21722 "title": "Example usage:",
21723 "content": "curl https://{domain}/api/sms/accounts/{id}/canned_answers?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
21727 "name": "RemoveAnswers",
21728 "group": "Sms_Accounts",
21729 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21730 "version": "0.0.0",
21731 "filename": "server/api/smsAccount/index.js",
21732 "groupTitle": "Sms_Accounts"
21736 "url": "/api/sms/accounts/{id}/dispositions",
21737 "title": "Removes dispositions from account",
21740 "title": "Example usage:",
21741 "content": "curl https://{domain}/api/sms/accounts/{id}/dispositions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
21745 "name": "RemoveDispositions",
21746 "group": "Sms_Accounts",
21747 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21748 "version": "0.0.0",
21749 "filename": "server/api/smsAccount/index.js",
21750 "groupTitle": "Sms_Accounts"
21754 "url": "/api/sms/accounts/{id}",
21755 "title": "Gets a single Account",
21758 "title": "Example usage:",
21759 "content": "curl https://{domain}/api/sms/accounts/{id} -v -u {name}:{password}",
21763 "name": "ShowAccounts",
21764 "group": "Sms_Accounts",
21765 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21766 "version": "0.0.0",
21767 "filename": "server/api/smsAccount/index.js",
21768 "groupTitle": "Sms_Accounts"
21772 "url": "/api/sms/messages/{id}/accept",
21773 "title": "Accepts message",
21776 "title": "Example usage:",
21777 "content": "curl https://{domain}/api/sms/messages/{id}/accept \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
21781 "name": "acceptMessage",
21782 "group": "Sms_Accounts",
21783 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21784 "version": "0.0.0",
21785 "filename": "server/api/smsMessage/index.js",
21786 "groupTitle": "Sms_Accounts"
21790 "url": "/api/sms/accounts/{id}/canned_answers",
21791 "title": "Creates new canned answer",
21794 "title": "Example usage:",
21795 "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",
21799 "name": "addAnswer",
21800 "group": "Sms_Accounts",
21822 "field": "description",
21835 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21836 "version": "0.0.0",
21837 "filename": "server/api/smsAccount/index.js",
21838 "groupTitle": "Sms_Accounts"
21842 "url": "/api/sms/accounts/{id}/applications",
21843 "title": "Creates new applications",
21846 "title": "Example usage:",
21847 "content": "curl https://{domain}/api/sms/accounts/{id}/applications -d '[{\"app\": \"queue\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
21851 "name": "addApplications",
21852 "group": "Sms_Accounts",
21860 "field": "priority",
21874 "field": "appdata",
21881 "field": "description",
21888 "field": "interval",
21894 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21895 "version": "0.0.0",
21896 "filename": "server/api/smsAccount/index.js",
21897 "groupTitle": "Sms_Accounts"
21901 "url": "/api/sms/accounts/{id}/dispositions",
21902 "title": "Creates new disposition",
21905 "title": "Example usage:",
21906 "content": "curl https://{domain}/api/sms/accounts/{id}/dispositions -d '{\"name\": \"vip\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
21910 "name": "addDisposition",
21911 "group": "Sms_Accounts",
21925 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21926 "version": "0.0.0",
21927 "filename": "server/api/smsAccount/index.js",
21928 "groupTitle": "Sms_Accounts"
21932 "url": "/api/sms/accounts/{id}/canned_answers",
21933 "title": "Gets account canned answers",
21936 "title": "Example usage:",
21937 "content": "curl https://{domain}/api/sms/accounts/{id}/canned_answers -v -u {name}:{password} -X GET",
21941 "name": "getAnswers",
21942 "group": "Sms_Accounts",
21943 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21944 "version": "0.0.0",
21945 "filename": "server/api/smsAccount/index.js",
21946 "groupTitle": "Sms_Accounts"
21950 "url": "/api/sms/accounts/{id}/applications",
21951 "title": "Gets account applications",
21954 "title": "Example usage:",
21955 "content": "curl https://{domain}/api/sms/accounts/{id}/applications -v -u {name}:{password} -X GET",
21959 "name": "getApplications",
21960 "group": "Sms_Accounts",
21961 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21962 "version": "0.0.0",
21963 "filename": "server/api/smsAccount/index.js",
21964 "groupTitle": "Sms_Accounts"
21968 "url": "/api/sms/accounts/{id}/dispositions",
21969 "title": "Gets account dispositions",
21972 "title": "Example usage:",
21973 "content": "curl https://{domain}/api/sms/accounts/{id}/dispositions -v -u {name}:{password} -X GET",
21977 "name": "getDispositions",
21978 "group": "Sms_Accounts",
21979 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21980 "version": "0.0.0",
21981 "filename": "server/api/smsAccount/index.js",
21982 "groupTitle": "Sms_Accounts"
21986 "url": "/api/sms/accounts/{id}/interactions",
21987 "title": "Gets Sms Account interactions",
21990 "title": "Example usage:",
21991 "content": "curl https://{domain}/api/sms/accounts/{id}/interactions -v -u {name}:{password} -X GET",
21995 "name": "getInteractions",
21996 "group": "Sms_Accounts",
21997 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
21998 "version": "0.0.0",
21999 "filename": "server/api/smsAccount/index.js",
22000 "groupTitle": "Sms_Accounts"
22004 "url": "/api/sms/accounts/{id}/notify",
22005 "title": "Notify new message",
22008 "title": "Example usage:",
22009 "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",
22014 "group": "Sms_Accounts",
22015 "description": "<p>Motion 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>",
22016 "version": "0.0.0",
22017 "filename": "server/api/smsAccount/index.js",
22018 "groupTitle": "Sms_Accounts"
22022 "url": "/api/sms/messages/{id}/reject",
22023 "title": "Rejects message",
22026 "title": "Example usage:",
22027 "content": "curl https://{domain}/api/sms/messages/{id}/reject \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
22031 "name": "rejectMessage",
22032 "group": "Sms_Accounts",
22033 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22034 "version": "0.0.0",
22035 "filename": "server/api/smsMessage/index.js",
22036 "groupTitle": "Sms_Accounts"
22040 "url": "/api/sms/accounts/{id}/send",
22041 "title": "Send new sms message",
22044 "title": "Example usage:",
22045 "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",
22050 "group": "Sms_Accounts",
22051 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22052 "version": "0.0.0",
22053 "filename": "server/api/smsAccount/index.js",
22054 "groupTitle": "Sms_Accounts"
22058 "url": "/api/sms/accounts/{id}/status",
22059 "title": "Receive message status as get request",
22062 "title": "Example usage:",
22063 "content": "curl https://{domain}/api/sms/accounts/{id}/status -H 'Content-Type: application/json' -v -X GET",
22067 "name": "statusMessage",
22068 "group": "Sms_Accounts",
22069 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22070 "version": "0.0.0",
22071 "filename": "server/api/smsAccount/index.js",
22072 "groupTitle": "Sms_Accounts"
22076 "url": "/api/sms/accounts/{id}/status",
22077 "title": "Receive message status",
22080 "title": "Example usage:",
22081 "content": "curl https://{domain}/api/sms/accounts/{id}/status -H 'Content-Type: application/json' -v -X POST",
22085 "name": "statusMessage",
22086 "group": "Sms_Accounts",
22087 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22088 "version": "0.0.0",
22089 "filename": "server/api/smsAccount/index.js",
22090 "groupTitle": "Sms_Accounts"
22094 "url": "/api/sms/messages/{id}/status",
22095 "title": "Receive message status",
22098 "title": "Example usage:",
22099 "content": "curl https://{domain}/api/sms/messages/{id}/status \\ \n -H 'Content-Type: application/json' -v -X POST",
22103 "name": "statusMessage",
22104 "group": "Sms_Accounts",
22105 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22106 "version": "0.0.0",
22107 "filename": "server/api/smsMessage/index.js",
22108 "groupTitle": "Sms_Accounts"
22112 "url": "/api/sms/accounts/{id}",
22113 "title": "Update an existing Account",
22116 "title": "Example usage:",
22117 "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",
22121 "name": "updateAccounts",
22122 "group": "Sms_Accounts",
22123 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22124 "version": "0.0.0",
22125 "filename": "server/api/smsAccount/index.js",
22126 "groupTitle": "Sms_Accounts"
22130 "url": "/api/sms/applications",
22131 "title": "Creates a new Application",
22134 "title": "Example usage:",
22135 "content": "curl https://{domain}/api/sms/applications -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
22139 "name": "CreateApplications",
22140 "group": "Sms_Applications",
22148 "field": "priority",
22162 "field": "appdata",
22169 "field": "description",
22176 "field": "interval",
22182 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22183 "version": "0.0.0",
22184 "filename": "server/api/smsApplication/index.js",
22185 "groupTitle": "Sms_Applications"
22189 "url": "/api/sms/applications/{id}",
22190 "title": "Deletes a Application",
22193 "title": "Example usage:",
22194 "content": "curl https://{domain}/api/sms/applications/{id} -v -u {name}:{password} -X DELETE",
22198 "name": "DeleteApplications",
22199 "group": "Sms_Applications",
22200 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22201 "version": "0.0.0",
22202 "filename": "server/api/smsApplication/index.js",
22203 "groupTitle": "Sms_Applications"
22207 "url": "/api/sms/applications",
22208 "title": "Gets a list of Applications",
22211 "title": "Example usage:",
22212 "content": "curl https://{domain}/api/sms/applications -v -u {name}:{password}",
22216 "name": "GetApplications",
22217 "group": "Sms_Applications",
22218 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
22219 "version": "0.0.0",
22220 "filename": "server/api/smsApplication/index.js",
22221 "groupTitle": "Sms_Applications"
22225 "url": "/api/sms/applications/{id}",
22226 "title": "Gets a single Application",
22229 "title": "Example usage:",
22230 "content": "curl https://{domain}/api/sms/applications/{id} -v -u {name}:{password}",
22234 "name": "ShowApplications",
22235 "group": "Sms_Applications",
22236 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22237 "version": "0.0.0",
22238 "filename": "server/api/smsApplication/index.js",
22239 "groupTitle": "Sms_Applications"
22243 "url": "/api/sms/applications/{id}",
22244 "title": "Update an existing Application",
22247 "title": "Example usage:",
22248 "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",
22252 "name": "updateApplications",
22253 "group": "Sms_Applications",
22254 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22255 "version": "0.0.0",
22256 "filename": "server/api/smsApplication/index.js",
22257 "groupTitle": "Sms_Applications"
22261 "url": "/api/sms/interactions/{id}/tags",
22262 "title": "Add tags to the interaction",
22265 "title": "Example usage:",
22266 "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",
22271 "group": "Sms_Interactions",
22272 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22273 "version": "0.0.0",
22274 "filename": "server/api/smsInteraction/index.js",
22275 "groupTitle": "Sms_Interactions"
22279 "url": "/api/sms/interactions",
22280 "title": "Creates a new Interaction",
22283 "title": "Example usage:",
22284 "content": "curl https://{domain}/api/sms/interactions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
22288 "name": "CreateInteractions",
22289 "group": "Sms_Interactions",
22304 "field": "closedAt",
22311 "field": "disposition",
22332 "field": "read1stAt",
22343 "field": "firstMsgDirection",
22350 "field": "lastMsgAt",
22361 "field": "lastMsgDirection",
22367 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22368 "version": "0.0.0",
22369 "filename": "server/api/smsInteraction/index.js",
22370 "groupTitle": "Sms_Interactions"
22374 "url": "/api/sms/interactions/{id}",
22375 "title": "Deletes a Interaction",
22378 "title": "Example usage:",
22379 "content": "curl https://{domain}/api/sms/interactions/{id} -v -u {name}:{password} -X DELETE",
22383 "name": "DeleteInteractions",
22384 "group": "Sms_Interactions",
22385 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22386 "version": "0.0.0",
22387 "filename": "server/api/smsInteraction/index.js",
22388 "groupTitle": "Sms_Interactions"
22392 "url": "/api/sms/interactions/describe",
22393 "title": "Gets table info about Interactions",
22396 "title": "Example usage:",
22397 "content": "curl https://{domain}/api/sms/interactions/describe -v -u {name}:{password}",
22401 "name": "DescribeInteractions",
22402 "group": "Sms_Interactions",
22403 "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>",
22404 "version": "0.0.0",
22405 "filename": "server/api/smsInteraction/index.js",
22406 "groupTitle": "Sms_Interactions"
22410 "url": "/api/sms/interactions",
22411 "title": "Gets a list of Interactions",
22414 "title": "Example usage:",
22415 "content": "curl https://{domain}/api/sms/interactions -v -u {name}:{password}",
22419 "name": "GetInteractions",
22420 "group": "Sms_Interactions",
22421 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
22422 "version": "0.0.0",
22423 "filename": "server/api/smsInteraction/index.js",
22424 "groupTitle": "Sms_Interactions"
22428 "url": "/api/sms/interactions/{id}/tags",
22429 "title": "Removes tags from interaction",
22432 "title": "Example usage:",
22433 "content": "curl https://{domain}/api/sms/interactions/{id}/tags?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
22437 "name": "RemoveTags",
22438 "group": "Sms_Interactions",
22439 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22440 "version": "0.0.0",
22441 "filename": "server/api/smsInteraction/index.js",
22442 "groupTitle": "Sms_Interactions"
22446 "url": "/api/sms/interactions/{id}",
22447 "title": "Gets a single Interaction",
22450 "title": "Example usage:",
22451 "content": "curl https://{domain}/api/sms/interactions/{id} -v -u {name}:{password}",
22455 "name": "ShowInteractions",
22456 "group": "Sms_Interactions",
22457 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22458 "version": "0.0.0",
22459 "filename": "server/api/smsInteraction/index.js",
22460 "groupTitle": "Sms_Interactions"
22464 "url": "/api/sms/interactions/{id}/messages",
22465 "title": "Creates new messages",
22468 "title": "Example usage:",
22469 "content": "curl https://{domain}/api/sms/interactions/{id}/messages -d '[{\"to\": \"+3901119886500\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
22473 "name": "addMessage",
22474 "group": "Sms_Interactions",
22500 "field": "direction",
22507 "field": "messageId",
22534 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22535 "version": "0.0.0",
22536 "filename": "server/api/smsInteraction/index.js",
22537 "groupTitle": "Sms_Interactions"
22541 "url": "/api/sms/interactions/{id}/download",
22542 "title": "Gets interaction",
22545 "title": "Example usage:",
22546 "content": "curl https://{domain}/api/sms/interactions/{id}/download -v -u {name}:{password} -X GET",
22550 "name": "download",
22551 "group": "Sms_Interactions",
22552 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22553 "version": "0.0.0",
22554 "filename": "server/api/smsInteraction/index.js",
22555 "groupTitle": "Sms_Interactions"
22559 "url": "/api/sms/interactions/{id}/messages",
22560 "title": "Gets interaction messages",
22563 "title": "Example usage:",
22564 "content": "curl https://{domain}/api/sms/interactions/{id}/messages -v -u {name}:{password} -X GET",
22568 "name": "getMessages",
22569 "group": "Sms_Interactions",
22570 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22571 "version": "0.0.0",
22572 "filename": "server/api/smsInteraction/index.js",
22573 "groupTitle": "Sms_Interactions"
22577 "url": "/api/sms/interactions/{id}",
22578 "title": "Update an existing Interaction",
22581 "title": "Example usage:",
22582 "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",
22586 "name": "updateInteractions",
22587 "group": "Sms_Interactions",
22588 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22589 "version": "0.0.0",
22590 "filename": "server/api/smsInteraction/index.js",
22591 "groupTitle": "Sms_Interactions"
22595 "url": "/api/sms/messages",
22596 "title": "Creates a new Message",
22599 "title": "Example usage:",
22600 "content": "curl https://{domain}/api/sms/messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
22604 "name": "CreateMessages",
22605 "group": "Sms_Messages",
22631 "field": "direction",
22638 "field": "messageId",
22665 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22666 "version": "0.0.0",
22667 "filename": "server/api/smsMessage/index.js",
22668 "groupTitle": "Sms_Messages"
22672 "url": "/api/sms/messages/{id}",
22673 "title": "Deletes a Message",
22676 "title": "Example usage:",
22677 "content": "curl https://{domain}/api/sms/messages/{id} -v -u {name}:{password} -X DELETE",
22681 "name": "DeleteMessages",
22682 "group": "Sms_Messages",
22683 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22684 "version": "0.0.0",
22685 "filename": "server/api/smsMessage/index.js",
22686 "groupTitle": "Sms_Messages"
22690 "url": "/api/sms/messages/describe",
22691 "title": "Gets table info about Messages",
22694 "title": "Example usage:",
22695 "content": "curl https://{domain}/api/sms/messages/describe -v -u {name}:{password}",
22699 "name": "DescribeMessages",
22700 "group": "Sms_Messages",
22701 "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>",
22702 "version": "0.0.0",
22703 "filename": "server/api/smsMessage/index.js",
22704 "groupTitle": "Sms_Messages"
22708 "url": "/api/sms/messages",
22709 "title": "Gets a list of Messages",
22712 "title": "Example usage:",
22713 "content": "curl https://{domain}/api/sms/messages -v -u {name}:{password}",
22717 "name": "GetMessages",
22718 "group": "Sms_Messages",
22719 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
22720 "version": "0.0.0",
22721 "filename": "server/api/smsMessage/index.js",
22722 "groupTitle": "Sms_Messages"
22726 "url": "/api/sms/messages/{id}",
22727 "title": "Gets a single Message",
22730 "title": "Example usage:",
22731 "content": "curl https://{domain}/api/sms/messages/{id} -v -u {name}:{password}",
22735 "name": "ShowMessages",
22736 "group": "Sms_Messages",
22737 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22738 "version": "0.0.0",
22739 "filename": "server/api/smsMessage/index.js",
22740 "groupTitle": "Sms_Messages"
22744 "url": "/api/sms/messages/{id}",
22745 "title": "Update an existing Message",
22748 "title": "Example usage:",
22749 "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",
22753 "name": "updateMessages",
22754 "group": "Sms_Messages",
22755 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22756 "version": "0.0.0",
22757 "filename": "server/api/smsMessage/index.js",
22758 "groupTitle": "Sms_Messages"
22762 "url": "/api/sms/reports/queue",
22763 "title": "Creates a new Sms Queue Report",
22766 "title": "Example usage:",
22767 "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",
22771 "name": "CreateSms_Queue_Reports",
22772 "group": "Sms_Queue_Reports",
22780 "field": "uniqueid",
22801 "field": "leaveAt",
22808 "field": "acceptAt",
22828 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22829 "version": "0.0.0",
22830 "filename": "server/api/smsQueueReport/index.js",
22831 "groupTitle": "Sms_Queue_Reports"
22835 "url": "/api/sms/reports/queue/{id}",
22836 "title": "Deletes a Sms Queue Report",
22839 "title": "Example usage:",
22840 "content": "curl https://{domain}/api/sms/reports/queue/{id} -v -u {name}:{password} -X DELETE",
22844 "name": "DeleteSms_Queue_Reports",
22845 "group": "Sms_Queue_Reports",
22846 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22847 "version": "0.0.0",
22848 "filename": "server/api/smsQueueReport/index.js",
22849 "groupTitle": "Sms_Queue_Reports"
22853 "url": "/api/sms/reports/queue/describe",
22854 "title": "Gets table info about Sms Queue Reports",
22857 "title": "Example usage:",
22858 "content": "curl https://{domain}/api/sms/reports/queue/describe -v -u {name}:{password}",
22862 "name": "DescribeSms_Queue_Reports",
22863 "group": "Sms_Queue_Reports",
22864 "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>",
22865 "version": "0.0.0",
22866 "filename": "server/api/smsQueueReport/index.js",
22867 "groupTitle": "Sms_Queue_Reports"
22871 "url": "/api/sms/reports/queue",
22872 "title": "Gets a list of Sms Queue Reports",
22875 "title": "Example usage:",
22876 "content": "curl https://{domain}/api/sms/reports/queue -v -u {name}:{password}",
22880 "name": "GetSms_Queue_Reports",
22881 "group": "Sms_Queue_Reports",
22882 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
22883 "version": "0.0.0",
22884 "filename": "server/api/smsQueueReport/index.js",
22885 "groupTitle": "Sms_Queue_Reports"
22889 "url": "/api/sms/reports/queue/{id}",
22890 "title": "Gets a single Sms Queue Report",
22893 "title": "Example usage:",
22894 "content": "curl https://{domain}/api/sms/reports/queue/{id} -v -u {name}:{password}",
22898 "name": "ShowSms_Queue_Reports",
22899 "group": "Sms_Queue_Reports",
22900 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22901 "version": "0.0.0",
22902 "filename": "server/api/smsQueueReport/index.js",
22903 "groupTitle": "Sms_Queue_Reports"
22907 "url": "/api/sms/reports/queue/{id}",
22908 "title": "Update an existing Sms Queue Report",
22911 "title": "Example usage:",
22912 "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",
22916 "name": "updateSms_Queue_Reports",
22917 "group": "Sms_Queue_Reports",
22918 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22919 "version": "0.0.0",
22920 "filename": "server/api/smsQueueReport/index.js",
22921 "groupTitle": "Sms_Queue_Reports"
22925 "url": "/api/sms/queues/{id}/users",
22926 "title": "Add agents to a queue",
22929 "title": "Example usage:",
22930 "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",
22934 "name": "AddAgents",
22935 "group": "Sms_Queues",
22936 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22937 "version": "0.0.0",
22938 "filename": "server/api/smsQueue/index.js",
22939 "groupTitle": "Sms_Queues"
22943 "url": "/api/sms/queues/{id}/teams",
22944 "title": "Add teams to a queue",
22947 "title": "Example usage:",
22948 "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",
22952 "name": "AddTeams",
22953 "group": "Sms_Queues",
22954 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
22955 "version": "0.0.0",
22956 "filename": "server/api/smsQueue/index.js",
22957 "groupTitle": "Sms_Queues"
22961 "url": "/api/sms/queues",
22962 "title": "Creates a new Queue",
22965 "title": "Example usage:",
22966 "content": "curl https://{domain}/api/sms/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
22970 "name": "CreateQueues",
22971 "group": "Sms_Queues",
22986 "field": "description",
22993 "field": "timeout",
23005 "field": "strategy",
23011 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23012 "version": "0.0.0",
23013 "filename": "server/api/smsQueue/index.js",
23014 "groupTitle": "Sms_Queues"
23018 "url": "/api/sms/queues/{id}",
23019 "title": "Deletes a Queue",
23022 "title": "Example usage:",
23023 "content": "curl https://{domain}/api/sms/queues/{id} -v -u {name}:{password} -X DELETE",
23027 "name": "DeleteQueues",
23028 "group": "Sms_Queues",
23029 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23030 "version": "0.0.0",
23031 "filename": "server/api/smsQueue/index.js",
23032 "groupTitle": "Sms_Queues"
23036 "url": "/api/sms/queues/describe",
23037 "title": "Gets table info about Queues",
23040 "title": "Example usage:",
23041 "content": "curl https://{domain}/api/sms/queues/describe -v -u {name}:{password}",
23045 "name": "DescribeQueues",
23046 "group": "Sms_Queues",
23047 "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>",
23048 "version": "0.0.0",
23049 "filename": "server/api/smsQueue/index.js",
23050 "groupTitle": "Sms_Queues"
23054 "url": "/api/sms/queues/{id}/users",
23055 "title": "Gets queue agents",
23058 "title": "Example usage:",
23059 "content": "curl https://{domain}/api/sms/queues/{id}/users -v -u {name}:{password} -X POST",
23063 "name": "GetAgents",
23064 "group": "Sms_Queues",
23065 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23066 "version": "0.0.0",
23067 "filename": "server/api/smsQueue/index.js",
23068 "groupTitle": "Sms_Queues"
23072 "url": "/api/sms/queues/{id}/members",
23073 "title": "GetMembers",
23076 "title": "Example usage:",
23077 "content": "curl https://{domain}/api/sms/queues/{id}/members -v -u {name}:{password}",
23081 "name": "GetMembers",
23082 "group": "Sms_Queues",
23083 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23084 "version": "0.0.0",
23085 "filename": "server/api/smsQueue/index.js",
23086 "groupTitle": "Sms_Queues"
23090 "url": "/api/sms/queues",
23091 "title": "Gets a list of Queues",
23094 "title": "Example usage:",
23095 "content": "curl https://{domain}/api/sms/queues -v -u {name}:{password}",
23099 "name": "GetQueues",
23100 "group": "Sms_Queues",
23101 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
23102 "version": "0.0.0",
23103 "filename": "server/api/smsQueue/index.js",
23104 "groupTitle": "Sms_Queues"
23108 "url": "/api/sms/queues/{id}/teams",
23109 "title": "Gets queues list",
23112 "title": "Example usage:",
23113 "content": "curl https://{domain}/api/sms/queues/{id}/teams -v -u {name}:{password}",
23117 "name": "GetTeams",
23118 "group": "Sms_Queues",
23119 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23120 "version": "0.0.0",
23121 "filename": "server/api/smsQueue/index.js",
23122 "groupTitle": "Sms_Queues"
23126 "url": "/api/sms/queues/{id}/users",
23127 "title": "Removes agents from a queue",
23130 "title": "Example usage:",
23131 "content": "curl https://{domain}/api/sms/queues/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
23135 "name": "RemoveAgents",
23136 "group": "Sms_Queues",
23137 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23138 "version": "0.0.0",
23139 "filename": "server/api/smsQueue/index.js",
23140 "groupTitle": "Sms_Queues"
23144 "url": "/api/sms/queues/{id}",
23145 "title": "Gets a single Queue",
23148 "title": "Example usage:",
23149 "content": "curl https://{domain}/api/sms/queues/{id} -v -u {name}:{password}",
23153 "name": "ShowQueues",
23154 "group": "Sms_Queues",
23155 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23156 "version": "0.0.0",
23157 "filename": "server/api/smsQueue/index.js",
23158 "groupTitle": "Sms_Queues"
23162 "url": "/api/sms/queues/{id}",
23163 "title": "Update an existing Queue",
23166 "title": "Example usage:",
23167 "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",
23171 "name": "updateQueues",
23172 "group": "Sms_Queues",
23173 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23174 "version": "0.0.0",
23175 "filename": "server/api/smsQueue/index.js",
23176 "groupTitle": "Sms_Queues"
23180 "url": "/api/sms/reports/transfer",
23181 "title": "Creates a new Sms Transfer Report",
23184 "title": "Example usage:",
23185 "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",
23189 "name": "CreateSms_Transfer_Reports",
23190 "group": "Sms_Transfer_Reports",
23198 "field": "uniqueid",
23217 "field": "transferredAt",
23223 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23224 "version": "0.0.0",
23225 "filename": "server/api/smsTransferReport/index.js",
23226 "groupTitle": "Sms_Transfer_Reports"
23230 "url": "/api/sms/reports/transfer/{id}",
23231 "title": "Deletes a Sms Transfer Report",
23234 "title": "Example usage:",
23235 "content": "curl https://{domain}/api/sms/reports/transfer/{id} -v -u {name}:{password} -X DELETE",
23239 "name": "DeleteSms_Transfer_Reports",
23240 "group": "Sms_Transfer_Reports",
23241 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23242 "version": "0.0.0",
23243 "filename": "server/api/smsTransferReport/index.js",
23244 "groupTitle": "Sms_Transfer_Reports"
23248 "url": "/api/sms/reports/transfer/describe",
23249 "title": "Gets table info about Sms Transfer Reports",
23252 "title": "Example usage:",
23253 "content": "curl https://{domain}/api/sms/reports/transfer/describe -v -u {name}:{password}",
23257 "name": "DescribeSms_Transfer_Reports",
23258 "group": "Sms_Transfer_Reports",
23259 "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>",
23260 "version": "0.0.0",
23261 "filename": "server/api/smsTransferReport/index.js",
23262 "groupTitle": "Sms_Transfer_Reports"
23266 "url": "/api/sms/reports/transfer",
23267 "title": "Gets a list of Sms Transfer Reports",
23270 "title": "Example usage:",
23271 "content": "curl https://{domain}/api/sms/reports/transfer -v -u {name}:{password}",
23275 "name": "GetSms_Transfer_Reports",
23276 "group": "Sms_Transfer_Reports",
23277 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
23278 "version": "0.0.0",
23279 "filename": "server/api/smsTransferReport/index.js",
23280 "groupTitle": "Sms_Transfer_Reports"
23284 "url": "/api/sms/reports/transfer/{id}",
23285 "title": "Gets a single Sms Transfer Report",
23288 "title": "Example usage:",
23289 "content": "curl https://{domain}/api/sms/reports/transfer/{id} -v -u {name}:{password}",
23293 "name": "ShowSms_Transfer_Reports",
23294 "group": "Sms_Transfer_Reports",
23295 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23296 "version": "0.0.0",
23297 "filename": "server/api/smsTransferReport/index.js",
23298 "groupTitle": "Sms_Transfer_Reports"
23302 "url": "/api/sms/reports/transfer/{id}",
23303 "title": "Update an existing Sms Transfer Report",
23306 "title": "Example usage:",
23307 "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",
23311 "name": "updateSms_Transfer_Reports",
23312 "group": "Sms_Transfer_Reports",
23313 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23314 "version": "0.0.0",
23315 "filename": "server/api/smsTransferReport/index.js",
23316 "groupTitle": "Sms_Transfer_Reports"
23320 "url": "/api/sounds",
23321 "title": "Gets a list of Sounds",
23324 "title": "Example usage:",
23325 "content": "curl https://{domain}/api/sounds -v -u {name}:{password}",
23329 "name": "GetSounds",
23331 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
23332 "version": "0.0.0",
23333 "filename": "server/api/sound/index.js",
23334 "groupTitle": "Sounds"
23338 "url": "/api/sounds/{id}",
23339 "title": "Gets a single Sound",
23342 "title": "Example usage:",
23343 "content": "curl https://{domain}/api/sounds/{id} -v -u {name}:{password}",
23347 "name": "ShowSounds",
23349 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23350 "version": "0.0.0",
23351 "filename": "server/api/sound/index.js",
23352 "groupTitle": "Sounds"
23356 "url": "/api/sounds",
23357 "title": "Create a new sound",
23360 "title": "Example usage:",
23361 "content": "curl https://{domain}/api/sounds -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
23365 "name": "addSound",
23367 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23368 "version": "0.0.0",
23369 "filename": "server/api/sound/index.js",
23370 "groupTitle": "Sounds"
23374 "url": "/api/sounds/{id}",
23375 "title": "Deletes a sound",
23378 "title": "Example usage:",
23379 "content": "curl https://{domain}/api/sounds/{id} -v -u {name}:{password} -X DELETE",
23383 "name": "destroySound",
23385 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23386 "version": "0.0.0",
23387 "filename": "server/api/sound/index.js",
23388 "groupTitle": "Sounds"
23392 "url": "/api/sounds/{id}/download",
23393 "title": "Download Sound",
23396 "title": "Example usage:",
23397 "content": "curl https://{domain}/api/sounds/{id}/download -v -u {name}:{password} -X GET",
23401 "name": "download",
23403 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23404 "version": "0.0.0",
23405 "filename": "server/api/sound/index.js",
23406 "groupTitle": "Sounds"
23410 "url": "/api/sounds",
23411 "title": "Update an existing new sound",
23414 "title": "Example usage:",
23415 "content": "curl https://{domain}/api/sounds -d '[\"name\": \"sound_name\", \"description\": \"sound_desc\"]' -v -u {name}:{password} -X PUT",
23419 "name": "updateSound",
23421 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23422 "version": "0.0.0",
23423 "filename": "server/api/sound/index.js",
23424 "groupTitle": "Sounds"
23428 "url": "/api/square/details/reports",
23429 "title": "Creates a new Square Detail Report",
23432 "title": "Example usage:",
23433 "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",
23437 "name": "CreateSquare_Detail_Reports",
23438 "group": "Square_Details_Reports",
23446 "field": "uniqueid",
23460 "field": "application",
23474 "field": "project_name",
23481 "field": "callerid",
23487 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23488 "version": "0.0.0",
23489 "filename": "server/api/squareReportDetail/index.js",
23490 "groupTitle": "Square_Details_Reports"
23494 "url": "/api/square/details/reports/{id}",
23495 "title": "Deletes a Square Detail Report",
23498 "title": "Example usage:",
23499 "content": "curl https://{domain}/api/square/details/reports/{id} -v -u {name}:{password} -X DELETE",
23503 "name": "DeleteSquare_Detail_Reports",
23504 "group": "Square_Details_Reports",
23505 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23506 "version": "0.0.0",
23507 "filename": "server/api/squareReportDetail/index.js",
23508 "groupTitle": "Square_Details_Reports"
23512 "url": "/api/square/details/reports/describe",
23513 "title": "Gets table info about Square Detail Reports",
23516 "title": "Example usage:",
23517 "content": "curl https://{domain}/api/square/details/reports/describe -v -u {name}:{password}",
23521 "name": "DescribeSquare_Detail_Reports",
23522 "group": "Square_Details_Reports",
23523 "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>",
23524 "version": "0.0.0",
23525 "filename": "server/api/squareReportDetail/index.js",
23526 "groupTitle": "Square_Details_Reports"
23530 "url": "/api/square/details/reports",
23531 "title": "Gets a list of Square Detail Reports",
23534 "title": "Example usage:",
23535 "content": "curl https://{domain}/api/square/details/reports -v -u {name}:{password}",
23539 "name": "GetSquare_Detail_Reports",
23540 "group": "Square_Details_Reports",
23541 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
23542 "version": "0.0.0",
23543 "filename": "server/api/squareReportDetail/index.js",
23544 "groupTitle": "Square_Details_Reports"
23548 "url": "/api/square/details/reports/{id}",
23549 "title": "Gets a single Square Detail Report",
23552 "title": "Example usage:",
23553 "content": "curl https://{domain}/api/square/details/reports/{id} -v -u {name}:{password}",
23557 "name": "ShowSquare_Detail_Reports",
23558 "group": "Square_Details_Reports",
23559 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23560 "version": "0.0.0",
23561 "filename": "server/api/squareReportDetail/index.js",
23562 "groupTitle": "Square_Details_Reports"
23566 "url": "/api/square/details/reports/{id}",
23567 "title": "Update an existing Square Detail Report",
23570 "title": "Example usage:",
23571 "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",
23575 "name": "updateSquare_Detail_Reports",
23576 "group": "Square_Details_Reports",
23577 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23578 "version": "0.0.0",
23579 "filename": "server/api/squareReportDetail/index.js",
23580 "groupTitle": "Square_Details_Reports"
23584 "url": "/api/square/messages",
23585 "title": "Creates a new Message",
23588 "title": "Example usage:",
23589 "content": "curl https://{domain}/api/square/messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
23593 "name": "CreateMessages",
23594 "group": "Square_Messages",
23602 "field": "uniqueid",
23620 "field": "direction",
23626 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23627 "version": "0.0.0",
23628 "filename": "server/api/squareMessage/index.js",
23629 "groupTitle": "Square_Messages"
23633 "url": "/api/square/messages/{id}",
23634 "title": "Deletes a Message",
23637 "title": "Example usage:",
23638 "content": "curl https://{domain}/api/square/messages/{id} -v -u {name}:{password} -X DELETE",
23642 "name": "DeleteMessages",
23643 "group": "Square_Messages",
23644 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23645 "version": "0.0.0",
23646 "filename": "server/api/squareMessage/index.js",
23647 "groupTitle": "Square_Messages"
23651 "url": "/api/square/messages",
23652 "title": "Gets a list of Messages",
23655 "title": "Example usage:",
23656 "content": "curl https://{domain}/api/square/messages -v -u {name}:{password}",
23660 "name": "GetMessages",
23661 "group": "Square_Messages",
23662 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
23663 "version": "0.0.0",
23664 "filename": "server/api/squareMessage/index.js",
23665 "groupTitle": "Square_Messages"
23669 "url": "/api/square/messages/{id}",
23670 "title": "Gets a single Message",
23673 "title": "Example usage:",
23674 "content": "curl https://{domain}/api/square/messages/{id} -v -u {name}:{password}",
23678 "name": "ShowMessages",
23679 "group": "Square_Messages",
23680 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23681 "version": "0.0.0",
23682 "filename": "server/api/squareMessage/index.js",
23683 "groupTitle": "Square_Messages"
23687 "url": "/api/square/messages/{id}",
23688 "title": "Update an existing Message",
23691 "title": "Example usage:",
23692 "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",
23696 "name": "updateMessages",
23697 "group": "Square_Messages",
23698 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23699 "version": "0.0.0",
23700 "filename": "server/api/squareMessage/index.js",
23701 "groupTitle": "Square_Messages"
23705 "url": "/api/square/odbc",
23706 "title": "Creates a new ODBC",
23709 "title": "Example usage:",
23710 "content": "curl https://{domain}/api/square/odbc -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
23714 "name": "CreateODBCs",
23715 "group": "Square_ODBC",
23737 "field": "description",
23743 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23744 "version": "0.0.0",
23745 "filename": "server/api/squareOdbc/index.js",
23746 "groupTitle": "Square_ODBC"
23750 "url": "/api/square/odbc/{id}",
23751 "title": "Deletes a ODBC",
23754 "title": "Example usage:",
23755 "content": "curl https://{domain}/api/square/odbc/{id} -v -u {name}:{password} -X DELETE",
23759 "name": "DeleteODBCs",
23760 "group": "Square_ODBC",
23761 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23762 "version": "0.0.0",
23763 "filename": "server/api/squareOdbc/index.js",
23764 "groupTitle": "Square_ODBC"
23768 "url": "/api/square/odbc",
23769 "title": "Gets a list of ODBCs",
23772 "title": "Example usage:",
23773 "content": "curl https://{domain}/api/square/odbc -v -u {name}:{password}",
23777 "name": "GetODBCs",
23778 "group": "Square_ODBC",
23779 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
23780 "version": "0.0.0",
23781 "filename": "server/api/squareOdbc/index.js",
23782 "groupTitle": "Square_ODBC"
23786 "url": "/api/square/odbc/{id}",
23787 "title": "Gets a single ODBC",
23790 "title": "Example usage:",
23791 "content": "curl https://{domain}/api/square/odbc/{id} -v -u {name}:{password}",
23795 "name": "ShowODBCs",
23796 "group": "Square_ODBC",
23797 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23798 "version": "0.0.0",
23799 "filename": "server/api/squareOdbc/index.js",
23800 "groupTitle": "Square_ODBC"
23804 "url": "/api/square/odbc/{id}/test",
23805 "title": "Test Odbc",
23808 "title": "Example usage:",
23809 "content": "curl https://{domain}/api/square/odbc/{id}/test -v -u {name}:{password} -X GET",
23814 "group": "Square_ODBC",
23815 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23816 "version": "0.0.0",
23817 "filename": "server/api/squareOdbc/index.js",
23818 "groupTitle": "Square_ODBC"
23822 "url": "/api/square/odbc/{id}",
23823 "title": "Update an existing ODBC",
23826 "title": "Example usage:",
23827 "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",
23831 "name": "updateODBCs",
23832 "group": "Square_ODBC",
23833 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23834 "version": "0.0.0",
23835 "filename": "server/api/squareOdbc/index.js",
23836 "groupTitle": "Square_ODBC"
23840 "url": "/api/square/projects",
23841 "title": "Creates a new Project",
23844 "title": "Example usage:",
23845 "content": "curl https://{domain}/api/square/projects -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
23849 "name": "CreateProjects",
23850 "group": "Square_Projects",
23865 "field": "description",
23879 "field": "preproduction",
23886 "field": "production",
23892 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23893 "version": "0.0.0",
23894 "filename": "server/api/squareProject/index.js",
23895 "groupTitle": "Square_Projects"
23899 "url": "/api/square/projects/{id}",
23900 "title": "Deletes a Project",
23903 "title": "Example usage:",
23904 "content": "curl https://{domain}/api/square/projects/{id} -v -u {name}:{password} -X DELETE",
23908 "name": "DeleteProjects",
23909 "group": "Square_Projects",
23910 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23911 "version": "0.0.0",
23912 "filename": "server/api/squareProject/index.js",
23913 "groupTitle": "Square_Projects"
23917 "url": "/api/square/projects",
23918 "title": "Gets a list of Projects",
23921 "title": "Example usage:",
23922 "content": "curl https://{domain}/api/square/projects -v -u {name}:{password}",
23926 "name": "GetProjects",
23927 "group": "Square_Projects",
23928 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
23929 "version": "0.0.0",
23930 "filename": "server/api/squareProject/index.js",
23931 "groupTitle": "Square_Projects"
23935 "url": "/api/square/projects/{id}",
23936 "title": "Gets a single Project",
23939 "title": "Example usage:",
23940 "content": "curl https://{domain}/api/square/projects/{id} -v -u {name}:{password}",
23944 "name": "ShowProjects",
23945 "group": "Square_Projects",
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/squareProject/index.js",
23949 "groupTitle": "Square_Projects"
23953 "url": "/api/square/projects/{id}/users",
23954 "title": "Adds user permissions to a Project",
23957 "title": "Example usage:",
23958 "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",
23962 "name": "addUsers",
23963 "group": "Square_Projects",
23964 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
23965 "version": "0.0.0",
23966 "filename": "server/api/squareProject/index.js",
23967 "groupTitle": "Square_Projects"
23971 "url": "/api/square/projects/{id}/users",
23972 "title": "Gets users permissions from Project",
23975 "title": "Example usage:",
23976 "content": "curl https://{domain}/api/square/projects/{id}/users -v -u {name}:{password} -X GET",
23980 "name": "getUsers",
23981 "group": "Square_Projects",
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/squareProject/index.js",
23985 "groupTitle": "Square_Projects"
23989 "url": "/api/square/projects/{id}/users",
23990 "title": "Removes user permissions from a Project",
23993 "title": "Example usage:",
23994 "content": "curl https://{domain}/api/square/projects/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
23998 "name": "removeUsers",
23999 "group": "Square_Projects",
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/squareProject/index.js",
24003 "groupTitle": "Square_Projects"
24007 "url": "/api/square/projects/{id}",
24008 "title": "Update an existing Project",
24011 "title": "Example usage:",
24012 "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",
24016 "name": "updateProjects",
24017 "group": "Square_Projects",
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/squareProject/index.js",
24021 "groupTitle": "Square_Projects"
24025 "url": "/api/square/recordings",
24026 "title": "Creates a new Recording",
24029 "title": "Example usage:",
24030 "content": "curl https://{domain}/api/square/recordings -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
24034 "name": "CreateRecordings",
24035 "group": "Square_Recordings",
24043 "field": "uniqueid",
24050 "field": "callerid",
24057 "field": "calleridname",
24064 "field": "context",
24071 "field": "extension",
24078 "field": "priority",
24085 "field": "accountcode",
24099 "field": "projectName",
24106 "field": "saveName",
24113 "field": "filename",
24120 "field": "savePath",
24133 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24134 "version": "0.0.0",
24135 "filename": "server/api/squareRecording/index.js",
24136 "groupTitle": "Square_Recordings"
24140 "url": "/api/square/recordings",
24141 "title": "Gets a list of Recordings",
24144 "title": "Example usage:",
24145 "content": "curl https://{domain}/api/square/recordings -v -u {name}:{password}",
24149 "name": "GetRecordings",
24150 "group": "Square_Recordings",
24151 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
24152 "version": "0.0.0",
24153 "filename": "server/api/squareRecording/index.js",
24154 "groupTitle": "Square_Recordings"
24158 "url": "/api/square/recordings/{id}",
24159 "title": "Gets a single Recording",
24162 "title": "Example usage:",
24163 "content": "curl https://{domain}/api/square/recordings/{id} -v -u {name}:{password}",
24167 "name": "ShowRecordings",
24168 "group": "Square_Recordings",
24169 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24170 "version": "0.0.0",
24171 "filename": "server/api/squareRecording/index.js",
24172 "groupTitle": "Square_Recordings"
24176 "url": "/api/square/recordings/{id}/delete",
24177 "title": "Delete recording",
24180 "title": "Example usage:",
24181 "content": "curl https://{domain}/api/square/recordings/{id}/delete -v -u {name}:{password} -X DELETE",
24186 "group": "Square_Recordings",
24187 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24188 "version": "0.0.0",
24189 "filename": "server/api/squareRecording/index.js",
24190 "groupTitle": "Square_Recordings"
24194 "url": "/api/square/recordings/{id}/download",
24195 "title": "Download Recording",
24198 "title": "Example usage:",
24199 "content": "curl https://{domain}/api/square/recordings/{id}/download -v -u {name}:{password} -X GET",
24203 "name": "download",
24204 "group": "Square_Recordings",
24205 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24206 "version": "0.0.0",
24207 "filename": "server/api/squareRecording/index.js",
24208 "groupTitle": "Square_Recordings"
24212 "url": "/api/square/recordings/{id}",
24213 "title": "Update an existing Recording",
24216 "title": "Example usage:",
24217 "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",
24221 "name": "updateRecordings",
24222 "group": "Square_Recordings",
24223 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24224 "version": "0.0.0",
24225 "filename": "server/api/squareRecording/index.js",
24226 "groupTitle": "Square_Recordings"
24230 "url": "/api/square/reports",
24231 "title": "Creates a new Square Report",
24234 "title": "Example usage:",
24235 "content": "curl https://{domain}/api/square/reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
24239 "name": "CreateSquare_Reports",
24240 "group": "Square_Reports",
24248 "field": "network",
24255 "field": "network_script",
24262 "field": "request",
24269 "field": "channel",
24276 "field": "language",
24290 "field": "uniqueid",
24297 "field": "version",
24304 "field": "callerid",
24311 "field": "calleridname",
24318 "field": "callingpres",
24325 "field": "callingani2",
24332 "field": "callington",
24339 "field": "callingtns",
24360 "field": "context",
24367 "field": "extension",
24374 "field": "priority",
24381 "field": "enhanced",
24388 "field": "accountcode",
24395 "field": "threadid",
24402 "field": "project_name",
24416 "field": "leaveAt",
24429 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24430 "version": "0.0.0",
24431 "filename": "server/api/squareReport/index.js",
24432 "groupTitle": "Square_Reports"
24436 "url": "/api/square/reports/{id}",
24437 "title": "Deletes a Square Report",
24440 "title": "Example usage:",
24441 "content": "curl https://{domain}/api/square/reports/{id} -v -u {name}:{password} -X DELETE",
24445 "name": "DeleteSquare_Reports",
24446 "group": "Square_Reports",
24447 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24448 "version": "0.0.0",
24449 "filename": "server/api/squareReport/index.js",
24450 "groupTitle": "Square_Reports"
24454 "url": "/api/square/reports/describe",
24455 "title": "Gets table info about Square Reports",
24458 "title": "Example usage:",
24459 "content": "curl https://{domain}/api/square/reports/describe -v -u {name}:{password}",
24463 "name": "DescribeSquare_Reports",
24464 "group": "Square_Reports",
24465 "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>",
24466 "version": "0.0.0",
24467 "filename": "server/api/squareReport/index.js",
24468 "groupTitle": "Square_Reports"
24472 "url": "/api/square/reports",
24473 "title": "Gets a list of Square Reports",
24476 "title": "Example usage:",
24477 "content": "curl https://{domain}/api/square/reports -v -u {name}:{password}",
24481 "name": "GetSquare_Reports",
24482 "group": "Square_Reports",
24483 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
24484 "version": "0.0.0",
24485 "filename": "server/api/squareReport/index.js",
24486 "groupTitle": "Square_Reports"
24490 "url": "/api/square/reports/{id}",
24491 "title": "Gets a single Square Report",
24494 "title": "Example usage:",
24495 "content": "curl https://{domain}/api/square/reports/{id} -v -u {name}:{password}",
24499 "name": "ShowSquare_Reports",
24500 "group": "Square_Reports",
24501 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24502 "version": "0.0.0",
24503 "filename": "server/api/squareReport/index.js",
24504 "groupTitle": "Square_Reports"
24508 "url": "/api/square/reports/{id}",
24509 "title": "Update an existing Square Report",
24512 "title": "Example usage:",
24513 "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",
24517 "name": "updateSquare_Reports",
24518 "group": "Square_Reports",
24519 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24520 "version": "0.0.0",
24521 "filename": "server/api/squareReport/index.js",
24522 "groupTitle": "Square_Reports"
24526 "url": "/api/integrations/sugarcrm/configurations",
24527 "title": "Creates a new SugarCRM Configuration",
24530 "title": "Example usage:",
24531 "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",
24535 "name": "CreateSugarCRM_Configurations",
24536 "group": "SugarCRM_Configurations",
24551 "field": "description",
24557 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24558 "version": "0.0.0",
24559 "filename": "server/api/intSugarcrmConfiguration/index.js",
24560 "groupTitle": "SugarCRM_Configurations"
24564 "url": "/api/integrations/sugarcrm/configurations/{id}",
24565 "title": "Deletes a SugarCRM Configuration",
24568 "title": "Example usage:",
24569 "content": "curl https://{domain}/api/integrations/sugarcrm/configurations/{id} -v -u {name}:{password} -X DELETE",
24573 "name": "DeleteSugarCRM_Configurations",
24574 "group": "SugarCRM_Configurations",
24575 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <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/intSugarcrmConfiguration/index.js",
24578 "groupTitle": "SugarCRM_Configurations"
24582 "url": "/api/integrations/sugarcrm/configurations",
24583 "title": "Gets a list of SugarCRM Configurations",
24586 "title": "Example usage:",
24587 "content": "curl https://{domain}/api/integrations/sugarcrm/configurations -v -u {name}:{password}",
24591 "name": "GetSugarCRM_Configurations",
24592 "group": "SugarCRM_Configurations",
24593 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
24594 "version": "0.0.0",
24595 "filename": "server/api/intSugarcrmConfiguration/index.js",
24596 "groupTitle": "SugarCRM_Configurations"
24600 "url": "/api/integrations/sugarcrm/configurations/{id}",
24601 "title": "Gets a single SugarCRM Configuration",
24604 "title": "Example usage:",
24605 "content": "curl https://{domain}/api/integrations/sugarcrm/configurations/{id} -v -u {name}:{password}",
24609 "name": "ShowSugarCRM_Configurations",
24610 "group": "SugarCRM_Configurations",
24611 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24612 "version": "0.0.0",
24613 "filename": "server/api/intSugarcrmConfiguration/index.js",
24614 "groupTitle": "SugarCRM_Configurations"
24618 "url": "/api/integrations/sugarcrm/configurations/{id}",
24619 "title": "Update an existing SugarCRM Configuration",
24622 "title": "Example usage:",
24623 "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",
24627 "name": "updateSugarCRM_Configurations",
24628 "group": "SugarCRM_Configurations",
24629 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24630 "version": "0.0.0",
24631 "filename": "server/api/intSugarcrmConfiguration/index.js",
24632 "groupTitle": "SugarCRM_Configurations"
24636 "url": "/api/integrations/sugarcrm/accounts",
24637 "title": "Creates a new Sugarcrm Account",
24640 "title": "Example usage:",
24641 "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",
24645 "name": "CreateSugarcrm_Accounts",
24646 "group": "Sugarcrm_Accounts",
24661 "field": "description",
24668 "field": "username",
24675 "field": "password",
24682 "field": "remoteUri",
24689 "field": "serverUrl",
24695 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24696 "version": "0.0.0",
24697 "filename": "server/api/intSugarcrmAccount/index.js",
24698 "groupTitle": "Sugarcrm_Accounts"
24702 "url": "/api/integrations/sugarcrm/accounts/{id}",
24703 "title": "Deletes a Sugarcrm Account",
24706 "title": "Example usage:",
24707 "content": "curl https://{domain}/api/integrations/sugarcrm/accounts/{id} -v -u {name}:{password} -X DELETE",
24711 "name": "DeleteSugarcrm_Accounts",
24712 "group": "Sugarcrm_Accounts",
24713 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24714 "version": "0.0.0",
24715 "filename": "server/api/intSugarcrmAccount/index.js",
24716 "groupTitle": "Sugarcrm_Accounts"
24720 "url": "/api/integrations/sugarcrm/accounts",
24721 "title": "Gets a list of Sugarcrm Accounts",
24724 "title": "Example usage:",
24725 "content": "curl https://{domain}/api/integrations/sugarcrm/accounts -v -u {name}:{password}",
24729 "name": "GetSugarcrm_Accounts",
24730 "group": "Sugarcrm_Accounts",
24731 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
24732 "version": "0.0.0",
24733 "filename": "server/api/intSugarcrmAccount/index.js",
24734 "groupTitle": "Sugarcrm_Accounts"
24738 "url": "/api/integrations/sugarcrm/accounts/{id}",
24739 "title": "Gets a single Sugarcrm Account",
24742 "title": "Example usage:",
24743 "content": "curl https://{domain}/api/integrations/sugarcrm/accounts/{id} -v -u {name}:{password}",
24747 "name": "ShowSugarcrm_Accounts",
24748 "group": "Sugarcrm_Accounts",
24749 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24750 "version": "0.0.0",
24751 "filename": "server/api/intSugarcrmAccount/index.js",
24752 "groupTitle": "Sugarcrm_Accounts"
24756 "url": "/api/integrations/sugarcrm/accounts/{id}/configurations",
24757 "title": "Creates new configuration",
24760 "title": "Example usage:",
24761 "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",
24765 "name": "addConfiguration",
24766 "group": "Sugarcrm_Accounts",
24767 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24768 "version": "0.0.0",
24769 "filename": "server/api/intSugarcrmAccount/index.js",
24770 "groupTitle": "Sugarcrm_Accounts"
24774 "url": "/api/integrations/sugarcrm/accounts/{id}/configurations",
24775 "title": "Gets account configurations",
24778 "title": "Example usage:",
24779 "content": "curl https://{domain}/api/integrations/sugarcrm/accounts/{id}/configurations -v -u {name}:{password} -X GET",
24783 "name": "getConfigurations",
24784 "group": "Sugarcrm_Accounts",
24785 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24786 "version": "0.0.0",
24787 "filename": "server/api/intSugarcrmAccount/index.js",
24788 "groupTitle": "Sugarcrm_Accounts"
24792 "url": "/api/integrations/sugarcrm/accounts/{id}/fields",
24793 "title": "Gets account fields",
24796 "title": "Example usage:",
24797 "content": "curl https://{domain}/api/integrations/sugarcrm/accounts/{id}/fields -v -u {name}:{password} -X GET",
24801 "name": "getFields",
24802 "group": "Sugarcrm_Accounts",
24803 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24804 "version": "0.0.0",
24805 "filename": "server/api/intSugarcrmAccount/index.js",
24806 "groupTitle": "Sugarcrm_Accounts"
24810 "url": "/api/integrations/sugarcrm/accounts/{id}",
24811 "title": "Update an existing Sugarcrm Account",
24814 "title": "Example usage:",
24815 "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",
24819 "name": "updateSugarcrm_Accounts",
24820 "group": "Sugarcrm_Accounts",
24821 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24822 "version": "0.0.0",
24823 "filename": "server/api/intSugarcrmAccount/index.js",
24824 "groupTitle": "Sugarcrm_Accounts"
24828 "url": "/api/integrations/sugarcrm/configurations/{id}/descriptions",
24829 "title": "Gets configurations descriptions",
24832 "title": "Example usage:",
24833 "content": "curl https://{domain}/api/integrations/sugarcrm/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
24837 "name": "getDescriptions",
24838 "group": "Sugarcrm_Configurations",
24839 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24840 "version": "0.0.0",
24841 "filename": "server/api/intSugarcrmConfiguration/index.js",
24842 "groupTitle": "Sugarcrm_Configurations"
24846 "url": "/api/integrations/sugarcrm/configurations/{id}/fields",
24847 "title": "Gets configurations fields",
24850 "title": "Example usage:",
24851 "content": "curl https://{domain}/api/integrations/sugarcrm/configurations/{id}/fields -v -u {name}:{password} -X GET",
24855 "name": "getFields",
24856 "group": "Sugarcrm_Configurations",
24857 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24858 "version": "0.0.0",
24859 "filename": "server/api/intSugarcrmConfiguration/index.js",
24860 "groupTitle": "Sugarcrm_Configurations"
24864 "url": "/api/integrations/sugarcrm/configurations/{id}/subjects",
24865 "title": "Gets configurations subjects",
24868 "title": "Example usage:",
24869 "content": "curl https://{domain}/api/integrations/sugarcrm/configurations/{id}/subjects -v -u {name}:{password} -X GET",
24873 "name": "getSubjects",
24874 "group": "Sugarcrm_Configurations",
24875 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24876 "version": "0.0.0",
24877 "filename": "server/api/intSugarcrmConfiguration/index.js",
24878 "groupTitle": "Sugarcrm_Configurations"
24882 "url": "/api/integrations/sugarcrm/fields",
24883 "title": "Creates a new Sugarcrm Field",
24886 "title": "Example usage:",
24887 "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",
24891 "name": "CreateSugarcrm_Fields",
24892 "group": "Sugarcrm_Fields",
24902 "\"customVariable\"",
24913 "field": "content",
24929 "\"customVariable\""
24932 "field": "keyType",
24939 "field": "keyContent",
24946 "field": "idField",
24953 "field": "nameField",
24960 "field": "customField",
24967 "field": "variableName",
24973 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24974 "version": "0.0.0",
24975 "filename": "server/api/intSugarcrmField/index.js",
24976 "groupTitle": "Sugarcrm_Fields"
24980 "url": "/api/integrations/sugarcrm/fields/{id}",
24981 "title": "Deletes a Sugarcrm Field",
24984 "title": "Example usage:",
24985 "content": "curl https://{domain}/api/integrations/sugarcrm/fields/{id} -v -u {name}:{password} -X DELETE",
24989 "name": "DeleteSugarcrm_Fields",
24990 "group": "Sugarcrm_Fields",
24991 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
24992 "version": "0.0.0",
24993 "filename": "server/api/intSugarcrmField/index.js",
24994 "groupTitle": "Sugarcrm_Fields"
24998 "url": "/api/integrations/sugarcrm/fields",
24999 "title": "Gets a list of Sugarcrm Fields",
25002 "title": "Example usage:",
25003 "content": "curl https://{domain}/api/integrations/sugarcrm/fields -v -u {name}:{password}",
25007 "name": "GetSugarcrm_Fields",
25008 "group": "Sugarcrm_Fields",
25009 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
25010 "version": "0.0.0",
25011 "filename": "server/api/intSugarcrmField/index.js",
25012 "groupTitle": "Sugarcrm_Fields"
25016 "url": "/api/integrations/sugarcrm/fields/{id}",
25017 "title": "Gets a single Sugarcrm Field",
25020 "title": "Example usage:",
25021 "content": "curl https://{domain}/api/integrations/sugarcrm/fields/{id} -v -u {name}:{password}",
25025 "name": "ShowSugarcrm_Fields",
25026 "group": "Sugarcrm_Fields",
25027 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25028 "version": "0.0.0",
25029 "filename": "server/api/intSugarcrmField/index.js",
25030 "groupTitle": "Sugarcrm_Fields"
25034 "url": "/api/integrations/sugarcrm/fields/{id}",
25035 "title": "Update an existing Sugarcrm Field",
25038 "title": "Example usage:",
25039 "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",
25043 "name": "updateSugarcrm_Fields",
25044 "group": "Sugarcrm_Fields",
25045 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25046 "version": "0.0.0",
25047 "filename": "server/api/intSugarcrmField/index.js",
25048 "groupTitle": "Sugarcrm_Fields"
25052 "url": "/api/system",
25053 "title": "Gets system information",
25056 "title": "Example usage:",
25057 "content": "curl https://{domain}/api/system -v -u {name}:{password}",
25061 "name": "GetSystemInformation",
25062 "group": "System_Information",
25063 "description": "<p>Motion returns the system information.</p>",
25064 "version": "0.0.0",
25065 "filename": "server/api/system/index.js",
25066 "groupTitle": "System_Information"
25070 "url": "/api/system/process",
25071 "title": "Gets system information",
25074 "title": "Example usage:",
25075 "content": "curl https://{domain}/api/system -v -u {name}:{password}",
25079 "name": "GetSystemInformation",
25080 "group": "System_Information",
25081 "description": "<p>Motion returns the system information.</p>",
25082 "version": "0.0.0",
25083 "filename": "server/api/system/index.js",
25084 "groupTitle": "System_Information"
25088 "url": "/api/tags",
25089 "title": "Creates a new Tag",
25092 "title": "Example usage:",
25093 "content": "curl https://{domain}/api/tags -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
25097 "name": "CreateTags",
25120 "field": "description",
25126 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25127 "version": "0.0.0",
25128 "filename": "server/api/tag/index.js",
25129 "groupTitle": "Tags"
25133 "url": "/api/tags/{id}",
25134 "title": "Deletes a Tag",
25137 "title": "Example usage:",
25138 "content": "curl https://{domain}/api/tags/{id} -v -u {name}:{password} -X DELETE",
25142 "name": "DeleteTags",
25144 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25145 "version": "0.0.0",
25146 "filename": "server/api/tag/index.js",
25147 "groupTitle": "Tags"
25151 "url": "/api/tags",
25152 "title": "Gets a list of Tags",
25155 "title": "Example usage:",
25156 "content": "curl https://{domain}/api/tags -v -u {name}:{password}",
25162 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
25163 "version": "0.0.0",
25164 "filename": "server/api/tag/index.js",
25165 "groupTitle": "Tags"
25169 "url": "/api/tags/{id}",
25170 "title": "Gets a single Tag",
25173 "title": "Example usage:",
25174 "content": "curl https://{domain}/api/tags/{id} -v -u {name}:{password}",
25178 "name": "ShowTags",
25180 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25181 "version": "0.0.0",
25182 "filename": "server/api/tag/index.js",
25183 "groupTitle": "Tags"
25187 "url": "/api/tags/{id}",
25188 "title": "Update an existing Tag",
25191 "title": "Example usage:",
25192 "content": "curl https://{domain}/api/tags/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
25196 "name": "updateTags",
25198 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25199 "version": "0.0.0",
25200 "filename": "server/api/tag/index.js",
25201 "groupTitle": "Tags"
25205 "url": "/api/teams/{id}/queues",
25206 "title": "Add queues to a team",
25209 "title": "Example usage:",
25210 "content": "curl https://{domain}/api/teams/{id}/queues -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
25214 "name": "AddQueues",
25216 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25217 "version": "0.0.0",
25218 "filename": "server/api/team/index.js",
25219 "groupTitle": "Teams"
25223 "url": "/api/teams",
25224 "title": "Creates a new Team",
25227 "title": "Example usage:",
25228 "content": "curl https://{domain}/api/teams -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
25232 "name": "CreateTeams",
25248 "field": "description",
25254 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25255 "version": "0.0.0",
25256 "filename": "server/api/team/index.js",
25257 "groupTitle": "Teams"
25261 "url": "/api/teams/{id}",
25262 "title": "Deletes a Team",
25265 "title": "Example usage:",
25266 "content": "curl https://{domain}/api/teams/{id} -v -u {name}:{password} -X DELETE",
25270 "name": "DeleteTeams",
25272 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25273 "version": "0.0.0",
25274 "filename": "server/api/team/index.js",
25275 "groupTitle": "Teams"
25279 "url": "/api/teams/{id}/users",
25280 "title": "Gets agents from team",
25283 "title": "Example usage:",
25284 "content": "curl https://{domain}/api/teams/{id}/users -v -u {name}:{password} -X GET",
25288 "name": "GetAgents",
25290 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25291 "version": "0.0.0",
25292 "filename": "server/api/team/index.js",
25293 "groupTitle": "Teams"
25297 "url": "/api/teams/{id}/queues?channel={channel}",
25298 "title": "Gets Queues list",
25301 "title": "Example usage:",
25302 "content": "curl https://{domain}/api/teams/{id}/queues?channel={channel} -v -u {name}:{password}",
25306 "name": "GetQueues",
25308 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25309 "version": "0.0.0",
25310 "filename": "server/api/team/index.js",
25311 "groupTitle": "Teams"
25315 "url": "/api/teams",
25316 "title": "Gets a list of Teams",
25319 "title": "Example usage:",
25320 "content": "curl https://{domain}/api/teams -v -u {name}:{password}",
25324 "name": "GetTeams",
25326 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
25327 "version": "0.0.0",
25328 "filename": "server/api/team/index.js",
25329 "groupTitle": "Teams"
25333 "url": "/api/teams/{id}/users",
25334 "title": "Removes agents from a team",
25337 "title": "Example usage:",
25338 "content": "curl https://{domain}/api/teams/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
25342 "name": "RemoveAgents",
25344 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25345 "version": "0.0.0",
25346 "filename": "server/api/team/index.js",
25347 "groupTitle": "Teams"
25351 "url": "/api/teams/{id}/queues",
25352 "title": "Remove queues to a team",
25355 "title": "Example usage:",
25356 "content": "curl https://{domain}/api/teams/{id}/queues?channel=voice&ids=1&ids=2 -v -u {name}:{password} -X DELETE",
25360 "name": "RemoveQueues",
25362 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25363 "version": "0.0.0",
25364 "filename": "server/api/team/index.js",
25365 "groupTitle": "Teams"
25369 "url": "/api/fax/queues/{id}/teams",
25370 "title": "Remove teams from a queue",
25373 "title": "Example usage:",
25374 "content": "curl https://{domain}/api/fax/queues/{id}/teams -v -u {name}:{password} -X DELETE",
25378 "name": "RemoveTeams",
25380 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25381 "version": "0.0.0",
25382 "filename": "server/api/faxQueue/index.js",
25383 "groupTitle": "Teams"
25387 "url": "/api/mail/queues/{id}/teams",
25388 "title": "Remove teams from a queue",
25391 "title": "Example usage:",
25392 "content": "curl https://{domain}/api/mail/queues/{id}/teams -v -u {name}:{password} -X DELETE",
25396 "name": "RemoveTeams",
25398 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25399 "version": "0.0.0",
25400 "filename": "server/api/mailQueue/index.js",
25401 "groupTitle": "Teams"
25405 "url": "/api/voice/queues/{id}/teams",
25406 "title": "Remove teams from a queue",
25409 "title": "Example usage:",
25410 "content": "curl https://{domain}/api/voice/queues/{id}/teams -v -u {name}:{password} -X DELETE",
25414 "name": "RemoveTeams",
25416 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25417 "version": "0.0.0",
25418 "filename": "server/api/voiceQueue/index.js",
25419 "groupTitle": "Teams"
25423 "url": "/api/chat/queues/{id}/teams",
25424 "title": "Remove teams from a queue",
25427 "title": "Example usage:",
25428 "content": "curl https://{domain}/api/chat/queues/{id}/teams -v -u {name}:{password} -X DELETE",
25432 "name": "RemoveTeams",
25434 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25435 "version": "0.0.0",
25436 "filename": "server/api/chatQueue/index.js",
25437 "groupTitle": "Teams"
25441 "url": "/api/sms/queues/{id}/teams",
25442 "title": "Remove teams from a queue",
25445 "title": "Example usage:",
25446 "content": "curl https://{domain}/api/sms/queues/{id}/teams -v -u {name}:{password} -X DELETE",
25450 "name": "RemoveTeams",
25452 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25453 "version": "0.0.0",
25454 "filename": "server/api/smsQueue/index.js",
25455 "groupTitle": "Teams"
25459 "url": "/api/openchannel/queues/{id}/teams",
25460 "title": "Remove teams from a queue",
25463 "title": "Example usage:",
25464 "content": "curl https://{domain}/api/openchannel/queues/{id}/teams -v -u {name}:{password} -X DELETE",
25468 "name": "RemoveTeams",
25470 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25471 "version": "0.0.0",
25472 "filename": "server/api/openchannelQueue/index.js",
25473 "groupTitle": "Teams"
25477 "url": "/api/teams/{id}",
25478 "title": "Gets a single Team",
25481 "title": "Example usage:",
25482 "content": "curl https://{domain}/api/teams/{id} -v -u {name}:{password}",
25486 "name": "ShowTeams",
25488 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25489 "version": "0.0.0",
25490 "filename": "server/api/team/index.js",
25491 "groupTitle": "Teams"
25495 "url": "/api/teams/{id}/users",
25496 "title": "Adds agents to a team",
25499 "title": "Example usage:",
25500 "content": "curl https://{domain}/api/teams/{id}/users -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
25504 "name": "addAgents",
25506 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25507 "version": "0.0.0",
25508 "filename": "server/api/team/index.js",
25509 "groupTitle": "Teams"
25513 "url": "/api/teams/{id}",
25514 "title": "Update an existing Team",
25517 "title": "Example usage:",
25518 "content": "curl https://{domain}/api/teams/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
25522 "name": "updateTeams",
25524 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25525 "version": "0.0.0",
25526 "filename": "server/api/team/index.js",
25527 "groupTitle": "Teams"
25531 "url": "/api/templates",
25532 "title": "Creates a new Template",
25535 "title": "Example usage:",
25536 "content": "curl https://{domain}/api/templates -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
25540 "name": "CreateTemplates",
25541 "group": "Templates",
25556 "field": "description",
25569 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25570 "version": "0.0.0",
25571 "filename": "server/api/template/index.js",
25572 "groupTitle": "Templates"
25576 "url": "/api/templates/{id}",
25577 "title": "Deletes a Template",
25580 "title": "Example usage:",
25581 "content": "curl https://{domain}/api/templates/{id} -v -u {name}:{password} -X DELETE",
25585 "name": "DeleteTemplates",
25586 "group": "Templates",
25587 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25588 "version": "0.0.0",
25589 "filename": "server/api/template/index.js",
25590 "groupTitle": "Templates"
25594 "url": "/api/templates",
25595 "title": "Gets a list of Templates",
25598 "title": "Example usage:",
25599 "content": "curl https://{domain}/api/templates -v -u {name}:{password}",
25603 "name": "GetTemplates",
25604 "group": "Templates",
25605 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
25606 "version": "0.0.0",
25607 "filename": "server/api/template/index.js",
25608 "groupTitle": "Templates"
25612 "url": "/api/templates/{id}",
25613 "title": "Gets a single Template",
25616 "title": "Example usage:",
25617 "content": "curl https://{domain}/api/templates/{id} -v -u {name}:{password}",
25621 "name": "ShowTemplates",
25622 "group": "Templates",
25623 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25624 "version": "0.0.0",
25625 "filename": "server/api/template/index.js",
25626 "groupTitle": "Templates"
25630 "url": "/api/templates/{id}",
25631 "title": "Update an existing Template",
25634 "title": "Example usage:",
25635 "content": "curl https://{domain}/api/templates/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
25639 "name": "updateTemplates",
25640 "group": "Templates",
25641 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25642 "version": "0.0.0",
25643 "filename": "server/api/template/index.js",
25644 "groupTitle": "Templates"
25648 "url": "/api/triggers",
25649 "title": "Creates a new Trigger",
25652 "title": "Example usage:",
25653 "content": "curl https://{domain}/api/triggers -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
25657 "name": "CreateTriggers",
25658 "group": "Triggers",
25673 "field": "channel",
25680 "field": "description",
25693 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25694 "version": "0.0.0",
25695 "filename": "server/api/trigger/index.js",
25696 "groupTitle": "Triggers"
25700 "url": "/api/triggers/{id}",
25701 "title": "Deletes a Trigger",
25704 "title": "Example usage:",
25705 "content": "curl https://{domain}/api/triggers/{id} -v -u {name}:{password} -X DELETE",
25709 "name": "DeleteTriggers",
25710 "group": "Triggers",
25711 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25712 "version": "0.0.0",
25713 "filename": "server/api/trigger/index.js",
25714 "groupTitle": "Triggers"
25718 "url": "/api/triggers",
25719 "title": "Gets a list of Triggers",
25722 "title": "Example usage:",
25723 "content": "curl https://{domain}/api/triggers -v -u {name}:{password}",
25727 "name": "GetTriggers",
25728 "group": "Triggers",
25729 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
25730 "version": "0.0.0",
25731 "filename": "server/api/trigger/index.js",
25732 "groupTitle": "Triggers"
25736 "url": "/api/triggers/{id}",
25737 "title": "Gets a single Trigger",
25740 "title": "Example usage:",
25741 "content": "curl https://{domain}/api/triggers/{id} -v -u {name}:{password}",
25745 "name": "ShowTriggers",
25746 "group": "Triggers",
25747 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25748 "version": "0.0.0",
25749 "filename": "server/api/trigger/index.js",
25750 "groupTitle": "Triggers"
25754 "url": "/api/triggers/{id}/actions",
25755 "title": "Creates new actions",
25758 "title": "Example usage:",
25759 "content": "curl https://{domain}/api/triggers/{id}/actions -d '{\"action\": \"contactManager\",\"data1\": \"1\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
25763 "name": "addAction",
25764 "group": "Triggers",
25780 "description": "<p>Allowed values: contactManager, integration, motionbar, jscripty, urlForward, browser, bot, script</p>"
25787 "description": "<p>contactManager[ListId], integration[intName(zendesk)], motionbar[Popup(0),URL(1),WinApp(2)], urlForward[GET,POST], browser[TemplateId(0),URL(1)]</p>"
25794 "description": "<p>integration[AccountId], motionbar[TemplateId,URL,WinAppPath], urlForward[URL]</p>"
25801 "description": "<p>motionbar[NULL,NULL,WinAppArguments]</p>"
25834 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25835 "version": "0.0.0",
25836 "filename": "server/api/trigger/index.js",
25837 "groupTitle": "Triggers"
25841 "url": "/api/triggers/{id}/all_conditions",
25842 "title": "Creates a new \"AND\"condition",
25845 "title": "Example usage:",
25846 "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",
25850 "name": "addAllCondition",
25851 "group": "Triggers",
25873 "field": "operator",
25886 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25887 "version": "0.0.0",
25888 "filename": "server/api/trigger/index.js",
25889 "groupTitle": "Triggers"
25893 "url": "/api/triggers/{id}/any_conditions",
25894 "title": "Creates a new \"OR\"condition",
25897 "title": "Example usage:",
25898 "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",
25902 "name": "addAnyCondition",
25903 "group": "Triggers",
25925 "field": "operator",
25938 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25939 "version": "0.0.0",
25940 "filename": "server/api/trigger/index.js",
25941 "groupTitle": "Triggers"
25945 "url": "/api/triggers/{id}/actions",
25946 "title": "Gets Trigger Actions",
25949 "title": "Example usage:",
25950 "content": "curl https://{domain}/api/triggers/{id}/actions -v -u {name}:{password} -X GET",
25954 "name": "getActions",
25955 "group": "Triggers",
25956 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25957 "version": "0.0.0",
25958 "filename": "server/api/trigger/index.js",
25959 "groupTitle": "Triggers"
25963 "url": "/api/triggers/{id}/all_conditions",
25964 "title": "Gets \"AND\" Trigger Conditions",
25967 "title": "Example usage:",
25968 "content": "curl https://{domain}/api/triggers/{id}/all_conditions -v -u {name}:{password} -X GET",
25972 "name": "getAllConditions",
25973 "group": "Triggers",
25974 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25975 "version": "0.0.0",
25976 "filename": "server/api/trigger/index.js",
25977 "groupTitle": "Triggers"
25981 "url": "/api/triggers/{id}/any_conditions",
25982 "title": "Gets \"OR\" Trigger Conditions",
25985 "title": "Example usage:",
25986 "content": "curl https://{domain}/api/triggers/{id}/any_conditions -v -u {name}:{password} -X GET",
25990 "name": "getAnyConditions",
25991 "group": "Triggers",
25992 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
25993 "version": "0.0.0",
25994 "filename": "server/api/trigger/index.js",
25995 "groupTitle": "Triggers"
25999 "url": "/api/triggers/{id}",
26000 "title": "Update an existing Trigger",
26003 "title": "Example usage:",
26004 "content": "curl https://{domain}/api/triggers/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
26008 "name": "updateTriggers",
26009 "group": "Triggers",
26010 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26011 "version": "0.0.0",
26012 "filename": "server/api/trigger/index.js",
26013 "groupTitle": "Triggers"
26017 "url": "/api/trunks/clone",
26018 "title": "Clone an existing Trunk",
26021 "title": "Example usage:",
26022 "content": "curl https://{domain}/api/trunks/clone -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
26026 "name": "CloneTrunks",
26028 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26029 "version": "0.0.0",
26030 "filename": "server/api/trunk/index.js",
26031 "groupTitle": "Trunks"
26035 "url": "/api/trunks",
26036 "title": "Create a new trunk",
26039 "title": "Example usage:",
26040 "content": "curl https://{domain}/api/trunks -v -u {name}:{password} -X POST",
26072 "field": "context",
26079 "\"ALLOWED_NOT_SCREENED\"",
26080 "\"ALLOWED_PASSED_SCREEN\"",
26081 "\"ALLOWED_FAILED_SCREEN\"",
26083 "\"PROHIB_NOT_SCREENED\"",
26084 "\"PROHIB_PASSED_SCREEN\"",
26085 "\"PROHIB_FAILED_SCREEN\"",
26089 "field": "callingpres",
26117 "field": "md5secret",
26124 "field": "remotesecret",
26131 "field": "transport",
26132 "description": "<p>String is deprecated. Please use an Array as ["udp", "tcp"]</p>"
26145 "field": "dtmfmode",
26159 "field": "directmedia",
26170 "field": "directrtpsetup",
26177 "field": "directmediapermit",
26184 "field": "directmediadeny",
26192 "description": "<p>String is deprecated. Please use an Array as ["force_rport", "comedia"]</p>"
26198 "field": "callgroup",
26205 "field": "namedcallgroup",
26212 "field": "pickupgroup",
26219 "field": "namedpickupgroup",
26226 "field": "language",
26233 "field": "tonezone",
26240 "field": "disallow",
26248 "description": "<p>String is deprecated. Please use an Array as ["ulaw", "alaw", "alaw"]</p>"
26258 "field": "autoframing",
26265 "field": "insecure",
26266 "description": "<p>String is deprecated. Please use an Array as ["port", "invite"]</p>"
26276 "field": "trustrpid",
26287 "field": "trust_id_outbound",
26299 "field": "progressinband",
26310 "field": "promiscredir",
26321 "field": "useclientcode",
26328 "field": "accountcode",
26342 "field": "callerid",
26349 "field": "amaflags",
26360 "field": "callcounter",
26367 "field": "busylevel",
26378 "field": "allowoverlap",
26389 "field": "allowsubscribe",
26400 "field": "allowtransfer",
26411 "field": "ignoresdpversion",
26418 "field": "subscribecontext",
26425 "field": "template",
26437 "field": "videosupport",
26444 "field": "maxcallbitrate",
26455 "field": "rfc2833compensate",
26462 "field": "mailbox",
26474 "field": "session_timers",
26481 "field": "session_expires",
26488 "field": "session_minse",
26499 "field": "session_refresher",
26506 "field": "t38pt_usertpsource",
26513 "field": "regexten",
26520 "field": "fromdomain",
26527 "field": "fromuser",
26545 "field": "qualify",
26552 "field": "keepalive",
26559 "field": "defaultip",
26566 "field": "defaultuser",
26573 "field": "rtptimeout",
26580 "field": "rtpholdtimeout",
26587 "field": "rtpkeepalive",
26599 "field": "sendrpid",
26606 "field": "outboundproxy",
26613 "field": "callbackextension",
26620 "field": "timert1",
26634 "field": "qualifyfreq",
26641 "field": "contactpermit",
26648 "field": "contactdeny",
26655 "field": "contactacl",
26662 "field": "unsolicited_mailbox",
26669 "field": "use_q850_reason",
26676 "field": "maxforwards",
26687 "field": "encryption",
26709 "field": "force_avp",
26720 "field": "icesupport",
26731 "field": "dtlsenable",
26744 "field": "dtlsverify",
26751 "field": "dtlsrekey",
26758 "field": "dtlscertfile",
26765 "field": "dtlsprivatekey",
26772 "field": "dtlscipher",
26779 "field": "dtlscafile",
26786 "field": "dtlscapath",
26798 "field": "dtlssetup",
26805 "field": "dtlsfingerprint",
26816 "field": "usereqphone",
26823 "field": "recordonfeature",
26830 "field": "recordofffeature",
26837 "field": "call_limit",
26848 "field": "registertrying",
26859 "field": "subscribemwi",
26866 "field": "vmexten",
26873 "field": "mohinterpret",
26880 "field": "mohsuggest",
26887 "field": "parkinglot",
26894 "field": "description",
26915 "field": "canreinvite",
26922 "field": "registry",
26929 "field": "otherFields",
26943 "field": "t38pt_udptl",
26949 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26950 "version": "0.0.0",
26951 "filename": "server/api/trunk/index.js",
26952 "groupTitle": "Trunks"
26956 "url": "/api/trunks/{id}",
26957 "title": "Deletes a trunk",
26960 "title": "Example usage:",
26961 "content": "curl https://{domain}/api/trunks/{id} -v -u {name}:{password} -X DELETE",
26967 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
26968 "version": "0.0.0",
26969 "filename": "server/api/trunk/index.js",
26970 "groupTitle": "Trunks"
26974 "url": "/api/trunks",
26975 "title": "Gets a list of Trunks",
26978 "title": "Example usage:",
26979 "content": "curl https://{domain}/api/trunks -v -u {name}:{password}",
26983 "name": "GetTrunks",
26985 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
26986 "version": "0.0.0",
26987 "filename": "server/api/trunk/index.js",
26988 "groupTitle": "Trunks"
26992 "url": "/api/trunks/{id}",
26993 "title": "Gets a single Trunk",
26996 "title": "Example usage:",
26997 "content": "curl https://{domain}/api/trunks/{id} -v -u {name}:{password}",
27001 "name": "ShowTrunks",
27003 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27004 "version": "0.0.0",
27005 "filename": "server/api/trunk/index.js",
27006 "groupTitle": "Trunks"
27010 "url": "/api/trunks/{id}",
27011 "title": "Update an existing trunk",
27014 "title": "Example usage:",
27015 "content": "curl https://{domain}/api/trunks/{id} -v -u {name}:{password} -X PUT",
27021 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27022 "version": "0.0.0",
27023 "filename": "server/api/trunk/index.js",
27024 "groupTitle": "Trunks"
27028 "url": "/api/userProfile/resources",
27029 "title": "Creates a new User Profile Resource",
27032 "title": "Example usage:",
27033 "content": "curl https://{domain}/api/userProfile/resources -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
27037 "name": "CreateUser_Profile_Resources",
27038 "group": "User_Profile_Resources",
27053 "field": "resourceId",
27066 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27067 "version": "0.0.0",
27068 "filename": "server/api/userProfileResource/index.js",
27069 "groupTitle": "User_Profile_Resources"
27073 "url": "/api/userProfile/resources/{id}",
27074 "title": "Deletes a User Profile Resource",
27077 "title": "Example usage:",
27078 "content": "curl https://{domain}/api/userProfile/resources/{id} -v -u {name}:{password} -X DELETE",
27082 "name": "DeleteUser_Profile_Resources",
27083 "group": "User_Profile_Resources",
27084 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27085 "version": "0.0.0",
27086 "filename": "server/api/userProfileResource/index.js",
27087 "groupTitle": "User_Profile_Resources"
27091 "url": "/api/userProfile/resources/describe",
27092 "title": "Gets table info about User Profile Resources",
27095 "title": "Example usage:",
27096 "content": "curl https://{domain}/api/userProfile/resources/describe -v -u {name}:{password}",
27100 "name": "DescribeUser_Profile_Resources",
27101 "group": "User_Profile_Resources",
27102 "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>",
27103 "version": "0.0.0",
27104 "filename": "server/api/userProfileResource/index.js",
27105 "groupTitle": "User_Profile_Resources"
27109 "url": "/api/userProfile/resources",
27110 "title": "Gets a list of User Profile Resources",
27113 "title": "Example usage:",
27114 "content": "curl https://{domain}/api/userProfile/resources -v -u {name}:{password}",
27118 "name": "GetUser_Profile_Resources",
27119 "group": "User_Profile_Resources",
27120 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
27121 "version": "0.0.0",
27122 "filename": "server/api/userProfileResource/index.js",
27123 "groupTitle": "User_Profile_Resources"
27127 "url": "/api/userProfile/resources/{id}",
27128 "title": "Gets a single User Profile Resource",
27131 "title": "Example usage:",
27132 "content": "curl https://{domain}/api/userProfile/resources/{id} -v -u {name}:{password}",
27136 "name": "ShowUser_Profile_Resources",
27137 "group": "User_Profile_Resources",
27138 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27139 "version": "0.0.0",
27140 "filename": "server/api/userProfileResource/index.js",
27141 "groupTitle": "User_Profile_Resources"
27145 "url": "/api/userProfile/resources/{id}",
27146 "title": "Update an existing User Profile Resource",
27149 "title": "Example usage:",
27150 "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",
27154 "name": "updateUser_Profile_Resources",
27155 "group": "User_Profile_Resources",
27156 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27157 "version": "0.0.0",
27158 "filename": "server/api/userProfileResource/index.js",
27159 "groupTitle": "User_Profile_Resources"
27163 "url": "/api/userProfile/sections",
27164 "title": "Creates a new User Profile Section",
27167 "title": "Example usage:",
27168 "content": "curl https://{domain}/api/userProfile/sections -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
27172 "name": "CreateUser_Profile_Sections",
27173 "group": "User_Profile_Sections",
27188 "field": "category",
27195 "field": "sectionId",
27202 "field": "enabled",
27209 "field": "autoAssociation",
27216 "field": "crudPermissions",
27222 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27223 "version": "0.0.0",
27224 "filename": "server/api/userProfileSection/index.js",
27225 "groupTitle": "User_Profile_Sections"
27229 "url": "/api/userProfile/sections/{id}",
27230 "title": "Deletes a User Profile Section",
27233 "title": "Example usage:",
27234 "content": "curl https://{domain}/api/userProfile/sections/{id} -v -u {name}:{password} -X DELETE",
27238 "name": "DeleteUser_Profile_Sections",
27239 "group": "User_Profile_Sections",
27240 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27241 "version": "0.0.0",
27242 "filename": "server/api/userProfileSection/index.js",
27243 "groupTitle": "User_Profile_Sections"
27247 "url": "/api/userProfile/sections/describe",
27248 "title": "Gets table info about User Profile Sections",
27251 "title": "Example usage:",
27252 "content": "curl https://{domain}/api/userProfile/sections/describe -v -u {name}:{password}",
27256 "name": "DescribeUser_Profile_Sections",
27257 "group": "User_Profile_Sections",
27258 "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>",
27259 "version": "0.0.0",
27260 "filename": "server/api/userProfileSection/index.js",
27261 "groupTitle": "User_Profile_Sections"
27265 "url": "/api/userProfile/sections",
27266 "title": "Gets a list of User Profile Sections",
27269 "title": "Example usage:",
27270 "content": "curl https://{domain}/api/userProfile/sections -v -u {name}:{password}",
27274 "name": "GetUser_Profile_Sections",
27275 "group": "User_Profile_Sections",
27276 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
27277 "version": "0.0.0",
27278 "filename": "server/api/userProfileSection/index.js",
27279 "groupTitle": "User_Profile_Sections"
27283 "url": "/api/userProfile/sections/{id}",
27284 "title": "Gets a single User Profile Section",
27287 "title": "Example usage:",
27288 "content": "curl https://{domain}/api/userProfile/sections/{id} -v -u {name}:{password}",
27292 "name": "ShowUser_Profile_Sections",
27293 "group": "User_Profile_Sections",
27294 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27295 "version": "0.0.0",
27296 "filename": "server/api/userProfileSection/index.js",
27297 "groupTitle": "User_Profile_Sections"
27301 "url": "/api/userProfile/sections/{id}",
27302 "title": "Update an existing User Profile Section",
27305 "title": "Example usage:",
27306 "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",
27310 "name": "updateUser_Profile_Sections",
27311 "group": "User_Profile_Sections",
27312 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27313 "version": "0.0.0",
27314 "filename": "server/api/userProfileSection/index.js",
27315 "groupTitle": "User_Profile_Sections"
27319 "url": "/api/userProfiles/{id}/resources",
27320 "title": "Add resources' permissions to User Profile",
27323 "title": "Example usage:",
27324 "content": "curl https://{domain}/api/userProfiles/{id}/resources -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
27328 "name": "AddResources",
27329 "group": "User_Profiles",
27330 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27331 "version": "0.0.0",
27332 "filename": "server/api/userProfile/index.js",
27333 "groupTitle": "User_Profiles"
27337 "url": "/api/userProfiles/{id}/sections",
27338 "title": "Add sections' permissions to User Profile",
27341 "title": "Example usage:",
27342 "content": "curl https://{domain}/api/userProfiles/{id}/sections -d '[{\"sectionId\": \"name\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
27346 "name": "AddSections",
27347 "group": "User_Profiles",
27348 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27349 "version": "0.0.0",
27350 "filename": "server/api/userProfile/index.js",
27351 "groupTitle": "User_Profiles"
27355 "url": "/api/userProfiles/clone",
27356 "title": "Clone an existing User Profile",
27359 "title": "Example usage:",
27360 "content": "curl https://{domain}/api/userProfiles/clone -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
27364 "name": "CloneUser_Profiles",
27365 "group": "User_Profiles",
27366 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27367 "version": "0.0.0",
27368 "filename": "server/api/userProfile/index.js",
27369 "groupTitle": "User_Profiles"
27373 "url": "/api/userProfiles",
27374 "title": "Creates a new User Profile",
27377 "title": "Example usage:",
27378 "content": "curl https://{domain}/api/userProfiles -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
27382 "name": "CreateUser_Profiles",
27383 "group": "User_Profiles",
27398 "field": "crudPermissions",
27405 "field": "description",
27411 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27412 "version": "0.0.0",
27413 "filename": "server/api/userProfile/index.js",
27414 "groupTitle": "User_Profiles"
27418 "url": "/api/userProfiles/{id}",
27419 "title": "Deletes a User Profile",
27422 "title": "Example usage:",
27423 "content": "curl https://{domain}/api/userProfiles/{id} -v -u {name}:{password} -X DELETE",
27427 "name": "DeleteUser_Profiles",
27428 "group": "User_Profiles",
27429 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27430 "version": "0.0.0",
27431 "filename": "server/api/userProfile/index.js",
27432 "groupTitle": "User_Profiles"
27436 "url": "/api/userProfiles/describe",
27437 "title": "Gets table info about User Profiles",
27440 "title": "Example usage:",
27441 "content": "curl https://{domain}/api/userProfiles/describe -v -u {name}:{password}",
27445 "name": "DescribeUser_Profiles",
27446 "group": "User_Profiles",
27447 "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>",
27448 "version": "0.0.0",
27449 "filename": "server/api/userProfile/index.js",
27450 "groupTitle": "User_Profiles"
27454 "url": "/api/userProfiles/{id}/resources?section={section}",
27455 "title": "Get Resources assigned to a Section",
27458 "title": "Example usage:",
27459 "content": "curl https://{domain}/api/userProfiles/{id}/resources?section={section} -v -u {name}:{password} -X GET",
27463 "name": "GetResources",
27464 "group": "User_Profiles",
27465 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27466 "version": "0.0.0",
27467 "filename": "server/api/userProfile/index.js",
27468 "groupTitle": "User_Profiles"
27472 "url": "/api/userProfiles/{id}/sections",
27473 "title": "Get sections associated to a User Profile",
27476 "title": "Example usage:",
27477 "content": "curl https://{domain}/api/userProfiles/{id}/sections -v -u {name}:{password} -X GET",
27481 "name": "GetSections",
27482 "group": "User_Profiles",
27483 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27484 "version": "0.0.0",
27485 "filename": "server/api/userProfile/index.js",
27486 "groupTitle": "User_Profiles"
27490 "url": "/api/userProfiles",
27491 "title": "Gets a list of User Profiles",
27494 "title": "Example usage:",
27495 "content": "curl https://{domain}/api/userProfiles -v -u {name}:{password}",
27499 "name": "GetUser_Profiles",
27500 "group": "User_Profiles",
27501 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
27502 "version": "0.0.0",
27503 "filename": "server/api/userProfile/index.js",
27504 "groupTitle": "User_Profiles"
27508 "url": "/api/userProfiles/{id}/resources",
27509 "title": "Removes resources' permissions from User Profile",
27512 "title": "Example usage:",
27513 "content": "curl https://{domain}/api/userProfiles/{id}/resources?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
27517 "name": "RemoveResources",
27518 "group": "User_Profiles",
27519 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27520 "version": "0.0.0",
27521 "filename": "server/api/userProfile/index.js",
27522 "groupTitle": "User_Profiles"
27526 "url": "/api/userProfiles/{id}/sections",
27527 "title": "Removes sections' permissions from User Profile",
27530 "title": "Example usage:",
27531 "content": "curl https://{domain}/api/userProfiles/{id}/sections?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
27535 "name": "RemoveSections",
27536 "group": "User_Profiles",
27537 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27538 "version": "0.0.0",
27539 "filename": "server/api/userProfile/index.js",
27540 "groupTitle": "User_Profiles"
27544 "url": "/api/userProfiles/{id}",
27545 "title": "Gets a single User Profile",
27548 "title": "Example usage:",
27549 "content": "curl https://{domain}/api/userProfiles/{id} -v -u {name}:{password}",
27553 "name": "ShowUser_Profiles",
27554 "group": "User_Profiles",
27555 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27556 "version": "0.0.0",
27557 "filename": "server/api/userProfile/index.js",
27558 "groupTitle": "User_Profiles"
27562 "url": "/api/userProfiles/{id}",
27563 "title": "Update an existing User Profile",
27566 "title": "Example usage:",
27567 "content": "curl https://{domain}/api/userProfiles/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
27571 "name": "updateUser_Profiles",
27572 "group": "User_Profiles",
27573 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27574 "version": "0.0.0",
27575 "filename": "server/api/userProfile/index.js",
27576 "groupTitle": "User_Profiles"
27580 "url": "/api/users/{id}/chat_interactions",
27581 "title": "Add chat interaction tabs to an agent",
27584 "title": "Example usage:",
27585 "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",
27589 "name": "AddChatInteractions",
27591 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27592 "version": "0.0.0",
27593 "filename": "server/api/user/index.js",
27594 "groupTitle": "Users"
27598 "url": "/api/users/{id}/chat_websites",
27599 "title": "Add a Chat Website to a user",
27602 "title": "Example usage:",
27603 "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",
27607 "name": "AddChatWebsites",
27609 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27610 "version": "0.0.0",
27611 "filename": "server/api/user/index.js",
27612 "groupTitle": "Users"
27616 "url": "/api/users/{id}/contacts",
27617 "title": "Add contacts to a user",
27620 "title": "Example usage:",
27621 "content": "curl https://{domain}/api/users/{id}/contacts -d '{\"ids\": [1,2]}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
27625 "name": "AddContacts",
27627 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27628 "version": "0.0.0",
27629 "filename": "server/api/user/index.js",
27630 "groupTitle": "Users"
27634 "url": "/api/users/{id}/fax_accounts",
27635 "title": "Add a Fax Account to a user",
27638 "title": "Example usage:",
27639 "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",
27643 "name": "AddFaxAccounts",
27645 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27646 "version": "0.0.0",
27647 "filename": "server/api/user/index.js",
27648 "groupTitle": "Users"
27652 "url": "/api/users/{id}/fax_interactions",
27653 "title": "Add fax interaction tabs to an agent",
27656 "title": "Example usage:",
27657 "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",
27661 "name": "AddFaxInteractions",
27663 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27664 "version": "0.0.0",
27665 "filename": "server/api/user/index.js",
27666 "groupTitle": "Users"
27670 "url": "/api/users/{id}/mail_accounts",
27671 "title": "Add a Mail Account to a user",
27674 "title": "Example usage:",
27675 "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",
27679 "name": "AddMailAccounts",
27681 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27682 "version": "0.0.0",
27683 "filename": "server/api/user/index.js",
27684 "groupTitle": "Users"
27688 "url": "/api/users/{id}/mail_interactions",
27689 "title": "Add mail interaction tabs to an agent",
27692 "title": "Example usage:",
27693 "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",
27697 "name": "AddMailInteractions",
27699 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27700 "version": "0.0.0",
27701 "filename": "server/api/user/index.js",
27702 "groupTitle": "Users"
27706 "url": "/api/users/{id}/openchannel_accounts",
27707 "title": "Add a Open Channel Account to a user",
27710 "title": "Example usage:",
27711 "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",
27715 "name": "AddOpenchannelAccounts",
27717 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27718 "version": "0.0.0",
27719 "filename": "server/api/user/index.js",
27720 "groupTitle": "Users"
27724 "url": "/api/users/{id}/openchannel_interactions",
27725 "title": "Add openchannel interaction tabs to an agent",
27728 "title": "Example usage:",
27729 "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",
27733 "name": "AddOpenchannelInteractions",
27735 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27736 "version": "0.0.0",
27737 "filename": "server/api/user/index.js",
27738 "groupTitle": "Users"
27742 "url": "/api/users/{id}/queues",
27743 "title": "Add queues to an agent",
27746 "title": "Example usage:",
27747 "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",
27751 "name": "AddQueues",
27753 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27754 "version": "0.0.0",
27755 "filename": "server/api/user/index.js",
27756 "groupTitle": "Users"
27760 "url": "/api/users/{id}/sms_accounts",
27761 "title": "Add a Sms Account to a user",
27764 "title": "Example usage:",
27765 "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",
27769 "name": "AddSmsAccounts",
27771 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27772 "version": "0.0.0",
27773 "filename": "server/api/user/index.js",
27774 "groupTitle": "Users"
27778 "url": "/api/users/{id}/sms_interactions",
27779 "title": "Add sms interaction tabs to an agent",
27782 "title": "Example usage:",
27783 "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",
27787 "name": "AddSmsInteractions",
27789 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27790 "version": "0.0.0",
27791 "filename": "server/api/user/index.js",
27792 "groupTitle": "Users"
27796 "url": "/api/users/{id}/square_projects",
27797 "title": "Add a Square Project to a user",
27800 "title": "Example usage:",
27801 "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",
27805 "name": "AddSquareProjects",
27807 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27808 "version": "0.0.0",
27809 "filename": "server/api/user/index.js",
27810 "groupTitle": "Users"
27814 "url": "/api/users/{id}/teams",
27815 "title": "Add teams to an agent",
27818 "title": "Example usage:",
27819 "content": "curl https://{domain}/api/users/{id}/teams -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
27823 "name": "AddTeams",
27825 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
27826 "version": "0.0.0",
27827 "filename": "server/api/user/index.js",
27828 "groupTitle": "Users"
27832 "url": "/api/users/create_many",
27833 "title": "Creates many Users",
27836 "title": "Example usage:",
27837 "content": "curl https://{domain}/api/users/create_many -d '[{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}]' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
27841 "name": "BulkCreateUsers",
27851 "description": "<p>The name of the user</p>"
27857 "field": "fullname",
27891 "field": "password",
27898 "field": "provider",
27905 "field": "internal",
27933 "field": "address",
27940 "field": "zipcode",
27947 "field": "userpic",
27961 "field": "country",
27975 "field": "lastLoginAt",
27982 "field": "voicePause",
27989 "field": "chatPause",
27996 "field": "mailPause",
28003 "field": "faxPause",
28010 "field": "smsPause",
28017 "field": "openchannelPause",
28024 "field": "pauseType",
28031 "field": "lastPauseAt",
28038 "field": "chatCapacity",
28045 "field": "mailCapacity",
28052 "field": "faxCapacity",
28059 "field": "smsCapacity",
28066 "field": "openchannelCapacity",
28073 "field": "phoneBarAutoAnswer",
28080 "field": "phoneBarEnableSettings",
28087 "field": "phoneBarListenPort",
28094 "field": "phoneBarExpires",
28101 "field": "phoneBarRemoteControl",
28108 "field": "phoneBarRemoteControlPort",
28115 "field": "phoneBarEnableRecording",
28122 "field": "phoneBarRingInUse",
28129 "field": "chanspy",
28136 "field": "description",
28164 "field": "regseconds",
28171 "field": "fullcontact",
28178 "field": "regserver",
28185 "field": "useragent",
28211 "field": "context",
28218 "\"ALLOWED_NOT_SCREENED\"",
28219 "\"ALLOWED_PASSED_SCREEN\"",
28220 "\"ALLOWED_FAILED_SCREEN\"",
28222 "\"PROHIB_NOT_SCREENED\"",
28223 "\"PROHIB_PASSED_SCREEN\"",
28224 "\"PROHIB_FAILED_SCREEN\"",
28228 "field": "callingpres",
28256 "field": "md5secret",
28263 "field": "remotesecret",
28270 "field": "transport",
28271 "description": "<p>String is deprecated. Please use an Array as ["udp", "tcp"]</p>"
28284 "field": "dtmfmode",
28298 "field": "directmedia",
28309 "field": "directrtpsetup",
28316 "field": "directmediapermit",
28323 "field": "directmediadeny",
28331 "description": "<p>String is deprecated. Please use an Array as ["force_rport", "comedia"]</p>"
28337 "field": "callgroup",
28344 "field": "namedcallgroup",
28351 "field": "pickupgroup",
28358 "field": "namedpickupgroup",
28365 "field": "language",
28372 "field": "tonezone",
28379 "field": "disallow",
28387 "description": "<p>String is deprecated. Please use an Array as ["ulaw", "alaw", "gsm"]</p>"
28397 "field": "autoframing",
28404 "field": "insecure",
28405 "description": "<p>String is deprecated. Please use an Array as ["port", "invite"]</p>"
28415 "field": "trustrpid",
28426 "field": "trust_id_outbound",
28438 "field": "progressinband",
28449 "field": "promiscredir",
28460 "field": "useclientcode",
28467 "field": "accountcode",
28481 "field": "callerid",
28488 "field": "amaflags",
28499 "field": "callcounter",
28506 "field": "busylevel",
28517 "field": "allowoverlap",
28528 "field": "allowsubscribe",
28539 "field": "allowtransfer",
28550 "field": "ignoresdpversion",
28557 "field": "subscribecontext",
28564 "field": "template",
28576 "field": "videosupport",
28583 "field": "maxcallbitrate",
28594 "field": "rfc2833compensate",
28601 "field": "mailbox",
28613 "field": "session_timers",
28620 "field": "session_expires",
28627 "field": "session_minse",
28638 "field": "session_refresher",
28645 "field": "t38pt_usertpsource",
28652 "field": "regexten",
28659 "field": "fromdomain",
28666 "field": "fromuser",
28677 "field": "qualify",
28684 "field": "keepalive",
28691 "field": "defaultip",
28698 "field": "defaultuser",
28705 "field": "rtptimeout",
28712 "field": "rtpholdtimeout",
28719 "field": "rtpkeepalive",
28730 "field": "sendrpid",
28737 "field": "outboundproxy",
28744 "field": "callbackextension",
28751 "field": "timert1",
28765 "field": "qualifyfreq",
28772 "field": "contactpermit",
28779 "field": "contactdeny",
28786 "field": "contactacl",
28793 "field": "unsolicited_mailbox",
28800 "field": "use_q850_reason",
28807 "field": "maxforwards",
28818 "field": "encryption",
28840 "field": "force_avp",
28851 "field": "icesupport",
28862 "field": "dtlsenable",
28875 "field": "dtlsverify",
28882 "field": "dtlsrekey",
28889 "field": "dtlscertfile",
28896 "field": "dtlsprivatekey",
28903 "field": "dtlscipher",
28910 "field": "dtlscafile",
28917 "field": "dtlscapath",
28929 "field": "dtlssetup",
28936 "field": "dtlsfingerprint",
28947 "field": "usereqphone",
28954 "field": "recordonfeature",
28961 "field": "recordofffeature",
28968 "field": "call_limit",
28979 "field": "registertrying",
28990 "field": "subscribemwi",
28997 "field": "vmexten",
29004 "field": "mohinterpret",
29011 "field": "mohsuggest",
29018 "field": "parkinglot",
29032 "field": "canreinvite",
29039 "field": "loginInPause",
29046 "field": "resetPasswordToken",
29053 "field": "resetPasswordExpires",
29060 "field": "showWebBar",
29067 "field": "permissions",
29074 "field": "phoneBarUnconditionalNumber",
29081 "field": "phoneBarNoReplyNumber",
29088 "field": "phoneBarBusyNumber",
29095 "field": "phoneBarUnconditional",
29102 "field": "phoneBarNoReply",
29109 "field": "phoneBarBusy",
29116 "field": "phoneBarDnd",
29123 "field": "phoneBarUnansweredCallBadge",
29130 "field": "phoneBarEnableDtmfTone",
29137 "field": "phoneBarAutoAnswerDelay",
29144 "field": "extensionMonitor",
29151 "field": "crudPermissions",
29162 "field": "rtcp_mux",
29169 "field": "allowmessenger",
29176 "field": "phoneBarOutboundProxy",
29183 "field": "passwordResetAt",
29190 "field": "phoneBarEnableJaws",
29197 "field": "phoneBarEnableScreenRecordingByAgent",
29204 "field": "phoneBarEnableVideoRecording",
29211 "field": "phoneBarEnableAutomaticScreenRecording",
29218 "field": "phoneBarPrefixRequired",
29225 "field": "hotdesk",
29232 "field": "interface",
29239 "field": "privacyEnabled",
29246 "field": "apiKeyNonce",
29253 "field": "apiKeyIat",
29260 "field": "screenrecording",
29267 "field": "blocked",
29274 "field": "blockedAt",
29281 "field": "loginAttempts",
29288 "field": "disabled",
29294 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29295 "version": "0.0.0",
29296 "filename": "server/api/user/index.js",
29297 "groupTitle": "Users"
29301 "url": "/api/users/{id}/password",
29302 "title": "Change user password",
29305 "title": "Example usage:",
29306 "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",
29310 "name": "ChangePwd",
29312 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29313 "version": "0.0.0",
29314 "filename": "server/api/user/index.js",
29315 "groupTitle": "Users"
29319 "url": "/api/users",
29320 "title": "Create a new user",
29323 "title": "Example usage:",
29324 "content": "curl https://{domain}/api/users -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
29330 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29331 "version": "0.0.0",
29332 "filename": "server/api/user/index.js",
29333 "groupTitle": "Users"
29337 "url": "/api/users/{id}/api_key",
29338 "title": "Create a new API access key for the user",
29341 "title": "Example usage:",
29342 "content": "curl https://{domain}/api/users/:id/api_key -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
29346 "name": "CreateApiKey",
29348 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29349 "version": "0.0.0",
29350 "filename": "server/api/user/index.js",
29351 "groupTitle": "Users"
29355 "url": "/api/users/{id}",
29356 "title": "Deletes a user",
29359 "title": "Example usage:",
29360 "content": "curl https://{domain}/api/users/{id} -v -u {name}:{password} -X DELETE",
29366 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29367 "version": "0.0.0",
29368 "filename": "server/api/user/index.js",
29369 "groupTitle": "Users"
29373 "url": "/api/users/describe",
29374 "title": "Gets table info about Users",
29377 "title": "Example usage:",
29378 "content": "curl https://{domain}/api/users/describe -v -u {name}:{password}",
29382 "name": "DescribeUsers",
29384 "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>",
29385 "version": "0.0.0",
29386 "filename": "server/api/user/index.js",
29387 "groupTitle": "Users"
29391 "url": "/api/users/{id}/agents",
29392 "title": "GetAgents",
29395 "title": "Example usage:",
29396 "content": "curl https://{domain}/api/users/{id}/agents -v -u {name}:{password} -X GET",
29400 "name": "GetAgents",
29402 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29403 "version": "0.0.0",
29404 "filename": "server/api/user/index.js",
29405 "groupTitle": "Users"
29409 "url": "/api/users/{id}/api_key",
29410 "title": "Get the API access key for the user",
29413 "title": "Example usage:",
29414 "content": "curl https://{domain}/api/users/:id/api_key -v -u {name}:{password} -X GET",
29418 "name": "GetApiKey",
29420 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29421 "version": "0.0.0",
29422 "filename": "server/api/user/index.js",
29423 "groupTitle": "Users"
29427 "url": "/api/users/{id}/groups",
29428 "title": "GetChatGroups",
29431 "title": "Example usage:",
29432 "content": "curl https://{domain}/api/users/{id}/groups -v -u {name}:{password} -X GET",
29436 "name": "GetChatGroups",
29438 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29439 "version": "0.0.0",
29440 "filename": "server/api/user/index.js",
29441 "groupTitle": "Users"
29445 "url": "/api/users/{id}/chat/interactions",
29446 "title": "GetChatInteractions",
29449 "title": "Example usage:",
29450 "content": "curl https://{domain}/api/users/{id}/chat/interactions -v -u {name}:{password} -X GET",
29454 "name": "GetChatInteractions",
29456 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29457 "version": "0.0.0",
29458 "filename": "server/api/user/index.js",
29459 "groupTitle": "Users"
29463 "url": "/api/users/{id}/chat_websites",
29464 "title": "GetChatWebsites",
29467 "title": "Example usage:",
29468 "content": "curl https://{domain}/api/users/{id}/chat_websites -v -u {name}:{password} -X GET",
29472 "name": "GetChatWebsites",
29474 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29475 "version": "0.0.0",
29476 "filename": "server/api/user/index.js",
29477 "groupTitle": "Users"
29481 "url": "/api/users/{id}/contacts",
29482 "title": "GetContacts",
29485 "title": "Example usage:",
29486 "content": "curl https://{domain}/api/users/{id}/contacts -v -u {name}:{password} -X GET",
29490 "name": "GetContacts",
29492 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29493 "version": "0.0.0",
29494 "filename": "server/api/user/index.js",
29495 "groupTitle": "Users"
29499 "url": "/api/users/{id}/fax_accounts",
29500 "title": "GetFaxAccounts",
29503 "title": "Example usage:",
29504 "content": "curl https://{domain}/api/users/{id}/fax_accounts -v -u {name}:{password} -X GET",
29508 "name": "GetFaxAccounts",
29510 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29511 "version": "0.0.0",
29512 "filename": "server/api/user/index.js",
29513 "groupTitle": "Users"
29517 "url": "/api/users/{id}/fax/interactions",
29518 "title": "GetFaxInteractions",
29521 "title": "Example usage:",
29522 "content": "curl https://{domain}/api/users/{id}/fax/interactions -v -u {name}:{password} -X GET",
29526 "name": "GetFaxInteractions",
29528 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29529 "version": "0.0.0",
29530 "filename": "server/api/user/index.js",
29531 "groupTitle": "Users"
29535 "url": "/api/users/{id}/lists",
29536 "title": "GetLists",
29539 "title": "Example usage:",
29540 "content": "curl https://{domain}/api/users/{id}/lists -v -u {name}:{password} -X GET",
29544 "name": "GetLists",
29546 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29547 "version": "0.0.0",
29548 "filename": "server/api/user/index.js",
29549 "groupTitle": "Users"
29553 "url": "/api/users/{id}/mail_accounts",
29554 "title": "GetMailAccounts",
29557 "title": "Example usage:",
29558 "content": "curl https://{domain}/api/users/{id}/mail_accounts -v -u {name}:{password} -X GET",
29562 "name": "GetMailAccounts",
29564 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29565 "version": "0.0.0",
29566 "filename": "server/api/user/index.js",
29567 "groupTitle": "Users"
29571 "url": "/api/users/{id}/mail/interactions",
29572 "title": "GetMailInteractions",
29575 "title": "Example usage:",
29576 "content": "curl https://{domain}/api/users/{id}/mail/interactions -v -u {name}:{password} -X GET",
29580 "name": "GetMailInteractions",
29582 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29583 "version": "0.0.0",
29584 "filename": "server/api/user/index.js",
29585 "groupTitle": "Users"
29589 "url": "/api/users/{id}/openchannel_accounts",
29590 "title": "GetOpenchannelAccounts",
29593 "title": "Example usage:",
29594 "content": "curl https://{domain}/api/users/{id}/openchannel_accounts -v -u {name}:{password} -X GET",
29598 "name": "GetOpenchannelAccounts",
29600 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29601 "version": "0.0.0",
29602 "filename": "server/api/user/index.js",
29603 "groupTitle": "Users"
29607 "url": "/api/users/{id}/openchannel/interactions",
29608 "title": "GetOpenchannelInteractions",
29611 "title": "Example usage:",
29612 "content": "curl https://{domain}/api/users/{id}/openchannel/interactions -v -u {name}:{password}",
29616 "name": "GetOpenchannelInteractions",
29618 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29619 "version": "0.0.0",
29620 "filename": "server/api/user/index.js",
29621 "groupTitle": "Users"
29625 "url": "/api/users/{id}/prefixes",
29626 "title": "GetPrefixes",
29629 "title": "Example usage:",
29630 "content": "curl https://{domain}/api/users/{id}/prefixes -v -u {name}:{password} -X GET",
29634 "name": "GetPrefixes",
29636 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29637 "version": "0.0.0",
29638 "filename": "server/api/user/index.js",
29639 "groupTitle": "Users"
29643 "url": "/api/users/{id}/queues?channel={channel}",
29644 "title": "Gets Queues list",
29647 "title": "Example usage:",
29648 "content": "curl https://{domain}/api/users/{id}/queues/?channel={channel} -v -u {name}:{password} -X GET",
29652 "name": "GetQueues",
29654 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29655 "version": "0.0.0",
29656 "filename": "server/api/user/index.js",
29657 "groupTitle": "Users"
29661 "url": "/api/users/{id}/recordings",
29662 "title": "GetRecordings",
29665 "title": "Example usage:",
29666 "content": "curl https://{domain}/api/users/{id}/recordings -v -u {name}:{password} -X GET",
29670 "name": "GetRecordings",
29672 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29673 "version": "0.0.0",
29674 "filename": "server/api/user/index.js",
29675 "groupTitle": "Users"
29679 "url": "/api/users/{id}/scheduled_calls",
29680 "title": "GetScheduledCalls",
29683 "title": "Example usage:",
29684 "content": "curl https://{domain}/api/users/{id}/scheduled_calls -v -u {name}:{password} -X GET",
29688 "name": "GetScheduledCalls",
29690 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29691 "version": "0.0.0",
29692 "filename": "server/api/user/index.js",
29693 "groupTitle": "Users"
29697 "url": "/api/users/{id}/screen_recordings",
29698 "title": "GetScreenRecordings",
29701 "title": "Example usage:",
29702 "content": "curl https://{domain}/api/users/{id}/screen_recordings -v -u {name}:{password} -X GET",
29706 "name": "GetScreenRecordings",
29708 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29709 "version": "0.0.0",
29710 "filename": "server/api/user/index.js",
29711 "groupTitle": "Users"
29715 "url": "/api/users/{id}/sms_accounts",
29716 "title": "GetSmsAccounts",
29719 "title": "Example usage:",
29720 "content": "curl https://{domain}/api/users/{id}/sms_accounts -v -u {name}:{password} -X GET",
29724 "name": "GetSmsAccounts",
29726 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29727 "version": "0.0.0",
29728 "filename": "server/api/user/index.js",
29729 "groupTitle": "Users"
29733 "url": "/api/users/{id}/sms/interactions",
29734 "title": "GetSmsInteractions",
29737 "title": "Example usage:",
29738 "content": "curl https://{domain}/api/users/{id}/sms/interactions -v -u {name}:{password} -X GET",
29742 "name": "GetSmsInteractions",
29744 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29745 "version": "0.0.0",
29746 "filename": "server/api/user/index.js",
29747 "groupTitle": "Users"
29751 "url": "/api/users/{id}/square_projects",
29752 "title": "GetSquareProjects",
29755 "title": "Example usage:",
29756 "content": "curl https://{domain}/api/users/{id}/square_projects -v -u {name}:{password} -X GET",
29760 "name": "GetSquareProjects",
29762 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29763 "version": "0.0.0",
29764 "filename": "server/api/user/index.js",
29765 "groupTitle": "Users"
29769 "url": "/api/users/{id}/teams",
29770 "title": "GetTeams",
29773 "title": "Example usage:",
29774 "content": "curl https://{domain}/api/users/{id}/teams -v -u {name}:{password} -X GET",
29778 "name": "GetTeams",
29780 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29781 "version": "0.0.0",
29782 "filename": "server/api/user/index.js",
29783 "groupTitle": "Users"
29787 "url": "/api/users",
29788 "title": "Gets a list of Users",
29791 "title": "Example usage:",
29792 "content": "curl https://{domain}/api/users -v -u {name}:{password}",
29796 "name": "GetUsers",
29798 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
29799 "version": "0.0.0",
29800 "filename": "server/api/user/index.js",
29801 "groupTitle": "Users"
29805 "url": "/api/users/{id}/queues_rt",
29806 "title": "GetVoiceQueuesRt",
29809 "title": "Example usage:",
29810 "content": "curl https://{domain}/api/users/{id}/queues_rt -v -u {name}:{password} -X GET",
29814 "name": "GetVoiceQueuesRt",
29816 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29817 "version": "0.0.0",
29818 "filename": "server/api/user/index.js",
29819 "groupTitle": "Users"
29823 "url": "/api/users/{id}/login",
29827 "title": "Example usage:",
29828 "content": "curl https://{domain}/api/users/{id}/login -v -u {name}:{password} -X POST",
29834 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29835 "version": "0.0.0",
29836 "filename": "server/api/user/index.js",
29837 "groupTitle": "Users"
29841 "url": "/api/users/{id}/logout",
29845 "title": "Example usage:",
29846 "content": "curl https://{domain}/api/users/{id}/logout -v -u {name}:{password} -X POST",
29852 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29853 "version": "0.0.0",
29854 "filename": "server/api/user/index.js",
29855 "groupTitle": "Users"
29859 "url": "/api/users/{id}/pause",
29863 "title": "Example usage:",
29864 "content": "curl https://{domain}/api/users/{id}/pause -v -u {name}:{password} -X POST",
29870 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29871 "version": "0.0.0",
29872 "filename": "server/api/user/index.js",
29873 "groupTitle": "Users"
29877 "url": "/api/users/{id}/api_key",
29878 "title": "Remove API access key for the user",
29881 "title": "Example usage:",
29882 "content": "curl https://{domain}/api/users/:id/api_key -v -u {name}:{password} -X DELETE",
29886 "name": "RemoveApiKey",
29888 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29889 "version": "0.0.0",
29890 "filename": "server/api/user/index.js",
29891 "groupTitle": "Users"
29895 "url": "/api/users/{id}/chat_interactions",
29896 "title": "Removes interactions from an agent",
29899 "title": "Example usage:",
29900 "content": "curl https://{domain}/api/users/{id}/chat_interactions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
29904 "name": "RemoveChatInteractions",
29906 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29907 "version": "0.0.0",
29908 "filename": "server/api/user/index.js",
29909 "groupTitle": "Users"
29913 "url": "/api/users/{id}/chat_websites",
29914 "title": "Removes a Chat Website from a user",
29917 "title": "Example usage:",
29918 "content": "curl https://{domain}/api/users/{id}/chat_websites?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
29922 "name": "RemoveChatWebsites",
29924 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29925 "version": "0.0.0",
29926 "filename": "server/api/user/index.js",
29927 "groupTitle": "Users"
29931 "url": "/api/users/{id}/fax_accounts",
29932 "title": "Removes a Fax Account from a user",
29935 "title": "Example usage:",
29936 "content": "curl https://{domain}/api/users/{id}/fax_accounts?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
29940 "name": "RemoveFaxAccounts",
29942 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29943 "version": "0.0.0",
29944 "filename": "server/api/user/index.js",
29945 "groupTitle": "Users"
29949 "url": "/api/users/{id}/fax_interactions",
29950 "title": "Removes interactions from an agent",
29953 "title": "Example usage:",
29954 "content": "curl https://{domain}/api/users/{id}/fax_interactions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
29958 "name": "RemoveFaxInteractions",
29960 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29961 "version": "0.0.0",
29962 "filename": "server/api/user/index.js",
29963 "groupTitle": "Users"
29967 "url": "/api/users/{id}/mail_accounts",
29968 "title": "Removes a Mail Account from a user",
29971 "title": "Example usage:",
29972 "content": "curl https://{domain}/api/users/{id}/mail_accounts?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
29976 "name": "RemoveMailAccounts",
29978 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29979 "version": "0.0.0",
29980 "filename": "server/api/user/index.js",
29981 "groupTitle": "Users"
29985 "url": "/api/users/{id}/mail_interactions",
29986 "title": "Removes interactions from an agent",
29989 "title": "Example usage:",
29990 "content": "curl https://{domain}/api/users/{id}/mail_interactions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
29994 "name": "RemoveMailInteractions",
29996 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
29997 "version": "0.0.0",
29998 "filename": "server/api/user/index.js",
29999 "groupTitle": "Users"
30003 "url": "/api/users/{id}/openchannel_accounts",
30004 "title": "Removes a Open Channel Account from a user",
30007 "title": "Example usage:",
30008 "content": "curl https://{domain}/api/users/{id}/openchannel_accounts?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
30012 "name": "RemoveOpenchannelAccounts",
30014 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30015 "version": "0.0.0",
30016 "filename": "server/api/user/index.js",
30017 "groupTitle": "Users"
30021 "url": "/api/users/{id}/openchannel_interactions",
30022 "title": "Removes openchannel interactions from an agent",
30025 "title": "Example usage:",
30026 "content": "curl https://{domain}/api/users/{id}/openchannel_interactions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
30030 "name": "RemoveOpenchannelInteractions",
30032 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30033 "version": "0.0.0",
30034 "filename": "server/api/user/index.js",
30035 "groupTitle": "Users"
30039 "url": "/api/users/{id}/queues",
30040 "title": "Remove queues to an agent",
30043 "title": "Example usage:",
30044 "content": "curl https://{domain}/api/users/{id}/queues?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
30048 "name": "RemoveQueues",
30050 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30051 "version": "0.0.0",
30052 "filename": "server/api/user/index.js",
30053 "groupTitle": "Users"
30057 "url": "/api/users/{id}/sms_accounts",
30058 "title": "Removes a Sms Account from a user",
30061 "title": "Example usage:",
30062 "content": "curl https://{domain}/api/users/{id}/sms_accounts?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
30066 "name": "RemoveSmsAccounts",
30068 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30069 "version": "0.0.0",
30070 "filename": "server/api/user/index.js",
30071 "groupTitle": "Users"
30075 "url": "/api/users/{id}/sms_interactions",
30076 "title": "Removes interactions from an agent",
30079 "title": "Example usage:",
30080 "content": "curl https://{domain}/api/users/{id}/sms_interactions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
30084 "name": "RemoveSmsInteractions",
30086 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30087 "version": "0.0.0",
30088 "filename": "server/api/user/index.js",
30089 "groupTitle": "Users"
30093 "url": "/api/users/{id}/square_projects",
30094 "title": "Removes a Square Project from a user",
30097 "title": "Example usage:",
30098 "content": "curl https://{domain}/api/users/{id}/square_projects?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
30102 "name": "RemoveSquareProjects",
30104 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30105 "version": "0.0.0",
30106 "filename": "server/api/user/index.js",
30107 "groupTitle": "Users"
30111 "url": "/api/users/{id}/teams",
30112 "title": "Removes teams from an agent",
30115 "title": "Example usage:",
30116 "content": "curl https://{domain}/api/users/{id}/teams?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
30120 "name": "RemoveTeams",
30122 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30123 "version": "0.0.0",
30124 "filename": "server/api/user/index.js",
30125 "groupTitle": "Users"
30129 "url": "/api/users/{id}",
30130 "title": "Gets a single User",
30133 "title": "Example usage:",
30134 "content": "curl https://{domain}/api/users/{id} -v -u {name}:{password}",
30138 "name": "ShowUsers",
30140 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30141 "version": "0.0.0",
30142 "filename": "server/api/user/index.js",
30143 "groupTitle": "Users"
30147 "url": "/api/users/{id}/unpause",
30148 "title": "Unpause",
30151 "title": "Example usage:",
30152 "content": "curl https://{domain}/api/users/{id}/unpause -v -u {name}:{password} -X POST",
30158 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30159 "version": "0.0.0",
30160 "filename": "server/api/user/index.js",
30161 "groupTitle": "Users"
30165 "url": "/api/users/whoami",
30169 "title": "Example usage:",
30170 "content": "curl https://{domain}/api/users/whoami -v -u {name}:{password} -X GET",
30176 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30177 "version": "0.0.0",
30178 "filename": "server/api/user/index.js",
30179 "groupTitle": "Users"
30183 "url": "/api/users/{id}/avatar",
30184 "title": "Add avatar",
30187 "title": "Example usage:",
30188 "content": "curl https://{domain}/api/users/{id}/avatar -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
30192 "name": "addAvatar",
30194 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30195 "version": "0.0.0",
30196 "filename": "server/api/user/index.js",
30197 "groupTitle": "Users"
30201 "url": "/api/users/{id}/avatar",
30202 "title": "Get avatar",
30205 "title": "Example usage:",
30206 "content": "curl https://{domain}/api/users/{id}/avatar -v -u {name}:{password} -X GET",
30210 "name": "getAvatar",
30212 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30213 "version": "0.0.0",
30214 "filename": "server/api/user/index.js",
30215 "groupTitle": "Users"
30219 "url": "/api/users/{id}",
30220 "title": "Update an existing User",
30223 "title": "Example usage:",
30224 "content": "curl https://{domain}/api/users/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
30228 "name": "updateUsers",
30230 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30231 "version": "0.0.0",
30232 "filename": "server/api/user/index.js",
30233 "groupTitle": "Users"
30237 "url": "/api/variables",
30238 "title": "Creates a new Variable",
30241 "title": "Example usage:",
30242 "content": "curl https://{domain}/api/variables -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
30246 "name": "CreateVariables",
30247 "group": "Variables",
30262 "field": "description",
30268 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30269 "version": "0.0.0",
30270 "filename": "server/api/variable/index.js",
30271 "groupTitle": "Variables"
30275 "url": "/api/variables/{id}",
30276 "title": "Deletes a Variable",
30279 "title": "Example usage:",
30280 "content": "curl https://{domain}/api/variables/{id} -v -u {name}:{password} -X DELETE",
30284 "name": "DeleteVariables",
30285 "group": "Variables",
30286 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30287 "version": "0.0.0",
30288 "filename": "server/api/variable/index.js",
30289 "groupTitle": "Variables"
30293 "url": "/api/variables",
30294 "title": "Gets a list of Variables",
30297 "title": "Example usage:",
30298 "content": "curl https://{domain}/api/variables -v -u {name}:{password}",
30302 "name": "GetVariables",
30303 "group": "Variables",
30304 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
30305 "version": "0.0.0",
30306 "filename": "server/api/variable/index.js",
30307 "groupTitle": "Variables"
30311 "url": "/api/variables/{id}",
30312 "title": "Gets a single Variable",
30315 "title": "Example usage:",
30316 "content": "curl https://{domain}/api/variables/{id} -v -u {name}:{password}",
30320 "name": "ShowVariables",
30321 "group": "Variables",
30322 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30323 "version": "0.0.0",
30324 "filename": "server/api/variable/index.js",
30325 "groupTitle": "Variables"
30329 "url": "/api/variables/{id}",
30330 "title": "Update an existing Variable",
30333 "title": "Example usage:",
30334 "content": "curl https://{domain}/api/variables/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
30338 "name": "updateVariables",
30339 "group": "Variables",
30340 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30341 "version": "0.0.0",
30342 "filename": "server/api/variable/index.js",
30343 "groupTitle": "Variables"
30347 "url": "/api/version/fetch",
30348 "title": "Fetch git version",
30351 "title": "Example usage:",
30352 "content": "curl https://{domain}/api/version/fetch -v -u {name}:{password}",
30356 "name": "FetchVersion",
30357 "group": "Version",
30358 "description": "<p>Motion run the following command: git fetch origin master</p>",
30359 "version": "0.0.0",
30360 "filename": "server/api/version/index.js",
30361 "groupTitle": "Version"
30365 "url": "/api/version",
30366 "title": "Gets version",
30369 "title": "Example usage:",
30370 "content": "curl https://{domain}/api/version -v -u {name}:{password}",
30374 "name": "GetVersion",
30375 "group": "Version",
30376 "description": "<p>Motion returns the current and latest motion version.</p>",
30377 "version": "0.0.0",
30378 "filename": "server/api/version/index.js",
30379 "groupTitle": "Version"
30383 "url": "/api/version/migrations",
30384 "title": "Launch database migrations",
30387 "title": "Example usage:",
30388 "content": "curl https://{domain}/api/version/migrations -v -u {name}:{password}",
30392 "name": "MigrateVersion",
30393 "group": "Version",
30394 "description": "<p>Motion launch the database migrations, according to the application version</p>",
30395 "version": "0.0.0",
30396 "filename": "server/api/version/index.js",
30397 "groupTitle": "Version"
30401 "url": "/api/version/pull",
30402 "title": "Pull git version",
30405 "title": "Example usage:",
30406 "content": "curl https://{domain}/api/version/pull -v -u {name}:{password}",
30410 "name": "PullVersion",
30411 "group": "Version",
30412 "description": "<p>Motion run the following command: git pull</p>",
30413 "version": "0.0.0",
30414 "filename": "server/api/version/index.js",
30415 "groupTitle": "Version"
30419 "url": "/api/version/reset",
30420 "title": "Reset git version",
30423 "title": "Example usage:",
30424 "content": "curl https://{domain}/api/version/reset -v -u {name}:{password}",
30428 "name": "ResetVersion",
30429 "group": "Version",
30430 "description": "<p>Motion run the following command: git reset --hard FETCH_HEAD</p>",
30431 "version": "0.0.0",
30432 "filename": "server/api/version/index.js",
30433 "groupTitle": "Version"
30437 "url": "/api/version/restart",
30438 "title": "Restart motion2 after update",
30441 "title": "Example usage:",
30442 "content": "curl https://{domain}/api/version/restart -v -u {name}:{password}",
30446 "name": "RestartVersion",
30447 "group": "Version",
30448 "description": "<p>Motion run the following command: pm2 restart motion</p>",
30449 "version": "0.0.0",
30450 "filename": "server/api/version/index.js",
30451 "groupTitle": "Version"
30455 "url": "/api/voice/agents/reports/describe",
30456 "title": "Gets table info about Agent Reports",
30459 "title": "Example usage:",
30460 "content": "curl https://{domain}/api/voice/agents/reports/describe -v -u {name}:{password}",
30464 "name": "DescribeAgent_Reports",
30465 "group": "Voice_Agent_Reports",
30466 "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>",
30467 "version": "0.0.0",
30468 "filename": "server/api/voiceAgentReport/index.js",
30469 "groupTitle": "Voice_Agent_Reports"
30473 "url": "/api/voice/agents/reports",
30474 "title": "Gets a list of Agent Reports",
30477 "title": "Example usage:",
30478 "content": "curl https://{domain}/api/voice/agents/reports -v -u {name}:{password}",
30482 "name": "GetAgent_Reports",
30483 "group": "Voice_Agent_Reports",
30484 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
30485 "version": "0.0.0",
30486 "filename": "server/api/voiceAgentReport/index.js",
30487 "groupTitle": "Voice_Agent_Reports"
30491 "url": "/api/voice/agents/reports/{id}",
30492 "title": "Gets a single Agent Report",
30495 "title": "Example usage:",
30496 "content": "curl https://{domain}/api/voice/agents/reports/{id} -v -u {name}:{password}",
30500 "name": "ShowAgent_Reports",
30501 "group": "Voice_Agent_Reports",
30502 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30503 "version": "0.0.0",
30504 "filename": "server/api/voiceAgentReport/index.js",
30505 "groupTitle": "Voice_Agent_Reports"
30509 "url": "/api/voice/calls/reports/describe",
30510 "title": "Gets table info about Call Reports",
30513 "title": "Example usage:",
30514 "content": "curl https://{domain}/api/voice/calls/reports/describe -v -u {name}:{password}",
30518 "name": "DescribeCall_Reports",
30519 "group": "Voice_Call_Reports",
30520 "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>",
30521 "version": "0.0.0",
30522 "filename": "server/api/voiceCallReport/index.js",
30523 "groupTitle": "Voice_Call_Reports"
30527 "url": "/api/voice/calls/reports",
30528 "title": "Gets a list of Call Reports",
30531 "title": "Example usage:",
30532 "content": "curl https://{domain}/api/voice/calls/reports -v -u {name}:{password}",
30536 "name": "GetCall_Reports",
30537 "group": "Voice_Call_Reports",
30538 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
30539 "version": "0.0.0",
30540 "filename": "server/api/voiceCallReport/index.js",
30541 "groupTitle": "Voice_Call_Reports"
30545 "url": "/api/voice/calls/reports/{id}",
30546 "title": "Gets a single Call Report",
30549 "title": "Example usage:",
30550 "content": "curl https://{domain}/api/voice/calls/reports/{id} -v -u {name}:{password}",
30554 "name": "ShowCall_Reports",
30555 "group": "Voice_Call_Reports",
30556 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30557 "version": "0.0.0",
30558 "filename": "server/api/voiceCallReport/index.js",
30559 "groupTitle": "Voice_Call_Reports"
30563 "url": "/api/voice/calls/reports/{id}",
30564 "title": "Update a single cdr",
30567 "title": "Example usage:",
30568 "content": "curl https://{domain}/api/voice/calls/reports/{id} -d '{\"userDispositio\": \"OK\"}' -v -u {name}:{password} -X PUT",
30573 "group": "Voice_Call_Reports",
30574 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30575 "version": "0.0.0",
30576 "filename": "server/api/voiceCallReport/index.js",
30577 "groupTitle": "Voice_Call_Reports"
30581 "url": "/api/voice/chanspy",
30582 "title": "Creates a new ChanSpy",
30585 "title": "Example usage:",
30586 "content": "curl https://{domain}/api/voice/chanspy -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
30590 "name": "CreateChanSpy",
30591 "group": "Voice_ChanSpy",
30613 "field": "options",
30627 "field": "password",
30641 "field": "recordingFormat",
30648 "field": "description",
30654 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30655 "version": "0.0.0",
30656 "filename": "server/api/voiceChanSpy/index.js",
30657 "groupTitle": "Voice_ChanSpy"
30661 "url": "/api/voice/chanspy/{id}",
30662 "title": "Deletes a ChanSpy",
30665 "title": "Example usage:",
30666 "content": "curl https://{domain}/api/voice/chanspy/{id} -v -u {name}:{password} -X DELETE",
30670 "name": "DeleteChanSpy",
30671 "group": "Voice_ChanSpy",
30672 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30673 "version": "0.0.0",
30674 "filename": "server/api/voiceChanSpy/index.js",
30675 "groupTitle": "Voice_ChanSpy"
30679 "url": "/api/voice/chanspy",
30680 "title": "Gets a list of ChanSpy",
30683 "title": "Example usage:",
30684 "content": "curl https://{domain}/api/voice/chanspy -v -u {name}:{password}",
30688 "name": "GetChanSpy",
30689 "group": "Voice_ChanSpy",
30690 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
30691 "version": "0.0.0",
30692 "filename": "server/api/voiceChanSpy/index.js",
30693 "groupTitle": "Voice_ChanSpy"
30697 "url": "/api/voice/chanspy/{id}",
30698 "title": "Gets a single ChanSpy",
30701 "title": "Example usage:",
30702 "content": "curl https://{domain}/api/voice/chanspy/{id} -v -u {name}:{password}",
30706 "name": "ShowChanSpy",
30707 "group": "Voice_ChanSpy",
30708 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30709 "version": "0.0.0",
30710 "filename": "server/api/voiceChanSpy/index.js",
30711 "groupTitle": "Voice_ChanSpy"
30715 "url": "/api/voice/chanspy/{id}",
30716 "title": "Update an existing ChanSpy",
30719 "title": "Example usage:",
30720 "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",
30724 "name": "updateChanSpy",
30725 "group": "Voice_ChanSpy",
30726 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30727 "version": "0.0.0",
30728 "filename": "server/api/voiceChanSpy/index.js",
30729 "groupTitle": "Voice_ChanSpy"
30733 "url": "/api/voice/contexts",
30734 "title": "Create a new context",
30737 "title": "Example usage:",
30738 "content": "curl https://{domain}/api/voice/contexts -v -u {name}:{password} -X POST",
30743 "group": "Voice_Contexts",
30758 "field": "description",
30765 "field": "defaultEntry",
30771 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30772 "version": "0.0.0",
30773 "filename": "server/api/voiceContext/index.js",
30774 "groupTitle": "Voice_Contexts"
30778 "url": "/api/voice/contexts/{id}",
30779 "title": "Deletes a context",
30782 "title": "Example usage:",
30783 "content": "curl https://{domain}/api/voice/contexts/{id} -v -u {name}:{password} -X DELETE",
30788 "group": "Voice_Contexts",
30789 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30790 "version": "0.0.0",
30791 "filename": "server/api/voiceContext/index.js",
30792 "groupTitle": "Voice_Contexts"
30796 "url": "/api/voice/contexts",
30797 "title": "Gets a list of Contexts",
30800 "title": "Example usage:",
30801 "content": "curl https://{domain}/api/voice/contexts -v -u {name}:{password}",
30805 "name": "GetContexts",
30806 "group": "Voice_Contexts",
30807 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
30808 "version": "0.0.0",
30809 "filename": "server/api/voiceContext/index.js",
30810 "groupTitle": "Voice_Contexts"
30814 "url": "/api/voice/contexts/{id}",
30815 "title": "Gets a single Context",
30818 "title": "Example usage:",
30819 "content": "curl https://{domain}/api/voice/contexts/{id} -v -u {name}:{password}",
30823 "name": "ShowContexts",
30824 "group": "Voice_Contexts",
30825 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30826 "version": "0.0.0",
30827 "filename": "server/api/voiceContext/index.js",
30828 "groupTitle": "Voice_Contexts"
30832 "url": "/api/voice/contexts/{id}",
30833 "title": "Update an existing context",
30836 "title": "Example usage:",
30837 "content": "curl https://{domain}/api/voice/contexts/{id} -v -u {name}:{password} -X PUT",
30842 "group": "Voice_Contexts",
30843 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30844 "version": "0.0.0",
30845 "filename": "server/api/voiceContext/index.js",
30846 "groupTitle": "Voice_Contexts"
30850 "url": "/api/voice/dials/reports/describe",
30851 "title": "Gets table info about Dial Reports",
30854 "title": "Example usage:",
30855 "content": "curl https://{domain}/api/voice/dials/reports/describe -v -u {name}:{password}",
30859 "name": "DescribeDial_Reports",
30860 "group": "Voice_Dial_Reports",
30861 "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>",
30862 "version": "0.0.0",
30863 "filename": "server/api/voiceDialReport/index.js",
30864 "groupTitle": "Voice_Dial_Reports"
30868 "url": "/api/voice/dials/reports",
30869 "title": "Gets a list of Dial Reports",
30872 "title": "Example usage:",
30873 "content": "curl https://{domain}/api/voice/dials/reports -v -u {name}:{password}",
30877 "name": "GetDial_Reports",
30878 "group": "Voice_Dial_Reports",
30879 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
30880 "version": "0.0.0",
30881 "filename": "server/api/voiceDialReport/index.js",
30882 "groupTitle": "Voice_Dial_Reports"
30886 "url": "/api/voice/dials/reports/{id}",
30887 "title": "Gets a single Dial Report",
30890 "title": "Example usage:",
30891 "content": "curl https://{domain}/api/voice/dials/reports/{id} -v -u {name}:{password}",
30895 "name": "ShowDial_Reports",
30896 "group": "Voice_Dial_Reports",
30897 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30898 "version": "0.0.0",
30899 "filename": "server/api/voiceDialReport/index.js",
30900 "groupTitle": "Voice_Dial_Reports"
30904 "url": "/api/voice/extensions/{id}",
30905 "title": "Deletes a Extension",
30908 "title": "Example usage:",
30909 "content": "curl https://{domain}/api/voice/extensions/{id} -v -u {name}:{password} -X DELETE",
30913 "name": "DeleteExtensions",
30914 "group": "Voice_Extensions",
30915 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30916 "version": "0.0.0",
30917 "filename": "server/api/voiceExtension/index.js",
30918 "groupTitle": "Voice_Extensions"
30922 "url": "/api/voice/extensions",
30923 "title": "Gets a list of Extensions",
30926 "title": "Example usage:",
30927 "content": "curl https://{domain}/api/voice/extensions -v -u {name}:{password}",
30931 "name": "GetExtensions",
30932 "group": "Voice_Extensions",
30933 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
30934 "version": "0.0.0",
30935 "filename": "server/api/voiceExtension/index.js",
30936 "groupTitle": "Voice_Extensions"
30940 "url": "/api/voice/extensions/{id}",
30941 "title": "Gets a single Extension",
30944 "title": "Example usage:",
30945 "content": "curl https://{domain}/api/voice/extensions/{id} -v -u {name}:{password}",
30949 "name": "ShowExtensions",
30950 "group": "Voice_Extensions",
30951 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30952 "version": "0.0.0",
30953 "filename": "server/api/voiceExtension/index.js",
30954 "groupTitle": "Voice_Extensions"
30958 "url": "/api/voice/extensions",
30959 "title": "Create new applications",
30962 "title": "Example usage:",
30963 "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",
30967 "name": "addApplications",
30968 "group": "Voice_Extensions",
30969 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30970 "version": "0.0.0",
30971 "filename": "server/api/voiceExtension/index.js",
30972 "groupTitle": "Voice_Extensions"
30976 "url": "/api/voice/extensions",
30977 "title": "Create an extension",
30980 "title": "Example usage:",
30981 "content": "curl https://{domain}/api/voice/extensions -d '{\"exten\": \"12345\", \"context\": \"from-custom\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
30986 "group": "Voice_Extensions",
30987 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
30988 "version": "0.0.0",
30989 "filename": "server/api/voiceExtension/index.js",
30990 "groupTitle": "Voice_Extensions"
30994 "url": "/api/voice/extensions/{id}",
30995 "title": "Update an extension",
30998 "title": "Example usage:",
30999 "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",
31004 "group": "Voice_Extensions",
31005 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31006 "version": "0.0.0",
31007 "filename": "server/api/voiceExtension/index.js",
31008 "groupTitle": "Voice_Extensions"
31012 "url": "/api/voice/mohs",
31013 "title": "Create a new a new MOH",
31016 "title": "Example usage:",
31017 "content": "curl https://{domain}/api/voice/mohs -d '{\"name\": \"xmas_musics\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
31022 "group": "Voice_MOHs",
31023 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31024 "version": "0.0.0",
31025 "filename": "server/api/voiceMusicOnHold/index.js",
31026 "groupTitle": "Voice_MOHs"
31030 "url": "/api/voice/mohs/{id}/sounds",
31031 "title": "Add sound to MOH",
31034 "title": "Example usage:",
31035 "content": "curl https://{domain}/api/voice/mohs/{id}/sounds -d '{\"id\": 1}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
31039 "name": "AddSound",
31040 "group": "Voice_MOHs",
31041 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31042 "version": "0.0.0",
31043 "filename": "server/api/voiceMusicOnHold/index.js",
31044 "groupTitle": "Voice_MOHs"
31048 "url": "/api/voice/mohs/{id}",
31049 "title": "Deletes an MOH",
31052 "title": "Example usage:",
31053 "content": "curl https://{domain}/api/voice/mohs/{id} -v -u {name}:{password} -X DELETE",
31057 "name": "DestroyMoh",
31058 "group": "Voice_MOHs",
31059 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31060 "version": "0.0.0",
31061 "filename": "server/api/voiceMusicOnHold/index.js",
31062 "groupTitle": "Voice_MOHs"
31066 "url": "/api/voice/mohs",
31067 "title": "Gets a list of Music On Holds",
31070 "title": "Example usage:",
31071 "content": "curl https://{domain}/api/voice/mohs -v -u {name}:{password}",
31075 "name": "GetMusic_On_Holds",
31076 "group": "Voice_MOHs",
31077 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
31078 "version": "0.0.0",
31079 "filename": "server/api/voiceMusicOnHold/index.js",
31080 "groupTitle": "Voice_MOHs"
31084 "url": "/api/voice/mohs/{id}/sounds",
31085 "title": "Gets sounds from MOH",
31088 "title": "Example usage:",
31089 "content": "curl https://{domain}/api/voice/mohs/{id}/sounds -v -u {name}:{password} -X DELETE",
31093 "name": "GetSounds",
31094 "group": "Voice_MOHs",
31095 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31096 "version": "0.0.0",
31097 "filename": "server/api/voiceMusicOnHold/index.js",
31098 "groupTitle": "Voice_MOHs"
31102 "url": "/api/voice/mohs/{id}/sounds/{id2}",
31103 "title": "Remove sound from MOH",
31106 "title": "Example usage:",
31107 "content": "curl https://{domain}/api/voice/mohs/{id}/sounds/{id2} -v -u {name}:{password} -X DELETE",
31111 "name": "RemoveSound",
31112 "group": "Voice_MOHs",
31113 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31114 "version": "0.0.0",
31115 "filename": "server/api/voiceMusicOnHold/index.js",
31116 "groupTitle": "Voice_MOHs"
31120 "url": "/api/voice/mohs/{id}",
31121 "title": "Gets a single Music On Hold",
31124 "title": "Example usage:",
31125 "content": "curl https://{domain}/api/voice/mohs/{id} -v -u {name}:{password}",
31129 "name": "ShowMusic_On_Holds",
31130 "group": "Voice_MOHs",
31131 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31132 "version": "0.0.0",
31133 "filename": "server/api/voiceMusicOnHold/index.js",
31134 "groupTitle": "Voice_MOHs"
31138 "url": "/api/voice/mohs/{id}",
31139 "title": "Update an existing Music On Hold",
31142 "title": "Example usage:",
31143 "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",
31147 "name": "updateMusic_On_Holds",
31148 "group": "Voice_MOHs",
31149 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31150 "version": "0.0.0",
31151 "filename": "server/api/voiceMusicOnHold/index.js",
31152 "groupTitle": "Voice_MOHs"
31156 "url": "/api/voice/mails",
31157 "title": "Creates a new Mail",
31160 "title": "Example usage:",
31161 "content": "curl https://{domain}/api/voice/mails -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
31165 "name": "CreateMails",
31166 "group": "Voice_Mails",
31174 "field": "customer_id",
31181 "field": "context",
31188 "field": "mailbox",
31195 "field": "password",
31202 "field": "fullname",
31252 "field": "dialout",
31259 "field": "callback",
31281 "field": "operator",
31292 "field": "envelope",
31303 "field": "sayduration",
31310 "field": "saydurationm",
31321 "field": "sendvoicemail",
31343 "field": "nextaftercmd",
31354 "field": "forcename",
31365 "field": "forcegreetings",
31376 "field": "hidefromdir",
31390 "field": "emailsubject",
31397 "field": "emailbody",
31404 "field": "maxsecs",
31424 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31425 "version": "0.0.0",
31426 "filename": "server/api/voiceMail/index.js",
31427 "groupTitle": "Voice_Mails"
31431 "url": "/api/voice/mails/{id}",
31432 "title": "Deletes a Mail",
31435 "title": "Example usage:",
31436 "content": "curl https://{domain}/api/voice/mails/{id} -v -u {name}:{password} -X DELETE",
31440 "name": "DeleteMails",
31441 "group": "Voice_Mails",
31442 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31443 "version": "0.0.0",
31444 "filename": "server/api/voiceMail/index.js",
31445 "groupTitle": "Voice_Mails"
31449 "url": "/api/voice/mails",
31450 "title": "Gets a list of Mails",
31453 "title": "Example usage:",
31454 "content": "curl https://{domain}/api/voice/mails -v -u {name}:{password}",
31458 "name": "GetMails",
31459 "group": "Voice_Mails",
31460 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
31461 "version": "0.0.0",
31462 "filename": "server/api/voiceMail/index.js",
31463 "groupTitle": "Voice_Mails"
31467 "url": "/api/voice/mails/{id}",
31468 "title": "Gets a single Mail",
31471 "title": "Example usage:",
31472 "content": "curl https://{domain}/api/voice/mails/{id} -v -u {name}:{password}",
31476 "name": "ShowMails",
31477 "group": "Voice_Mails",
31478 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31479 "version": "0.0.0",
31480 "filename": "server/api/voiceMail/index.js",
31481 "groupTitle": "Voice_Mails"
31485 "url": "/api/voice/mails/{id}/messages",
31486 "title": "Gets voice mail messages",
31489 "title": "Example usage:",
31490 "content": "curl https://{domain}/api/voice/mails/{id}/messages -v -u {name}:{password} -X GET",
31494 "name": "getMessages",
31495 "group": "Voice_Mails",
31496 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31497 "version": "0.0.0",
31498 "filename": "server/api/voiceMail/index.js",
31499 "groupTitle": "Voice_Mails"
31503 "url": "/api/voice/mails/{id}",
31504 "title": "Update an existing Mail",
31507 "title": "Example usage:",
31508 "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",
31512 "name": "updateMails",
31513 "group": "Voice_Mails",
31514 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31515 "version": "0.0.0",
31516 "filename": "server/api/voiceMail/index.js",
31517 "groupTitle": "Voice_Mails"
31521 "url": "/api/voice/mails/messages",
31522 "title": "Creates a new Message",
31525 "title": "Example usage:",
31526 "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",
31530 "name": "CreateMessages",
31531 "group": "Voice_Messages",
31560 "field": "context",
31567 "field": "macrocontext",
31574 "field": "callerid",
31581 "field": "origtime",
31588 "field": "duration",
31595 "field": "mailboxuser",
31602 "field": "mailboxcontext",
31609 "field": "recording",
31636 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31637 "version": "0.0.0",
31638 "filename": "server/api/voiceMailMessage/index.js",
31639 "groupTitle": "Voice_Messages"
31643 "url": "/api/voice/mails/messages/{id}",
31644 "title": "Deletes a Message",
31647 "title": "Example usage:",
31648 "content": "curl https://{domain}/api/voice/mails/messages/{id} -v -u {name}:{password} -X DELETE",
31652 "name": "DeleteMessages",
31653 "group": "Voice_Messages",
31654 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31655 "version": "0.0.0",
31656 "filename": "server/api/voiceMailMessage/index.js",
31657 "groupTitle": "Voice_Messages"
31661 "url": "/api/voice/mails/messages",
31662 "title": "Gets a list of Messages",
31665 "title": "Example usage:",
31666 "content": "curl https://{domain}/api/voice/mails/messages -v -u {name}:{password}",
31670 "name": "GetMessages",
31671 "group": "Voice_Messages",
31672 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
31673 "version": "0.0.0",
31674 "filename": "server/api/voiceMailMessage/index.js",
31675 "groupTitle": "Voice_Messages"
31679 "url": "/api/voice/mails/messages/{id}",
31680 "title": "Gets a single Message",
31683 "title": "Example usage:",
31684 "content": "curl https://{domain}/api/voice/mails/messages/{id} -v -u {name}:{password}",
31688 "name": "ShowMessages",
31689 "group": "Voice_Messages",
31690 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31691 "version": "0.0.0",
31692 "filename": "server/api/voiceMailMessage/index.js",
31693 "groupTitle": "Voice_Messages"
31697 "url": "voice/mails/messages/{id}/download",
31698 "title": "Download Voice Message",
31701 "title": "Example usage:",
31702 "content": "curl https://{domain}voice/mails/messages/{id}/download -v -u {name}:{password} -X GET",
31706 "name": "download",
31707 "group": "Voice_Messages",
31708 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31709 "version": "0.0.0",
31710 "filename": "server/api/voiceMailMessage/index.js",
31711 "groupTitle": "Voice_Messages"
31715 "url": "/api/voice/mails/messages/{id}",
31716 "title": "Update an existing Message",
31719 "title": "Example usage:",
31720 "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",
31724 "name": "updateMessages",
31725 "group": "Voice_Messages",
31726 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31727 "version": "0.0.0",
31728 "filename": "server/api/voiceMailMessage/index.js",
31729 "groupTitle": "Voice_Messages"
31733 "url": "/api/voice/prefixes/{id}/users",
31734 "title": "Add agents to a prefix",
31737 "title": "Example usage:",
31738 "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",
31742 "name": "AddAgents",
31743 "group": "Voice_Prefixes",
31744 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31745 "version": "0.0.0",
31746 "filename": "server/api/voicePrefix/index.js",
31747 "groupTitle": "Voice_Prefixes"
31751 "url": "/api/voice/prefixes/{id}",
31752 "title": "Deletes a Prefix",
31755 "title": "Example usage:",
31756 "content": "curl https://{domain}/api/voice/prefixes/{id} -v -u {name}:{password} -X DELETE",
31760 "name": "DeletePrefixes",
31761 "group": "Voice_Prefixes",
31762 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31763 "version": "0.0.0",
31764 "filename": "server/api/voicePrefix/index.js",
31765 "groupTitle": "Voice_Prefixes"
31769 "url": "/api/voice/prefixes/describe",
31770 "title": "Gets table info about Prefixes",
31773 "title": "Example usage:",
31774 "content": "curl https://{domain}/api/voice/prefixes/describe -v -u {name}:{password}",
31778 "name": "DescribePrefixes",
31779 "group": "Voice_Prefixes",
31780 "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>",
31781 "version": "0.0.0",
31782 "filename": "server/api/voicePrefix/index.js",
31783 "groupTitle": "Voice_Prefixes"
31787 "url": "/api/voice/prefixes/{id}/users",
31788 "title": "Gets agents from prefix",
31791 "title": "Example usage:",
31792 "content": "curl https://{domain}/api/voice/prefixes/{id}/users -v -u {name}:{password} -X GET",
31796 "name": "GetAgents",
31797 "group": "Voice_Prefixes",
31798 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31799 "version": "0.0.0",
31800 "filename": "server/api/voicePrefix/index.js",
31801 "groupTitle": "Voice_Prefixes"
31805 "url": "/api/voice/prefixes",
31806 "title": "Gets a list of Prefixes",
31809 "title": "Example usage:",
31810 "content": "curl https://{domain}/api/voice/prefixes -v -u {name}:{password}",
31814 "name": "GetPrefixes",
31815 "group": "Voice_Prefixes",
31816 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
31817 "version": "0.0.0",
31818 "filename": "server/api/voicePrefix/index.js",
31819 "groupTitle": "Voice_Prefixes"
31823 "url": "/api/voice/prefixes/{id}/users",
31824 "title": "Removes agents from a prefix",
31827 "title": "Example usage:",
31828 "content": "curl https://{domain}/api/voice/prefixes/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
31832 "name": "RemoveAgents",
31833 "group": "Voice_Prefixes",
31834 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31835 "version": "0.0.0",
31836 "filename": "server/api/voicePrefix/index.js",
31837 "groupTitle": "Voice_Prefixes"
31841 "url": "/api/voice/prefixes/{id}",
31842 "title": "Gets a single Prefix",
31845 "title": "Example usage:",
31846 "content": "curl https://{domain}/api/voice/prefixes/{id} -v -u {name}:{password}",
31850 "name": "ShowPrefixes",
31851 "group": "Voice_Prefixes",
31852 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31853 "version": "0.0.0",
31854 "filename": "server/api/voicePrefix/index.js",
31855 "groupTitle": "Voice_Prefixes"
31859 "url": "/api/voice/prefixes/{id}",
31860 "title": "Update an existing prefix",
31863 "title": "Example usage:",
31864 "content": "curl https://{domain}/api/voice/prefixes/{id} -v -u {name}:{password} -X PUT",
31869 "group": "Voice_Prefixes",
31870 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31871 "version": "0.0.0",
31872 "filename": "server/api/voicePrefix/index.js",
31873 "groupTitle": "Voice_Prefixes"
31877 "url": "/api/voice/prefixes",
31878 "title": "Create a prefix",
31881 "title": "Example usage:",
31882 "content": "curl https://{domain}/api/voice/prefixes -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
31887 "group": "Voice_Prefixes",
31888 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31889 "version": "0.0.0",
31890 "filename": "server/api/voicePrefix/index.js",
31891 "groupTitle": "Voice_Prefixes"
31895 "url": "/api/voice/queues/reports/describe",
31896 "title": "Gets table info about Queue Reports",
31899 "title": "Example usage:",
31900 "content": "curl https://{domain}/api/voice/queues/reports/describe -v -u {name}:{password}",
31904 "name": "DescribeQueue_Reports",
31905 "group": "Voice_Queue_Reports",
31906 "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>",
31907 "version": "0.0.0",
31908 "filename": "server/api/voiceQueueReport/index.js",
31909 "groupTitle": "Voice_Queue_Reports"
31913 "url": "/api/voice/queues/reports",
31914 "title": "Gets a list of Queue Reports",
31917 "title": "Example usage:",
31918 "content": "curl https://{domain}/api/voice/queues/reports -v -u {name}:{password}",
31922 "name": "GetQueue_Reports",
31923 "group": "Voice_Queue_Reports",
31924 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
31925 "version": "0.0.0",
31926 "filename": "server/api/voiceQueueReport/index.js",
31927 "groupTitle": "Voice_Queue_Reports"
31931 "url": "/api/voice/queues/reports/{id}",
31932 "title": "Gets a single Queue Report",
31935 "title": "Example usage:",
31936 "content": "curl https://{domain}/api/voice/queues/reports/{id} -v -u {name}:{password}",
31940 "name": "ShowQueue_Reports",
31941 "group": "Voice_Queue_Reports",
31942 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31943 "version": "0.0.0",
31944 "filename": "server/api/voiceQueueReport/index.js",
31945 "groupTitle": "Voice_Queue_Reports"
31949 "url": "/api/voice/queues/reports/index",
31950 "title": "Get Voice Queues Report",
31953 "title": "Example usage:",
31954 "content": "curl https://{domain}/api/voice/queues/reports/index -v -u {name}:{password} -X GET",
31958 "name": "getVoiceQueuesReport",
31959 "group": "Voice_Queue_Reports",
31960 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31961 "version": "0.0.0",
31962 "filename": "server/api/voiceQueueReport/index.js",
31963 "groupTitle": "Voice_Queue_Reports"
31967 "url": "/api/voice/queues/{id}/users",
31968 "title": "Add agents to queue",
31971 "title": "Example usage:",
31972 "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",
31976 "name": "AddAgents",
31977 "group": "Voice_Queues",
31978 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31979 "version": "0.0.0",
31980 "filename": "server/api/voiceQueue/index.js",
31981 "groupTitle": "Voice_Queues"
31985 "url": "/api/voice/queues/{id}/blacklists",
31986 "title": "Add blacklists to a queue",
31989 "title": "Example usage:",
31990 "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",
31994 "name": "AddBlackLists",
31995 "group": "Voice_Queues",
31996 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
31997 "version": "0.0.0",
31998 "filename": "server/api/voiceQueue/index.js",
31999 "groupTitle": "Voice_Queues"
32003 "url": "/api/voice/queues/{id}/lists",
32004 "title": "Add lists to a queue",
32007 "title": "Example usage:",
32008 "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",
32012 "name": "AddLists",
32013 "group": "Voice_Queues",
32014 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32015 "version": "0.0.0",
32016 "filename": "server/api/voiceQueue/index.js",
32017 "groupTitle": "Voice_Queues"
32021 "url": "/api/voice/queues/{id}/teams",
32022 "title": "Add teams to queue",
32025 "title": "Example usage:",
32026 "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",
32030 "name": "AddTeams",
32031 "group": "Voice_Queues",
32032 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32033 "version": "0.0.0",
32034 "filename": "server/api/voiceQueue/index.js",
32035 "groupTitle": "Voice_Queues"
32039 "url": "/api/voice/queues/clone",
32040 "title": "Clone an existing Queue",
32043 "title": "Example usage:",
32044 "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",
32048 "name": "CloneQueues",
32049 "group": "Voice_Queues",
32050 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32051 "version": "0.0.0",
32052 "filename": "server/api/voiceQueue/index.js",
32053 "groupTitle": "Voice_Queues"
32057 "url": "/api/voice/queues",
32058 "title": "Creates a new Queue",
32061 "title": "Example usage:",
32062 "content": "curl https://{domain}/api/voice/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
32066 "name": "CreateQueues",
32067 "group": "Voice_Queues",
32093 "field": "musiconhold",
32100 "field": "announce",
32118 "field": "strategy",
32125 "field": "servicelevel",
32132 "field": "context",
32139 "field": "penaltymemberslimit",
32146 "field": "timeout",
32160 "field": "timeoutpriority",
32174 "field": "wrapuptime",
32185 "field": "autofill",
32197 "field": "autopause",
32204 "field": "autopausedelay",
32215 "field": "autopausebusy",
32226 "field": "autopauseunavail",
32244 "field": "setinterfacevar",
32255 "field": "setqueueentryvar",
32266 "field": "setqueuevar",
32277 "field": "eventmemberstatus",
32284 "field": "membermacro",
32291 "field": "membergosub",
32298 "field": "announce_frequency",
32305 "field": "min_announce_frequency",
32312 "field": "periodic_announce_frequency",
32323 "field": "random_periodic_announce",
32334 "field": "relative_periodic_announce",
32346 "field": "announce_holdtime",
32353 "field": "announce_position",
32364 "field": "announce_to_first_user",
32371 "field": "announce_position_limit",
32386 "field": "announce_round_seconds",
32393 "field": "monitor_format",
32400 "field": "monitor_type",
32407 "field": "queue_youarenext",
32414 "field": "queue_thereare",
32421 "field": "queue_callswaiting",
32428 "field": "queue_holdtime",
32435 "field": "queue_minute",
32442 "field": "queue_minutes",
32449 "field": "queue_seconds",
32456 "field": "queue_thankyou",
32463 "field": "queue_reporthold",
32470 "field": "queue_quantity1",
32477 "field": "queue_quantity2",
32484 "field": "queue_periodic_announce",
32491 "field": "queue_less_than",
32498 "field": "periodic_announce",
32505 "field": "joinempty",
32512 "field": "leavewhenempty",
32523 "field": "reportholdtime",
32534 "field": "ringinuse",
32541 "field": "memberdelay",
32552 "field": "timeoutrestart",
32559 "field": "defaultrule",
32566 "field": "description",
32580 "field": "acwTimeout",
32587 "field": "dialActive",
32588 "description": "<p>Active/Disactive Campaign</p>"
32601 "field": "dialMethod",
32602 "description": "<p>Dial Method.</p>"
32608 "field": "dialLimitChannel",
32609 "description": "<p>Max 9999 channels, 0 means unlimited.</p>"
32615 "field": "dialLimitQueue",
32616 "description": "<p>Max 9999 member in queue(min:1, max:9999), 0 means unlimited.</p>"
32622 "field": "dialPowerLevel",
32623 "description": "<p>Power Level: Calls for agents (min:1, max:10).</p>"
32629 "\"agentBusyFactor\"",
32633 "field": "dialPredictiveOptimization",
32634 "description": "<p>Only for predictive method.</p>"
32640 "field": "dialPredictiveOptimizationPercentage",
32641 "description": "<p>Predictive Optimization Percentage (min: 1, max: 95)</p>"
32647 "field": "dialPredictiveInterval",
32648 "description": "<p>Interval Predictive Minutes (min:5 max:30)</p>"
32654 "field": "dialOriginateCallerIdName",
32661 "field": "dialOriginateCallerIdNumber",
32668 "field": "dialOriginateTimeout",
32669 "description": "<p>Originate Timeout Seconds (min:1, max:999)</p>"
32675 "field": "dialQueueOptions",
32676 "description": "<p>https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_Queue</p>"
32682 "field": "dialQueueTimeout",
32683 "description": "<p>Queue Timeout Seconds (min:1, max:999)</p>"
32689 "field": "dialQueueProject",
32690 "description": "<p>AGI queue option (use: agi://127.0.0.1/square,<project_name>)</p>"
32696 "field": "dialCongestionMaxRetry",
32697 "description": "<p>#Congestion Retry (min:1, max:999)</p>"
32703 "field": "dialCongestionRetryFrequency",
32704 "description": "<p>Congestion Retry Frequency Minutes (min:1, max:99999)</p>"
32710 "field": "dialBusyMaxRetry",
32711 "description": "<p>#Busy Retry (min:1, max:999)</p>"
32717 "field": "dialBusyRetryFrequency",
32718 "description": "<p>Busy Retry Frequency Minutes (min:1, max:99999)</p>"
32724 "field": "dialNoAnswerMaxRetry",
32725 "description": "<p>#NoAnswer Retry (min:1, max:999)</p>"
32731 "field": "dialNoAnswerRetryFrequency",
32732 "description": "<p>NoAnswer Retry Frequency Minutes (min:1, max:99999)</p>"
32738 "field": "dialGlobalMaxRetry",
32739 "description": "<p>#Global Max Retry (min:1, max:999)</p>"
32745 "field": "dialTimezone",
32752 "field": "dialGlobalInterval",
32759 "field": "dialPrefix",
32771 "field": "dialCheckDuplicateType",
32778 "field": "dialAMDActive",
32779 "description": "<p>Active/Disactive AMD</p>"
32785 "field": "dialAMDInitialSilence",
32786 "description": "<p>#AMD Initial Silence</p>"
32792 "field": "dialAMDGreeting",
32793 "description": "<p>#AMD Greeting</p>"
32799 "field": "dialAMDAfterGreetingSilence",
32800 "description": "<p>#AMD After Greeting Silence</p>"
32806 "field": "dialAMDTotalAnalysisTime",
32807 "description": "<p>#AMD Total Analysis Time</p>"
32813 "field": "dialAMDMinWordLength",
32814 "description": "<p>#AMD Min Word Length</p>"
32820 "field": "dialAMDBetweenWordsSilence",
32821 "description": "<p>#AMD Between Words Silence</p>"
32827 "field": "dialAMDMaximumNumberOfWords",
32828 "description": "<p>#AMD Maximum Number Of Words</p>"
32834 "field": "dialAMDSilenceThreshold",
32835 "description": "<p>#AMD Silence Threshold (min:0, max:32767)</p>"
32841 "field": "dialAMDMaximumWordLength",
32842 "description": "<p>#AMD Maximum Word Length</p>"
32848 "field": "dialRecallMeTimeout",
32849 "description": "<p>#RecallMe Timeout (min:1)</p>"
32855 "field": "dialRecallInQueue",
32856 "description": "<p>Active/Disactive Recall In Queue</p>"
32866 "field": "dialOrderByScheduledAt",
32873 "field": "dialQueueProject2",
32874 "description": "<p>AGI queue option (use: agi://127.0.0.1/square,<project_name>)</p>"
32880 "field": "dialAgiAfterHangupClient",
32887 "field": "dialAgiAfterHangupAgent",
32894 "field": "dialRandomLastDigitCallerIdNumber",
32895 "description": "<p>Random Last Digit (min:1, max:15)</p>"
32901 "field": "dialCutDigit",
32902 "description": "<p>Cut Digit (min:1, max:15)</p>"
32908 "field": "mandatoryDispositionPauseId",
32909 "description": "<p>Status to put when mandatory disposition is enabled</p>"
32915 "field": "mandatoryDisposition",
32916 "description": "<p>Enabled/disables mandatory dispo on a queue</p>"
32922 "field": "dialPredictiveIntervalMaxThreshold",
32929 "field": "dialPredictiveIntervalMinThreshold",
32935 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32936 "version": "0.0.0",
32937 "filename": "server/api/voiceQueue/index.js",
32938 "groupTitle": "Voice_Queues"
32942 "url": "/api/voice/queues/{id}",
32943 "title": "Deletes a Queue",
32946 "title": "Example usage:",
32947 "content": "curl https://{domain}/api/voice/queues/{id} -v -u {name}:{password} -X DELETE",
32951 "name": "DeleteQueues",
32952 "group": "Voice_Queues",
32953 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32954 "version": "0.0.0",
32955 "filename": "server/api/voiceQueue/index.js",
32956 "groupTitle": "Voice_Queues"
32960 "url": "/api/voice/queues/{id}/users",
32961 "title": "Gets queue agents",
32964 "title": "Example usage:",
32965 "content": "curl https://{domain}/api/voice/queues/{id}/users -v -u {name}:{password} -X GET",
32969 "name": "GetAgents",
32970 "group": "Voice_Queues",
32971 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32972 "version": "0.0.0",
32973 "filename": "server/api/voiceQueue/index.js",
32974 "groupTitle": "Voice_Queues"
32978 "url": "/api/voice/queues/{id}/blacklists",
32979 "title": "Get queue blacklists",
32982 "title": "Example usage:",
32983 "content": "curl https://{domain}/api/voice/queues/{id}/blacklists -v -u {name}:{password} -X GET",
32987 "name": "GetBlackLists",
32988 "group": "Voice_Queues",
32989 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
32990 "version": "0.0.0",
32991 "filename": "server/api/voiceQueue/index.js",
32992 "groupTitle": "Voice_Queues"
32996 "url": "/api/voice/queues/{id}/finals",
32997 "title": "Gets queue hopper finals",
33000 "title": "Example usage:",
33001 "content": "curl https://{domain}/api/voice/queues/{id}/hopper_finals -v -u {name}:{password} -X GET",
33005 "name": "GetHopperFinals",
33006 "group": "Voice_Queues",
33007 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33008 "version": "0.0.0",
33009 "filename": "server/api/voiceQueue/index.js",
33010 "groupTitle": "Voice_Queues"
33014 "url": "/api/voice/queues/{id}/hopper_histories",
33015 "title": "Gets queue hopper histories",
33018 "title": "Example usage:",
33019 "content": "curl https://{domain}/api/voice/queues/{id}/hopper_histories -v -u {name}:{password} -X GET",
33023 "name": "GetHopperHistories",
33024 "group": "Voice_Queues",
33025 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33026 "version": "0.0.0",
33027 "filename": "server/api/voiceQueue/index.js",
33028 "groupTitle": "Voice_Queues"
33032 "url": "/api/voice/queues/{id}/hoppers",
33033 "title": "Gets queue hoppers",
33036 "title": "Example usage:",
33037 "content": "curl https://{domain}/api/voice/queues/{id}/hoppers -v -u {name}:{password} -X GET",
33041 "name": "GetHoppers",
33042 "group": "Voice_Queues",
33043 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33044 "version": "0.0.0",
33045 "filename": "server/api/voiceQueue/index.js",
33046 "groupTitle": "Voice_Queues"
33050 "url": "/api/voice/queues/{id}/lists",
33051 "title": "Get queue lists",
33054 "title": "Example usage:",
33055 "content": "curl https://{domain}/api/voice/queues/{id}/lists -v -u {name}:{password} -X GET",
33059 "name": "GetLists",
33060 "group": "Voice_Queues",
33061 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33062 "version": "0.0.0",
33063 "filename": "server/api/voiceQueue/index.js",
33064 "groupTitle": "Voice_Queues"
33068 "url": "/api/voice/queues/{id}/members",
33069 "title": "Gets queue members",
33072 "title": "Example usage:",
33073 "content": "curl https://{domain}/api/voice/queues/{id}/members -v -u {name}:{password} -X GET",
33077 "name": "GetMembers",
33078 "group": "Voice_Queues",
33079 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33080 "version": "0.0.0",
33081 "filename": "server/api/voiceQueue/index.js",
33082 "groupTitle": "Voice_Queues"
33086 "url": "/api/voice/queues",
33087 "title": "Gets a list of Queues",
33090 "title": "Example usage:",
33091 "content": "curl https://{domain}/api/voice/queues -v -u {name}:{password}",
33095 "name": "GetQueues",
33096 "group": "Voice_Queues",
33097 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
33098 "version": "0.0.0",
33099 "filename": "server/api/voiceQueue/index.js",
33100 "groupTitle": "Voice_Queues"
33104 "url": "/api/voice/queues/{id}/teams",
33105 "title": "Gets queue team",
33108 "title": "Example usage:",
33109 "content": "curl https://{domain}/api/voice/queues/{id}/teams -v -u {name}:{password} -X GET",
33113 "name": "GetTeams",
33114 "group": "Voice_Queues",
33115 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33116 "version": "0.0.0",
33117 "filename": "server/api/voiceQueue/index.js",
33118 "groupTitle": "Voice_Queues"
33122 "url": "/api/voice/queues/{id}/users",
33123 "title": "Removes agents from a queue",
33126 "title": "Example usage:",
33127 "content": "curl https://{domain}/api/voice/queues/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
33131 "name": "RemoveAgents",
33132 "group": "Voice_Queues",
33133 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33134 "version": "0.0.0",
33135 "filename": "server/api/voiceQueue/index.js",
33136 "groupTitle": "Voice_Queues"
33140 "url": "/api/voice/queues/{id}/blacklists",
33141 "title": "Remove blacklists from a queue",
33144 "title": "Example usage:",
33145 "content": "curl https://{domain}/api/voice/queues/{id}/blacklists?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
33149 "name": "RemoveBlackLists",
33150 "group": "Voice_Queues",
33151 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33152 "version": "0.0.0",
33153 "filename": "server/api/voiceQueue/index.js",
33154 "groupTitle": "Voice_Queues"
33158 "url": "/api/voice/queues/{id}/lists",
33159 "title": "Remove lists from a queue",
33162 "title": "Example usage:",
33163 "content": "curl https://{domain}/api/voice/queues/{id}/lists?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
33167 "name": "RemoveLists",
33168 "group": "Voice_Queues",
33169 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33170 "version": "0.0.0",
33171 "filename": "server/api/voiceQueue/index.js",
33172 "groupTitle": "Voice_Queues"
33176 "url": "/api/voice/queues/{id}",
33177 "title": "Gets a single Queue",
33180 "title": "Example usage:",
33181 "content": "curl https://{domain}/api/voice/queues/{id} -v -u {name}:{password}",
33185 "name": "ShowQueues",
33186 "group": "Voice_Queues",
33187 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33188 "version": "0.0.0",
33189 "filename": "server/api/voiceQueue/index.js",
33190 "groupTitle": "Voice_Queues"
33194 "url": "/api/voice/queues/{id}/blacks",
33195 "title": "Gets queue hopper blacks",
33198 "title": "Example usage:",
33199 "content": "curl https://{domain}/api/voice/queues/{id}/hopper_black -v -u {name}:{password} -X GET",
33203 "name": "getHopperBlacks",
33204 "group": "Voice_Queues",
33205 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33206 "version": "0.0.0",
33207 "filename": "server/api/voiceQueue/index.js",
33208 "groupTitle": "Voice_Queues"
33212 "url": "/api/voice/queues/{id}",
33213 "title": "Update an existing Queue",
33216 "title": "Example usage:",
33217 "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",
33221 "name": "updateQueues",
33222 "group": "Voice_Queues",
33223 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33224 "version": "0.0.0",
33225 "filename": "server/api/voiceQueue/index.js",
33226 "groupTitle": "Voice_Queues"
33230 "url": "/api/voice/recordings",
33231 "title": "Creates a new Recording",
33234 "title": "Example usage:",
33235 "content": "curl https://{domain}/api/voice/recordings -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
33239 "name": "CreateRecordings",
33240 "group": "Voice_Recordings",
33255 "field": "uniqueid",
33262 "field": "channel",
33269 "field": "membername",
33276 "field": "calleridnum",
33283 "field": "calleridname",
33290 "field": "connectedlinenum",
33297 "field": "connectedlinename",
33304 "field": "accountcode",
33311 "field": "context",
33353 "field": "userDisposition",
33360 "field": "createdAt",
33367 "field": "updatedAt",
33373 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33374 "version": "0.0.0",
33375 "filename": "server/api/voiceRecording/index.js",
33376 "groupTitle": "Voice_Recordings"
33380 "url": "/api/voice/recordings/describe",
33381 "title": "Gets table info about Recordings",
33384 "title": "Example usage:",
33385 "content": "curl https://{domain}/api/voice/recordings/describe -v -u {name}:{password}",
33389 "name": "DescribeRecordings",
33390 "group": "Voice_Recordings",
33391 "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>",
33392 "version": "0.0.0",
33393 "filename": "server/api/voiceRecording/index.js",
33394 "groupTitle": "Voice_Recordings"
33398 "url": "/api/voice/recordings",
33399 "title": "Gets a list of Recordings",
33402 "title": "Example usage:",
33403 "content": "curl https://{domain}/api/voice/recordings -v -u {name}:{password}",
33407 "name": "GetRecordings",
33408 "group": "Voice_Recordings",
33409 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
33410 "version": "0.0.0",
33411 "filename": "server/api/voiceRecording/index.js",
33412 "groupTitle": "Voice_Recordings"
33416 "url": "/api/voice/recordings/{id}",
33417 "title": "Gets a single Recording",
33420 "title": "Example usage:",
33421 "content": "curl https://{domain}/api/voice/recordings/{id} -v -u {name}:{password}",
33425 "name": "ShowRecordings",
33426 "group": "Voice_Recordings",
33427 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33428 "version": "0.0.0",
33429 "filename": "server/api/voiceRecording/index.js",
33430 "groupTitle": "Voice_Recordings"
33434 "url": "/api/voice/recordings/{id}",
33435 "title": "Delete voice recording",
33438 "title": "Example usage:",
33439 "content": "curl https://{domain}/api/voice/recordings/{id} -v -u {name}:{password} -X DELETE",
33444 "group": "Voice_Recordings",
33445 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33446 "version": "0.0.0",
33447 "filename": "server/api/voiceRecording/index.js",
33448 "groupTitle": "Voice_Recordings"
33452 "url": "/api/voice/recordings/{id}/download",
33453 "title": "Download Recording",
33456 "title": "Example usage:",
33457 "content": "curl https://{domain}/api/voice/recordings/{id}/download -v -u {name}:{password} -X GET",
33461 "name": "download",
33462 "group": "Voice_Recordings",
33463 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33464 "version": "0.0.0",
33465 "filename": "server/api/voiceRecording/index.js",
33466 "groupTitle": "Voice_Recordings"
33470 "url": "/api/voice/recordings/{id}/downloads",
33471 "title": "Download Recording",
33474 "title": "Example usage:",
33475 "content": "curl https://{domain}/api/voice/recordings/{id}/downloads -v -u {name}:{password} -X GET",
33479 "name": "downloads",
33480 "group": "Voice_Recordings",
33481 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33482 "version": "0.0.0",
33483 "filename": "server/api/voiceRecording/index.js",
33484 "groupTitle": "Voice_Recordings"
33488 "url": "/api/voice/recordings/{id}",
33489 "title": "Update an existing Recording",
33492 "title": "Example usage:",
33493 "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",
33497 "name": "updateRecordings",
33498 "group": "Voice_Recordings",
33499 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33500 "version": "0.0.0",
33501 "filename": "server/api/voiceRecording/index.js",
33502 "groupTitle": "Voice_Recordings"
33506 "url": "/api/voice/transfers/reports",
33507 "title": "Creates a new Transfer Report",
33510 "title": "Example usage:",
33511 "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",
33515 "name": "CreateTransfer_Reports",
33516 "group": "Voice_Transfer_Reports",
33542 "field": "transfererchannel",
33549 "field": "transferercalleridnum",
33556 "field": "transferercalleridname",
33563 "field": "transfererconnectedlinenum",
33570 "field": "transfererconnectedlinename",
33577 "field": "transfereraccountcode",
33584 "field": "transferercontext",
33591 "field": "transfererexten",
33598 "field": "transfererlinkedid",
33605 "field": "transfereechannel",
33612 "field": "transfereecalleridnum",
33619 "field": "transfereecalleridname",
33626 "field": "transfereeconnectedlinenum",
33633 "field": "transfereeconnectedlinename",
33640 "field": "transfereeaccountcode",
33647 "field": "transfereecontext",
33654 "field": "transfereeexten",
33661 "field": "transfereelinkedid",
33672 "field": "isexternal",
33679 "field": "context",
33686 "field": "extension",
33692 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33693 "version": "0.0.0",
33694 "filename": "server/api/voiceTransferReport/index.js",
33695 "groupTitle": "Voice_Transfer_Reports"
33699 "url": "/api/voice/transfers/reports/{id}",
33700 "title": "Deletes a Transfer Report",
33703 "title": "Example usage:",
33704 "content": "curl https://{domain}/api/voice/transfers/reports/{id} -v -u {name}:{password} -X DELETE",
33708 "name": "DeleteTransfer_Reports",
33709 "group": "Voice_Transfer_Reports",
33710 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33711 "version": "0.0.0",
33712 "filename": "server/api/voiceTransferReport/index.js",
33713 "groupTitle": "Voice_Transfer_Reports"
33717 "url": "/api/voice/transfers/reports",
33718 "title": "Gets a list of Transfer Reports",
33721 "title": "Example usage:",
33722 "content": "curl https://{domain}/api/voice/transfers/reports -v -u {name}:{password}",
33726 "name": "GetTransfer_Reports",
33727 "group": "Voice_Transfer_Reports",
33728 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
33729 "version": "0.0.0",
33730 "filename": "server/api/voiceTransferReport/index.js",
33731 "groupTitle": "Voice_Transfer_Reports"
33735 "url": "/api/voice/transfers/reports/{id}",
33736 "title": "Gets a single Transfer Report",
33739 "title": "Example usage:",
33740 "content": "curl https://{domain}/api/voice/transfers/reports/{id} -v -u {name}:{password}",
33744 "name": "ShowTransfer_Reports",
33745 "group": "Voice_Transfer_Reports",
33746 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33747 "version": "0.0.0",
33748 "filename": "server/api/voiceTransferReport/index.js",
33749 "groupTitle": "Voice_Transfer_Reports"
33753 "url": "/api/voice/transfers/reports/{id}",
33754 "title": "Update an existing Transfer Report",
33757 "title": "Example usage:",
33758 "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",
33762 "name": "updateTransfer_Reports",
33763 "group": "Voice_Transfer_Reports",
33764 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33765 "version": "0.0.0",
33766 "filename": "server/api/voiceTransferReport/index.js",
33767 "groupTitle": "Voice_Transfer_Reports"
33771 "url": "/api/integrations/vtiger/accounts",
33772 "title": "Creates a new Vtiger Account",
33775 "title": "Example usage:",
33776 "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",
33780 "name": "CreateVtiger_Accounts",
33781 "group": "Vtiger_Accounts",
33796 "field": "description",
33803 "field": "username",
33810 "field": "moduleName",
33817 "field": "remoteUri",
33824 "field": "serverUrl",
33831 "field": "accessKey",
33837 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33838 "version": "0.0.0",
33839 "filename": "server/api/intVtigerAccount/index.js",
33840 "groupTitle": "Vtiger_Accounts"
33844 "url": "/api/integrations/vtiger/accounts/{id}",
33845 "title": "Deletes a Vtiger Account",
33848 "title": "Example usage:",
33849 "content": "curl https://{domain}/api/integrations/vtiger/accounts/{id} -v -u {name}:{password} -X DELETE",
33853 "name": "DeleteVtiger_Accounts",
33854 "group": "Vtiger_Accounts",
33855 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33856 "version": "0.0.0",
33857 "filename": "server/api/intVtigerAccount/index.js",
33858 "groupTitle": "Vtiger_Accounts"
33862 "url": "/api/integrations/vtiger/accounts",
33863 "title": "Gets a list of Vtiger Accounts",
33866 "title": "Example usage:",
33867 "content": "curl https://{domain}/api/integrations/vtiger/accounts -v -u {name}:{password}",
33871 "name": "GetVtiger_Accounts",
33872 "group": "Vtiger_Accounts",
33873 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
33874 "version": "0.0.0",
33875 "filename": "server/api/intVtigerAccount/index.js",
33876 "groupTitle": "Vtiger_Accounts"
33880 "url": "/api/integrations/vtiger/accounts/{id}",
33881 "title": "Gets a single Vtiger Account",
33884 "title": "Example usage:",
33885 "content": "curl https://{domain}/api/integrations/vtiger/accounts/{id} -v -u {name}:{password}",
33889 "name": "ShowVtiger_Accounts",
33890 "group": "Vtiger_Accounts",
33891 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33892 "version": "0.0.0",
33893 "filename": "server/api/intVtigerAccount/index.js",
33894 "groupTitle": "Vtiger_Accounts"
33898 "url": "/api/integrations/vtiger/accounts/{id}/configurations",
33899 "title": "Creates new configuration",
33902 "title": "Example usage:",
33903 "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",
33907 "name": "addConfiguration",
33908 "group": "Vtiger_Accounts",
33909 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33910 "version": "0.0.0",
33911 "filename": "server/api/intVtigerAccount/index.js",
33912 "groupTitle": "Vtiger_Accounts"
33916 "url": "/api/integrations/vtiger/accounts/{id}/configurations",
33917 "title": "Gets account configurations",
33920 "title": "Example usage:",
33921 "content": "curl https://{domain}/api/integrations/vtiger/accounts/{id}/configurations -v -u {name}:{password} -X GET",
33925 "name": "getConfigurations",
33926 "group": "Vtiger_Accounts",
33927 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33928 "version": "0.0.0",
33929 "filename": "server/api/intVtigerAccount/index.js",
33930 "groupTitle": "Vtiger_Accounts"
33934 "url": "/api/integrations/vtiger/accounts/{id}/fields",
33935 "title": "Gets account fields",
33938 "title": "Example usage:",
33939 "content": "curl https://{domain}/api/integrations/vtiger/accounts/{id}/fields -v -u {name}:{password} -X GET",
33943 "name": "getFields",
33944 "group": "Vtiger_Accounts",
33945 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33946 "version": "0.0.0",
33947 "filename": "server/api/intVtigerAccount/index.js",
33948 "groupTitle": "Vtiger_Accounts"
33952 "url": "/api/integrations/vtiger/accounts/{id}",
33953 "title": "Update an existing Vtiger Account",
33956 "title": "Example usage:",
33957 "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",
33961 "name": "updateVtiger_Accounts",
33962 "group": "Vtiger_Accounts",
33963 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
33964 "version": "0.0.0",
33965 "filename": "server/api/intVtigerAccount/index.js",
33966 "groupTitle": "Vtiger_Accounts"
33970 "url": "/api/integrations/vtiger/configurations",
33971 "title": "Creates a new Vtiger Configuration",
33974 "title": "Example usage:",
33975 "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",
33979 "name": "CreateVtiger_Configurations",
33980 "group": "Vtiger_Configurations",
33995 "field": "description",
34001 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34002 "version": "0.0.0",
34003 "filename": "server/api/intVtigerConfiguration/index.js",
34004 "groupTitle": "Vtiger_Configurations"
34008 "url": "/api/integrations/vtiger/configurations/{id}",
34009 "title": "Deletes a Vtiger Configuration",
34012 "title": "Example usage:",
34013 "content": "curl https://{domain}/api/integrations/vtiger/configurations/{id} -v -u {name}:{password} -X DELETE",
34017 "name": "DeleteVtiger_Configurations",
34018 "group": "Vtiger_Configurations",
34019 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34020 "version": "0.0.0",
34021 "filename": "server/api/intVtigerConfiguration/index.js",
34022 "groupTitle": "Vtiger_Configurations"
34026 "url": "/api/integrations/vtiger/configurations",
34027 "title": "Gets a list of Vtiger Configurations",
34030 "title": "Example usage:",
34031 "content": "curl https://{domain}/api/integrations/vtiger/configurations -v -u {name}:{password}",
34035 "name": "GetVtiger_Configurations",
34036 "group": "Vtiger_Configurations",
34037 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
34038 "version": "0.0.0",
34039 "filename": "server/api/intVtigerConfiguration/index.js",
34040 "groupTitle": "Vtiger_Configurations"
34044 "url": "/api/integrations/vtiger/configurations/{id}",
34045 "title": "Gets a single Vtiger Configuration",
34048 "title": "Example usage:",
34049 "content": "curl https://{domain}/api/integrations/vtiger/configurations/{id} -v -u {name}:{password}",
34053 "name": "ShowVtiger_Configurations",
34054 "group": "Vtiger_Configurations",
34055 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34056 "version": "0.0.0",
34057 "filename": "server/api/intVtigerConfiguration/index.js",
34058 "groupTitle": "Vtiger_Configurations"
34062 "url": "/api/integrations/vtiger/configurations/{id}/descriptions",
34063 "title": "Gets configurations descriptions",
34066 "title": "Example usage:",
34067 "content": "curl https://{domain}/api/integrations/vtiger/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
34071 "name": "getDescriptions",
34072 "group": "Vtiger_Configurations",
34073 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34074 "version": "0.0.0",
34075 "filename": "server/api/intVtigerConfiguration/index.js",
34076 "groupTitle": "Vtiger_Configurations"
34080 "url": "/api/integrations/vtiger/configurations/{id}/fields",
34081 "title": "Gets configurations fields",
34084 "title": "Example usage:",
34085 "content": "curl https://{domain}/api/integrations/vtiger/configurations/{id}/fields -v -u {name}:{password} -X GET",
34089 "name": "getFields",
34090 "group": "Vtiger_Configurations",
34091 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34092 "version": "0.0.0",
34093 "filename": "server/api/intVtigerConfiguration/index.js",
34094 "groupTitle": "Vtiger_Configurations"
34098 "url": "/api/integrations/vtiger/configurations/{id}/subjects",
34099 "title": "Gets configurations subjects",
34102 "title": "Example usage:",
34103 "content": "curl https://{domain}/api/integrations/vtiger/configurations/{id}/subjects -v -u {name}:{password} -X GET",
34107 "name": "getSubjects",
34108 "group": "Vtiger_Configurations",
34109 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34110 "version": "0.0.0",
34111 "filename": "server/api/intVtigerConfiguration/index.js",
34112 "groupTitle": "Vtiger_Configurations"
34116 "url": "/api/integrations/vtiger/configurations/{id}",
34117 "title": "Update an existing Vtiger Configuration",
34120 "title": "Example usage:",
34121 "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",
34125 "name": "updateVtiger_Configurations",
34126 "group": "Vtiger_Configurations",
34127 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34128 "version": "0.0.0",
34129 "filename": "server/api/intVtigerConfiguration/index.js",
34130 "groupTitle": "Vtiger_Configurations"
34134 "url": "/api/integrations/vtiger/fields",
34135 "title": "Creates a new Vtiger Field",
34138 "title": "Example usage:",
34139 "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",
34143 "name": "CreateVtiger_Fields",
34144 "group": "Vtiger_Fields",
34154 "\"customVariable\"",
34165 "field": "content",
34181 "\"customVariable\""
34184 "field": "keyType",
34191 "field": "keyContent",
34198 "field": "idField",
34205 "field": "nameField",
34212 "field": "customField",
34219 "field": "variableName",
34225 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34226 "version": "0.0.0",
34227 "filename": "server/api/intVtigerField/index.js",
34228 "groupTitle": "Vtiger_Fields"
34232 "url": "/api/integrations/vtiger/fields/{id}",
34233 "title": "Deletes a Vtiger Field",
34236 "title": "Example usage:",
34237 "content": "curl https://{domain}/api/integrations/vtiger/fields/{id} -v -u {name}:{password} -X DELETE",
34241 "name": "DeleteVtiger_Fields",
34242 "group": "Vtiger_Fields",
34243 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34244 "version": "0.0.0",
34245 "filename": "server/api/intVtigerField/index.js",
34246 "groupTitle": "Vtiger_Fields"
34250 "url": "/api/integrations/vtiger/fields",
34251 "title": "Gets a list of Vtiger Fields",
34254 "title": "Example usage:",
34255 "content": "curl https://{domain}/api/integrations/vtiger/fields -v -u {name}:{password}",
34259 "name": "GetVtiger_Fields",
34260 "group": "Vtiger_Fields",
34261 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
34262 "version": "0.0.0",
34263 "filename": "server/api/intVtigerField/index.js",
34264 "groupTitle": "Vtiger_Fields"
34268 "url": "/api/integrations/vtiger/fields/{id}",
34269 "title": "Gets a single Vtiger Field",
34272 "title": "Example usage:",
34273 "content": "curl https://{domain}/api/integrations/vtiger/fields/{id} -v -u {name}:{password}",
34277 "name": "ShowVtiger_Fields",
34278 "group": "Vtiger_Fields",
34279 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34280 "version": "0.0.0",
34281 "filename": "server/api/intVtigerField/index.js",
34282 "groupTitle": "Vtiger_Fields"
34286 "url": "/api/integrations/vtiger/fields/{id}",
34287 "title": "Update an existing Vtiger Field",
34290 "title": "Example usage:",
34291 "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",
34295 "name": "updateVtiger_Fields",
34296 "group": "Vtiger_Fields",
34297 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34298 "version": "0.0.0",
34299 "filename": "server/api/intVtigerField/index.js",
34300 "groupTitle": "Vtiger_Fields"
34304 "url": "/api/integrations/zendesk/accounts",
34305 "title": "Creates a new Zendesk Account",
34308 "title": "Example usage:",
34309 "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",
34313 "name": "CreateZendesk_Accounts",
34314 "group": "Zendesk_Accounts",
34329 "field": "description",
34336 "field": "username",
34343 "field": "password",
34357 "field": "remoteUri",
34368 "field": "authType",
34375 "field": "serverUrl",
34382 "\"integrationTab\"",
34392 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34393 "version": "0.0.0",
34394 "filename": "server/api/intZendeskAccount/index.js",
34395 "groupTitle": "Zendesk_Accounts"
34399 "url": "/api/integrations/zendesk/accounts/{id}",
34400 "title": "Deletes a Zendesk Account",
34403 "title": "Example usage:",
34404 "content": "curl https://{domain}/api/integrations/zendesk/accounts/{id} -v -u {name}:{password} -X DELETE",
34408 "name": "DeleteZendesk_Accounts",
34409 "group": "Zendesk_Accounts",
34410 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34411 "version": "0.0.0",
34412 "filename": "server/api/intZendeskAccount/index.js",
34413 "groupTitle": "Zendesk_Accounts"
34417 "url": "/api/integrations/zendesk/accounts",
34418 "title": "Gets a list of Zendesk Accounts",
34421 "title": "Example usage:",
34422 "content": "curl https://{domain}/api/integrations/zendesk/accounts -v -u {name}:{password}",
34426 "name": "GetZendesk_Accounts",
34427 "group": "Zendesk_Accounts",
34428 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
34429 "version": "0.0.0",
34430 "filename": "server/api/intZendeskAccount/index.js",
34431 "groupTitle": "Zendesk_Accounts"
34435 "url": "/api/integrations/zendesk/accounts/{id}",
34436 "title": "Gets a single Zendesk Account",
34439 "title": "Example usage:",
34440 "content": "curl https://{domain}/api/integrations/zendesk/accounts/{id} -v -u {name}:{password}",
34444 "name": "ShowZendesk_Accounts",
34445 "group": "Zendesk_Accounts",
34446 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34447 "version": "0.0.0",
34448 "filename": "server/api/intZendeskAccount/index.js",
34449 "groupTitle": "Zendesk_Accounts"
34453 "url": "/api/integrations/zendesk/accounts/{id}/configurations",
34454 "title": "Creates new configuration",
34457 "title": "Example usage:",
34458 "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",
34462 "name": "addConfiguration",
34463 "group": "Zendesk_Accounts",
34464 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34465 "version": "0.0.0",
34466 "filename": "server/api/intZendeskAccount/index.js",
34467 "groupTitle": "Zendesk_Accounts"
34471 "url": "/api/integrations/zendesk/accounts/{id}/configurations",
34472 "title": "Gets account configurations",
34475 "title": "Example usage:",
34476 "content": "curl https://{domain}/api/integrations/zendesk/accounts/{id}/configurations -v -u {name}:{password} -X GET",
34480 "name": "getConfigurations",
34481 "group": "Zendesk_Accounts",
34482 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34483 "version": "0.0.0",
34484 "filename": "server/api/intZendeskAccount/index.js",
34485 "groupTitle": "Zendesk_Accounts"
34489 "url": "/api/integrations/zendesk/accounts/{id}/fields",
34490 "title": "Gets account fields",
34493 "title": "Example usage:",
34494 "content": "curl https://{domain}/api/integrations/zendesk/accounts/{id}/fields -v -u {name}:{password} -X GET",
34498 "name": "getFields",
34499 "group": "Zendesk_Accounts",
34500 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34501 "version": "0.0.0",
34502 "filename": "server/api/intZendeskAccount/index.js",
34503 "groupTitle": "Zendesk_Accounts"
34507 "url": "/api/integrations/zendesk/accounts/{id}",
34508 "title": "Update an existing Zendesk Account",
34511 "title": "Example usage:",
34512 "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",
34516 "name": "updateZendesk_Accounts",
34517 "group": "Zendesk_Accounts",
34518 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34519 "version": "0.0.0",
34520 "filename": "server/api/intZendeskAccount/index.js",
34521 "groupTitle": "Zendesk_Accounts"
34525 "url": "/api/integrations/zendesk/configurations",
34526 "title": "Creates a new Zendesk Configuration",
34529 "title": "Example usage:",
34530 "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",
34534 "name": "CreateZendesk_Configurations",
34535 "group": "Zendesk_Configurations",
34550 "field": "description",
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/intZendeskConfiguration/index.js",
34559 "groupTitle": "Zendesk_Configurations"
34563 "url": "/api/integrations/zendesk/configurations/{id}",
34564 "title": "Deletes a Zendesk Configuration",
34567 "title": "Example usage:",
34568 "content": "curl https://{domain}/api/integrations/zendesk/configurations/{id} -v -u {name}:{password} -X DELETE",
34572 "name": "DeleteZendesk_Configurations",
34573 "group": "Zendesk_Configurations",
34574 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34575 "version": "0.0.0",
34576 "filename": "server/api/intZendeskConfiguration/index.js",
34577 "groupTitle": "Zendesk_Configurations"
34581 "url": "/api/integrations/zendesk/configurations",
34582 "title": "Gets a list of Zendesk Configurations",
34585 "title": "Example usage:",
34586 "content": "curl https://{domain}/api/integrations/zendesk/configurations -v -u {name}:{password}",
34590 "name": "GetZendesk_Configurations",
34591 "group": "Zendesk_Configurations",
34592 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
34593 "version": "0.0.0",
34594 "filename": "server/api/intZendeskConfiguration/index.js",
34595 "groupTitle": "Zendesk_Configurations"
34599 "url": "/api/integrations/zendesk/configurations/{id}",
34600 "title": "Gets a single Zendesk Configuration",
34603 "title": "Example usage:",
34604 "content": "curl https://{domain}/api/integrations/zendesk/configurations/{id} -v -u {name}:{password}",
34608 "name": "ShowZendesk_Configurations",
34609 "group": "Zendesk_Configurations",
34610 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34611 "version": "0.0.0",
34612 "filename": "server/api/intZendeskConfiguration/index.js",
34613 "groupTitle": "Zendesk_Configurations"
34617 "url": "/api/integrations/zendesk/configurations/{id}/descriptions",
34618 "title": "Gets configurations descriptions",
34621 "title": "Example usage:",
34622 "content": "curl https://{domain}/api/integrations/zendesk/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
34626 "name": "getDescriptions",
34627 "group": "Zendesk_Configurations",
34628 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34629 "version": "0.0.0",
34630 "filename": "server/api/intZendeskConfiguration/index.js",
34631 "groupTitle": "Zendesk_Configurations"
34635 "url": "/api/integrations/zendesk/configurations/{id}/fields",
34636 "title": "Gets configurations fields",
34639 "title": "Example usage:",
34640 "content": "curl https://{domain}/api/integrations/zendesk/configurations/{id}/fields -v -u {name}:{password} -X GET",
34644 "name": "getFields",
34645 "group": "Zendesk_Configurations",
34646 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34647 "version": "0.0.0",
34648 "filename": "server/api/intZendeskConfiguration/index.js",
34649 "groupTitle": "Zendesk_Configurations"
34653 "url": "/api/integrations/zendesk/configurations/{id}/subjects",
34654 "title": "Gets configurations subjects",
34657 "title": "Example usage:",
34658 "content": "curl https://{domain}/api/integrations/zendesk/configurations/{id}/subjects -v -u {name}:{password} -X GET",
34662 "name": "getSubjects",
34663 "group": "Zendesk_Configurations",
34664 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34665 "version": "0.0.0",
34666 "filename": "server/api/intZendeskConfiguration/index.js",
34667 "groupTitle": "Zendesk_Configurations"
34671 "url": "/api/integrations/zendesk/configurations/{id}/tags",
34672 "title": "Gets configurations tags",
34675 "title": "Example usage:",
34676 "content": "curl https://{domain}/api/integrations/zendesk/configurations/{id}/tags -v -u {name}:{password} -X GET",
34681 "group": "Zendesk_Configurations",
34682 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34683 "version": "0.0.0",
34684 "filename": "server/api/intZendeskConfiguration/index.js",
34685 "groupTitle": "Zendesk_Configurations"
34689 "url": "/api/integrations/zendesk/configurations/{id}/tags",
34690 "title": "Sets new tags",
34693 "title": "Example usage:",
34694 "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",
34699 "group": "Zendesk_Configurations",
34700 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34701 "version": "0.0.0",
34702 "filename": "server/api/intZendeskConfiguration/index.js",
34703 "groupTitle": "Zendesk_Configurations"
34707 "url": "/api/integrations/zendesk/configurations/{id}",
34708 "title": "Update an existing Zendesk Configuration",
34711 "title": "Example usage:",
34712 "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",
34716 "name": "updateZendesk_Configurations",
34717 "group": "Zendesk_Configurations",
34718 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34719 "version": "0.0.0",
34720 "filename": "server/api/intZendeskConfiguration/index.js",
34721 "groupTitle": "Zendesk_Configurations"
34725 "url": "/api/integrations/zendesk/fields",
34726 "title": "Creates a new Zendesk Field",
34729 "title": "Example usage:",
34730 "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",
34734 "name": "CreateZendesk_Fields",
34735 "group": "Zendesk_Fields",
34745 "\"customVariable\"",
34756 "field": "content",
34772 "\"customVariable\""
34775 "field": "keyType",
34782 "field": "keyContent",
34789 "field": "idField",
34796 "field": "nameField",
34803 "field": "customField",
34810 "field": "variableName",
34816 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34817 "version": "0.0.0",
34818 "filename": "server/api/intZendeskField/index.js",
34819 "groupTitle": "Zendesk_Fields"
34823 "url": "/api/integrations/zendesk/fields/{id}",
34824 "title": "Deletes a Zendesk Field",
34827 "title": "Example usage:",
34828 "content": "curl https://{domain}/api/integrations/zendesk/fields/{id} -v -u {name}:{password} -X DELETE",
34832 "name": "DeleteZendesk_Fields",
34833 "group": "Zendesk_Fields",
34834 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34835 "version": "0.0.0",
34836 "filename": "server/api/intZendeskField/index.js",
34837 "groupTitle": "Zendesk_Fields"
34841 "url": "/api/integrations/zendesk/fields",
34842 "title": "Gets a list of Zendesk Fields",
34845 "title": "Example usage:",
34846 "content": "curl https://{domain}/api/integrations/zendesk/fields -v -u {name}:{password}",
34850 "name": "GetZendesk_Fields",
34851 "group": "Zendesk_Fields",
34852 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
34853 "version": "0.0.0",
34854 "filename": "server/api/intZendeskField/index.js",
34855 "groupTitle": "Zendesk_Fields"
34859 "url": "/api/integrations/zendesk/fields/{id}",
34860 "title": "Gets a single Zendesk Field",
34863 "title": "Example usage:",
34864 "content": "curl https://{domain}/api/integrations/zendesk/fields/{id} -v -u {name}:{password}",
34868 "name": "ShowZendesk_Fields",
34869 "group": "Zendesk_Fields",
34870 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34871 "version": "0.0.0",
34872 "filename": "server/api/intZendeskField/index.js",
34873 "groupTitle": "Zendesk_Fields"
34877 "url": "/api/integrations/zendesk/fields/{id}",
34878 "title": "Update an existing Zendesk Field",
34881 "title": "Example usage:",
34882 "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",
34886 "name": "updateZendesk_Fields",
34887 "group": "Zendesk_Fields",
34888 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34889 "version": "0.0.0",
34890 "filename": "server/api/intZendeskField/index.js",
34891 "groupTitle": "Zendesk_Fields"
34895 "url": "/api/integrations/zoho/accounts",
34896 "title": "Creates a new Zoho Account",
34899 "title": "Example usage:",
34900 "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",
34904 "name": "CreateZoho_Accounts",
34905 "group": "Zoho_Accounts",
34920 "field": "description",
34941 "field": "clientId",
34948 "field": "clientSecret",
34955 "field": "serverUrl",
34969 "field": "refreshToken",
34975 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34976 "version": "0.0.0",
34977 "filename": "server/api/intZohoAccount/index.js",
34978 "groupTitle": "Zoho_Accounts"
34982 "url": "/api/integrations/zoho/accounts/{id}",
34983 "title": "Deletes a Zoho Account",
34986 "title": "Example usage:",
34987 "content": "curl https://{domain}/api/integrations/zoho/accounts/{id} -v -u {name}:{password} -X DELETE",
34991 "name": "DeleteZoho_Accounts",
34992 "group": "Zoho_Accounts",
34993 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
34994 "version": "0.0.0",
34995 "filename": "server/api/intZohoAccount/index.js",
34996 "groupTitle": "Zoho_Accounts"
35000 "url": "/api/integrations/zoho/accounts",
35001 "title": "Gets a list of Zoho Accounts",
35004 "title": "Example usage:",
35005 "content": "curl https://{domain}/api/integrations/zoho/accounts -v -u {name}:{password}",
35009 "name": "GetZoho_Accounts",
35010 "group": "Zoho_Accounts",
35011 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
35012 "version": "0.0.0",
35013 "filename": "server/api/intZohoAccount/index.js",
35014 "groupTitle": "Zoho_Accounts"
35018 "url": "/api/integrations/zoho/accounts/{id}",
35019 "title": "Gets a single Zoho Account",
35022 "title": "Example usage:",
35023 "content": "curl https://{domain}/api/integrations/zoho/accounts/{id} -v -u {name}:{password}",
35027 "name": "ShowZoho_Accounts",
35028 "group": "Zoho_Accounts",
35029 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35030 "version": "0.0.0",
35031 "filename": "server/api/intZohoAccount/index.js",
35032 "groupTitle": "Zoho_Accounts"
35036 "url": "/api/integrations/zoho/accounts/{id}/configurations",
35037 "title": "Creates new configuration",
35040 "title": "Example usage:",
35041 "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",
35045 "name": "addConfiguration",
35046 "group": "Zoho_Accounts",
35047 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35048 "version": "0.0.0",
35049 "filename": "server/api/intZohoAccount/index.js",
35050 "groupTitle": "Zoho_Accounts"
35054 "url": "/api/integrations/zoho/accounts/{id}/configurations",
35055 "title": "Gets account configurations",
35058 "title": "Example usage:",
35059 "content": "curl https://{domain}/api/integrations/zoho/accounts/{id}/configurations -v -u {name}:{password} -X GET",
35063 "name": "getConfigurations",
35064 "group": "Zoho_Accounts",
35065 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35066 "version": "0.0.0",
35067 "filename": "server/api/intZohoAccount/index.js",
35068 "groupTitle": "Zoho_Accounts"
35072 "url": "/api/integrations/zoho/accounts/{id}/fields",
35073 "title": "Gets account fields",
35076 "title": "Example usage:",
35077 "content": "curl https://{domain}/api/integrations/zoho/accounts/{id}/fields -v -u {name}:{password} -X GET",
35081 "name": "getFields",
35082 "group": "Zoho_Accounts",
35083 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35084 "version": "0.0.0",
35085 "filename": "server/api/intZohoAccount/index.js",
35086 "groupTitle": "Zoho_Accounts"
35090 "url": "/api/integrations/zoho/accounts/{id}",
35091 "title": "Update an existing Zoho Account",
35094 "title": "Example usage:",
35095 "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",
35099 "name": "updateZoho_Accounts",
35100 "group": "Zoho_Accounts",
35101 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35102 "version": "0.0.0",
35103 "filename": "server/api/intZohoAccount/index.js",
35104 "groupTitle": "Zoho_Accounts"
35108 "url": "/api/integrations/zoho/configurations",
35109 "title": "Creates a new Zoho Configuration",
35112 "title": "Example usage:",
35113 "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",
35117 "name": "CreateZoho_Configurations",
35118 "group": "Zoho_Configurations",
35138 "field": "moduleCreate",
35145 "\"contact_lead\"",
35150 "field": "moduleSearch",
35157 "field": "description",
35163 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35164 "version": "0.0.0",
35165 "filename": "server/api/intZohoConfiguration/index.js",
35166 "groupTitle": "Zoho_Configurations"
35170 "url": "/api/integrations/zoho/configurations/{id}",
35171 "title": "Deletes a Zoho Configuration",
35174 "title": "Example usage:",
35175 "content": "curl https://{domain}/api/integrations/zoho/configurations/{id} -v -u {name}:{password} -X DELETE",
35179 "name": "DeleteZoho_Configurations",
35180 "group": "Zoho_Configurations",
35181 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35182 "version": "0.0.0",
35183 "filename": "server/api/intZohoConfiguration/index.js",
35184 "groupTitle": "Zoho_Configurations"
35188 "url": "/api/integrations/zoho/configurations",
35189 "title": "Gets a list of Zoho Configurations",
35192 "title": "Example usage:",
35193 "content": "curl https://{domain}/api/integrations/zoho/configurations -v -u {name}:{password}",
35197 "name": "GetZoho_Configurations",
35198 "group": "Zoho_Configurations",
35199 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
35200 "version": "0.0.0",
35201 "filename": "server/api/intZohoConfiguration/index.js",
35202 "groupTitle": "Zoho_Configurations"
35206 "url": "/api/integrations/zoho/configurations/{id}",
35207 "title": "Gets a single Zoho Configuration",
35210 "title": "Example usage:",
35211 "content": "curl https://{domain}/api/integrations/zoho/configurations/{id} -v -u {name}:{password}",
35215 "name": "ShowZoho_Configurations",
35216 "group": "Zoho_Configurations",
35217 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35218 "version": "0.0.0",
35219 "filename": "server/api/intZohoConfiguration/index.js",
35220 "groupTitle": "Zoho_Configurations"
35224 "url": "/api/integrations/zoho/configurations/{id}/descriptions",
35225 "title": "Gets configurations descriptions",
35228 "title": "Example usage:",
35229 "content": "curl https://{domain}/api/integrations/zoho/configurations/{id}/descriptions -v -u {name}:{password} -X GET",
35233 "name": "getDescriptions",
35234 "group": "Zoho_Configurations",
35235 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35236 "version": "0.0.0",
35237 "filename": "server/api/intZohoConfiguration/index.js",
35238 "groupTitle": "Zoho_Configurations"
35242 "url": "/api/integrations/zoho/configurations/{id}/fields",
35243 "title": "Gets configurations fields",
35246 "title": "Example usage:",
35247 "content": "curl https://{domain}/api/integrations/zoho/configurations/{id}/fields -v -u {name}:{password} -X GET",
35251 "name": "getFields",
35252 "group": "Zoho_Configurations",
35253 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35254 "version": "0.0.0",
35255 "filename": "server/api/intZohoConfiguration/index.js",
35256 "groupTitle": "Zoho_Configurations"
35260 "url": "/api/integrations/zoho/configurations/{id}/subjects",
35261 "title": "Gets configurations subjects",
35264 "title": "Example usage:",
35265 "content": "curl https://{domain}/api/integrations/zoho/configurations/{id}/subjects -v -u {name}:{password} -X GET",
35269 "name": "getSubjects",
35270 "group": "Zoho_Configurations",
35271 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35272 "version": "0.0.0",
35273 "filename": "server/api/intZohoConfiguration/index.js",
35274 "groupTitle": "Zoho_Configurations"
35278 "url": "/api/integrations/zoho/configurations/{id}",
35279 "title": "Update an existing Zoho Configuration",
35282 "title": "Example usage:",
35283 "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",
35287 "name": "updateZoho_Configurations",
35288 "group": "Zoho_Configurations",
35289 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35290 "version": "0.0.0",
35291 "filename": "server/api/intZohoConfiguration/index.js",
35292 "groupTitle": "Zoho_Configurations"
35296 "url": "/api/integrations/zoho/fields",
35297 "title": "Creates a new Zoho Field",
35300 "title": "Example usage:",
35301 "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",
35305 "name": "CreateZoho_Fields",
35306 "group": "Zoho_Fields",
35316 "\"customVariable\"",
35327 "field": "content",
35343 "\"customVariable\""
35346 "field": "keyType",
35353 "field": "keyContent",
35360 "field": "idField",
35367 "field": "nameField",
35374 "field": "customField",
35381 "field": "variableName",
35387 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35388 "version": "0.0.0",
35389 "filename": "server/api/intZohoField/index.js",
35390 "groupTitle": "Zoho_Fields"
35394 "url": "/api/integrations/zoho/fields/{id}",
35395 "title": "Deletes a Zoho Field",
35398 "title": "Example usage:",
35399 "content": "curl https://{domain}/api/integrations/zoho/fields/{id} -v -u {name}:{password} -X DELETE",
35403 "name": "DeleteZoho_Fields",
35404 "group": "Zoho_Fields",
35405 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35406 "version": "0.0.0",
35407 "filename": "server/api/intZohoField/index.js",
35408 "groupTitle": "Zoho_Fields"
35412 "url": "/api/integrations/zoho/fields",
35413 "title": "Gets a list of Zoho Fields",
35416 "title": "Example usage:",
35417 "content": "curl https://{domain}/api/integrations/zoho/fields -v -u {name}:{password}",
35421 "name": "GetZoho_Fields",
35422 "group": "Zoho_Fields",
35423 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
35424 "version": "0.0.0",
35425 "filename": "server/api/intZohoField/index.js",
35426 "groupTitle": "Zoho_Fields"
35430 "url": "/api/integrations/zoho/fields/{id}",
35431 "title": "Gets a single Zoho Field",
35434 "title": "Example usage:",
35435 "content": "curl https://{domain}/api/integrations/zoho/fields/{id} -v -u {name}:{password}",
35439 "name": "ShowZoho_Fields",
35440 "group": "Zoho_Fields",
35441 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35442 "version": "0.0.0",
35443 "filename": "server/api/intZohoField/index.js",
35444 "groupTitle": "Zoho_Fields"
35448 "url": "/api/integrations/zoho/fields/{id}",
35449 "title": "Update an existing Zoho Field",
35452 "title": "Example usage:",
35453 "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",
35457 "name": "updateZoho_Fields",
35458 "group": "Zoho_Fields",
35459 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35460 "version": "0.0.0",
35461 "filename": "server/api/intZohoField/index.js",
35462 "groupTitle": "Zoho_Fields"
35467 "title": "Creates a new Cdr",
35470 "title": "Example usage:",
35471 "content": "curl https://{domain}/api/cdr -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
35475 "name": "CreateCdrs",
35484 "field": "calldate",
35512 "field": "dcontext",
35519 "field": "channel",
35526 "field": "dstchannel",
35533 "field": "lastapp",
35540 "field": "lastdata",
35547 "field": "duration",
35554 "field": "billsec",
35561 "field": "disposition",
35568 "field": "amaflags",
35575 "field": "accountcode",
35582 "field": "userfield",
35589 "field": "uniqueid",
35596 "field": "linkedid",
35603 "field": "sequence",
35610 "field": "peeraccount",
35630 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35631 "version": "0.0.0",
35632 "filename": "server/api/cdr/index.js",
35633 "groupTitle": "cdr"
35637 "url": "/api/cdr/{id}",
35638 "title": "Deletes a Cdr",
35641 "title": "Example usage:",
35642 "content": "curl https://{domain}/api/cdr/{id} -v -u {name}:{password} -X DELETE",
35646 "name": "DeleteCdrs",
35648 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35649 "version": "0.0.0",
35650 "filename": "server/api/cdr/index.js",
35651 "groupTitle": "cdr"
35655 "url": "/api/cdr/describe",
35656 "title": "Gets table info about Cdrs",
35659 "title": "Example usage:",
35660 "content": "curl https://{domain}/api/cdr/describe -v -u {name}:{password}",
35664 "name": "DescribeCdrs",
35666 "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>",
35667 "version": "0.0.0",
35668 "filename": "server/api/cdr/index.js",
35669 "groupTitle": "cdr"
35674 "title": "Gets a list of Cdrs",
35677 "title": "Example usage:",
35678 "content": "curl https://{domain}/api/cdr -v -u {name}:{password}",
35684 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
35685 "version": "0.0.0",
35686 "filename": "server/api/cdr/index.js",
35687 "groupTitle": "cdr"
35691 "url": "/api/cdr/{id}",
35692 "title": "Gets a single Cdr",
35695 "title": "Example usage:",
35696 "content": "curl https://{domain}/api/cdr/{id} -v -u {name}:{password}",
35700 "name": "ShowCdrs",
35702 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35703 "version": "0.0.0",
35704 "filename": "server/api/cdr/index.js",
35705 "groupTitle": "cdr"
35709 "url": "/api/cdr/{id}",
35710 "title": "Update an existing Cdr",
35713 "title": "Example usage:",
35714 "content": "curl https://{domain}/api/cdr/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
35718 "name": "updateCdrs",
35720 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35721 "version": "0.0.0",
35722 "filename": "server/api/cdr/index.js",
35723 "groupTitle": "cdr"
35727 "url": "/api/voiceQueuesLog",
35728 "title": "Creates a new VoiceQueuesLog",
35731 "title": "Example usage:",
35732 "content": "curl https://{domain}/api/voiceQueuesLog -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
35736 "name": "CreateVoiceQueuesLogs",
35737 "group": "voiceQueuesLog",
35759 "field": "queuename",
35828 "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35829 "version": "0.0.0",
35830 "filename": "server/api/voiceQueuesLog/index.js",
35831 "groupTitle": "voiceQueuesLog"
35835 "url": "/api/voiceQueuesLog/{id}",
35836 "title": "Deletes a VoiceQueuesLog",
35839 "title": "Example usage:",
35840 "content": "curl https://{domain}/api/voiceQueuesLog/{id} -v -u {name}:{password} -X DELETE",
35844 "name": "DeleteVoiceQueuesLogs",
35845 "group": "voiceQueuesLog",
35846 "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <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/voiceQueuesLog/index.js",
35849 "groupTitle": "voiceQueuesLog"
35853 "url": "/api/voiceQueuesLog",
35854 "title": "Gets a list of VoiceQueuesLogs",
35857 "title": "Example usage:",
35858 "content": "curl https://{domain}/api/voiceQueuesLog -v -u {name}:{password}",
35862 "name": "GetVoiceQueuesLogs",
35863 "group": "voiceQueuesLog",
35864 "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>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&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
35865 "version": "0.0.0",
35866 "filename": "server/api/voiceQueuesLog/index.js",
35867 "groupTitle": "voiceQueuesLog"
35871 "url": "/api/voiceQueuesLog/{id}",
35872 "title": "Gets a single VoiceQueuesLog",
35875 "title": "Example usage:",
35876 "content": "curl https://{domain}/api/voiceQueuesLog/{id} -v -u {name}:{password}",
35880 "name": "ShowVoiceQueuesLogs",
35881 "group": "voiceQueuesLog",
35882 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35883 "version": "0.0.0",
35884 "filename": "server/api/voiceQueuesLog/index.js",
35885 "groupTitle": "voiceQueuesLog"
35889 "url": "/api/voiceQueuesLog/{id}",
35890 "title": "Update an existing VoiceQueuesLog",
35893 "title": "Example usage:",
35894 "content": "curl https://{domain}/api/voiceQueuesLog/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
35898 "name": "updateVoiceQueuesLogs",
35899 "group": "voiceQueuesLog",
35900 "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
35901 "version": "0.0.0",
35902 "filename": "server/api/voiceQueuesLog/index.js",
35903 "groupTitle": "voiceQueuesLog"