Update space API

edit

Refer to spaces APIs.