Updates an existing policy within the AgentCore Policy system. This operation allows modification of the policy description and definition while maintaining the policy's identity. The updated policy is validated against the Cedar schema before being applied. This is an asynchronous operation. Use the <code>GetPolicy</code> operation to poll the <code>status</code> field to track completion.
patch/policy-engines/{policyEngineId}/policies/{policyId}
Path parameters
policyEngineIdstring required
The identifier of the policy engine that manages the policy to be updated. This ensures the policy is updated within the correct policy engine context.
policyIdstring required
The unique identifier of the policy to be updated. This must be a valid policy ID that exists within the specified policy engine.
Request body
Response
Success