code: def upload_pre_shared_key(self, body, **kwargs):  # noqa: E501
          
          kwargs['_return_http_data_only'] = True
          if kwargs.get('asynchronous'):
              return self.upload_pre_shared_key_with_http_info(body, **kwargs)  # noqa: E501
          else:
              (data) = self.upload_pre_shared_key_with_http_info(body, **kwargs)  # noqa: E501
              return data
docs: Upload a pre-shared key to Pelion Device Management.  # noqa: E501
  
          Upload a pre-shared key (PSK) for an endpoint to allow it to bootstrap. The existing key will not be overwritten but needs to be deleted first in case of re-setting PSK for an endpoint.  **Note**: The PSK APIs are available only to accounts that have this feature enabled.  **Example usage:**  ``` curl -H \"authorization: Bearer ${API_TOKEN}\" -H \"content-type: application/json\" -X POST https://api.us-east-1.mbedcloud.com/v2/device-shared-keys \\      -d '{\"endpoint_name\": \"my-endpoint-0001\", \"secret_hex\": \"4a4a4a4a4a4a4a4a4a4a4a4a4a4a4a4a\" }' ```   # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass asynchronous=True
          >>> thread = api.upload_pre_shared_key(body, asynchronous=True)
          >>> result = thread.get()
  
          :param asynchronous bool
          :param PreSharedKey body: Pre-shared key to be uploaded. (required)
          :return: None
                   If the method is called asynchronously,
                   returns the request thread.