cancel
Showing results for 
Search instead for 
Did you mean: 

REST API to create workspace

plmged_
Champ on-the-rise
Champ on-the-rise

Hi,

Can I use the REST API to create workspace and add access rights for user ?

Thanks in advance

1 ACCEPTED ANSWER

Lynn_
Champ on-the-rise
Champ on-the-rise

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"}}

View answer in original post

2 REPLIES 2

Lynn_
Champ on-the-rise
Champ on-the-rise

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"}}

plmged_
Champ on-the-rise
Champ on-the-rise

Thank you,

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.