Setting Title & Caption on an image via the REST API
-
Hi,
We use the WP REST API to create new posts. The posts always contain at least one image. Here is a sample REST upload, with the OAuth key redacted.
curl -v -F 'format=image' -F 'title=Important to always remember itsa minority. Good news -> Church St, D7. Nov 12 2013' -F 'content=With thanks to PL' -F 'status=schedule' -F 'date=2013-11-12T22:34+0000' -F 'tags=privatisation,good news' -F 'media[]=@file84361.jpg' -H 'Authorization: Bearer ************ ' https://public-api.wordpress.com/rest/v1/sites/dublinlitterblog.wordpress.com/posts/newCan’t seem to find a way of setting the Image title and a caption as art of this process. The media[] field seems to accept a filename only.
Does such functionality exist, and if so, how do I make it happen?
thanks & regards
The blog I need help with is: (visible only to logged in users)
- The topic ‘Setting Title & Caption on an image via the REST API’ is closed to new replies.