---
title: "Create policy group environments relationships"
method: POST
path: "/policy-groups/{policy_group}/relationships/environments"
tags: ["policy-group-environments"]
---

# Create policy group environments relationships

`POST /policy-groups/{policy_group}/relationships/environments`

## Request

- Base URL: `https://example.scalr.io/api/iacp/v3`
- URL: `https://example.scalr.io/api/iacp/v3/policy-groups/{policy_group}/relationships/environments`
- Auth: HTTP bearer

## Path parameters

- `policy_group` string, required

## Request body

- PolicyGroupEnvironmentRelationshipFieldsetsListingDocument: Document Listing.
  - `data` PolicyGroupEnvironmentRelationship[]
    - `id` string, required
    - `type` 'environments', required
  - `included` object[]
  - `links` object
  - `meta` object

## Response `204`

Successfully created the policy group environments relationships.

## Other responses

- `404`: Environments or policy group not found, or user unauthorized to perform action.
- `4XX`: Client error.
- `5XX`: Server error.

---

[API](https://skmtc.dev/scalr/apis/scalr-iacp-api.md) - [All operations](https://skmtc.dev/scalr/apis/scalr-iacp-api/llms.txt) - [OpenAPI document](https://skmtc.dev/scalr/apis/scalr-iacp-api/revisions/d3e1dc85657a?raw)
