Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview


This web service inserts or updates replaces the entire resource history for a single resource's history record (PwsResourceHistor) for a .  A new set of history records (PwsResourceHistory) for the specified resource (PwsResourceRef) are supplied. The service returns the identity of the resource (PwsResourceRef) that has been updated. 

...

Element

Data Type

Required?

Default

Description

Sample Data

RequestId

Int32

No


Click here for more information.

1

SessionTicket

String

Yes 


Click here for more information.

AaJ0FpWv/5xR3lRe/9G87g==

History

PwsResourceHistory[]

Yes


The resource history recordhistory records. All existing history will be replaced by the history supplied here.


ResourceIdentity

PwsResourceRef

Yes 


The resource identity.


ResourceTimestamp

String

No 


This is a Base64 encoded timestamp optionally utilized for resource locking.


SetNullValuesFromResourceTypeFlag

Boolean

No 

false

If set to 'true', resource attributes that are currently set to null will take on the values associated with the assigned resource type.

false

Request Usage Example(s)

...

Panel
titlePwsSaveResourceHistory Response

...

Element

Data Type

Description

Sample Data

Messages

PwsMessage[]

The web service response status and message. Click here for more information.


ResponseId

Int32

Click here for more information.

1

Status

RequestStatus

Click here for more information.

Ok

ServerTimestampUtc

DateTime

Click here for more information.

2018-11-06T20:19:31.089834Z

History

PwsResourceHistory[1..100]This structure contains a resource's history record]

The new set of history records for the resource.


ResourceIdentity

PwsResourceRef

This structure represents the unique key fields associated with identifying a resource.


Timestamp

String

This is a Base64 encoded timestamp optionally utilized for resource locking.

AAAAABCzH0w=

...

ErrorNumber

ErrorCode

ErrorText

50024EntityNotFound

Error 50024, State 3: Entity not found ### [refStructureName:PwsResourceRef]

50218DateGapFoundInXmlError 50218, State 1: Date interval gap found in input XML (entity type = PwsResourceHistory, gap date = 1-Dec-2018)
10104InternalErrorError 61121, State 1: Subcontractor invoice vendor may only be specified if pay category is hourly (H)