summaryrefslogtreecommitdiff
path: root/rest-api
diff options
context:
space:
mode:
authorKevin Harwell <kharwell@digium.com>2013-12-13 17:19:23 +0000
committerKevin Harwell <kharwell@digium.com>2013-12-13 17:19:23 +0000
commitf425c4a086526d8f4da91d62a5e02121c09609b8 (patch)
tree9c7c9ca6947d63c5037287e7bbbe4d074c7e777e /rest-api
parentce18946de46a6f16463391a9c07af02b8ee4e925 (diff)
ARI: Allow specifying channel variables during a POST /channels
Added the ability to specify channel variables when creating/originating a channel in ARI. The variables are sent in the body of the request and should be formatted as a single level JSON object. No nested objects allowed. For example: {"variable1": "foo", "variable2": "bar"}. (closes issue ASTERISK-22872) Reported by: Matt Jordan Review: https://reviewboard.asterisk.org/r/3052/ ........ Merged revisions 403752 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@403757 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'rest-api')
-rw-r--r--rest-api/api-docs/channels.json8
1 files changed, 8 insertions, 0 deletions
diff --git a/rest-api/api-docs/channels.json b/rest-api/api-docs/channels.json
index 39586689f..263d5ada6 100644
--- a/rest-api/api-docs/channels.json
+++ b/rest-api/api-docs/channels.json
@@ -88,6 +88,14 @@
"allowMultiple": false,
"dataType": "int",
"defaultValue": 30
+ },
+ {
+ "name": "variables",
+ "description": "Variables to be set on the channel.",
+ "paramType": "body",
+ "required": false,
+ "allowMultiple": false,
+ "dataType": "containers"
}
],
"errorResponses": [