HTTP DELETE
HTTP DELETE
Section titled “HTTP DELETE”Type: http-delete · Package: HTTP Activities v1.0.0 · Output: ZoanHttpResponse
Sends a DELETE request to delete a resource from an API. The URL identifies the resource to be deleted (usually with its id). Does not send body.
How it works
Section titled “How it works”Makes the DELETE request to url (with optional headers and authentication) and returns ZoanHttpResponse. Fails if the server responds with an error — see error handling.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
url | expression | The URL of the resource to delete. |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
headers | JSON | Dictionary of extra headers (name → value). See headers. |
authorization | JSON | Authentication: bearer, basic or apikey. See authentication. |
Output
Section titled “Output”Returns a ZoanHttpResponse. Many APIs return 204 (no content) when the deletion is successful.
Example
Section titled “Example”HTTP DELETE url = = "https://api.erp.com/clientes/" + clienteId authorization = { "type": "bearer", "token": = credential("api-erp").ToPlainText() } → output: resp
Log message = = "Cliente eliminado (status " + resp.StatusCode + ")"Related activities
Section titled “Related activities”- HTTP GET — read data.
- HTTP POST — create a resource.
- Try / Catch — manejar respuestas de error.