Procore.Api.QualitySafetyObservationsProjectObservationTypes (procore_sdk v0.3.0)

API calls for all endpoints tagged QualitySafetyObservationsProjectObservationTypes.

Summary

Functions

Link to this function

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

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

List Project Observation Types Return a list of all Project Observation Types associated with a 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, [%ProjectObservationType{}, ...]} on success
  • {:error, Tesla.Env.t} on failure
Link to this function

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

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

Delete Project Observation Type Deletes a Project Observation Type.

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()): Project Observation Type 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_observation_types_id_patch(connection, procore_company_id, project_id, id, project_observation_type_create_body1, opts \\ [])

Update Project Observation Type Updates a Project Observation Type.

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()): Project Observation Type ID
  • project_observation_type_create_body1 (ProjectObservationTypeCreateBody1):
  • opts (keyword): Optional parameters

Returns

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

rest_v10_projects_project_id_observation_types_post(connection, procore_company_id, project_id, project_observation_type_create_body, opts \\ [])

Create Project Observation Type Creates a Project Observation Type with the specified name/parent_id

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

Returns

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