POST api/ContractObject/ContractObjectFile/AddContractObjectFile

Add ContractObject attached file (file data, and content)

Request Information

URI Parameters

None.

Body Parameters

ContractObjectFileDTO
NameDescriptionTypeAdditional information
contractObjectFile

ContractObjectFile

None.

base64Content

string

None.

Request Formats

application/json, text/json

Sample:
{
  "contractObjectFile": {
    "contractObjectFileId": 1,
    "contractObjectId": 1,
    "name": "sample string 2",
    "isArchive": true,
    "isDeleted": true,
    "isScrapped": true,
    "scrappedDate": "2025-12-08T03:59:37.5964644Z"
  },
  "base64Content": "sample string 1"
}

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 'ContractObjectFileDTO'.

Response Information

Resource Description

None.