Develop > Application Programming Interface > Legacy APIs > User API > List active requests for user

List active requests for user

Details

URI /user/myrequest
Method GET
Parameters

userIdentifier=<user_id>
    Required; this user must be in the same organization as submitter, and must have the necessary permissions for the data you want to work with. See Get userIdentifier for the steps required to get the userIdentifier value.

scope=[base|view]
    Optional; default is base.

detail=basic
    Optional; The only valid value is basic.

sbmitter=<user_name>
    Required; user name must be valid, and is the user whose request list will be returned by this call. submitter must be in the same organization as the user specified by userIdentifier.

returnRetired=[true|false]
    Optional; default is false.

submitStartDate=<yyyy-MM-ddTHH:mm:ss>
    Optional; requests submitted on or after start date and time will be included in the return. T serves as a separator between data and time. Time will default to 00:00:00 if not specified. Date and time are assumed to be in the time zone of the CSA server.

submitEndDate=<yyyy-MM-ddTHH:mm:ss>
    Optional; requests submitted before end date and time will be included in the return. T serves as a separator between data and time. Time will default to 00:00:00 if not specified. Date and time are assumed to be in the time zone of the CSA server.

Returns 200 - Ok
401 - Not authorized
404 - Not found
500 - Server exception

Examples

The following URL was sent:

https://<host>:<port>/csa/rest/user/myrequest?userIdentifier=8a8181853810699a01381076be5400a0 &submitter=acctgconsumer

The following XML was returned in the response:


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ServiceRequestList>
    <count>21</count>
    <limit>0</limit>
    <ServiceRequest>
        <id>8a8181853810699a01381079190800a7</id>
        <objectId>8a8181853810699a01381079190800a7</objectId>
        <createdOn>2012-06-21T12:16:08.073-07:00</createdOn>
        <updatedOn>2012-06-21T12:16:50.787-07:00</updatedOn>
        <isCriticalSystemObject>false</isCriticalSystemObject>
        <description>SD2 Offering</description>
        <detailedDescription>desc - SD2 offering</detailedDescription>
        <iconUrl>/csa/images/library/application.png</iconUrl>
        <name>request 1</name>
        <displayName>request 1</displayName>
        <state>
            <id>90d96588360da0c701360da0ef470038</id>
            <objectId>90d96588360da0c701360da0ef470038</objectId>
            <createdOn>2012-06-21T11:51:43.267-07:00</createdOn>
            <isCriticalSystemObject>true</isCriticalSystemObject>
            <description>Active</description>
            <iconUrl>/csa/images/categories/artifact_state/active.png</iconUrl>
            <name>ACTIVE</name>
            <displayName>Active</displayName>
            <disabled>false</disabled>
            <categoryType>
                <id>90d96588360da0c701360da0ef420037</id>
                <objectId>90d96588360da0c701360da0ef420037</objectId>
                <isCriticalSystemObject>true</isCriticalSystemObject>
                <name>ARTIFACT_STATE</name>
                <displayName>Artifact State</displayName>
                <extensible>false</extensible>
           </categoryType>
        </state>
        ...
     </ServiceRequest>
</ServiceRequestList>