---
title: "Create a global policy in a project"
method: POST
path: "/apiops/projects/{projectName}/globalPolicies/"
tags: ["GlobalPolicy"]
---

# Create a global policy in a project

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

## Request

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

Creates a new global policy from the supplied policy snapshot JSON. Used by cross-instance promotion to materialize a source proxy's global policy on the target as a standalone, reusable global policy. The policy is created through its policy type's own service and gets that service's checks (a rejected policy returns 400); MCP / A2A policies and the few types without such a service are stored as the import does. Secret fields may be sent as plaintext or as the encrypted value from an export/promotion snapshot: a plaintext value is encrypted before it is stored, an already-encrypted value (or a ${VAR} reference) is stored as is. An AI policy needs the AI Development permission, the others API Management.

## Path parameters

- `projectName` string, required

## Request body

- object

## Response `200`

successful operation!

- ApiOpsResponseGlobalPolicy
  - `status` 'SUCCESS' | 'FAILURE'
  - `resultMessage` string
  - `resultList` GlobalPolicyManagementDTO[]
    - `id` string
    - `name` string
    - `policyType` string
    - `policyTypeLabel` 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/globalPolicies/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)
