---
title: "CreateGroupWithPolicy creates a new group with policy."
method: POST
path: "/cosmos.group.v1.Msg/CreateGroupWithPolicy"
tags: ["Msg"]
---

# CreateGroupWithPolicy creates a new group with policy.

`POST /cosmos.group.v1.Msg/CreateGroupWithPolicy`

## Request body

- CosmosGroupV1MsgCreateGroupWithPolicy — MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type.
  - `admin` string — admin is the account address of the group and group policy admin.
  - `decision_policy` GoogleProtobufAny
    - `@type` string
  - `group_metadata` string — group_metadata is any arbitrary metadata attached to the group.
  - `group_policy_as_admin` boolean — group_policy_as_admin is a boolean field, if set to true, the group policy account address will be used as group and group policy admin.
  - `group_policy_metadata` string — group_policy_metadata is any arbitrary metadata attached to the group policy.
  - `members` CosmosGroupV1MemberRequest[] — members defines the group members.
    - `address` string — address is the member's account address.
    - `metadata` string — metadata is any arbitrary metadata attached to the member.
    - `weight` string — weight is the member's voting weight that should be greater than 0.

## Response `200`

A successful response.

- CosmosGroupV1MsgCreateGroupWithPolicyResponse — MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type.
  - `group_id` string, uint64 — group_id is the unique ID of the newly created group with policy.
  - `group_policy_address` string — group_policy_address is the account address of the newly created group policy.

## Other responses

- `default` — An unexpected error response.

## Changes

- **2024-08-14** `21c607e4fa20` — 1 info
  - endpoint added
- **2024-07-31** `19416a3f0cd1` — 1 breaking
  - api path removed without deprecation
- **2024-07-11** `ca7e84576c8e` — 1 info
  - endpoint added
- **2024-05-15** `41fb8b09e244` — 1 breaking
  - api path removed without deprecation
- **2024-04-05** `f64b957aa2be` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/pokt-network/apis/http-api-console/changes/cosmos.group.v1.Msg/CreateGroupWithPolicy/post.md)

---

[API](https://skmtc.dev/pokt-network/apis/http-api-console.md) · [All operations](https://skmtc.dev/pokt-network/apis/http-api-console/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pokt-network/http-api-console/revisions/21c607e4fa20/schema)
