Skip to content
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 miniview

A miniview is for a collection what a selection is on a database. To edit a miniview an HTTP PUT request can be sent to the following URL:$id?access_token=xxxx

The $id is the ID of the miniview you want to edit.

Available data

The following properties can be added to the message body of the HTTP request:

  • name: Name of the selection
  • description: Description of the selection
  • parent-type: Indicates whether the current selection belongs to another selection or a collection.
  • parent-id: ID of the selection or the collection the selection belongs to

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);

// data to be sent to the api
$data = array(
   	'description'   =>  'a new description',

// do the call, and print result
print_r($api->put("miniview/{$miniviewID}", $data));

The example above requires the CopernicaRestApi class.

More information