Procore.Api.WorkforceManagementWorkforcePlanningGroups (procore_sdk v0.3.0)
API calls for all endpoints tagged WorkforceManagementWorkforcePlanningGroups
.
Summary
Functions
Get All Company Groups Gets all Groups in a given Company
Delete a Single Group Delete a single Group in a given ID. It should be noted that you can not delete a Group that has active Projects or People belonging to it. This is to prevent those entities from being "stranded" in the system if the group you are trying to delete is the single group they belong to. When you try to delete a Group that can not be deleted for this reason, you will be provided with a list of Project and People IDs that belong to this group so you can remove this group ID from those entities if you choose.
Get a Single Group Get the single Group in a given ID
Update a Single Group Update the single Group in a given ID and body
Create a Single Group Creates a single Group
Functions
rest_v10_workforce_planning_v2_companies_company_id_groups_get(connection, procore_company_id, company_id, opts \\ [])
@spec rest_v10_workforce_planning_v2_companies_company_id_groups_get( Tesla.Env.client(), integer(), integer(), keyword() ) :: {:ok, Procore.Model.RestV10WorkforcePlanningV2CompaniesCompanyIdGroupsGroupIdReportsLookAheadGet400Response.t()} | {:ok, Procore.Model.RestV10WorkforcePlanningV2CompaniesCompanyIdProjectsGet404Response.t()} | {:ok, [ Procore.Model.RestV10WorkforcePlanningV2CompaniesCompanyIdGroupsGet200ResponseInner.t() ]} | {:ok, Procore.Model.RestV10WorkforcePlanningV2CompaniesCompanyIdGroupsGroupIdReportsLookAheadGet401Response.t()} | {:ok, Procore.Model.RestV10WorkforcePlanningV2CompaniesCompanyIdProjectsGet403Response.t()} | {:error, Tesla.Env.t()}
Get All Company Groups Gets all Groups in a given 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. NOTE - this is a Laborchart company IDopts
(keyword): Optional parameters
Returns
{:ok, [%RestV10WorkforcePlanningV2CompaniesCompanyIdGroupsGet200ResponseInner{}, ...]}
on success{:error, Tesla.Env.t}
on failure
rest_v10_workforce_planning_v2_companies_company_id_groups_group_id_delete(connection, procore_company_id, company_id, group_id, opts \\ [])
@spec rest_v10_workforce_planning_v2_companies_company_id_groups_group_id_delete( Tesla.Env.client(), integer(), integer(), integer(), keyword() ) :: {:ok, Procore.Model.RestV10WorkforcePlanningV2CompaniesCompanyIdGroupsGroupIdReportsLookAheadGet400Response.t()} | {:ok, Procore.Model.RestV10WorkforcePlanningV2CompaniesCompanyIdProjectsGet404Response.t()} | {:ok, Procore.Model.RestV10WorkforcePlanningV2CompaniesCompanyIdProjectsPost200ResponseInner.t()} | {:ok, Procore.Model.RestV10WorkforcePlanningV2CompaniesCompanyIdGroupsGroupIdReportsLookAheadGet401Response.t()} | {:ok, Procore.Model.RestV10WorkforcePlanningV2CompaniesCompanyIdProjectsGet403Response.t()} | {:error, Tesla.Env.t()}
Delete a Single Group Delete a single Group in a given ID. It should be noted that you can not delete a Group that has active Projects or People belonging to it. This is to prevent those entities from being "stranded" in the system if the group you are trying to delete is the single group they belong to. When you try to delete a Group that can not be deleted for this reason, you will be provided with a list of Project and People IDs that belong to this group so you can remove this group ID from those entities if you choose.
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. NOTE - this is a Laborchart company IDgroup_id
(integer()): Unique identifier for the groupopts
(keyword): Optional parameters
Returns
{:ok, Procore.Model.RestV10WorkforcePlanningV2CompaniesCompanyIdProjectsPost200ResponseInner.t}
on success{:error, Tesla.Env.t}
on failure
rest_v10_workforce_planning_v2_companies_company_id_groups_group_id_get(connection, procore_company_id, company_id, group_id, opts \\ [])
@spec rest_v10_workforce_planning_v2_companies_company_id_groups_group_id_get( Tesla.Env.client(), integer(), integer(), integer(), keyword() ) :: {:ok, Procore.Model.RestV10WorkforcePlanningV2CompaniesCompanyIdGroupsGroupIdReportsLookAheadGet400Response.t()} | {:ok, Procore.Model.RestV10WorkforcePlanningV2CompaniesCompanyIdProjectsGet404Response.t()} | {:ok, Procore.Model.RestV10WorkforcePlanningV2CompaniesCompanyIdGroupsGroupIdReportsLookAheadGet401Response.t()} | {:ok, Procore.Model.RestV10WorkforcePlanningV2CompaniesCompanyIdProjectsGet403Response.t()} | {:ok, Procore.Model.RestV10WorkforcePlanningV2CompaniesCompanyIdGroupsGet200ResponseInner.t()} | {:error, Tesla.Env.t()}
Get a Single Group Get the single Group in a given ID
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. NOTE - this is a Laborchart company IDgroup_id
(integer()): Unique identifier for the groupopts
(keyword): Optional parameters
Returns
{:ok, Procore.Model.RestV10WorkforcePlanningV2CompaniesCompanyIdGroupsGet200ResponseInner.t}
on success{:error, Tesla.Env.t}
on failure
rest_v10_workforce_planning_v2_companies_company_id_groups_group_id_post(connection, procore_company_id, company_id, group_id, opts \\ [])
@spec rest_v10_workforce_planning_v2_companies_company_id_groups_group_id_post( Tesla.Env.client(), integer(), integer(), integer(), keyword() ) :: {:ok, Procore.Model.RestV10WorkforcePlanningV2CompaniesCompanyIdGroupsGroupIdReportsLookAheadGet400Response.t()} | {:ok, Procore.Model.RestV10WorkforcePlanningV2CompaniesCompanyIdProjectsGet404Response.t()} | {:ok, Procore.Model.RestV10WorkforcePlanningV2CompaniesCompanyIdGroupsGroupIdReportsLookAheadGet401Response.t()} | {:ok, Procore.Model.RestV10WorkforcePlanningV2CompaniesCompanyIdProjectsGet403Response.t()} | {:ok, Procore.Model.RestV10WorkforcePlanningV2CompaniesCompanyIdGroupsGet200ResponseInner.t()} | {:error, Tesla.Env.t()}
Update a Single Group Update the single Group in a given ID and body
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. NOTE - this is a Laborchart company IDgroup_id
(integer()): Unique identifier for the groupopts
(keyword): Optional parameters:body
(RestV10WorkforcePlanningV2CompaniesCompanyIdGroupsGroupIdPostRequest):
Returns
{:ok, Procore.Model.RestV10WorkforcePlanningV2CompaniesCompanyIdGroupsGet200ResponseInner.t}
on success{:error, Tesla.Env.t}
on failure
rest_v10_workforce_planning_v2_companies_company_id_groups_post(connection, procore_company_id, company_id, opts \\ [])
@spec rest_v10_workforce_planning_v2_companies_company_id_groups_post( Tesla.Env.client(), integer(), integer(), keyword() ) :: {:ok, Procore.Model.RestV10WorkforcePlanningV2CompaniesCompanyIdGroupsGroupIdReportsLookAheadGet400Response.t()} | {:ok, Procore.Model.RestV10WorkforcePlanningV2CompaniesCompanyIdProjectsGet404Response.t()} | {:ok, Procore.Model.RestV10WorkforcePlanningV2CompaniesCompanyIdGroupsPost200Response.t()} | {:ok, Procore.Model.RestV10WorkforcePlanningV2CompaniesCompanyIdGroupsGroupIdReportsLookAheadGet401Response.t()} | {:ok, Procore.Model.RestV10WorkforcePlanningV2CompaniesCompanyIdProjectsGet403Response.t()} | {:error, Tesla.Env.t()}
Create a Single Group Creates a single Group
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. NOTE - this is a Laborchart company IDopts
(keyword): Optional parameters:body
(RestV10WorkforcePlanningV2CompaniesCompanyIdGroupsPostRequest):
Returns
{:ok, Procore.Model.RestV10WorkforcePlanningV2CompaniesCompanyIdGroupsPost200Response.t}
on success{:error, Tesla.Env.t}
on failure