curl --request POST \
--url https://apigcp.trynia.ai/v2/local-folders/{local_folder_id}/sync \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"files": [
{
"path": "notes/meeting.md",
"content": "<string>"
}
]
}
'{
"success": true,
"message": "<string>",
"new_items": 123,
"updated_items": 123
}Trigger a sync of the local folder content with updated files.
curl --request POST \
--url https://apigcp.trynia.ai/v2/local-folders/{local_folder_id}/sync \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"files": [
{
"path": "notes/meeting.md",
"content": "<string>"
}
]
}
'{
"success": true,
"message": "<string>",
"new_items": 123,
"updated_items": 123
}API key must be provided in the Authorization header
Local folder ID
Updated file contents
Show child attributes
Was this page helpful?