Cards, prop trading & accounting

Resync Rain User

Verifies Rain users exist at Rain and recreates orphaned ones, for the caller, one contractor, or the whole org.

POSThttps://api.toku.com/hris/resync-rain-user

Not available to API keys yet. It will need cards:write.

curl --request POST \
  --url 'https://api.toku.com/hris/resync-rain-user' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "contractorId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "orgID": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}'
200 response
{
  "results": [
    {
      "hrisContractorId": "string",
      "email": "string",
      "wasOrphaned": true,
      "action": "verified",
      "oldRainUserId": "string",
      "newRainUserId": "string",
      "error": "string",
      "details": "string"
    }
  ],
  "summary": {
    "total": 0,
    "verified": 0,
    "recreated": 0,
    "failed": 0,
    "skipped": 0
  }
}

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is an access token from a Toku sign-in. See Authentication in the API reference.

Body

application/json

contractorIdstring<uuid>
orgIDstring<uuid>

Response

200Successful response
resultsobject[]required
Show child attributes
hrisContractorIdstring | nullrequired
emailstringrequired
wasOrphanedbooleanrequired
actionstringrequired

Available options: verified, recreated, failed, skipped

oldRainUserIdstring
newRainUserIdstring
errorstring
detailsstring
summaryobjectrequired
Show child attributes
totalnumberrequired
verifiednumberrequired
recreatednumberrequired
failednumberrequired
skippednumberrequired
400Bad request
401Unauthorized
403Forbidden
404Not found
409Conflict
429Response 429
Was this page helpful? Suggest edits