#NEWLINE# def api_put( self , relative_uri , body , **kwargs ) : #NEWLINE# #INDENT# kwargs [ 'method' ] = 'PUT' #NEWLINE# if body : #NEWLINE# #INDENT# headers = kwargs . setdefault ( 'headers' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# headers [ 'Content-Type' ] = 'application/json' #NEWLINE# kwargs [ 'body' ] = jsonutils . dumps ( body ) #NEWLINE# #UNINDENT# kwargs . setdefault ( 'check_response_status' , [ 200 , 202 , 204 ] ) #NEWLINE# return APIResponse ( self . api_request ( relative_uri , ** kwargs ) )