# Add Custom Fields

`POST /N/A`

Submit URL for POST request of the custom fields remains the same for each endpoint (ie api/contacts for Contacts endpoint, api/invoices for Invoices endpoint, etc..) In this example, we will use the following form data which corresponds to the following custom field types: custom_fields[invoice][1] = Input Type custom_fields[invoice][2] = Number custom_fields[invoice][3] = Textarea custom_fields[invoice][4] = Radio custom_fields[invoice][5] = Checkbox custom_fields[invoice][6] = Multiselect custom_fields[invoice][7] = Date custom_fields[invoice][8] = Datetime custom_fields[invoice][9] = Color custom_fields[invoice][10] = Link

- **Group:** Custom Fields
- **Since:** v0.2.0
- **Authentication:** `authtoken` header, created under Setup > API > API Management
- **HTML version:** /apiguide/custom-fields/post-action-example/

## Parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `custom_fields[customFieldType]` | string/array | **required** | Custom Field Key should be same as field_name returned from Search custom field values' information |

## Example request

```bash
curl -X POST "https://yoursite.com/N/A" \
  -H "authtoken: YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "custom_fields[customFieldType]": "..." }'
```

## Success response

### Success-Response:

```json
HTTP/1.1 200 OK
 Same as Original request
```

## Error responses

### Error-Response:

```json
HTTP/1.1 404 Not Found
Same as Original request
```

---

Perfex CRM REST API by Themesic Interactive. Full reference: /apiguide/
