Skip to content

Function: setDefaultShareScope() ​

ts
function setDefaultShareScope(
   client, 
   parameters, 
   options?
): Promise<{
[key: string]: unknown;
  scope?: string & object | "GLOBAL" | "AUTHENTICATED" | "PRIVATE";
}>;

Defined in: src/server/api/filters.ts:73

Sets the default share scope of the logged-in user. Available values are: AUTHENTICATED (for sharing with all logged-in users) and PRIVATE (for no shares).

Parameters ​

ParameterType
clientClient
parameters{ scope?: string & object | "GLOBAL" | "AUTHENTICATED" | "PRIVATE"; }
parameters.scope?string & object | "GLOBAL" | "AUTHENTICATED" | "PRIVATE"
options?RequestOptions

Returns ​

Promise<{ [key: string]: unknown; scope?: string & object | "GLOBAL" | "AUTHENTICATED" | "PRIVATE"; }>