---
title: "POST /v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/actions"
method: POST
path: "/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/actions"
---

# POST /v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/actions

`POST /v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/actions`

Creates an action for the environment, for example, creates a console link for an analytics tool that is available in this environment.

## Path parameters

- `domainIdentifier` string, required
- `environmentIdentifier` string, required

## Request body

- object
  - `name` string, required — The name of the environment action.
  - `parameters` object, required — The parameters of the environment action.
    - `awsConsoleLink` object — The console link specified as part of the environment action.
      - `uri` string — The URI of the console link specified as part of the environment action.
  - `description` string — The description of the environment action that is being created in the environment.

## Response `201`

Success

- CreateEnvironmentActionOutput
  - `domainId` string, required — The ID of the domain in which the environment action is created.
  - `environmentId` string, required — The ID of the environment in which the environment is created.
  - `id` string, required — The ID of the environment action.
  - `name` string, required — The name of the environment action.
  - `parameters` object, required — The parameters of the environment action.
    - `awsConsoleLink` object — The console link specified as part of the environment action.
      - `uri` string — The URI of the console link specified as part of the environment action.
  - `description` string — The description of the environment action.

## Other responses

- `480` — InternalServerException
- `481` — ResourceNotFoundException
- `482` — AccessDeniedException
- `483` — ThrottlingException
- `484` — ConflictException
- `485` — ValidationException
- `486` — UnauthorizedException

---

[API](https://skmtc.net/aws/apis/datazone.md) · [All operations](https://skmtc.net/aws/apis/datazone/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/datazone/versions/055599054b53/schema)
