REST API to create workspace
Hi,
Can I use the REST API to create workspace and add access rights for user ?
Thanks in advance
0 votes
1 answers
4780 views
Hi,
A Workspace is a document. It is a document whose type is “Workspace”.
You can create a workspace with a call such as:
POST http://localhost:8080/nuxeo/site/api/v1/path/default-domain/workspaces
Headers:
Authorization: Basic QWRtaW5pc3RyYXRvcjpBZG1pbmlzdHJhdG9y==
Content-Type: application/json
Body:
{“entity-type”: “document”,“name”:“The-New-Workspace”,“type”: “Workspace”,“properties”: {“dc:title”:“The New Workspace”}}