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

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

`PUT /groups/{hash}/policies`

## Path parameters

- `hash` string, required

## Request body

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

## Response `200`

group policy patched successful

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

## Other responses

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

---

[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)
