I'm new to Azure DevOps REST API (and somewhat to REST in general) and have been asked to create a PowerShell script to create basic build pipelines. I've found that the documentation provided by Microsoft does not include a single example for creating build definitions, nor does it even provide a template for the JSON request body. I've read through all of the articles on Stack Overflow related to the topic that I can find, but none of them seem to provide a real answer to this issue.
If anyone could provide an example of the required request body, or a link to one, I can put the rest of it together.
Thanks.