Management API Photo Upload

I’d like to use the Yext API to get an image from an HTML form and upload it to an entity in the platform. It’s relatively straightforward to create a form with a file upload button, but I’m unsure of if the API will accept the data type of the form (multipart/form-data).

I see in all the Yext API examples the image being uploading is in the form of an image URL, what would be the best way to get the data from the form and turn it into something usable by the API?

The API only accepts publicly accessible urls, you’ll have to upload the image somewhere else like an S3 bucket first.

1 Like