Procore.Api.CoreProjectDirectoryProjectDistributionGroups (procore_sdk v0.3.0)

API calls for all endpoints tagged CoreProjectDirectoryProjectDistributionGroups.

Summary

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_get(connection, procore_company_id, project_id, distribution_group_id, opts \\ [])

Show Project Distribution Group Show detail on a specified Project Distribution Group

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
    • :view (String.t): Parameter affecting what level of detail will be returned from the endpoint. 'extended' will include the users in the distribution group.
    • :include_ancestors (boolean()): Parameter affecting what groups can be returned from this endpoint. When 'true', this endpoint will only return distribution groups with users that match the provided (or default) domain_id and min_ual / ual. Company level distribution groups can be viewed as well if they have users matching the provided (or default) permissions. If extended view is requested, only the users with matching permissions will be returned in the response. When include_ancestors is false or absent, only Project level groups can be viewed.
    • :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'.
    • :ual (integer()): Parameter affecting the scope for the Distribution Groups. Will return only Distributions Groups who users that have the exact ual specified by the 'ual'. If provided, this will take precendence over min_ual. Only applies to requests that also have include_ancestors set to 'true'.

Returns

  • {:ok, Procore.Model.RestV10ProjectsProjectIdDistributionGroupsDistributionGroupIdGet200Response.t} 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.ExtendedView.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 what groups will be returned from this endpoint. When 'true', this endpoint will only return distribution groups with users that match the provided (or default) domain_id and min_ual / ual. Company level distribution groups will be returned as well if they have users matching the provided (or default) permissions. If extended view is requested, only the users with matching permissions will be returned in the response. When include_ancestors is false or absent, only Project level groups will be returned.
    • :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'.
    • :ual (integer()): Parameter affecting the scope for the Distribution Groups. Will return only Distributions Groups who users that have the exact ual specified by the 'ual'. If provided, this will take precendence over 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.ExtendedView.t} on success
  • {:error, Tesla.Env.t} on failure