Skip to content

Commit

Permalink
Update API schema for Group model
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavcs committed Sep 24, 2024
1 parent 5524ea7 commit 5d5065a
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions lib/galaxy/schema/groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,18 @@ class GroupCreatePayload(Model):


@partial_model()
class GroupUpdatePayload(GroupCreatePayload):
pass
class GroupUpdatePayload(Model):
"""Payload schema for updating a group."""

name: str = Field(
...,
title="name of the group",
)
user_ids: Optional[List[DecodedDatabaseIdField]] = Field(
None,
title="user IDs",
)
role_ids: Optional[List[DecodedDatabaseIdField]] = Field(
None,
title="role IDs",
)

0 comments on commit 5d5065a

Please sign in to comment.