Return "short" workspace ID in API
complete
Eugene Marcotte
When you generate the postgres database URL it takes a shortened version of the workspace ID that doesn't appear in the workspace API JSON response:
Eg my workspace returns:
{
"workspaces": [
{
"id": "Eugene-Marcotte-s-workspace-dumj43",
"slug": "Eugene-Marcotte-s-workspace",
"name": "Eugene Marcotte's workspace",
"role": "owner",
"plan": "free"
}
]
}
but postgres wants
dumj43
. I'm slightly reluctant to parse ID's cause that seems a little sus :)Kostas Botsas
complete
The unique_id field is now returned from the Workspace API. It can be used as the postgres connection username.
Kostas Botsas
in progress
Kostas Botsas
Eugene Marcotte That's a great suggestion. The unique id postfix, which is the Postgres username, will be added to the workspaces API soon.