api/MarkLogic/MLPHP/RESTAPI.php
public function setProperty($key, $value)
    {
        $arr = array($key => $value);
        $params = array('format' => 'json');
        $request = new RESTRequest(
          'PUT', 'config/properties/' . $key,
          $params, json_encode($arr)
        );
        try {
            $this->response = $this->apiClient->send($request);
            return $this;
        } catch(Exception $e) {
            echo $e->getMessage() . ' in ' . $e->getFile() . ' on line ' . $e->getLine() . PHP_EOL;
        }
    }
public function setProperty($key, $value)
    {
        $arr = array($key => $value);
        $params = array('format' => 'json');
        $request = new RESTRequest(
          'PUT', 'config/properties/' . $key,
          $params, json_encode($arr)
        );
        try {
            $this->response = $this->apiClient->send($request);
            return $this;
        } catch(Exception $e) {
            echo $e->getMessage() . ' in ' . $e->getFile() . ' on line ' . $e->getLine() . PHP_EOL;
        }
    }
Set a REST API property.
Must execute create() before setting a property.

@param string key The property key.
@param string json The property value.