---
ai:
  exclude: true
search:
  tags:
    - field
    - POST
seo:
  description: >-
    Creates a custom field using a definition. Reference for the POST
    /api/2/field endpoint in the Jira Software Data Center REST API Reference.
sidebar:
  label: Create a custom field using a definition
  badge: POST
title: Create a custom field using a definition
type: openapi-operation
---
Creates a custom field using a definition

`POST /api/2/field`

**Request body** (`application/json`)

- `description` (string)
- `id` (string)
- `issueTypeIds` (string[])
- `name` (string)
- `projectIds` (integer<int64>[])
- `searcherKey` (string)
- `self` (string<uri>)
- `type` (string)

Request body example:

```json
{
  "description": "Custom field for picking groups",
  "id": "10000",
  "issueTypeIds": [
    "1",
    "2"
  ],
  "name": "New custom field",
  "projectIds": [
    10000,
    10001
  ],
  "searcherKey": "com.atlassian.jira.plugin.system.customfieldtypes:grouppickersearcher",
  "self": "http://localhost:8090/jira/rest/api/2.0/customField/10000",
  "type": "com.atlassian.jira.plugin.system.customfieldtypes:grouppicker"
}
```

**Responses**

- `201` — Custom field was created
- `400` — Returned if the input is invalid
- `500` — Returned if exception occured during custom field creation

Response example, 201:

```json
{
  "clauseNames": "[description]",
  "custom": false,
  "id": "description",
  "name": "Description",
  "navigable": true,
  "orderable": true,
  "schema": {},
  "searchable": true
}
```
