put_resource_data

Updates the resource properties (not metadata). The API user must have edit access to the resource.

Variable Description Data type
$resource * The ID of the resource. integer
$data * An associative array of columns/values with which to update the resource properties in JSON form. An example:
{
  "geo_lat": 51.6180,
  "geo_long": -1.51545
}

Valid columns are: "resource_type", "creation_date", "rating", "user_rating", "archive", "access", "created_by", "mapzoom", "modified", "geo_lat", "geo_long"

Note that "created_by" requires the "v" permission and the configuration "$edit_contributed_by" to be set to true.

array