Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

REST API: PUT minicondition

A method to update a minicondition. It is called by sending an HTTP PUT request to the following URL:

https://api.copernica.com/v3/minicondition/$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:

PHP example

The following example demonstrates how to use this method:

// dependencies
require_once('copernica_rest_api.php');

// 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