Menghapus agen dan binding terkaitnya dari PolarClaw tertentu.
Deskripsi operasi
Usage notes
-
A successful operation returns the ID of the deleted agent and the number of removed bindings.
-
Ensure you provide the correct target
AgentId. An incorrect ID can cause the operation to fail or affect an unintended agent.
Coba sekarang
Test
RAM authorization
Sintaks permintaan
POST HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ApplicationId |
string |
Yes |
ID aplikasi. |
pa-************** |
| AgentId |
string |
Yes |
ID agen yang akan dihapus. Parameter ini tidak dapat diatur ke main. |
work |
| DeleteFiles |
boolean |
No |
Apakah akan menghapus direktori kerja dan file sesi. Nilai default: true. |
true |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| RequestId |
string |
The request ID. |
2281C6C9-CBAB-1AFD-8400-670750CF6025_2212 |
| Message |
string |
The response message. |
successful |
| Code |
integer |
The status code. |
200 |
| ApplicationId |
string |
The application ID. |
pa-************** |
| AgentId |
string |
The ID of the deleted agent. |
work |
| RemovedBindings |
integer |
The number of automatically removed bindings. |
1 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "2281C6C9-CBAB-1AFD-8400-670750CF6025_2212",
"Message": "successful",
"Code": 200,
"ApplicationId": "pa-**************",
"AgentId": "work",
"RemovedBindings": 1
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.