client.jobs.put_shares_groups

A method of the Jobs endpoint.

put_shares_groups(id: int, group_ids: List[int], permission_level: str, *, share_email_body: str = None, send_shared_email: bool = None) Response

Set the permissions groups has on this object

API URL: PUT /jobs/{id}/shares/groups

import civis
client = civis.APIClient()
response = client.jobs.put_shares_groups(...)
Parameters:
idint

The ID of the resource that is shared.

group_idsList[int]

An array of one or more group IDs.

permission_levelstr

Options are: “read”, “write”, or “manage”.

share_email_bodystr, optional

Custom body text for e-mail sent on a share.

send_shared_emailbool, optional

Send email to the recipients of a share.

Returns:
civis.Response