Mautic Community Forums

Create Asset REST API Example

https://developer.mautic.org/#create-asset

I’m desperate for an example where user POSTs the file, and the asset is returned.

The docs say the arguments are title/ storageLocation/ file.
Using postman – I can attach a file, but receive a 400: “File was not found in the asset directory.”.
I’m trying to upload the file, not reference an existing one :confused: