Create workspace
Creates a new workspace and returns its credentials. Workspaces provide a playground for your data. You can load data from your storage, explore or modify it and then, optionally, load it back to storage tables. A workspace is represented by access credentials to a storage backend with permissions to write to the workspace specific database schema.
Set async=true to create the workspace in a background job. Calling the endpoint with async=false is deprecated.
To create a workspace bound to a component configuration (including a reader workspace), use the /components/{componentId}/configs/{configurationId}/workspaces variant of this endpoint.
All workspaces endpoints can be used with default for the branchId parameter, which emulates the call without a development branch: GET /v2/storage/workspaces is the same as GET /v2/storage/branch/default/workspaces.
Request
- Base URLhttps://connection.keboola.com
- Auth
- API key in header X-StorageApi-Token
- or API key in header X-KBC-ManageApiToken
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Component identifier. Only for the configuration workspace variant of the endpoint.
Configuration identifier. Only for the configuration workspace variant of the endpoint.
Query parameters
Create workspace in a background job. Calling the parameter as async=false is deprecated.
Headers
Request body
Response
Synchronous call response (async=false). The password (or key/connection string) is returned only here and cannot be retrieved later.
Example response
{
"created": "2017-02-13T12:01:05+0100",
"connection": {
"credentials": {
"type": "service_account"
}
},
"lastActivityAt": "2017-02-13T12:01:05+0100",
"warnAt": "2017-02-13T12:01:05+0100",
"deactivateAt": "2017-02-13T12:01:05+0100",
"deleteAt": "2017-02-13T12:01:05+0100"
}Changes
No recorded changes to this operation across all 1 revision of this API.