List Management Term Lists - Create
Vytvoří seznam termínů.
POST {Endpoint}/contentmoderator/lists/v1.0/termlists
Parametry identifikátoru URI
Name | V | Vyžadováno | Typ | Description |
---|---|---|---|---|
Endpoint
|
path | True |
string |
Podporované koncové body služeb Azure Cognitive Services (protokol a název hostitele, například https://westus.api.cognitive.microsoft.com). |
Hlavička požadavku
Name | Vyžadováno | Typ | Description |
---|---|---|---|
Ocp-Apim-Subscription-Key | True |
string |
|
Content-Type | True |
string |
Typ obsahu. |
Text požadavku
Name | Typ | Description |
---|---|---|
Description |
string |
Popis seznamu. |
Metadata |
Metadata seznamu. |
|
Name |
string |
Název seznamu. |
Odpovědi
Name | Typ | Description |
---|---|---|
200 OK |
OK. |
|
Other Status Codes |
Odpověď na chybu. |
Zabezpečení
Ocp-Apim-Subscription-Key
Type:
apiKey
In:
header
Příklady
Create Termlist request
Sample Request
POST {Endpoint}/contentmoderator/lists/v1.0/termlists
{
"Name": "TermList B",
"Description": "List of racy terms.",
"Metadata": {
"TaggedAs": "Racy",
"ContentSource": "Content Source A"
}
}
Sample Response
{
"Id": 89023,
"Name": "TermList B",
"Description": "List of racy terms.",
"Metadata": {
"TaggedAs": "Racy",
"ContentSource": "Content Source A"
}
}
Definice
Name | Description |
---|---|
APIError |
Informace o chybě, které rozhraní API vrací. |
Error |
Text chyby. |
Term |
Vlastnosti seznamu termínů. |
APIError
Informace o chybě, které rozhraní API vrací.
Name | Typ | Description |
---|---|---|
Error |
Text chyby. |
Error
Text chyby.
Name | Typ | Description |
---|---|---|
Code |
string |
|
Message |
string |
TermList
Vlastnosti seznamu termínů.
Name | Typ | Description |
---|---|---|
Description |
string |
Popis seznamu termínů. |
Id |
integer |
ID seznamu termínů. |
Metadata |
object |
Metadata seznamu termínů. |
Name |
string |
Název seznamu termínů. |