Delete Campaign
DELETEhttps://www.viso.li/api/campaign/:id
Deletes one campaign you own. The short links that were attached stay in your account.
Send Authorization: Bearer sk_api_your_api_key on every request. See authentication.
Path parameters
| Field | Type | Description |
|---|---|---|
id | string | Required. The campaign UUID. |
Example request
1curl -X DELETE https://www.viso.li/api/campaign/3f1c0c2a-7b4e-4d91-9c2a-1b8e6f0d2a11 \
2 -H "Authorization: Bearer sk_api_your_api_key"
Success response
Returns 204 No Content with an empty body.
Errors
| Status | Error | Description |
|---|---|---|
| 400 | Bad Request | The campaign id is not a valid UUID. |
| 401 | Unauthorized | Missing, malformed, or invalid Bearer token. |
| 403 | Forbidden | Campaigns are not available on the current plan. |
| 404 | Not Found | No campaign with that id belongs to you. |
| 429 | Too Many Requests | More than 10 requests per minute and 50 requests per day. Some responses include a Retry-After header. |
| 500 | Internal Server Error | Unexpected server error. Retry the request. |