Executes the Add action for the Accidents data object.

Adds a new Accident record.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The code of the subscriber that you are making this request for.

Body Params
integer
required

HR Company Code.

string
required
length ≤ 10

Accident/Incident ID.

string
required

Date of Accident/Incident. Format: YYYY-MM-DD.

string | null

Time of Accident/Incident.

string
enum

Was the accident/incident on employer premises? Options: Y-Yes, N-No.

Allowed:
string
enum

Was the accident/incident at a job site? Options: Y-Yes, N-No.

Allowed:
string | null

Location of Accident/Incident.

integer | null

Job Cost Company Code.

string | null

Job/Project Number.

string | null

Reported By Name.

integer | null

Phase Group.

string | null

Phase Code.

string | null

Date Reported. Format: YYYY-MM-DD.

string | null

Time Reported.

string | null

Date Accident/Incident was closed. Format: YYYY-MM-DD.

string | null

MSHA ID.

string | null

Mine Name.

string | null

Corrective Action taken.

string | null

Accident/Incident notes.

string | null
[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}

Unique Attachment ID (GUID).

__LineItems
array of objects

Array of Accident Line Items (Injuries/Illnesses/Damages).

__LineItems
__custom_fields
object

This property will be added if there are any custom fields defined for this object in Vista. Each custom field will be a property of this object.

Headers
string
required

Used to authorize access to the Direct API.

Responses

401

You have not provided a proper X-Application-Key in the header of this request.

403

The X-Application-Key provided is valid but the key does not have access to this resource.

404

The object with the given ID was not found OR a subscriber with the given URL was not found.

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json