Set a user's service role
The role on the service is the higher of the default role of the user and the grant. The change applies to the open sessions of the user at once.
PUT
/api/v1/users/{id}/service-grants/{service_id}Authorization
tse_sessionAPI key · cookierequiredPath parameters
idstringrequiredservice_idstringrequiredRequest body
requiredapplication/jsonrolestringviewer or operator
Responses
200
OK
created_atstring<date-time>requiredcreated_bystringrequiredThe admin who gave the grant, as the audit log shows it
rolestringrequiredAllowed:
vieweroperatorservice_idstringrequiredservice_namestringrequireddefault
Error
codestringStable code of the refusal, when the route has codes
detailsstring[]Additional detail, e.g. per-field validation failures
errorstringrequiredHuman-readable error message