Redirects · redirect.destroy
DELETE/redirect/{id}redirect.destroy
Delete a redirect
DELETE /redirect/{id} is part of the Redirects group. Its parameters and response shape below are generated from the live OpenAPI document.
- Base URL
- https://api.redirhub.com/v1
- Auth
- Bearer token
- Idempotent
- Yes
- Returns
- application/json
The request
Call DELETE /redirect/{id} with your bearer token. The id path segment identifies the record.
# Delete a redirect
curl -X DELETE "https://api.redirhub.com/v1/redirect/9f2a7c31-4b8e-4a02-9d1f-0c6b7e5a1d44" \
-H "Authorization: Bearer $REDIRHUB_TOKEN"Path parameters
| Parameter | Description |
|---|---|
| idRequiredstring |
The response
A 204 returns the record as JSON.
{
"message": "The given data was invalid."
}Status codes
204
No contentNo content
401
UnauthenticatedUnauthenticated
429
Too many requestsToo many requests
484
Bad requestThe workspace role of the authenticated user is too low for this action.
