update the api layout