Create a workspace
POST
https://api.vidmoat.com/v1/workspacesCreate a workspace. Pass teamId to make it a shared one.
Body#
namestringrequiredUp to 48 characters.colorstringOne of#FF4D2E,#5AA9FF,#7ED9A6,#FFD447,#A855F7,#FF7A5A,#9EDCC4,#94A3B8. Any other value is stored asnull.iconstringOne emoji (at most two code points). Longer is stored asnull.teamIdstringA team you belong to, for a shared workspace.
Response#
Returns 201.
Response fields#
idstringThe workspace id.namestringIts name.colorstring or nullA hex colour, ornullwhen none is set.iconstring or nullAn emoji, ornull.teamIdstring or nullThe team it belongs to, ornullfor a personal workspace.projectCountintegerProjects filed in it (0 for a new one).
Errors#
Besides the errors any request can get (authentication, rate limits):
| Status | Code | When |
|---|---|---|
| 400 | invalid_request | No name, a team you are not in, or you already have 60 workspaces. |