Return parsed objects returned from a PUT request to ``path``. :param path: The path to fetch. :param data: Dictionary, bytes, or file-like object to send in the body of the request (default: ``None``). :param json: JSON-serializable object to send in the body of
(
self,
path: str,
*,
data: dict[str, Any] | bytes | IO | str | None = None,
json: dict[Any, Any] | list[Any] | None = None,
)
| 836 | raise last_exception |
| 837 | |
| 838 | def put( |
| 839 | self, |
| 840 | path: str, |
| 841 | *, |
| 842 | data: dict[str, Any] | bytes | IO | str | None = None, |
| 843 | json: dict[Any, Any] | list[Any] | None = None, |
| 844 | ) -> Any: |
| 845 | """Return parsed objects returned from a PUT request to ``path``. |
| 846 | |
| 847 | :param path: The path to fetch. |
| 848 | :param data: Dictionary, bytes, or file-like object to send in the body of the |
| 849 | request (default: ``None``). |
| 850 | :param json: JSON-serializable object to send in the body of the request with a |
| 851 | Content-Type header of application/json (default: ``None``). If ``json`` is |
| 852 | provided, ``data`` should not be. |
| 853 | |
| 854 | """ |
| 855 | return self._objectify_request(data=data, json=json, method="PUT", path=path) |
| 856 | |
| 857 | def redditor(self, name: str | None = None, *, fullname: str | None = None) -> models.Redditor: |
| 858 | """Return a lazy instance of :class:`.Redditor`. |