Procore.Api.QualitySafetyIncidentsActionTypes (procore_sdk v0.3.0)
API calls for all endpoints tagged QualitySafetyIncidentsActionTypes
.
Summary
Functions
Bulk Update Incident Action Types Update multiple Incident Action Types with one request.
List Incident Action Types Return a list of all Incident Action Types associated with a Company.
Delete Incident Action Type Deletes an Incident Action Type. Note that Procore provided Incident Action Types cannot be deleted.
Show Incident Action Type Returns the specified Incident Action Type.
Update Incident Action Type Updates a specified Incident Action Type. Note that Procore provided Incident Action Types' names cannot be changed.
Create Incident Action Type Creates an Incident Action Type with the specified name.
Functions
rest_v10_companies_company_id_incidents_action_types_bulk_update_patch(connection, procore_company_id, company_id, rest_v10_companies_company_id_incidents_action_types_bulk_update_patch_request, opts \\ [])
@spec rest_v10_companies_company_id_incidents_action_types_bulk_update_patch( Tesla.Env.client(), integer(), integer(), Procore.Model.RestV10CompaniesCompanyIdIncidentsActionTypesBulkUpdatePatchRequest.t(), keyword() ) :: {:ok, Procore.Model.RestV10CompaniesCompanyIdWorkflowPermanentLogsGet401Response.t()} | {:ok, [Procore.Model.ActionType.t()]} | {:error, Tesla.Env.t()}
Bulk Update Incident Action Types Update multiple Incident Action Types 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_incidents_action_types_bulk_update_patch_request
(RestV10CompaniesCompanyIdIncidentsActionTypesBulkUpdatePatchRequest):opts
(keyword): Optional parameters
Returns
{:ok, [%ActionType{}, ...]}
on success{:error, Tesla.Env.t}
on failure
rest_v10_companies_company_id_incidents_action_types_get(connection, procore_company_id, company_id, opts \\ [])
@spec rest_v10_companies_company_id_incidents_action_types_get( Tesla.Env.client(), integer(), integer(), keyword() ) :: {:ok, Procore.Model.RestV10CompaniesCompanyIdWorkflowPermanentLogsGet401Response.t()} | {:ok, [Procore.Model.ActionType.t()]} | {:error, Tesla.Env.t()}
List Incident Action Types Return a list of all Incident Action Types 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:sort
(String.t):
Returns
{:ok, [%ActionType{}, ...]}
on success{:error, Tesla.Env.t}
on failure
rest_v10_companies_company_id_incidents_action_types_id_delete(connection, procore_company_id, company_id, id, opts \\ [])
@spec rest_v10_companies_company_id_incidents_action_types_id_delete( Tesla.Env.client(), integer(), integer(), integer(), keyword() ) :: {:ok, nil} | {:ok, Procore.Model.RestV10CompaniesCompanyIdWorkflowPermanentLogsGet401Response.t()} | {:error, Tesla.Env.t()}
Delete Incident Action Type Deletes an Incident Action Type. Note that Procore provided Incident Action Types 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()): Incident Action Type IDopts
(keyword): Optional parameters
Returns
{:ok, nil}
on success{:error, Tesla.Env.t}
on failure
rest_v10_companies_company_id_incidents_action_types_id_get(connection, procore_company_id, company_id, id, opts \\ [])
@spec rest_v10_companies_company_id_incidents_action_types_id_get( Tesla.Env.client(), integer(), integer(), integer(), keyword() ) :: {:ok, Procore.Model.RestV10CompaniesCompanyIdWorkflowPermanentLogsGet401Response.t()} | {:ok, Procore.Model.ActionType.t()} | {:error, Tesla.Env.t()}
Show Incident Action Type Returns the specified Incident Action Type.
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()): Incident Action Type IDopts
(keyword): Optional parameters
Returns
{:ok, Procore.Model.ActionType.t}
on success{:error, Tesla.Env.t}
on failure
rest_v10_companies_company_id_incidents_action_types_id_patch(connection, procore_company_id, company_id, id, rest_v10_companies_company_id_incidents_action_types_post_request, opts \\ [])
@spec rest_v10_companies_company_id_incidents_action_types_id_patch( Tesla.Env.client(), integer(), integer(), integer(), Procore.Model.RestV10CompaniesCompanyIdIncidentsActionTypesPostRequest.t(), keyword() ) :: {:ok, Procore.Model.RestV10CompaniesCompanyIdWorkflowPermanentLogsGet401Response.t()} | {:ok, Procore.Model.ActionType.t()} | {:error, Tesla.Env.t()}
Update Incident Action Type Updates a specified Incident Action Type. Note that Procore provided Incident Action Types' 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()): Incident Action Type IDrest_v10_companies_company_id_incidents_action_types_post_request
(RestV10CompaniesCompanyIdIncidentsActionTypesPostRequest):opts
(keyword): Optional parameters
Returns
{:ok, Procore.Model.ActionType.t}
on success{:error, Tesla.Env.t}
on failure
rest_v10_companies_company_id_incidents_action_types_post(connection, procore_company_id, company_id, rest_v10_companies_company_id_incidents_action_types_post_request, opts \\ [])
@spec rest_v10_companies_company_id_incidents_action_types_post( Tesla.Env.client(), integer(), integer(), Procore.Model.RestV10CompaniesCompanyIdIncidentsActionTypesPostRequest.t(), keyword() ) :: {:ok, Procore.Model.RestV10CompaniesCompanyIdWorkflowPermanentLogsGet401Response.t()} | {:ok, Procore.Model.ActionType.t()} | {:error, Tesla.Env.t()}
Create Incident Action Type Creates an Incident Action Type 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_incidents_action_types_post_request
(RestV10CompaniesCompanyIdIncidentsActionTypesPostRequest):opts
(keyword): Optional parameters
Returns
{:ok, Procore.Model.ActionType.t}
on success{:error, Tesla.Env.t}
on failure