[api] Updated POST methods. And functional tests