Q:

HTML PUT sails-filemaker

I've just started using sails-filemaker to talk to a filemaker server.  I like it :-)
I'm looking for a way to handle a HTML PUT request to update a record. 
The model is
    /**
    * LocalityFilemaker.js
    *
    * @description :: Suburbs (locality) in the evolution database. 
    * @docs        :: http://sailsjs.org/#!documentation/models
    */

    module.exports = {

        connection: 'filemaker', 
        tableName: 'locality-sails-layout',

      attributes: {
            id: {
                type: 'integer',
                primaryKey: true,
                autoIncrement: true
            }, 
            suburb: {
                type: 'string'
            },
            state: {
                type: 'string'
            },
            postcode: {
                type: 'string'
            }

      }

    };

When I call a get to {{url}}/localityFilemaker/12600 I get the response. 
    {
      "id": 12600,
      "suburb": "LARGS BAY",
      "state": "SA",
      "postcode": "5016",
      "modid": "3",
      "recid": "29500",
      "createdAt": "1970-01-01T00:00:00.000Z",
      "updatedAt": "1970-01-01T00:00:00.000Z"
    }

When I call a put to {{url}}/localityFilemaker/12600 or {{url}}/localityFilemaker
    {
      "id": 12600,
      "suburb": "LARGS BAY.", 
      "state": "SA",
      "postcode": "5016",
      "recid": "29500"
    }

I get 400 Bad request.  What is the best way to update a record using sails-filemaker using a PUT HTML request? 

A:

I hope Todd will correct me if I am wrong.  It looks like "recid" is a FileMaker internal Record id and your put is trying to update it.  Remove "recid" from your put JSON and it should work.