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 interest

You can update an interest by sending an HTTP PUT request to the following URL:$id/?access_token=xxxx

Replace the $id by the ID of the interest that you want to update.

Available parameters

The following parameters can be added to the call:

  • name: New name for the interests.
  • group: New group name for the interest. This does not affect interests currently in this group.

PHP Example

The following PHP script demonstrates how to use this API method:

// requirements

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

// data for the method
$data = array(
    'name'  =>  "soccer",
    'group' =>  "sports"

// execute the call and print the results
$api->put("interest/{$interesseID}/", $data);

This example requires the REST API class.

More information