code: public function update(array $data = [])
      {
          $this->setActionUri(__FUNCTION__);
  
          $response = $this->client->post($this->uri, [
              'multipart' => $this->dataToMultipart($data),
          ]);
  
          return $this->responseToJson($response);
      }
docs: Update a new resource
  @param array $data
  @return array