v1

latestOpenAPI 3.0.32026-07-171140286.6 KB
Api\InspectionsController

api/inspections POST Register a new hive inspection the 'inspection' object. The object reflects only the general inspection data.

post/api/inspections/store

Headers

Authorizationstring
Content-Typestring
Acceptstring
Accept-languagestring

Request body

datestring required

The (local time) date time of the inspection.

itemsobject required

An object of category id's containing their inspected values (id's in case of lists, otherwise numeric/textual values).

hive_idinteger

Het value veld is verplicht wanneer <code>hive_ids</code> niet aanwezig is.

hive_idsstring[] required

Array of Hive ids to which this inspection should be linked.

location_idstring

id to which this inspection should be linked.

idinteger

If provided, edit and do not create inspection. Required to edit the inspection.

impressioninteger

Numeric impression value -1 (unfilled) to 1-3 (smileys).

attentioninteger

Numeric impression value -1 (unfilled) to 0-1 (needs attention).

reminderstring

Textual value of the reminder fields.

reminder_datestring

The (local time) date time for an optional reminder that can be fed to the users calender.

notesstring

Textual value of the notes fields.

checklist_idinteger

Id of the user checklist for generating this inspection.

Example request

{
  "date": "2020-05-18 16:16",
  "items": {
    "547": 0,
    "595": 1,
    "845": "814"
  },
  "hive_id": 11,
  "location_id": "2",
  "id": 15,
  "impression": -1,
  "attention": 1,
  "reminder": "This is an inspection reminder",
  "reminder_date": "2020-05-27 16:16",
  "notes": "This is an inspection note",
  "checklist_id": 829
}