Skip to main content

Set sharing rule for a collection

PUT 

/maus/user-geojson/:geojsonId/sharing

Creates or replaces the sharing rule for a collection. Owner-only.

shareTypeEffect
'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.

Required permissions: CROWS_NEST_BASE_USER

Request​

Responses​

Sharing rule updated. Returns the new sharing state.