text: function(request, state, logger, callback) {
  
    if (!request.body) return {};
  
    var propertyId = "id";
    if (request.headers && request.headers['X-Mounterest-Property-ID']) {
        var propertyId = request.headers['X-Mounterest-Property-ID'];
    }
  
    var params = JSON.parse(request.body);
    if (params[propertyId]) {
      return {
        body: { "error": "Updating read-only parameter not allowed" }
      }
    }
    else if (Object.keys(params).length > 1) {
      return {
        body: { "error": "Updating multiple params not allowed" }
      }
    }
  
    const proxy = require(`${process.cwd()}/testapi/responders/proxy.js`);
  
    proxy.fetch_response(request, state, logger, response => {
      if (response.statusCode != 200 && response.statusCode != 201) {
        response = {
          statusCode: 404,
          body: { "error": "Not found" }
        }
      }
      else {
        const token = response.token;
        var body = JSON.parse(response.body);
        var property = Object.keys(params)[0];
        if (body[property]) {
          body[property] = params[property];
          response = {
            statusCode: 200,
            body: JSON.stringify(body)
          }
          state.instances[token].responses[request.path] = response;
        }
        else {
          response = {
            body: { "error": "Cannot change property that does not exist" }
          }
        }
      }
      callback(response);
    });
  
  }
  