Skip to content

Click2CallDeleteProvider

DELETE click2call/provider

Soft-deletes a provider. History keeps referencing it, so old calls still show which provider they went through.

The name stays reserved in storage; creating a provider with the same name later restores this record instead of failing.

Access Control

Allowed role: provider.

Request

DELETE request
DELETE https://{broker_domain}/click2call/provider?id=1
Authorization: <JWT_TOKEN>
{
  "command": "Click2CallDeleteProvider",
  "extID": "1",
  "data": {
    "id": 1
  }
}
const res = await platform.Click2CallDeleteProvider({
  id: 1
});

Request Data

Field Type Required Description
id int Yes Provider id

Response Data

{
  "id": 1,
  "deleted": true,
  "message": "Provider with ID 1 has been deleted"
}

Errors

Code Error Description
404 NOT_FOUND Provider not found
409 PROVIDER_IN_USE Enabled profiles still reference this provider