Update Question Heading

/form_templates/{form_template_id}/question_headings/{id}

Update Question Heading [PUT]

Update an existing question heading.  If a heading with the same name exists a 422 precondition failed response is returned.

Authorization: Admin

Request

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

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