app.core.spaces

Spaces API router - full CRUD for Kumiho spaces.

Functions

create_space(request[, client])

Create a new space.

delete_space([path, force, client])

Delete a space.

get_space([path, client])

Get a specific space by its path.

list_spaces([parent_path, recursive, client])

List child spaces under a parent path.

update_space_metadata([path, request, client])

Update a space's metadata.

async app.core.spaces.list_spaces(parent_path=Query(PydanticUndefined), recursive=Query(False), client=Depends(dependency=<function get_kumiho_client>, use_cache=True, scope=None))[source]

List child spaces under a parent path.

Parameters:
  • parent_path (str)

  • recursive (bool)

  • client (Any)

async app.core.spaces.create_space(request, client=Depends(dependency=<function get_kumiho_client>, use_cache=True, scope=None))[source]

Create a new space.

Parameters:
  • request (SpaceCreate)

  • client (Any)

async app.core.spaces.get_space(path=Query(PydanticUndefined), client=Depends(dependency=<function get_kumiho_client>, use_cache=True, scope=None))[source]

Get a specific space by its path.

Parameters:
  • path (str)

  • client (Any)

async app.core.spaces.update_space_metadata(path=Query(PydanticUndefined), request=None, client=Depends(dependency=<function get_kumiho_client>, use_cache=True, scope=None))[source]

Update a space’s metadata.

Parameters:
  • path (str)

  • request (SpaceUpdate | None)

  • client (Any)

async app.core.spaces.delete_space(path=Query(PydanticUndefined), force=Query(False), client=Depends(dependency=<function get_kumiho_client>, use_cache=True, scope=None))[source]

Delete a space.

Parameters:
  • path (str)

  • force (bool)

  • client (Any)