Overview
This web service inserts, updates or deletes project rate type(s) based on a detailed project rate type structure (PwsSaveProjectRateTypeDetail).
Request Format
- PwsSaveProjectRateTypes
- serviceRequest: PwsSaveProjectRateTypesRq
- RequestId: Int32
- SessionTicket: String
- LocksToSteal: PwsEntityLockSummary [1..100]
- ProjectIdentity: PwsProjectRef
- ProjectRateTypes: PwsProjectRateTypeDetail [1..100]
- ProjectorLockSetId: Int32
- RateTaskTimestamp: String
- serviceRequest: PwsSaveProjectRateTypesRq
Request Elements
Element | Data Type | Required? | Default | Description | Sample Data |
---|---|---|---|---|---|
Int32 | No | Click here for more information. | 1 | ||
String | Yes | Click here for more information. | Ab62GYARtqWE8wJFv6Pd8g== | ||
LocksToSteal | PwsEntityLockSummary[1..100] | No | The detailed information of the locks that are to be stolen. If not specified, the request will fail if any requested locks are already held. If specified, the information supplied must exactly match the current state of existing locks or the attempt to steal the existing locks will fail. Typically, this service is invoked with LocksToSteal empty or null. If there are existing locks, they will be returned in the LockHolders member of PwsFault. This data can then be sent, as is, back to the server in a second invocation of this service, as LocksToSteal, if the caller desires to steal the locks. | ||
ProjectIdentity | Yes | The identity of the project. Click here for more information. | |||
ProjectRateTypes | PwsProjectTaskTypeDetail[1..100] | Yes | All the project rate types that are currently on the project and need to be retained as well as the project rate type(s) to be added, updated or deleted. | ||
ProjectorLockSetId | Int32 | No | A projector lock set id is an identifier for a group of one or more locks held as a unit. | ||
RateTaskTimestamp | String | No | This is an optimistic locking timestamp that, if provided on update request, will cause the request to fail when the timestamp stored in the database does not match the provided value. |
Request Usage Example(s)
Response Format
- PwsSaveProjectRateTypesResponse
- PwsSaveProjectRateTypesResult: PwsSaveProjectRateTypesRs
- Messages: PwsMessage[]
- ResponseId: Int32
- Status: RequestStatus
- ServerTimestampUtc: DateTime
- RateTaskTimestamp: String
- StolenLocks: PwsEntityLockSummary
- PwsSaveProjectRateTypesResult: PwsSaveProjectRateTypesRs
Response Elements
Element | Data Type | Description |
---|---|---|
Messages | The web service response status and message. Click here for more information. | |
Int32 | Click here for more information. | |
RequestStatus | Click here for more information | |
DateTime | Click here for more information. | |
RateTaskTimestamp | String | This is an optimistic locking timestamp that, if provided on update request, will cause the request to fail when the timestamp stored in the database does not match the provided value. |
StolenLocks | This structure contains information about the locks that were stolen in order to complete this request, Will be included only when LocksToSteal is specified in the request. |
Response Usage Example(s)
PwsSaveProjectRateTypes - Common Errors and Warnings
- For all errors and warnings please refer to the Complete List of Errors and Warnings
ErrorNumber | ErrorCode | ErrorText |
---|---|---|
64616 | DuplicateEntityInXml | Error 64616, State 1: Duplicate entity found in input XML ### [entityType:PwsProjectRateType][entityId:599487][entityName:(null)] |
54701 | ProjectRateTypeReferencedByTaskType | Error 54701, State 1: Project rate type cannot be deleted because it is referenced by at least one project task type ### [referenceId1:1152921504607446462][projectRateTypeName:Regular] |