Procore.Api.CoreCompanyDirectoryCompanyPeople (procore_sdk v0.3.0)
API calls for all endpoints tagged CoreCompanyDirectoryCompanyPeople
.
Summary
Functions
Bulk activation Activate up to 1000 people at once
Bulk deactivation Deactivate up to 1000 people at once
List Company People Return a list of People associated with a Company. Includes users in the directory and reference users. See Filtering on List Actions for information on using the filtering capabilities provided by this endpoint.
Update company person Update the specified Company Person.
Create Company Person Create a new Company Person.
Functions
rest_v10_companies_company_id_people_bulk_activate_post(connection, procore_company_id, company_id, bulk_activate_body, opts \\ [])
@spec rest_v10_companies_company_id_people_bulk_activate_post( Tesla.Env.client(), integer(), String.t(), Procore.Model.BulkActivateBody.t(), keyword() ) :: {:ok, Procore.Model.RestV10CompaniesCompanyIdPeopleBulkActivatePost200Response.t()} | {:ok, Procore.Model.RestV20CompaniesCompanyIdWorkflowsToolsGet401Response.t()} | {:error, Tesla.Env.t()}
Bulk activation Activate up to 1000 people at once
Parameters
connection
(Procore.Connection): Connection to serverprocore_company_id
(integer()): Unique company identifier associated with the Procore User Account.company_id
(String.t): Unique identifier for the company.bulk_activate_body
(BulkActivateBody):opts
(keyword): Optional parameters
Returns
{:ok, Procore.Model.RestV10CompaniesCompanyIdPeopleBulkActivatePost200Response.t}
on success{:error, Tesla.Env.t}
on failure
rest_v10_companies_company_id_people_bulk_deactivate_post(connection, procore_company_id, company_id, bulk_deactivate_body, opts \\ [])
@spec rest_v10_companies_company_id_people_bulk_deactivate_post( Tesla.Env.client(), integer(), String.t(), Procore.Model.BulkDeactivateBody.t(), keyword() ) :: {:ok, Procore.Model.RestV10CompaniesCompanyIdPeopleBulkDeactivatePost200Response.t()} | {:ok, Procore.Model.RestV20CompaniesCompanyIdWorkflowsToolsGet401Response.t()} | {:error, Tesla.Env.t()}
Bulk deactivation Deactivate up to 1000 people at once
Parameters
connection
(Procore.Connection): Connection to serverprocore_company_id
(integer()): Unique company identifier associated with the Procore User Account.company_id
(String.t): Unique identifier for the company.bulk_deactivate_body
(BulkDeactivateBody):opts
(keyword): Optional parameters
Returns
{:ok, Procore.Model.RestV10CompaniesCompanyIdPeopleBulkDeactivatePost200Response.t}
on success{:error, Tesla.Env.t}
on failure
rest_v10_companies_company_id_people_get(connection, procore_company_id, company_id, opts \\ [])
@spec rest_v10_companies_company_id_people_get( Tesla.Env.client(), integer(), integer(), keyword() ) :: {:ok, Procore.Model.RestV10CompaniesCompanyIdWorkflowPermanentLogsGet401Response.t()} | {:ok, [Procore.Model.CompanyPerson.t()]} | {:error, Tesla.Env.t()}
List Company People Return a list of People associated with a Company. Includes users in the directory and reference users. See Filtering on List Actions for information on using the filtering capabilities provided by this endpoint.
Parameters
connection
(Procore.Connection): Connection to serverprocore_company_id
(integer()): Unique company identifier associated with the Procore User Account.company_id
(integer()): ID of the companyopts
(keyword): Optional parameters:page
(integer()): Page:per_page
(integer()): Elements per page:"filters[is_employee]"
(boolean()): If true, returns item(s) whereis_employee
value is true.:"filters[without_reference_users]"
(boolean()): If true, returns only people who are not reference users.:"filters[reference_users_only]"
(boolean()): If true, returns only people who are reference users.:"filters[include_company_people]"
(boolean()): If true, returns people in the Company not just the Project. This option only works if the user has permission to create people in the project directory or permission to read from the company directory.:"filters[search]"
(String.t): Returns item(s) matching the specified search query string.:"filters[connected]"
(boolean()): If true, returns only people who are connected users. If false, returns only people who are not connected users.:"filters[state_code]"
(String.t): Returns only people who have the specified state code.:"filters[job_title]"
(String.t): Returns only people who have the specified job title.:"filters[vendor_id]"
([integer()]): Return item(s) with the specified Vendor IDs.:"filters[trade_id]"
([integer()]): Array of Trade IDs. Returns item(s) with the specified Trade IDs.
Returns
{:ok, [%CompanyPerson{}, ...]}
on success{:error, Tesla.Env.t}
on failure
rest_v10_companies_company_id_people_id_patch(connection, procore_company_id, company_id, id, company_person_body, opts \\ [])
@spec rest_v10_companies_company_id_people_id_patch( Tesla.Env.client(), integer(), integer(), integer(), Procore.Model.CompanyPersonBody.t(), keyword() ) :: {:ok, Procore.Model.RestV10CompaniesCompanyIdWorkflowPermanentLogsGet401Response.t()} | {:ok, Procore.Model.CompanyPerson.t()} | {:error, Tesla.Env.t()}
Update company person Update the specified Company Person.
Parameters
connection
(Procore.Connection): Connection to serverprocore_company_id
(integer()): Unique company identifier associated with the Procore User Account.company_id
(integer()): ID of the companyid
(integer()): ID of the personcompany_person_body
(CompanyPersonBody):opts
(keyword): Optional parameters
Returns
{:ok, Procore.Model.CompanyPerson.t}
on success{:error, Tesla.Env.t}
on failure
rest_v10_companies_company_id_people_post(connection, procore_company_id, company_id, company_person_body, opts \\ [])
@spec rest_v10_companies_company_id_people_post( Tesla.Env.client(), integer(), integer(), Procore.Model.CompanyPersonBody.t(), keyword() ) :: {:ok, Procore.Model.RestV10CompaniesCompanyIdWorkflowPermanentLogsGet401Response.t()} | {:ok, Procore.Model.CompanyPerson.t()} | {:error, Tesla.Env.t()}
Create Company Person Create a new Company Person.
Parameters
connection
(Procore.Connection): Connection to serverprocore_company_id
(integer()): Unique company identifier associated with the Procore User Account.company_id
(integer()): ID of the companycompany_person_body
(CompanyPersonBody):opts
(keyword): Optional parameters
Returns
{:ok, Procore.Model.CompanyPerson.t}
on success{:error, Tesla.Env.t}
on failure