provider Permission schemes PUT
/rest/api/3/permissionscheme/{schemeId} @utdk/jira
/rest/api/3/permissionscheme/{schemeId} Update permission scheme
Updates a permission scheme. Below are some important things to note when using this resource:
* If a permissions list is present in the request, then it is set in the permission scheme, overwriting *all existing* grants.
* If you want to update only the name and description, then do not send a permissions list in the request.
* Sending an empty list will remove all permission grants from the permission scheme.
If you want to add or delete a permission grant instead of updating the whole list, see [Create permission grant](#api-rest-api-3-permissionscheme-schemeId-permission-post) or [Delete permission scheme entity](#api-rest-api-3-permissionscheme-schemeId-permission-permissionId-delete).
See [About permission schemes and grants](../api-group-permission-schemes/#about-permission-schemes-and-grants) for more details.
**[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg).
- schemeId path required
- The ID of the permission scheme to update.
- integer
- expand query
- Use expand to include additional information in the response. This parameter accepts a comma-separated list. Note that permissions are always included when you specify any value. Expand options include: * `all` Returns all expandable information. * `field` Returns information about the custom field granted the permission. * `group` Returns information about the group that is granted the permission. * `permissions` Returns all permission grants for each permission scheme. * `projectRole` Returns information about the project role granted the permission. * `user` Returns information about the user who is granted the permission.
- string
Try it
Authentication
Configure credentials for The Jira Cloud platform REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import jira from '@utdk/jira';
await jira.updatepermissionscheme()