Valyourise Logo

ValYouRise

DevelopmentApi

Create workspace

Creates a workspace inside the organization and provisions the initial workspace admin membership.

POST
/api/orgs/{orgId}/workspaces

Creates a workspace inside the organization and provisions the initial workspace admin membership.

PAT<token>

Personal Access Token

In: header

Path Parameters

orgId*string

Request Body

application/json

name*string
Length2 <= length <= 128
slug*string
Match^[a-z0-9-]+$
Length2 <= length <= 64
privacyMode?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