Have the lines written again
POST
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.
apiKeyheader
AuthorizationBearer <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.
id*stringThe agent id.
language*stringThe language, for example gu-IN.
Whether a new pack is being written, or one already is
application/json- response
language*stringpackState*stringValue in
"writing""ready""failed"revision*integercurl -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}