---
updatedAt: 2025-10-22T14:38:58.000Z
agentTools:
  projectIndex: https://360learning.readme.io/llms.txt
---

# Retrieve a path session: Migration guide

This guide details how the `Retrieve a path session` endpoint has changed (previously known as `getPathSession` in v1).

<Callout icon="💡" theme="default">
  ### Key changes

  * **Endpoint structure:** The v2 endpoint now requires both the `pathId` and `sessionId` as path parameters, whereas v1 only required the `session_id`.
  * **Data separation:** API v2 adopts a more modular design, distributing data previously consolidated in the v1 session response (e.g., path-specific details, tags, enrollment lists) across dedicated endpoints.
</Callout>

## Documentation links

Here are the links to the API reference for:

* [API v1](https://api.360learning.com/#954b6e06-0e4f-4bf6-9f42-58a1020c1e1e)
* [API v2 ](https://360learning.readme.io/reference/v2pathsgetpathsessioncontroller_getpathsession)

## Endpoint mapping

Here's the direct correlation between the v1 and v2 endpoint URLs:

* API v1: `/api/v1/paths/sessions/:session_id`
* API v2: `/api/v2/paths/{pathId}/sessions/{sessionId}`

## Behavior changes

This endpoint in API v2 reflects a refined separation of concerns. While API v1's `getPathSession` endpoint provided a broader set of related data (e.g., path details, skills, enrollments), API v2 distributes this information across more specialized endpoints. Consequently, to retrieve full details that were previously consolidated, you may now need to make additional calls to dedicated endpoints such as [Retrieve a path](https://360learning.readme.io/reference/v2pathsgetpathcontroller_getpath), [List all tags in a path](https://360learning.readme.io/reference/v2pathsgetpathtagscontroller_gettags), or [Retrieve a path session audience](https://360learning.readme.io/reference/v2pathsgetsessionaudiencecontroller_getsessionaudience).

Additionally, API v2 new capabilities and management options for open access and automatic reenrollment are reflected in new output properties like `registrationRequestValidation`, `userLimit`, and `automaticReenrollment`.

## Input changes

This section details the specific alterations to the input requirements between API versions.

### API v1 input example

```Text Shell
curl --location 'https://app.360learning.com/api/v1/paths/sessions/685428d5df21c4596efefe74?company={{company}}&apiKey={{apiKey}}'
```

### API v2 input example

```Text Shell
curl --request GET \
     --url https://app.360learning.com/api/v2/paths/6854284dde395b87af7657c6/sessions/685428d5df21c4596efefe74 \
     --header '360-api-version: v2.0' \
     --header 'accept: application/json' \
     --header 'authorization: Bearer your_access_token'
```

### Main input differences

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th>
        Change type
      </th>

      <th>
        API v1
      </th>

      <th>
        API v2
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        <span class="param-modified">Modified</span><br/>Path parameter
      </td>

      <td>
        `session_id` (Required): The ID of the path session.
      </td>

      <td>
        `sessionId` (Required): Renamed.
      </td>
    </tr>

    <tr>
      <td>
        <span class="param-added">Added</span><br/>Path parameter
      </td>

      <td>
        *
      </td>

      <td>
        `pathId` (Required): The unique ID of the path.
      </td>
    </tr>
  </tbody>
</Table>

## Output changes

This section outlines the primary changes in the structure and content of a successful API response, reflecting API v2's enhanced separation of concerns. Key alterations include the renaming and restructuring of several session-related properties, the removal of path-specific details previously embedded within the session response, and the absence of direct enrollment information (e.g., enrolled groups), which was present in v1. New fields for audience management and instructor assignment have also been introduced.

### API v1 output example

```Text JSON
{
    "sessionName": "July Session",
    "sessionId": "685428d5df21c4596efefe74",
    "sessionOwnerGroup": "6470744ad045da027bccafd1",
    "sessionCreatedAt": "2025-06-19T15:12:21.000Z",
    "sessionModifiedAt": "2025-06-19T15:15:45.925Z",
    "instructorsMails": [
        "mainInstructorEmail@domain.com",
        "instructorEmail@domain.com"
    ],
    "startDate": "2025-07-01T15:12:21.843Z",
    "endDate": "2025-07-30T23:00:00.000Z",
    "pathName": "Onboarding",
    "pathId": "6854284dde395b87af7657c6",
    "pathOwnerGroup": "66191d23150e9d3e4ad6f60c",
    "pathModifiedAt": "2025-06-19T15:14:10.532Z",
    "authorsMail": [
        "authorEmail@domain.com"
    ],
    "sessionAdditionalInformation": "Onboarding session for managers",
    "description": "",
    "skills": [],
    "tags": [],
    "sourceLang": "en",
    "linear": true,
    "certificateOutlineId": "64ff30ee0991ed01788d589d",
    "steps": [
        {
            "_id": "65bd1aac1cb5834f304dafd1",
            "type": "course"
        }
    ],
    "enrolledGroups": [],
    "translationsLangs": [
        {
            "lang": "fr",
            "published": true,
            "translators": []
        }
    ]
}
```

### API v2 output example

```Text JSON
{
  "_id": "685428d5df21c4596efefe74",
  "createdAt": "2025-06-19T15:12:21.000Z",
  "groupId": "6470744ad045da027bccafd1",
  "instructorIds": [
    "661931c78f73ada0af967859"
  ],
  "isAudienceBuilder": true,
  "mainInstructorId": "6470744ad045da027bccafd0",
  "modifiedAt": "2025-06-19T15:15:45.925Z",
  "name": "July Session",
  "pathId": "6854284dde395b87af7657c6",
  "registrationRequestValidation": "instructors",
  "startDate": "2025-07-01T15:12:21.843Z",
  "additionalInformation": "Onboarding session for managers",
  "automaticReenrollment": {
    "type": "certificationExpiryDate",
    "delayDays": 30
  },
  "endDate": "2025-07-30T23:00:00.000Z",
  "userLimit": 30,
  "translations": [
    {
      "lang": "fr",
      "published": true,
      "translatorIds": [],
      "translatedFields": {
        "name": "Juillet"
      }
    }
  ]
}
```

### Main output differences

This section outlines the primary changes in the structure and content of a successful API response. Key alterations include the renaming and restructuring of several session-related properties, the removal of path-specific details previously embedded within the session response, and the absence of direct enrollment information (e.g., enrolled groups), which was present in v1. New fields for audience management and instructor assignment have also been introduced.

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th>
        Change type
      </th>

      <th>
        API v1
      </th>

      <th>
        API v2
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        <span class="param-removed">Removed</span><br/>Output property
      </td>

      <td>
        `instructorsMails` (Required): Array of email addresses belonging to the instructors for this session, with the main instructor as the first item.
      </td>

      <td>
        * (Now handled by `mainInstructorId` and `instructorIds` using unique IDs)
      </td>
    </tr>

    <tr>
      <td>
        <span class="param-removed">Removed</span><br/>Output property
      </td>

      <td>
        `pathName` (Required): Name of the path.
      </td>

      <td>
        * (Now handled by a separate endpoint, [Retrieve a path](https://360learning.readme.io/reference/v2pathsgetpathcontroller_getpath)).
      </td>
    </tr>

    <tr>
      <td>
        <span class="param-removed">Removed</span><br/>Output property
      </td>

      <td>
        `pathOwnerGroup` (Required): ID of the group owning the path.
      </td>

      <td>
        * (Now handled by a separate endpoint, [Retrieve a path](https://360learning.readme.io/reference/v2pathsgetpathcontroller_getpath) ).
      </td>
    </tr>

    <tr>
      <td>
        <span class="param-removed">Removed</span><br/>Output property
      </td>

      <td>
        `pathModifiedAt` (Required): Last modification date of the path (ISO 8601).
      </td>

      <td>
        * (Now handled by a separate endpoint, [Retrieve a path](https://360learning.readme.io/reference/v2pathsgetpathcontroller_getpath)  ).
      </td>
    </tr>

    <tr>
      <td>
        <span class="param-removed">Removed</span><br/>Output property
      </td>

      <td>
        `authorsMail` (Required): List of the emails of the authors of the path.
      </td>

      <td>
        * (Now handled by a separate endpoint, [Retrieve a path](https://360learning.readme.io/reference/v2pathsgetpathcontroller_getpath), as author IDs).
      </td>
    </tr>

    <tr>
      <td>
        <span class="param-removed">Removed</span><br/>Output property
      </td>

      <td>
        `skills` (Optional): Previously used for what are now named `tags`. This property is removed from this v2 endpoint's output.
      </td>

      <td>
        * (Now handled by a separate endpoint, [List all tags in a path](https://360learning.readme.io/reference/v2pathsgetpathtagscontroller_gettags), as tag IDs).
      </td>
    </tr>

    <tr>
      <td>
        <span class="param-removed">Removed</span><br/>Output property
      </td>

      <td>
        `tags` (Optional): Removed from endpoint v2 version, not replaced.
      </td>

      <td>
        * (Now handled by a separate endpoint, [List all tags in a path](https://360learning.readme.io/reference/v2pathsgetpathtagscontroller_gettags) , as tag IDs).
      </td>
    </tr>

    <tr>
      <td>
        <span class="param-removed">Removed</span><br/>Output property
      </td>

      <td>
        `sourceLang` (Required): Language (bigram) in which the path was originally created.
      </td>

      <td>
        * (Now handled by a separate endpoint, [Retrieve a path](https://360learning.readme.io/reference/v2pathsgetpathcontroller_getpath)).
      </td>
    </tr>

    <tr>
      <td>
        <span class="param-removed">Removed</span><br/>Output property
      </td>

      <td>
        `linear` (Required): true if the path steps must be played in a linear progression; false if steps can be played in any order
      </td>

      <td>
        * (Now handled by a separate endpoint, [Retrieve a path](https://360learning.readme.io/reference/v2pathsgetpathcontroller_getpath)).
      </td>
    </tr>

    <tr>
      <td>
        <span class="param-removed">Removed</span><br/>Output property
      </td>

      <td>
        `certificateOutlineId` (Optional): ID of the certification.
      </td>

      <td>
        * (Now handled by a separate endpoint, [Retrieve a path](https://360learning.readme.io/reference/v2pathsgetpathcontroller_getpath) ).
      </td>
    </tr>

    <tr>
      <td>
        <span class="param-removed">Removed</span><br/>Output property
      </td>

      <td>
        `steps` (Required): Array with the steps included in the path.
      </td>

      <td>
        * (Now handled by a separate endpoint, [Retrieve a path](https://360learning.readme.io/reference/v2pathsgetpathcontroller_getpath)  ).
      </td>
    </tr>

    <tr>
      <td>
        <span class="param-removed">Removed</span><br/>Output property
      </td>

      <td>
        `enrolledGroups` (Required): Array with the IDs of the groups enrolled in the session.
      </td>

      <td>
        * (Now handled by a separate endpoint, [Retrieve a path session audience](https://360learning.readme.io/reference/v2pathsgetsessionaudiencecontroller_getsessionaudience)).
      </td>
    </tr>

    <tr>
      <td>
        <span class="param-removed">Removed</span><br/>Output property
      </td>

      <td>
        `description` (Required): Description of the path session. Removed from v2, not replaced.
      </td>

      <td>
        *
      </td>
    </tr>

    <tr>
      <td>
        <span class="param-modified">Modified</span><br/>Output property
      </td>

      <td>
        `sessionName` (Required): Name of the path session.
      </td>

      <td>
        `name` (Required): Renamed.
      </td>
    </tr>

    <tr>
      <td>
        <span class="param-modified">Modified</span><br/>Output property
      </td>

      <td>
        `sessionOwnerGroup` (Required): ID of the group owning the session.
      </td>

      <td>
        `groupId` (Required): Renamed.
      </td>
    </tr>

    <tr>
      <td>
        <span class="param-modified">Modified</span><br/>Output property
      </td>

      <td>
        `sessionCreatedAt` (Required): Date of creation of the session (ISO 8601).
      </td>

      <td>
        `createdAt` (Required): Renamed.
      </td>
    </tr>

    <tr>
      <td>
        <span class="param-modified">Modified</span><br/>Output property
      </td>

      <td>
        `sessionModifiedAt` (Required): Date of last modification of the session (ISO 8601).
      </td>

      <td>
        `modifiedAt` (Required): Renamed.
      </td>
    </tr>

    <tr>
      <td>
        <span class="param-modified">Modified</span><br/>Output property
      </td>

      <td>
        `sessionId` (Required): ID of the path session.
      </td>

      <td>
        `_id` (Required): Modified name.
      </td>
    </tr>

    <tr>
      <td>
        <span class="param-modified">Modified</span><br/>Output property
      </td>

      <td>
        `sessionAdditionalInformation` (Optional): Additional information for the path session.
      </td>

      <td>
        `additionalInformation` (Optional): Modified name.
      </td>
    </tr>

    <tr>
      <td>
        <span class="param-modified">Modified</span><br/>Output property
      </td>

      <td>
        `translationsLangs` (Required): List of all additional languages associated to the path, including `lang`, `published`, and `translators`.
      </td>

      <td>
        `translations` (Required): The different translations available for the path session. Restructured to include `translatorIds` (changed from `translators`) and a nested `translatedFields` object.
      </td>
    </tr>

    <tr>
      <td>
        <span class="param-added">Added</span><br/>Output property
      </td>

      <td>
        *
      </td>

      <td>
        `mainInstructorId` (Required): The unique ID of the main instructor of the path session.
      </td>
    </tr>

    <tr>
      <td>
        <span class="param-added">Added</span><br/>Output property
      </td>

      <td>
        *
      </td>

      <td>
        `instructorIds` (Required): The list of unique IDs of the co-instructors of the path session.
      </td>
    </tr>

    <tr>
      <td>
        <span class="param-added">Added</span><br/>Output property
      </td>

      <td>
        *
      </td>

      <td>
        `isAudienceBuilder` (Required): True if the path session is an audience builder session; false otherwise
      </td>
    </tr>

    <tr>
      <td>
        <span class="param-added">Added</span><br/>Output property
      </td>

      <td>
        *
      </td>

      <td>
        `registrationRequestValidation` (Required): The registration request validation options for open access registrations.
      </td>
    </tr>

    <tr>
      <td>
        <span class="param-added">Added</span><br/>Output property
      </td>

      <td>
        *
      </td>

      <td>
        `automaticReenrollment` (Optional): The automatic reenrollment settings if enabled for the path session.
      </td>
    </tr>

    <tr>
      <td>
        <span class="param-added">Added</span><br/>Output property
      </td>

      <td>
        *
      </td>

      <td>
        `userLimit` (Optional): The maximum number of learners that can self-enroll in the path session.
      </td>
    </tr>

    <tr>
      <td>
        <span class="param-added">Added</span><br/>Output property
      </td>

      <td>
        *
      </td>

      <td>
        `rootSessionId` (Optional): The unique ID of the root session.
      </td>
    </tr>
  </tbody>
</Table>