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: GET subprofile identifiers

A simple method for fetching the identifiers of all subprofiles in a miniselection. Execute this method by sending an HTTP GET request to the following URL:$id/subprofileids?access_token=xxxx

The $id should be replaced by the numerical identifier of the miniselection you want to fetch the IDs of.

Available parameters

This method does not support any parameters.

Returned fields

This method returns a JSON array consisting of unique numerical identifiers.

PHP example

The following PHP script demonstrates how to use the API method.

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

// execute the call and print the result

The example above requires the CopernicaRestApi class.

More information