How to set bucket type when creating a device from API?

Hello,

This is a follow-up on @Vitor’s reply in analysis running slow.

How do we set the bucket type when we create a device from the API. I don’t see anything on the BucketInfo that links to a type.

Kind Regards,

Erwin

Hello Erwin,

I think you can find more details about the type - Here -

where the type can be “DataStorageType: “immutable” | “mutable” | “legacy””

Let me know if that’s what you’re looking for!

Hi Bill,

Excellent! That is exactly what I was looking for.

Thanks for your help.

Erwin

Most of the bucket options were moved to the Device creation object.

https://js.sdk.tago.io/interfaces/Types.Account.Devices.DeviceCreateInfo.html

You should now have type and data_retention when creating a device. I’ll do a post later about all migration information you need when updating the application to the new buckets.

Thanks Vitor.

Looking forward to your post.

Regards

Erwin