POST
/v1/custom-fields/
curl \
--request POST 'https://classmanager.test/v1/custom-fields/' \
--header "Content-Type: application/json" \
--data '{"title":"Photo Consent","type":"text","entity":"staff","options":["answer1","answer2"]}'
Request examples
{
"title": "Photo Consent",
"type": "text",
"entity": "staff",
"options": [
"answer1",
"answer2"
]
}
Response examples (200)
{
"id": "cf_123123123123",
"companyId": "co_123123123123",
"type": "text",
"title": "Custom Field Title",
"entity": "staff",
"options": [
"answer1",
"answer2"
]
}
Response examples (403)
{
"statusCode": 42.0,
"messages": [
"string"
],
"exception": {}
}
Response examples (422)
{
"statusCode": 42.0,
"messages": [
"string"
],
"exception": {}
}