Skip to main content
POST
/
v1
/
workspaces
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
}
const { setToken, Workspaces } = require('@evecloud/sdk');

setToken('TOKEN');

Workspaces.create('NAME').then(response => {
    console.log(response);
}).catch((error) => {
    console.log(error);
});

Authorizations

Authorization
string
header
required

Default authentication mechanism

Body

application/json
name
string
required

The name of the workspace.

Required string length: 4 - 32
Example:

"My Workspace"

slug
string

The unique slug of the workspace. if not provided, it will be generated from the name.

Required string length: 4 - 32
Example:

"my-workspace"

Response

Successful request.

data
object
required
success
boolean
default:true
required

Whether the API call was successful

I