I've tried passing a credentials object or even passing the API key in the URL, but every request is returning require_login:true.
Invoke-RestMethod -Method Put -Uri "https://[redacted API key]:password@mydomain.freshdesk.com/helpdesk/tickets/12345678.json" -Body (ConvertTo-Json $body) -Header @{"Content-Type"="application/json"}
Any ideas?