Overview
This web service updates a single project cost baseline based on a detailed project cost baseline detail structure (PwsProjectCostBaselineDetail). The service returns the identity of the project cost baseline (PwsProjectCostBaselineRef) that has been updated. If the FullDetailFlag is set to true, the full detailed project cost baseline element (PwsProjectCostBaselineElement) will also be returned in the response.
Request Format
- PwsUpdateProjectCostBaseline
- serviceRequest: PwsUpdateProjectCostBaselineRq
- RequestId: Int32
- SessionTicket: String
- BaselineBucketsClearFlag: Boolean
- DescriptionClearFlag: Boolean
- EngagementTimestamp: String
- ExternalSystemIdentifierClearFlag: Boolean
- FullDetailFlag: Boolean
- NewExternalSystemIdentifier: String
- ProjectCostBaseline: PwsProjectCostBaselineDetail
- StealEngagementLockFlag: Boolean
- serviceRequest: PwsUpdateProjectCostBaselineRq
Request Elements
Element | Data Type | Required? | Default | Description | Sample Data |
---|---|---|---|---|---|
RequestId | Int32 | No | Click here for more information. | ||
SessionTicket | String | Yes | Click here for more information. | AUL1Tsqbhar4SWXC5j9T+w== | |
BaselineBucketsClearFlag | Boolean | No | false | If set to 'true', the baseline buckets are reset to 0 | false |
DescriptionClearFlag | Boolean | No | false | If set to 'true', the baseline description is cleared | false |
EngagementTimestamp | String | No | This is a Base64 encoded timestamp utilized for engagement locking. To protect against overwriting other changes, you may optionally echo back the timestamp returned by a call to PwsSaveEngagement (or a prior call to PwsSaveEngagement). This will cause the request to fail if any change has been made between invocations of PwsGetEngagement and PwsSaveEngagement. | ||
ExternalSystemIdentifierClearFlag | Boolean | No | false | If set to 'true', the external system identifier is cleared | false |
FullDetailFlag | Boolean | No | false | If set to true, include full detailed project cost baseline element (PwsProjectCostBaselineElement) in response | true |
NewExternalSystemIdentifier | String | No | The external system identifier is a unique identifier for a project cost baseline (may be null, but once set can only be updated to a different, non-null value) | CB-A | |
ProjectCostBaseline | Yes | false | This structure contains the complete set of information about a project cost baseline. | ||
StealEngagementLockFlag | Boolean | No | false | If set to 'true', any locks on the engagement will be stolen if it is currently locked, otherwise, if it is set to 'false' and a lock is in place the service will fail | true |
Request Usage Example(s)
Response Format
- PwsUpdateProjectCostBaselineResponse
- PwsUpdateProjectCostBaselineResult: PwsUpdateProjectCostBaselineRs
- Messages: PwsMessage
- ResponseId: Int32
- Status: RequestStatus
- ServerTimestampUtc: DateTime
- EngagementLockStolenFromUserIdentity: PwsUserRef
- EngagementTimestamp: String
- ProjectCostBaseline: PwsProjectCostBaselineElement
- ProjectCostBaselineIdentity: PwsProjectCostBaselineRef
- PwsUpdateProjectCostBaselineResult: PwsUpdateProjectCostBaselineRs
Response Elements
Element | Data Type | Description | Sample Data |
---|---|---|---|
Messages | The web service response status and message. Click here for more information | ||
ResponseId | Int32 | Click here for more information | 0 |
Status | Click here for more information | Ok | |
ServerTimestampUtc | DateTime | Click here for more information | 2018-03-01T18:48:25.5474807Z |
EngagementLockStolenFromUserIdentity | If a lock is stolen in the process of updating an engagement, this identifies the user from which the lock was stolen from | ||
EngagementTimestamp | String | This is a Base64 encoded timestamp utilized for engagement locking. To protect against overwriting other changes, you may optionally echo back the timestamp returned by a call to PwsSaveEngagement (or a prior call to PwsSaveEngagement). This will cause the request to fail if any change has been made between invocations of PwsGetEngagement and PwsSaveEngagement. | |
ProjectCostBaseline | This structure contains the complete set of information about a project cost baseline (less any subordinate entities) | ||
ProjectCostBaselineIdentity | This structure represents the unique key fields associated with identifying a project cost baseline |
Response Usage Example(s)
PwsUpdateProjectCostBaseline - Common Errors and Warnings
- For all errors and warnings please refer to the Complete List of Errors and Warnings
ErrorNumber | ErrorCode | ErrorText |
---|---|---|
34001 | InvalidValueForProjectCostBaselineBasis | The value specified for cost baseline basis is invalid. Valid values are P for Cost Plan and N for None. |
34003 | InvalidValueForProjectCostBaselineDimension | The value specified for cost baseline dimension is invalid. Valid values are E for Expense Type, G for Expense Type Group, and N for None. |
34005 | SpecifyUpToOneDimensionInBaselineBucket | More than one dimension specified in Baseline Bucket. |
34006 | StartDateLaterThanEndDate | Start Date specified is later than End Date. |
34010 | BaselineMustHaveAtLeastOneMetric | Baseline must have at least one metric. |
34011 | PrimaryMetricNotAvailable | Specified primary metric is not listed as active metric in baseline. |
34014 | NewExternalSystemIdentifierMayNotBeSpecifiedWhenClearFlagSet | New External System Identifier may not be specified when clear flag is set. |
34015 | BaselineDescriptionMayNotBeSpecifiedWhenClearFlagSet | Baseline Description may not be specified when clear flag is set. |
34016 | BaselineBucketsMayNotBeProvidedWhenClearFlagSet | Baseline Buckets may not be provided when clear flag is set. |
54195 | InvalidValueForPrimaryMetric | An invalid value was specified for project baseline primary metric. |
54286 | AtLeastOneBaselineMetricMustBeActive | At least one metric must be made active. |
54292 | PrimaryBaselineMetricMustBeEnabled | Primary baseline metrics must be an enabled metric in the baseline. |
54489 | BaselineDimensionMismatch | A value for a dimension that does not match the project baseline's dimension setting was specified. |
54490 | BudgetValueSpecifiedForInactiveMetric | A budget value was specified for a metric that is not active in the project baseline. |
54517 | NegativeBudgetAmountSpecifiedForProjectBaseline | Project baselines may not contain negative budgeted amounts. |
54518 | SpecifiedProjectBaselineBucketDatesInvalid | The specified bucket dates for a project baseline bucket are invalid. |
54519 | DuplicateKeyFoundInBaselineBuckets | Duplicate key found in specified baseline buckets. |
54520 | ProjectBaselineNameAlreadyInUse | The specified project baseline name is already in use. |
54526 | ProjectBaselineExternalSystemIdentifierAlreadyInUse | The specified project baseline external system identifier is already in use. |
54879 | SpecifiedProjectCostBaselineNotFound | Specified project cost baseline was not found. |
54883 | ProjectCostBaselineRefRequired | A project cost baseline must be specified. |
54991 | NoPermissionToUpdateProjectBaseline | You do not have appropriate permissions to update this project baseline. |
55139 | BaselineBelongsToDifferentProject | Baseline belongs to a different project than the one being updated. |
55140 | NoPermissionToSetActiveBaselines | No permission to switch active baselines. |