const { setToken, Workspaces } = require('@evecloud/sdk'); setToken('TOKEN'); Workspaces.create('NAME').then(response => { console.log(response); }).catch((error) => { console.log(error); });
{ "data": { "name": "My Workspace", "slug": "my-workspace" }, "success": true }
Creates a new workspace
Default authentication mechanism
The name of the workspace.
4 - 32
"My Workspace"
The unique slug of the workspace. if not provided, it will be generated from the name.
"my-workspace"
Successful request.
Hide child attributes
The unique slug of the workspace.
Whether the API call was successful
Was this page helpful?