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

listId
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

TermList

OK.

Other Status Codes

APIError

Felsvar.

Säkerhet

Ocp-Apim-Subscription-Key

Type: apiKey
In: header

Exempel

Update Termlist request

Sample Request

PUT {Endpoint}/contentmoderator/lists/v1.0/termlists/89003



{
  "Name": "TermList B",
  "Description": "List of offensive terms.",
  "Metadata": {
    "TaggedAs": "Offensive",
    "ContentSource": "Content Source A"
  }
}

Sample Response

{
  "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.

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.