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.

Syntax

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

Where:

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

Returns:

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

Example

To create a new Membership Level using the API.

<?php
$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

Contents

Need Support?

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