POST api/ItemData/BatchChange

Assigning Tags

Request Information

URI Parameters

None.

Body Parameters

Parameters of the tag values assignment operation

DataChangeBatch
NameDescriptionTypeAdditional information
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:
{
  "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

ObjResultOfBoolean
NameDescriptionTypeAdditional information
Data

boolean

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": true,
  "error": "sample string 2",
  "success": true,
  "errorCode": 4
}

Parameter Information

data

Parameters of the batch operation

Property Description
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