List Management Term Lists - Create

Skapar en termlista.

POST {Endpoint}/contentmoderator/lists/v1.0/termlists

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).

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

TermList

OK.

Other Status Codes

APIError

Felsvar.

Säkerhet

Ocp-Apim-Subscription-Key

Type: apiKey
In: header

Exempel

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"
  }
}

Definitioner

Name Description
APIError

Felinformation som API:et returnerar.

Error

Feltext.

TermList

Egenskaper för termlista.

APIError

Felinformation som API:et returnerar.

Name Typ Description
Error

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.