PUT OneStop/Groups/{GroupID}/ServiceCall/{ServiceCallID}/WorkUnit

Updates the specified work unit

Request Information

URI Parameters

NameDescriptionTypeAdditional information
GroupID

integer

Required

ServiceCallID

integer

Required

Body Parameters

Details of the work unit to update

UpdatedServiceCallWorkUnit
NameDescriptionTypeAdditional information
ServiceCallWorkUnitID

integer

None.

Comments

string

None.

FaultCodeID

integer

None.

FixCodeID

integer

None.

NewWorkUnitTypeID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ServiceCallWorkUnitID": 1,
  "Comments": "sample string 2",
  "FaultCodeID": 3,
  "FixCodeID": 4,
  "NewWorkUnitTypeID": 5
}

application/xml, text/xml

Sample:
<UpdatedServiceCallWorkUnit xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OneStopWebAPI.DTO">
  <Comments>sample string 2</Comments>
  <FaultCodeID>3</FaultCodeID>
  <FixCodeID>4</FixCodeID>
  <NewWorkUnitTypeID>5</NewWorkUnitTypeID>
  <ServiceCallWorkUnitID>1</ServiceCallWorkUnitID>
</UpdatedServiceCallWorkUnit>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ServiceCallWorkUnitDTO
NameDescriptionTypeAdditional information
ServiceCallWorkUnitID

integer

None.

LastUpdatedDateTime

date

None.

WorkStartDateTime

date

None.

WorkEndDateTime

date

None.

TravelStartDateTime

date

None.

TravelEndDateTime

date

None.

Comments

string

None.

FaultCodeID

integer

None.

FixCodeID

integer

None.

LoggedByID

integer

None.

AssignedToID

integer

None.

EffectiveStatus

ServiceCallStatus

None.

EndDateTime

date

None.

ServiceCallWorkUnitNumber

string

None.

FaultCodeDescription

string

None.

FixCancelIncompleteDescription

string

None.

EffectiveStatusDescription

string

None.

AssignedToName

string

None.

WorkUnitTypeID

integer

None.

ServiceCallID

integer

None.

CreatedDateTime

date

None.

MileageStart

integer

None.

MileageEnd

integer

None.

WorkUnitCount

integer

None.

GUID

globally unique identifier

None.

Response Formats

application/json, text/json

Sample:

Sample not available.