Skip to main content
POST
/
filesystems
/
{filesystem_id}
/
sync-complete
Complete Sync Operation
curl --request POST \
  --url https://api.example.com/filesystems/{filesystem_id}/sync-complete \
  --header 'Content-Type: application/json' \
  --data '
{
  "direction": "<string>",
  "status": "<string>",
  "sync_id": "<string>",
  "archive_checksum": "<string>",
  "archive_size_bytes": 123,
  "files": [
    {
      "modified_at": "2023-11-07T05:31:56Z",
      "path": "<string>",
      "checksum": "<string>",
      "content": "<string>",
      "content_truncated": false,
      "is_binary": false,
      "is_directory": false,
      "mime_type": "<string>",
      "size_bytes": 123
    }
  ]
}
'
{
  "files_count": 123,
  "filesystem_id": "<string>",
  "status": "<string>",
  "sync_id": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.terminaluse.com/llms.txt

Use this file to discover all available pages before exploring further.

Notify that a sync operation completed and provide the file manifest. This is typically called after uploading or downloading files to finalize the sync state.

Path Parameters

filesystem_id
string
required

Body

application/json

Request model for completing a sync operation.

direction
string
required

Sync direction: 'UP' or 'DOWN'.

status
string
required

Sync status: 'SUCCESS' or 'FAILED'.

sync_id
string
required

Unique ID for this sync operation (idempotency key).

archive_checksum
string | null

SHA256 checksum of the archive.

archive_size_bytes
integer | null

Size of the archive in bytes.

files
FilesystemFile · object[] | null

List of files in the filesystem (empty if status is FAILED).

Response

Successful Response

Response model for sync-complete operation.

files_count
integer
required

Number of files processed.

filesystem_id
string
required

The filesystem ID.

status
string
required

Result status: 'COMPLETED' or 'ALREADY_PROCESSED'.

sync_id
string
required

The sync operation ID (for idempotency).