Mon-Fri 10am - 6pm
Delete URL Link
Base URL for your account: https://cpaas.studio
DELETE
/api/v1/urlinks/{id}
Soft deletes a URL link. If the link is deleted while still pending, the consumed 1 credit is automatically refunded to your account balance.
Parameters
| Param | Type | Required | Notes |
|---|---|---|---|
id |
integer | yes | The ID of the URL link to delete. |
Request example
curl -X DELETE "https://cpaas.studio/api/v1/urlinks/15" \
-H "X-API-KEY: cpk_xxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
<?php
$ch = curl_init('https://cpaas.studio/api/v1/urlinks/15');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['X-API-KEY: cpk_xxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'],
CURLOPT_CUSTOMREQUEST => 'DELETE',
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
Success response (data)
[]
Errors
| Code | Status | When |
|---|---|---|
URL_LINK_NOT_FOUND |
404 | No link with that ID belongs to your account. |
Need more context? See Getting started for authentication, the response envelope, and the full error-code reference.