POST
/
workspaces
curl --request POST \
  --url https://global.thenile.dev/workspaces \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: */*' \
  --data '{
  "name": "<string>"
}'
{
  "id": "<string>",
  "name": "<string>",
  "slug": "<string>",
  "stripe_customer_id": "<string>",
  "created": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

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

Body

*/*
The name of the new workspace

Parameters for creating a new workspace.

name
string
required

The name of the new workspace.

Response

201
application/json
Created workspace
name
string
required
slug
string
required
id
string
stripe_customer_id
string
created
string

Was this page helpful?