src/Resources/BaseDbTableResource.php
public function patchRecordById($table, $record, $id, $extras = [])
    {
        $record = static::validateAsArray($record, null, false, 'The request contains no valid record fields.');

        try {
            $results = $this->patchRecordsByIds($table, $record, $id, $extras);

            return array_get($results, 0, []);
        } catch (BatchException $ex) {
            $response = $ex->pickResponse(0);
            if ($response instanceof \Exception) {
                throw $response;
            }

            return $response;
        } catch (\Exception $ex) {
            throw new InternalServerErrorException("Failed to patch records from '$table'.\n" . $ex->getMessage());
        }
    }
public function patchRecordById($table, $record, $id, $extras = [])
    {
        $record = static::validateAsArray($record, null, false, 'The request contains no valid record fields.');

        try {
            $results = $this->patchRecordsByIds($table, $record, $id, $extras);

            return array_get($results, 0, []);
        } catch (BatchException $ex) {
            $response = $ex->pickResponse(0);
            if ($response instanceof \Exception) {
                throw $response;
            }

            return $response;
        } catch (\Exception $ex) {
            throw new InternalServerErrorException("Failed to patch records from '$table'.\n" . $ex->getMessage());
        }
    }
@param string $table
@param array  $record
@param string $id
@param array  $extras

@throws \Exception
@return array