---
title: "PUT /api/script-assistant/sessions/{sessionId}/guidelines"
method: PUT
path: "/api/script-assistant/sessions/{sessionId}/guidelines"
tags: ["ScriptAssistant"]
---

# PUT /api/script-assistant/sessions/{sessionId}/guidelines

`PUT /api/script-assistant/sessions/{sessionId}/guidelines`

## Request

- Base URL: `https://api.wearelearning.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.wearelearning.io/api/script-assistant/sessions/{sessionId}/guidelines`
- Auth: OAuth 2
  - Implicit: `https://login.wearelearning.io/authorize?audience=https://api.wearelearning.io`

## Path parameters

- `sessionId` string, required

## Request body

- GuidelinesDto
  - `topicAndRawContent` string, nullable
  - `learningGoals` string, nullable
  - `targetPersonas` string, nullable
  - `personas` PersonaDto[], nullable
    - `description` string, required
    - `imageReference` string, nullable
  - `learningApproach` string, nullable
  - `courseLength` string, nullable
  - `targetDurationMinutes` integer, nullable
  - `isComplete` boolean, required

## Response `200`

OK

- GuidelinesDto
  - `topicAndRawContent` string, nullable
  - `learningGoals` string, nullable
  - `targetPersonas` string, nullable
  - `personas` PersonaDto[], nullable
    - `description` string, required
    - `imageReference` string, nullable
  - `learningApproach` string, nullable
  - `courseLength` string, nullable
  - `targetDurationMinutes` integer, nullable
  - `isComplete` boolean, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `422`: Unprocessable Content

---

[API](https://skmtc.dev/wearelearning/apis/we-are-learning-api.md) - [All operations](https://skmtc.dev/wearelearning/apis/we-are-learning-api/llms.txt) - [OpenAPI document](https://skmtc.dev/wearelearning/apis/we-are-learning-api/revisions/e2ca5265db77?raw)
