Create a new data source.
POST
https://core.shopimind.com/v1/data-sources
Creates a new data source for the shop. The label must be unique per shop. Optionally set a parent_id to group this source under a parent integration (e.g., a store under "Hiboutik").
Parameters
Header Parameters
spm-api-key*
[Authentication] Required API key.
Type
Requiredstring
Pattern
"^[a-zA-Z0-9-]{20,64}$"Request Body
application/json
JSON "label": "Magasin Paris", "type": "api", "config": "{"api_key": "..."}", "parent_id": 1
{
}
Responses
Data source created successfully.
application/json
JSON "statusCode": 201, "data": { "id_data_source": 4, "id_shop": 42, "label": "Magasin Lyon", "type": "api", "is_default": false, "config": null, "active": true, "parent_id": 2, "created_at": "2024-06-15T10:00:00.000Z", "updated_at": "2024-06-15T10:00:00.000Z" }
{
}
Create a new data source. Creates a new data source for the shop. The label must be unique per shop. Optionally set a parent_id to group this source under a parent integration (e.g., a store under "Hiboutik"). POST /v1/data-sources createDataSource Data Sources spm-api-key [Authentication] Required API key. Data source created successfully. Duplicate label or invalid parent_id. Client error - Invalid request or authentication issues Server error - Internal processing failure