Sorry, it looks like the documentation for this endpoint is incomplete. I’m adding a ticket to improve it, but here are some quick details that might help:
The required mime type is multipart/form-data and the endpoint expects two parts:
file: containing the attachment to upload
blobId: a client-generated unique id for the attachment. This is the Id that you would use when adding the record with the attachment.
The blobId must match the pattern [a-z][a-z0-9]{0,25} and must be unique within the form. Our own web client uses the CUID algorithm.