/
PwsDeleteRoleType

PwsDeleteRoleType

Overview


This web service deletes a specified role type. The service will return the identity of the deleted role type.


Rate Limiting

In order to protect our servers from inadvertent service overuse or intentional attack, and to fairly distribute services to all our customers, we have implemented a rate limiting algorithm.  When fully deployed, this new algorithm will cause services to either succeed with new warnings or fail with new errors when services are consumed at too high a rate.  Programs that consume Projector services should be enhanced to handle rate limiting errors so that they can continue functioning properly.  For more information please visit: Projector Rate Limiting Behavior.


Request Format


PwsDeleteRoleType 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==

InactivateIfInUseFlag

Boolean

No

false

If set to 'true', the role type will be set to inactive in the event it cannot e delete

true

RoleTypeIdentity

PwsRoleTypeRef

Yes


This is the identity of the role type to be deleted. Click here for more information.


Request Usage Example(s)


Request
<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/">
   <soapenv:Header/>
   <soapenv:Body>
      <pws:PwsDeleteRoleType>
         <pws:serviceRequest>
            <req:RequestId>1</req:RequestId>
            <req:SessionTicket>AS/RAku1pN9F58A3WQh3aw==</req:SessionTicket>
            <req:InactivateIfInUseFlag>true</req:InactivateIfInUseFlag>
            <req:RoleTypeIdentity>
               <com:RoleTypeName>Product Owner</com:RoleTypeName>
            </req:RoleTypeIdentity>
         </pws:serviceRequest>
      </pws:PwsDeleteRoleType>
   </soapenv:Body>
</soapenv:Envelope>

Response Format


PwsDeleteRoleType Response

Response Elements


Element

Data Type

Description

Sample Data

Messages

PwsMessage[]

The web service response status and message. Click here for more information


ResponseId

Int32

Click here for more information.

Status

RequestStatus

Click here for more information.

Ok 

ServerTimestampUtc

DateTime

Click here for more information.

2022-10-21T19:41:52.6505682Z 

RoleTypeIdentity

PwsRoleTypeRef

The identity of the deleted role type.


Response Usage Example(s)


Response
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>
      <PwsDeleteRoleTypeResponse xmlns="http://projectorpsa.com/PwsProjectorServices/">
         <PwsDeleteRoleTypeResult xmlns:a="http://projectorpsa.com/DataContracts/Responses/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
            <Messages xmlns="http://projectorpsa.com/CommonServices/" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
               <b:PwsMessage>
                  <b:AdditionalErrorText>Message 136: This request was executed against the Staging [appst.projectorpsa.com] environment.</b:AdditionalErrorText>
                  <b:ErrorCode>NonProductionEnvironment</b:ErrorCode>
                  <b:ErrorNumber>136</b:ErrorNumber>
                  <b:ErrorText>This web service request was executed against a non-production instance of Projector.</b:ErrorText>
                  <b:Type>Information</b:Type>
                  <b:ReferenceId1 i:nil="true"/>
                  <b:ReferenceId2 i:nil="true"/>
               </b:PwsMessage>
            </Messages>
            <ResponseId xmlns="http://projectorpsa.com/CommonServices/">1</ResponseId>
            <Status xmlns="http://projectorpsa.com/CommonServices/">Ok</Status>
            <ServerTimestampUtc xmlns="http://projectorpsa.com/CommonServices/">2022-10-21T19:41:52.6505682Z</ServerTimestampUtc>
            <a:RoleTypeIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
               <b:RoleTypeId i:nil="true"/>
               <b:RoleTypeName>Product Owner</b:RoleTypeName>
               <b:RoleTypeUid>1152921504606848579</b:RoleTypeUid>
            </a:RoleTypeIdentity>
         </PwsDeleteRoleTypeResult>
      </PwsDeleteRoleTypeResponse>
   </s:Body>
</s:Envelope>

PwsDeleteRoleType - Common Errors and Warnings

ErrorNumber

ErrorCode

ErrorText

50024EntityNotFoundRole Type was not found. Another user may have deleted it.