def request_with_file_from_path(
        method:,
        url_path:,
        path:,
        filename: nil,
        content_type: '',
        params: {},
        header_overrides: {}
    )
      endpoint_spec = Smartsheet::API::EndpointSpec.new(method, [url_path], body_type: :file)
      request_spec = Smartsheet::API::RequestSpec.new(
          header_overrides: header_overrides,
          params: params,
          file_spec: Smartsheet::API::PathFileSpec.new(path, filename, content_type)
      )
      client.make_request(endpoint_spec, request_spec)
    end
def request_with_file_from_path(
        method:,
        url_path:,
        path:,
        filename: nil,
        content_type: '',
        params: {},
        header_overrides: {}
    )
      endpoint_spec = Smartsheet::API::EndpointSpec.new(method, [url_path], body_type: :file)
      request_spec = Smartsheet::API::RequestSpec.new(
          header_overrides: header_overrides,
          params: params,
          file_spec: Smartsheet::API::PathFileSpec.new(path, filename, content_type)
      )
      client.make_request(endpoint_spec, request_spec)
    end
Create a custom request using a provided method, URL path, and filepath details
 @example Make a POST request to 'https://api.smartsheet.com/2.0/sheets/1/attachments' with a file
   client.request_with_file_from_path(
     method: :get,
     url_path: 'sheets/1/attachments',
     path: './my-file.docx',
     filename: 'my-uploaded-file.docx',
     content_type: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
   )