---
title: "POST /domains/{domainId}/fields"
method: POST
path: "/domains/{domainId}/fields"
---

# POST /domains/{domainId}/fields

`POST /domains/{domainId}/fields`

Creates a field in the Cases domain. This field is used to define the case object model (that is, defines what data can be captured on cases) in a Cases domain.

## Path parameters

- `domainId` string, required

## Request body

- object
  - `name` string, required — The name of the field.
  - `type` 'Text' | 'Number' | 'Boolean' | 'DateTime' | 'SingleSelect' | 'Url' | 'User', required — Defines the data type, some system constraints, and default display of the field.
  - `description` string — The description of the field.
  - `attributes` object — Union of field attributes.
    - `text` object — Field attributes for Text field type.
      - `isMultiline` boolean, required — Attribute that defines rendering component and validation.

## Response `200`

Success

- CreateFieldResponse
  - `fieldId` string, required — The unique identifier of a field.
  - `fieldArn` string, required — The Amazon Resource Name (ARN) of the field.

## Other responses

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

---

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