List Management Term Lists - Create
Crea un elenco di termini.
POST {Endpoint}/contentmoderator/lists/v1.0/termlists
Parametri dell'URI
Nome | In | Necessario | Tipo | Descrizione |
---|---|---|---|---|
Endpoint
|
path | True |
string |
Endpoint di Servizi cognitivi di Azure supportati (protocollo e nome host, ad esempio https://westus.api.cognitive.microsoft.com). |
Intestazione della richiesta
Nome | Necessario | Tipo | Descrizione |
---|---|---|---|
Ocp-Apim-Subscription-Key | True |
string |
|
Content-Type | True |
string |
Tipo di contenuto. |
Corpo della richiesta
Nome | Tipo | Descrizione |
---|---|---|
Description |
string |
Descrizione dell'elenco. |
Metadata |
Metadati dell'elenco. |
|
Name |
string |
Nome dell'elenco. |
Risposte
Nome | Tipo | Descrizione |
---|---|---|
200 OK |
OK. |
|
Other Status Codes |
Risposta di errore. |
Sicurezza
Ocp-Apim-Subscription-Key
Type:
apiKey
In:
header
Esempio
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"
}
}
Definizioni
Nome | Descrizione |
---|---|
APIError |
Informazioni sull'errore restituite dall'API. |
Error |
Corpo degli errori. |
Term |
Proprietà elenco termini. |
APIError
Informazioni sull'errore restituite dall'API.
Nome | Tipo | Descrizione |
---|---|---|
Error |
Corpo degli errori. |
Error
Corpo degli errori.
Nome | Tipo | Descrizione |
---|---|---|
Code |
string |
|
Message |
string |
TermList
Proprietà elenco termini.
Nome | Tipo | Descrizione |
---|---|---|
Description |
string |
Descrizione per l'elenco dei termini. |
Id |
integer |
ID elenco termini. |
Metadata |
object |
Metadati dell'elenco termini. |
Name |
string |
Nome elenco termini. |