PUT api/File

Edits an existing File.

Request Information

URI Parameters

None.

Body Parameters

File.

File
NameDescriptionTypeAdditional information
UpdateType

string

None.

FileId

integer

None.

PurchaseOrderId

integer

None.

ActivityId

integer

None.

CustomerId

integer

None.

EmployeeId

integer

None.

OrganizationId

integer

None.

Filename

string

None.

OriginalFilename

string

None.

ContentType

string

None.

Size

integer

None.

GlobalId

string

None.

ObjectTypeId

integer

None.

ObjectType

string

None.

CreatedByName

string

None.

CreatedDate

date

None.

UpdatedByName

string

None.

UpdatedBy

string

None.

UpdatedDate

date

None.

SizeKb

integer

None.

FileUrl

string

None.

Title

string

None.

SupplierId

integer

None.

FileType

string

None.

FileTypeId

integer

None.

ProductId

integer

None.

ProjectId

integer

None.

OrderId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "UpdateType": "sample string 1",
  "FileId": 2,
  "PurchaseOrderId": 1,
  "ActivityId": 1,
  "CustomerId": 1,
  "EmployeeId": 1,
  "OrganizationId": 1,
  "Filename": "sample string 3",
  "OriginalFilename": "sample string 4",
  "ContentType": "sample string 5",
  "Size": 1,
  "GlobalId": "sample string 6",
  "ObjectTypeId": 1,
  "ObjectType": "sample string 7",
  "CreatedByName": "sample string 8",
  "CreatedDate": "2025-01-16T02:10:40.3437172+00:00",
  "UpdatedByName": "sample string 9",
  "UpdatedBy": "sample string 10",
  "UpdatedDate": "2025-01-16T02:10:40.3437172+00:00",
  "SizeKb": 1,
  "FileUrl": "sample string 11",
  "Title": "sample string 12",
  "SupplierId": 1,
  "FileType": "sample string 13",
  "FileTypeId": 1,
  "ProductId": 1,
  "ProjectId": 1,
  "OrderId": 1
}

application/xml, text/xml

Sample:
<File xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustomersdbWebShared.Models">
  <ActivityId>1</ActivityId>
  <ContentType>sample string 5</ContentType>
  <CreatedByName>sample string 8</CreatedByName>
  <CreatedDate>2025-01-16T02:10:40.3437172+00:00</CreatedDate>
  <CustomerId>1</CustomerId>
  <EmployeeId>1</EmployeeId>
  <FileId>2</FileId>
  <FileType>sample string 13</FileType>
  <FileTypeId>1</FileTypeId>
  <FileUrl>sample string 11</FileUrl>
  <Filename>sample string 3</Filename>
  <GlobalId>sample string 6</GlobalId>
  <ObjectType>sample string 7</ObjectType>
  <ObjectTypeId>1</ObjectTypeId>
  <OrderId>1</OrderId>
  <OrganizationId>1</OrganizationId>
  <OriginalFilename>sample string 4</OriginalFilename>
  <ProductId>1</ProductId>
  <ProjectId>1</ProjectId>
  <PurchaseOrderId>1</PurchaseOrderId>
  <Size>1</Size>
  <SizeKb>1</SizeKb>
  <SupplierId>1</SupplierId>
  <Title>sample string 12</Title>
  <UpdateType>sample string 1</UpdateType>
  <UpdatedBy>sample string 10</UpdatedBy>
  <UpdatedByName>sample string 9</UpdatedByName>
  <UpdatedDate>2025-01-16T02:10:40.3437172+00:00</UpdatedDate>
</File>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

File
NameDescriptionTypeAdditional information
UpdateType

string

None.

FileId

integer

None.

PurchaseOrderId

integer

None.

ActivityId

integer

None.

CustomerId

integer

None.

EmployeeId

integer

None.

OrganizationId

integer

None.

Filename

string

None.

OriginalFilename

string

None.

ContentType

string

None.

Size

integer

None.

GlobalId

string

None.

ObjectTypeId

integer

None.

ObjectType

string

None.

CreatedByName

string

None.

CreatedDate

date

None.

UpdatedByName

string

None.

UpdatedBy

string

None.

UpdatedDate

date

None.

SizeKb

integer

None.

FileUrl

string

None.

Title

string

None.

SupplierId

integer

None.

FileType

string

None.

FileTypeId

integer

None.

ProductId

integer

None.

ProjectId

integer

None.

OrderId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "UpdateType": "sample string 1",
  "FileId": 2,
  "PurchaseOrderId": 1,
  "ActivityId": 1,
  "CustomerId": 1,
  "EmployeeId": 1,
  "OrganizationId": 1,
  "Filename": "sample string 3",
  "OriginalFilename": "sample string 4",
  "ContentType": "sample string 5",
  "Size": 1,
  "GlobalId": "sample string 6",
  "ObjectTypeId": 1,
  "ObjectType": "sample string 7",
  "CreatedByName": "sample string 8",
  "CreatedDate": "2025-01-16T02:10:40.3922086+00:00",
  "UpdatedByName": "sample string 9",
  "UpdatedBy": "sample string 10",
  "UpdatedDate": "2025-01-16T02:10:40.3922086+00:00",
  "SizeKb": 1,
  "FileUrl": "sample string 11",
  "Title": "sample string 12",
  "SupplierId": 1,
  "FileType": "sample string 13",
  "FileTypeId": 1,
  "ProductId": 1,
  "ProjectId": 1,
  "OrderId": 1
}

application/xml, text/xml

Sample:
<File xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustomersdbWebShared.Models">
  <ActivityId>1</ActivityId>
  <ContentType>sample string 5</ContentType>
  <CreatedByName>sample string 8</CreatedByName>
  <CreatedDate>2025-01-16T02:10:40.3922086+00:00</CreatedDate>
  <CustomerId>1</CustomerId>
  <EmployeeId>1</EmployeeId>
  <FileId>2</FileId>
  <FileType>sample string 13</FileType>
  <FileTypeId>1</FileTypeId>
  <FileUrl>sample string 11</FileUrl>
  <Filename>sample string 3</Filename>
  <GlobalId>sample string 6</GlobalId>
  <ObjectType>sample string 7</ObjectType>
  <ObjectTypeId>1</ObjectTypeId>
  <OrderId>1</OrderId>
  <OrganizationId>1</OrganizationId>
  <OriginalFilename>sample string 4</OriginalFilename>
  <ProductId>1</ProductId>
  <ProjectId>1</ProjectId>
  <PurchaseOrderId>1</PurchaseOrderId>
  <Size>1</Size>
  <SizeKb>1</SizeKb>
  <SupplierId>1</SupplierId>
  <Title>sample string 12</Title>
  <UpdateType>sample string 1</UpdateType>
  <UpdatedBy>sample string 10</UpdatedBy>
  <UpdatedByName>sample string 9</UpdatedByName>
  <UpdatedDate>2025-01-16T02:10:40.3922086+00:00</UpdatedDate>
</File>