---
title: "Steer a running turn"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.cloudraker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Steer a running turn

Path: CloudRaker Workspace API › Workspace Sessions

`POST /workspace/sessions/{sessionId}/turns/{turnId}/steer`

Hands a running turn a mid-flight instruction. **Authorization:** `work_session:comment` on the session, OR `space:contribute` on one of its linked spaces; a desk session is writable only by its owner. Any denial is 404.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `sessionId` (`steerWorkspaceTurn.path.sessionId`; string, required)
- `turnId` (`steerWorkspaceTurn.path.turnId`; string, required)

## Request body

_Required._

- `message` (`steerWorkspaceTurn.message`; string, required)
  - minLength 1; maxLength 4000

## Example request

```json
{
  "message": "string"
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.cloudraker.com/workspace/sessions/<sessionId>/turns/<turnId>/steer' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "message": "string"
}
'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/workspace/sessions/<sessionId>/turns/<turnId>/steer';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({message: 'string'})
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/workspace/sessions/<sessionId>/turns/<turnId>/steer"

payload = { "message": "string" }
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

The engine’s own result for the turn.

#### Example

```json
{
  "data": {
    "property1": null,
    "property2": null
  }
}
```

- `data` (`steerWorkspaceTurn.response.200.data`; map<unknown>, required)

### 400

`validation_failed` — a malformed body.

### 404

No such session or turn, or the caller may not write it.

### 409

`run_not_running` — the turn is already terminal.


Source: https://docs.cloudraker.com/workspace/api/workspace-sessions/steer-workspace-turn/index.md
