update_post_meta
This endpoint is used to add/update post meta for any custom fields to post.
You must include one or more vars in your request to add or update post_meta. e.g. ‘name’, ‘website’, ‘skills’. You must provide multiple meta_key vars in this format, see example request below.
Note: Only author of post or admin user can do this.
Resource URL
http://localhost/api/userplus/update_post_meta/
Method
POST
Required Parameters
- cookie - for user authentication
- post_id
- key – get API key from Settings > User Plus
- At least one meta_key to be added to post as custom post field.
Sample Request URL
http://localhost/api/userplus/update_post_meta/?key=KEY=HERE&cookie=COOKIE-ERE&post_id=110&my_score=200&website=parorrey.com