client.jobs.put_shares_users
A method of the Jobs endpoint.
- put_shares_users(id: int, user_ids: List[int], permission_level: str, *, share_email_body: str = None, send_shared_email: bool = None) → Response
Set the permissions users have on this object
API URL:
PUT /jobs/{id}/shares/usersimport civis client = civis.APIClient() response = client.jobs.put_shares_users(...)
- Parameters:
- idint
The ID of the resource that is shared.
- user_idsList[int]
An array of one or more user 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- readers
civis.Response - usersList[
civis.Response] id : int
name : str
- usersList[
- groupsList[
civis.Response] id : int
name : str
- groupsList[
- readers
- writers
civis.Response - usersList[
civis.Response] id : int
name : str
- usersList[
- groupsList[
civis.Response] id : int
name : str
- groupsList[
- writers
- owners
civis.Response - usersList[
civis.Response] id : int
name : str
- usersList[
- groupsList[
civis.Response] id : int
name : str
- groupsList[
- owners
- total_user_sharesint
For owners, the number of total users shared. For writers and readers, the number of visible users shared.
- total_group_sharesint
For owners, the number of total groups shared. For writers and readers, the number of visible groups shared.