Set sharing rule for a collection
PUT/maus/user-geojson/:geojsonId/sharing
Creates or replaces the sharing rule for a collection. Owner-only.
shareType | Effect |
|---|---|
'all' | Shared with every active user who has access to the collection's customer. sharedEmails is ignored. |
'specific' | Shared only with the email addresses listed in sharedEmails. The list must be non-empty. |
'none' | Removes any existing sharing rule. The collection becomes private. sharedEmails is ignored. |
Calling this endpoint replaces any existing sharing rule atomically.
Request
Responses
- 200
- 400
- 401
- 403
- 404
Sharing rule updated. Returns the new sharing state.
Bad request – invalid shareType or sharedEmails not provided/non-empty when required.
Unauthorized – missing or invalid JWT.
Forbidden – caller does not own the collection.
Collection not found.