Update saved objects spaces API

edit

Update saved objects spaces API

edit

Refer to spaces APIs.