deleteAvatar method

Future<void> deleteAvatar({
  1. required String type,
  2. required String owningObjectId,
  3. required int id,
})

Deletes an avatar from a project or issue type.

Permissions required: Administer Jira global permission.

Implementation

Future<void> deleteAvatar(
    {required String type,
    required String owningObjectId,
    required int id}) async {
  await _client.send(
    'delete',
    'rest/api/3/universal_avatar/type/{type}/owner/{owningObjectId}/avatar/{id}',
    pathParameters: {
      'type': type,
      'owningObjectId': owningObjectId,
      'id': '$id',
    },
  );
}