Create Question Heading

/form_templates/{id}/question_headings

Create Question Heading [POST]

Create a new question heading on a form template.  The newly created heading is added to the end of the form (if there are other headers). If a heading with that name already exists a 422 response is returned.

Authorization: Admin

Request

Body
{
    "name": "Electrical"
}

Response 422

Body
{
	"errors": {
		"name": ["Cannot have duplicate Question Headings."]
	}
}

Response 200

Body
{
	"item": {
		"id": 52591,
		"name": "Electrical",
		"ordinal": 2
	}
}

Still need help? Contact Us Contact Us