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