List Management Image Lists - Create

Creates an image list.

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

URI Parameters

Name In Required Type Description
Endpoint
path True

string

Supported Azure Cognitive Services endpoints (protocol and host name, such as https://westus.api.cognitive.microsoft.com).

Request Header

Name Required Type Description
Ocp-Apim-Subscription-Key True

string

Content-Type True

string

Content type.

Request Body

Name Type Description
Description

string

Description of the list.

Metadata

Metadata of the list.

Name

string

Name of the list.

Responses

Name Type Description
200 OK

ImageList

OK.

Other Status Codes

APIError

Error response.

Security

Ocp-Apim-Subscription-Key

Type: apiKey
In: header

Examples

Create Imagelist request

Sample request

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



{
  "Name": "ImageList B",
  "Description": "List of images with racy content",
  "Metadata": {
    "TaggedAs": "Racy",
    "ContentSource": "Content Source A"
  }
}

Sample response

{
  "Id": 89023,
  "Name": "ImageList B",
  "Description": "List of images with racy content",
  "Metadata": {
    "TaggedAs": "Racy",
    "ContentSource": "Content Source A"
  }
}

Definitions

Name Description
APIError

Error information that the API returns.

Error

Error body.

ImageList

Image list properties.

APIError

Error information that the API returns.

Name Type Description
Error

Error

Error body.

Error

Error body.

Name Type Description
Code

string

Message

string

ImageList

Image list properties.

Name Type Description
Description

string

Description for the image list.

Id

integer

Image list ID.

Metadata

object

Image list metadata.

Name

string

Image list name.