Develop > Application Programming Interface > Legacy APIs > Organization API > List organization's approval policies

List organization's approval policies

Details

URI /organization/<organization_id>/approvalPolicy
Method GET
Parameters

userIdentifier=<user_id>
    Required; the user ID you want to use as credentials for this API call. See Get userIdentifier for the steps required to get the userIdentifier value.

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

Example

The following URL is sent:

https://<host>:<port>/csa/rest/organization/8a81818f3d1421e7013d1423635a0003/ approvalPolicy?userIdentifier=90d96588360da0c701360da0f1d5f483

The following XML is returned:


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ApprovalPolicyList>
  <UserContextApprovalTemplate>
    <id>8a81818f3d1421e7013d1423646e0008</id>
    <objectId>8a81818f3d1421e7013d1423646e0008</objectId>
    <createdOn>2013-02-25T17:34:56.623-08:00</createdOn>
    <updatedOn>2013-02-25T17:34:56.627-08:00</updatedOn>
    ...
    <name>USER_CONTEXT_APPROVAL_TEMPLATE_QA_ORG_1</name>
    <displayName>
      QA Org 1 User Context Approval Template
    </displayName>
    <state> ... </state>
    <artifactType> ... </artifactType>
    ...
    <automaticApproval>false</automaticApproval>
    <automaticPeriodDuration>0</automaticPeriodDuration>
    <minApprovalRequired>0</minApprovalRequired>
    <approvalType>
      <id>90d96588360da0c701360da0f0b40094</id>
      <objectId>90d96588360da0c701360da0f0b40094</objectId>
      <createdOn>2013-02-25T17:32:55.620-08:00</createdOn>
      <isCriticalSystemObject>true</isCriticalSystemObject>
      <description>User Context Template</description>
      <iconUrl>
        /csa/images/categories/approval_type/user_context_template.png
      </iconUrl>
      <name>USER_CONTEXT_TEMPLATE</name>
      <displayName>User Context Template</displayName>
      <disabled>false</disabled>
      <categoryType>
        <id>90d96588360da0c701360da0f0ac0092</id>
        <objectId>90d96588360da0c701360da0f0ac0092</objectId>
        <isCriticalSystemObject>true</isCriticalSystemObject>
        <name>APPROVAL_TYPE</name>
        <displayName>Approval Type</displayName>
        <extensible>false</extensible>
      </categoryType>
    </approvalType>
    <approvalLevel>1</approvalLevel>
  </UserContextApprovalTemplate>
  <NamedApproverApprovalTemplate> ... </NamedApproverApprovalTemplate>
  <NamedApproverApprovalTemplate> ... </NamedApproverApprovalTemplate>
</ApprovalPolicyList>