I was using requests wrong. This seems to fix it:
resp = requests.request('put', 'http://localhost:8000/wp-json/wp/v2/posts/8', json=data, auth=HTTPBasicAuth(userid, passwd))
Related Posts:
- Updating Post Meta with Backbone and the REST API
- Request object for validate_callback
- WP-API restfull JSON and post meta?
- Create User using JSON API
- Create a new post from hybrid mobile App in WordPress using JSON API plugin
- Can you use a WordPress permalink to get a post with the JSON API?
- Fetching ten ten records from JSON API in word press
- WP API DELETE request from jquery ajax [closed]
- JSON API : Add a method called create_user to create a new user
- WP Rest API – How to get featured image
- Get WP Navigation Menu from REST API V2
- How to cache json with wp-super cache
- Show popular post in another php website via WP REST JSON API
- WP REST API only returning partial list of users
- Help with 4.6. Attachment response object in JSON API plugin
- Slow REST API calls on self-hosted WordPress [closed]
- Retrieve all users from wordpress database via REST/JSON API
- WP set auth cookie using Ajax is not saved to browser
- Sorting results from JSON-API on custom fields
- POST to a REST API from a wordpress form
- WordPress json api taxonomy index method
- Add custom parameters to JSON API search query?
- WordPress wp-json API – Custom Post Type returns 403
- Are all ID’s used unique?
- WP REST API – Retrieve content from page
- Sharing templates with the JSON API?
- Get subcategories with JSON API plugin
- How to Securely and remotely Create new user in wordpress using Rest API
- Why use JSON API to display recent posts?
- how to get nonce using json api
- ping_status in JSON REST API
- WordPress JSON API returns normal site page in html. How do I get it to give me JSON?
- How to get all events from ‘All in one Events calender’ plugin in JSON format?
- How pull wordpress blog data using Blogger API using python
- Add external js file to footer with id
- How do I perform a “get” call to an external API, and then display the JSON results on a page in my WordPress site?
- Authenticated request to WP REST API V2 returning 403 error on /users/me [closed]
- Hook Into the_content Filter For JSON API Only [closed]
- Create post using JSON api plugin
- WordPress JSON API Extend to Create Users [closed]
- How to handle shortcodes when using the JSON API
- How to replace or display the special characters from JSON API plugin [closed]
- Why aren’t tags and categories added in post request to WP Rest API
- JSON API – search by custom taxonomy
- Json api does not return all metadata
- How to alter WP-JSON main query or best practise for custom endpoints
- JSON API plugin, Get posts by category return no post
- Querying A Post That Includes Two Taxonomies Using JSON Rest API
- How do I “get the next 10 posts after post_id == x”?
- Filter by custom field (meta_key) using JSON API
- Ajax store response json in variables
- Include related custom fields from one post type in another post type’s JSON feed
- mod_rewrite doesn’t work as I want even with JSON API Plugin disabled
- Getting Custom Fields from WordPress JSON API [closed]
- Why is json_decode failing?
- WordPress JSON API restrict to specific domain
- JSON API not showing full content
- How to create WordPress custom end point with multiple parameters?
- wp json api – get posts by category
- Best way to retrieve data in custom api extended from wp-api
- JSON API Plugin not showing Attachments id reused
- WP JSON API meta_query not working
- Fetch CSS of posts
- uneven behaviour create a post in using json api with white spaces
- how to use nimble-API and Display data?
- How to obtain “wp_rest” nonce for WP Statistics plugin manually?
- Showing results from json-string in WordPress search results page
- Gutenberg get list of all custom image sizes
- WordPress Theme/Plugin Information API Response to Text and Button
- JSON api oembed youtube
- How the wordpress login and signup in react native app
- Consult array data in REST API Filter
- Override plugin function to show invoices even if not logged in
- Extending the API I created to return category names
- Using the JSON API via HTTPS and HTTP
- .htaccess and proxy settings for routing a decoupled REST API consuming theme
- How to debug new shortcode? And how to get string from shortcode into code?
- Get the name of the post type
- json API plugin not returning any post with get_category_posts
- WP API users per page
- WP-API + JS Backbone client – how to update post meta
- PHP calling function within a class
- WP REST API v2. filters doesn’t work
- WP REST API Access-Control-Allow-Origin response is cached
- wp_query – show pages that have parent defined
- Trying to use and understand JSON API and get_posts
- Get JSON from self hosted wordpress site
- JSON Feed on my wordpress Blog
- how build custom json api controller for all registered users
- Search in particular category in wordpress
- How to add custom_fields value in JSON API using create_post
- Group posts by weekly or monthly
- How does the JSON API work to parse incoming JSON and fetch a post based on an ID?
- Is there a way to force Featured image to show as attachement?
- multi-language multi-site with REST API
- wordpress plugin JSON API search within specific category
- get content from json api to post
- Send PUT remote request with BuddyPress checkbox
- External api call using wordpress
- Simple Apex Charts with jQuery not working