Procore.Api.CoreProjectDirectoryProjectDistributionGroups (procore_sdk v0.1.3)

API calls for all endpoints tagged CoreProjectDirectoryProjectDistributionGroups.

Summary

Functions

List Project Distribution Groups Return a list of all Distribution Groups associated with a Project.

Create Project Distribution Group Create a new Distribution Group associated with the given Project.

Functions

Link to this function

rest_v10_projects_project_id_distribution_groups_distribution_group_id_delete(connection, procore_company_id, project_id, distribution_group_id, opts \\ [])

Delete Project Distribution Group Delete a Distribution Group associated with the given Project.

Parameters

  • connection (Procore.Connection): Connection to server
  • procore_company_id (integer()): Unique company identifier associated with the Procore User Account.
  • project_id (integer()): Unique identifier for the project.
  • distribution_group_id (integer()): Unique identifier for the distribution group.
  • opts (keyword): Optional parameters

Returns

  • {:ok, nil} on success
  • {:error, Tesla.Env.t} on failure
Link to this function

rest_v10_projects_project_id_distribution_groups_distribution_group_id_patch(connection, procore_company_id, project_id, distribution_group_id, update_distribution_group_body, opts \\ [])

Update Project Distribution Group Update a Distribution Group associated with the given Project.

Parameters

  • connection (Procore.Connection): Connection to server
  • procore_company_id (integer()): Unique company identifier associated with the Procore User Account.
  • project_id (integer()): Unique identifier for the project.
  • distribution_group_id (integer()): Unique identifier for the distribution group.
  • update_distribution_group_body (UpdateDistributionGroupBody):
  • opts (keyword): Optional parameters
    • :"Idempotency-Token" (String.t): Unique idempotent token

Returns

  • {:ok, Procore.Model.RestV10ProjectsProjectIdDistributionGroupsPost200Response.t} on success
  • {:error, Tesla.Env.t} on failure
Link to this function

rest_v10_projects_project_id_distribution_groups_get(connection, procore_company_id, project_id, opts \\ [])

List Project Distribution Groups Return a list of all Distribution Groups associated with a Project.

Parameters

  • connection (Procore.Connection): Connection to server
  • procore_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
    • :"filters[search]" (String.t): Returns item(s) matching the specified search query string.
    • :sort (String.t): Return items with the specified sort.
    • :view (String.t): Parameter affecting what level of detail will be returned from the endpoint. 'extended' will include the users included in each distribution group.
    • :include_ancestors (boolean()): Parameter affecting the scope for the Distribution Groups, by default is 'false' to only return the Distribution Groups at Project level. Setting it to 'true' will also include Distribution Groups at Company level.
    • :domain_id (integer()): Parameter affecting the scope for the Distribution Groups, by default it is the Domain ID of the Submittals Tool. Will return only Distributions Groups who users that have access to the Tool specified by the domain_id. Only applies to requests that also have include_ancestors set to 'true'.
    • :min_ual (integer()): Parameter affecting the scope for the Distribution Groups, by default it is the 'read' user access level. Will return only Distributions Groups who users that have the min ual specified by the 'min_ual'. Only applies to requests that also have include_ancestors set to 'true'.

Returns

  • {:ok, [%RestV10ProjectsProjectIdDistributionGroupsGet200ResponseInner{}, ...]} on success
  • {:error, Tesla.Env.t} on failure
Link to this function

rest_v10_projects_project_id_distribution_groups_post(connection, procore_company_id, project_id, create_distribution_group_body, opts \\ [])

Create Project Distribution Group Create a new Distribution Group associated with the given Project.

Parameters

  • connection (Procore.Connection): Connection to server
  • procore_company_id (integer()): Unique company identifier associated with the Procore User Account.
  • project_id (integer()): Unique identifier for the project.
  • create_distribution_group_body (CreateDistributionGroupBody):
  • opts (keyword): Optional parameters
    • :"Idempotency-Token" (String.t): Unique idempotent token

Returns

  • {:ok, Procore.Model.RestV10ProjectsProjectIdDistributionGroupsPost200Response.t} on success
  • {:error, Tesla.Env.t} on failure