PowerBuilder / Zoom API / Delete a H.323/SIP device
Back to Collection Items
integer li_rc
oleobject loo_Http
integer li_Success
oleobject loo_Resp
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
loo_Http = create oleobject
// Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
li_rc = loo_Http.ConnectToNewObject("Chilkat.Http")
if li_rc < 0 then
destroy loo_Http
MessageBox("Error","Connecting to COM object failed")
return
end if
// Adds the "Authorization: Bearer <access_token>" header.
loo_Http.AuthToken = "<access_token>"
loo_Resp = loo_Http.QuickRequest("DELETE","https://api.zoom.us/v2/h323/devices/:deviceId")
if loo_Http.LastMethodSuccess = 0 then
Write-Debug loo_Http.LastErrorText
destroy loo_Http
return
end if
Write-Debug string(loo_Resp.StatusCode)
Write-Debug loo_Resp.BodyStr
destroy loo_Resp
destroy loo_Http
Curl Command
curl -X DELETE
-H "Authorization: Bearer <access_token>"
https://api.zoom.us/v2/h323/devices/:deviceId
Postman Collection Item JSON
{
"name": "Delete a H.323/SIP device",
"request": {
"method": "DELETE",
"header": [
],
"url": {
"raw": "{{baseUrl}}/h323/devices/:deviceId",
"host": [
"{{baseUrl}}"
],
"path": [
"h323",
"devices",
":deviceId"
],
"variable": [
{
"key": "deviceId",
"value": "quis officia in reprehenderit",
"description": "(Required) The device ID."
}
]
},
"description": "A H.323 or SIP device can make a video call to a [Room Connector](https://support.zoom.us/hc/en-us/articles/201363273-Getting-Started-With-H-323-SIP-Room-Connector) to join a Zoom cloud meeting. A Room Connector can also call out to a H.323 or SIP device to join a Zoom cloud meeting. Use this API to delete a H.323/SIP device from your Zoom account.<br><br>\n**Scopes:** `h323:write:admin`<br>\n\n **[Rate Limit Label](https://marketplace.zoom.us/docs/api-reference/rate-limits#rate-limits):** `Light`<br>"
},
"response": [
{
"name": "You do not have the permission to delete this device.",
"originalRequest": {
"method": "DELETE",
"header": [
{
"description": "Added as a part of security scheme: oauth2",
"key": "Authorization",
"value": "<token>"
}
],
"url": {
"raw": "{{baseUrl}}/h323/devices/:deviceId",
"host": [
"{{baseUrl}}"
],
"path": [
"h323",
"devices",
":deviceId"
],
"variable": [
{
"key": "deviceId",
"value": "quis officia in reprehenderit",
"description": "(Required) The device ID."
}
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "text",
"header": [
{
"key": "Content-Type",
"value": "text/plain"
}
],
"cookie": [
],
"body": ""
},
{
"name": "H.323/SIP device deleted.",
"originalRequest": {
"method": "DELETE",
"header": [
{
"description": "Added as a part of security scheme: oauth2",
"key": "Authorization",
"value": "<token>"
}
],
"url": {
"raw": "{{baseUrl}}/h323/devices/:deviceId",
"host": [
"{{baseUrl}}"
],
"path": [
"h323",
"devices",
":deviceId"
],
"variable": [
{
"key": "deviceId",
"value": "quis officia in reprehenderit",
"description": "(Required) The device ID."
}
]
}
},
"status": "No Content",
"code": 204,
"_postman_previewlanguage": "text",
"header": [
{
"key": "Content-Type",
"value": "text/plain"
}
],
"cookie": [
],
"body": ""
},
{
"name": "H.323 device does not exist: {deviceId}.",
"originalRequest": {
"method": "DELETE",
"header": [
{
"description": "Added as a part of security scheme: oauth2",
"key": "Authorization",
"value": "<token>"
}
],
"url": {
"raw": "{{baseUrl}}/h323/devices/:deviceId",
"host": [
"{{baseUrl}}"
],
"path": [
"h323",
"devices",
":deviceId"
],
"variable": [
{
"key": "deviceId",
"value": "quis officia in reprehenderit",
"description": "(Required) The device ID."
}
]
}
},
"status": "Multiple Choices",
"code": 300,
"_postman_previewlanguage": "text",
"header": [
{
"key": "Content-Type",
"value": "text/plain"
}
],
"cookie": [
],
"body": ""
},
{
"name": "H.323/SIP device not found.",
"originalRequest": {
"method": "DELETE",
"header": [
{
"description": "Added as a part of security scheme: oauth2",
"key": "Authorization",
"value": "<token>"
}
],
"url": {
"raw": "{{baseUrl}}/h323/devices/:deviceId",
"host": [
"{{baseUrl}}"
],
"path": [
"h323",
"devices",
":deviceId"
],
"variable": [
{
"key": "deviceId",
"value": "quis officia in reprehenderit",
"description": "(Required) The device ID."
}
]
}
},
"status": "Not Found",
"code": 404,
"_postman_previewlanguage": "text",
"header": [
{
"key": "Content-Type",
"value": "text/plain"
}
],
"cookie": [
],
"body": ""
}
]
}