List Management Image - Add Image File Input
將影像新增至 listId 等於所傳遞清單識別碼的清單。
POST {Endpoint}/contentmoderator/lists/v1.0/imagelists/{listId}/images
POST {Endpoint}/contentmoderator/lists/v1.0/imagelists/{listId}/images?overload=stream&tag={tag}&label={label}
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
Endpoint
|
path | True |
string |
支援的 Azure 認知服務端點(通訊協定和主機名,例如 https://westus.api.cognitive.microsoft.com)。 |
list
|
path | True |
string |
映射清單的清單標識碼。 |
label
|
query |
string |
影像標籤。 |
|
tag
|
query |
integer |
影像的標記。 |
要求標頭
Media Types: "image/gif", "image/jpeg", "image/png", "image/bmp", "image/tiff"
名稱 | 必要 | 類型 | Description |
---|---|---|---|
Ocp-Apim-Subscription-Key | True |
string |
要求本文
Media Types: "image/gif", "image/jpeg", "image/png", "image/bmp", "image/tiff"
名稱 | 類型 | Description |
---|---|---|
ImageStream |
object (file) |
圖像檔。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
還行。 |
|
Other Status Codes |
錯誤回應。 |
安全性
Ocp-Apim-Subscription-Key
類型:
apiKey
位於:
header
定義
名稱 | Description |
---|---|
Additional |
進階資訊清單。 |
APIError |
API 傳回的錯誤資訊。 |
Error |
錯誤本文。 |
Image |
影像屬性。 |
Status |
狀態屬性。 |
AdditionalInfo
進階資訊清單。
名稱 | 類型 | Description |
---|---|---|
Key |
string |
索引鍵參數。 |
Value |
string |
Value 參數。 |
APIError
API 傳回的錯誤資訊。
名稱 | 類型 | Description |
---|---|---|
Error |
錯誤本文。 |
Error
錯誤本文。
名稱 | 類型 | Description |
---|---|---|
Code |
string |
|
Message |
string |
Image
影像屬性。
名稱 | 類型 | Description |
---|---|---|
AdditionalInfo |
進階資訊清單。 |
|
ContentId |
string |
內容標識碼。 |
Status |
狀態詳細數據。 |
|
TrackingId |
string |
追蹤標識碼。 |
Status
狀態屬性。
名稱 | 類型 | Description |
---|---|---|
Code |
integer |
狀態代碼。 |
Description |
string |
狀態描述。 |
Exception |
string |
例外狀況狀態。 |