POST
/
v1
/
workspaces
Authorization
Body
const { setToken, Workspaces } = require('@evecloud/sdk');

setToken('TOKEN');

Workspaces.create('NAME').then(response => {
    console.log(response);
}).catch((error) => {
    console.log(error);
});
{
  "data": {
    "id": "67f26fa2",
    "url": "https://checkout.stripe.com/c/pay/cs_test_c1OkDk0Nd079jYXSMik1RTp2pAKdXfZZe7haso2cOhh3KmTHGWxdsjmXNx#fidkdWxOYHwnPyd1blpxYHZxWjA0T0dvMmtHYDBObHJGVjNgSkFNMU0zVkxcQjdjRDxdcjZKam9%2FblVUZmtgTDZicVVHU29%2FV3NmX112TlNhRl9cZ1xLSDI3Y25NPE0xT0hIb3x9fG9kdUJRNTViXUxHMmYwYCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
  },
  "message": "Workspace created successfully."
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string

The workspace name.

Response

200 - application/json
data
object
message
string

The success message.