# One turn of the conversation

`POST /hosting/coder/projects/{id}/turns` · Rivier · hosting

One turn of the conversation: say what to make or change, and the coder works on the project's files with the library, runs the automatic checks, repairs what it can and saves a checkpoint. The answer says whether it was saved, asked a question, proposed three design directions to pick from, only answered, or could not be saved (the project is then as it was). With Accept: text/event-stream the same turn arrives as events while it works (status, say, tool, fixed, checkpoint, question, directions, notice, preview, then result). A saved turn by a signed-in person is also sent to the project's preview when Praecise Cloud is connected.

- Scope: hosting:write
- Graphql: Mutation.hostingCoderTurnCreate
- Sdk: hosting.coderTurn.create
- Cli: hosting coder turn create

## Parameters

- `id` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 8000,
      "description": "What the person says: what to make, or what to change"
    }
  },
  "required": [
    "text"
  ],
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/hosting/coder/projects/{id}/turns' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "text": "string"
}'
```
