Last Updated on : 2026-02-26 09:16:25download
Based on the device ID, update the workflow type of the specified agent role.
PUT: /v1.0/cloud/agent/ai/chat/b/devices/{device_id}/role-workflow
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| device_id | String | path | true | The ID of the specified device. |
Description of body
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| bind_role_type | Integer | body | true | The type of role to bind. Valid values:
role_id has a value, this parameter value must be passed. |
| role_id | String | body | true | The ID of the specified role. |
| workflow | String | body | true | The workflow type. Valid values:
|
| Parameter name | Type | Description |
|---|---|---|
| result | boolean | Indicates whether the operation is successful. |
PUT: /v1.0/cloud/agent/ai/chat/b/devices/{device_id}/role-workflow
{
"device_id": "6c3585ebfe301b40a8u***",
"role_id": "94300***",
"bind_role_type": 1,
"workflow": "asr-llm-tts"
}
{
"tid": "6fa034fc1a6d11f0a8212220de940dcb",
"result": true,
"t": 1744771778112,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback