After some research I have found that I was trying to access a model instead of a classifier (which is what I had made). Therefore the corrected URL for this case is :
https://{namehere}.cognitiveservices.azure.com/documentintelligence/documentClassifiers/{classifier id here}:analyze?api-version=2024-11-30"