---
id: approval-action-associate-policy
title: "Associate policy with action"
description: "Associates a policy with the specified approval action."
sidebar_label: "Associate policy with action"
hide_title: true
hide_table_of_contents: true
api: eJzdVttu4zYQ/RVinnYBre3cXvTmTbdo+tIg8aILJEYwFscWdylSS1JOXEP/Xgwp2/IFSS9oCzQPikQPh2fOzCHOGiT5wqk6KGsgh7H3tlAYyAsUtdWqWIlnFUoRShK+pkLNFUmBde3sErXAgjcOIANbk0P+uJGQwybgKQXkuMn7lJJCBgEXHvIHGMcImGbgqWicCivIH9YwI3Tkxk0oIX+YttMManRYUSDnY4BivDWGEjIwWBHkoCRk4IuSKoR8DWFVx1UTaEEO2gwcfW+UIwl5cA1lB8VPShI3Pwg7j9WeqJFesKo1QX52fnHJkDgf+fDRyhUfWFgTyAR+xbrWqoiEDL96Tr/uIasd0xUU+fgVKXlS8gTo1zF2HQpWbAkeQBv/GJyvrfHpjPPRiP8dJ9v2TTyjF74pCvJ+3miu9y/W0yXpVTOzVhOao2pujOSk5MVzSaEkF6t6DdK2BdzATaWXX74cF3etFZkgyDnrxJYLIRtivpRZolZSKFM3QVgnKuW9Mguxm7I/xUBXqJ19pSJAf9IewAcMjb+2krgAxgMZVOQ9Lojn/oC9XfTb4/DTZHIr0g5RWEnCUe3IkwlcS0+0hSj6fLyjwWKQicvRiB9n/Ljgx+X7PZIvR6OWSdjD4oNTZnEEZSwqLEpl6IMjlDjT1J0VcYUSg+BWL6xTv5FP2MgtyYk5Kt042jsZZiifOnmxchNtfwDEzCmaZ6JsKjQ7JL2ojXYSOE63YeMRPqIUd+nQR+CFzwabUEbI8hH2yelHM8RNR98GKaXiV9RCUkClvcCZbcIO1v45LNOOiqiICvXcuoqkiOyagMqQ3I50f4I3Crk6pZD7RP+hQlQSJQ8QGqG8b0hYE8GNb2+EV5L+Z9LwfSK6YbhiaVyNzvlxsd/4q/9OFVysM6ifUtBTouxf08dNd7zoRucTxySl8IoqSHw2uESlOeuRYE5u/0elMzaiMfRSUxFIdiXZomicIzkQt5rQkwhuJXCBygiNgdxGNRFXKC37mdp6Ht1oN3IYbrzBMHmD4VrJdrh1Nqk3yaU0TkMOZQi1z4dDrNXANFrXGgNLeFDYCtqe9bln1aRh7xugLS2caONx4i0ZgyDrXn60rsIAOfz86wS4AFbj3c6kfNoQs2c6eJqVmVteZuCJ6rPBaDBin6ZCorKrmfvFdFQYdd5Zr61x3HONiZ7DLvaM0t8wnB0jgV7CsNaoDAOLdK+7Pj1sbShksIWSR5fYNWuaQcmtzR9gvZ6hp89Oty0vf2/IsROdZrBEp3ieY0Ol8vwuIZ+j9ocesl/au7vuonsv3nSWJ4vpFtHwUC1RN/wFGXyjVTK77bTNoCSU5CK29MN1QvBhwtt3G48u6Tbb7BgXBdXh1dhpTwy3v9xPeOQ611vFixAcPvPljs8JpI2MxEmOa2vQaBZNVDmknDyguD/fB/McqzpJw3qdIib2G5m23bIS+JuJadvfAcZjdyo=
sidebar_class_name: "post api-method"
info_path: docs/api/approval
custom_edit_url: null
---

import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import ParamsDetails from "@theme/ParamsDetails";
import RequestSchema from "@theme/RequestSchema";
import StatusCodes from "@theme/StatusCodes";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
import Heading from "@theme/Heading";

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"Associate policy with action"}
>
</Heading>

<MethodEndpoint
  method={"post"}
  path={"/approval/action/{id}/policy"}
  context={"endpoint"}
>
  
</MethodEndpoint>



Associates a policy with the specified approval action.

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
  children={"Request"}
>
</Heading>

<ParamsDetails
  parameters={[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"The ID of the approval action.","example":1234}]}
>
  
</ParamsDetails>

<RequestSchema
  title={"Body"}
  body={{"content":{"application/json":{"schema":{"properties":{"policy_id":{"type":"integer","description":"The ID of the policy to associate."}}}}}}}
>
  
</RequestSchema>

<StatusCodes
  id={undefined}
  label={undefined}
  responses={{"200":{"description":"The operation was successful.","content":{"application/json":{"schema":{"properties":{"success":{"type":"boolean","description":"Indicates whether the operation was successful.","example":true}}}}}},"4XX":{"description":"Client error responses due to invalid input or missing parameters.","content":{"application/json":{"schema":{"type":"object","required":["statusCode","error","message"],"properties":{"statusCode":{"type":"integer","description":"HTTP status code representing the specific client error (e.g., 400, 401, 403, 404).","example":400},"code":{"type":"string","description":"A machine-readable error code that categorizes the server failure.","example":"bad_request"},"error":{"type":"string","description":"A brief, human-readable description of the error type (e.g., \"Bad Request\", \"Unauthorized\").","example":"Bad Request"},"message":{"type":"string","description":"Additional details about the error.","example":"The request was malformed or contained invalid parameters."}}}}}},"5XX":{"description":"Server error responses indicating an issue on the API side.","content":{"application/json":{"schema":{"type":"object","required":["statusCode","error","message"],"properties":{"statusCode":{"type":"integer","description":"HTTP status code representing the specific server error (e.g., 500, 502, 503).","example":500},"code":{"type":"string","description":"A machine-readable error code that categorizes the server failure.","example":"internal_server_error"},"error":{"type":"string","description":"A brief, human-readable description of the error type (e.g., \"Internal Server Error\", \"Service Unavailable\").","example":"Internal Server Error"},"message":{"type":"string","description":"Additional details about the error.","example":"An unexpected error occurred. Please try again later."}}}}}}}}
>
  
</StatusCodes>


      