#NEWLINE# def do_put( endpoint , body , access_token ) : #NEWLINE# #INDENT# headers = { #NEWLINE# #INDENT# 'content-type' : 'application/json' , #NEWLINE# 'Authorization' : ( 'Bearer ' + access_token ) , #NEWLINE# #UNINDENT# } #NEWLINE# return requests . put ( endpoint , data = body , headers = headers )