Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You can use the following endpoint to get all imported data.

Method: GET

URL: https://dev-pim-client.wizart.ai/api/v2.1/imports

...

Expand
titleResponse example
Code Block
{
  "data": [
    {
      "type": "<string>",
      "id": "<string>",
      "attributes": {
        "path": "<string>",
        "original_name": "<string>",
        "status": "<string>",
        "status_message": "<string>",
        "result": "<string>",
        "mapping_id": "<string>",
        "created_at": "<string>",
        "updated_at": "<string>",
        "timezone": "<string>"
      }
    },
    {
      "type": "<string>",
      "id": "<string>",
      "attributes": {
        "path": "<string>",
        "original_name": "<string>",
        "status": "<string>",
        "status_message": "<string>",
        "result": "<string>",
        "mapping_id": "<string>",
        "created_at": "<string>",
        "updated_at": "<string>",
        "timezone": "<string>"
      }
    }
  ]
}

Delete specific import by Id

You can use the following endpoint to get all imported data.

Method: DELETE

URL: https://dev-pim-client.wizart.ai/api/v2.1/imports/{importId}

Authorization: Type: Bearer Token, Token: Bearer eyJ0eXAiOiJKV1QiLCJhbG…

Headers: Accept: application/json

Expand
Image AddedImage Added

CURL:

Code Block
curl --location --request DELETE 'https://dev-pim-client.wizart.ai/api/v2.1/imports/<integer>' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <Bearer Token>'
Expand
titleResponse example
Code Block
{
  "message": "<string>"
}