src/Communibase/Connector.php
public function update($entityType, array $properties)
    {
        if (empty($properties['_id'])) {
            return $this->doPost($entityType . '.json/crud/', [], $properties);
        }
        return $this->doPut($entityType . '.json/crud/' . $properties['_id'], [], $properties);
    }
public function update($entityType, array $properties)
    {
        if (empty($properties['_id'])) {
            return $this->doPost($entityType . '.json/crud/', [], $properties);
        }
        return $this->doPut($entityType . '.json/crud/' . $properties['_id'], [], $properties);
    }
public function update ( $ entityType , array $ properties ) { if ( empty ( $ properties [ '_id' ] ) ) { return $ this -> doPost ( $ entityType . '.json/crud/' , [ ] , $ properties ) ; } return $ this -> doPut ( $ entityType . '.json/crud/' . $ properties [ '_id' ] , [ ] , $ properties ) ; }
This will save an entity in Communibase. When a _id-field is found, this entity will be updated

NOTE: When updating, depending on the Entity, you may need to include all fields.

@param string $entityType
@param array $properties - the to-be-saved entity data

@return array resultData

@throws Exception
This will save an entity in Communibase . When a _id - field is found this entity will be updated