Procore.Api.CoreProjectDirectoryProjectInsurances (procore_sdk v0.3.0)

API calls for all endpoints tagged CoreProjectDirectoryProjectInsurances.

Summary

Functions

List project insurances Return a list of all Insurances associated with the specified Project.

Show project insurance Return detailed information on the specified Insurance.

Create project insurance Create a new Insurance associated with the specified Project.

Sync Project Insurances This endpoint creates or updates a batch of Project Insurances.

Functions

Link to this function

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

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

List project insurances Return a list of all Insurances associated with the specified Project.

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
    • :page (integer()): Page
    • :per_page (integer()): Elements per page

Returns

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

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

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

Delete project insurance Delete the specified Insurance.

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()): 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_insurances_id_get(connection, procore_company_id, project_id, id, opts \\ [])

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

Show project insurance Return detailed information on the specified Insurance.

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()): ID
  • opts (keyword): Optional parameters

Returns

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

rest_v10_projects_project_id_insurances_id_patch(connection, procore_company_id, project_id, id, body40, opts \\ [])

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

Update project insurance Update the specified Insurance.

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()): ID
  • body40 (Body40):
  • opts (keyword): Optional parameters

Returns

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

rest_v10_projects_project_id_insurances_post(connection, procore_company_id, project_id, body40, opts \\ [])

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

Create project insurance Create a new Insurance associated with the specified Project.

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.
  • body40 (Body40):
  • opts (keyword): Optional parameters

Returns

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

rest_v10_projects_project_id_insurances_sync_patch(connection, procore_company_id, project_id, insurance_sync_body1, opts \\ [])

Sync Project Insurances This endpoint creates or updates a batch of Project Insurances.

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.
  • insurance_sync_body1 (InsuranceSyncBody1):
  • opts (keyword): Optional parameters

Returns

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