var parentId = 96; // the post id
var metaData = new wp.api.collections.PostMeta('', {parent: parentId});
metaData.fetch()
.done(function(data) {
var someKey = data.findWhere({key: 'someKey'});
someKey.set('value', 'newValue');
someKey.save({parent: parentId});
});
Related Posts:
- Request object for validate_callback
- WP-API + JS Backbone client – how to update post meta
- WP API DELETE request from jquery ajax [closed]
- Using Backbone with the WordPress AJAX API
- WP REST API only returning partial list of users
- How does REST API cookie authentication work in WP 4.7?
- Slow REST API calls on self-hosted WordPress [closed]
- Retrieve all users from wordpress database via REST/JSON API
- Using the REST API (v2) javascript client on a private namespaced route
- WP REST API – Retrieve content from page
- ping_status in JSON REST API
- WordPress JSON API returns normal site page in html. How do I get it to give me JSON?
- Rest API invalid nonce with Backbone Client
- Is there a hook to process a backbone restful PUT request inside wordpress?
- Add custom post type to Backbone collections
- WP-API restfull JSON and post meta?
- Why aren’t tags and categories added in post request to WP Rest API
- Querying A Post That Includes Two Taxonomies Using JSON Rest API
- Create User using JSON API
- Use the backbone.js client to save custom post type meta
- rendering view in backbone
- Accessing user Meta data via REST and backbone
- Setting/unsetting terms using the Backbone JavaScript client
- Create a new post from hybrid mobile App in WordPress using JSON API plugin
- Update post using json api v2
- Can you use a WordPress permalink to get a post with the JSON API?
- How to create WordPress custom end point with multiple parameters?
- Backbone with custom rest endpoints
- How to render WP Rest-API Endpoints in a React.js Theme with Woocommerce
- Fetching ten ten records from JSON API in word press
- how to use nimble-API and Display data?
- Check if user can in javascript
- wp-api Backbone JS Client fetch options
- URL issue retrieving Custom Post Types using Backbone JS API
- Access checks with custom REST endpoints and backbone
- How the wordpress login and signup in react native app
- Consult array data in REST API Filter
- Extending the API I created to return category names
- .htaccess and proxy settings for routing a decoupled REST API consuming theme
- WP API users per page
- multi-language multi-site with REST API
- JSON API : Add a method called create_user to create a new user
- External api call using wordpress
- Can I use the Backbone REST API client outside WordPress?
- What filtering is available for backbone.js?
- How to limit what fields are returned through the WP API Backbone JS client
- WordPress REST API and Backbone JS
- Using backbone, can I prevent the nonce from being set?
- Is the WordPress REST API installed and enabled in a vanilla WordPress 4.7 installation?
- WP Rest API – How to get featured image
- WordPress 4.7.1 REST API still exposing users
- Pre populate WordPress wp_media modal with image selection
- How do you retrieve a post by slug name through REST API?
- Does something like is_rest() exist
- Hiding WordPress REST API v2 endpoints from public viewing
- Get WP Navigation Menu from REST API V2
- How to: Make JWT-authenticated requests to the WordPress API
- WP REST API fetch posts from post type
- How to use OAuth authentication with REST API via CURL commands?
- WordPress Rest API custom endpoint optional param
- With Rest V2 (WP4.7) how does one restrict certain RESTFUL verbs?
- Using the Rewrite API to Construct a RESTful URL
- WP Rest API: details of latest post including featured media url in one request?
- WP REST API: filter by category 1 AND category 2
- How to do a meta query using REST-API in WordPress 4.7+?
- REST API purpose?
- SSO / authentication integration with external ‘directory service’
- Get post count in wp rest API v2 and get all categories
- How to cache json with wp-super cache
- Filtering multiple custom fields with WP REST API 2
- WP REST API — How to change HTTP Response status code?
- wp_get_current_user() function not working in Rest API callback function
- Add filter function in media modal box
- Modified wp.media.view.Settings.Gallery in Backbone JS, but editing doesn’t work
- How to use WP-REST API to login user and get user data for Android app?
- Nonce retrieved from the REST API is invalid and different from nonce generated in wp_localize_script
- How to get custom post meta using REST API
- Add media with WP-Rest-API v2
- Can I use REST-API on plain permalink format?
- How to remove rest api link: in http headers?
- Building a custom REST API
- WP REST API Is it rather easy to rename the default wp-json uri part?
- Query WP REST API v2 by multiple meta keys
- run silex or slim with wordpress
- Search WP API using the post title
- How to add category to: ‘wp-admin/post-new.php’?
- check the requesting url
- How would I add custom tables/endpoints to the WP REST API?
- Show popular post in another php website via WP REST JSON API
- Custom post types filtered by taxonomy using REST API v2
- WP REST API Require Password for GET Endpoint
- Displaying a page built with Elementor using the REST API [closed]
- How to hook in and modify the new revisions UI (3.6+)?
- Can a theme be built in React?
- Getting user meta data from WP REST API
- How do I cache (core) API requests?
- WP JSON REST API (Ryan McCue) how to query posts with specific meta data with ‘AND’ relation?
- Fetch All Posts (Including Those Using a Custom Post Type) With WordPress API
- WP REST API no longer supports filter param, so how do I get posts in a custom taxonomy?
- Does WP REST API have a built in route for calling menu?