api: add pipeline resource, update user resource