REST api - File attachmente

What is the endpoint / method for attaching a file to an estimate with the new REST api.

Hi @Rob

The POST /documents/sales endpoint should be able to do this, as estimates and invoices are closely related:

What coding language are you using for this? I can try and get an example piece of code, if that would help?

Thanks Matthew, im actually using it within Excel so VBA

Rob