POST api/MediaItems/ProcessAILabelsQuery
Auto-tagging of media items
Request Information
URI Parameters
None.
Body Parameters
Parameters of the batch operation
AIProcessDataName | Description | Type | Additional information |
---|---|---|---|
AI | ProcessAI |
None. |
|
Query |
Query line |
string |
None. |
Unions |
Logical operators |
string |
None. |
Ids |
Identifiers of media objects for which the operations should be performed |
Collection of integer |
None. |
Delete |
Flag of items deletion |
boolean |
None. |
Data |
Operations that should be performed with specified media objects |
Collection of DataChangeItem |
None. |
Request Formats
application/json, text/json
Sample:
{ "ai": { "labels": 0, "objects": 0, "description": 0, "title": 0, "processGoogle": true, "processChatGPT": true, "translate": true }, "query": "sample string 1", "unions": "sample string 2", "ids": [ 1, 2 ], "delete": true, "data": [ { "guid": "sample string 1", "value": "sample string 2", "id": 3, "remove": true }, { "guid": "sample string 1", "value": "sample string 2", "id": 3, "remove": true } ] }
Response Information
Resource Description
Result containing the flag of successful operation
ObjResultOfStringName | Description | Type | Additional information |
---|---|---|---|
Data | string |
None. |
|
Error |
Error description |
string |
None. |
Success |
Flag of successful operation |
boolean |
None. |
ErrorCode |
Error code |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "data": "sample string 1", "error": "sample string 2", "success": true, "errorCode": 4 }
Parameter Information
data
Property | Description |
---|---|
AI (ProcessAI) | |
Query (String) |
Query line |
Unions (String) |
Logical operators |
Ids (Int64[]) |
Identifiers of media objects for which the operations should be performed |
Delete (Boolean) |
Flag of items deletion |
Data (DataChangeItem[]) |
Operations that should be performed with specified media objects |