-
Notifications
You must be signed in to change notification settings - Fork 83
Open
Description
Calling updateSite with a new session_id has not effect, and returns a site with the original session_id. The site's session_id is also unchanged on subsequent getSite calls.
Steps to reproduce:
In a js file:
import {NetlifyAPI} from "@netlify/api";
const api = new NetlifyAPI(process.env.NETLIFY_ADMIN_PAT);
const newSessionId = 'test';
const siteId = 'some-site-id';
(async () => {
const updatedSite = await api.updateSite({
siteId,
body: {
session_id: newSessionId
}
});
if(updatedSite.session_id !== newSessionId) {
throw new Error("API ignored new session id")
}
})();Metadata
Metadata
Assignees
Labels
No labels