Skip to content

Update /api/v1/settings/data-transfer/imports/{id} Incomplete response on update import request – Missing expected fields #160

Description

@sagarkumar-webkul

Title:

Incomplete response on update import request – Missing expected fields

Description:

When sending a POST request to /api/v1/settings/data-transfer/imports/{id} to update an existing import, the response only returns:

{
  "data": {
    "id": 1
  },
  "message": "Import updated successfully."
}

This response is missing critical metadata that is necessary for verifying the state of the import after update.

Affected Endpoint:

POST /api/v1/settings/data-transfer/imports/{id}

Expected Response:

After a successful update, the following fields should be included in the data block of the response:

{
"data": {
"id": 1,
"_method": "PUT",
"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-08T12:00:00Z"
},
"message": "Import updated successfully."
}

Actual Response:

Image

Only the id is returned in the data object, with a success message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions