API call tries to redirect when creating a new Organization in Quay

Solution Verified - Updated -

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/?{&quot;name&quot;:&quot;testORG&quot;,&quot;email&quot;:&quot;<redacted>&quot;}">https://redhatquay.com/api/v1/organization/?{&quot;name&quot;:&quot;testORG&quot;,&quot;email&quot;:&quot;<redacted>&quot;}</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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content