Skip to content

updateSite ignores new values for session_id #6803

@jimkyndemeyer

Description

@jimkyndemeyer

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions