Hi, I’m trying to figure out how to give Omeka S’ REST API the url of a media file (a vtt-formatted transcript) for it to import. I’m able to add an item via the REST API (I use httpie rather than curl), however I’m having a lot of trouble getting it to upload a media file and thought uploading the file via URL might be easier. When I do this, however, I get the error “No ingest URL specified”. Should I be using the ingest_url key, and should I put it under data as in the example below, or somewhere else? thanks!
You’re specifying the upload ingester and not the url ingester. (I’m assuming this is more an artifact of what you posted here, since your reported error is one from the url ingester)
Your data key is an array containing an object, when it should just be an object.
You’re also specifying a lot of data that won’t be respected on a create or is likely unnecessary (the owner will be set to the user that owns the key you’re using automatically, the media type and renderer and thumbnail urls and all that are just not looked at all in this context, etc.), but that’s not really related to your problem per se.