Skip to main content
PUT
/
fs
/
{source_id}
/
files
Write file
curl --request PUT \
  --url https://apigcp.trynia.ai/v2/fs/{source_id}/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "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
path
string
required
body
string
required
encoding
string
default:utf8
language
string | null
headers
Headers · object

Response

Successful Response