Assigns or updates a model role for a user. If the user already has a role for the specified model, this endpoint will update it to the new role.
Model roles control what actions a user can perform on models and connections. To manage users, see the User 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 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, in which case 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