Method :POST

URL: https://apiv1.publicators.com/api/Classifications/ReSetClassifications

Remove exisitng and set new Classifications

Request Information

URI Parameters

None.

Body Parameters

ReSetClassificationBindingModel
NameDescriptionTypeAdditional information
Auth

Authorization token

AuthorizationTokenBindingModel

Required

ClassificationType

ClassificationType

None.

ClassificationIds

Classification Id

Collection of integer

None.

ObjectId

The id ref of the object that related to the ClassificationType

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Auth": {
    "Token": "bb202634-f573-44d6-8985-3ebe69648277"
  },
  "ClassificationType": 1,
  "ClassificationIds": [
    1,
    2
  ],
  "ObjectId": 1
}

Response Information

Resource Description

Json format: SetClassificationViewModel

ReSetClassificationViewModel
NameDescriptionTypeAdditional information
ClassificationRemoved

Rows Affected

integer

None.

ClassificationAdded

Rows Affected

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "ClassificationRemoved": 1,
  "ClassificationAdded": 2
}