Update api with one big ctx