public function update(int $vehicleId, int $sharingId, ?string $description, ?string $duration = '1D'): Response
    {
        $this->requiresAccessToken();

        return $this->sendJson(
            'PATCH',
            "vehicles/{$vehicleId}/sharing/{$sharingId}",
            $this->getApiHeaders(),
            $this->mergeApiBody(\compact('description', 'duration'))
        );
    }
public function update(int $vehicleId, int $sharingId, ?string $description, ?string $duration = '1D'): Response
    {
        $this->requiresAccessToken();

        return $this->sendJson(
            'PATCH',
            "vehicles/{$vehicleId}/sharing/{$sharingId}",
            $this->getApiHeaders(),
            $this->mergeApiBody(\compact('description', 'duration'))
        );
    }
public function update ( int $ vehicleId , int $ sharingId , ? string $ description , ? string $ duration = '1D' ) : Response { $ this -> requiresAccessToken ( ) ; return $ this -> sendJson ( 'PATCH' , "vehicles/{$vehicleId}/sharing/{$sharingId}" , $ this -> getApiHeaders ( ) , $ this -> mergeApiBody ( \ compact ( 'description' , 'duration' ) ) ) ; }
Update an existing share.

@param int         $vehicleId
@param int         $sharingId
@param string|null $description
@param string|null $duration

@return \Laravie\Codex\Contracts\Response
Update an existing share .