Delete a signal
Stop a signal for good and drop its run history.
DELETE
https://api.up2data.ai/v1/signals/{signal_id}Future runs stop immediately. Batch jobs that earlier runs already created are untouched and stay readable through GET /v1/batch/{job_id}. To stop temporarily, pause instead.
#Request
| Field | Type | Notes |
|---|---|---|
signal_idrequired | string | Path parameter. The signal_id returned by POST /signals. |
#Call it
curl -X DELETE "https://api.up2data.ai/v1/signals/9d1f4c2e-7b3a-4e8f-a1c5-2f6b8d9e0a11" \
-H "X-API-Key: YOUR_API_KEY"import requests
url = "https://api.up2data.ai/v1/signals/9d1f4c2e-7b3a-4e8f-a1c5-2f6b8d9e0a11"
headers = {
"X-API-Key": "YOUR_API_KEY",
}
response = requests.delete(url, headers=headers)
print(response.json())const url = "https://api.up2data.ai/v1/signals/9d1f4c2e-7b3a-4e8f-a1c5-2f6b8d9e0a11";
const headers = {
"X-API-Key": "YOUR_API_KEY",
};
const response = await fetch(url, {
method: "DELETE",
headers,
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
)
func main() {
url := "https://api.up2data.ai/v1/signals/9d1f4c2e-7b3a-4e8f-a1c5-2f6b8d9e0a11"
req, err := http.NewRequest("DELETE", url, nil)
if err != nil {
panic(err)
}
req.Header.Set("X-API-Key", "YOUR_API_KEY")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
respBody, _ := io.ReadAll(resp.Body)
fmt.Println(string(respBody))
}#Response
{
"data": { "signal_id": "9d1f4c2e-7b3a-4e8f-a1c5-2f6b8d9e0a11", "deleted": true },
"meta": { "creditsUsed": 0, "creditsRemaining": 98413, "billed": false, "reason": "signal_deleted", "requestId": "req_t4sk0001" }
}#Errors
| Status | Type | When | Billed |
|---|---|---|---|
| 404 | not_found | No signal with this signal_id in your organization, or signal_id is not a UUID. | No |
| 401 | invalid_api_key | Missing, malformed, or revoked key. | No |
| 429 | rate_limited | Over the 5,000 requests/min limit. Honor Retry-After. | No |
| 500 | internal_error | Something broke on the server side. | No |
| 503 | upstream_error | The scheduling service is unreachable. Safe to retry. | No |
See the Errors guide for every error type this version can return.