code: def update(
      self, project_name: str, config: AnyConfigInfoWithCreds
  ) -> AnyConfigInfoWithCreds:
      resp = self._request(
          f"/api/project/{project_name}/backends/update",
          body=config.json(),
      )
      return parse_obj_as(AnyConfigInfoWithCredsPartial, resp.json())
  
file_path: dstack/src/dstack/api/server/_backends.py
imports: from typing import List
  from pydantic import parse_obj_as
  from dstack._internal.core.models.backends import AnyConfigInfoWithCreds, AnyConfigInfoWithCredsPartial, AnyConfigValues
  from dstack._internal.core.models.backends.base import BackendType
  from dstack._internal.server.schemas.backends import DeleteBackendsRequest
  from dstack.api.server._group import APIClientGroup
label_desc: Use image node_id 4 for calling the BackendsAPIClient obj's underlying member method code with example usage: obj.update(project_name, config) and returns: parse_obj_as