summaryrefslogtreecommitdiff
path: root/rest-api
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:10 -0500
commit3bd76dd679a88c0c96e2f6979d18bc0096c68c79 (patch)
treed2581b5bd62328773e4c87f0ab75f2d6b544351d /rest-api
parente459b8dadf42a3a015b312dfa9aadf507b4c85d9 (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')
-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 60ace075d..4ca8d6582 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."
+ }
]
}
]