prepare_post_parameters#

static ApiClient.prepare_post_parameters(post_params=None, files=None)#

Build form parameters.

This method combines plain form parameters and file parameters into a structure suitable for transmission.

Parameters:
post_paramsOptional[List[Tuple[str, Union[str, bytes]]]]

Plain form parameters.

filesOptional[Mapping[str, Union[str, bytes, IO, Iterable[Union[str, bytes, IO]]]]]

File parameters. Each value may be a file path (str or bytes), an open file-like object (IO), or an iterable of any combination thereof.