REST API: PUT minicondition

A method to update a minicondition. It is called by sending an HTTP PUT request to the following URL:$type/$id?access_token=xxxx

The $type and $id need to be replaced by the type and the numerical identifier of the minicondition respectively.

Available parameters

Based on the minicondition type, specific properties are set. For an overview of the supported miniconditions and the properties that they support, check the specific articles:

JSON example

The following JSON demonstrates how to use the API method:

    "after-time": "01-01-2000"

PHP example

The following example demonstrates how to use this method:

// dependencies

// change this into your access token
$api = new CopernicaRestAPI("your-access-token", 3);

// parameters to pass to the call
$data = array(
    'after-time'    => '01-01-2000'

// do the call, and print result
$api->put("minicondition/{$miniconditionType}/{$miniconditionID}", array(), $data);

The example above requires the CopernicaRestApi class.

More information