Procore.Api.QualitySafetyObservationsProjectObservationTypes (procore_sdk v0.3.0)
API calls for all endpoints tagged QualitySafetyObservationsProjectObservationTypes.
Summary
Functions
List Project Observation Types Return a list of all Project Observation Types associated with a Project.
Delete Project Observation Type Deletes a Project Observation Type.
Update Project Observation Type Updates a Project Observation Type.
Create Project Observation Type Creates a Project Observation Type with the specified name/parent_id
Functions
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 serverprocore_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
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 serverprocore_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 IDopts(keyword): Optional parameters
Returns
{:ok, nil}on success{:error, Tesla.Env.t}on failure
rest_v10_projects_project_id_observation_types_id_patch(connection, procore_company_id, project_id, id, project_observation_type_create_body1, opts \\ [])
@spec rest_v10_projects_project_id_observation_types_id_patch( Tesla.Env.client(), integer(), integer(), integer(), Procore.Model.ProjectObservationTypeCreateBody1.t(), keyword() ) :: {:ok, Procore.Model.RestV10CompaniesCompanyIdWorkflowPermanentLogsGet401Response.t()} | {:ok, Procore.Model.ProjectObservationType.t()} | {:error, Tesla.Env.t()}
Update Project Observation Type Updates a Project Observation Type.
Parameters
connection(Procore.Connection): Connection to serverprocore_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 IDproject_observation_type_create_body1(ProjectObservationTypeCreateBody1):opts(keyword): Optional parameters
Returns
{:ok, Procore.Model.ProjectObservationType.t}on success{:error, Tesla.Env.t}on failure
rest_v10_projects_project_id_observation_types_post(connection, procore_company_id, project_id, project_observation_type_create_body, opts \\ [])
@spec rest_v10_projects_project_id_observation_types_post( Tesla.Env.client(), integer(), integer(), Procore.Model.ProjectObservationTypeCreateBody.t(), keyword() ) :: {:ok, Procore.Model.RestV10CompaniesCompanyIdWorkflowPermanentLogsGet401Response.t()} | {:ok, Procore.Model.ProjectObservationType.t()} | {:error, Tesla.Env.t()}
Create Project Observation Type Creates a Project Observation Type with the specified name/parent_id
Parameters
connection(Procore.Connection): Connection to serverprocore_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