Any way to activate app discounts?

I’m trying to activate my app’s automatic app discounts using the GraphQl API, but I noticed that the discountAutomaticAppUpdate mutation doesn’t accept statusas input.

How can I activate it then? Is it restricted to be activated only via the Shopify Admin?

Any insight is appreciated, thanks!

Managed to do it by updating the startDate and endDate!

startsAt: “2024-01-01T00:00:00”
endsAt: “2100-01-01T00:00:00”

Is there a less hacky way to do this?

Status (active, scheduled, expired) is a derived, rather than set.

If you could directly set the status, and set a discount status to scheduled, what values would startsAt and endsAt have?