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.
Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
The ID of the user group to assign or update a model role for.
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 modelThe ID of the connection that the model belongs to:
modelId is not providedmodelId is provided, as it will be inferred from the modelThe ID of the model to assign the role for:
CONNECTION_ADMIN or custom roles with CONNECTION_ADMIN as the base role