Skip to main content

API To Patch stack instead of full update

I would like to be able to update specific attributes on a stack without having to pass every current attributes.

Currently, when calling updateStack, two issues:

  • name, branch and some other attributes are required so we can’t even call the API

  • if we send the required attributes, then it resets other attributes (eg: not sending labels will remove all labels)

Workaround
Problem
Status: ⬆️ Gathering votes2 comments

Log in to comment and vote

Comments2

  • Lavender Chipmunk

    •

    Jul 22

    I would also like to see this capability realized. We were attempting to update a single toggle to enable secret masking on all Stacks that had it disabled. All of the Stacks now have that option turned on, however those 76 Stacks also lost their assigned Space, Labels, Project Root, Contexts and other settings. We’ve had to go through each one and manually correct them.

    Adding an input to the updateStack mutation that allows only the properties specified to be updated would be very helpful (or at least having the schema call this out so people are aware it can be destructive).

  • Tan Peach

    •

    Dec 9, 2025

    This is extra painful when doing stack cleanup. Say I’m reorganizing my stacks, and I have a bunch of now empty stacks I want to delete. I have to go through and disable deletion protection, and doing that via GraphQL means that I first have to figure out what values to add for the other inputs. I’d much rather send a partial update that just disables protectFromDeletion!