API call tries to redirect when creating a new Organization in Quay
Issue
I tried to create an organisation with API, but it fails.
$ curl -X POST -sSG -H 'Authorization: Bearer<redacted>' -d '{"name":"testORG","email":"<redacted>"}' https://redhatquay.com/api/v1/organization
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>Redirecting...</title>
<h1>Redirecting...</h1>
<p>You should be redirected automatically to target URL: <a href="https://redhatquay.com/api/v1/organization/?{"name":"testORG","email":"<redacted>"}">https://redhatquay.com/api/v1/organization/?{"name":"testORG","email":"<redacted>"}</a>. If not click the lin.
Environment
Red Hat Quay
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.