Skip to content

Commit 4b3fbd5

Browse files
v1.2.635
[Bot] push changes from Files.com
1 parent b1bc831 commit 4b3fbd5

5 files changed

Lines changed: 37 additions & 4 deletions

File tree

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,39 @@ For example, the following two paths are treated as equivalent after NFC normali
503503

504504
<div></div>
505505

506+
## Workspaces
507+
508+
A Workspace is a lightweight way to organize related resources inside a single Files.com Site.
509+
510+
Customers commonly group resources by project, department, client, or region. Workspaces provide a built-in structure for that grouping, so the UI can operate within a clear "workspace context" and admins can delegate management for a subset of resources without requiring full site-level isolation.
511+
512+
Every Site has an implicit Default workspace (ID `0`). Resources that are not explicitly assigned to a named workspace are considered part of the Default workspace.
513+
<div></div>
514+
515+
### SDK Support
516+
517+
We are still in the process of adding Workspaces support to each SDK. If you require Workspaces support right now, you need to use the REST API.
518+
<div></div>
519+
520+
### Using Workspaces with the REST API
521+
522+
To use Workspaces with the REST API, send the following request header:
523+
524+
```http
525+
X-Files-Workspace-Id: <workspace_id>
526+
```
527+
528+
This changes path mapping and "what you're looking at."
529+
530+
When the `X-Files-Workspace-Id` header is provided:
531+
532+
- List, show, update, and delete operations are constrained to that workspace for workspace-scoped models.
533+
- Create operations default `workspace_id` to the scoped workspace when not explicitly provided.
534+
- Attempts to provide a mismatching `workspace_id` are rejected with `not-authorized/insufficient-permission-for-params`.
535+
536+
This header only works for sitewide keys, or keys related to users with permissions to more than one workspace.
537+
<div></div>
538+
506539
## Foreign Language Support
507540

508541
The Files.com Javascript SDK supports localized responses by using the `Files.setLanguage()` configuration method.

_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.634
1+
1.2.635

lib/Files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var apiKey;
1212
var baseUrl = 'https://app.files.com';
1313
var sessionId = null;
1414
var language = null;
15-
var version = '1.2.634';
15+
var version = '1.2.635';
1616
var userAgent = "Files.com JavaScript SDK v".concat(version);
1717
var logLevel = _Logger.LogLevel.INFO;
1818
var debugRequest = false;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "files.com",
3-
"version": "1.2.634",
3+
"version": "1.2.635",
44
"description": "Files.com SDK for JavaScript",
55
"keywords": [
66
"files.com",

src/Files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ let apiKey
66
let baseUrl = 'https://app.files.com'
77
let sessionId = null
88
let language = null
9-
const version = '1.2.634'
9+
const version = '1.2.635'
1010
let userAgent = `Files.com JavaScript SDK v${version}`
1111

1212
let logLevel = LogLevel.INFO

0 commit comments

Comments
 (0)