POST api/AccountFiles

Request Information

URI Parameters

None.

Body Parameters

AccountFile
NameDescriptionTypeAdditional information
AccountFileId

integer

None.

LegacyFileId

integer

None.

AccountNum

integer

None.

UtilityId

integer

None.

FileName

string

Max length: 255

FileDescription

string

Max length: 200

FileData

Collection of byte

None.

DateCreated

date

None.

DateUpdated

date

None.

CreatedBy

integer

None.

UpdatedBy

integer

None.

Base64Data

string

None.

UploadedBy

string

None.

Request Formats

application/json, text/json

Sample:
{
  "AccountFileId": 1,
  "LegacyFileId": 2,
  "AccountNum": 3,
  "UtilityId": 4,
  "FileName": "sample string 5",
  "FileDescription": "sample string 6",
  "FileData": "QEA=",
  "DateCreated": "2020-02-15T20:37:28.9364747+00:00",
  "DateUpdated": "2020-02-15T20:37:28.9364747+00:00",
  "CreatedBy": 9,
  "UpdatedBy": 10,
  "Base64Data": "sample string 11",
  "UploadedBy": "sample string 12"
}

application/xml, text/xml

Sample:
<AccountFile xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APL.Models">
  <AccountFileId>1</AccountFileId>
  <AccountNum>3</AccountNum>
  <Base64Data>sample string 11</Base64Data>
  <CreatedBy>9</CreatedBy>
  <DateCreated>2020-02-15T20:37:28.9364747+00:00</DateCreated>
  <DateUpdated>2020-02-15T20:37:28.9364747+00:00</DateUpdated>
  <FileData>QEA=</FileData>
  <FileDescription>sample string 6</FileDescription>
  <FileName>sample string 5</FileName>
  <LegacyFileId>2</LegacyFileId>
  <UpdatedBy>10</UpdatedBy>
  <UploadedBy>sample string 12</UploadedBy>
  <UtilityId>4</UtilityId>
</AccountFile>

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

Response Information

Resource Description

AccountFile
NameDescriptionTypeAdditional information
AccountFileId

integer

None.

LegacyFileId

integer

None.

AccountNum

integer

None.

UtilityId

integer

None.

FileName

string

Max length: 255

FileDescription

string

Max length: 200

FileData

Collection of byte

None.

DateCreated

date

None.

DateUpdated

date

None.

CreatedBy

integer

None.

UpdatedBy

integer

None.

Base64Data

string

None.

UploadedBy

string

None.

Response Formats

application/json, text/json

Sample:
{
  "AccountFileId": 1,
  "LegacyFileId": 2,
  "AccountNum": 3,
  "UtilityId": 4,
  "FileName": "sample string 5",
  "FileDescription": "sample string 6",
  "FileData": "QEA=",
  "DateCreated": "2020-02-15T20:37:28.9364747+00:00",
  "DateUpdated": "2020-02-15T20:37:28.9364747+00:00",
  "CreatedBy": 9,
  "UpdatedBy": 10,
  "Base64Data": "sample string 11",
  "UploadedBy": "sample string 12"
}

application/xml, text/xml

Sample:
<AccountFile xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APL.Models">
  <AccountFileId>1</AccountFileId>
  <AccountNum>3</AccountNum>
  <Base64Data>sample string 11</Base64Data>
  <CreatedBy>9</CreatedBy>
  <DateCreated>2020-02-15T20:37:28.9364747+00:00</DateCreated>
  <DateUpdated>2020-02-15T20:37:28.9364747+00:00</DateUpdated>
  <FileData>QEA=</FileData>
  <FileDescription>sample string 6</FileDescription>
  <FileName>sample string 5</FileName>
  <LegacyFileId>2</LegacyFileId>
  <UpdatedBy>10</UpdatedBy>
  <UploadedBy>sample string 12</UploadedBy>
  <UtilityId>4</UtilityId>
</AccountFile>