3. โ Example: Creating a New Member (POST Request)
Description:
Here, you will create a new member using a POST request.
Steps:
- In Postman, set the request method to POST.
- Enter the URL:
https://your-site.com/wp-json/mp/v1/members - In the Authorization tab, select Bearer Token and add your API Key.
- Go to the Body tab and select raw with the format set to JSON.
- Enter the following JSON data to create a new member:
{ "username": "newmember", "email": "newmember@example.com", "password": "strongpassword123" } - Click Send.
Expected Response:
You should see a confirmation with the details of the newly created member:
{
"id": 3,
"username": "newmember",
"email": "newmember@example.com",
"status": "active"
}