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
- Does something like is_rest() exist
- Can a theme be built in React?
- How do I create a user using the new JSON api in 4.7?
- How to create gutenberg block using REST API independently or as headless way?
- Rewrite /?rest_route=/ link to /wp-json/ without changing default permalink structure in apache
- Get blog title with REST v2
- Custom endpoint that returns an xml
- Get post from custom REST endpoint in Gutenberg
- Get the Category Name instead of ID from WP-API
- Create post using rest api with html content
- Get custom post type REST API not working
- How can I register a new REST context?
- WP REST return value to error function from Request
- WP rest api v2 posts filter by ‘search’ & ‘category_name’ not working
- How should an old API version be deprecated gracefully?
- WP 5.5 Fatal Error – get_rest_controller() in rest-api.php
- REST API GET users
- WP_Query To call data from diffrent tables
- Authenticating with REST API
- Make authorization mandatory on custom routes
- Detect permalinks when passing querystring in REST API requests
- Add ajax load more function using WP API
- Custom Taxonomy in REST API
- Blocks Rest API rest_cannot_delete
- Is there a way to identify a user in a custom REST API method? [duplicate]
- rest_api_init is run on every rest call to endpoint
- Access WP_REST_Server from within plugin namespace
- Core function to check if a rest namespace exists
- Sending posts from Python to WordPress
- Do I need to create an endpoint?
- WP REST API not retrieving all categories
- post values to custom post type which has advanced custom fields
- How to use apiFetch to get author information in Gutenberg properly?
- How to integrate together a website currently hosted WordPress.com and a custom web application currently hosted on Azure?
- WordPress /users/me endpoint request forbidden
- How can I create new CustomPostType record using wp.api.collections?
- Custom endpoint filtering post by custom taxonomies
- How to verify which WordPress user requested the API in ASP .NET Core?
- Require()/Include() post template adding extra content
- Fetching WordPress Private Posts, Public Posts Via Default REST API Endpoint
- Securing custom rest API endpoints with public access from PWA
- Weird problem occurs while using WordPress REST API to create new post
- How do i POST to WordPress rest API from the same domain?
- rest_cannot_create_user
- CRUD from WordPress to Business Central 365 through OData REST API
- Custom rest API route not passing data along
- REST API Working for GET but not for POST?
- How to filter wp-json/wp/v2/users response on custom metas?
- WP REST API v2. filters doesn’t work
- WP REST API Access-Control-Allow-Origin response is cached
- how build custom json api controller for all registered users
- how to know that a wordpress plugin support using API?
- Script tag in string in wordpress rest api body to create post
- how to update WordPress plugins from external website with nodejs?