5. โ Example: Deleting a Member (DELETE Request)
Description:
This example will demonstrate how to delete a member using a DELETE request.
Steps:
- In Postman, set the request method to DELETE.
- Enter the URL:
https://your-site.com/wp-json/mp/v1/members/{member_id}Replace{member_id}with the ID of the member you want to delete (e.g.,3). - In the Authorization tab, select Bearer Token and add your API Key.
- Click Send.
Expected Response:
A confirmation showing that the member has been deleted:
{
"deleted": true,
"id": 3
}