ERP 9 Attachment REST service

Is is possible to upload a file via the Attachments service? Any examples.

I’ve seen references to UploadFile in ERP 10. I don’t see anything like that in 9.

Appreciate anybody pointing me in the right direction.

{
“Key1”:“1082151”,
“Company”:“ROCELEC”,
“RelatedToSchemaName”:“Erp”,
“XFileRefXFileName”:"/tmp/31IGw03Jz2Pz5enVt8YJ66z5.pdf",
“XFileRefDocTypeID”:“CUSTOMER”,
“XFileRefXFileDesc”:“Air Orders Attachment”
}

Rest isn’t supported until 10.1.500. There is no REST API in 9.

Thanks for the reply. Do you mean rest Attachments isn’t supported? I’m using rest to create orders. It’s working well. I tried AttachmentsSvc but couldn’t figure out how to upload an attachment.

In E9, you’re probably using WCF or WSE Web Services which is different than REST. I’m not as familiar with those but maybe if you post some code others might be able to help out.

Thanks I will.