@kevdoescode you ask if the post is correct. That probably means it does not work properly.
If so, do you get and error message ? Is the result different from what you expected ?
To use the forum properly, you have to provide this information, not just ask someone to correct your code.
I advise also to read the very good post on how to properly use the forum: https://developer.apple.com/forums/thread/706527
A simple code sample here: https://forums.swift.org/t/sending-an-http-post-request-to-an-api-using-swift/62457
Topic:
Safari & Web
SubTopic:
General
Tags: