Organizations

Sync employee data from ewihub.com

Logs in to ewihub.com with the supplied organization-user credentials, scrapes every employee profile, and upserts the data. Existing employees (matched by email) are updated; new ones are created.

post/api/organizations/{id}/sync-ewihub

Request

  • Base URL: https://ewihub.posechecker.com (the document declares no server; this is the origin it was published from)
  • URL: https://ewihub.posechecker.com/api/organizations/{id}/sync-ewihub
  • Auth: HTTP bearer

Path parameters

idstring required

Request body

emailstring required

EWI Hub login email (organization user credential)

passwordstring required

EWI Hub login password

Example request

{
  "email": "admin@company.com",
  "password": "password123"
}

Response

successboolean required

Whether the sync completed

messagestring required

Human-readable summary

totalScrapednumber required

Number of profiles scraped

creatednumber required

New employees created

updatednumber required

Existing employees updated

errorsstring[] required

Per-employee errors (non-fatal)

Example response

{
  "success": true,
  "message": "Synced 42 employees from ewihub.com",
  "totalScraped": 42,
  "created": 10,
  "updated": 32
}

Changes

No recorded changes to this operation across all 1 revision of this API.