filter_id ?? null; if (isset($filter_id)) { return "/_ml/filters/$filter_id/_update"; } throw new RuntimeException('Missing parameter for the endpoint ml.update_filter'); } public function getParamWhitelist(): array { return []; } public function getMethod(): string { return 'POST'; } public function setBody($body): UpdateFilter { if (isset($body) !== true) { return $this; } $this->body = $body; return $this; } public function setFilterId($filter_id): UpdateFilter { if (isset($filter_id) !== true) { return $this; } $this->filter_id = $filter_id; return $this; } }