-
Notifications
You must be signed in to change notification settings - Fork 19
Description
Title:
Incomplete response on new import creation – Missing expected fields
Description:
When sending a POST request to /api/v1/settings/data-transfer/imports to create a new import, the response only includes:
{
"data": {
"id": 1
},
"message": "Import updated successfully."
}This response is incomplete. It does not return the full metadata required to confirm what values were set for the newly created import. This makes it difficult for users or client applications to verify or continue using the import configuration.
Affected Endpoint:
POST /api/v1/settings/data-transfer/imports
Expected Response:
The response should return the complete data block representing the new import, such as:
{
"data": {
"id": 1,
"_method": "POST",
"type": "persons",
"action": "update",
"validation_strategy": "stop-on-errors",
"allowed_errors": 10,
"field_separator": ",",
"process_in_queue": "off",
"file_name": "persons (10).csv",
"created_at": "2025-07-08T11:30:00Z",
"updated_at": "2025-07-08T11:30:00Z"
},
"message": "Import created successfully."
}Actual Response:
Only the id is returned in the data block, with a generic success message. The rest of the import fields are not returned.
Notes:
This issue applies to new import creation, not just updates. A consistent and complete response structure is expected for both cases.