Delete Location

​

Soft-deletes a Location by setting its status to DELETED and recording the deletion timestamp. A Location can only be deleted if its status is ACTIVE. If the Location is IN_USE (bound to a charge), it must be unbound first. Requires Idempotency-Key header.

Path Parameters
  • id
    Type: string Format: uuid
    required

    Unique identifier of the location to delete

Responses
  • 204

    Location deleted successfully

  • application/json
  • 403

    Access denied — the credential does not carry the scope required by this operation, or the client certificate was rejected. Answered at the exposure gateway (Bacen: AcessoNegado).

  • application/json
  • application/json
  • application/json
  • application/json
  • 503

    Service temporarily unavailable (Bacen: ServicoIndisponivel).

Request Example for delete/api/loc/{id}
curl http://localhost:8080/api/loc/2a8cbd7d-0c7b-4a69-a1e1-4a19e8b7a2aa \
  --request DELETE \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
No Body