Create an import
How to create an import via API
Last updated
How to create an import via API
Last updated
To create a new import, send a POST
request to the /api/imports
endpoint, passing the resource arguments in the request body.
POST https://yourdomain.commercelayer.io/api/imports
Body Parameter | Type | Required |
---|---|---|
The following request creates a new import:
type
string
Required
attributes.resource_type
string
Required
attributes.format
string
Optional
attributes.parent_resource_id
string
Optional
attributes.inputs
array
Required
attributes.reference
string
Optional
attributes.reference_origin
string
Optional
attributes.metadata
object
Optional