Draw up (something) / draw (something) up

To put something in writing, to prepare documents or legal papers.

They were able to draw up the contract while we were waiting.