How to get elements detail using DHIS2 d2 framework?

getInstance()
    .then(d2 => {
        d2.Api.getApi()  
        .put('dataElements/lIkk661BLpG',{
            method: 'PATCH',
            headers: {
            'content-type': 'application/json',
            Authorization: "Basic " + btoa("admin:district")   
            },
            data: '{"code": "AMR ID 111"}'
          })  
        .then(response => {
           console.log("response: ",response);
        });
    });

getInstance()
    .then(d2 => {
        d2.Api.getApi()  
        .put('dataElements/lIkk661BLpG',{
            method: 'PATCH',
            headers: {
            'content-type': 'application/json',
            Authorization: "Basic " + btoa("admin:district")   
            },
            data: '{"code": "AMR ID 111"}'
          })  
        .then(response => {
           console.log("response: ",response);
        });
    });