     title = title ? ''
     type = type ? mime.lookup(file)
     encoded = fs.readFileSync(file).toString('base64')
-    # params
     method = 'post'
     path = '/atom/post'
     body = entry:

    return @_reject('options.id is required', callback) unless id?
    method = 'delete'
    path = '/atom/edit/' + id
    # TODO: check res.statusCode is 200
    @_request { method, path }, callback

  # GET EditURI (/atom/edit/XXXXXXXXXXXXXX)
  # params:

        _: encoded
    body.entry['dc:subject'] = { _: folder } if folder?
    body.entry.generator = { _: generator } if generator?
    statusCode = 201
    @_request { method, path, body, statusCode }, callback

  # PUT EditURI (/atom/edit/XXXXXXXXXXXXXX)
  # params:
