{"action":"opened","issue":{"number":226,"created_at":"2011-10-25T20:18:05Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"I'm currently trying to translate the example given at http://www.salesforce.com/us/developer/docs/api_rest/Content/dome_update_fields.htm into requests.  \r\n\r\nThe corresponding PATCH action is:\r\n\r\n    curl https://na1.salesforce.com/services/data/v20.0/sobjects/Account/001D000000INjVe  -H \"Authorization: OAuth token\" -H \"X-PrettyPrint:1\" -H \"Content-Type: application/json\" -d @patchaccount.json -X PATCH\r\n\r\nWith json:\r\n\r\n    {\r\n        \"BillingCity\" : \"San Francisco\"\r\n    }\r\n\r\nMy current code looks like:\r\n\r\n    import requests\r\n\r\n    data = {'BillingCity': 'San Francisco'}\r\n    url = 'https://na1.salesforce.com/services/data/v20.0/sobjects/Account/001D000000INjVe'\r\n    headers = {\r\n        'Authorization': 'OAuth token',\r\n        'Content-Type': 'application/json',\r\n    }\r\n    r = requests.patch(url, headers=headers, data=data)\r\n\r\nApparently, I'm missing something from the above.  Is there a way to use PATCH in requests without writing the json content in an external file?","comments":0,"title":"How do I use PATCH with an external json file?","updated_at":"2011-10-25T20:18:05Z","url":"https://api.github.com/repos/kennethreitz/requests/issues/226","id":2049343,"assignee":null,"milestone":null,"closed_at":null,"user":{"gravatar_id":"1614f2124df75e3924e2b5472ce5594d","avatar_url":"https://secure.gravatar.com/avatar/1614f2124df75e3924e2b5472ce5594d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/tlam","id":91275,"login":"tlam"},"html_url":"https://github.com/kennethreitz/requests/issues/226","labels":[],"state":"open"},"legacy":{"number":226,"action":"opened","issue":2049343}}