---
title: "Create a policy group in a project"
method: POST
path: "/apiops/projects/{projectName}/policyGroups/"
tags: ["PolicyGroup"]
---

# Create a policy group in a project

`POST /apiops/projects/{projectName}/policyGroups/`

## Request

- Base URL: `http://167.86.118.166:32080`
- URL: `http://167.86.118.166:32080/apiops/projects/{projectName}/policyGroups/`
- Auth: none declared
- TypeScript: <https://skmtc.dev/apinizer/apis/apinizer-management-apis/docs/apiops/projects/:projectName/policyGroups/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates a new policy group from the supplied policy group snapshot JSON. Used by cross-instance promotion to materialize a source proxy's embedded policy group on the target as a standalone, reusable group.

## Path parameters

- `projectName` string, required

## Request body

- object

## Response `200`

successful operation!

- ApiOpsResponsePolicyGroup
  - `status` 'SUCCESS' | 'FAILURE'
  - `resultMessage` string
  - `resultList` PolicyGroupManagementDTO[]
    - `id` string
    - `name` string
    - `targetPipeline` string
  - `resultCount` integer

## Other responses

- `401`: not authorized for this operation!
- `500`: internal error!

## Changes

- **2026-08-11** `9ae232e55479`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/apinizer/apis/apinizer-management-apis/changes/apiops/projects/:projectName/policyGroups/post.md)

---

[API](https://skmtc.dev/apinizer/apis/apinizer-management-apis.md) - [All operations](https://skmtc.dev/apinizer/apis/apinizer-management-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/apinizer/apis/apinizer-management-apis/revisions/e083046b24cd?raw)
