Skip to main content
DELETE
/
v1
/
api
/
agencies
/
{agencyId}
/
branches
/
{branchId}
Delete a branch
curl --request DELETE \
  --url http://localhost:3091/v1/api/agencies/{agencyId}/branches/{branchId} \
  --header 'Authorization: Bearer <token>'
{
  "status": 404,
  "errorCode": "RESOURCE_NOT_FOUND",
  "message": "Ressource non trouvée",
  "timestamp": "2023-11-07T05:31:56Z",
  "path": "/v1/api/bookings/123",
  "debugInfo": "<string>",
  "suggestions": [
    "<string>"
  ],
  "fieldErrors": [
    {
      "field": "email",
      "message": "must not be blank",
      "rejectedValue": {}
    }
  ]
}

Authorizations

Authorization
string
header
required

JWT access token from POST /v1/api/auth/login

Path Parameters

agencyId
integer<int64>
required
branchId
integer<int64>
required

Response

Branch deleted