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 |
| Required |
attributes.resource_type |
| Required |
attributes.format |
| Optional |
attributes.parent_resource_id |
| Optional |
attributes.inputs |
| Required |
attributes.reference |
| Optional |
attributes.reference_origin |
| Optional |
attributes.metadata |
| Optional |
Example
The following request creates a new import:
Last updated