Make create endpoint work.