Skip to content
PharmaFlow Knowledgebase
Esc
↑↓navigate↵open⌘Jpreview

List pending sync conflicts

Admin only. Returns pending conflicts, newest first, with the client and server rows. A conflict is a base_rev race a push refused rather than clobber, so it needs a strategy.

GET/api/v1/sync/conflicts
Authorization
AuthorizationBearer token (JWT) · headerrequired

JWT from POST /api/v1/auth/login sent as Authorization Bearer.

Responses
200

The pending conflicts

itemsobject[]required
Show properties
Array of object
idstringrequired
entity_typestringrequired
entity_idstringrequired
branch_idstringrequired
org_idstringrequired
client_mutation_idstringrequired
server_versionobjectrequired
client_versionobjectrequired
payloadobjectrequired
statusstringrequired
created_atstringrequired
resolved_atstring | nullrequired
resolved_bystring | nullrequired
401

Not authenticated

detailstringrequired
403

Caller is not an admin

detailstringrequired
Try it
Server
Authorization
Request
curl -X GET 'http://localhost:8000/api/v1/sync/conflicts' \
  -H 'Authorization: Bearer YOUR_TOKEN'
Response
{
  "items": [
    {
      "id": "string",
      "entity_type": "string",
      "entity_id": "string",
      "branch_id": "string",
      "org_id": "string",
      "client_mutation_id": "string",
      "server_version": {
        "property1": null,
        "property2": null
      },
      "client_version": {
        "property1": null,
        "property2": null
      },
      "payload": {
        "property1": null,
        "property2": null
      },
      "status": "string",
      "created_at": "string",
      "resolved_at": "string",
      "resolved_by": "string"
    }
  ]
}