Skip to main content

EXCHANGE API Reference

Module Information

Service Files:

  • Private: service/mfs.js
  • Public: service/mfs.js

Available Services: 2 Documented Services: 2


exchange.server_export

Initiate a server-side export of MFS nodes to a local filesystem destination. Spawns a detached background process (offline/media/serverexport.js) to perform the export asynchronously. Progress is reported via WebSocket using the provided socket_id. The export processes all nodes in the current request context, building a granted list of hub_id and nid pairs.

PropertyValue
ScopeDomain (requires authentication)
Permissiondelete

Endpoint:

https://hostname/-/svc/exchange.server_export

Parameters

ParameterTypeRequiredDefaultDescription
socket_idstringYes--
destinationstringYes--
transactionidstringYes--

Returns

FieldTypeDescription
typeany-
descriptionany-
propertiesany-

Possible Errors

Error CodeHTTP StatusDescription
MISSING_SOCKET_ID-socket_id is required but was not provided
MISSING_DESTINATION-destination is required but was not provided
MISSING_TRANSACTIONID-transactionid is required but was not provided
INTERNAL_ERROR-Failed to spawn export background process

exchange.server_import

Initiate a server-side import of files from local filesystem paths into an MFS hub. Spawns a detached background process (offline/media/serverimport.js) to perform the import asynchronously. Progress is reported via WebSocket using the provided socket_id. If no recipient hub is specified, defaults to the current user hub.

PropertyValue
ScopeDomain (requires authentication)
Permissiondelete

Endpoint:

https://hostname/-/svc/exchange.server_import

Parameters

ParameterTypeRequiredDefaultDescription
socket_idstringYes--
transactionidstringYes--
source_listarrayNo["/data/sample-1/"]-
pidstringNo"0"-
recipient_idstringNo--

Returns

FieldTypeDescription
typeany-
descriptionany-
propertiesany-

Possible Errors

Error CodeHTTP StatusDescription
MISSING_SOCKET_ID-socket_id is required but was not provided
MISSING_TRANSACTIONID-transactionid is required but was not provided
INTERNAL_ERROR-Failed to spawn import background process

  • ACL System - Permission model
  • Service Routing - URL patterns
  • Error Handling - Error codes