title: Fast API - post any key value data
body: <p>I'm using Fast.API
  I need an API to allow users to post any data, key/value - I use this to allow users to add custom profile key/value fields to profile, where key is of type string and value is string, number, boolean.</p>
  <p>how do I add such route?</p>
  <p>I'm using this route, but is not working:</p>
  <pre><code>@route.post('/update_profile')
  def update_profile(acsess_token, **kargs):
      # I need here to get a dictionary like this: { &quot;name&quot;: &quot;John&quot;, &quot;nick_name&quot;: &quot;Juju&quot;, &quot;birth_year&quot;: 1999, &quot;allow_newsletter&quot;: False, }
      # and so on.... any key/value pair
      pass
  </code></pre>
  <p>I want to be able to post to this route any pair(s) key/value. Is any way to do it with FastAPI?</p>
  <p>Thank you.</p>