Skip to main content

DELETE /api/propiedades/

Permanently delete a property from the database. This action cannot be undone. This endpoint requires admin authentication using HTTP Basic Auth.
This endpoint requires authentication. Include the Authorization header with Basic Auth credentials.
This operation is irreversible. Once a property is deleted, it cannot be recovered.

Request

id
string
required
The unique 6-character property identifier of the property to delete (e.g., “ZN1001”)
curl -X DELETE https://idforideas-1.jamrdev.com.ar/api/propiedades/ZN1001 \
  -H "Authorization: Basic <base64-credentials>"

Response

success
boolean
required
Indicates whether the operation was successful
message
string
required
Human-readable message describing the result

Example Response

Success (200)
{
  "success": true,
  "message": "Propiedad eliminada"
}
Unauthorized (401)
{
  "error": "Unauthorized"
}

Status Codes

200
Success
Property deleted successfully
401
Unauthorized
Authentication required or credentials invalid
404
Not Found
Property with the specified ID does not exist

Notes

  • This operation is permanent and cannot be undone
  • The endpoint will return success (200) even if the property doesn’t exist (idempotent operation)
  • Make sure to verify the property ID before deletion to avoid accidental data loss
  • Consider implementing a “soft delete” pattern in production systems where records are marked as deleted rather than physically removed

Build docs developers (and LLMs) love