parameters: (self)
docstring: Plugins - update
          ---
          description: Update a list of plugins.
          requestBody:
              description: Requested list of plugins to update.
              required: True
              content:
                  application/json:
                      schema:
                          RequestTableUpdateByIdList
          responses:
              200:
                  description: 'Successful request; Returns success status'
                  content:
                      application/json:
                          schema:
                              BaseSuccessSchema
              400:
                  description: Bad request; Check `messages` for any validation errors
                  content:
                      application/json:
                          schema:
                              BadRequestSchema
              404:
                  description: Bad request; Requested endpoint not found
                  content:
                      application/json:
                          schema:
                              BadEndpointSchema
              405:
                  description: Bad request; Requested method is not allowed
                  content:
                      application/json:
                          schema:
                              BadMethodSchema
              500:
                  description: Internal error; Check `error` for exception
                  content:
                      application/json:
                          schema:
                              InternalErrorSchema
docstring_summary: Plugins - update
          ---
          description: Update a list of plugins.
          requestBody:
              description: Requested list of plugins to update.
              required: True
              content:
                  application/json:
                      schema:
                          RequestTableUpdateByIdList
          responses:
              200:
                  description: 'Successful request; Returns success status'
                  content:
                      application/json:
                          schema:
                              BaseSuccessSchema
              400:
                  description: Bad request; Check `messages` for any validation errors
                  content:
                      application/json:
                          schema:
                              BadRequestSchema
              404:
                  description: Bad request; Requested endpoint not found
                  content:
                      application/json:
                          schema:
                              BadEndpointSchema
              405:
                  description: Bad request; Requested method is not allowed
                  content:
                      application/json:
                          schema:
                              BadMethodSchema
              500:
                  description: Internal error; Check `error` for exception
                  content:
                      application/json:
                          schema:
                              InternalErrorSchema
docstring_tokens: Plugins - update --- description : Update a list of plugins . requestBody : description : Requested list of plugins to update . required : True content : application / json : schema : RequestTableUpdateByIdList responses : 200 : description : Successful request ; Returns success status content : application / json : schema : BaseSuccessSchema 400 : description : Bad request ; Check messages for any validation errors content : application / json : schema : BadRequestSchema 404 : description : Bad request ; Requested endpoint not found content : application / json : schema : BadEndpointSchema 405 : description : Bad request ; Requested method is not allowed content : application / json : schema : BadMethodSchema 500 : description : Internal error ; Check error for exception content : application / json : schema : InternalErrorSchema
function: def update_plugins(self):
          """
          Plugins - update
          ---
          description: Update a list of plugins.
          requestBody:
              description: Requested list of plugins to update.
              required: True
              content:
                  application/json:
                      schema:
                          RequestTableUpdateByIdList
          responses:
              200:
                  description: 'Successful request; Returns success status'
                  content:
                      application/json:
                          schema:
                              BaseSuccessSchema
              400:
                  description: Bad request; Check `messages` for any validation errors
                  content:
                      application/json:
                          schema:
                              BadRequestSchema
              404:
                  description: Bad request; Requested endpoint not found
                  content:
                      application/json:
                          schema:
                              BadEndpointSchema
              405:
                  description: Bad request; Requested method is not allowed
                  content:
                      application/json:
                          schema:
                              BadMethodSchema
              500:
                  description: Internal error; Check `error` for exception
                  content:
                      application/json:
                          schema:
                              InternalErrorSchema
          """
          try:
              json_request = self.read_json_request(RequestTableUpdateByIdList())
  
              if not plugins.update_plugins(json_request.get('id_list', [])):
                  self.set_status(self.STATUS_ERROR_INTERNAL, reason="Failed to update the plugins by their IDs")
                  self.write_error()
                  return
  
              self.write_success()
              return
          except BaseApiError as bae:
              tornado.log.app_log.error("BaseApiError.{}: {}".format(self.route.get('call_method'), str(bae)))
              return
          except Exception as e:
              self.set_status(self.STATUS_ERROR_INTERNAL, reason=str(e))
              self.write_error()
function_tokens: def update_plugins ( self ) : try : json_request = self . read_json_request ( RequestTableUpdateByIdList ( ) ) if not plugins . update_plugins ( json_request . get ( 'id_list' , [ ] ) ) : self . set_status ( self . STATUS_ERROR_INTERNAL , reason = "Failed to update the plugins by their IDs" ) self . write_error ( ) return self . write_success ( ) return except BaseApiError as bae : tornado . log . app_log . error ( "BaseApiError.{}: {}" . format ( self . route . get ( 'call_method' ) , str ( bae ) ) ) return except Exception as e : self . set_status ( self . STATUS_ERROR_INTERNAL , reason = str ( e ) ) self . write_error ( )