I am trying to attach a file to a work order record in MCNationalAccountWorkOrders table. using this API I include the table name, record id, add to email, and base64 encoded pdf. See below. I am getting an error thatt the table name is not valid. The error message in the response is "errors:[Failed to read the request form. Invalid header line: MCNationalAccountWorkOrders".
I am able to create a work order using developer.method.me/api/v1/tables/MCNationalAccountWorkOrders, so I assume the table is valid.
Content-Type: multipart/form-data; boundary=--18d6a4ec36e
--18d6a4ec36e
Content-Disposition: form-data; name="table"
MCNationalAccountWorkOrders
--18d6a4ec36e
Content-Disposition: form-data; name="recordId"
1758
--18d6a4ec36e
Content-Disposition: form-data; name="attachToEmail"
true
--18d6a4ec36e
Content-Disposition: form-data; name=""; filename="Work Order TEST150022.pdf"
Content-Type: application/pdf
<Base64 encoded PDF data>
--18d6a4ec36e--