What is the media_urls request parameter in the REST API meant for?
-
Could someone explain what media_urls is supposed to be for?
https://developer.wordpress.com/docs/api/1/post/sites/%24site/media/new/
The blog I need help with is: (visible only to logged in users)
-
If you need assistance with our developer tools, please contact us here: https://developer.wordpress.com/contact/
-
Ok, I made a typo, media_urls are just uri’s to media files that wordpress will happily import when you supply them:
curl --form "media_urls[]=http://your_domain/image.jpg" -H "authorization: Bearer ${TOKEN}" "https://public-api.wordpress.com/rest/v1/sites/${SITEID}/media/new"
- The topic ‘What is the media_urls request parameter in the REST API meant for?’ is closed to new replies.