Skip to content

Latest commit

 

History

History
52 lines (42 loc) · 1.02 KB

DELETE_id.md

File metadata and controls

52 lines (42 loc) · 1.02 KB

Delete intervention

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
    id integer The intervention's id
  • Header Options:

    • Authorization: Bearer access_token
  • Success Response

    • Code: 200 OK
    • Content:
      {
        "status": 200,
        "data": [
          {
            "id": 3,
            "message": "Intervention record has been deleted"
          }
        ]
      }
  • 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"
        }
      ]
    }