PwsSaveProjectRateTypes
Overview
This web service replaces the entire collection of project rate types on the specified project with the new designated collection.
Request Format
- PwsSaveProjectRateTypes
- serviceRequest: PwsSaveProjectRateTypes
- RequestId: Int32
- SessionTicket: String
- LocksToSteal: PwsEntityLockSummary [1..100]
- ProjectIdentity: PwsProjectRef
- ProjectRateTypes: PwsProjectRateTypeDetail [1..100]
- ProjectorLockSetId: Int32
- RateTaskTimestamp: String
- serviceRequest: PwsSaveProjectRateTypes
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 | PwsProjectRateTypeDetail [1..100] | Yes | The full collection of rate types for the project to replace the prior full collection. | ||
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
- RequestStatus: 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 | Duplicate PwsProjectRateType entity found in input XML. |
54701 | ProjectRateTypeReferencedByTaskType | The project rate type <project-rate-type-name> cannot be deleted because there is at least one project task type that references it. |
54784 | PermissionDeniedToUpdateProjectRateType | You do not have appropriate permission to update this project rate type. |
54785 | StandardRateTypeInactive | The specified standard rate type is inactive. |
54787 | ProjectRateTypeNameInUse | The specified project rate type name is already in use by a different project rate type on this project. |
54788 | ProjectRateTypeExternalSystemIdentifierInUse | The specified project rate type external system identifier is already in use by a different project rate type. External system identifiers must be globally unique. |
54884 | ProjectRateTypeReferencedByBaseline | The project rate type <project-rate-type-name> cannot be deleted because it is referenced by one or more baselines. |
54731 | ProjectRateTypeReferencedByInvoice | The project rate type <project-rate-type-name> cannot be deleted because it is referenced by at least one invoice. |
54761 | ProjectRateTypeReferencedByTimecard | The project rate type <project-rate-type-name> cannot be deleted because it is referenced by at least one time card. |