Versions Compared

Key

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

Overview

Save changes to a role type or create a new role type.

...

Panel
titlePwsSaveRoleType Request

Request Elements


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.

AS/RAku1pN9F58A3WQh3aw==
FullDetailFlagBooleanNofalse

If set to true, include full detailed project estimate element PwsRoleTypeElement in response

true

RoleType

PwsRoleTypeDetail

Yes


This structure contains the complete set of information about a role type


Request Usage Example(s)


Code Block
languagexml
titleRequest
collapsetrue
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pws="http://projectorpsa.com/PwsProjectorServices/" xmlns:req="http://projectorpsa.com/DataContracts/Requests/" xmlns:com="http://projectorpsa.com/DataContracts/Shared/Common/" xmlns:com1="http://projectorpsa.com/CommonServices/">
   <soapenv:Header/>
   <soapenv:Body>
      <pws:PwsSaveRoleType>
         <pws:serviceRequest>
            <req:RequestId>1</req:RequestId>
            <req:SessionTicket>AS/RAku1pN9F58A3WQh3aw==</req:SessionTicket>
            <req:FullDetailFlag>true</req:FullDetailFlag>
            <req:RoleType>
               <com:RoleTypeName>Developer</com:RoleTypeName>
               <com:Description>Software Developer (US Based)</com:Description>
               <com:InactiveFlag>false</com:InactiveFlag>
               <com:AllocationFraction>100</com:AllocationFraction>
               <com:BaseRatesOnTitleClearFlag>false</com:BaseRatesOnTitleClearFlag>
               <com:BaseRatesOnTitleIdentity>
                  <com:DepartmentIdentity>
                     <com:DepartmentName>IT Team</com:DepartmentName>
                  </com:DepartmentIdentity>
                  <com:TitleName>Level 1</com:TitleName>
               </com:BaseRatesOnTitleIdentity>
               <com:CostCenterCriteria>
                  <com1:PwsCostCenterCriteria>
                     <com1:CascadeFlag>true</com1:CascadeFlag>
                     <com1:CostCenterIdentity>
                        <com:CostCenterName>IT Team (USA)</com:CostCenterName>
                     </com1:CostCenterIdentity>
                  </com1:PwsCostCenterCriteria>
               </com:CostCenterCriteria>
               <com:CostCenterCriteriaClearFlag>false</com:CostCenterCriteriaClearFlag>
               <com:CostCenterIdentity>
                  <com:CostCenterName>IT Team (Canada)</com:CostCenterName>
               </com:CostCenterIdentity>
               <com:DescriptionClearFlag>false</com:DescriptionClearFlag>
               <com:Keywords>Developer</com:Keywords>
               <com:KeywordsCriteriaClearFlag>false</com:KeywordsCriteriaClearFlag>
               <com:LocationCriteriaClearFlag>false</com:LocationCriteriaClearFlag>
               <com:LocationIdentities>
                  <com:PwsLocationRef>
                     <com:LocationName>USA - California</com:LocationName>
                  </com:PwsLocationRef>
               </com:LocationIdentities>
               <com:LocationIdentity>
                  <com:LocationName>USA - Illinois</com:LocationName>
               </com:LocationIdentity>
               <com:ResourceTypeClearFlag>false</com:ResourceTypeClearFlag>
               <com:ResourceTypeCriteriaClearFlag>false</com:ResourceTypeCriteriaClearFlag>
               <com:ResourceTypeIdentities>
                  <com:PwsResourceTypeRef>
                       <com:ResourceTypeName>Full Time Employee</com:ResourceTypeName>
                  </com:PwsResourceTypeRef>
               </com:ResourceTypeIdentities>
               <com:ResourceTypeIdentity>
                  <com:ResourceTypeName>Subcontractor</com:ResourceTypeName>
               </com:ResourceTypeIdentity>
               <com:SkillCriteria>
                  <com:PwsSkillCriteria>
                     <com:SkillIdentity>
                        <com:SkillGroupIdentity>
                           <com:SkillGroupName>Languages</com:SkillGroupName>
                        </com:SkillGroupIdentity>
                        <com:SkillName>French</com:SkillName>
                     </com:SkillIdentity>
                     <com:SkillLevelMask>2</com:SkillLevelMask>
                  </com:PwsSkillCriteria>
               </com:SkillCriteria>
               <com:SkillCriteriaClearFlag>false</com:SkillCriteriaClearFlag>
               <com:SortOrder>1</com:SortOrder>
               <com:TitleCriteriaClearFlag>true</com:TitleCriteriaClearFlag>
               <com:TitleIdentities>
                  <com:PwsTitleRef>
                     <com:DepartmentIdentity>
                        <com:DepartmentName>IT Team</com:DepartmentName>
                     </com:DepartmentIdentity>
                     <com:TitleName>Level 1</com:TitleName>
                  </com:PwsTitleRef>
               </com:TitleIdentities>
               <com:TitleIdentity>
                  <com:DepartmentIdentity>
                     <com:DepartmentName>Management Team</com:DepartmentName>
                  </com:DepartmentIdentity>
                  <com:TitleName>Level 1</com:TitleName>
               </com:TitleIdentity>
            </req:RoleType>
         </pws:serviceRequest>
      </pws:PwsSaveRoleType>
   </soapenv:Body>
</soapenv:Envelope>

...

Panel
titlePwsSaveRoleType Response

Response Elements


Element

Data Type

Description


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.

2022-10-21T18:47:16.2378555Z

RoleType

PwsRoleTypeElement

The details of the role type that was fetched.


RoleTypeIdentity

PwsRoleTypeRef

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


Response Usage Example(s)

...


ErrorNumber

ErrorCode

ErrorText

10119ValueBelowMinimumThe value specified in the field "AllocationFraction" in the class "PwsRoleTypeDetail" is out of range. The value must not be less than 0.
50024EntityNotFoundCriteria Cost Center: Cost Center was not found. Another user may have deleted it.