JSFiddle - React, Tailwind, and code Playground
JavaScript
let projects = prompt("what are the IDs of the projects you want to add?");
let studio = prompt("what is the ID of the studio? (you can find it in the URL)");
projects = projects.split(",");
let project_id;
for (let i = 0; i < projects.length; i++) {
project_id = projects[i];
$.ajax({
url: '/site-api/projects/in/' + studio + '/add/?pks=' + project_id,
type: 'PUT',
});
}