Skip to content

How to create a Product with images in Swell using backend API in a NextJS server action ? #536

Discussion options

You must be logged in to vote

First, you need to upload a list of files using /:files endpoint.
https://developers.swell.is/backend-api/files/create-a-file#create-a-file

Then, you can create a product with images field value as the list of file upload responses.
https://developers.swell.is/backend-api/products/create-a-product

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@waldothedeveloper
Comment options

@waldothedeveloper
Comment options

Answer selected by logeshswell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
2 participants