Chilkat Online Tools

delphiDll / Zoom API / Delete a H.323/SIP device

Back to Collection Items

var
http: HCkHttp;
success: Boolean;
resp: HCkHttpResponse;

begin
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.

http := CkHttp_Create();

// Adds the "Authorization: Bearer <access_token>" header.
CkHttp_putAuthToken(http,'<access_token>');

resp := CkHttp_QuickRequest(http,'DELETE','https://api.zoom.us/v2/h323/devices/:deviceId');
if (CkHttp_getLastMethodSuccess(http) = False) then
  begin
    Memo1.Lines.Add(CkHttp__lastErrorText(http));
    Exit;
  end;

Memo1.Lines.Add(IntToStr(CkHttpResponse_getStatusCode(resp)));
Memo1.Lines.Add(CkHttpResponse__bodyStr(resp));
CkHttpResponse_Dispose(resp);

CkHttp_Dispose(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": ""
    }
  ]
}