Issue with workspace creation API endpoint

Summary

When invoking the workspace creation API endpoint, receiving an error ‘Workspace missing org ID’ even though the org ID should be inferred. The org ID received in the response is the default ID, which is not acceptable for the POST API.


Question

Hi team, I have one question ( redirected here after I didn’t get answer from the http://Kapa.ai|Kapa.ai.
Here is the context, I am invoking workspace created endpoint as POST http://localhost:8006/v1/workspaces with token (basic auth)

Request Payload:

    "name": "Data"
}```
API Response
```{
    "detail": "Workspace missing org ID.",
    "type": "<https://reference.airbyte.com/reference/errors#unprocessable-entity>",
    "title": "unprocessable-entity",
    "status": 422
}```
As per the <https://reference.airbyte.com/reference/createworkspace|documentation>, the org. id should be inferred since I have only 1 org but it’s not working as expected. Additionally, the org. id I am getting in the response based on the default workspace is the default Id which is something not acceptable by the POST API.

Can someone from the team help me to identify the issue or the missing piece here ?
Appreciate your help :thanku:
cc <@U07767VHHK5>

<br>

---

This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. [Click here](https://airbytehq.slack.com/archives/C021JANJ6TY/p1717809510883709) if you want 
to access the original thread.

[Join the conversation on Slack](https://slack.airbyte.com)

<sub>
["workspace-creation", "api-endpoint", "org-id", "error", "missing-piece"]
</sub>

FWIW, Airbyte is self hosted by following these https://docs.airbyte.com/deploying-airbyte/on-aws-ec2|instructions

Updates:
I was able to create the workspace using the API: http://localhost:8000/api/v1/workspaces/create with the same request payload.

:shrug: Not sure why I am not able to do via POST http://localhost:8006/v1/workspaces where the Airbyte API is exposed

Thanks <@U05CXP45USF> for posting the link https://airbytehq.slack.com/archives/C021JANJ6TY/p1709886524048959?thread_ts=1708449261.130219&cid=C021JANJ6TY|here.