Files

Delete a file

Delete a file with the specified ID.

Note: This endpoint does not check if the specified file is in use. Use with caution.

Both partner tokens and entity user tokens can be used for authentication.

Considerations for invoice attachments

Deleting a file does not delete it from the attachments list of accounts receivable invoices, quotes, and credit notes because these documents contain an inline copy of all referenced resources. To delete a file from attachments, call PATCH /receivables/{receivable_id} and update the attachments list to exclude the deleted file.

delete/files/{file_id}

Request

  • Base URL: https://api.sandbox.monite.com/v1
  • URL: https://api.sandbox.monite.com/v1/files/{file_id}
  • Auth: HTTP bearer

Path parameters

file_idstring required

ID of the file you want to delete.

Headers

x-monite-versionstring required

Response

Successful response

Changes

No recorded changes to this operation across all 1 revision of this API.