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>"
}
]
}Write or update a file in an indexed source.
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>"
}
]
}Was this page helpful?