BZ-1141816 - Rest API do not create a Repository
(cherry picked from commit 541376c69200ec0f3e641c2f600e516242c654ba)