List Management Term Lists - Update
Uppdateringar en termlista.
PUT {Endpoint}/contentmoderator/lists/v1.0/termlists/{listId}
URI-parametrar
Name | I | Obligatorisk | Typ | Description |
---|---|---|---|---|
Endpoint
|
path | True |
string |
Azure Cognitive Services-slutpunkter som stöds (protokoll och värdnamn, till exempel https://westus.api.cognitive.microsoft.com). |
list
|
path | True |
string |
List-ID för bildlistan. |
Begärandehuvud
Name | Obligatorisk | Typ | Description |
---|---|---|---|
Ocp-Apim-Subscription-Key | True |
string |
|
Content-Type | True |
string |
Innehållstyp. |
Begärandetext
Name | Typ | Description |
---|---|---|
Description |
string |
Beskrivning av listan. |
Metadata |
Metadata för listan. |
|
Name |
string |
Namnet på listan. |
Svar
Name | Typ | Description |
---|---|---|
200 OK |
OK. |
|
Other Status Codes |
Felsvar. |
Säkerhet
Ocp-Apim-Subscription-Key
Typ:
apiKey
I:
header
Exempel
Update Termlist request
Exempelbegäran
PUT {Endpoint}/contentmoderator/lists/v1.0/termlists/89003
{
"Name": "TermList B",
"Description": "List of offensive terms.",
"Metadata": {
"TaggedAs": "Offensive",
"ContentSource": "Content Source A"
}
}
Exempelsvar
{
"Id": 89023,
"Name": "TermList B",
"Description": "List of offensive terms.",
"Metadata": {
"TaggedAs": "Offensive",
"ContentSource": "Content Source A"
}
}
Definitioner
Name | Description |
---|---|
APIError |
Felinformation som API:et returnerar. |
Error |
Feltext. |
Term |
Egenskaper för termlista. |
APIError
Felinformation som API:et returnerar.
Name | Typ | Description |
---|---|---|
Error |
Feltext. |
Error
Feltext.
Name | Typ | Description |
---|---|---|
Code |
string |
|
Message |
string |
TermList
Egenskaper för termlista.
Name | Typ | Description |
---|---|---|
Description |
string |
Beskrivning av termlistan. |
Id |
integer |
Termlist-ID. |
Metadata |
object |
Metadata för termlistan. |
Name |
string |
Namn på termlista. |