Update api architecture