Delete Domain
Delete a domain from the workspace.
Endpoint
DELETE https://api.campaignlark.com/v1/domains/:id
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | required | The domain ID. |
Sample Request
DELETE https://api.campaignlark.com/v1/domains/1
Response
Success — 200 OK
{
"error": null,
"data": "The domain has been successfully deleted."
}
Errors
| Status | Message | Cause |
|---|---|---|
400 | Please provide a valid domain ID. | id path param is missing or not a number. |
400 | Various errors | Domain not found or cannot be deleted. |