Develop > Application Programming Interface > Legacy APIs > Catalog API > Update catalog approval policies

Update catalog approval policies

Use this API to associate an approval policy with the specified catalog.

Details

URI /catalog/<calalog_id>/policy/<policy_id>/setCatalogApprovalPolicy
Use Catalog API to get the catalog ID. Use List organization's approval policies to get an organization's approval policy IDs.
Method POST
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.

Response Body The response body will be an ApprovalPolicyVO of base/full.
Returns 200 - Ok
401 - Not authorized
404 - Object not found
500 - Server exception

Examples

The following URL was sent:

https://<host>:<port>/csa/rest/catalog/8a81818f3d4251ed013d46c2b7f602bc/ policy/8a81818f3d4251ed013d4259f57c0008/setCatalogApprovalPolicy? userIdentifier=90d96588360da0c701360da0f1d5f483

The following XML was returned:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ApprovalPolicyList>
  <count>2</count>
  <limit>0</limit>
  <approvalPolicy>
    <id>8a81818f3d4251ed013d46cc859002c1</id>
    ...
    <approvalTemplate xsi:type="namedApproverApprovalTemplateVO">
     <id>8a81818f3d4251ed013d46cc31ed02be</id>
      <name>EXAMPLE_APPROVAL_POLICY_March 7, 2013 9:40:19 PM UTC </name>
      <automaticApproval>false</automaticApproval>
      <automaticPeriodDuration>0</automaticPeriodDuration>
      <minApprovalRequired>0</minApprovalRequired>
      <approvalLevel>1</approvalLevel>
    </approvalTemplate>
    <catalog>
      <id>8a81818f3d4251ed013d46c2b7f602bc</id>
      <name>SOFTWARE_CATALOG</name>
    </catalog>
  </approvalPolicy>
  <approvalPolicy>
    <id>8a81818f3d4251ed013d46cc85e402c2</id>
    <approvalTemplate>
      <name>USER_CONTEXT_APPROVAL_TEMPLATE_QAORG</name>
      <automaticApproval>false</automaticApproval>
      <automaticPeriodDuration>0</automaticPeriodDuration>
      <minApprovalRequired>0</minApprovalRequired>
      <approvalLevel>1</approvalLevel>
    </approvalTemplate>
    <catalog>
      <id>8a81818f3d4251ed013d46c2b7f602bc</id>
      ...
      <name>SOFTWARE_CATALOG</name>
      ...
    </catalog>
  </approvalPolicy>
</ApprovalPolicyList>