younifyd
Menu

Post Import Job By Code

Launch import job by code

POST/api/rest/v1/jobs/import/{code}

Use it in a workflow

  1. Add a step and choose the Akeneo connector.
  2. Pick the Post Import Job By Code action (under Jobs).
  3. Fill in the fields below, then reference the result from later steps as {{postImportJobByCode.response.data}}.

Request

Path parameters

codestringrequired

This path parameter is used to specify the unique identifier of the entity you want to retrieve or manipulate. It is essential for identifying the specific entity in the API requests. Ensure that the code is correctly formatted and corresponds to an existing entity in the system.

Request body

Enter the body as JSON in the step's Body field.

import_modestring

Change the import mode for this job by overriding the profile value. Available values are: *create_only*, *update_only* and *create_or_update*.

One ofcreate_onlyupdate_onlycreate_or_update

json
{
  "import_mode": "create_or_update"
}

Response

Returns 200 with an object. Read it in later steps with {{postImportJobByCode.response.data.<field>}}.

job_execution_idoneOf

The ID of the job execution that was launched

json
{
  "job_execution_id": 12345
}

Need more? See the Akeneo guide for connection setup and behaviour shared by every action.

Post Import Job By Code — Akeneo — Documentation