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
- Using backbone, can I prevent the nonce from being set?
- Best option to implement external register/login to WP from self-made API
- REST alert when new WordPress post is published or updated
- WordPress REST API and User meta data
- Error invalid parameters with REST API
- How to get featured image in WP rest api
- In the media Rest API, what is “missing_image_sizes”?
- REST API: wp_get_current_user not working on second call
- Getting a Page via its post-name using WP REST API v2 and Postman
- WP REST API – get custom taxonomies based on terms & filter
- How can I spin up a new website for a registered user automatically?
- How to make a fetch() POST request to wordpress rest api?
- Custom Endpoints not working
- Is there a way I can fetch the WordPress Developer Code References with an API?
- Pull in ALL posts from the last two weeks using Rest API
- Optimal WP Web App Backend for mobile app development
- Cannot use WordPress Application Passwords: “code”: “rest_no_route” “status”:404 for /wp-json/wp/v2/users/me/application-passwords
- REST public POST giving 403 forbidden nginx
- GET request return value as error instead of success
- REST API: Search products only in the names
- How to query a nested field in wordpress api using _fields param
- Updating post status via rest api
- How can I send information when a order is completed to my own POS?
- WordPress REST API to get all media not working
- Get UserInfo from WordPress
- How to access a table in a wordpress database using REST API?
- get Woocommerce product format json for WP_Query
- Uploading picture via REST API
- How to modify the HTML output of Gutenberg block? (Youtube)
- How to create thumbnails programmatically?
- Update block once an API request returns with a value
- WordPress forbidden 403 on delete in production vs local environment
- WordPress as backend for SPA – problem of 404 page for custom routing
- Is it possible to custom set query for a WordPress REST API response?
- How to improve WP-Rest atrocious response time?
- Custom meta POST request fired twice when updating a post in Gutenberg
- WordPress search post using unicode
- how to show product custom taxonomies in woocommerce rest api
- wp_query – show pages that have parent defined
- Get JSON from self hosted wordpress site
- Do i need to use PHP in customizer api?
- Rest api request throttling
- Properly process a custom WP REST API request (Authenticate, Authorize + Validate)?
- How can I set the default ‘orderby’ and ‘order’ parameters for a REST API call?
- Run different permission_callback depending on HTTP method of custom REST API endpoint
- upload image with rest API to the media library
- Login and register by API
- Woocommerce API for calling products by Category ID
- WordPress REST API – Custom field not added to pages
- wordpress rest api authentication failed
- How to get locale within WP REST Request?
- How to boost WP custom post REST API GET queries by custom taxonomies
- Update media item using wordpress rest api in python
- Transmit headers and footers via API from one site to another