title: Pushing to FusionPBX Database
body: <p>If you're like me with a caveman brain or you find the fusionpbx documentation hard to read I have wrote how to push to their database using nodeJS.
  Make sure you have the table names correctly stored in your JSON objects.</p>
  <p>Here I am using destinations as an example</p>
  <pre><code>  const axiosUser = await axios({
      method: 'post',
      url: '${domain name}/app/api/7/destinations?key=${API_KEY}',
      data:{
        destinations:destination.destinations // here i am importing my JSON OBJECT
      },
      httpsAgent: httpsAgent
    })
      console.log(axiosUser.data)
    } ```
  
  
  also obviously add the correct packages
  - axios
  - https
  - JSON object
  
  
  and here is the JSON object example
  
  {
    &quot;destinations&quot;: [
      {
        &quot;domain_uuid&quot;: &quot;DOMAIN UUID&quot;,
  
        &quot;destination_number&quot;: &quot;NUMBER&quot;,
        &quot;destination_description&quot;: &quot;NAME OF PERSON&quot;
      },
  </code></pre>