Assign or update user group model role
Assigns or updates a model role for a user group. If the user group already has a role for the specified model, this endpoint will update it to the new role. All members of the user group will inherit this role.
Model roles control what actions user group members can perform on models and connections. To manage user groups, see the User group APIs.
Authorizations
Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
Path Parameters
The ID of the user group to assign or update a model role for.
Body
The role to assign. Available roles include:
VIEWER- Can view the modelQUERIER- Can view and query the modelQUERY_TOPICS- Can query specific topics. Equivalent to Restricted Querier.MODELER- Can edit and model the dataCONNECTION_ADMIN- Full administrative access to the connectionNO_ACCESS- No access to the model- Custom roles defined for your organization
The ID of the connection that the model belongs to:
- Required if
modelIdis not provided - Optional if
modelIdis provided, as it will be inferred from the model
The ID of the model to assign the role for:
- Optional when assigning
CONNECTION_ADMINor custom roles withCONNECTION_ADMINas the base role - Required for other role types