Create#
Create a Custom Field (requires manageCustomField permission).
Query#
POST /api/customField
Request Body Example#
{
"name": "BusinesUnit",
"reference": "businessunit",
"description": "Targeted business unit",
"type": "string",
"mandatory": false,
"options": [
"VIP",
"HR",
"Security",
"Sys Administrators",
"Developers",
"Sales",
"Marketing",
"Procurement",
"Legal"
]
}
The following fields are required:
name: (String)reference: (String)description: (String)type: [string|integer|boolean|date|float]
Response#
Status codes#
201: if Custom Fields is created successfully401: Authentication error403: Authorization error
ResponseBody Example#
{
"id": "~32912",
"name": "Business Unit",
"reference": "businessUnit",
"description": "Targetted business unit",
"type": "string",
"options": [
"Sales",
"Marketing",
"VIP",
"Security",
"Sys admins",
"HR",
"Procurement",
"Legal"
],
"mandatory": false
}
{
"type": "AuthenticationError",
"message": "Authentication failure"
}
{
"type": "AuthorizationError",
"message": "Your are not authorized to create custom field, you haven't the permission manageCustomField"
}
Last update:
October 13, 2023 07:01:35