DocumentationDiscussions
DocumentationDiscussions

Discussions

Ask a Question
Back to All

Post "LicenseText" from Powershell

I tried
$params = @{"LicenseText"="Serial: XXX\nLicensed-To: XX........, "id"="license-server"};

Invoke-WebRequest -Uri http://localhost:5341/api/licenses/ -Method POST -Body ($params|ConvertTo-Json) -ContentType "application/json"

And get 405 Method Not Allowed
How do I build a request so that the server accepts the text of my license?