Agent - Folder - Via Rest API?

I can't see this on the docs but how can I create a folder and/or create agent in a folder when creating one on the api?
Was this page helpful?