Answer File Object

Field Guide

The following fields are returned when listing answer files (photos taken for an answer).

Attribute Description
id the unique identifier of this photo
answerId the id of the answer this photo is under
imageUrl the protected hashed out url where this full photo can be pulled
imageUrlMedium the protected hashed out url where this 'medium' sized photo can be pulled (good for icons and previews)

Example

"items": [{
		"id": 3199411,
		"imageUrl": null,
		"caption": "these sheaves are damaged which cause excessive wear on wire rope.",
		"answerId": 62275375
	}, {
		"id": 3209589,
		"imageUrl": "https://archive.inspectall.com/images/eventpointfile/82170b9d-71d1-4e16-9021-5d906d76dcbz/Large.jpg",
		"imageUrlMedium": "https://archive.inspectall.com/images/eventpointfile/82170b9d-71d1-4e16-9021-5d906d76dcbz/Medium.jpg",
		"caption": "",
		"answerId": 62275375
	}, {
		"id": 3233556,
		"imageUrl": "https://archive.inspectall.com/images/eventpointfile/187acb40-3756-47a9-b127-233ebddb5fbx/Large.jpg",
		"imageUrlMedium": "https://archive.inspectall.com/images/eventpointfile/187acb40-3756-47a9-b127-233ebddb5fbx/Medium.jpg",
		"caption": "not connected properly",
		"answerId": 62275375
	}, {
		"id": 3233557,
		"imageUrl": "https://archive.inspectall.com/images/eventpointfile/69cb3962-753f-47d0-aa7d-0be7db350c5y/Large.jpg",
		"imageUrlMedium": "https://archive.inspectall.com/images/eventpointfile/69cb3962-753f-47d0-aa7d-0be7db350c5y/Medium.jpg",
		"caption": null,
		"answerId": 62275375
	}]

Addition Note

When imageUrl is returned as "null" the image has not been archived yet and must be retrieved by making a call to the answer_files endpoint:  /answers/{answerId}/answer_files/{id}

This endpoint returns the base64 raw bytes of the file.

Example

"item": {
	"image": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QBM...jCPwH/2Q==",
	"answerId": 62275375
}

Still need help? Contact Us Contact Us