Changing the name of a slice1, slice2

Describe your question/issue in detail

When creating a slice through the slice machine (http://localhost:9999), and then adding any block to the Slice Zone in Custom types. When receiving data, these slices have the name slices1, slices2.... How to write your own names for repeating slices in the middle of Custom types

Impacted feature

What steps have you taken to resolve this issue already?


Your Role

Hosting provider

Package.json file

"slice-machine-ui": "^2.2.0",
"@slicemachine/adapter-next": "^0.3.41",
"@prismicio/client": "^7.5.0",
"@prismicio/next": "^1.6.0",
"@prismicio/react": "^2.8.0",

Steps to reproduce

Hey @oleksii.y,

Thanks for reaching out.

When it comes to renaming Slices, there are two important aspects to be aware of:

  1. Display Name: This is the name shown to your marketing team and in the slice machine when you select a slice. You can change the display name at any time in the Slice Machine like this:


  1. API ID: This is the slice key that you receive from the API when a Slice is selected in the page builder. Renaming the API ID is not straightforward once it’s set. The only way to change it is to:
  2. Create a new slice with the desired Slice ID.
  3. Use the migration API to transfer your data from the old slice to the new one.

Therefore, I recommend being very careful when creating your slice to ensure you choose a future-proof Slice ID.

I hope this helps!