Delete an association violation
Deletes a violation and the files attached to it, and by default also deletes the fine bills that were raised from it.
Authorization
AuthorizationstringrequiredBearer token — Send your API token in the Authorization header as Bearer <token>. Requests without a valid token are rejected with 401 Unauthorized.
Path parameters
violationIdstringrequiredThe association violation to delete. A Snowflake id sent as a decimal string.
example: 1830472847398407007
Body
application/json
deleteBillsbooleanWhether to also delete the vendor bill and the lease charge raised for the fine. Leave it on unless the accounting entries need to outlive the violation.
default: true
Response
200 · The violation was deleted. No body is returned.
401 · The access token is missing, expired, or not valid for this company.
404 · No association violation with that id exists in the caller's company.
Files attached to the violation are deleted with it whatever deleteBills is set to. This cannot be undone.