Create a workspace
workspace_admin.create(**kwargs) -> Workspace { metadata, spec, status }
POST/v1/account/workspaces
Create a workspace
require "cadenya"
cadenya = Cadenya::Client.new(api_key: "My API Key")
workspace = cadenya.workspace_admin.create(metadata: {name: "name"}, spec: {})
puts(workspace){
"metadata": {
"id": "id",
"accountId": "accountId",
"name": "name",
"profileId": "profileId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"description": "description"
},
"status": "STATUS_ENABLED"
}Returns Examples
{
"metadata": {
"id": "id",
"accountId": "accountId",
"name": "name",
"profileId": "profileId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"description": "description"
},
"status": "STATUS_ENABLED"
}