API endpoint that represents deleting a specific intervention record
-
URL Endpoint:
/api/v1/interventions/{id} -
Method:
DELETE -
URL Params:
None -
Request Body:
Name Type Required Description idinteger✅ The intervention's id -
Header Options:
- Authorization: Bearer
access_token
- Authorization: Bearer
-
Success Response
- Code:
200 OK - Content:
{ "status": 200, "data": [ { "id": 3, "message": "Intervention record has been deleted" } ] } - Code:
-
Usage Sample:
DELETE https://irepot.herokuapp.com/api/v1/interventions/3 HTTP/1.1 Accept: application/json HTTP/1.1 200 OK Content-Type: application/json { "status": 200, "data": [ { "id": 3, "message": "Intervention record has been deleted" } ] }