Membuat saluran di PolarClaw.
Deskripsi operasi
Request
Coba sekarang
Test
RAM authorization
Sintaks permintaan
POST HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ApplicationId |
string |
Yes |
ID aplikasi. |
pa-************** |
| ChannelId |
string |
Yes |
Pengidentifikasi unik saluran. |
feishu |
| PluginId |
string |
Yes |
Nama plugin saluran. |
openclaw-lark |
| NpmPackage |
string |
Yes |
Nama dan versi Paket NPM untuk plugin saluran. |
@larksuite/openclaw-lark@2026.4.7 |
| ChannelConfig |
object |
No |
Konfigurasi saluran. |
{ "enabled": true, "dmPolicy": "open", "allowFrom": [ "*" ] } |
| Restart |
boolean |
No |
Apakah akan memulai ulang gerbang setelah saluran dibuat. Nilai default: true. |
true |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| RequestId |
string |
The request ID. |
2281C6C9-CBAB-1AFD-8400-670750CF6025_2212 |
| Message |
string |
The response message. |
successful |
| Code |
integer |
The response status code. |
200 |
| ApplicationId |
string |
The application ID. |
pa-************** |
| Ok |
boolean |
Indicates whether the operation was successful. |
true |
| ChannelId |
string |
The ID of the channel that was created. |
feishu |
| PluginInstalled |
boolean |
Indicates whether a new plugin was installed. |
true |
| PluginId |
string |
The plugin ID. |
openclaw-lark |
| NpmPackage |
string |
The name of the installed npm package. |
@larksuite/openclaw-lark@2026.4.7 |
| Restarted |
boolean |
Indicates whether the gateway was restarted. |
true |
Contoh
Respons sukses
JSONformat
{
"RequestId": "2281C6C9-CBAB-1AFD-8400-670750CF6025_2212",
"Message": "successful",
"Code": 200,
"ApplicationId": "pa-**************",
"Ok": true,
"ChannelId": "feishu",
"PluginInstalled": true,
"PluginId": "openclaw-lark",
"NpmPackage": "@larksuite/openclaw-lark@2026.4.7",
"Restarted": true
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.