Hide a link to a custom app from project sidebar in Jira via REST API

Hello,

I am using atlassian-connect.json for our application and also using modules.jiraProjectPages to include a new link within the Project sidebar.

{
    "apiVersion": 1,
    "modules": {
        "jiraProjectPages": [
            {
                "key": "project",
                "name": {
                    "value": ""
                },
            }
        ]
    }	
}

The code above will add a sidebar link into every single project in jira, but this behaviour is unintended for some of my clients.

I would like to hide the automatically generated sidebar link on some projects and I believe it is possible to be accomplished via Jira REST API, since I’ve noticed some plugins are having that exact functionality.

But I was unable to find hiding project links from the sidebar within the API documentation https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/()

Any advice would be appreciated.

Thank you