POST api/CableTrays/Sync

Request Information

URI Parameters

None.

Body Parameters

Collection of CableTrayModel
NameDescriptionTypeAdditional information
CableTrayId

integer

None.

id

string

None.

CreatedBy

string

None.

CreatedOn

date

None.

UpdatedBy

string

None.

UpdatedOn

date

None.

ProjectId

string

None.

Number

string

None.

Size

decimal number

None.

Type

string

None.

Drawing

string

None.

Area

string

None.

Area2

string

None.

StartUpCode

string

None.

LaborCode

string

None.

EstimatedLength

integer

None.

DateAssigned

date

None.

AssignedTo

string

None.

Length

string

None.

Cover

integer

None.

Fittings

integer

None.

Divider

integer

None.

EngineeringNotes

string

None.

PrimaryPartialId

string

None.

InstallDate

date

None.

InstallLength

integer

None.

Installer

string

None.

Foreman

string

None.

InstalledCover

integer

None.

InstalledDivider

integer

None.

InstallNotes

string

None.

Inspector

string

None.

InspectionDate

date

None.

ConstraintNotes

string

None.

ConstraintDate

date

None.

ConstraintClearedDate

date

None.

ActualLength

integer

None.

System

string

None.

DeletedOn

date

None.

DeletedBy

string

None.

HasPartials

boolean

None.

_removed

boolean

None.

_lastChange

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "CableTrayId": 1,
    "id": "sample string 2",
    "CreatedBy": "sample string 3",
    "CreatedOn": "2025-10-27T18:36:01.8313623+00:00",
    "UpdatedBy": "sample string 5",
    "UpdatedOn": "2025-10-27T18:36:01.8360386+00:00",
    "ProjectId": "sample string 6",
    "Number": "sample string 7",
    "Size": 1.0,
    "Type": "sample string 8",
    "Drawing": "sample string 9",
    "Area": "sample string 10",
    "Area2": "sample string 11",
    "StartUpCode": "sample string 12",
    "LaborCode": "sample string 13",
    "EstimatedLength": 1,
    "DateAssigned": "2025-10-27T18:36:01.8360895+00:00",
    "AssignedTo": "sample string 14",
    "Length": "sample string 15",
    "Cover": 1,
    "Fittings": 1,
    "Divider": 1,
    "EngineeringNotes": "sample string 16",
    "PrimaryPartialId": "sample string 17",
    "InstallDate": "2025-10-27T18:36:01.8415105Z",
    "InstallLength": 1,
    "Installer": "sample string 18",
    "Foreman": "sample string 19",
    "InstalledCover": 1,
    "InstalledDivider": 1,
    "InstallNotes": "sample string 20",
    "Inspector": "sample string 21",
    "InspectionDate": "2025-10-27T18:36:01.8415105Z",
    "ConstraintNotes": "sample string 22",
    "ConstraintDate": "2025-10-27T18:36:01.8415105+00:00",
    "ConstraintClearedDate": "2025-10-27T18:36:01.8415105+00:00",
    "ActualLength": 8,
    "System": "sample string 23",
    "DeletedOn": "2025-10-27T18:36:01.8415105+00:00",
    "DeletedBy": "sample string 24",
    "HasPartials": true,
    "_removed": true,
    "_lastChange": 1
  },
  {
    "CableTrayId": 1,
    "id": "sample string 2",
    "CreatedBy": "sample string 3",
    "CreatedOn": "2025-10-27T18:36:01.8313623+00:00",
    "UpdatedBy": "sample string 5",
    "UpdatedOn": "2025-10-27T18:36:01.8360386+00:00",
    "ProjectId": "sample string 6",
    "Number": "sample string 7",
    "Size": 1.0,
    "Type": "sample string 8",
    "Drawing": "sample string 9",
    "Area": "sample string 10",
    "Area2": "sample string 11",
    "StartUpCode": "sample string 12",
    "LaborCode": "sample string 13",
    "EstimatedLength": 1,
    "DateAssigned": "2025-10-27T18:36:01.8360895+00:00",
    "AssignedTo": "sample string 14",
    "Length": "sample string 15",
    "Cover": 1,
    "Fittings": 1,
    "Divider": 1,
    "EngineeringNotes": "sample string 16",
    "PrimaryPartialId": "sample string 17",
    "InstallDate": "2025-10-27T18:36:01.8415105Z",
    "InstallLength": 1,
    "Installer": "sample string 18",
    "Foreman": "sample string 19",
    "InstalledCover": 1,
    "InstalledDivider": 1,
    "InstallNotes": "sample string 20",
    "Inspector": "sample string 21",
    "InspectionDate": "2025-10-27T18:36:01.8415105Z",
    "ConstraintNotes": "sample string 22",
    "ConstraintDate": "2025-10-27T18:36:01.8415105+00:00",
    "ConstraintClearedDate": "2025-10-27T18:36:01.8415105+00:00",
    "ActualLength": 8,
    "System": "sample string 23",
    "DeletedOn": "2025-10-27T18:36:01.8415105+00:00",
    "DeletedBy": "sample string 24",
    "HasPartials": true,
    "_removed": true,
    "_lastChange": 1
  }
]

application/xml, text/xml

Sample:
<ArrayOfCableTrayModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HuntMillerElectric.Models.Projects">
  <CableTrayModel>
    <Area>sample string 10</Area>
    <Area2>sample string 11</Area2>
    <AssignedTo>sample string 14</AssignedTo>
    <CableTrayId>1</CableTrayId>
    <ConstraintClearedDate>2025-10-27T18:36:01.8415105+00:00</ConstraintClearedDate>
    <ConstraintDate>2025-10-27T18:36:01.8415105+00:00</ConstraintDate>
    <ConstraintNotes>sample string 22</ConstraintNotes>
    <Cover>1</Cover>
    <CreatedBy>sample string 3</CreatedBy>
    <CreatedOn>2025-10-27T18:36:01.8313623+00:00</CreatedOn>
    <DateAssigned>2025-10-27T18:36:01.8360895+00:00</DateAssigned>
    <DeletedBy>sample string 24</DeletedBy>
    <DeletedOn>2025-10-27T18:36:01.8415105+00:00</DeletedOn>
    <Divider>1</Divider>
    <Drawing>sample string 9</Drawing>
    <EngineeringNotes>sample string 16</EngineeringNotes>
    <EstimatedLength>1</EstimatedLength>
    <Fittings>1</Fittings>
    <Foreman>sample string 19</Foreman>
    <HasPartials>true</HasPartials>
    <InspectionDate>2025-10-27T18:36:01.8415105Z</InspectionDate>
    <Inspector>sample string 21</Inspector>
    <InstallDate>2025-10-27T18:36:01.8415105Z</InstallDate>
    <InstallLength>1</InstallLength>
    <InstallNotes>sample string 20</InstallNotes>
    <InstalledCover>1</InstalledCover>
    <InstalledDivider>1</InstalledDivider>
    <Installer>sample string 18</Installer>
    <LaborCode>sample string 13</LaborCode>
    <Length>sample string 15</Length>
    <Number>sample string 7</Number>
    <PrimaryPartialId>sample string 17</PrimaryPartialId>
    <ProjectId>sample string 6</ProjectId>
    <Size>1</Size>
    <StartUpCode>sample string 12</StartUpCode>
    <System>sample string 23</System>
    <Type>sample string 8</Type>
    <UpdatedBy>sample string 5</UpdatedBy>
    <UpdatedOn>2025-10-27T18:36:01.8360386+00:00</UpdatedOn>
    <_lastChange>1</_lastChange>
    <_removed>true</_removed>
    <id>sample string 2</id>
  </CableTrayModel>
  <CableTrayModel>
    <Area>sample string 10</Area>
    <Area2>sample string 11</Area2>
    <AssignedTo>sample string 14</AssignedTo>
    <CableTrayId>1</CableTrayId>
    <ConstraintClearedDate>2025-10-27T18:36:01.8415105+00:00</ConstraintClearedDate>
    <ConstraintDate>2025-10-27T18:36:01.8415105+00:00</ConstraintDate>
    <ConstraintNotes>sample string 22</ConstraintNotes>
    <Cover>1</Cover>
    <CreatedBy>sample string 3</CreatedBy>
    <CreatedOn>2025-10-27T18:36:01.8313623+00:00</CreatedOn>
    <DateAssigned>2025-10-27T18:36:01.8360895+00:00</DateAssigned>
    <DeletedBy>sample string 24</DeletedBy>
    <DeletedOn>2025-10-27T18:36:01.8415105+00:00</DeletedOn>
    <Divider>1</Divider>
    <Drawing>sample string 9</Drawing>
    <EngineeringNotes>sample string 16</EngineeringNotes>
    <EstimatedLength>1</EstimatedLength>
    <Fittings>1</Fittings>
    <Foreman>sample string 19</Foreman>
    <HasPartials>true</HasPartials>
    <InspectionDate>2025-10-27T18:36:01.8415105Z</InspectionDate>
    <Inspector>sample string 21</Inspector>
    <InstallDate>2025-10-27T18:36:01.8415105Z</InstallDate>
    <InstallLength>1</InstallLength>
    <InstallNotes>sample string 20</InstallNotes>
    <InstalledCover>1</InstalledCover>
    <InstalledDivider>1</InstalledDivider>
    <Installer>sample string 18</Installer>
    <LaborCode>sample string 13</LaborCode>
    <Length>sample string 15</Length>
    <Number>sample string 7</Number>
    <PrimaryPartialId>sample string 17</PrimaryPartialId>
    <ProjectId>sample string 6</ProjectId>
    <Size>1</Size>
    <StartUpCode>sample string 12</StartUpCode>
    <System>sample string 23</System>
    <Type>sample string 8</Type>
    <UpdatedBy>sample string 5</UpdatedBy>
    <UpdatedOn>2025-10-27T18:36:01.8360386+00:00</UpdatedOn>
    <_lastChange>1</_lastChange>
    <_removed>true</_removed>
    <id>sample string 2</id>
  </CableTrayModel>
</ArrayOfCableTrayModel>

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 'List`1'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.