Overview
This web service inserts or updates a single project role based on a detailed project role structure (PwsProjectRoleDetail). The service returns the identity (PwsProjectRoleRef) of the project role that has been inserted or updated.
Request Format
- PwsSaveProjectRole
- serviceRequest: PwsSaveProjectRoleRq
- RequestId: Int32
- SessionTicket: String
- BaseRatesOnTitleClearFlag: Boolean
- CandidatesClearFlag: Boolean
- CostCenterClearFlag: Boolean
- CostCenterCriteriaClearFlag: Boolean
- DescriptionClearFlag: Boolean
- EngagementTimestamp: String
- KeywordsClearFlag: Boolean
- LocationClearFlag: Boolean
- LocationCriteriaClearFlag: Boolean
- Mode: String (1)
- ProjectIdentity: PwsProjectRef
- ProjectRole: PwsProjectRoleDetail
- ResourceClearFlag: Boolean
- RoleEndDateClearFlag: Boolean
- RoleStartDateClearFlag: Boolean
- ShareCostCenterClearFlag: Boolean
- SkillCriteriaClearFlag: Boolean
- StealLockFlag: Boolean
- TitleClearFlag: Boolean
- TitleCriteriaClearFlag: Boolean
- RdcTransferHourlyRateClearFlag: Boolean
- RevenueTransferHourlyRateClearFlag: Boolean
- RateExceptionsClearFlag: Boolean
- RdcExceptionsClearFlag: Boolean
- serviceRequest: PwsSaveProjectRoleRq
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. | Ae9v30fDNwFMx833f5Hesg== | |
BaseRatesOnTitleClearFlag | Boolean | On Insert: No On Update: No | false | If set to 'true', existing base-rate-on-title setting will be cleared and is set to basing rate on resource's title. BaseRateOnTitleIdentity in PwsProjectRoleDetail must be undefined*; if set to 'false', base-rate-on-title will be updated if BaseRateOnTitleIdentity provided in PwsProjectRoleDetail. | false |
CandidatesClearFlag | Boolean | On Insert: No On Update: No | false | If set to 'true', existing named candidates will be cleared and candidate identities defined in PwsProjectRoleDetail is ignored; If set to 'false', candidates will be updated if identities are provided in PwsProjectRoleDetail. | false |
CostCenterClearFlag | Boolean | On Insert: No On Update: No | false | If set to 'true', preferred cost center for unnamed candidate is cleared and preferred cost center identity defined in PwsProjectRoleDetail is ignored; If set to 'false', preferred cost center identities will be updated if provided in PwsProjectRoleDetail. | false |
CostCenterCriteriaClearFlag | Boolean | On Insert: No On Update: No | false | If set to 'true', cost center criteria for unnamed candidate is cleared and cost center criteria defined in PwsProjectRoleDetail is ignored; If set to 'false', cost center criteria will be updated if provided in PwsProjectRoleDetail. | false |
DescriptionClearFlag | Boolean | On Insert: No On Update: No | false | If set to 'true', existing description will be cleared. Description in PwsProjectRoleDetail must be undefined*; if set to 'false', description will be updated if provided in PwsProjectRoleDetail. | 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 prior call to PwsSaveProjectRole. This will cause the request to fail if any change has been made between invocations of PwsSaveProjectRole. | ||
KeywordsClearFlag | Boolean | On Insert: No On Update: No | false | If set to 'true', existing keywords for unnamed candidate is cleared. Keywords in PwsProjectRoleDetail must be undefined*; If set to 'false', keywords will be updated if provided in PwsProjectRoleDetail. | false |
LocationClearFlag | Boolean | On Insert: No On Update: No | false | If set to 'true', preferred location for unnamed candidate is cleared. LocationIdentity in PwsProjectRoleDetail must be undefined*; If set to 'false', preferred location will be updated if provided in PwsProjectRoleDetail. | false |
LocationCriteriaClearFlag | Boolean | On Insert: No On Update: No | false | If set to 'true', location criteria for unnamed candidate is cleared and location criteria (LocationIdentities) defined in PwsProjectRoleDetail is ignored; If set to 'false', location criteria (LocationIdentities) will be updated if provided in PwsProjectRoleDetail. | false |
Mode | String (1) | On Insert: Yes On Update: Yes | A: booked data for roles R: requested data for roles | A | |
ProjectIdentity | On Insert: Yes On Update: Yes | The identity of the project that contains the project role(s). Click here for more information. | |||
ProjectRole | On Insert: Yes On Update: Yes | Structure that contains the complete information of the project role. Please click here for more information.. If it refers to an existing project role, this request updates this project role; otherwise, this request creates a new project role. | |||
ResourceClearFlag | Boolean | On Insert: No On Update: No | false | false | |
RoleEndDateClearFlag | Boolean | On Insert: No On Update: No | false | false | |
RoleStartDateClearFlag | Boolean | On Insert: No On Update: No | false | false | |
ShareCostCenterClearFlag | Boolean | ||||
SkillCriteriaClearFlag | Boolean | ||||
StealLockFlag | Boolean | No | false | True to steal lock if it is currently locked (otherwise, service will fail if engagement is locked) | false |
TitleClearFlag | Boolean | On Insert: No On Update: No | false | false | |
TitleCriteriaClearFlag | Boolean | ||||
RdcTransferHourlyRateClearFlag | Boolean | ||||
RevenueTransferHourlyRateClearFlag | Boolean | ||||
RateExceptionsClearFlag | Boolean | ||||
RdcExceptionsClearFlag | Boolean |
Request Usage Example(s)
Response Format
- PwsSaveProjectRoleResponse
- PwsSaveProjectRoleResult: PwsSaveProjectRoleRs
- Messages: PwsMessage
- ResponseId: Int32
- Status: RequestStatus
- ServerTimestampUtc: DateTime
- ProjectRoleIdentity: PwsProjectRoleRef
- EngagementTimestamp: String
- LockStolenFromUserIdentity: PwsUserRef
- PwsSaveProjectRoleResult: PwsSaveProjectRoleRs
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 | RequestStatus | Click here for more information. | Ok |
ServerTimestampUtc | DateTime | Click here for more information. | 2018-02-14T15:34:53.8497124Z |
ProjectRoleIdentity | The identity of the project role just created/updated. Click here for more information. | ||
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. | AAAAAA+d7G0= |
LockStolenFromUserIdentity | The identity of the user from whom the engagement lock is stolen from. Click here for more information. |
Response Usage Example(s)
PwsSaveProject - Common Errors and Warnings
- For all errors and warnings please refer to the Complete List of Errors and Warnings
ErrorNumber | ErrorCode | ErrorText |
---|---|---|
14009 | RoleResourceMayNotBeSpecifiedWhenClearFlagSet | Resource may not be specified when resouce clear flag is set. |
14010 | RoleCostCenterMayNotBeSpecifiedWhenClearFlagSet | Cost center may not be specified when cost center clear flag is set. |
14011 | RoleLocationMayNotBeSpecifiedWhenClearFlagSet | Location may not be specified when location clear flag is set. |
14012 | RoleTitleMayNotBeSpecifiedWhenClearFlagSet | Title may not be specified when title clear flag is set. |
14013 | RoleKeywordsMayNotBeSpecifiedWhenClearFlagSet | Keywords may not be specified when keywords clear flag is set. |
14015 | BaseRatesOnTitleMayNotBeSpecifiedWhenClearFlagSet | Base rates on title may not be specified when base rates on title clear flag is set. |
14016 | RoleStartDateMayNotBeSpecifiedWhenClearFlagSet | Role start date may not be specified when role start date clear flag is set. |
14017 | RoleEndDateMayNotBeSpecifiedWhenClearFlagSet | Role end date may not be specified when role end date clear flag is set. |
14018 | RoleDescriptionMayNotBeSpecifiedWhenClearFlagSet | Role description may not be set when role description clear flag is set. |
54199 | RdcTransferDataIncomplete | RDC transfer hourly rate specified without and RDC transfer currency, or vice versa. |
54583 | InvalidValueForMode | The value specified for mode is invalid. Valid values are R for Request, A for Allocate and E for Effective (for retrieval operations only). |
54741 | RoleNameNotSpecified | Role name is required for new roles. |
54743 | RoleNameAlreadyInUse | Specified role name is already in use. |
54776 | MissingPreferredAllocatedCostCenter | Missing preferred or allocated cost center. |
54875 | MissingValueForCostCenterOrLocationAnyFlags | Cost center and location any flags are required for new roles. |
57535 | TitleNotFound | The specified title does not exist. |