code: def encode_configuration(self, did, eid, parameters):
          '''
          Encode parameters as a URL-ready string
  
          Args:
              - did (str): Document ID
              - eid (str): Element ID
              - parameters (dict): key-value pairs of the parameters to be encoded
          Returns:
              - configuration (str): the url-ready configuration string.
          '''
          # change to the type of list the API is expecting
          parameters = [{"parameterId": k, "parameterValue": v} for (k,v) in parameters.items()]
  
          payload = {
              'parameters':parameters
  
          }
          req_headers = {
              'Accept': 'application/vnd.onshape.v1+json',
              'Content-Type': 'application/json'
          }
  
          res = self._api.request('post', '/api/elements/d/' + did  + '/e/' + eid + '/configurationencodings', body=payload, headers=req_headers)
  
          return json.loads(res.content.decode("utf-8"))["encodedId"f encode_configuration(self, did, eid, parameters):
          '''
          Encode parameters as a URL-ready string
  
          Args:
              - did (str): Document ID
              - eid (str): Element ID
              - parameters (dict): key-value pairs of the parameters to be encoded
          Returns:
              - configuration (str): the url-ready configuration string.
          '''
          # change to the type of list the API is expecting
          parameters = [{"parameterId": k, "parameterValue": v} for (k,v) in parameters.items()]
  
          payload = {
              'parameters':parameters
  
          }
          req_headers = {
              'Accept': 'application/vnd.onshape.v1+json',
              'Content-Type': 'application/json'
          }
  
          res = self._api.request('post', '/api/elements/d/' + did  + '/e/' + eid + '/configurationencodings', body=payload, headers=req_headers)
  
          return json.loads(res.content.decode("utf-8"))["encodedId"]
docs: Encode parameters as a URL-ready string
  
          Args:
              - did (str): Document ID
              - eid (str): Element ID
              - parameters (dict): key-value pairs of the parameters to be encoded
          Returns:
              - configuration (str): the url-ready configuration string.