preheat_open.api.api_put

preheat_open.api.api_put(endpoint, json_payload=None, bare_url=False)

Method to send a PUT request to the API

Parameters:
  • endpoint (str) – URL of the endpoint

  • json_payload (Optional[dict[str, Any]]) – payload for the request

  • bare_url (bool) – if True, uses the endpoint as full URL (and skips base URL addition)

Return type:

Response

Returns:

API response in request.Response format