patch takes kwargs, just pass headers = {your_header}:

def patch(url, data=None, **kwargs):
    """Sends a PATCH request.

    :param url: URL for the new :class:`Request` object.
    :param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`.
    :param \*\*kwargs: Optional arguments that ``request`` takes.
    :return: :class:`Response <Response>` object
    :rtype: requests.Response
    """

    return request('patch', url,  data=data, **kwargs)

So something like this:

head = {"Authorization":"Token token=xxxxxxxxxxxxxxxxxxxxxx"}
url = 'http://0.0.0.0:3000/api/v1/update_experiment.json'
payload = {'expt_name' : 'A60E001', 'status' : 'done' }

r = requests.patch(url, payload, headers=head)
Answer from Padraic Cunningham on Stack Overflow
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ patch-method-python-requests
PATCH method - Python requests - GeeksforGeeks
July 12, 2025 - This means that the PATCH body ... PATCH is neither safe nor idempotent. Python's requests module provides in-built method called patch() for making a PATCH request to a specified URI....
๐ŸŒ
Requests
requests.readthedocs.io โ€บ en โ€บ latest โ€บ api
Developer Interface โ€” Requests 2.33.1 documentation
json โ€“ (optional) A JSON serializable Python object to send in the body of the Request. **kwargs โ€“ Optional arguments that request takes. ... Sends a PATCH request.
๐ŸŒ
ProxiesAPI
proxiesapi.com โ€บ articles โ€บ making-partial-updates-with-patch-requests-in-python
Making Partial Updates with PATCH Requests in Python | ProxiesAPI
November 17, 2023 - PATCH requests allow partial updates to resources via APIs. Python's requests module makes it easy to send PATCH requests and modify specific attributes using JSON patch docs.
๐ŸŒ
ReqBin
reqbin.com โ€บ req โ€บ python โ€บ 6psxhnzo โ€บ patch-request-example
Python | How do I send PATCH request?
January 15, 2023 - To send a PATCH request to the server using Python, you need to use the HTTP PATCH method and include the request data in the body of the HTTP message. The PATCH request method is used to modify a resource on the server partially.
Find elsewhere
๐ŸŒ
Python Examples
pythonexamples.org โ€บ python-requests-http-patch
Requests - HTTP PATCH Method - Python Examples
HTTP PATCH is used to send a request to apply specific modifications to the resource identified by given URL. In Python Requests library, requests.patch() method is used to send a PATCH request to a server over HTTP.
๐ŸŒ
Sarthaks eConnect
sarthaks.com โ€บ 3480976 โ€บ python-requests-patch-method
Python Requests patch() Method - Sarthaks eConnect | Largest Online Education Community
April 5, 2023 - LIVE Course for free ยท The patch() method in the Python Requests library is used to send a PATCH request to a specified URL with the data provided in the request
๐ŸŒ
TutorialsPoint
tutorialspoint.com โ€บ requests โ€บ requests_handling_post_put_patch_delete_requests.htm
Handling POST, PUT, PATCH and DELETE Requests
import requests myurl = https://postman-echo.com/patch' res = requests.patch(myurl, data="testing patch") print(res.text) E:\prequests>python makeRequest.py {"args":{},"data":{},"files":{},"form":{},"headers":{"x-forwarded- proto":"https" ,"host":"postman-echo.com","content-length":"13","accept":"*/*","accept- encoding ":"gzip, deflate","user-agent":"python-requests/2.22.0","x-forwarded- port":"443" },"json":null,"url":"https://postman-echo.com/patch"}
๐ŸŒ
PyPI
pypi.org โ€บ project โ€บ patch-requests
patch-requests
JavaScript is disabled in your browser ยท Please enable JavaScript to proceed ยท A required part of this site couldnโ€™t load. This may be due to a browser extension, network issues, or browser settings. Please check your connection, disable any ad blockers, or try using a different browser
๐ŸŒ
Stack Overflow
stackoverflow.com โ€บ questions โ€บ 65383503 โ€บ python-how-to-make-a-patch-request-to-an-api-with-requests
Python - How to make a PATCH request to an API with requests - Stack Overflow
customerImported = requests.patch(f'https://somewebsite.io/api/v1/RefNum/20IOR011673', data={'Imported': 'yes'}) print(customerImported.json()) ... <?php $data = http_build_query( [ 'data' => [ ['name' => 'Scott', 'age' => 25] ] ] ); $options = array( 'http' => array( 'method' => 'PATCH', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => $data ) ); $result = json_decode( file_get_contents('https://somewebsite.io/api/v1/id/61', false, stream_context_create($options)) );
๐ŸŒ
Codegive
codegive.com โ€บ blog โ€บ python_requests_patch_example.php
Python Requests PATCH Example (2026): The Secret to Seamless API Data Modification
The requests.patch() method in Python is used to make partial updates to an existing resource on a server, sending only the modified fields rather than the entire resource. This optimizes bandwidth and processing for specific data changes.
๐ŸŒ
Linux Hint
linuxhint.com โ€บ python-requests-patch
Python Requests Patch
November 9, 2022 - Linux Hint LLC, [email protected] 1210 Kelly Park Circle, Morgan Hill, CA 95037 Privacy Policy and Terms of Use
๐ŸŒ
Codegive
codegive.com โ€บ blog โ€บ requests_patch.php
requests patch (2026): Master Partial API Updates & Boost Efficiency Today!
1 day ago - Learn to use Python's requests.patch for efficient partial API updates. This comprehensive tutorial covers syntax, examples, best practices, and common mistakes.
๐ŸŒ
GitHub
github.com โ€บ sonya75 โ€บ python-requests-patch
GitHub - sonya75/python-requests-patch
A monkey-patch for python requests module to make the requests sent by it look more like the requests sent by a browser.
Starred by 2 users
Forked by 2 users
Languages ย  Python 100.0% | Python 100.0%
๐ŸŒ
Reddit
reddit.com โ€บ r โ€บ learnpython โ€บ comments โ€บ zm1k0c โ€บ cant_update_api_using_requestspatch
Can't update API using requests.patch : r/learnpython
December 14, 2022 - Subreddit for posting questions and asking for general advice about all topics related to learning python.
๐ŸŒ
Python-requests
docs.python-requests.org โ€บ en โ€บ latest โ€บ api
Developer Interface โ€” Requests 2.33.0 documentation
Dictionary of querystring data to attach to each Request. The dictionary values may be lists for representing multivalued query parameters. ... Sends a PATCH request.