Procore.Api.QualitySafetyIncidentsHarmSources (procore_sdk v0.3.0)

API calls for all endpoints tagged QualitySafetyIncidentsHarmSources.

Summary

Functions

Link to this function

rest_v10_companies_company_id_incidents_harm_sources_bulk_update_patch(connection, procore_company_id, company_id, rest_v10_companies_company_id_incidents_harm_sources_bulk_update_patch_request, opts \\ [])

Bulk Update Harm Sources Update multiple Harm Sources with one request.

Parameters

  • connection (Procore.Connection): Connection to server
  • procore_company_id (integer()): Unique company identifier associated with the Procore User Account.
  • company_id (integer()): Unique identifier for the company.
  • rest_v10_companies_company_id_incidents_harm_sources_bulk_update_patch_request (RestV10CompaniesCompanyIdIncidentsHarmSourcesBulkUpdatePatchRequest):
  • opts (keyword): Optional parameters

Returns

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

rest_v10_companies_company_id_incidents_harm_sources_get(connection, procore_company_id, company_id, opts \\ [])

@spec rest_v10_companies_company_id_incidents_harm_sources_get(
  Tesla.Env.client(),
  integer(),
  integer(),
  keyword()
) ::
  {:ok,
   Procore.Model.RestV10CompaniesCompanyIdWorkflowPermanentLogsGet401Response.t()}
  | {:ok, [Procore.Model.HarmSource1.t()]}
  | {:error, Tesla.Env.t()}

List Harm Sources Return a list of all Harm Sources associated with a Company.

Parameters

  • connection (Procore.Connection): Connection to server
  • procore_company_id (integer()): Unique company identifier associated with the Procore User Account.
  • company_id (integer()): Unique identifier for the company.
  • opts (keyword): Optional parameters
    • :page (integer()): Page
    • :per_page (integer()): Elements per page
    • :"filters[active]" (boolean()): If true, returns item(s) with a status of 'active'.
    • :"filters[id]" ([integer()]): Return item(s) with the specified IDs.
    • :"filters[updated_at]" (Date.t): Return item(s) last updated within the specified ISO 8601 datetime range. Formats: YYYY-MM-DD...YYYY-MM-DD - Date YYYY-MM-DDTHH:MM:SSZ...YYYY-MM-DDTHH:MM:SSZ - DateTime with UTC Offset YYYY-MM-DDTHH:MM:SS+XX:00...YYYY-MM-DDTHH:MM:SS+XX:00 - Datetime with Custom Offset
    • :sort (String.t):
    • :all (boolean()): Harm Sources

Returns

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

rest_v10_companies_company_id_incidents_harm_sources_id_delete(connection, procore_company_id, company_id, id, opts \\ [])

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

Delete Harm Source Deletes a Harm Source. Note that Procore provided Harm Sources cannot be deleted.

Parameters

  • connection (Procore.Connection): Connection to server
  • procore_company_id (integer()): Unique company identifier associated with the Procore User Account.
  • company_id (integer()): Unique identifier for the company.
  • id (integer()): Harm Source ID
  • opts (keyword): Optional parameters

Returns

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

rest_v10_companies_company_id_incidents_harm_sources_id_get(connection, procore_company_id, company_id, id, opts \\ [])

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

Show Harm Source Returns the specified Harm Source.

Parameters

  • connection (Procore.Connection): Connection to server
  • procore_company_id (integer()): Unique company identifier associated with the Procore User Account.
  • company_id (integer()): Unique identifier for the company.
  • id (integer()): Harm Source ID
  • opts (keyword): Optional parameters

Returns

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

rest_v10_companies_company_id_incidents_harm_sources_id_patch(connection, procore_company_id, company_id, id, rest_v10_companies_company_id_incidents_harm_sources_post_request, opts \\ [])

Update Harm Source Updates a specified Harm Source. Note that Procore provided Harm Sources' names cannot be changed.

Parameters

  • connection (Procore.Connection): Connection to server
  • procore_company_id (integer()): Unique company identifier associated with the Procore User Account.
  • company_id (integer()): Unique identifier for the company.
  • id (integer()): Harm Source ID
  • rest_v10_companies_company_id_incidents_harm_sources_post_request (RestV10CompaniesCompanyIdIncidentsHarmSourcesPostRequest):
  • opts (keyword): Optional parameters

Returns

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

rest_v10_companies_company_id_incidents_harm_sources_post(connection, procore_company_id, company_id, rest_v10_companies_company_id_incidents_harm_sources_post_request, opts \\ [])

Create Harm Source Creates a Harm Source with the specified name

Parameters

  • connection (Procore.Connection): Connection to server
  • procore_company_id (integer()): Unique company identifier associated with the Procore User Account.
  • company_id (integer()): Unique identifier for the company.
  • rest_v10_companies_company_id_incidents_harm_sources_post_request (RestV10CompaniesCompanyIdIncidentsHarmSourcesPostRequest):
  • opts (keyword): Optional parameters

Returns

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