Procore.Api.QualitySafetyIncidentsBodyParts (procore_sdk v0.3.0)

API calls for all endpoints tagged QualitySafetyIncidentsBodyParts.

Summary

Functions

Link to this function

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

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

List Body Parts Return a list of all supported Body Parts.

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[selectable]" (boolean()): If true, return item(s) with 'selectable' status.
    • :"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): Body Parts

Returns

  • {:ok, [%BodyPart{}, ...]} on success
  • {:error, Tesla.Env.t} on failure