def METHOD_NAME(
    self,
    resotocore_base_uri: str,
    dump_json: bool = False,
    tempdir: Optional[str] = None,
) -> None:
    model_uri = f"{resotocore_base_uri}/model"
    log.debug(f"Updating model via {model_uri}")
    model_json = json.dumps(export_model(), indent=4)
    if dump_json:
        ts = datetime.now().strftime("%Y-%m-%d-%H-%M")
        with tempfile.NamedTemporaryFile(
            prefix=f"resoto-model-{ts}-",
            suffix=".json",
            delete=not dump_json,
            dir=tempdir,
        ) as model_outfile:
            log.info(f"Writing model json to file {model_outfile.name}")
            model_outfile.write(model_json.encode())
    headers = {"Content-Type": "application/json"}
    if getattr(ArgumentParser.args, "psk", None):
        encode_jwt_to_headers(headers, {}, ArgumentParser.args.psk)
    for attempt in Retrying(reraise=True, stop=stop_after_attempt(3), wait=wait_fixed(10)):
        with attempt:
            request = requests.Request(method="PATCH", url=model_uri, data=model_json, headers=headers)
            r = self._send_request(request)
            if r.status_code != 200:
                log.error(r.content)
                raise RuntimeError(f"Failed to create model: {r.content}")  # type: ignore