I'm trying to figure out a way to update employee information on a Wordpress website. so far i have figured out how to update one user at a time by adding id on the endpoint. how can i update all users at once. I'm also using custom field via ACF
var axios = require('axios');
var data = JSON.stringify({
"acf": {
"twitter": "aaaaaaa",
//"profile_picture": null,
}
});
var config = {
method: 'post',
url: 'http://localhost:8888/sitename/wp-json/wp/v2/team/1111',
headers: {
'Authorization': 'Basic dhhdsgbhadG',
'Content-Type': 'application/json'
},
data: data
};
axios(config)
.then(function(response) {
console.log(JSON.stringify(response.data));
})
.catch(function(error) {
console.log(error);
});
This code updates team member 1111 twitter url. so 2 questions
the images are stored in a folder with each image url using their names