Update

HTTP Method: PUT
Base Syntax:

http://deepserhost/api/rest/[entity]/[id]

JSON Payload Syntax: a JSON object with the data to update

Example Syntax:

 http://deepserhost/api/rest/company/5

Example JSON Payload Syntax:

{
    "name" : "ACME Germany",
   	"parent_id" : "1",
   	"description" : "ACME Germany Gmbh"
}


Description: creates the entity, given the payload JSON data.
Example Result:

http://deepserhost/api/rest/companies
{
    "entity_id": "5",
    "parent_id": "1",
    "sort_order": null,
    "name": "ACME Germany",
    "description": "ACME Germany Gmbh",
    "phone": null,
    "fax": "+498587575",
    "address": "Augsburger Strasse",
    "city": "Berlin",
    "state": "Berlin",
    "country": "DE",
    "zip_code": "10115",
    "notes": null,
    "logo": null,
    "primary_contact": null,
    "mailbox_id": "0",
    "status": "1",
    "formtemplate_id": "0",
    "updated_at": "2018-10-29 16:14:10",
    "created_at": "2018-10-29 15:49:33",
    "payment_status": null
}

Returns a JSON Object with all fields of the entity updated (not only updated fields, but ALL fields of that entity).