DevelopmentApi
Create workspace
Creates a workspace inside the organization and provisions the initial workspace admin membership.
Creates a workspace inside the organization and provisions the initial workspace admin membership.
Authorization
patAuth PAT<token>
Personal Access Token
In: header
Path Parameters
orgId*string
Request Body
application/json
name*string
Length
2 <= length <= 128slug*string
Match
^[a-z0-9-]+$Length
2 <= length <= 64privacyMode?string
Value in
"option_1" | "option_2"workspaceAdminUserId?string
[key: string]?never
Response Body
application/json
curl -X POST "https://loading/api/orgs/string/workspaces" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "slug": "string" }'{
"organization": null,
"workspace": {
"$id": "string",
"organizationId": "string",
"name": "string",
"slug": "string",
"privacyMode": "option_1",
"createdByUserId": "string",
"archivedAt": "string"
}
}Empty
Empty