--- title: CdmPoliciesApi description: The CdmPoliciesApi provides endpoints that enable you to manage policy mappings of deployables in Configuration Data Management \(CDM\). Policies that are properly mapped to a deployable are executed when a snapshot of the deployable is validated.Deletes the mapping of a specified policy to a deployable.Returns the resolved inputs for a specified policy mapping of a deployable.Maps a specified policy to a deployable.Updates the additionalDeployablesInput input variable of a Configuration Data Management \(CDM\) policy mapping.Updates a specified input variable for a Configuration Data Management \(CDM\) policy mapping. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/api-reference/rest-apis/policies-api.html release: australia product: REST APIs classification: rest-apis topic_type: concept last_updated: "2026-03-12" reading_time_minutes: 18 breadcrumb: [REST API reference, API reference, API implementation and reference] --- # CdmPoliciesApi The CdmPoliciesApi provides endpoints that enable you to manage policy mappings of deployables in Configuration Data Management \(CDM\). Policies that are properly mapped to a deployable are executed when a snapshot of the deployable is validated. You must have one of the following roles to access the endpoints in this API: - Scripted REST CDM View ACL - Scripted REST CDM Admin ACL In addition, the Configuration Data Management \(CDM\) plugin must be activated for this API to be available in an instance. For additional information on policy mappings, see [Map policies to a deployable](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/it-service-management/cdm-deployable-map-policy-to.md). **Parent Topic:**[REST API reference](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-apis/api-rest.md) ## CdmPoliciesApi - DELETE /sn\_cdm/policies/mappings Deletes the mapping of a specified policy to a deployable. The caller of this endpoint must have the CDM Admin role. ### URL format Versioned URL: `/api/sn_cdm/{api_version}/policies/mappings` Default URL: `/api/sn_cdm/policies/mappings` **Note:** Available versions are specified in the [REST API Explorer](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-api-explorer/use-REST-API-Explorer.md). For scripted REST APIs there is additional version information on the [Scripted REST Service form](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-api-explorer/c_CustomWebServices.md). ### Supported request parameters
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| Name | Description |
|---|---|
| appName | Required. Name of the Configuration Data Management \(CDM\) application for which to remove the mapping to the policy.Data type: String Table: CDM Application \[sn\_cdm\_application\] |
| deployableName | Required. Name of the CDM deployable for which to remove the mapping to the policy.Data type: String Table: CDM Deployable \[sn\_cdm\_deployable\] |
| policyName | Required. Name of the associated policy.Data type: String Table: Policy \[sn\_pace\_policy\] |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| error | If an error occurred during processing, the details about the error.Data type: Object ``` "error": { "detail": "String", "message": "String" } ``` |
| error.detail | Additional information about the error.Data type: String |
| error.message | Error message that was generated while trying to process the request.Data type: String |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| Name | Description |
|---|---|
| appName | Required. Name of the Configuration Data Management \(CDM\) application associated with the deployable for which to return the resolved policy inputs.Data type: String Table: CDM Application \[sn\_cdm\_application\] |
| deployableName | Required. Name of the CDM deployable for which to return the resolved policy.Data type: String Table: CDM Deployable \[sn\_cdm\_deployable\] |
| policyName | Required. Name of the associated policy.Data type: String Table: Policy \[sn\_pace\_policy\] |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| result | Name-value pair list of all resolved inputs for the specified policy mapping. For example: `{"input_name": "user_1", "input_password": "" }` Data type: Object |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| Name | Description |
|---|---|
| appName | Required. Name of the Configuration Data Management \(CDM\) application for which to map the policy.Data type: String Table: CDM Application \[sn\_cdm\_application\] |
| deployableName | Required. Name of the CDM deployable for which to map the policy.Data type: String Table: CDM Deployable \[sn\_cdm\_deployable\] |
| policyName | Required. Name of the associated policy.Data type: String Table: Policy \[sn\_pace\_policy\] |
| returnFields | List of fields to return as part of the response. Pass the record column names such as sys\_id, sys\_updated\_by, or state.Data type: Array Default: All fields as determined by the endpoint |
| Name | Description |
|---|---|
| description | Description of the mapping.Data type: String |
| document | Sys\_id of the document.Data type: String |
| document\_ref | Details of the document\_ref record associated with the node. Data type: Object ``` "document_ref": { "link": "String", "value": "String" } ``` |
| document\_ref.link | Call syntax for querying the deployable record mapped to the policy using the Table REST API.PaCE uses this field to store the reference to the deployable that is mapped to a policy. Data type: String |
| document\_ref.sys\_id | Sys\_id of the deployable record mapped to the policy.Data type: String |
| error | If an error occurred during processing, the details about the error.Data type: Object ``` "error": { "detail": "String", "message": "String" } ``` |
| error.detail | Additional information about the error.Data type: String |
| error.message | Error message that was generated while trying to process the request.Data type: String |
| exception | If there's an exception while trying to perform the mapping, the link to the exception record.Data type: String |
| exception\_allowed | Flag that indicates whether exceptions are allowed for the policy.Possible values: - true: Exceptions are allowed. - false: Exceptions aren't allowed. Data type: Boolean |
| input\_status | Status of the inputs.Possible values: - invalid - valid Data type: String |
| last\_updated\_by | Details of the user that last updated the policy mapping. Data type: Object ``` "last_updated_by": { "link": "String", "value": "String" } ``` |
| last\_updated\_by.link | Call syntax for querying the user record using the Table REST API.Data type: String |
| last\_updated\_by.sys\_id | Sys\_id of the user record.Data type: String Table: User \[sys\_user\] |
| number | Unique number that identifies the mapping. This value provides a human-readable identifier for the mapping.Data type: String |
| policy | Details of the policy record associated with the mapping. Data type: Object ``` "policy": { "link": "String", "value": "String" } ``` |
| policy.link | Call syntax for querying the policy record mapped to the policy using the Table REST API.Data type: String |
| policy.sys\_id | Sys\_id of the policy record.Data type: String Table: Policy \[sn\_pace\_policy\] |
| reason | Description of the reason for the current state.Data type: String |
| state | Current state of the mapping.Possible values: - active - inactive Data type: String |
| sys\_class\_name | Table name of the policy mapping.Data type: String |
| sys\_created\_by | Name of the user that created the mapping.Data type: String |
| sys\_created\_on | Date and time when the mapping was created.Data type: String Format: yyyy-mm-dd hh:mm:ss |
| sys\_id | Sys\_id of the mapping.Data type: String Table: Policy Mapping \[sn\_pace\_policy\_mapping\] |
| sys\_updated\_by | Name of the user that updated the mapping.Data type: String |
| sys\_updated\_on | Date and time when the mapping was last updated.Data type: String Format: yyyy-mm-dd hh:mm:ss |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| Name | Description |
|---|---|
| additionalDeployables | Required. List of deployables to add to the additionalDeployablesInput input variable.Data type: Array of Objects ``` "additionalDeployables": [ { "appName": "String", "deployableName": "String" } ] ``` |
| additionalDeployables.appName | Required. Name of the CDM application to which the deployable is associated.Data type: String Table: CDM Application \[sn\_cdm\_application\] |
| additionalDeployables.deployableName | Required. Name of the CDM deployable to add to the additionalDeployablesInput input variable.Data type: String Table: CDM Deployable \[sn\_cdm\_deployable\] |
| appName | Required. Name of the CDM application for which to update the additionalDeployablesInput input variable.Data type: String Table: CDM Application \[sn\_cdm\_application\] |
| deployableName | Required. Name of the CDM deployable for which to update the additionalDeployablesInput input variable.Data type: String Table: CDM Deployable \[sn\_cdm\_deployable\] |
| policyName | Required. Name of the associated policy.Data type: String Table: Policy \[sn\_pace\_policy\] |
| returnFields | List of fields to return as part of the response. Pass the record column names such as sys\_id, sys\_updated\_by, or state.Data type: Array Default: All fields as determined by the endpoint |
| Name | Description |
|---|---|
| io\_definition | Details about the associated PaCE IO definition record.For additional information on PaCE, see [Policy as Code Engine \(PaCE\)](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/servicenow-platform/pace-managing-policies.md). Data type: Object ``` "io_definition": { "link": "String", "value": "String" } ``` |
| io\_definition.link | Call syntax for querying this PaCE IO definition record using the Table REST API.Data type: String |
| io\_definition.value | Sys\_id of the PaCE IO definition record. Data type: String Table: IO Mapping \[sn\_pace\_io\_mapping\] |
| is\_unused | Flag that indicates whether the mapping input variable is unused.Possible values: - true: Associated mapping input variable isn't currently used. - false: Associated mapping input variable is currently used. Data type: Boolean |
| mapped\_value | Current value of the mapping input variable.Data type: Array of Objects or String |
| policy\_mapping | Details about the PaCE policy-mapping record.For additional information on PaCE, see [Policy as Code Engine \(PaCE\)](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/servicenow-platform/pace-managing-policies.md). Data type: Object ``` "policy_mapping": { "link": "String", "value": "String" } ``` |
| policy\_mapping.link | Call syntax for querying the policy mapping record using the Table REST API.Data type: String |
| policy\_mapping.value | Sys\_id of the PaCE policy-mapping record.Data type: String Table: Policy Mapping \[sn\_pace\_policy\_mapping\] |
| sys\_created\_by | Name of the user that created the mapping input variable.Data type: String |
| sys\_created\_on | Date and time when the mapping input variable was created.Data type: String Format: yyyy-mm-dd hh:mm:ss |
| sys\_id | Sys\_id of the associated mapping record.Data type: String Table: IO Mapping \[sn\_pace\_io\_mapping\] |
| sys\_updated\_by | Name of the user that updated the mapping input variable.Data type: String |
| sys\_updated\_on | Date and time when the mapping input variable was last updated.Data type: String Format: yyyy-mm-dd hh:mm:ss |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| Name | Description |
|---|---|
| appName | Required. Name of the CDM application for which to update the policy mapping inputs.Data type: String Table: CDM Application \[sn\_cdm\_application\] |
| deployableName | Required. Name of the CDM deployable for which to update the policy mapping inputs.Data type: String Table: CDM Deployable \[sn\_cdm\_deployable\] |
| inputName | Required. Name of the input variable to update.Data type: String Table: IO Mapping \[sn\_pace\_io\_mapping\] |
| inputValue | Required. Value to assign to the input variable.Data type: Dependant on the input variable. You can find the data type in the IO Mapping \[sn\_pace\_io\_mapping\] table. |
| policyName | Required. Name of the associated policy.Data type: String Table: Policy \[sn\_pace\_policy\] |
| returnFields | List of fields to return as part of the response. Pass the record column names such as sys\_id, sys\_updated\_by, or state.Data type: Array Default: All fields as determined by the endpoint |
| Name | Description |
|---|---|
| io\_definition | Details about the associated PaCE IO definition record.For additional information on PaCE, see [Policy as Code Engine \(PaCE\)](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/servicenow-platform/pace-managing-policies.md). Data type: Object ``` "io_definition": { "link": "String", "value": "String" } ``` |
| io\_definition.link | Call syntax for querying this PaCE IO definition record using the Table REST API.Data type: String |
| io\_definition.value | Sys\_id of the PaCE IO definition record. Data type: String Table: IO Mapping \[sn\_pace\_io\_mapping\] |
| is\_unused | Flag that indicates whether the mapping input variable is unused.Possible values: - true: Associated mapping input variable isn't currently used. - false: Associated mapping input variable is currently used. Data type: Boolean |
| mapped\_value | Current value of the mapping input variable.Data type: Array of Objects or String |
| policy\_mapping | Details about the PaCE policy-mapping record.For additional information on PaCE, see [Policy as Code Engine \(PaCE\)](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/servicenow-platform/pace-managing-policies.md). Data type: Object ``` "policy_mapping": { "link": "String", "value": "String" } ``` |
| policy\_mapping.link | Call syntax for querying the policy mapping record using the Table REST API.Data type: String |
| policy\_mapping.value | Sys\_id of the PaCE policy-mapping record.Data type: String Table: Policy Mapping \[sn\_pace\_policy\_mapping\] |
| sys\_created\_by | Name of the user that created the mapping input variable.Data type: String |
| sys\_created\_on | Date and time when the mapping input variable was created.Data type: String Format: yyyy-mm-dd hh:mm:ss |
| sys\_id | Sys\_id of the associated mapping record.Data type: String Table: IO Mapping \[sn\_pace\_io\_mapping\] |
| sys\_updated\_by | Name of the user that updated the mapping input variable.Data type: String |
| sys\_updated\_on | Date and time when the mapping input variable was last updated.Data type: String Format: yyyy-mm-dd hh:mm:ss |