---
title: "Update or patch policy group by policy hash and group object"
method: PUT
path: "/policies/{hash}/groups"
tags: ["Policies", "Groups"]
---

# Update or patch policy group by policy hash and group object

`PUT /policies/{hash}/groups`

## Path parameters

- `hash` string, required

## Request body

- PrivatePolicyGroupPatch
  - `action` 'activate' | 'deactivate', required — Action on policy group must be one of activate, deactivate
  - `group` ModelsGroup, required
    - `created_date` string
    - `deleted_at` string
    - `hash` string, required
    - `id` integer
    - `info` ModelsGroupInfo, required
      - `name` ModelsGroupItemLocale, required
        - `en` string, required
        - `ru` string, required
      - `system` boolean
      - `tags` string[], required
    - `updated_at` string

## Response `200`

policy group patched successful

- SuccessResponse
  - `data` object
  - `status` string

## Other responses

- `400` — invalid patch request data
- `403` — updating policy group not permitted
- `404` — policy or group not found
- `500` — internal error on updating policy group

---

[API](https://skmtc.net/vxcontrol/apis/soldr-swagger-api.md) · [All operations](https://skmtc.net/vxcontrol/apis/soldr-swagger-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vxcontrol/soldr-swagger-api/versions/ac519ec936b3/schema)
