summaryrefslogtreecommitdiff
path: root/rest-api/api-docs/channels.json
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2016-10-19 12:05:28 -0500
committerMark Michelson <mmichelson@digium.com>2016-10-20 13:00:24 -0500
commitba145944a010441c1b1a744063178d967744f91f (patch)
tree0a73a21aaec62f282a4afc892243ed273fc5b792 /rest-api/api-docs/channels.json
parent98378133c05bf683792337612f964663b63c72d6 (diff)
ARI: Add duplicate channel ID checking for channel creation.
This is similar to what is done for origination, but for the 14 and up channel creation method. When attempting to create a channel, if a channel ID is specified and a channel already exists with that ID, then a 409 is returned. Change-Id: I77f9253278c6947939c418073b6b31065489187c
Diffstat (limited to 'rest-api/api-docs/channels.json')
-rw-r--r--rest-api/api-docs/channels.json6
1 files changed, 6 insertions, 0 deletions
diff --git a/rest-api/api-docs/channels.json b/rest-api/api-docs/channels.json
index 522cc00c4..e707c068f 100644
--- a/rest-api/api-docs/channels.json
+++ b/rest-api/api-docs/channels.json
@@ -217,6 +217,12 @@
"allowMultiple": false,
"dataType": "string"
}
+ ],
+ "errorResponses": [
+ {
+ "code": 409,
+ "reason": "Channel with given unique ID already exists."
+ }
]
}
]