API documentation for LegalOn services
/
Get workspace/folder
LegalOn API (1.0.0)
Languages
Servers
The server URL is `{api_base_url}/rest/v1`.
You can construct the server URL using the value of `api_base_url` provided in the response when obtaining an access token.
https://{api_base_url_without_scheme}/rest/v1
- The server URL is `{api_base_url}/rest/v1`.
You can construct the server URL using the value of `api_base_url` provided in the response when obtaining an access token.
https://{api_base_url_without_scheme}/rest/v1/spaces
- cURL
- JavaScript
- Python
- Java
- Go
curl -i -X POST \
'https://{api_base_url_without_scheme}/rest/v1/spaces' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"parent_space_id": "8ef2f869-ead8-4248-b1b3-7fae1b7be5d7",
"display_name": "string",
"description": "string"
}'Response
application/json
{ "space_id": "76088fa5-1ce5-3ca9-303a-8466c48581ba", "display_name": "Legal Department Space", "description": "Contract Review Space" }
- The server URL is `{api_base_url}/rest/v1`.
You can construct the server URL using the value of `api_base_url` provided in the response when obtaining an access token.
https://{api_base_url_without_scheme}/rest/v1/spaces/{space_id}
- cURL
- JavaScript
- Python
- Java
- Go
curl -i -X GET \
'https://{api_base_url_without_scheme}/rest/v1/spaces/{space_id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "space_id": "76088fa5-1ce5-3ca9-303a-8466c48581ba", "display_name": "Legal Department Space", "description": "Contract Review Space" }
- The server URL is `{api_base_url}/rest/v1`.
You can construct the server URL using the value of `api_base_url` provided in the response when obtaining an access token.
https://{api_base_url_without_scheme}/rest/v1/spaces/{space_id}
- cURL
- JavaScript
- Python
- Java
- Go
curl -i -X PATCH \
'https://{api_base_url_without_scheme}/rest/v1/spaces/{space_id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"display_name": "string",
"description": "string"
}'Response
application/json
{ "space_id": "76088fa5-1ce5-3ca9-303a-8466c48581ba", "display_name": "Legal Department Space", "description": "Contract Review Space" }