@@ -519,14 +519,14 @@ You can create, update, delete or load permissions:
519519# You can optionally set a description for a permission.
520520descope_client.mgmt.permission.create(
521521 name = " My Permission" ,
522- description = " Optional description to briefly explain what this permission allows." ,
522+ description = " Optional description to briefly explain what this permission allows."
523523)
524524
525525# Update will override all fields as is. Use carefully.
526526descope_client.mgmt.permission.update(
527527 name = " My Permission" ,
528- new_name = " My Updated Permission"
529- description = " A revised description" ,
528+ new_name = " My Updated Permission" ,
529+ description = " A revised description"
530530)
531531
532532# Permission deletion cannot be undone. Use carefully.
@@ -554,9 +554,9 @@ descope_client.mgmt.role.create(
554554# Update will override all fields as is. Use carefully.
555555descope_client.mgmt.role.update(
556556 name = " My Role" ,
557- new_name = " My Updated Role"
557+ new_name = " My Updated Role" ,
558558 description = " A revised description" ,
559- permission_names = [" My Updated Permission" , " Another Permission" ],
559+ permission_names = [" My Updated Permission" , " Another Permission" ]
560560)
561561
562562# Role deletion cannot be undone. Use carefully.
0 commit comments