Have the lines written again

POST
/v1/agents/{id}/lines/{language}/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.

Authorization

apiKey
headerAuthorizationBearer <token>

A secret API key from the dashboard (Developers → API keys): vl_live_…, or vl_test_… for test mode. Each operation says which scope the key needs.

Path Parameters

id*string

The agent id.

language*string

The language, for example gu-IN.

Response Body

Whether a new pack is being written, or one already is

application/json
  1. response
language*string
packState*string
Value in"writing""ready""failed"
revision*integer
Example Request
curl -X POST "https://api.vlayers.ai/v1/agents/$AGENT_ID/lines/$LANGUAGE/write" \  -H "Authorization: Bearer $VOICELAYER_API_KEY"
Example Response
{  "language": "gu-IN",  "packState": "writing",  "revision": 2}