---
title: "POST /workspaces/{workspaceId}/rulegroupsnamespaces"
method: POST
path: "/workspaces/{workspaceId}/rulegroupsnamespaces"
---

# POST /workspaces/{workspaceId}/rulegroupsnamespaces

`POST /workspaces/{workspaceId}/rulegroupsnamespaces`

Create a rule group namespace.

## Path parameters

- `workspaceId` string, required — A workspace ID.

## Request body

- object
  - `clientToken` string — An identifier used to ensure the idempotency of a write request.
  - `data` string, required — The rule groups namespace data.
  - `name` string, required — The namespace name that the rule group belong to.
  - `tags` object — The list of tags assigned to the resource.

## Response `202`

Success

- CreateRuleGroupsNamespaceResponse — Represents the output of a CreateRuleGroupsNamespace operation.
  - `arn` string, required — The Amazon Resource Name (ARN) of this rule groups namespace.
  - `name` string, required — The rule groups namespace name.
  - `status` object, required — The status of rule groups namespace.
    - `statusCode` 'CREATING' | 'ACTIVE' | 'UPDATING' | 'DELETING' | 'CREATION_FAILED' | 'UPDATE_FAILED', required — Status code of this namespace.
    - `statusReason` string — The reason for failure if any.
  - `tags` object — The tags of this rule groups namespace.

## Other responses

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

---

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