Trash a client
This endpoint is documented ahead of its release and is not available yet.
DELETE/clients/:id
Moves the client to the trash, restorable from the desktop. Its projects and the objects
filed in it are kept. 422 while it still has child members.
Request
Responses
- 200
- 401
- 403
- 404
- 409
- 422
Moved to the trash (or deleted, where the operation says so).
Missing, invalid or expired token, or no contact matches it.
Authenticated, but not allowed.
Unknown route, or the resource is missing or in the trash; message names what was
looked for (task, note, payment_receipt, expense…). On an expenses route,
message: "expenses" means the plugin is not active.
The request conflicts with the current state. code says how:
idempotency_key_reuse / request_in_progress (the Idempotency-Key header),
invoiced (an expense or time entry on an invoice cannot change), already_paused,
not_paused, not_running (the timer), deleted.
Invalid input. details maps each field to a reason the client can switch on
(required, invalid, not_found, conflict, unsupported, …; see each operation);
_: rejected is a refusal by EVX Software's own save, with its message.