Catatan
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba masuk atau mengubah direktori.
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba mengubah direktori.
Membuat skema dalam grup skema.
Permohonan
| Metode | Memohon URI |
|---|---|
| TEMPATKAN | https://{eventhubNamespace}.servicebus.windows.net/$schemagroups/{schemaGroup}/schemas/{schemaName} |
Tajuk permintaan
Atur content-type ke salah satu nilai berikut:
application/json;serialization=Avroapplication/json;serialization=Jsontext/vnd.ms.protobuf
application/json. Atur header otorisasi seperti yang ditunjukkan dalam artikel Dapatkan token Microsoft Entra .
Isi dari permintaan
{
{Schema Body}
}
Jawaban
Respons mencakup kode status HTTP, sekumpulan header respons, dan isi respons.
Kode Respons
| Kode | Deskripsi |
|---|---|
| 204 | Keberhasilan |
| 401 | Kegagalan otorisasi |
| 500 | Kesalahan internal. |
Badan Respons
Jika permintaan berhasil, isi respons kosong. Jika permintaan tidak berhasil, isi berisi kode kesalahan dan pesan kesalahan.
Contoh respons yang berhasil
{
}
Contoh untuk respons kegagalan 401
{
"error": {
"code": "ErrorInRequest",
"message": "Generic:.TrackingId:fe0fc29b-a960-4734-9044-c9ab991329ef_G0,SystemTracker: {eventhubNamespace}.servicebus.windows.net:$schemagroups,Timestamp:{timestamp}"
}
}
Contoh untuk respons kegagalan 500
{
"error": {
"code": "InternalServerError",
"message": "TrackingId:df04a6d0-8cb8-49ea-95ce-1765429b7d04_G0,SystemTracker: {eventhubNamespace}.servicebus.windows.net:$schemagroups,Timestamp:{timestamp}"
}
}