#NEWLINE# def upsert( self , dataset_identifier , payload , content_type = 'json' ) : #NEWLINE# #INDENT# '\n        Insert, update or delete data to/from an existing dataset. Currently\n        supports json and csv file objects. See here for the upsert\n        documentation:\n            http://dev.socrata.com/publishers/upsert.html\n        ' #NEWLINE# resource = '{0}{1}.{2}' . format ( DEFAULT_API_PREFIX , dataset_identifier , content_type ) #NEWLINE# return self . _perform_update ( 'post' , resource , payload )