Procore.Api.ProjectManagementDailyLogAccidentLogs (procore_sdk v0.3.0)

API calls for all endpoints tagged ProjectManagementDailyLogAccidentLogs.

Summary

Functions

List Accident Logs Returns all Accident Logs for the current date. See Working with Daily Logs for information on filtering the response using the log_date, start_date, and end_date parameters. Note that if none of the date parameters are provided in the call, only logs from the current date are returned.

Functions

Link to this function

rest_v10_projects_project_id_accident_logs_get(connection, procore_company_id, project_id, opts \\ [])

List Accident Logs Returns all Accident Logs for the current date. See Working with Daily Logs for information on filtering the response using the log_date, start_date, and end_date parameters. Note that if none of the date parameters are provided in the call, only logs from the current date are returned.

Parameters

  • connection (Procore.Connection): Connection to server
  • procore_company_id (integer()): Unique company identifier associated with the Procore User Account.
  • project_id (integer()): Unique identifier for the project.
  • opts (keyword): Optional parameters
    • :per_page (integer()): Elements per page
    • :page (integer()): Page
    • :log_date (Date.t): Date of specific logs desired in YYYY-MM-DD format
    • :start_date (Date.t): Start date of specific logs desired in YYYY-MM-DD format (use together with end_date)
    • :end_date (Date.t): End date of specific logs desired in YYYY-MM-DD format (use together with start_date)
    • :"filters[created_by_id]" (integer()): Return item(s) created by the specified User ID
    • :"filters[location_id]" ([integer()]): Return item(s) with the specified Location IDs.

Returns

  • {:ok, [%RestV10ProjectsProjectIdAccidentLogsGet200ResponseInner{}, ...]} on success
  • {:error, Tesla.Env.t} on failure
Link to this function

rest_v10_projects_project_id_accident_logs_id_delete(connection, procore_company_id, project_id, id, opts \\ [])

@spec rest_v10_projects_project_id_accident_logs_id_delete(
  Tesla.Env.client(),
  integer(),
  integer(),
  integer(),
  keyword()
) ::
  {:ok, nil}
  | {:ok,
     Procore.Model.RestV10CompaniesCompanyIdWorkflowPermanentLogsGet401Response.t()}
  | {:error, Tesla.Env.t()}

Delete Accident Log Delete single Accident Log.

Parameters

  • connection (Procore.Connection): Connection to server
  • procore_company_id (integer()): Unique company identifier associated with the Procore User Account.
  • project_id (integer()): Unique identifier for the project.
  • id (integer()): Accident log ID
  • opts (keyword): Optional parameters

Returns

  • {:ok, nil} on success
  • {:error, Tesla.Env.t} on failure
Link to this function

rest_v10_projects_project_id_accident_logs_id_get(connection, procore_company_id, project_id, id, opts \\ [])

Show Accident Logs Returns single Accident Log.

Parameters

  • connection (Procore.Connection): Connection to server
  • procore_company_id (integer()): Unique company identifier associated with the Procore User Account.
  • project_id (integer()): Unique identifier for the project.
  • id (integer()): Accident log ID
  • opts (keyword): Optional parameters

Returns

  • {:ok, Procore.Model.RestV10ProjectsProjectIdAccidentLogsGet200ResponseInner.t} on success
  • {:error, Tesla.Env.t} on failure
Link to this function

rest_v10_projects_project_id_accident_logs_id_patch(connection, procore_company_id, project_id, id, rest_v10_projects_project_id_accident_logs_id_patch_request, opts \\ [])

Update Accident Log Update single Accident Log. #### See - Daily Log guide - for additional info on * Attachments

Parameters

  • connection (Procore.Connection): Connection to server
  • procore_company_id (integer()): Unique company identifier associated with the Procore User Account.
  • project_id (integer()): Unique identifier for the project.
  • id (integer()): Accident log ID
  • rest_v10_projects_project_id_accident_logs_id_patch_request (RestV10ProjectsProjectIdAccidentLogsIdPatchRequest):
  • opts (keyword): Optional parameters

Returns

  • {:ok, Procore.Model.RestV10ProjectsProjectIdAccidentLogsGet200ResponseInner.t} on success
  • {:error, Tesla.Env.t} on failure
Link to this function

rest_v10_projects_project_id_accident_logs_post(connection, procore_company_id, project_id, rest_v10_projects_project_id_accident_logs_post_request, opts \\ [])

Create Accident Log Creates single Accident Log. #### See - Daily Log guide - for additional info on * Attachments

Parameters

  • connection (Procore.Connection): Connection to server
  • procore_company_id (integer()): Unique company identifier associated with the Procore User Account.
  • project_id (integer()): Unique identifier for the project.
  • rest_v10_projects_project_id_accident_logs_post_request (RestV10ProjectsProjectIdAccidentLogsPostRequest):
  • opts (keyword): Optional parameters

Returns

  • {:ok, Procore.Model.RestV10ProjectsProjectIdAccidentLogsGet200ResponseInner.t} on success
  • {:error, Tesla.Env.t} on failure