'Approve or deny a request
Approve or deny a request.
{method} {path}'

def put(self, request, organization, request_id):

    try:
        access_request = OrganizationAccessRequest.objects.get(id=request_id, team__organization=organization)
    except OrganizationAccessRequest.DoesNotExist:
        raise ResourceDoesNotExist
    if (not self._can_access(request, access_request)):
        return Response(status=403)
    serializer = AccessRequestSerializer(data=request.DATA, partial=True)
    if (not serializer.is_valid()):
        return Response(serializer.errors, status=400)
    is_approved = serializer.object.get('isApproved')
    if (is_approved is None):
        return Response(status=400)
    if is_approved:
        try:
            with transaction.atomic():
                omt = OrganizationMemberTeam.objects.create(organizationmember=access_request.member, team=access_request.team)
        except IntegrityError:
            pass
        else:
            self.create_audit_entry(request=request, organization=organization, target_object=omt.id, target_user=access_request.member.user, event=AuditLogEntryEvent.MEMBER_JOIN_TEAM, data=omt.get_audit_log_data())
            access_request.send_approved_email()
    access_request.delete()
    return Response(status=204)
