SOAP API - closeWorkItem

The table summarizes the SOAP API - closeWorkItem.

Request Uses the workRequest element (from the WorkPresentationService schema)
Parameter notes
  • channelId: ID of the channel to use. If it is omitted, the default channel for the specified channelType is used.
  • workItemID: ID of the work item to be closed.
  • version: (Optional). If it is omitted, the latest version is used.
  • payloadDetails: the complete body of the work item: data to be written to the work item as part of the Close action.

    See Valid Format for DataModel for information about the valid format.

  • openNextPiled: This parameter is not applicable to openWorkItem , cancelWorkItem , or closeWorkItem . The boolean value specified is used only when calling completeWorkItem .
Response Returns a workResponse element (from the WorkPresentationService schema)
Example Request:
<soapenv:Body>
      <api:workRequest action="?">
         <resourceId>2D6430DC-9A65-4F21-A3BE-798AA192E468</resourceId>
         <channelId>?</channelId>
         <channelType>openspaceChannel</channelType>
         <responsePayloadMode>XML</responsePayloadMode>
         <workItem id="38" version="1">?</workItem>
         <workTypeDetail uid="WT__UZikcDjhEeCeRNBOZebDZA" version="1.0.0.201108111516" openNextPiled="true"/>
         <payloadDetails payloadMode="XML">
	   <XmlPayload>
               <inputs array="false" name="UserName" type="String">
                  <simpleSpec>
                     <value>TIB_USER</value>
                  </simpleSpec>
               </inputs>
            </XmlPayload>
         </payloadDetails>
      </api:workRequest>
   </soapenv:Body>
Response:
<SOAP-ENV:Body>
      <workResponse isSuccessful="true" xmlns="http://api.wp.n2.tibco.com"/>
   </SOAP-ENV:Body>