With my team we are migrating to Slice machine but we have 3000 documents that we need to migrate manually. Is there a way to create this content using a Graphql mutation or the REST API?
Thanks for the help
With my team we are migrating to Slice machine but we have 3000 documents that we need to migrate manually. Is there a way to create this content using a Graphql mutation or the REST API?
Thanks for the help
Hi @manuelo
Thanks for reaching out.
Neither the REST API nor the GraphQL API has a write endpoint, so currently, we don't recommend migrating the legacy projects to Slice Machine, you can check this thread for more about the current situation.
aphQL mutation, depending on the technology stack and APIs you are using. Here's a general overview of how to create content using both approaches:
Using REST API:
axios
in JavaScript) to send a POST request to the endpoint, including the payload and authentication headers.