Skip to content

Update sync history settings

PATCH
/sync-history/settings
curl --request PATCH \
--url https://example.com/api/v1/sync-history/settings \
--header 'Content-Type: application/json' \
--data '{ "enabled": true, "retentionDays": 1, "retentionMaxEntries": 1 }'

Updates retention (days + max entries) and the enable flag, then reschedules or cancels the recurring cleanup job accordingly.

Media typeapplication/json
object
enabled
boolean
retentionDays
integer
>= 1
retentionMaxEntries
integer
Examplegenerated
{
"enabled": true,
"retentionDays": 1,
"retentionMaxEntries": 1
}

Updated sync history settings

Media typeapplication/json
object
enabled
required
boolean
retentionDays
required
integer
>= 1
retentionMaxEntries
required

Keep at most this many rows; 0 disables the entry cap (age-only retention).

integer
Examplegenerated
{
"enabled": true,
"retentionDays": 1,
"retentionMaxEntries": 1
}

Invalid settings payload

Media typeapplication/json
object
error
required

Error message

string
Examplegenerated
{
"error": "example"
}

Failed to update sync history settings

Media typeapplication/json
object
error
required

Error message

string
Examplegenerated
{
"error": "example"
}