Create an import
How to create an import via API
To create a new import, send a POST
request to the /api/imports
endpoint, passing the resource arguments in the request body.
Request
POST https://yourdomain.commercelayer.io/api/imports
Arguments
Body Parameter
Type
Required
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
Example
The following request creates a new import:
Last updated