POST api/CdcApi/ContractCopy/CopyContract

Copy source contract to new contract

Request Information

URI Parameters

None.

Body Parameters

CopyContractCommand
NameDescriptionTypeAdditional information
newContract

NewContract

None.

newServices

Collection of NewService

None.

newECs

Collection of NewECS

None.

newVendorContracts

Collection of NewContract

None.

transactionId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "transactionId": 1,
  "newContract": {
    "sourcE_SZERZ_AZON": 1,
    "szerZ_NEV": "sample string 2",
    "szerZ_KEZDET": "2025-12-08T03:59:53.7760144Z",
    "szerZ_PAZON": "sample string 4"
  },
  "newServices": [
    {
      "sourcE_SZARZ_AZON": 1,
      "szarZ_NEV": "sample string 2",
      "szarZ_ERV_KEZDET": "2025-12-08T03:59:53.7760144Z",
      "szarZ_AR": 4.0
    },
    {
      "sourcE_SZARZ_AZON": 1,
      "szarZ_NEV": "sample string 2",
      "szarZ_ERV_KEZDET": "2025-12-08T03:59:53.7760144Z",
      "szarZ_AR": 4.0
    }
  ],
  "newECs": [
    {
      "sourcE_ELSZ_CSOPORT_AZON": 1,
      "elsZ_CSOPORT_NEV": "sample string 2",
      "elsZ_CSOPORT_PAZON": "sample string 3"
    },
    {
      "sourcE_ELSZ_CSOPORT_AZON": 1,
      "elsZ_CSOPORT_NEV": "sample string 2",
      "elsZ_CSOPORT_PAZON": "sample string 3"
    }
  ],
  "newVendorContracts": [
    {
      "sourcE_SZERZ_AZON": 1,
      "szerZ_NEV": "sample string 2",
      "szerZ_KEZDET": "2025-12-08T03:59:53.7760144Z",
      "szerZ_PAZON": "sample string 4"
    },
    {
      "sourcE_SZERZ_AZON": 1,
      "szerZ_NEV": "sample string 2",
      "szerZ_KEZDET": "2025-12-08T03:59:53.7760144Z",
      "szerZ_PAZON": "sample string 4"
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CopyContractCommand'.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1