# Have the lines written again

Source: https://docs.vlayers.ai/reference/agents/write-agent-lines

`POST /v1/agents/{id}/lines/{language}/write` · scope `workspace:write`

Asks the platform to write the lines for one language again (a new revision; the old one keeps serving until the new one is ready). If one is already being written nothing new starts and the answer says `writing`. Nothing waits for the writing: read the lines again in a moment.

Requires an API key with the `workspace:write` scope.

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `id` | path | string | yes | The agent id. Example: `"0192f5c2-6f7a-7b9c-8d1e-2f3a4b5c6d78"` |
| `language` | path | string | yes | The language, for example `gu-IN`. Example: `"gu-IN"` |

## Request

cURL:

```bash
curl -X POST "https://api.vlayers.ai/v1/agents/$AGENT_ID/lines/$LANGUAGE/write" \
  -H "Authorization: Bearer $VOICELAYER_API_KEY"
```

TypeScript:

```ts
import { VoiceLayer } from '@voicelayer/api';

const voicelayer = new VoiceLayer();

const { packState } = await voicelayer.agents.writeLines('<agent-id>', '<language>');
console.log(packState);
```

Python:

```python
from voicelayer import VoiceLayer

vl = VoiceLayer()

result = vl.agents.write_lines("<agent-id>", "<language>")
print(result.pack_state)
```

## Response `200`

```json
{
  "language": "gu-IN",
  "packState": "writing",
  "revision": 2
}
```
