Built motion from commit (unavailable).|2.5.23
[motion2.git] / apidoc / api_data.js
index 86bc72d..2c4723c 100644 (file)
@@ -8556,7 +8556,8 @@ define({ "api": [
               "\"string\"",
               "\"variable\"",
               "\"customVariable\"",
-              "\"keyValue\""
+              "\"keyValue\"",
+              "\"picklist\""
             ],
             "optional": true,
             "field": "type",
@@ -9236,7 +9237,8 @@ define({ "api": [
               "\"string\"",
               "\"variable\"",
               "\"customVariable\"",
-              "\"keyValue\""
+              "\"keyValue\"",
+              "\"picklist\""
             ],
             "optional": true,
             "field": "type",
@@ -11877,7 +11879,8 @@ define({ "api": [
               "\"string\"",
               "\"variable\"",
               "\"customVariable\"",
-              "\"keyValue\""
+              "\"keyValue\"",
+              "\"picklist\""
             ],
             "optional": true,
             "field": "type",
@@ -12403,7 +12406,8 @@ define({ "api": [
               "\"string\"",
               "\"variable\"",
               "\"customVariable\"",
-              "\"keyValue\""
+              "\"keyValue\"",
+              "\"picklist\""
             ],
             "optional": true,
             "field": "type",
@@ -15436,20 +15440,6 @@ define({ "api": [
             "optional": false,
             "field": "lastMsgDirection",
             "description": ""
-          },
-          {
-            "group": "Body",
-            "type": "Text",
-            "optional": true,
-            "field": "lastMsgBody",
-            "description": ""
-          },
-          {
-            "group": "Body",
-            "type": "Text",
-            "optional": true,
-            "field": "lastMsgText",
-            "description": ""
           }
         ]
       }
@@ -15835,20 +15825,6 @@ define({ "api": [
             "optional": false,
             "field": "lastMsgDirection",
             "description": ""
-          },
-          {
-            "group": "Body",
-            "type": "Text",
-            "optional": true,
-            "field": "lastMsgBody",
-            "description": ""
-          },
-          {
-            "group": "Body",
-            "type": "Text",
-            "optional": true,
-            "field": "lastMsgText",
-            "description": ""
           }
         ]
       }
@@ -19362,37 +19338,37 @@ define({ "api": [
     "groupTitle": "Plugins"
   },
   {
-    "type": "get",
+    "type": "post",
     "url": "/api/plugins/webhook?hostname={host}&port={port}&encoding={encoding}&json={json}&path={path}",
     "title": "Redirect a plugin request to the specified path",
     "examples": [
       {
         "title": "Example usage:",
-        "content": "curl https://{domain}/api/plugins/webhook?port={port}&path={path} -v -u {name}:{password} -X GET",
+        "content": "curl https://{domain}/api/plugins/webhook?port={port}&path={path} -H 'Content-Type: application/json' -X POST",
         "type": "json"
       }
     ],
     "name": "webhookPlugin",
     "group": "Plugins",
-    "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+    "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
     "version": "0.0.0",
     "filename": "server/api/plugin/index.js",
     "groupTitle": "Plugins"
   },
   {
-    "type": "post",
+    "type": "get",
     "url": "/api/plugins/webhook?hostname={host}&port={port}&encoding={encoding}&json={json}&path={path}",
     "title": "Redirect a plugin request to the specified path",
     "examples": [
       {
         "title": "Example usage:",
-        "content": "curl https://{domain}/api/plugins/webhook?port={port}&path={path} -H 'Content-Type: application/json' -X POST",
+        "content": "curl https://{domain}/api/plugins/webhook?port={port}&path={path} -v -u {name}:{password} -X GET",
         "type": "json"
       }
     ],
     "name": "webhookPlugin",
     "group": "Plugins",
-    "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+    "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
     "version": "0.0.0",
     "filename": "server/api/plugin/index.js",
     "groupTitle": "Plugins"
@@ -20030,6 +20006,24 @@ define({ "api": [
     "groupTitle": "RPC_Realtime"
   },
   {
+    "type": "put",
+    "url": "/api/rpc/voice/{id}/queues",
+    "title": "Updates a single VoiceQueue",
+    "examples": [
+      {
+        "title": "Example usage:",
+        "content": "curl https://{domain}/api/rpc/voice/queues/{id} -v -u {name}:{password}",
+        "type": "json"
+      }
+    ],
+    "name": "UpdateVoiceQueues",
+    "group": "RPC_Realtime",
+    "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+    "version": "0.0.0",
+    "filename": "server/api/rpc/index.js",
+    "groupTitle": "RPC_Realtime"
+  },
+  {
     "type": "post",
     "url": "/api/rpc/agents/:id/notify",
     "title": "Notify message to a specific agent",
@@ -20516,7 +20510,9 @@ define({ "api": [
             "allowedValues": [
               "\"contact_lead\"",
               "\"contact\"",
-              "\"lead\""
+              "\"lead\"",
+              "\"account_contact_lead\"",
+              "\"account\""
             ],
             "optional": true,
             "field": "moduleSearch",
@@ -20528,11 +20524,40 @@ define({ "api": [
             "allowedValues": [
               "\"nothing\"",
               "\"contact\"",
-              "\"lead\""
+              "\"lead\"",
+              "\"account\""
             ],
             "optional": true,
             "field": "moduleCreate",
             "description": ""
+          },
+          {
+            "group": "Body",
+            "type": "String",
+            "optional": true,
+            "field": "leadId",
+            "description": ""
+          },
+          {
+            "group": "Body",
+            "type": "String",
+            "optional": true,
+            "field": "additionalSearchAccount",
+            "description": ""
+          },
+          {
+            "group": "Body",
+            "type": "String",
+            "optional": true,
+            "field": "additionalSearchContact",
+            "description": ""
+          },
+          {
+            "group": "Body",
+            "type": "String",
+            "optional": true,
+            "field": "additionalSearchLead",
+            "description": ""
           }
         ]
       }
@@ -20691,7 +20716,8 @@ define({ "api": [
               "\"string\"",
               "\"variable\"",
               "\"customVariable\"",
-              "\"keyValue\""
+              "\"keyValue\"",
+              "\"picklist\""
             ],
             "optional": true,
             "field": "type",
@@ -21649,7 +21675,8 @@ define({ "api": [
               "\"string\"",
               "\"variable\"",
               "\"customVariable\"",
-              "\"keyValue\""
+              "\"keyValue\"",
+              "\"picklist\""
             ],
             "optional": true,
             "field": "type",
@@ -22742,21 +22769,21 @@ define({ "api": [
     "groupTitle": "Sms_Accounts"
   },
   {
-    "type": "post",
-    "url": "/api/sms/messages/{id}/status",
-    "title": "Receive message status",
+    "type": "get",
+    "url": "/api/sms/accounts/{id}/status",
+    "title": "Receive message status as get request",
     "examples": [
       {
         "title": "Example usage:",
-        "content": "curl https://{domain}/api/sms/messages/{id}/status \\ \n -H 'Content-Type: application/json' -v -X POST",
+        "content": "curl https://{domain}/api/sms/accounts/{id}/status -H 'Content-Type: application/json' -v -X GET",
         "type": "json"
       }
     ],
     "name": "statusMessage",
     "group": "Sms_Accounts",
-    "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+    "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
     "version": "0.0.0",
-    "filename": "server/api/smsMessage/index.js",
+    "filename": "server/api/smsAccount/index.js",
     "groupTitle": "Sms_Accounts"
   },
   {
@@ -22778,21 +22805,21 @@ define({ "api": [
     "groupTitle": "Sms_Accounts"
   },
   {
-    "type": "get",
-    "url": "/api/sms/accounts/{id}/status",
-    "title": "Receive message status as get request",
+    "type": "post",
+    "url": "/api/sms/messages/{id}/status",
+    "title": "Receive message status",
     "examples": [
       {
         "title": "Example usage:",
-        "content": "curl https://{domain}/api/sms/accounts/{id}/status -H 'Content-Type: application/json' -v -X GET",
+        "content": "curl https://{domain}/api/sms/messages/{id}/status \\ \n -H 'Content-Type: application/json' -v -X POST",
         "type": "json"
       }
     ],
     "name": "statusMessage",
     "group": "Sms_Accounts",
-    "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+    "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
     "version": "0.0.0",
-    "filename": "server/api/smsAccount/index.js",
+    "filename": "server/api/smsMessage/index.js",
     "groupTitle": "Sms_Accounts"
   },
   {
@@ -25658,7 +25685,8 @@ define({ "api": [
               "\"string\"",
               "\"variable\"",
               "\"customVariable\"",
-              "\"keyValue\""
+              "\"keyValue\"",
+              "\"picklist\""
             ],
             "optional": true,
             "field": "type",
@@ -28198,6 +28226,13 @@ define({ "api": [
             "optional": true,
             "field": "description",
             "description": ""
+          },
+          {
+            "group": "Body",
+            "type": "Boolean",
+            "optional": true,
+            "field": "privacyEnabled",
+            "description": ""
           }
         ]
       }
@@ -33843,7 +33878,8 @@ define({ "api": [
               "\"string\"",
               "\"variable\"",
               "\"customVariable\"",
-              "\"keyValue\""
+              "\"keyValue\"",
+              "\"picklist\""
             ],
             "optional": true,
             "field": "type",
@@ -36591,7 +36627,8 @@ define({ "api": [
               "\"string\"",
               "\"variable\"",
               "\"customVariable\"",
-              "\"keyValue\""
+              "\"keyValue\"",
+              "\"picklist\""
             ],
             "optional": true,
             "field": "type",
@@ -37162,7 +37199,8 @@ define({ "api": [
               "\"string\"",
               "\"variable\"",
               "\"customVariable\"",
-              "\"keyValue\""
+              "\"keyValue\"",
+              "\"picklist\""
             ],
             "optional": true,
             "field": "type",