Edit a PaCE policy script
Edit the PaCE policy script to apply any changes to the policy logic.
Before you begin
Role required: sn_pace.code_editor
About this task
Important: For further information about testing your policy script, see Use the Test Playground for PaCE policies.
Procedure
-
Navigate to All > Policies > My Policies.
Note: To view all policies generated by admin/other users, navigate to Policies > All Policies.
-
Select the policy for which you want to update the script.
-
In the Details form of the relevant policy, click the Versions tab and select the version you want to edit.
-
In the policy version page, click the Policy builder tab.
The following image shows a sample policy script.
[Omitted image "pace-policy-script-2.jpg"] Alt text: Policy script.
Note: The script is editable for policy versions in Draft state only. For policy versions in Current or Archived state, the script is read-only.
-
Apply any changes to the policy script, as required.
-
Click Save.
---
title: Edit a PaCE policy script
description: Edit the PaCE policy script to apply any changes to the policy logic.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/servicenow-platform/policy-as-code-engine-pace/pace-edit-policy-script.html
release: brazil
product: Policy as Code Engine \(PaCE\)
classification: policy-as-code-engine-pace
topic_type: task
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [Create PaCE policy versions, Manage PaCE policy versions, Administer PaCE policies, Policy as Code Engine \(PaCE\), Extend ServiceNow AI Platform capabilities]
---
# Edit a PaCE policy script
Edit the PaCE policy script to apply any changes to the policy logic.
## Before you begin
Role required: sn\_pace.code\_editor
## About this task
**Important:** For further information about testing your policy script, see [Use the Test Playground for PaCE policies](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/servicenow-platform/policy-as-code-engine-pace/pace-use-test-playground.md).
## Procedure
1. Navigate to **All** > **Policies** > **My Policies**.
**Note:** To view all policies generated by admin/other users, navigate to **Policies** > **All Policies**.
2. Select the policy for which you want to update the script.
3. In the Details form of the relevant policy, click the **Versions** tab and select the version you want to edit.
4. In the policy version page, click the **Policy builder** tab.
The following image shows a sample policy script.
\[Omitted image "pace-policy-script-2.jpg"\] Alt text: Policy script.
**Note:** The script is editable for policy versions in Draft state only. For policy versions in Current or Archived state, the script is read-only.
5. Apply any changes to the policy script, as required.
6. Click **Save**.
| title | Edit a PaCE policy script |
| description | Edit the PaCE policy script to apply any changes to the policy logic. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/servicenow-platform/policy-as-code-engine-pace/pace-edit-policy-script.html |
| release | brazil |
| product | Policy as Code Engine \(PaCE\) |
| classification | policy-as-code-engine-pace |
| topic_type | task |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | Create PaCE policy versionsManage PaCE policy versionsAdminister PaCE policiesPolicy as Code Engine \(PaCE\)Extend ServiceNow AI Platform capabilities |