Keycloak 405 Method not allowed

I have resolved this issue, The issue was that I was trying to use the name instead of the id of the resource I was pinging