Procore.Api.QualitySafetyIncidentsContributingBehaviors (procore_sdk v0.3.0)
API calls for all endpoints tagged QualitySafetyIncidentsContributingBehaviors
.
Summary
Functions
Bulk Update Contributing Behaviors Update multiple Contributing Behaviors with one request.
List Contributing Behaviors Return a list of all active Contributing Behaviors associated with a Company.
Delete Contributing Behavior Deletes a Contributing Behavior. Note that Procore provided Contributing Behaviors cannot be deleted.
Show Contributing Behavior Returns the details for a specified Contributing Behavior.
Update Contributing Behavior Updates a Contributing Behavior. Note that Procore provided Contributing Behaviors' names cannot be changed.
Create Contributing Behavior Creates a Contributing Behavior with the specified name.
Functions
rest_v10_companies_company_id_contributing_behaviors_bulk_update_patch(connection, procore_company_id, company_id, rest_v10_companies_company_id_contributing_behaviors_bulk_update_patch_request, opts \\ [])
@spec rest_v10_companies_company_id_contributing_behaviors_bulk_update_patch( Tesla.Env.client(), integer(), integer(), Procore.Model.RestV10CompaniesCompanyIdContributingBehaviorsBulkUpdatePatchRequest.t(), keyword() ) :: {:ok, Procore.Model.RestV10CompaniesCompanyIdWorkflowPermanentLogsGet401Response.t()} | {:ok, [Procore.Model.ContributingBehavior1.t()]} | {:error, Tesla.Env.t()}
Bulk Update Contributing Behaviors Update multiple Contributing Behaviors with one request.
Parameters
connection
(Procore.Connection): Connection to serverprocore_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_contributing_behaviors_bulk_update_patch_request
(RestV10CompaniesCompanyIdContributingBehaviorsBulkUpdatePatchRequest):opts
(keyword): Optional parameters
Returns
{:ok, [%ContributingBehavior1{}, ...]}
on success{:error, Tesla.Env.t}
on failure
rest_v10_companies_company_id_contributing_behaviors_get(connection, procore_company_id, company_id, opts \\ [])
@spec rest_v10_companies_company_id_contributing_behaviors_get( Tesla.Env.client(), integer(), integer(), keyword() ) :: {:ok, Procore.Model.RestV10CompaniesCompanyIdWorkflowPermanentLogsGet401Response.t()} | {:ok, [Procore.Model.ContributingBehavior1.t()]} | {:error, Tesla.Env.t()}
List Contributing Behaviors Return a list of all active Contributing Behaviors associated with a Company.
Parameters
connection
(Procore.Connection): Connection to serverprocore_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
- DateYYYY-MM-DDTHH:MM:SSZ
...YYYY-MM-DDTHH:MM:SSZ
- DateTime with UTC OffsetYYYY-MM-DDTHH:MM:SS+XX:00
...YYYY-MM-DDTHH:MM:SS+XX:00
- Datetime with Custom Offset:all
(boolean()): Both active and inactive Contributing Behaviors
Returns
{:ok, [%ContributingBehavior1{}, ...]}
on success{:error, Tesla.Env.t}
on failure
rest_v10_companies_company_id_contributing_behaviors_id_delete(connection, procore_company_id, company_id, id, opts \\ [])
@spec rest_v10_companies_company_id_contributing_behaviors_id_delete( Tesla.Env.client(), integer(), integer(), integer(), keyword() ) :: {:ok, nil} | {:ok, Procore.Model.RestV10CompaniesCompanyIdWorkflowPermanentLogsGet401Response.t()} | {:error, Tesla.Env.t()}
Delete Contributing Behavior Deletes a Contributing Behavior. Note that Procore provided Contributing Behaviors cannot be deleted.
Parameters
connection
(Procore.Connection): Connection to serverprocore_company_id
(integer()): Unique company identifier associated with the Procore User Account.company_id
(integer()): Unique identifier for the company.id
(integer()): Contributing Behavior IDopts
(keyword): Optional parameters
Returns
{:ok, nil}
on success{:error, Tesla.Env.t}
on failure
rest_v10_companies_company_id_contributing_behaviors_id_get(connection, procore_company_id, company_id, id, opts \\ [])
@spec rest_v10_companies_company_id_contributing_behaviors_id_get( Tesla.Env.client(), integer(), integer(), integer(), keyword() ) :: {:ok, Procore.Model.RestV10CompaniesCompanyIdWorkflowPermanentLogsGet401Response.t()} | {:ok, Procore.Model.ContributingBehavior1.t()} | {:error, Tesla.Env.t()}
Show Contributing Behavior Returns the details for a specified Contributing Behavior.
Parameters
connection
(Procore.Connection): Connection to serverprocore_company_id
(integer()): Unique company identifier associated with the Procore User Account.company_id
(integer()): Unique identifier for the company.id
(integer()): Contributing Behavior IDopts
(keyword): Optional parameters
Returns
{:ok, Procore.Model.ContributingBehavior1.t}
on success{:error, Tesla.Env.t}
on failure
rest_v10_companies_company_id_contributing_behaviors_id_patch(connection, procore_company_id, company_id, id, rest_v10_companies_company_id_contributing_behaviors_id_patch_request, opts \\ [])
@spec rest_v10_companies_company_id_contributing_behaviors_id_patch( Tesla.Env.client(), integer(), integer(), integer(), Procore.Model.RestV10CompaniesCompanyIdContributingBehaviorsIdPatchRequest.t(), keyword() ) :: {:ok, Procore.Model.RestV10CompaniesCompanyIdWorkflowPermanentLogsGet401Response.t()} | {:ok, Procore.Model.ContributingBehavior1.t()} | {:error, Tesla.Env.t()}
Update Contributing Behavior Updates a Contributing Behavior. Note that Procore provided Contributing Behaviors' names cannot be changed.
Parameters
connection
(Procore.Connection): Connection to serverprocore_company_id
(integer()): Unique company identifier associated with the Procore User Account.company_id
(integer()): Unique identifier for the company.id
(integer()): Contributing Behavior IDrest_v10_companies_company_id_contributing_behaviors_id_patch_request
(RestV10CompaniesCompanyIdContributingBehaviorsIdPatchRequest):opts
(keyword): Optional parameters
Returns
{:ok, Procore.Model.ContributingBehavior1.t}
on success{:error, Tesla.Env.t}
on failure
rest_v10_companies_company_id_contributing_behaviors_post(connection, procore_company_id, company_id, rest_v10_companies_company_id_contributing_behaviors_post_request, opts \\ [])
@spec rest_v10_companies_company_id_contributing_behaviors_post( Tesla.Env.client(), integer(), integer(), Procore.Model.RestV10CompaniesCompanyIdContributingBehaviorsPostRequest.t(), keyword() ) :: {:ok, Procore.Model.RestV10CompaniesCompanyIdWorkflowPermanentLogsGet401Response.t()} | {:ok, Procore.Model.ContributingBehavior1.t()} | {:error, Tesla.Env.t()}
Create Contributing Behavior Creates a Contributing Behavior with the specified name.
Parameters
connection
(Procore.Connection): Connection to serverprocore_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_contributing_behaviors_post_request
(RestV10CompaniesCompanyIdContributingBehaviorsPostRequest):opts
(keyword): Optional parameters
Returns
{:ok, Procore.Model.ContributingBehavior1.t}
on success{:error, Tesla.Env.t}
on failure