patch() — requests Function Reference
Architecture documentation for the patch() function in api.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD 9a230dec_b932_c46a_f6f6_56fca478654c["patch()"] b9426d6e_b47d_565b_5251_7d3a1c1dfbd1["api.py"] 9a230dec_b932_c46a_f6f6_56fca478654c -->|defined in| b9426d6e_b47d_565b_5251_7d3a1c1dfbd1 8f0a1008_20a1_45d8_2ae7_96c1a7562216["request()"] 9a230dec_b932_c46a_f6f6_56fca478654c -->|calls| 8f0a1008_20a1_45d8_2ae7_96c1a7562216 style 9a230dec_b932_c46a_f6f6_56fca478654c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/requests/api.py lines 133–145
def patch(url, data=None, **kwargs):
r"""Sends a PATCH request.
:param url: URL for the new :class:`Request` object.
:param data: (optional) Dictionary, list of tuples, bytes, or file-like
object to send in the body of the :class:`Request`.
:param json: (optional) A JSON serializable Python 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)
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does patch() do?
patch() is a function in the requests codebase, defined in src/requests/api.py.
Where is patch() defined?
patch() is defined in src/requests/api.py at line 133.
What does patch() call?
patch() calls 1 function(s): request.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free