API reference · SoftwareOne Extensions
POST/api/extensions/softwareone/sync

Sync SoftwareOne data

Triggers the SoftwareOne aggregate sync placeholder. The current handler accepts optional syncAgreements and syncStatements booleans, waits briefly to simulate work, and returns dummy counts and a syncedAt timestamp. A full implementation will validate permissions, derive tenant context, connect to the SoftwareOne API, and persist agreement and statement data.

Request body

Content type: application/json · schema SoftwareOneSyncRequest

fullSyncboolean
Optional future full-sync flag. Currently ignored by the MVP handlers.
syncStatementsboolean
Optional future statement sync flag. Currently ignored by the MVP handlers.
syncAgreementsboolean
Optional future agreement sync flag. Currently ignored by the MVP handlers.

Response body

Success response 200 · schema SoftwareOneFullSyncResponse

successbooleanRequired
Sync request completed successfully.
Enum: true
messagestringRequired
Human-readable sync result message.
dataobjectRequired
agreementsCountintegerRequired
Number of agreements synced. Zero when syncAgreements is false.
statementsCountintegerRequired
Number of statements synced. Zero when syncStatements is false.
syncedAtstring <date-time>Required
ISO timestamp when the dummy sync completed.

Response codes

200
Sync placeholder completed successfully with dummy counts.
401
API key missing at middleware before the handler executes.
500
Unexpected failure while syncing SoftwareOne data.