partialUpdateProjectRole method
Future<ProjectRole>
partialUpdateProjectRole({
- required int id,
- required CreateUpdateRoleRequestBean body,
Updates either the project role's name or its description.
You cannot update both the name and description at the same time using this operation. If you send a request with a name and a description only the name is updated.
Permissions required: Administer Jira global permission.
Implementation
Future<ProjectRole> partialUpdateProjectRole(
{required int id, required CreateUpdateRoleRequestBean body}) async {
return ProjectRole.fromJson(await _client.send(
'post',
'rest/api/3/role/{id}',
pathParameters: {
'id': '$id',
},
body: body.toJson(),
));
}