Skip to main content
POST
/
projects
/
{project_reference}
/
branches
/
{branchName}
/
files
/
{filePath}
/
chunks
Upsert Branch File Chunks
curl --request POST \
  --url https://api.veryfront.com/projects/{project_reference}/branches/{branchName}/files/{filePath}/chunks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "chunks": [
    {
      "chunk_index": 1,
      "content": "<string>",
      "start_offset": 1,
      "end_offset": 1,
      "token_count": 2,
      "metadata": {}
    }
  ]
}
'
{
  "chunks": [
    {
      "id": "<string>",
      "index": 123
    }
  ],
  "created": 123,
  "updated": 123
}

Authorizations

Authorization
string
header
required

Authentication via JWT token or API key. JWT: Get from Veryfront dashboard. API Key: Format "vf__" - create via /api-keys endpoint.

Path Parameters

project_reference
string
required
branchName
string
required
filePath
string
required

Body

application/json
chunks
object[]
required
Required array length: 1 - 500 elements

Response

Result

chunks
object[]
required
created
number
required
updated
number
required