Creating a Request

Request: http://<PPM_Server_IP>:<port>/itg/rest/dm/requests

HTTP Method: POST

Request Header: Authenticaion: <username>:<password>

Description: Create a new request

Response entity body:

  • on success: Return an XML object of the created request with the following format.

    <tns:request xmlns:tns="http://www.hp.com/ppm/dm/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.hp.com/ppm/dm/Request.xsd ">
       <id>32412</id>
       <description>description</description>
       <requestType>Project Issue</requestType>
       <sourceType>sourceType</sourceType>
       <source>source</source>
       <fields>
         <field>
           <token>REQ.DESCRIPTION</token>
           <stringValue>My Sample</stringValue>
         </field>
         <field>
          <token>REQ.PRIORITY_NAME</token>
          <stringValue>Normal</stringValue>
         </field>
       </fields>
    </tns:request>
  • on failure: The following message codes are returned if the operation fails:

    Message Code

    Message

    Cause

    Possible Corrective Action

    PPM_WSE001

    Cannot Get Internal Server Connection

    There was an error when you tried to connect to the PPM server.

    N/A

    PPM_WSE109

    The request type of request cannot be empty

    The request type of request is empty.

    Specify a request type for the request.

    PPM_SWE117

    Invalid workflow step

    The workflow step is not valid.

    N/A

Limitation:

This operation supports field security check, but it ignores user interface (UI) rules or status dependency. Such constraints have to be validated and enforced on the client side before this operation is invoked.