Skip to main content
POST
/
local-folders
/
{local_folder_id}
/
sync-upload
Sync with database upload
curl --request POST \
  --url https://apigcp.trynia.ai/v2/local-folders/{local_folder_id}/sync-upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "database": {
    "filename": "<string>",
    "content": "aSDinaTvuI8gbWludGxpZnk="
  }
}
'
{
  "success": true,
  "message": "<string>",
  "new_items": 123,
  "updated_items": 123
}

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Path Parameters

local_folder_id
string
required

Local folder ID

Body

application/json
database
object
required

Response

Sync completed

success
boolean
message
string
new_items
integer

Number of new items synced

updated_items
integer

Number of items updated