Update Form Template

/form_templates/{id}

Update Form Template [PUT]

Update an existing form template.

Authorization: Admin

Request

Body
  {
	"id": 480,
	"rowStatus": "0",
	"defaultReportId": 60,
	"isVisible": true,
	"defaultReport": {
		"id": 60,
		"name": "ItemEventReport_DynamicStyled",
		"displayName": "Standard Report"
	},
	"teamIds": ["983", "934", "48", "88"],
	"allowMultipleInFolder": false,
	"requiresAsset": true,
	"instructions": "Here are my instructions to the user!",
	"name": "Hearing Protection Assessment",
	"classificationId": "185",
	"categoryId": "17",
	"referenceQuestions": [{
		"id": 1,
		"title": null,
		"resolution": false,
		"rowStatus": 0,
		"type": {
			"id": 3,
			"name": "shortText",
			"displayName": "Short Text (<50 chars)"
		}
	}, {
		"id": 2,
		"title": null,
		"resolution": false,
		"rowStatus": 0,
		"type": {
			"id": 3,
			"name": "shortText",
			"displayName": "Short Text (<50 chars)"
		}
	}, {
		"id": 3,
		"title": null,
		"resolution": false,
		"rowStatus": 0,
		"type": {
			"id": 3,
			"name": "shortText",
			"displayName": "Short Text (<50 chars)"
		}
	}, {
		"id": 4,
		"title": null,
		"resolution": false,
		"rowStatus": 0,
		"type": {
			"id": 3,
			"name": "shortText",
			"displayName": "Short Text (<50 chars)"
		}
	}],
	"categoryName": "PPE",
	"className": "Hearing Protection"
}

Response 200

Body
{
	"item": {
		"teamIds": [48, 88, 934, 983],
		"defaultReport": {
			"id": 60,
			"name": "ItemEventReport_DynamicStyled",
			"displayName": "Standard Report"
		},
		"allowMultipleInFolder": false,
		"requiresAsset": true,
		"rowStatus": 0,
		"instructions": "Here are my instructions to the user!",
		"name": "Hearing Protection Assessment",
		"classificationId": 185,
		"id": 480,
		"categoryId": 17,
		"referenceQuestions": [{
			"id": 1,
			"title": null,
			"resolution": false,
			"rowStatus": 0,
			"type": {
				"id": 3,
				"name": "shortText",
				"displayName": "Short Text (<50 chars)"
			}
		}, {
			"id": 2,
			"title": null,
			"resolution": false,
			"rowStatus": 0,
			"type": {
				"id": 3,
				"name": "shortText",
				"displayName": "Short Text (<50 chars)"
			}
		}, {
			"id": 3,
			"title": null,
			"resolution": false,
			"rowStatus": 0,
			"type": {
				"id": 3,
				"name": "shortText",
				"displayName": "Short Text (<50 chars)"
			}
		}, {
			"id": 4,
			"title": null,
			"resolution": false,
			"rowStatus": 0,
			"type": {
				"id": 3,
				"name": "shortText",
				"displayName": "Short Text (<50 chars)"
			}
		}],
		"categoryName": "PPE",
		"className": "Hearing Protection"
	}
}

Still need help? Contact Us Contact Us