---
search:
  tags:
    - Objects and records
    - POST
seo:
  description: >-
    Add a field. Reference for the POST /api/v1/objects/{objectId}/fields
    endpoint in the Taylorz CRM API.
sidebar:
  label: Add a field
  badge: POST
title: Add a field
type: openapi-operation
---
`POST /api/v1/objects/{objectId}/fields`

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

Request body example:

```json
{
  "key": "string",
  "label": "string",
  "required": false,
  "visibleByDefault": true,
  "type": "text"
}
```

**Responses**

- `201` — The field was created
- `400` — The request body, query or parameters were refused
- `401` — The access token is missing, invalid or revoked
- `403` — The tenant's module is off, or the token's scope or the member's role does not permit the action
- `404` — No such record, or none the caller may read
- `409` — The operation conflicts with the current state
- `413` — The request exceeds the route's body limit
- `500` — An unexpected failure

Response example, 201:

```json
{
  "definition": {
    "key": "string",
    "label": "string",
    "required": false,
    "visibleByDefault": true,
    "type": "text"
  },
  "id": "string",
  "system": true
}
```
