WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#39485 closed defect (bug) (invalid)

Testing create user - status 400 return

Reported by: lucifero Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Users Keywords:
Focuses: rest-api Cc:

Description

I have installed WP API v2, and I am testing using postman.
This is my request and response: https://postimg.org/image/xse9mmhxd/

What I missing?

Thanks!

Change History (3)

#1 @lucifero
5 years ago

The same using raw json request

#2 @swissspidy
5 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed
  • Version 4.7 deleted

Hey there,

The REST API sends and receives data in JSON format. Therefore, you'd need to send data as JSON using the "raw" option, not form-data. Here's the Postman FAQ entry for this: https://www.getpostman.com/docs/text_editor

Please note that Trac is the place for reporting bugs and enhancements in WordPress core, not support. For support, there's the #wordpress support IRC channel on Freenode and the support forums at https://wordpress.org/support/

#3 @lucifero
5 years ago

THanks for your reply.
The same response happen also with raw data.
https://postimg.org/image/527s25hrx/

Note: See TracTickets for help on using tickets.