title: Vue.js getting just some attributes from an array to another array
body: <p>Im trying to PUT some of atributes from array Zamestnanci to array archivovany, I tried almost everything and it seems to not work at all. I allways get HTTP error 415 or HTTP 400 because the atributes in archivovany are null.</p>
  <pre><code>&lt;script&gt;  
  import axios from 'axios';
  import ZamestnanciService from &quot;../ZamestnanciService&quot;;
  
  
  
  
      export default {  
  
           name: 'Zamestnanci',  
               data() {  
         return { 
  
        zamestnanci: [{
          id:&quot;&quot;,
          meno:&quot;&quot;,
          priezvisko:&quot;&quot;,
          pozicia:&quot;&quot;,
        }],
  
        archivovany: [{
          id: &quot;&quot;,
          meno: &quot;&quot;,
          priezvisko: &quot;&quot;,
          datumPrepustenia: new Date(),
          poslednaPozicia: &quot;&quot;,
         }]
        ,
        
       
  
      };  
    },  
            created(){  
               this.getZamestnanci();
               
               
            
                    },
  methods: {
        
        getZamestnanci(){  
        axios.get('https://localhost:49153/api/zamestnanci').then(response =&gt; {  
        this.zamestnanci = response.data;  
            console.log(response.data);})
            }, //get
        
        archivovat(id){
   
        axios.post('https://localhost:49153/api/archivovany/',this.archivovany).then(res=&gt;{
         console.log(res);})
         },
  
        deleteZamestnanci(id){
          axios.delete('https://localhost:49153/api/zamestnanci/'+id).then(response =&gt; {this.getZamestnanci();})
          if(confirm(&quot;chcete archivovať zamestnanca ?&quot;)){
        this.archivovat();
        
        }
        },//delete
     
   }
  
        
        
  
      
  
       
  
      }
  
      
           
      
  
   
   
  &lt;/script&gt;  
  </code></pre>
  <p>I need to pass id, meno, priezvisko, pozicia to array archivovany and then PUT the data to another table, but nothing seems to work can anyone please help me ?</p>
  <p>The data is from asp.net core API</p>