Deletes a recorded deal; it can be restored. A deal from a closed project cannot be deleted (`409`): correct the project's close instead — a correction to no sale voids the deal.
Path Parameters
- Type: stringidrequired
Deal id
Responses
- 204
No Content
- application/problem+json
- application/problem+json
- application/problem+json
- application/problem+json
- application/problem+json
Request Example for delete/api/v1/comps/{id}
curl 'https://app.propstreet.com/api/v1/comps/{id}' \
--request DELETE \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
No Body
Previous
Changes the deal's own fields: a field you omit keeps its value, a field sent as
`null` is cleared. A deal from a closed project refuses the project's fields
(`409`); correct them with `POST /api/v1/projects/{id}/close/correct`. A stale
`If-Match` is `412`.Next
The deal's history, newest first: when it was recorded and by whom, every change with the
old and new value of each field, parties and sources added or removed, the property
re-anchored or its facts edited, notes, and hidden, deleted and restored.