People Import Begin

POST /People/Update/ImportInit

This process is an optional step that begins the import process by setting all people to pending before mass importing. Any people records still marked as pending will be disabled when the /People/Update/Importterm endpoint is called. If this is not called, then people will only be updated and never removed. *Secret Hmac Required. Do Not Cache this call.

Body

  • Custno number

    The optional customer number to update

Responses

  • People Import Successfully Started

    Hide response attributes Show response attributes object
    • Count number

      The number of people processed

    • Change number

      number of records changed (not counting pending status changes)

    • Skipped number

      number of records skipped with no changes (if importing)

    • Deleted number

      number of records deleted (if terminating)

    • Pending number

      number of records still set to pending

    • Photo number

      number of photos added (if any)

    • Custno number

      the StrandVision customer number processed

    • Msg string

      The resulting message

    • Time number

      The processing time in seconds

POST /People/Update/ImportInit
curl \
 -X POST https://Api.StrandVision.com/v1.0/People/Update/ImportInit \
 -H "Authorization: X-apikey $ACCESS_TOKEN" \
 -H "Authorization: X-apidate $ACCESS_TOKEN" \
 -H "Authorization: X-apihmac $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"Custno":10028}'
Request example
{
  "Custno": 10028
}
Request examples
{
  "Custno": 10028
}
Response examples (200)
[
  {
    "Count": 17,
    "Pending": 17,
    "Custno": 10028,
    "Msg": "Set 17 non deleted people to Processing in 0.04257 Seconds",
    "Time": 0.04257
  }
]
Response examples (200)
{
  "Count": 42.0,
  "Change": 42.0,
  "Skipped": 42.0,
  "Deleted": 42.0,
  "Pending": 42.0,
  "Photo": 42.0,
  "Custno": 42.0,
  "Msg": "string",
  "Time": 42.0
}