v1

latestOpenAPI 3.1.02026-07-263971,2281.1 MB
RBACService

UpdateRole

post/textql.rpc.public.rbac.RBACService/UpdateRole

Headers

Connect-Protocol-Version1 required

Define the version of the Connect protocol

Connect-Timeout-Msnumber

Define the timeout, in ms

Request body

roleIdstring
namestring
descriptionstring
defaultModelIdnumber

Wrapper message for int32.

The JSON representation for Int32Value is JSON number.

Not recommended for use in new APIs, but still useful for legacy APIs and has no plan to be removed.

allowedModelIdsinteger[]
allowModelChoiceboolean

Wrapper message for bool.

The JSON representation for BoolValue is JSON true and false.

Not recommended for use in new APIs, but still useful for legacy APIs and has no plan to be removed.

clearAllowedModelIdsboolean

Set to true to clear allowed_model_ids back to "all models allowed". Proto3 cannot distinguish an empty repeated field from an absent one, so this explicit flag is required.

Response

Success

Example response

{
  "role": {
    "createdAt": "2023-01-15T01:30:15.01Z",
    "updatedAt": "2023-01-15T01:30:15.01Z"
  }
}