Skip to main content
PUT
Update data source access

Authorizations

Authorization
string
header
required

API key authentication using Bearer token format: Bearer <basedash_api_key>

Path Parameters

orgId
string
required

Organization ID

id
string
required

Data source ID

Body

application/json
mode
enum<string>
required
Available options:
everyone
accessLevel
enum<string>
default:VIEW

Whether the principal can view or edit the data source

Available options:
VIEW,
EDIT
groupIds
string[]

Deprecated. Organization group IDs granted view access. Use groupAccess to set view or edit access.

memberIds
string[]

Deprecated. Organization member IDs granted view access. Use memberAccess to set view or edit access.

groupAccess
object[]

Organization groups with view or edit access

memberAccess
object[]

Organization members with view or edit access

objects
object[]

Schema, table, and column rules. Omit to leave existing object rules unchanged. The complete set of schema, table, and column rules for the data source (at most 5000 rules in total): objects not listed lose all of their rules, and an empty array removes every object rule.

Maximum array length: 1000

Response

Data source access updated successfully

data
object
required