Add Custom Fields

All API requests should contain authorization headers.

Request

POST /customFields

Query Parameters

Body of request should contain Custom field model serialized to JSON. Id field should be equal to 0.

Request Body

{
"assignedCategoryIds": [],
"defaultValue": null,
"id": 0,
"isHidden": false,
"isRequired": true,
"isSensitiveData": false,
"name": "Client Id2",
"order": 94,
"placeholder": "",
"possibleValues": [],
"type": "text_input",
"value": null
}

Request body should contain custom field object.

Response

{
"assignedCategoryIds": [],
"defaultValue": null,
"id": 18458,
"isHidden": false,
"isRequired": true,
"isSensitiveData": false,
"name": "Client Id2",
"order": 94,
"placeholder": "",
"possibleValues": [],
"type": "text_input",
"value": null
}

Data field has type of custom field object.