code: def patch(self, request):
          
          attrs = ('edx_video_id', 'status')
          missing = [attr for attr in attrs if attr not in request.data]
          if missing:
              return Response(
                  status=status.HTTP_400_BAD_REQUEST,
                  data={'message': u'"{missing}" params must be specified.'.format(missing=' and '.join(missing))}
              )
  
          edx_video_id = request.data['edx_video_id']
          video_status = request.data['status']
          if video_status not in VALID_VIDEO_STATUSES:
              return Response(
                  status=status.HTTP_400_BAD_REQUEST,
                  data={'message': u'"{status}" is not a valid Video status.'.format(status=video_status)}
              )
  
          try:
              video = Video.objects.get(edx_video_id=edx_video_id)
              video.status = video_status
              video.save()
              response_status = status.HTTP_200_OK
              response_payload = {}
          except Video.DoesNotExist:
              response_status = status.HTTP_400_BAD_REQUEST
              response_payload = {
                  'message': u'Video is not found for specified edx_video_id: {edx_video_id}'.format(
                      edx_video_id=edx_video_id
                  )
              }
  
          return Response(status=response_status, data=response_payload)
docs: Update the status of a video.