Skip to main content
POST
Python (SDK)

Authorizations

tql_api_key
string
header
required

Headers

Connect-Protocol-Version
enum<number>
default:1
required

Define the version of the Connect protocol

Available options:
1
Connect-Timeout-Ms
number

Define the timeout, in ms

Body

application/json
roleId
string
name
string
description
string
defaultModelId
number | null

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.

allowedModelIds
integer<int32>[]
allowModelChoice
boolean

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.

clearAllowedModelIds
boolean

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

role
role · object