#kirito

1 messages · Page 1 of 1 (latest)

elder tapirBOT
cursive gust
dusk brook
#

I understand I have another question, I'm updating subscription schedule using this as params {
phases: [ { items: subscription.items, start_date: subscriptionSchedule.phases[0].start_date, iterations: 12, metadata: subscription.metadata, }, { items: subscription.items, iterations: 12, metadata: subscription.metadata, }, ], })
could I take the common params between phases outside the phases item?

#

it will be like ? ```
{
metadata: subscription.metadata,
items: subscription.items,
phases: [
{
start_date: subscriptionSchedule.phases[0].start_date,
iterations: 12,

    },
    {
      iterations: 12,

    },
  ],
})

}```

#

would this give the same result?

cursive gust
dusk brook
#

I understand thank you

#

Also is it necessary to creat the schedule then update it, cant I create directly those phases to it when creating it using from_subscription?

cursive gust
#

Ah, good question! The API currently doesn't support defining phases when creating a schedule using from_subscription . So it has to be separate API calls

dusk brook
#

I understand would creating one directly with from subscription also create a subscription?

cursive gust
#

No, that parameter is only for existing subscriptions