---
title: "Create an Environment(Endpoint) Group"
method: POST
path: "/endpoint_groups"
tags: ["endpoint_groups"]
---

# Create an Environment(Endpoint) Group

`POST /endpoint_groups`

Create a new environment(endpoint) group.
**Access policy**: administrator

## Request body

- EndpointgroupsEndpointGroupCreatePayload
  - `AssociatedEndpoints` integer[] — List of environment(endpoint) identifiers that will be part of this group
  - `Description` string — Environment(Endpoint) group description
  - `Name` string, required — Environment(Endpoint) group name
  - `TagIDs` integer[] — List of tag identifiers to which this environment(endpoint) group is associated

## Response `200`

Success

- PortainerEndpointGroup
  - `Description` string, required — Description associated to the environment(endpoint) group
  - `Id` integer, required — Environment(Endpoint) group Identifier
  - `Name` string, required — Environment(Endpoint) group name
  - `TagIds` integer[] — List of tags associated to this environment(endpoint) group
  - `TeamAccessPolicies` PortainerTeamAccessPolicies
  - `UserAccessPolicies` PortainerUserAccessPolicies

## Other responses

- `400` — Invalid request
- `500` — Server error

---

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