You can check this post on how to obtain the approvalId and then how to pass it in the body of the request: Approving Azure pipeline using API