--- title: "Update Policy Assignments Device" slug: "update-policy-assignments-device-2" tags: ["IPS 11.1.x", "Reference"] updated: 2026-11-19T12:56:58Z published: 2026-11-19T12:56:58Z canonical: "docs.trellix.com/update-policy-assignments-device-2" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Update Policy Assignments Device This URL retrieves all policies assigned for the device in the given domain. ### Resource URL PUT domain//policyassignments/device/ ### Request Parameters URL Parameters: | Field Name | Description | Data Type | Mandatory | | --- | --- | --- | --- | | `domain_id` | Domain id | Number | Yes | | `device_id` | Device id | Number | Yes | Payload Request Parameters: | Field Name | Description | Data Type | | --- | --- | --- | | `firewallPolicyLast` | Post firewall policy | String | | `firewallPolicyFirst` | Pre-firewall policy | String | | `reconnaissancePolicy` | Reconnaissance policy | String | ### Response Parameters Following fields are returned if the request parameters are correct, otherwise error details are returned. | Field Name | Description | Data Type | | --- | --- | --- | | `status` | Operation status | Number | ### Example **Request** PUT [https:///sdkapi/domain/0/policyassignments/device/1001](https://<NSM_IP>/sdkapi/domain/0/policyassignemnts/interface/1001) **Payload** ```  {               "firewallPolicyLast": "NSAT_Adv_Rules_for_Interface",               "firewallPolicyFirst": "NSAT_Adv_Rules_for_Interface   }             ``` **Response** ``` { "status": 1 } ``` ### Error Information Following error codes are returned by this URL: | No | HTTP Error Code | SDK API errorId | SDK API errorMessage | | --- | --- | --- | --- | | 1 | 400 | 4301 | Invalid domain id | | 2 | 400 | 1106 | Invalid Sensor id |