Skip to main content
PUT
/
fs
/
{source_id}
/
files
/
batch
Batch write files
curl --request PUT \
  --url https://apigcp.trynia.ai/v2/fs/{source_id}/files/batch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "files": [
    {
      "path": "<string>",
      "body": "<string>",
      "encoding": "utf8",
      "language": "<string>",
      "headers": {}
    }
  ]
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Path Parameters

source_id
string
required

Body

application/json
files
WriteFileBody · object[]
required

Response

Successful Response