Update Workspace
const url = 'https://enclave.subnoto.com/public/workspace/update';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"workspaceUuid":"example","sandbox":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://enclave.subnoto.com/public/workspace/update \ --header 'Content-Type: application/json' \ --data '{ "workspaceUuid": "example", "sandbox": true }'Update a workspace’s sandbox flag. Sandbox mode is settable only via the public API: when enabled, envelopes sent from this workspace do not consume credits, do not send invitation emails, and do not produce real signatures.
Request Body required
Section titled “Request Body required ”object
The UUID of the workspace to update.
If true, envelopes sent from this workspace simulate sending (no credits, no emails, no real signature). If false, sandbox mode is disabled.
Example generated
{ "workspaceUuid": "example", "sandbox": true}Responses
Section titled “ Responses ”Default Response
object
object
The unique identifier of the workspace.
The name of the workspace.
The date and time the workspace was created (unix timestamp).
The date and time the workspace was last updated (unix timestamp).
Indicates whether this workspace is the default workspace for the users of the team.
The color of the workspace in hexadecimal format.
Whether this workspace is in sandbox mode.
Example generated
{ "workspace": { "uuid": "example", "name": "example", "creationDate": 1, "updateDate": 1, "isDefault": true, "colorHex": "example", "sandbox": true }}Default Response
object
HTTP status code
object
The error code
The error message
A suggestion to resolve the error
A URL to the documentation
Optional validation details (e.g. for INVALID_REQUEST_FORMAT)
Single validation issue (e.g. from request body schema)
object
JSON path to the invalid field
Validation error message for this field
The unique identifier of the request
The timestamp of the response
The path of the request
Example
{ "error": { "code": "WORKSPACE_NOT_FOUND" }}Default Response
object
HTTP status code
object
The error code
The error message
A suggestion to resolve the error
A URL to the documentation
Optional validation details (e.g. for INVALID_REQUEST_FORMAT)
Single validation issue (e.g. from request body schema)
object
JSON path to the invalid field
Validation error message for this field
The unique identifier of the request
The timestamp of the response
The path of the request
Example
{ "error": { "code": "AUTHENTICATION_ERROR" }}Default Response
object
HTTP status code
object
The error code
The error message
A suggestion to resolve the error
A URL to the documentation
Optional validation details (e.g. for INVALID_REQUEST_FORMAT)
Single validation issue (e.g. from request body schema)
object
JSON path to the invalid field
Validation error message for this field
The unique identifier of the request
The timestamp of the response
The path of the request
Example
{ "error": { "code": "AUTHORIZATION_ERROR" }}Default Response
object
HTTP status code
object
The error code
The error message
A suggestion to resolve the error
A URL to the documentation
Optional validation details (e.g. for INVALID_REQUEST_FORMAT)
Single validation issue (e.g. from request body schema)
object
JSON path to the invalid field
Validation error message for this field
The unique identifier of the request
The timestamp of the response
The path of the request
Example
{ "error": { "code": "INTERNAL_SERVER_ERROR" }}