Assign or update user model role
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.
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 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, in which case 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