Update group
Update group
zones.groups.update(strgroup_id, GroupUpdateParams**kwargs) -> Group
PATCH/zones/{zoneId}/groups/{groupId}
Updates a group's name and/or identifier (partial update). A group's source is immutable. The name of a group synced from an external directory cannot be changed while external sync is enabled for the zone; its identifier can.
Parameters
zone_id: str
group_id: str
identifier: Optional[str]
User-specified identifier, unique within the zone.
minLength1
maxLength2048
formatsafe-text
name: Optional[str]
Human-readable group name
minLength1
maxLength255
formatsafe-text
Returns
Update group
import os
from keycardai_api import KeycardAPI
client = KeycardAPI(
api_key=os.environ.get("KEYCARD_API_API_KEY"), # This is the default and can be omitted
)
group = client.zones.groups.update(
group_id="groupId",
zone_id="zoneId",
)
print(group.id){
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"external": true,
"identifier": "identifier",
"name": "name",
"organization_id": "organization_id",
"updated_at": "2019-12-27T18:11:19.117Z",
"zone_id": "zone_id",
"member_count": 0,
"roles": [
"string"
]
}Returns Examples
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"external": true,
"identifier": "identifier",
"name": "name",
"organization_id": "organization_id",
"updated_at": "2019-12-27T18:11:19.117Z",
"zone_id": "zone_id",
"member_count": 0,
"roles": [
"string"
]
}