1. Home
  2. Knowledge Base
  3. API
  4. POST: Creating New Data

POST: Creating New Data

POST: Creating New Data - WishList Member API

Where possible, WishList Member allows you to create new data through the API by making a HTTP POST request to a specific resource.


$response = $api->post($resource , $data);


  • $resource – an API resource (i.e. /levels)
  • $data – an associative array of data to pass to the API


$response – string: can be either serialized PHP data, JSON or XML


To create a new Membership Level using the API.

$data = array('name' => 'Silver Level');
$response = $api->post('/levels', $data);

Get more details are available on the WishList Member API.

Was this article helpful?

Related Articles


Need Support?

Can't find the answer you're looking for?
Contact Support