I found out that you can do this via the REST API, but ideally I want to stick to the GraphQL API in my program. I've been scouring the API Documentation but I am also pretty shaky and new to GraphQL so I can not seem to find a way to mutate the repository and set the archive state.
I only need to archive, no need for un-archive.