{ "opencollection": "1.0.0", "info": { "name": "WD My Cloud Home Authentication Files API", "version": "v2" }, "items": [ { "info": { "name": "Files", "type": "folder" }, "items": [ { "info": { "name": "List Files", "type": "http" }, "http": { "method": "GET", "url": "https://config.mycloud.com/sdk/v2/files", "params": [ { "name": "ids", "value": "", "type": "query", "description": "Comma-separated list of file IDs to retrieve." }, { "name": "pageToken", "value": "", "type": "query", "description": "Token for pagination to retrieve the next page." }, { "name": "limit", "value": "", "type": "query", "description": "Maximum number of results to return." } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Returns a paginated list of files and folders within a directory on the My Cloud Home device. Use \"root\" as the folder ID to list the root directory." }, { "info": { "name": "Create File", "type": "http" }, "http": { "method": "POST", "url": "https://config.mycloud.com/sdk/v2/files", "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Uploads a new file or creates a folder on the My Cloud Home device. Supports multipart/related for simultaneous metadata and content upload." }, { "info": { "name": "Get File", "type": "http" }, "http": { "method": "GET", "url": "https://config.mycloud.com/sdk/v2/files/:fileId", "params": [ { "name": "fileId", "value": "", "type": "path", "description": "Unique identifier of the file or folder." } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Returns metadata for a specific file or folder." }, { "info": { "name": "Update File", "type": "http" }, "http": { "method": "PATCH", "url": "https://config.mycloud.com/sdk/v2/files/:fileId", "params": [ { "name": "fileId", "value": "", "type": "path", "description": "Unique identifier of the file or folder." } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Updates metadata for a file or folder (e.g., rename, move)." }, { "info": { "name": "Delete File", "type": "http" }, "http": { "method": "DELETE", "url": "https://config.mycloud.com/sdk/v2/files/:fileId", "params": [ { "name": "fileId", "value": "", "type": "path", "description": "Unique identifier of the file or folder." } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Permanently deletes a file or folder from the device." }, { "info": { "name": "Download File Content", "type": "http" }, "http": { "method": "GET", "url": "https://config.mycloud.com/sdk/v2/files/:fileId/content", "params": [ { "name": "fileId", "value": "", "type": "path", "description": "Unique identifier of the file." } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Downloads the content of a specific file." }, { "info": { "name": "Upload File Content", "type": "http" }, "http": { "method": "PUT", "url": "https://config.mycloud.com/sdk/v2/files/:fileId/content", "params": [ { "name": "fileId", "value": "", "type": "path", "description": "Unique identifier of the file." } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Uploads or replaces the content of an existing file." } ] } ], "bundled": true }