Editing a group’s permission

NB: You can only use this function if you have the admin role on the platform.

saagieapi.groups.edit_permission

Example :

saagieapi.groups.edit_permission(group_name="group_reader",
                                 authorizations=[
                                     {
                                         "platformId": 1,
                                         "platformName": "Dev",
                                         "permissions": [
                                             {
                                                 "artifact": {
                                                     "id": "project_id",
                                                     "type": "PROJECT"
                                                 },
                                                 "role": "ROLE_PROJECT_VIEWER"
                                             }
                                         ]
                                     }
                                 ],
                                 realm_authorization={
                                     "permissions": [
                                         {
                                             "artifact": {
                                                 "type": "TECHNOLOGY_CATALOG"
                                             },
                                             "role": "ROLE_ACCESS"
                                         }
                                    ]
                                 }
                                )

Response payload example :

True