code: def do_PUT(self):
          
          self.do_initial_operations()
          payload = self.coap_uri.get_payload()
          if payload is None:
              logger.error("BAD PUT REQUEST")
              self.send_error(BAD_REQUEST)
              return
          logger.debug(payload)
          coap_response = self.client.put(self.coap_uri.path, payload)
          self.client.stop()
          logger.debug("Server response: %s", coap_response.pretty_print())
          self.set_http_response(coap_response)
docs: Perform a PUT request