POST api/ItemData/ChangeData
Assigning tags to media items filtered by the specified criteria
Request Information
URI Parameters
None.
Body Parameters
Parameters of the tag values assignment operation
DataChangeQuery| Name | Description | Type | Additional information |
|---|---|---|---|
| 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. |
| ExcludeIds | 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:
{
"query": "sample string 1",
"unions": "sample string 2",
"ids": [
1,
2
],
"excludeIds": [
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 ID of the tag values assignment task
ObjResultOfString| Name | 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
Parameters of the tag values assignment operation for media items filtered by the specified criteria
| Property | Description |
|---|---|
| Query (String) |
Query line |
| Unions (String) |
Logical operators |
| Ids (Int64[]) |
Identifiers of media objects for which the operations should be performed |
| ExcludeIds (Int64[]) | |
| Delete (Boolean) |
Flag of items deletion |
| Data (DataChangeItem[]) |
Operations that should be performed with specified media objects |