---
title: "Edit a child path session"
method: PATCH
path: "/api/v2/paths/{pathId}/child-sessions/{childSessionId}"
tags: ["Paths"]
---

# Edit a child path session

`PATCH /api/v2/paths/{pathId}/child-sessions/{childSessionId}`

> 🔑
>
> Required OAuth scope: `paths:write`.

Edits a child path session given its unique ID and path.

## Path parameters

- `pathId` string, ObjectId, required
- `childSessionId` string, ObjectId, required

## Headers

- `360-api-version` 'v2.0', required

## Request body

- PatchChildPathSessionDTO
  - `additionalInformation` string, nullable — The additional information of the path session.
  - `mainInstructorId` string, ObjectId — The unique ID of the main instructor of the path session.
  - `instructorIds` string[] — The list of unique IDs of the co-instructors of the path session.

## Response `200`

Returns the updated child session.

- PathSessionDTO
  - `mainInstructorId` string, ObjectId, required — The unique ID of the main instructor of the path session.
  - `registrationRequestValidation` 'disabled' | 'instructors' | 'managers' | 'adminsAndManagers' | 'adminsCoachesInstructorsManagers', required — The registration request validation options for open access registrations. Options are: - `disabled`: There is no validation for registration. - `instructors`: The instructors validate the registration request. - `managers`: The managers validate the registration request. - `adminsAndManagers`: The managers and group admin validate the registration request. - `adminsCoachesInstructorsManagers`:Managers, instructors, group admins and coaches validate the registration request.
  - `startDate` string, date-time, required — The date and time when the path session starts, in the `YYYY-MM-DDThh:mm:ss.sssZ` format (ISO 8601 in Coordinated Universal Time (UTC)).
  - `endDate` string, date-time — The date and time when the path session ends, in the `YYYY-MM-DDThh:mm:ss.sssZ` format (ISO 8601 in Coordinated Universal Time (UTC)).
  - `userLimit` integer — The maximum number of learners that can self enroll in the path session.
  - `automaticReenrollment` union — The automatic reenrollment settings if enabled for the path session.
    - CertificationExpiryDateAutomaticReenrollmentDTO
      - `type` 'certificationExpiryDate', required — The type of automatic reenrollment set for this path session.
      - `delayDays` number, required — The number of days to enroll the learner prior to the next due date.
    - PathCompletionDateAutomaticReenrollmentDTO
      - `type` 'pathCompletionDate', required — The type of automatic reenrollment set for this path session.
      - `delayDays` number, required — The number of days to enroll the learner prior to the next due date.
      - `recurrenceMonths` number, required — Only available when `automaticReenrollment.type` is `pathCompletionDate`. The number of months from the last completion of the path that the learner should have completed the path again by.
  - `ipFiltering` IPFilteringDTO
    - `active` boolean, required — True if the IP filtering is active. False otherwise.
    - `authorizedAddresses` string[], required — The list of authorized IP addresses.
  - `_id` string, ObjectId, required — The unique ID of the path session.
  - `createdAt` string, date-time, required — The date and time when the path session was created, in the `YYYY-MM-DDThh:mm:ss.sssZ` format (ISO 8601 in Coordinated Universal Time (UTC)).
  - `groupId` string, ObjectId, required — The unique ID of the path session owner group.
  - `instructorIds` string[], required — The list of unique IDs of the co-instructors of the path session.
  - `isAudienceBuilder` boolean, required — True if the path session is an audience builder session; false otherwise.
  - `modifiedAt` string, date-time, required — The date and time when the path session was last updated, in the `YYYY-MM-DDThh:mm:ss.sssZ` format (ISO 8601 in Coordinated Universal Time (UTC)).
  - `name` string, required — The title of the path session.
  - `pathId` string, ObjectId, required — The unique ID of the path the session belongs to.
  - `additionalInformation` string — The additional information of the path session.
  - `rootSessionId` string, ObjectId — The unique ID of the root session.
  - `translations` PathSessionTranslationDTO[], required — The different translations available for the path session.
    - `lang` 'bg' | 'cs' | 'da' | 'de' | 'el' | 'en' | 'es' | 'fi' | 'fr' | 'hr' | 'ht_HT' | 'hu' | 'id' | 'it' | 'ja' | 'kar_MM' | 'ko' | 'lt' | 'mh_MH' | 'nl' | 'nl_BE' | 'no' | 'pl' | 'pt' | 'ro' | 'ru' | 'rw_RW' | 'sk' | 'sl' | 'so_SO' | 'sv' | 'sw_KE' | 'th' | 'ti_ET' | 'tr' | 'uk' | 'zh' | 'am_ET' | 'bn' | 'bs' | 'ca' | 'cy' | 'en_CA' | 'en_GB' | 'es_AR' | 'es_MX' | 'et' | 'fr_CA' | 'gu' | 'he_IL' | 'hy' | 'kk' | 'km' | 'lo' | 'lv' | 'mi' | 'mn_MN' | 'mr' | 'ms' | 'my_MM' | 'nn_NO' | 'or' | 'pa' | 'pt_BR' | 'pt_MZ' | 'rn_BI' | 'si' | 'ta' | 'te' | 'tl_PH' | 'ur' | 'uz' | 'yo_NG' | 'zh_tw' | 'el' | 'hi' | 'sr' | 'ar' | 'vi' | 'zh_HANT', required — The language of the translation.
    - `published` boolean, required — True if the translation is available to users in this language; false otherwise.
    - `translatorIds` string[], required — The list of unique IDs of the translators assigned to this language.
    - `translatedFields` PathSessionTranslatedFields, required
      - `name` string — The translation of the field `name` for this language.

## Other responses

- `400` — The server cannot or will not process the request due to something that is perceived to be a client error.
- `401` — The given access token is either missing, invalid, has expired, or has been revoked.
- `403` — The given access token does not have the required OAuth scope to execute the request.
- `404` — The server cannot find the requested resource.
- `429` — The client has sent too many requests in a short amount of time.

---

[API](https://skmtc.dev/360learning/apis/core-api.md) · [All operations](https://skmtc.dev/360learning/apis/core-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/360learning/core-api/revisions/94b691b0b72c/schema)
