Download OpenAPI specification:Download
The Avetta API is a mechanism to allow our customers to retrieve worker data from Worker Management via application programming interface. The Avetta WM API is organized around REST and uses HTTP status codes and error payload responses to indicate API errors.
We leverage the HTTP protocol features, like HTTP verbs and status codes, which are commonly used and are understood by off-the-shelf HTTP clients. All API responses (including errors) will be returned in JSON format. All API responses we process will return 200 but include the status code in the payload returned.
Host Region
In some cases we support regional instances. The default region value is simply 'worker'. Making the host value evaluate to https://worker.avetta.com. If told to use a regional url, other than the default, append the region identifier after worker. eg. https://worker-au.avetta.com
Versioning <- IMPORTANT UPDATE MUST READ ->
You will notice in this documentation that the URL for this API is as follows: https://worker.avetta.com/api/vX… This URL contains vX to specify the particular version to be used when making the desired call. Different versions of the same endpoint may return different results, therefore it is important to note the versions of each endpoint in this documentation. Please be aware of this as you check each endpoint.
Authentication
When using the API, include your secret API key in the Authorization request header for the service to authenticate your account. This API Key will be provided to you by your point of contact in Avetta.
The Authorization header must be formatted as:
Authorization: apikey <key>
All API requests must be made over HTTPS. Calls to the service over HTTP will result in a 302 Redirect response to the HTTPS end-point. API requests without an Authorization: apikey <key> header will fail.
Errors
Worker Management returns 2xx response codes on all responses handled by system. If the call fails, you will get a 5xx response code. For errors, we return a status code on the page with the 4xx response code.
Pagination
Avetta has a default maximum limit of 3000 results in one API call. In the case where the response returns more than the default limit, you must utilize pagination to retrieve the full data set. Avetta utilizes cursor-based pagination via optional start and limit query string parameters. The start indicates the record to start with for pagination and the limit indicates the total number of records to return (maximum of 3000).
Returns a list of accounts to client
| id | integer references an id to reduce list down to 1 item |
| start | integer Default: 1 Offset of the first record to return |
| limit | integer Default: 3000 Maximum number of records to return |
| search | string Search term - check for the code and title |
| sort | string Enum: "id" "code" "title" "group" Name of field to sort by |
| type | string Enum: "client" "supplier" "supplierSubcontractor" Type of the account |
| modifiedAfter | string <date-time> Modified after |
| extra | string Enum: "users" "connections" "admins" Extra?? |
| role_id | integer Show the users with the specified role ID |
| showInactive | boolean Enum: true false Show inactive |
| flag | string Enum: "Green" "Amber" "Red" Flag |
{- "stats": {
- "command": "Accounts",
- "version": "v1",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 0,
- "records": 0
}, - "accounts": [
- {
- "id": 24041,
- "con_id": 9711,
- "name": "Metro Group inc",
- "type": "supplier",
- "status": "active",
- "con_flag": "Green",
- "external_id": [
- {
- "Connect": {
- "SAP": "11035178",
- "TAG": "[\"Kennecott Category 1\",\"Kennecott Delivery\",\"Communication\"]"
}
}
], - "user_count": 113,
- "created_date": "2020-05-20 17:54:00",
- "updated_date": "2022-09-06 18:42:00",
- "users": [
- {
- "login_id": "DANIEL L. FLORES",
- "title": "Assistant",
- "email": null,
- "first_name": "Daniel",
- "external_id": [ ],
- "last_name": "Flores",
- "flag": "Red",
- "con_id": null,
- "id": 328035,
- "status": "Active",
- "flag_forced": false,
- "phone": ""
}
], - "connections": [
- {
- "id": 18322,
- "con_id": "250084941",
- "name": "Rio Tinto Corporate",
- "status": "Active",
- "flag_forced": "Green",
- "external_id": [ ]
}
], - "admins": [
- {
- "external_id": [ ],
- "first_name": "RTK",
- "permissions": [
- {
- "id": 3002,
- "name": "Workers"
}
], - "phone": null,
- "login_id": "1 A RTK ADMIN",
- "title": "N/A",
- "email": null,
- "id": 197925,
- "con_id": null,
- "status": "Active",
- "last_name": "Admin"
}
]
}
]
}The Admin API provides administrative endpoints for system overview and management data. Access requires appropriate security permissions.
Returns administrative overview with counts of various system components that the admin can see based on their security permissions
{- "overview": {
- "reviews": 5,
- "time_card": 23,
- "variances": 2
}, - "stats": {
- "records": 3,
- "count": 3,
- "time": 0.125,
- "params": { },
- "command": "overview",
- "user": 12345
}
}The Auth API allows you to authenticate into Worker Management. Handles multi-factor authentication, password reset, and single sign-on.
Deprecated. Do not use for new integrations - use /auth/token instead. Get the token for the user.
| username required | string <string> Username of the user to authenticate with |
| newpassword required | string <string> Password of the user to authenticate with |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "auth": {
- "code": 200,
- "expires_in": 28800,
- "token_type": "Bearer",
- "access_token": "...",
- "first_login": true
}
}Generate or refresh security tokens (Access and Refresh) for the user, for both Connect and WM.
| grant_type required | string Value: "password" Type of access requested. For new tokens, use 'password'. |
| username required | string <string> Username of the user. |
| password required | string <string> Password of the user. |
| device required | string <string> ID of the device. |
{- "stats": {
- "msg": "Good",
- "limit": 3000,
- "command": "Auth::Token",
- "start": 1,
- "version": "v1",
- "time": 0.24127
}, - "tokens": {
- "success": "true,",
- "worker": {
- "first_name": "John",
- "locale": "en-us",
- "is_admin": true,
- "enroll": {
- "roles": false,
- "sites": false
}, - "refresh": "eyJhbGciOiJIUzI1NiJ9.ey...",
- "is_supplier": false,
- "access": "eyJhbGciOiJIUzI1NiJ9.eyJleHA...",
- "last_name": "Doe",
- "is_time_attendance": false,
- "last_login": "2024-04-19 13:49:52",
- "is_client": false
}, - "connect": {
- "access": "6MTcxMzUzNDcxNywiaXNzIjoiV29ya2VyIE1hbmFnZW1lbnQiLCJqdGki...",
- "refresh": "6MTcxMzUzNDcxNywiaXNzIjoiV29ya2VyIE1hbmFnZW1lbnQiLCJqdGki..."
}, - "enc_key": "IOw7y9og4280gBLxBeKxMAF2Tb8J7TTh+Q1mjtVnz37coJ5+Z3eiUwnJm4L9Cy/jVVlgCyS7hHXuJeo/5npehQ"
}
}Get if the Credentials is a SSO user
| username required | string <string> Username of the user |
| isMobile | integer <int64> Enum: 0 1 Is mobile device |
{- "stats": {
- "command": "Auth::Authenticate",
- "limit": 3000,
- "msg": "Good",
- "version": "v1",
- "time": 0.35235,
- "start": 1
},
}Logout the user. This endpoint is public - the token to invalidate can be provided either via the Authorization header (apikey <key>) or in the request body (wm_access_token / connect_access_token). If a Worker Management token is provided in the header the request body is optional and the call can be a normal GET.
| wm_access_token | string <string> Worker Management access token |
| connect_access_token | string <string> Connect access token |
{- "stats": {
- "command": "Auth::Logout",
- "limit": 3000,
- "msg": "Good",
- "version": "v1",
- "time": 0.35235,
- "start": 1,
- "apikey": "..."
}, - "auth": {
- "detail": null,
- "code": 200,
- "status": "Successful",
- "success": true,
- "message": "Invalid token"
}
}Send an email to the user with a link to reset the password. Works for both Connect and Worker Management users
| username required | string <string> Username of the user |
{- "stats": {
- "command": "Auth::requestPassword",
- "limit": 3000,
- "msg": "Good",
- "version": "v1",
- "time": 0.35235,
- "start": 1
}, - "auth": {
- "detail": null,
- "code": 200,
- "status": "Successful",
- "success": true,
- "message": "Password flagged for reset"
}
}Switch the user to the given user when the user has permission to do it
| username required | string <string> Username of the user to switch |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "switch_user": {
- "worker": {
- "access": "eyJhbGciOiJIUzI1NiJ9.eyJleH...",
- "refresh": "eyJhbGciOiJIUzI1NiJ9.eyJleH...",
- "last_login": "2024-01-13 15:33",
- "first_name": "John",
- "last_name": "Doe",
- "isClient": false,
- "isSupplier": true,
- "isAdmin": false,
- "isTimeAttendance": true,
- "locale": "en-us",
- "enroll": {
- "roles": true,
- "sites": true
}
}
}
}Update the password of a user, either in Worker Management or in Connect
| newpassword required | string <string> New password for the user |
| passwordhint | string <string> Password hint to associate with the new password. Not used for Connect passwords. |
| key required | string <string> Token that was sent by email to perform the password change |
{- "stats": {
- "command": "Auth::UpdatePassword",
- "limit": 3000,
- "msg": "Good",
- "version": "v1",
- "time": 0.35235,
- "start": 1
}, - "auth": {
- "detail": null,
- "code": 200,
- "status": "Successful",
- "success": true,
- "message": "Password changed"
}
}Perform a validation of a change to the user's email address based on a code sent to the email address
| bnm required | string <string> Security code for the email change. This code is sent to the new email address set by the user. |
| password required | string <string> Password of the account that is getting its email address updated |
{- "stats": {
- "command": "Auth::ValidateEmail",
- "limit": 3000,
- "msg": "Good",
- "version": "v1",
- "time": 0.35235,
- "start": 1
}, - "auth_validateemail": {
- "success": true,
- "status": "Good",
- "message": "Email address updated",
- "code": 200
}
}Generate the MFA code and send it to the user via email or phone
| method | string^[a-zA-Z]+$ Enum: "email" "phone" method to validate the user (email or phone) |
| wm_jwt | string <string> Worker Management JWT token |
| connect_jwt | string <string> Connect JWT token (required when validating a Connect MFA token) |
| UsrMobilePhone | string <string> Phone number to validate user against |
| UsrEmailAddr | string <string> Email address to validate user against |
{- "stats": {
- "command": "Auth::MFA::Generate",
- "limit": 3000,
- "msg": "Good",
- "version": "v1",
- "time": 0.35235,
- "start": 1,
- "apikey": "..."
}, - "mfa": {
- "detail": null,
- "code": 200,
- "status": "Successful",
- "success": true,
- "message": "MFA Token sent"
}
}Validate the MFA code is correct
| code required | integer <integer> Code to validate the user received in email or phone |
| method | string Enum: "email" "phone" Delivery method used (required when validating a Connect token). Expected email or phone |
| wm_jwt | string <string> Worker Management JWT token |
| connect_jwt | string <string> Connect JWT token (required when validating a Connect MFA token) |
{- "stats": {
- "command": "Auth::MFA::Validate",
- "limit": 3000,
- "msg": "Good",
- "version": "v1",
- "time": 0.35235,
- "start": 1,
- "apikey": "..."
}, - "mfa": {
- "detail": null,
- "code": 200,
- "status": "Successful",
- "success": true,
- "message": "MFA Token validated",
- "access_token": "...",
- "refresh_token": "..."
}
}Get information about the current user's MFA status.
{- "summary": "Successful MFA info",
- "value": {
- "stats": {
- "command": "Auth::MFA::Info",
- "limit": 3000,
- "msg": "Good",
- "version": "v1",
- "time": 0.35235,
- "start": 1,
- "apikey": "..."
}, - "mfa": {
- "success": true,
- "status": null,
- "info": {
- "first_name": "John",
- "last_name": "McKenzie",
- "phone": "*** *** 1234",
- "email": "joh****@gmail.com"
}
}
}
}The Countries API allows you to retrieve country information. Get country data, dialing codes, and more.
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "countries": [
- {
- "id": 840,
- "title": "Estados Unidos",
- "dial": 1,
- "short": "US",
- "long": "USA"
}
]
}Returns the information of the country with the given id
| id | integer references an id to reduce list down to 1 item |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "countries": {
- "id": 840,
- "title": "Estados Unidos",
- "dial": 1,
- "short": "US",
- "long": "USA"
}
}Returns responses of event
| id | integer references an id to reduce list down to 1 item |
Could be any Requirement type (AICC, Download, External, Order, Register, Run, SCORM)
{- "stats": {
- "command": "Event",
- "owner": 1483,
- "limit": 3000,
- "version": "v1",
- "id": 147,
- "time": 0.37947,
- "msg": "Good",
- "apikey": "...",
- "start": 1
}, - "event": {
- "field": [ ],
- "actions": [
- {
- "title": "Dashboard",
- "url": null,
- "name": "menu",
- "type": "none"
}
], - "id": 1631,
- "acknowledgementrequired": false,
- "title": "reqapi1-run",
- "requires_mfa": false,
- "reqtype": 124,
- "type": 1,
- "acknowledgementtext": "",
- "description": null,
- "shortdescription": "",
- "instructions": null,
- "code": "REQAPI1-RUN",
- "shortinstructions": ""
}
}This endpoint is used to clear the SCORM bookmarks.
| evtID required | integer <integer> Number of the Event ID |
{- "stats": {
- "command": "Event::Clearbookmark",
- "owner": 1483,
- "limit": 3000,
- "version": "v1",
- "id": 147,
- "time": 0.71513,
- "msg": "Good",
- "apikey": "...",
- "start": 1
}, - "event/clearbookmark": {
- "message": "Bookmark cleared",
- "code": 200,
- "status": "Good",
- "success": true
}
}This endpoint is used to mark the requirement files as Viewed / Downloaded. The list of available files can be found under “links” array returned by the Event endpoint
| EvtID required | integer <int64> Number of the Event ID, returned by the Get Event Endpoint (“id” attribute) |
| FileName | string <string> Name of the file, can be found in the “links” array, “title” attribute |
{- "stats": {
- "command": "Event::Document",
- "owner": 1483,
- "limit": 3000,
- "version": "v1",
- "id": 147,
- "apikey": "...",
- "time": 0.71513,
- "msg": "Good",
- "start": 1
}, - "event_document": {
- "message": "Document marked as complete",
- "code": 200,
- "status": "Good",
- "success": true
}
}This endpoint is used to upload a document for “Documents Review” section. The uploaded documents can be found in the “upload->files” array returned by the Event endpoint
| EvtID required | integer <int64> Number of the Event ID, returned by the Get Event Endpoint (“id” attribute) |
| DocFile | string <string> Actual content of the Document File reference using “form-data” |
| FileName | object <object> A JSON with “base64string”, “filename” is required in the “raw” body. |
{- "stats": {
- "command": "Event::Document",
- "owner": 1483,
- "limit": 3000,
- "version": "v1",
- "id": 147,
- "apikey": "...",
- "time": 0.71513,
- "msg": "Good",
- "start": 1
}, - "event_document": {
- "message": "Document uploaded successfully",
- "code": 200,
- "status": "Good",
- "success": true
}
}This endpoint is used to delete a document uploaded for “Documents Review”
| EvtID required | integer <int64> Number of the Event ID, returned by the Get Event Endpoint (“id” attribute) |
| DocID | integer <int64> Number ID of the document |
| UEDID | integer <int64> Number of User Event Document, can be found in the “files” array, “id” attribute. |
{- "stats": {
- "command": "Event::Document",
- "owner": 1483,
- "limit": 3000,
- "version": "v1",
- "id": 147,
- "apikey": "...",
- "time": 0.71513,
- "msg": "Good",
- "start": 1
}, - "event_document": {
- "message": "Document deleted successfully",
- "code": 200,
- "status": "Good",
- "success": true
}
}This is NOT a preferred method. Mobile team should NOT use this method This endpoint is used to get a document uploaded for “Documents Review” to download
| EvtID required | integer <int64> Number of the Event ID, returned by the Get Event Endpoint (“id” attribute) |
| DocID | integer <int64> Number ID of the document |
| UEDID | integer <int64> Number of User Event Document, can be found in the “files” array, “id” attribute. |
{- "stats": {
- "command": "Event::Document",
- "owner": 1483,
- "limit": 3000,
- "version": "v1",
- "id": 147,
- "apikey": "...",
- "time": 0.71513,
- "msg": "Good",
- "start": 1
}, - "event_document": {
- "base64string": "iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAgAElEQVR4Xu3dCZgV1fXH8e9/3+9",
- "filename": "EMP_4665_Resolved.png",
- "mimetype": "image/png"
}
}Endpoint to save the event for Credit/review
| EvtID required | integer <int64> Event ID |
| POSTDATA | string <string> POSTDATA |
{- "stats": {
- "command": "Event::Review",
- "owner": 1483,
- "limit": 3000,
- "version": "v1",
- "id": 147,
- "time": 0.71513,
- "start": 1,
- "msg": "Good",
- "apikey": "..."
}, - "event/review": {
- "message": "Saved successfully",
- "code": 200,
- "status": "Good",
- "success": true
}
}Returns a list of events based on the user Reports permission, if the user is a worker, it will return the events that are applicable to the worker
| start | integer Default: 1 Offset of the first record to return |
| limit | integer Default: 3000 Maximum number of records to return |
| search | string Search term for the event title |
| type | string Enum: "requirement" "track" "job" "survey" "equivalency" "optin" List of event types contatenated by comma ( requirement,equivalency ) |
| user_id | integer Filters the list of events to show only those applicable to the user |
| showAll | integer Enum: 0 1 1 to show all events, 0 to show only the ones in use, 0 is the default |
| site | integer Filters viewing based on the site |
| showInactive | integer Enum: 0 1 1 to show inactive events, 0 to not show inactive events, 0 is the default |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "events": [
- {
- "id": 1825,
- "code": "UJH-123",
- "title": "Safety Orientation",
- "description": "Safety Orientation for all workers",
- "instructions": "Please complete the safety orientation before starting work",
- "category": "Safety",
- "sub-category": "Orientation",
- "delivery_type": "Online",
- "cost": 0,
- "hours": 1,
- "type": "requirement",
- "status": "Active",
- "account": {
- "id": 12345,
- "con_id": 67890,
- "name": "Avetta"
}
}
]
}Returns a list of events based on the Variances permission
| start | integer Default: 1 Offset of the first record to return |
| limit | integer Default: 3000 Maximum number of records to return |
| search | string Search term for the event title |
| type | string Enum: "requirement" "track" "job" "survey" "equivalency" "optin" List of event types contatenated by comma ( requirement,equivalency ) |
| user_id | integer Filters the list of events to show only those applicable to the user |
| showAll | integer Enum: 0 1 1 to show all events, 0 to show only the ones in use, 0 is the default |
| site | integer Filters viewing based on the site |
| showInactive | integer Enum: 0 1 1 to show inactive events, 0 to not show inactive events, 0 is the default |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "events": [
- {
- "id": 1825,
- "code": "UJH-123",
- "title": "Safety Orientation",
- "description": "Safety Orientation for all workers",
- "instructions": "Please complete the safety orientation before starting work",
- "category": "Safety",
- "sub-category": "Orientation",
- "delivery_type": "Online",
- "cost": 0,
- "hours": 1,
- "type": "requirement",
- "status": "Active",
- "account": {
- "id": 12345,
- "con_id": 67890,
- "name": "Avetta"
}
}
]
}Returns a list of events based on the Credit permission
| start | integer Default: 1 Offset of the first record to return |
| limit | integer Default: 3000 Maximum number of records to return |
| search | string Search term for the event title |
| type | string Enum: "requirement" "track" "job" "survey" "equivalency" "optin" List of event types contatenated by comma ( requirement,equivalency ) |
| user_id | integer Filters the list of events to show only those applicable to the user |
| showAll | integer Enum: 0 1 1 to show all events, 0 to show only the ones in use, 0 is the default |
| site | integer Filters viewing based on the site |
| showInactive | integer Enum: 0 1 1 to show inactive events, 0 to not show inactive events, 0 is the default |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "events": [
- {
- "id": 1825,
- "code": "UJH-123",
- "title": "Safety Orientation",
- "description": "Safety Orientation for all workers",
- "instructions": "Please complete the safety orientation before starting work",
- "category": "Safety",
- "sub-category": "Orientation",
- "delivery_type": "Online",
- "cost": 0,
- "hours": 1,
- "type": "requirement",
- "status": "Active",
- "account": {
- "id": 12345,
- "con_id": 67890,
- "name": "Avetta"
}
}
]
}Returns a list of elective events for the given user
| start | integer Default: 1 Offset of the first record to return |
| limit | integer Default: 3000 Maximum number of records to return |
| search | string Search term for the event title |
| site | integer Filters viewing based on the site |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "events": [
- {
- "id": 1825,
- "code": "UJH-123",
- "title": "Safety Orientation",
- "description": "Safety Orientation for all workers",
- "instructions": "Please complete the safety orientation before starting work",
- "category": "Safety",
- "sub-category": "Orientation",
- "delivery_type": "Online",
- "cost": 0,
- "hours": 1,
- "type": "requirement",
- "status": "Active",
- "account": {
- "id": 12345,
- "con_id": 67890,
- "name": "Avetta"
}
}
]
}This endpoint will return a list of fields, prereqs or items to be filled in order to credit the event
| EvtID required | integer <int64> Event ID |
| user_id required | integer <int64> User ID |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "event_credit": {
- "event": {
- "id": 0,
- "type": 0,
- "reqtype": 0,
- "code": "string",
- "title": "string",
- "description": "string",
- "instructions": "string",
- "shortdescription": "string",
- "shortinstructions": "string",
- "requires_mfa": true,
- "links": [
- {
- "title": "string",
- "type": "string",
- "url": "string",
- "completed": true
}
], - "prereqs": [
- {
- "id": 0,
- "code": "string",
- "title": "string",
- "type": "string",
- "url": "string"
}
]
}, - "documents": [
- {
- "docid": 0,
- "title": "string",
- "type": "string",
- "url": "string",
- "viewed": true
}
], - "required": [
- {
- "key": "datetime",
- "title": "string",
- "type": "string",
- "help": "string",
- "value": "string",
- "readonly": true,
- "validation": {
- "minvalue": "string",
- "maxvalue": "string",
- "maxlength": "string"
}
}
], - "actions": {
- "credit": {
- "title": "Send to Review",
- "enabled": true
}
}, - "optional": [
- {
- "key": "srch_id",
- "title": "string",
- "type": "string",
- "value": "string",
- "readonly": true,
- "validation": {
- "minvalue": "string",
- "maxvalue": "string",
- "maxlength": "string"
}
}
]
}
}Credits the user for the requirement
| EvtID required | integer <int64> Event ID |
| user_id required | integer <int64> User ID |
| srch_id required | integer <int64> Search ID |
| expiredate | string <date> Expire date could be required or not |
| datetime | string <date-time> Date and time of the event, it could be required or not |
| NewUEDRevNotes | string Review notes |
| UEDRevInstructor | string Instructor, it could be required or not depending on the requirement configuration |
| result | integer <int64> Enum: 201 202 Result of the requirement (201 - Passed, 202 - Failed) |
| score | number <number> Score of the requirement (0 - 100) |
| cost | number <number> Cost of the requirement |
| hours | number <number> Duration of the requirement |
| notes | string Aditional notes of the requirement |
| customField | string Additional fields configured for the requirement |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "events_credit": {
- "message": "Approved for 2021-01-01 as Approved with a score of 100",
- "status": "OK",
- "success": true,
- "code": 200,
- "detail": {
- "date": "2021-01-01",
- "status": "Approved",
- "score": 100
}
}
}Upload a temporal file for credit
| EvtID required | integer <int64> Event ID |
| user_id required | integer <int64> User ID |
| srch_id required | integer <int64> Search ID |
| doc_file | string <binary> |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "events_credit": {
- "message": "File uploaded",
- "success": true,
- "code": 200,
- "detail": "file.pdf"
}
}Return the temporal files for credit
| EvtID required | integer <int64> Event ID |
| user_id required | integer <int64> User ID |
| srch_id required | integer <int64> Search ID |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "event_credit": {
- "DocUID": {
- "DocFileName": "document.txt",
- "DocIsSecure": 0,
- "DocFileSize": 26445,
- "DocID": 512,
- "DocTempID": 9893
}
}
}Delete a temporal file for credit
| EvtID required | integer <int64> Event ID |
| doc_id | integer <int64> The DocUID of the file to be deleted |
| filename | string The file name of the file to be deleted |
| srch_id required | integer <int64> Search ID |
| user_id required | integer <int64> User ID |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "events_credit": {
- "message": "Delete file",
- "success": true,
- "code": 200,
- "detail": "Found file and removed"
}
}Returns the information of the language with the given language code
| lngCode required | string Language code to filter the results |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12,
- "locale": "en-us"
}, - "languages": {
- "code": "en-us",
- "title": "English (United States)",
- "translated_title": null,
- "direction": "LTR",
- "country_id": 840,
- "formats": {
- "time": "H:i",
- "date": "Y-m-d",
- "input_order": 0
}
}
}Returns the list of strings for the given language code filtered by the given string portion if provided
| lngCode required | string Language code to filter the results |
| lngString | string Language string to filter the results (could be a portion of the string) |
{- "stats": {
- "local": "en-us",
- "command": "Languages",
- "start": 1,
- "search": "Verificado",
- "apikey": "...",
- "time": 0.04128,
- "version": "v1",
- "msg": "Good"
}, - "strings": {
- "RPT_TRAININGCOMPLETED_TXT_GRACEPERIOD": "Grace Period",
- "RPT_ROLESUMMARY_TXT_TOTAL": "Total",
- "MBTGROUP_GRPCREATEDATE": "Created Date",
- "CEL_SKILLSTATUSUSER_TXT_STATUS": "Status"
}
}Returns a list of all workers that have pending registration requests
| start | integer Default: 1 Offset of the first record to return |
| limit | integer Default: 3000 Maximum number of records to return |
| sort | string Enum: "first" "last" "date" Name of field to sort by |
| search | string Search term - check for the code and title |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "requests": [
- {
- "id": 111,
- "user": {
- "id": 10257,
- "login_id": "john.doe435",
- "first_name": "John",
- "last_name": "Doe",
- "email": "john.doe@gmailz.com",
- "date": "2021-07-01 12:00:00"
}
}
]
}Returns the total number of pending requests
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "time": 0.71513,
- "apikey": "...",
- "owner": 1234567890
}, - "requests": 5
}Returns the details of a pending registration request
| id required | integer ID of pending registration request |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "requests": [
- {
- "user": {
- "id": 10257,
- "login_id": "john.doe435",
- "first_name": "John",
- "last_name": "Doe",
- "email": "john.doe@gmailz.com",
- "date": "2021-07-01 12:00:00"
}, - "sites": [
- {
- "id": 1,
- "name": "Site 1",
- "con_id": 123456
}
], - "roles": [
- {
- "id": 1,
- "code": "ROLE_PLUMBER",
- "title": "Plumber"
}
]
}
]
}Approves a pending registration request based on the request ID
| id required | integer ID of pending registration request |
{- "stats": {
- "start": 1,
- "limit": 3000,
- "command": "Registration",
- "owner": 1,
- "version": "v1",
- "time": 0.16315,
- "id": 114444,
- "msg": "Good",
- "apikey": "..."
}, - "requests": {
- "code": 200,
- "success": true,
- "message": "John Doe approved connection"
}
}Denies a pending registration request based on the request ID
| id required | integer ID of pending registration request |
{- "stats": {
- "start": 1,
- "limit": 3000,
- "command": "Registration",
- "owner": 1,
- "version": "v1",
- "time": 0.16315,
- "id": 114444,
- "msg": "Good",
- "apikey": "..."
}, - "requests": {
- "code": 200,
- "success": true,
- "message": "John Doe denied connection"
}
}This endpoint allows you to register a new user.
| invitecode required | string <string> Invitation code |
User data to insert with self registration
| login_id | string ( Required ) Login ID of the user registering |
| password | string ( Required ) Password of the user registering |
| first_name | string ( Required ) First Name of the user registering |
| last_name | string ( Required ) Last Name of the user registering |
string Email Address of the user registering | |
object Data of the account registering | |
| locale | string Locale of the user registering |
{- "login_id": "string",
- "password": "string",
- "first_name": "string",
- "last_name": "string",
- "email": "string",
- "account": {
- "id": 0
}, - "locale": "en_us"
}{- "stats": {
- "command": "Registration::User",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 0,
- "records": 0
}, - "registration_user": {
- "success": true,
- "message": "Your Self Registration was successful",
- "id": 111,
- "code": 200,
- "detail": " "
}
}On user registration, takes the invite code and returns the company it is associated with
| invitecode required | string <string> Invitation code |
{- "stats": {
- "command": "Registration::Account",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 0,
- "records": 0
}, - "registration_account": {
- "name": "ABM Technology & Manufacturing",
- "con_id": 147401,
- "id": 9306
}
}{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "reviews": [
- {
- "account": {
- "con_id": 0,
- "id": 0,
- "name": "string"
}, - "user": {
- "login_id": "string",
- "id": 0,
- "first_name": "string",
- "last_name": "string"
}, - "requirement": {
- "title": "string",
- "id": 0,
- "code": "string"
}, - "id": 0,
- "submitted": "2019-08-24T14:15:22Z"
}
]
}{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "reviews": {
- "count": 0
}
}Allows an admin to review documents uploaded
| id | integer references an id to reduce list down to 1 item |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "reviews": {
- "required": { },
- "optional": { },
- "event": { },
- "action": { },
- "files": { }
}
}Allows an admin to upload a document to the review
| id | integer references an id to reduce list down to 1 item |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "reviews": { }
}Allows an admin to remove a document
| id | integer references an id to reduce list down to 1 item |
| docid required | integer ID del documento a eliminar |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "reviews": { }
}Returns how many documents have been submitted to the review
| id | integer references an id to reduce list down to 1 item |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "reviews": { }
}Returns how many documents have been submitted to the review and admin has reviewed
| id | integer references an id to reduce list down to 1 item |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "reviews": { }
}Marks a document as reviewed
| id | integer references an id to reduce list down to 1 item |
| docid required | integer ID del documento a eliminar |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "reviews": { }
}Marks a review as reviewed
| id | integer references an id to reduce list down to 1 item |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "reviews": { }
}Marks a review as rejected and puts back on worker to do list
| id | integer references an id to reduce list down to 1 item |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "reviews": { }
}Returns a list of roles
| start | integer Default: 1 Offset of the first record to return |
| limit | integer Default: 3000 Maximum number of records to return |
| sort | string Enum: "id" "code" "title" "group" Name of field to sort by |
| search | string Search term - check for the code and title |
| showAll | boolean Default: false Return all roles available, not only the ones configured |
| user | integer <int64> Filter the results for a specify user id |
| site_id | integer <int64> Filter for in-use assignments at a given site |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "roles": [
- {
- "id": 1235,
- "type": "role",
- "code": "rolecode",
- "title": "Role Title Example",
- "category": "N/A",
- "account": {
- "id": 123,
- "con_id": 250000000,
- "name": "Example Company"
}
}
]
}Returns the information of the role with the given id
| rolID required | integer <int64> Filter for the given role id |
| start | integer Default: 1 Offset of the first record to return |
| limit | integer Default: 3000 Maximum number of records to return |
| sort | string Enum: "id" "code" "title" "group" Name of field to sort by |
| search | string Search term - check for the code and title |
| showAll | boolean Return all results available, not only the ones configured |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "role": {
- "id": 1235,
- "type": "role",
- "code": "rolecode",
- "title": "Role Title Example",
- "category": "N/A",
- "account": {
- "id": 123,
- "con_id": 250000000,
- "name": "Example Company"
}
}
}Adds the given role to the given user
| rolID required | integer <int64> Filter for the given role id |
| usrID required | integer <int64> Filter for the given user id |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "roles": {
- "message": "Role added successfully",
- "status": "Good",
- "success": true,
- "code": 200
}
}Delete the asignation of the role to the user id given
| rolID required | integer <int64> Filter for the given role id |
| usrID required | integer <int64> Filter for the given user id |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "roles": {
- "message": "Role removed successfully",
- "status": "Good",
- "success": true,
- "code": 200
}
}Assign or unassign multiple roles to multiple users
JSON data with the list of roles to assign or unassign to users
| Unassign | integer Unassign or assign the roles |
| UsrID required | Array of integers List of user ids |
| RolID required | Array of integers List of role ids |
{- "Unassign": 1,
- "UsrID": [
- 22822,
- 22784
], - "RolID": [
- 189,
- 188,
- 187
]
}{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 2,
- "records": 2,
- "forbidden": 0,
- "fail": 0,
- "success": 2,
- "total": 2
}, - "roles": {
- "message": "All roles were assigned successfully to all users",
- "status": "Successful",
- "success": true,
- "code": 200,
- "detail": {
- "success": [
- {
- "UsrID": 22822,
- "RolID": 189
}, - {
- "RolID": 189,
- "UsrID": 22784
}
], - "forbidden": [ ],
- "fail": [ ]
}
}
}Retrieve a list of sites the user can report on. Supports filtering, searching, and pagination. Can filter sites based on user assignments, connections status, and search criteria.
| start | integer Default: 1 Offset of the first record to return |
| limit | integer Default: 3000 Maximum number of records to return |
| sort | string Enum: "id" "code" "title" "group" Name of field to sort by |
| search | string Search term - check for the code and title |
| path | string Default: "down" Enum: "down" "up" "branch" Direction to traverse site hierarchy (down, up, branch) |
| user_id | integer Filter sites that a specific user can be assigned to |
| connections | integer Default: 0 Enum: 0 1 Include external connections |
[- {
- "id": 111,
- "con_id": "SITE001",
- "name": "Main Office",
- "parent_id": 110,
- "top_id": 110
}, - {
- "id": 112,
- "con_id": "SITE002",
- "name": "Company Corp::Warehouse A",
- "parent_id": 111,
- "top_id": 110
}
]Legacy endpoint. Use /sites/assign instead. Retrieve sites available for user management operations. Requires user or supervisor worker permissions.
| start | integer Default: 1 Offset of the first record to return |
| limit | integer Default: 3000 Maximum number of records to return |
| sort | string Enum: "id" "code" "title" "group" Name of field to sort by |
| search | string Search term - check for the code and title |
| path | string Default: "down" Enum: "down" "up" "branch" Direction to traverse site hierarchy (down, up, branch) |
| user_id | integer Filter sites that a specific user can be assigned to |
[- {
- "id": 111,
- "name": "Avetta Admin",
- "con_id": "SITE001",
- "top_id": 110,
- "parent_id": 110
}
]Assign a user to a specific site. Creates a site assignment relationship between the user and site with proper validation and permissions checking.
| id required | integer Site ID to assign user to |
| uid required | integer User ID to assign to the site |
{- "stats": {
- "command": "Sites",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...redacted...",
- "owner": 1234567890,
- "count": 1,
- "records": 1,
- "id": 560,
- "grpID": 560,
- "uid": 1410
}, - "sites": {
- "message": "User assigned to site",
- "status": "Good",
- "detail": " ",
- "success": true,
- "code": 200
}
}Remove a user's assignment from a specific site. Deletes the site assignment relationship with proper validation and permissions checking.
| id required | integer Site ID to remove user from |
| uid required | integer User ID to remove from the site |
{- "code": 200,
- "message": "User removed from site",
- "detail": ""
}Retrieve sites available for variance management operations. Requires variance management permissions.
| start | integer Default: 1 Offset of the first record to return |
| limit | integer Default: 3000 Maximum number of records to return |
| sort | string Enum: "id" "code" "title" "group" Name of field to sort by |
| search | string Search term - check for the code and title |
| path | string Default: "down" Enum: "down" "up" "branch" Direction to traverse site hierarchy (down, up, branch) |
[- {
- "id": 111,
- "name": "Avetta Admin",
- "con_id": "SITE001",
- "top_id": 110,
- "parent_id": 110
}
]Retrieve sites available for self-registration, allowing users to see which sites they can register themselves to. Self-registration must be enabled in company configuration.
| start | integer Default: 1 Offset of the first record to return |
| limit | integer Default: 3000 Maximum number of records to return |
| sort | string Enum: "id" "code" "title" "group" Name of field to sort by |
| search | string Search term - check for the code and title |
| path | string Default: "down" Enum: "down" "up" "branch" Direction to traverse site hierarchy (down, up, branch) |
[- {
- "id": 111,
- "name": "Avetta Admin",
- "con_id": "SITE001",
- "top_id": 110,
- "parent_id": 110
}
]Retrieve registration details for a specific site. Self-registration must be enabled in company configuration.
| id required | integer Site ID |
{- "id": 111,
- "name": "Avetta Admin",
- "con_id": "SITE001",
- "top_id": 110,
- "parent_id": 110
}Allow a user to register themselves to a site when permitted by site configuration. Self-registration must be enabled in company configuration.
| id required | integer Site ID to register to |
{- "code": 200,
- "message": "User assigned to site",
- "detail": ""
}Allow a user to unregister themselves from a site. Self-registration must be enabled in company configuration.
| id required | integer Site ID to unregister from |
{- "code": 200,
- "message": "User removed from site",
- "detail": ""
}Retrieve a specific site by its ID.
| grpID required | integer Site ID |
| path | string Default: "down" Enum: "down" "up" "branch" Direction to traverse site hierarchy (down, up, branch) |
| connections | integer Default: 0 Enum: 0 1 Include external connections |
{- "id": 111,
- "name": "Avetta Admin",
- "con_id": "SITE001",
- "top_id": 110,
- "parent_id": 110
}Retrieve details for a specific site in the context of user management.
| grpID required | integer Site ID |
| usrID required | integer User ID |
| user_id | integer Filter for a specific user context |
{- "id": 111,
- "name": "Avetta Admin",
- "con_id": "SITE001",
- "top_id": 110,
- "parent_id": 110
}The API will only return workers that are currently checked in but not checked out. Using the parameter site_id, workers checked in a specific site will be returned; if not provided, check-ins for all sites that the user has permissions for will be displayed. It's possible for a worker to be logged into more than one site at the same time; in this case, the same worker may appear more than one time in the timecard array.
| start | integer Default: 1 Offset of the first record to return |
| limit | integer Default: 3000 Maximum number of records to return |
| sort | string Enum: "id" "code" "title" "group" Name of field to sort by |
| site_id | integer Filters information to a specific site and drilled down any site below it. |
| connection_id | integer If specified, only information about a specific site would be displayed |
| account_id | integer Filter workers that belong to the company id provided (This can be used to show only workers from a specific supplier) |
| role_id | integer Filter down to a role id provided |
| search | string Search term in users list - It checks the term in login id, email, first name, last name, mobile phone, company name and company site name. |
| flag | string Enum: "G" "Green" "Y" "Yellow" "R" "Red" filter by the worker's compliance flag to the site they are checked in. (G or Green, Y or Yellow, R or Red) |
| extra | string Value: "photo" Extra data to return for users (photo is the extra data that can included in the list of user) |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "timecard": [
- {
- "id": 915482,
- "site_id": 21345,
- "site_name": "ERD SITE A",
- "flag": "Red",
- "flag_forced": false,
- "checked_in": "2021-10-14 12:20:00",
- "duration": 270,
- "account": {
- "con_flag": "Green",
- "name": "Testing Supplier A::Testing Supplier A",
- "con_id": null,
- "type": "Supplier",
- "id": 7650,
- "parent_id": 0
}, - "user": {
- "last_name": "Adams",
- "first_name": "Gabriel",
- "id": 27346,
- "email": null,
- "phone": "321-215-215",
- "created_date": "2021-02-08 13:24:00",
- "login_id": "SUPPLIERA.WORKER1",
- "title": "N/A",
- "photo": {
- "data": "data:image/jpg;base64, .......",
- "size": 13250,
- "name": "ProfilePicture.jpg"
}
}
}
]
}Returns the count of workers currently checked in but not checked out. The count can be filtered by site.
| company_id | integer <int64> Filter workers that belong to the company id provided (This can be used to show only workers from a specific supplier) |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "timecard": {
- "count": 0
}
}Composite endpoint for user data
| id | integer Example: 123 The ID of the user resource, if not provided, the results will corresponde to the current user |
| showAllConnections | integer <boolean> Enum: 0 1 Show all connections for the user, even if there is no training associated |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "user": {
- "id": 1235,
- "con_id": 1568432,
- "first_name": "John",
- "last_name": "Doe",
- "login_id": "jdoe",
- "email": "test@test.com",
- "badge_link": "string",
- "last_checkin_date": "2020-10-23 15:00:00",
- "last_checkout_date": "2020-10-23 19:45:00",
- "photo": {
- "name": "photo.jpg",
- "size": 123456789,
- "data": "data:image/jpeg;base64,/9j/..."
}, - "phone": 123456789,
- "status": "active",
- "removed": 0,
- "created_date": "2018-10-23 18:31:00",
- "updated_date": "2017-15-05 16:41:00",
- "locale": "en-us",
- "title": "Director of Software Development",
- "emergency_phone": "555-555-5555",
- "emergency_contact_name": "Bob Smith",
- "emergency_contact_relationship": "Parent",
- "address": {
- "street": "123 Main St",
- "street2": "Apt 1",
- "city": "Salt Lake City",
- "state": "UT",
- "zipcode": 84101,
- "country": "United States of America"
}, - "flag": "Green",
- "flag_forced": 0,
- "account": {
- "id": 1235,
- "name": "Avetta",
- "con_id": 235843,
- "con_flag": "Red"
}, - "roles": [
- {
- "id": 132,
- "code": 15621,
- "title": "Electrician",
- "type": "Function",
- "flag": "Green",
- "flag_forced": false
}
], - "requirements": [
- {
- "id": 15651,
- "code": 584135,
- "title": "Driver's License",
- "date": "2024-05-15",
- "flag": "Green",
- "flag_forced": false,
- "completed_date": "2022-10-08",
- "requires_mfa": false,
- "todo": true,
- "status": "Completed"
}
], - "connections": [
- {
- "id": 325,
- "name": "Avetta :: Corporate",
- "flag": "Green",
- "flag_forced": false,
- "con_id": 250000000,
- "con_flag": "Red",
- "removed": 0,
- "checked_in": 0
}
], - "history": [
- {
- "id": 123,
- "code": 1457,
- "title": "Driver's License",
- "date": "2022-10-08",
- "score": 100,
- "result": "Pass"
}
], - "custom": [
- {
- "id": 2116,
- "key": "DOB",
- "title": "Date of birthday",
- "value": "1998-05-25",
- "created_date": "2020-11-01",
- "updated_date": "2022-01-21",
- "account": {
- "name": "Avetta",
- "id": 123,
- "con_id": 15651
}
}
], - "security": [
- {
- "id": 123,
- "con_id": 15651,
- "parent_id": 123,
- "top_id": 123,
- "name": "Security Group",
- "status": "Active",
- "created_date": "2020-11-01 12:00:00",
- "updated_date": "2020-11-01 12:00:00"
}
], - "agreements": [
- {
- "file_id": 123,
- "agr_id": 15651,
- "title": "Agreement 1",
- "date": "2020-11-01 12:00:00",
- "prompt": "I agree",
- "label": "Agreement 1"
}
], - "variances": [
- {
- "id": 123,
- "account": {
- "name": "Avetta",
- "id": 123,
- "con_id": 15651
}, - "flag": "Green",
- "target": {
- "id": 123,
- "type": "Role",
- "code": "",
- "title": ""
}, - "begin_date": "2020-11-01 12:00:00",
- "end_date": "2020-11-01 12:00:00",
- "reason": "Reason for the variance"
}
]
}
}Save the user information in the profile form
| id | integer Example: 123 The ID of the user resource, if not provided, the results will corresponde to the current user |
JSON data with the user information details - it could be a json object for one user or an array of objects for multiple users
| UsrFirstName | string First name |
| UsrMiddleInitial | string Middle initial |
| UsrLastName | string Last name |
| UsrTitleID | integer Title ID |
| UsrEmailAddr | string Email address |
| UsrEmploymentTypID | integer Employment type ID |
| UsrAddrTypID | integer Address type ID |
| UsrAddress1 | string Address line 1 |
| UsrAddress2 | string Address line 2 |
| UsrCity | string City |
| UsrState | string State |
| UsrZipCode | string Zip code |
| UsrCountryID | integer Country ID |
| UsrMobilePhone | string Mobile phone |
| UsrHomePhone | string Home phone |
| UsrWorkPhone | string Work phone |
| UsrFaxPhone | string Fax phone |
| UsrEmergencyContactName | string Emergency contact name |
| UsrEmergencyContactPhone | string Emergency contact phone |
| UsrEmergencyContactTypID | integer Emergency contact type ID |
| UsrGenderTypID | integer Gender type ID |
| UsrBirthDate | string Birth date |
| UsrLegalWorkingAge | boolean Enum: true false Legal working age |
| UsrSSN | string Protected field Social security number |
| Passport | string Custom field sample |
{- "UsrFirstName": "John",
- "UsrMiddleInitial": "A",
- "UsrLastName": "Doe",
- "UsrTitleID": 0,
- "UsrEmailAddr": "john.doe@example.com",
- "UsrEmploymentTypID": 1641,
- "UsrAddrTypID": 61,
- "UsrAddress1": "123 Main St",
- "UsrAddress2": "Apt 4",
- "UsrCity": "Anytown",
- "UsrState": "Anystate",
- "UsrZipCode": 12345,
- "UsrCountryID": 10,
- "UsrMobilePhone": "555-123-4567",
- "UsrHomePhone": "555-987-6543",
- "UsrWorkPhone": "555-555-5555",
- "UsrFaxPhone": "555-666-7777",
- "UsrEmergencyContactName": "Jane Doe",
- "UsrEmergencyContactPhone": "555-111-2222",
- "UsrEmergencyContactTypID": 1725,
- "UsrGenderTypID": 161,
- "UsrBirthDate": "1980-01-01",
- "UsrLegalWorkingAge": true,
- "UsrSSN": "123-45-6789",
- "Passport": "AB1234567"
}{- "summary": "200 - Successful profile save example",
- "value": {
- "stats": {
- "command": "User",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 0,
- "records": 0
}, - "user": {
- "status": "Good",
- "message": [
- "SSN is not valid",
- "Changes Saved"
], - "success": true,
- "code": 200
}
}
}Profile form information
| id | integer Example: 123 The ID of the user resource, if not provided, the results will corresponde to the current user |
{- "summary": "200 - Successful profile example",
- "value": {
- "stats": {
- "command": "User",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 0,
- "records": 0
}, - "user": {
- "fields": [
- {
- "group": null,
- "key": "UsrLoginID",
- "order": 1,
- "readonly": true,
- "title": "Login ID",
- "type": 501,
- "typename": "textfield",
- "validation": {
- "maxlength": 128,
- "maxvalue": null,
- "minlength": null,
- "required": true,
- "special": null
}, - "value": "Alex.Bennett"
}, - {
- "group": "name",
- "key": "UsrFirstName",
- "order": 2,
- "readonly": false,
- "title": "First Name",
- "type": 501,
- "typename": "textfield",
- "validation": {
- "maxlength": 35,
- "maxvalue": null,
- "minlength": null,
- "required": true,
- "special": null
}, - "value": "Alex"
}, - {
- "group": "name",
- "key": "UsrMiddleInitial",
- "order": 3,
- "readonly": false,
- "title": "MI",
- "type": 501,
- "typename": "textfield",
- "validation": {
- "maxlength": 1,
- "maxvalue": null,
- "minlength": null,
- "required": false,
- "special": null
}, - "value": null
}, - {
- "group": "name",
- "key": "UsrLastName",
- "order": 4,
- "readonly": false,
- "title": "Last Name",
- "type": 501,
- "typename": "textfield",
- "validation": {
- "maxlength": 45,
- "maxvalue": null,
- "minlength": null,
- "required": true,
- "special": null
}, - "value": "Bennett"
}, - {
- "group": null,
- "key": "UsrTitleID",
- "order": 30,
- "readonly": false,
- "title": "Title",
- "type": 507,
- "typename": "combo",
- "validation": {
- "maxlength": null,
- "maxvalue": null,
- "minlength": null,
- "required": true,
- "special": null
}, - "value": 365,
- "values": [
- {
- "id": 0,
- "value": "N/A"
}, - {
- "id": 2,
- "value": "Technician"
}, - {
- "id": 4,
- "value": "Supervisor"
}
]
}, - {
- "group": null,
- "key": "UsrEmailAddr",
- "order": 26,
- "readonly": false,
- "title": "E-mail",
- "type": 501,
- "typename": "textfield",
- "validation": {
- "maxlength": 255,
- "maxvalue": null,
- "minlength": null,
- "required": false,
- "special": "email:1"
}, - "value": null
}, - {
- "group": null,
- "key": "UsrEmploymentTypID",
- "order": 47,
- "readonly": false,
- "title": "Employment Type",
- "type": 508,
- "typename": "popup",
- "validation": {
- "maxlength": null,
- "maxvalue": null,
- "minlength": null,
- "required": false,
- "special": null
}, - "value": 1641,
- "values": [
- {
- "id": 1641,
- "value": "Employee"
}, - {
- "id": 1642,
- "value": "Subcontractor"
}, - {
- "id": 1643,
- "value": "Labor Hire"
}
]
}, - {
- "group": "address",
- "key": "UsrAddrTypID",
- "order": 7,
- "readonly": false,
- "title": "Address Type",
- "type": 508,
- "typename": "popup",
- "validation": {
- "maxlength": null,
- "maxvalue": null,
- "minlength": null,
- "required": true,
- "special": null
}, - "value": 61,
- "values": [
- {
- "id": 61,
- "value": "Business"
}, - {
- "id": 62,
- "value": "Residence"
}
]
}, - {
- "group": "address",
- "key": "UsrAddress1",
- "order": 8,
- "readonly": false,
- "title": "Address Line 1",
- "type": 501,
- "typename": "textfield",
- "validation": {
- "maxlength": 100,
- "maxvalue": null,
- "minlength": null,
- "required": false,
- "special": null
}, - "value": null
}, - {
- "group": "address",
- "key": "UsrAddress2",
- "order": 9,
- "readonly": false,
- "title": "Address Line 2",
- "type": 501,
- "typename": "textfield",
- "validation": {
- "maxlength": 100,
- "maxvalue": null,
- "minlength": null,
- "required": false,
- "special": null
}, - "value": null
}, - {
- "group": "address",
- "key": "UsrCity",
- "order": 10,
- "readonly": false,
- "title": "City",
- "type": 501,
- "typename": "textfield",
- "validation": {
- "maxlength": 50,
- "maxvalue": null,
- "minlength": null,
- "required": false,
- "special": null
}, - "value": null
}, - {
- "group": "address",
- "key": "UsrState",
- "order": 11,
- "readonly": false,
- "title": "State",
- "type": 501,
- "typename": "textfield",
- "validation": {
- "maxlength": 50,
- "maxvalue": null,
- "minlength": null,
- "required": false,
- "special": null
}, - "value": null
}, - {
- "group": "address",
- "key": "UsrZipCode",
- "order": 13,
- "readonly": false,
- "title": "Zip",
- "type": 501,
- "typename": "textfield",
- "validation": {
- "maxlength": 15,
- "maxvalue": null,
- "minlength": null,
- "required": false,
- "special": null
}, - "value": null
}, - {
- "group": "address",
- "key": "UsrCountryID",
- "order": 12,
- "readonly": false,
- "title": "Country",
- "type": 524,
- "typename": "popup",
- "validation": {
- "maxlength": null,
- "maxvalue": null,
- "minlength": null,
- "required": false,
- "special": null
}, - "value": 840,
- "values": [
- {
- "id": 32,
- "value": "Argentina"
}, - {
- "id": 36,
- "value": "Australia"
}, - {
- "id": 68,
- "value": "Bolivia (Plurinational State of)"
}, - {
- "id": 124,
- "value": "Canada"
}, - {
- "id": 356,
- "value": "India"
}, - {
- "id": 840,
- "value": "United States of America"
}
]
}, - {
- "group": "phone",
- "key": "UsrMobilePhone",
- "order": 14,
- "readonly": false,
- "title": "Mobile Phone",
- "type": 526,
- "typename": "textfield",
- "validation": {
- "maxlength": 18,
- "maxvalue": null,
- "minlength": null,
- "required": false,
- "special": null
}, - "value": null
}, - {
- "group": "phone",
- "key": "UsrHomePhone",
- "order": 15,
- "readonly": false,
- "title": "Home Phone",
- "type": 526,
- "typename": "textfield",
- "validation": {
- "maxlength": 18,
- "maxvalue": null,
- "minlength": null,
- "required": false,
- "special": null
}, - "value": null
}, - {
- "group": "phone",
- "key": "UsrWorkPhone",
- "order": 16,
- "readonly": false,
- "title": "Work Phone",
- "type": 526,
- "typename": "textfield",
- "validation": {
- "maxlength": 18,
- "maxvalue": null,
- "minlength": null,
- "required": false,
- "special": null
}, - "value": null
}, - {
- "group": "phone",
- "key": "UsrFaxPhone",
- "order": 17,
- "readonly": false,
- "title": "Fax Phone",
- "type": 526,
- "typename": "textfield",
- "validation": {
- "maxlength": 18,
- "maxvalue": null,
- "minlength": null,
- "required": false,
- "special": null
}, - "value": null
}, - {
- "group": "emergencycontact",
- "key": "UsrEmergencyContactName",
- "order": null,
- "readonly": false,
- "title": "Emergency Contact Name",
- "type": 501,
- "typename": "textfield",
- "validation": {
- "maxlength": 100,
- "maxvalue": null,
- "minlength": null,
- "required": false,
- "special": null
}, - "value": null
}, - {
- "group": "emergencycontact",
- "key": "UsrEmergencyContactPhone",
- "order": null,
- "readonly": false,
- "title": "Emergency Contact Phone",
- "type": 526,
- "typename": "textfield",
- "validation": {
- "maxlength": 18,
- "maxvalue": null,
- "minlength": null,
- "required": false,
- "special": null
}, - "value": null
}, - {
- "group": "emergencycontact",
- "key": "UsrEmergencyContactTypID",
- "order": null,
- "readonly": false,
- "title": "Emergency Contact Relationship",
- "type": 508,
- "typename": "popup",
- "validation": {
- "maxlength": null,
- "maxvalue": null,
- "minlength": null,
- "required": false,
- "special": null
}, - "value": 0,
- "values": [
- {
- "id": 1721,
- "value": "Parent"
}, - {
- "id": 1722,
- "value": "Child"
}, - {
- "id": 1723,
- "value": "Spouse"
}, - {
- "id": 1724,
- "value": "Sibling"
}, - {
- "id": 1725,
- "value": "Friend"
}, - {
- "id": 1726,
- "value": "Relative"
}, - {
- "id": 1727,
- "value": "Other"
}
]
}, - {
- "group": "personalinfo",
- "key": "UsrGenderTypID",
- "order": 18,
- "readonly": false,
- "title": "Gender",
- "type": 508,
- "typename": "popup",
- "validation": {
- "maxlength": null,
- "maxvalue": null,
- "minlength": null,
- "required": false,
- "special": null
}, - "value": 0,
- "values": [
- {
- "id": 161,
- "value": "Male"
}, - {
- "id": 162,
- "value": "Female"
}
]
}, - {
- "group": "personalinfo",
- "key": "UsrBirthDate",
- "order": 32,
- "readonly": false,
- "title": "Birth Date",
- "type": 518,
- "typename": "textfield",
- "validation": {
- "maxlength": null,
- "maxvalue": "2024-07-08 23:59:59",
- "minlength": null,
- "required": false,
- "special": null
}, - "value": null
}, - {
- "group": "personalinfo",
- "key": "UsrLegalWorkingAge",
- "order": 45,
- "readonly": false,
- "title": "Legal Working Age",
- "type": 509,
- "typename": "checkbox",
- "validation": {
- "maxlength": null,
- "maxvalue": null,
- "minlength": null,
- "required": false,
- "special": null
}, - "value": 0
}, - {
- "group": "personalinfo",
- "key": "UsrSSN",
- "order": 6,
- "readonly": false,
- "title": "SSN",
- "type": 501,
- "typename": "textfield",
- "validation": {
- "maxlength": 100,
- "maxvalue": null,
- "minlength": null,
- "required": false,
- "special": "ssn"
}, - "value": ""
}, - {
- "group": "personalinfo",
- "key": "IsMFAEnabled",
- "readonly": false,
- "title": "Multi-Factor Authentication (MFA)",
- "type": 509,
- "typename": "checkbox",
- "validation": {
- "maxvalue": 1,
- "minvalue": 0,
- "required": false
}, - "value": 0
}, - {
- "group": "custom",
- "id": 20,
- "key": "Gender",
- "readonly": false,
- "title": "EchoSphere Inc",
- "type": 502,
- "typename": "textfield",
- "validation": {
- "maxlength": 255,
- "maxvalue": null,
- "minlength": null,
- "required": true
}, - "value": null
}
], - "groups": [
- {
- "name": "name",
- "title": "Name",
- "value": "{UsrFirstName} {UsrMiddleInitial} {UsrLastName}"
}, - {
- "name": "address",
- "title": "Address ({UsrAddrTypID})",
- "value": "{UsrAddress1} {UsrAddress2} {UsrCity}, {UsrState} {UsrZipCode} {UsrCountryID}"
}, - {
- "name": "phone",
- "title": "Phone",
- "value": null
}, - {
- "name": "emergencycontact",
- "title": "Emergency Contact",
- "value": "{UsrEmergencyContactPhone} ( {UsrEmergencyContactName} )"
}, - {
- "name": "personalinfo",
- "title": "Personal Information",
- "value": null
}, - {
- "name": "custom",
- "title": "Custom",
- "value": null
}
]
}
}
}Save the logged user information in the profile form
| id | integer Example: 123 The ID of the user resource, if not provided, the results will corresponde to the current user |
JSON data with the user information details - it could be a json object for one user or an array of objects for multiple users
| UsrFirstName | string First name |
| UsrMiddleInitial | string Middle initial |
| UsrLastName | string Last name |
| UsrTitleID | integer Title ID |
| UsrEmailAddr | string Email address |
| UsrEmploymentTypID | integer Employment type ID |
| UsrAddrTypID | integer Address type ID |
| UsrAddress1 | string Address line 1 |
| UsrAddress2 | string Address line 2 |
| UsrCity | string City |
| UsrState | string State |
| UsrZipCode | string Zip code |
| UsrCountryID | integer Country ID |
| UsrMobilePhone | string Mobile phone |
| UsrHomePhone | string Home phone |
| UsrWorkPhone | string Work phone |
| UsrFaxPhone | string Fax phone |
| UsrEmergencyContactName | string Emergency contact name |
| UsrEmergencyContactPhone | string Emergency contact phone |
| UsrEmergencyContactTypID | integer Emergency contact type ID |
| UsrGenderTypID | integer Gender type ID |
| UsrBirthDate | string Birth date |
| UsrLegalWorkingAge | boolean Enum: true false Legal working age |
| UsrSSN | string Protected field Social security number |
| Passport | string Custom field sample |
{- "UsrFirstName": "John",
- "UsrMiddleInitial": "A",
- "UsrLastName": "Doe",
- "UsrTitleID": 0,
- "UsrEmailAddr": "john.doe@example.com",
- "UsrEmploymentTypID": 1641,
- "UsrAddrTypID": 61,
- "UsrAddress1": "123 Main St",
- "UsrAddress2": "Apt 4",
- "UsrCity": "Anytown",
- "UsrState": "Anystate",
- "UsrZipCode": 12345,
- "UsrCountryID": 10,
- "UsrMobilePhone": "555-123-4567",
- "UsrHomePhone": "555-987-6543",
- "UsrWorkPhone": "555-555-5555",
- "UsrFaxPhone": "555-666-7777",
- "UsrEmergencyContactName": "Jane Doe",
- "UsrEmergencyContactPhone": "555-111-2222",
- "UsrEmergencyContactTypID": 1725,
- "UsrGenderTypID": 161,
- "UsrBirthDate": "1980-01-01",
- "UsrLegalWorkingAge": true,
- "UsrSSN": "123-45-6789",
- "Passport": "AB1234567"
}{- "summary": "200 - Successful profile save example",
- "value": {
- "stats": {
- "command": "User",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 0,
- "records": 0
}, - "user": {
- "status": "Good",
- "message": [
- "SSN is not valid",
- "Changes Saved"
], - "success": true,
- "code": 200
}
}
}Get the user photo
| id | integer Example: 123 The ID of the user resource, if not provided, the results will corresponde to the current user |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "user": {
- "name": "ProfilePhoto.jpg",
- "size": 123456789,
- "data": "data:image/jpeg;base64,/9j/..."
}
}Save the user photo
| id | integer Example: 123 The ID of the user resource, if not provided, the results will corresponde to the current user |
| file | string <binary> |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "user": {
- "code": 200,
- "message": "The User Photo has been uploaded",
- "status": "Good",
- "success": true
}
}Delete the user photo
| id | integer Example: 123 The ID of the user resource, if not provided, the results will corresponde to the current user |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "user": {
- "code": 200,
- "message": "The User Photo has been deleted",
- "status": "Good",
- "success": true
}
}Get List check in/out
| id | integer references an id to reduce list down to 1 item |
| site | integer Example: site=44 Site ID |
{- "stats": {
- "command": "User",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 0,
- "records": 0
}, - "user": {
- "list": [
- {
- "out": "2024-06-03 21:37:00",
- "in": "2024-06-03 21:37:00"
}, - {
- "out": "2024-06-03 21:37:00",
- "in": "2024-06-03 21:37:00"
}
]
}
}Check in
| id | integer references an id to reduce list down to 1 item |
| site | integer Example: site=44 Site ID |
| flag | string Example: flag=Red Flag |
| notes | string Example: notes=Check in Notes about the check in/out |
| time_in required | string Example: time_in=2021-09-01 08:00 Time in |
{- "stats": {
- "command": "User",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 0,
- "records": 0
}, - "user": {
- "status": "Good",
- "success": true,
- "code": 200
}
}Check out
| id | integer references an id to reduce list down to 1 item |
| site | integer Example: site=44 Site ID |
| flag | string Example: flag=Red Flag |
| notes | string Example: notes=Check in Notes about the check in/out |
| time_out required | string Example: time_out=2021-09-01 17:00 Time out |
{- "stats": {
- "command": "User",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 0,
- "records": 0
}, - "user": {
- "status": "Good",
- "message": null,
- "success": true,
- "code": 200
}
}Return the status of the check in for a user in a group
| id | integer references an id to reduce list down to 1 item |
| grpID required | integer Example: 44 Site ID |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "user": {
- "status": "Checked in here",
- "usr_id": 123,
- "grp_id": 123,
- "grp_code": 15651,
- "grp_title": "Site company",
- "top_grp_id": 123,
- "top_grp_code": 15651,
- "top_grp_title": "client company"
}
}Return the list of sites where the user can check in
| id | integer references an id to reduce list down to 1 item |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "user": {
- "sites": [
- {
- "checked_in": "Checked out",
- "grp_id": 123,
- "grp_code": 15651,
- "grp_title": "Site company",
- "flag_status": "Green"
}
]
}
}Return the history details of the check in and check out for a user
| id | integer references an id to reduce list down to 1 item |
| site | integer Example: site=44 Site ID |
| startDate | string Example: startDate=2021-09-01 00:00 Filter by check in date where the given date is greater or equal to the given date |
| endDate | string Example: endDate=2021-09-01 23:59 Filter by check in date where the given date is less or equal to the given date |
| sort | string Enum: "name" "con_id" "checkin" "checkout" Example: sort=checkin Sort the results by the given field: name - site name, con_id - site code, checkin - date to check in, checkout - date to check out |
| limit | integer Default: 3000 Maximum number of records to return |
| start | integer Default: 1 Offset of the first record to return |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "user": {
- "entries": [
- {
- "account": {
- "id": 123,
- "con_id": 15651,
- "name": "client company::Site A"
}, - "checkin_by": "Worker Supplier 2",
- "checkin_date": "2024-07-09 05:00:00",
- "checkout_by": "Worker Supplier 2",
- "checkin_flag": "Red",
- "checkout_date": "2024-07-09 15:00:00",
- "id": 7033,
- "checkin_notes": null,
- "checkout_notes": null
}
]
}
}Get the list of groups the user is available to select from
| start | integer Default: 1 Offset of the first record to return |
| limit | integer Default: 3000 Maximum number of records to return |
| search | string Search by the title of the group |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "sites": {
- "id": 27,
- "title": "Avetta",
- "con_id": 235843,
- "has_child": 1,
- "level": 2
}
}Set the viewing group for the user session
Group Selector payload
| id | integer Group ID to set as viewing group. Use 0 to clear viewing group. ( optional if con_id is provided ) |
| con_id | integer Group code to set as viewing group. Alternative to the id field. ( optional if id is provided ) |
{- "id": 27,
- "con_id": 235843
}{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 0,
- "records": 0
}, - "data": {
- "message": "Malformed request syntax",
- "status": "Bad Request",
- "success": false,
- "code": 400
}
}Get the list of children groups of a specific group ID
| grp_id required | integer <integer> Group ID to get its children groups |
| start | integer Default: 1 Offset of the first record to return |
| limit | integer Default: 3000 Maximum number of records to return |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "sites": {
- "id": 27,
- "title": "Avetta",
- "con_id": 235843,
- "has_child": 1,
- "level": 2
}
}Returns a list of users that could be filtered by the given parameters
| id | integer references an id to reduce list down to 1 item |
| start | integer Default: 1 Offset of the first record to return |
| limit | integer Default: 3000 Maximum number of records to return |
| sort | string Enum: "id" "first_name" "last_name" "login_id" "email" "status" "flag" "created_date" "updated_date" Name of field to sort by |
| search | string Search term - It checks the term in login id, email, first name, last name, mobile phone, company name and company site name. |
| modifiedAfter | string <date-time> Filter Only users modified or added after this date |
| flag | string Enum: "Green" "Amber" "Red" Filter the results for a specify rating (Green, Amber, Red) |
| search_type | integer Value: 2010 Restrict the search value by comparing first name and last name only (value: 2010 or null) |
| extra | string Enum: "photos" "permissions" "roles" "requirements" "connections" "history" "custom" "variances" Extra data to return for users (Can be send as a list separated by commas) |
| role_id | integer Filter down to a role |
| showInactive | integer <boolean> Enum: 0 1 Show inactive users in the results |
| showRemoved | integer <boolean> Enum: 0 1 Show removed users in the results |
| account_id | integer Filter down from a group id where user belongs to |
| account_con_id | integer Filter down form a group code where user belongs to |
| site_id | integer Filter from a specific site id to drill down |
| allusers | integer <boolean> Enum: 0 1 Return all users regardless if they have training |
| connection_id | integer Filter by the connected site id to drill down |
| connection_con_id | integer Filter by the connected site code to drill down |
| showAllConnections | integer <boolean> Enum: 0 1 Show all connections for the user, even if there is no training associated |
{- "id": 1235,
- "con_id": 1568432,
- "first_name": "John",
- "last_name": "Doe",
- "login_id": "jdoe",
- "email": "test@test.com",
- "dob": "1998-05-25",
- "sap_id": 265813,
- "cat_code": 1632,
- "phone": 4561231159,
- "status": "Active",
- "flag": "Green",
- "flag_forced": 0,
- "title": "Director of Software Development",
- "created_date": "2018-10-23 18:31:00",
- "updated_date": "2017-15-05 16:41:00",
- "last_checkin_date": "2020-10-23 15:00:00",
- "last_checkout_date": "2020-10-23 19:45:00",
- "badge_link": "",
- "external_id": [
- {
- "Connect": {
- "SAP": 11035178
}
}
], - "removed": 0,
- "emergency_phone": "555-555-5555",
- "emergency_contact_name": "Bob Smith",
- "emergency_contact_relationship": "Parent",
- "account": {
- "id": 1235,
- "parent_id": 1235,
- "name": "Avetta",
- "type": "client",
- "con_id": 235843,
- "con_flag": 0,
- "external_id": [
- {
- "Connect": {
- "SAP": 11035178
}
}
]
}
}Insert or update a user or a list of users
| id | integer references an id to reduce list down to 1 item |
JSON data with the user information details - it could be a json object for one user or an array of objects for multiple users
| id | integer User ID - if it exists it will update the user, if not it will create a new user |
| login_id | string User login id - if is a new user it is required |
| first_name | string User first name - if is a new user it is required |
| middle_initial | string User middle initial |
| last_name | string User last name - if is a new user it is required |
| password | string User password - if is a new user it is required |
| site | string Company site id - if is a new user it is required |
string User email | |
| address1 | string User address line 1 |
| address2 | string User address line 2 |
| city | string User city name |
| state | string User state name |
| zipcode | string User zipcode number |
| country | string User country name - it could be the country id, code or the country name |
| mobile_phone | string User mobile phone number - it should be in the international format |
| home_phone | string User home phone number - it should be in the international format |
| work_phone | string User work phone number - it should be in the international format |
| emergency_contact_name | string User emergency contact name |
| emergency_contact_phone | string User emergency contact phone number - it should be in the international format |
| birth_date | string User birth date - it should be in the format YYYY-MM-DD |
| ssn | string User social security number - it should be in the format XXX-XX-XXXX / XXXXXXXXX |
| photo | string User photo - it should be in the format of a base64 string |
| hire_date | string User hire date - it should be in the format YYYY-MM-DD |
| term_date | string User termination date - it should be in the format YYYY-MM-DD |
| status | string Enum: "active" "inactive" User status - for new users it will be active |
| locale | string User locale - it should be in the format of language-country - for new users it will be set as default if not provided |
| sap | string User SAP id |
| notes | string User notes |
| reset_password | boolean Enum: true false User reset password - if true it will check it to reset the user password |
| password_never_expired | boolean Enum: true false User password never expired - if true it will check it to set the user password as never expired |
| 2fa | boolean Enum: true false User 2fa - if true it will check it to set the user as two factor authentication |
{- "login_id": "jdoe",
- "first_name": "John",
- "middle_initial": "M",
- "last_name": "Smith",
- "password": "password!",
- "site": 26516,
- "email": "test@email.com",
- "address1": "45 Main St",
- "address2": "Apt 2",
- "city": "New York",
- "state": "NY",
- "zipcode": 10001,
- "country": "USA",
- "mobile_phone": "+1 123456789",
- "home_phone": "+1 123456789",
- "work_phone": "+1 123456789",
- "emergency_contact_name": "Bob Smith",
- "emergency_contact_phone": "+1 123456789",
- "birth_date": "1998-05-25",
- "ssn": "123-45-6789",
- "photo": "/9j/...",
- "hire_date": "2020-10-23",
- "term_date": "2024-10-23",
- "status": "active",
- "locale": "en-us",
- "sap": 265813,
- "notes": "User notes",
- "reset_password": true,
- "password_never_expired": false,
- "2fa": false
}{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 2,
- "records": 2,
- "fail": 0,
- "success": 2,
- "total": 2
}, - "users": {
- "status": "Good",
- "success": false,
- "code": 200,
- "detail": {
- "success": [
- {
- "UsrID": 189,
- "code": 200,
- "message": [
- "User saved successfully"
]
}, - {
- "UsrID": 190,
- "code": 200,
- "message": [
- "The country value is not valid"
]
}
], - "fail": [ ]
}
}
}Returns a list of fields for creating a new user
{- "stats": {
- "command": "Users",
- "version": "v1",
- "msg": "Good",
- "start": 1,
- "time": 0.54373,
- "limit": 3000,
- "apikey": "...",
- "owner": 1365
}, - "users": [
- {
- "key": "UsrLoginID",
- "title": "Login ID",
- "type": 501,
- "order": 1,
- "validation": {
- "required": true,
- "minlength": null,
- "maxlength": 128,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrFirstName",
- "title": "First Name",
- "type": 501,
- "order": 2,
- "validation": {
- "required": true,
- "minlength": 1,
- "maxlength": 50,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrMiddleInitial",
- "title": "Middle Initial",
- "type": 501,
- "order": 3,
- "validation": {
- "required": false,
- "minlength": 1,
- "maxlength": 1,
- "special": "alpha",
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrLastName",
- "title": "Last Name",
- "type": 501,
- "order": 4,
- "validation": {
- "required": true,
- "minlength": 1,
- "maxlength": 50,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrPassword",
- "title": "Password",
- "type": 501,
- "order": 5,
- "validation": {
- "required": true,
- "minlength": 8,
- "maxlength": 50,
- "special": "password",
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrGrpID",
- "title": "Company :: Site",
- "type": 513,
- "order": 6,
- "validation": {
- "required": true,
- "minlength": null,
- "maxlength": null,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "combo",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrEmailAddr",
- "title": "Email",
- "type": 501,
- "order": 7,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": 255,
- "special": "email:1",
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrAddress1",
- "title": "Address 1",
- "type": 501,
- "order": 8,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": 100,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrAddress2",
- "title": "Address 2",
- "type": 501,
- "order": 9,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": 100,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrCity",
- "title": "City",
- "type": 501,
- "order": 10,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": 100,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrState",
- "title": "State",
- "type": 501,
- "order": 11,
- "validation": {
- "required": false,
- "minlength": 2,
- "maxlength": 2,
- "special": "alpha",
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrZipCode",
- "title": "Zip",
- "type": 501,
- "order": 12,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": 15,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrCountryID",
- "title": "Country",
- "type": 524,
- "order": 13,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": null,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "popup",
- "readonly": false,
- "value": null,
- "values": [
- {
- "id": 4,
- "value": "Afghanistan"
}, - {
- "id": 8,
- "value": "Albania"
}, - {
- "id": 12,
- "value": "Algeria"
}, - {
- "id": 16,
- "value": "American Samoa"
}, - "........"
]
}, - {
- "key": "UsrMobilePhone",
- "title": "Mobile Phone",
- "type": 526,
- "order": 14,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": 50,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrHomePhone",
- "title": "Home Phone",
- "type": 526,
- "order": 15,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": 50,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrWorkPhone",
- "title": "Work Phone",
- "type": 526,
- "order": 16,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": 50,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrEmergencyContactName",
- "title": "Emergency Contact Name",
- "type": 501,
- "order": 17,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": 100,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrEmergencyContactPhone",
- "title": "Emergency Contact Phone",
- "type": 526,
- "order": 18,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": 50,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrBirthDate",
- "title": "Birth Date",
- "type": 518,
- "order": 19,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": null,
- "special": null,
- "minvalue": null,
- "maxvalue": "2024-02-26 19:59:59"
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrSSN",
- "title": "SSN",
- "type": 501,
- "order": 20,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": 100,
- "special": "ssn",
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrImageURL",
- "title": "Picture",
- "type": 512,
- "order": 21,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": 255,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrHireDate",
- "title": "Hire Date",
- "type": 518,
- "order": 22,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": null,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrTerminationDate",
- "title": "Term Date",
- "type": 518,
- "order": 23,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": null,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrStatusTypID",
- "title": "Status",
- "type": 508,
- "order": 24,
- "validation": {
- "required": true,
- "minlength": null,
- "maxlength": null,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "popup",
- "readonly": false,
- "value": null,
- "values": [
- {
- "id": 81,
- "value": "Active"
}, - {
- "id": 82,
- "value": "Inactive"
}
]
}, - {
- "key": "UsrLngID",
- "title": "Language",
- "type": 525,
- "order": 25,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": null,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "popup",
- "readonly": false,
- "value": null
}, - {
- "key": "UsrSAPID",
- "title": "SAP ID",
- "type": 501,
- "order": 26,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": 25,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrNotes",
- "title": "Notes",
- "type": 502,
- "order": 27,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": 4000,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textblock",
- "readonly": false,
- "value": ""
}, - {
- "key": "reset_password",
- "title": "Change Password at next login",
- "type": 509,
- "order": 28,
- "validation": {
- "required": true,
- "minlength": null,
- "maxlength": null,
- "special": null,
- "minvalue": 0,
- "maxvalue": 1
}, - "typename": "checkbox",
- "readonly": false,
- "value": 1
}, - {
- "key": "password_never_expired",
- "title": "Password Never Expires",
- "type": 509,
- "order": 29,
- "validation": {
- "required": true,
- "minlength": null,
- "maxlength": null,
- "special": null,
- "minvalue": 0,
- "maxvalue": 1
}, - "typename": "checkbox",
- "readonly": false,
- "value": 1
}, - {
- "key": "2fa",
- "title": "Multi-Factor Authentication (MFA)",
- "type": 509,
- "order": 30,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": null,
- "special": null,
- "minvalue": 0,
- "maxvalue": 1
}, - "typename": "checkbox",
- "readonly": true,
- "value": 0
}
]
}Returns a list of fields for a user by id for edit or update
| id | integer references an id to reduce list down to 1 item |
{- "stats": {
- "command": "Users",
- "version": "v1",
- "msg": "Good",
- "start": 1,
- "time": 0.54373,
- "limit": 3000,
- "apikey": "...",
- "owner": 1365
}, - "users": [
- {
- "key": "UsrLoginID",
- "title": "Login ID",
- "type": 501,
- "order": 1,
- "validation": {
- "required": true,
- "minlength": null,
- "maxlength": 128,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrFirstName",
- "title": "First Name",
- "type": 501,
- "order": 2,
- "validation": {
- "required": true,
- "minlength": 1,
- "maxlength": 50,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrMiddleInitial",
- "title": "Middle Initial",
- "type": 501,
- "order": 3,
- "validation": {
- "required": false,
- "minlength": 1,
- "maxlength": 1,
- "special": "alpha",
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrLastName",
- "title": "Last Name",
- "type": 501,
- "order": 4,
- "validation": {
- "required": true,
- "minlength": 1,
- "maxlength": 50,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrPassword",
- "title": "Password",
- "type": 501,
- "order": 5,
- "validation": {
- "required": true,
- "minlength": 8,
- "maxlength": 50,
- "special": "password",
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrGrpID",
- "title": "Company :: Site",
- "type": 513,
- "order": 6,
- "validation": {
- "required": true,
- "minlength": null,
- "maxlength": null,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "combo",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrEmailAddr",
- "title": "Email",
- "type": 501,
- "order": 7,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": 255,
- "special": "email:1",
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrAddress1",
- "title": "Address 1",
- "type": 501,
- "order": 8,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": 100,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrAddress2",
- "title": "Address 2",
- "type": 501,
- "order": 9,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": 100,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrCity",
- "title": "City",
- "type": 501,
- "order": 10,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": 100,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrState",
- "title": "State",
- "type": 501,
- "order": 11,
- "validation": {
- "required": false,
- "minlength": 2,
- "maxlength": 2,
- "special": "alpha",
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrZipCode",
- "title": "Zip",
- "type": 501,
- "order": 12,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": 15,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrCountryID",
- "title": "Country",
- "type": 524,
- "order": 13,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": null,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "popup",
- "readonly": false,
- "value": null,
- "values": [
- {
- "id": 4,
- "value": "Afghanistan"
}, - {
- "id": 8,
- "value": "Albania"
}, - {
- "id": 12,
- "value": "Algeria"
}, - {
- "id": 16,
- "value": "American Samoa"
}, - "........"
]
}, - {
- "key": "UsrMobilePhone",
- "title": "Mobile Phone",
- "type": 526,
- "order": 14,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": 50,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrHomePhone",
- "title": "Home Phone",
- "type": 526,
- "order": 15,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": 50,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrWorkPhone",
- "title": "Work Phone",
- "type": 526,
- "order": 16,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": 50,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrEmergencyContactName",
- "title": "Emergency Contact Name",
- "type": 501,
- "order": 17,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": 100,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrEmergencyContactPhone",
- "title": "Emergency Contact Phone",
- "type": 526,
- "order": 18,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": 50,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrBirthDate",
- "title": "Birth Date",
- "type": 518,
- "order": 19,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": null,
- "special": null,
- "minvalue": null,
- "maxvalue": "2024-02-26 19:59:59"
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrSSN",
- "title": "SSN",
- "type": 501,
- "order": 20,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": 100,
- "special": "ssn",
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrImageURL",
- "title": "Picture",
- "type": 512,
- "order": 21,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": 255,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrHireDate",
- "title": "Hire Date",
- "type": 518,
- "order": 22,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": null,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrTerminationDate",
- "title": "Term Date",
- "type": 518,
- "order": 23,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": null,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrStatusTypID",
- "title": "Status",
- "type": 508,
- "order": 24,
- "validation": {
- "required": true,
- "minlength": null,
- "maxlength": null,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "popup",
- "readonly": false,
- "value": null,
- "values": [
- {
- "id": 81,
- "value": "Active"
}, - {
- "id": 82,
- "value": "Inactive"
}
]
}, - {
- "key": "UsrLngID",
- "title": "Language",
- "type": 525,
- "order": 25,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": null,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "popup",
- "readonly": false,
- "value": null
}, - {
- "key": "UsrSAPID",
- "title": "SAP ID",
- "type": 501,
- "order": 26,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": 25,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textfield",
- "readonly": false,
- "value": ""
}, - {
- "key": "UsrNotes",
- "title": "Notes",
- "type": 502,
- "order": 27,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": 4000,
- "special": null,
- "minvalue": null,
- "maxvalue": null
}, - "typename": "textblock",
- "readonly": false,
- "value": ""
}, - {
- "key": "reset_password",
- "title": "Change Password at next login",
- "type": 509,
- "order": 28,
- "validation": {
- "required": true,
- "minlength": null,
- "maxlength": null,
- "special": null,
- "minvalue": 0,
- "maxvalue": 1
}, - "typename": "checkbox",
- "readonly": false,
- "value": 1
}, - {
- "key": "password_never_expired",
- "title": "Password Never Expires",
- "type": 509,
- "order": 29,
- "validation": {
- "required": true,
- "minlength": null,
- "maxlength": null,
- "special": null,
- "minvalue": 0,
- "maxvalue": 1
}, - "typename": "checkbox",
- "readonly": false,
- "value": 1
}, - {
- "key": "2fa",
- "title": "Multi-Factor Authentication (MFA)",
- "type": 509,
- "order": 30,
- "validation": {
- "required": false,
- "minlength": null,
- "maxlength": null,
- "special": null,
- "minvalue": 0,
- "maxvalue": 1
}, - "typename": "checkbox",
- "readonly": true,
- "value": 0
}
]
}Returns a list of users that could be credited for a requirement
| start | integer Default: 1 Offset of the first record to return |
| limit | integer Default: 3000 Maximum number of records to return |
| sort | string Enum: "id" "first_name" "last_name" "login_id" "email" "status" "flag" "created_date" "updated_date" Name of field to sort by |
| search | string Search term - It checks the term in login id, email, first name, last name, mobile phone, company name and company site name. |
| modifiedAfter | string <date-time> Filter Only users modified or added after this date |
| flag | string Enum: "Green" "Amber" "Red" Filter the results for a specify rating (Green, Amber, Red) |
| search_type | integer Value: 2010 Restrict the search value by comparing first name and last name only (value: 2010 or null) |
| role_id | integer Filter down to a role |
| showInactive | integer <boolean> Enum: 0 1 Show inactive users in the results |
| showRemoved | integer <boolean> Enum: 0 1 Show removed users in the results |
| account_id | integer Filter down from a group id where user belongs to |
| account_con_id | integer Filter down form a group code where user belongs to |
| site_id | integer Filter from a specific site id to drill down |
| allusers | integer <boolean> Enum: 0 1 Return all users regardless if they have training |
| connection_id | integer Filter by the connected site id to drill down |
| connection_con_id | integer Filter by the connected site code to drill down |
| event_id | integer Show users that can be credited for the given requirement |
{- "id": 1235,
- "con_id": 1568432,
- "first_name": "John",
- "last_name": "Doe",
- "login_id": "jdoe",
- "email": "test@test.com",
- "dob": "1998-05-25",
- "sap_id": 265813,
- "cat_code": 1632,
- "phone": 4561231159,
- "status": "Active",
- "flag": "Green",
- "flag_forced": 0,
- "title": "Director of Software Development",
- "created_date": "2018-10-23 18:31:00",
- "updated_date": "2017-15-05 16:41:00",
- "last_checkin_date": "2020-10-23 15:00:00",
- "last_checkout_date": "2020-10-23 19:45:00",
- "badge_link": "",
- "external_id": [
- {
- "Connect": {
- "SAP": 11035178
}
}
], - "removed": 0,
- "emergency_phone": "555-555-5555",
- "emergency_contact_name": "Bob Smith",
- "emergency_contact_relationship": "Parent",
- "account": {
- "id": 1235,
- "parent_id": 1235,
- "name": "Avetta",
- "type": "client",
- "con_id": 235843,
- "con_flag": 0,
- "external_id": [
- {
- "Connect": {
- "SAP": 11035178
}
}
]
}
}Returns a list of users that can be managed
| start | integer Default: 1 Offset of the first record to return |
| limit | integer Default: 3000 Maximum number of records to return |
| sort | string Enum: "id" "first_name" "last_name" "login_id" "email" "status" "flag" "created_date" "updated_date" Name of field to sort by |
| search | string Search term - It checks the term in login id, email, first name, last name, mobile phone, company name and company site name. |
| site_id | integer Filter from a specific site id to drill down |
| account_id | integer Filter down from a group id where user belongs to |
| connection_id | integer Filter by the connected site id to drill down |
| flag | string Enum: "Green" "Amber" "Red" Filter the results for a specify rating (Green, Amber, Red) |
| role_id | integer Filter down to a role |
| showInactive | integer <boolean> Enum: 0 1 Show inactive users in the results |
| showRemoved | integer <boolean> Enum: 0 1 Show removed users in the results |
| modifiedAfter | string <date-time> Filter Only users modified or added after this date |
{- "id": 1235,
- "con_id": 1568432,
- "first_name": "John",
- "last_name": "Doe",
- "login_id": "jdoe",
- "email": "test@test.com",
- "dob": "1998-05-25",
- "sap_id": 265813,
- "cat_code": 1632,
- "phone": 4561231159,
- "status": "Active",
- "flag": "Green",
- "flag_forced": 0,
- "title": "Director of Software Development",
- "created_date": "2018-10-23 18:31:00",
- "updated_date": "2017-15-05 16:41:00",
- "last_checkin_date": "2020-10-23 15:00:00",
- "last_checkout_date": "2020-10-23 19:45:00",
- "badge_link": "",
- "external_id": [
- {
- "Connect": {
- "SAP": 11035178
}
}
], - "removed": 0,
- "emergency_phone": "555-555-5555",
- "emergency_contact_name": "Bob Smith",
- "emergency_contact_relationship": "Parent",
- "account": {
- "id": 1235,
- "parent_id": 1235,
- "name": "Avetta",
- "type": "client",
- "con_id": 235843,
- "con_flag": 0,
- "external_id": [
- {
- "Connect": {
- "SAP": 11035178
}
}
]
}
}Returns a list of users that can be managed by ID
| id | integer references an id to reduce list down to 1 item |
{- "id": 1235,
- "con_id": 1568432,
- "first_name": "John",
- "last_name": "Doe",
- "login_id": "jdoe",
- "email": "test@test.com",
- "dob": "1998-05-25",
- "sap_id": 265813,
- "cat_code": 1632,
- "phone": 4561231159,
- "status": "Active",
- "flag": "Green",
- "flag_forced": 0,
- "title": "Director of Software Development",
- "created_date": "2018-10-23 18:31:00",
- "updated_date": "2017-15-05 16:41:00",
- "last_checkin_date": "2020-10-23 15:00:00",
- "last_checkout_date": "2020-10-23 19:45:00",
- "badge_link": "",
- "external_id": [
- {
- "Connect": {
- "SAP": 11035178
}
}
], - "removed": 0,
- "emergency_phone": "555-555-5555",
- "emergency_contact_name": "Bob Smith",
- "emergency_contact_relationship": "Parent",
- "account": {
- "id": 1235,
- "parent_id": 1235,
- "name": "Avetta",
- "type": "client",
- "con_id": 235843,
- "con_flag": 0,
- "external_id": [
- {
- "Connect": {
- "SAP": 11035178
}
}
]
}
}Returns a list of users that can be given a variance
| start | integer Default: 1 Offset of the first record to return |
| limit | integer Default: 3000 Maximum number of records to return |
| sort | string Enum: "id" "first_name" "last_name" "login_id" "email" "status" "flag" "created_date" "updated_date" Name of field to sort by |
| search | string Search term - It checks the term in login id, email, first name, last name, mobile phone, company name and company site name. |
| modifiedAfter | string <date-time> Filter Only users modified or added after this date |
| flag | string Enum: "Green" "Amber" "Red" Filter the results for a specify rating (Green, Amber, Red) |
| search_type | integer Value: 2010 Restrict the search value by comparing first name and last name only (value: 2010 or null) |
| role_id | integer Filter down to a role |
| showInactive | integer <boolean> Enum: 0 1 Show inactive users in the results |
| showRemoved | integer <boolean> Enum: 0 1 Show removed users in the results |
| account_id | integer Filter down from a group id where user belongs to |
| account_con_id | integer Filter down form a group code where user belongs to |
| site_id | integer Filter from a specific site id to drill down |
| allusers | integer <boolean> Enum: 0 1 Return all users regardless if they have training |
| connection_id | integer Filter by the connected site id to drill down |
| connection_con_id | integer Filter by the connected site code to drill down |
{- "id": 1235,
- "con_id": 1568432,
- "first_name": "John",
- "last_name": "Doe",
- "login_id": "jdoe",
- "email": "test@test.com",
- "dob": "1998-05-25",
- "sap_id": 265813,
- "cat_code": 1632,
- "phone": 4561231159,
- "status": "Active",
- "flag": "Green",
- "flag_forced": 0,
- "title": "Director of Software Development",
- "created_date": "2018-10-23 18:31:00",
- "updated_date": "2017-15-05 16:41:00",
- "last_checkin_date": "2020-10-23 15:00:00",
- "last_checkout_date": "2020-10-23 19:45:00",
- "badge_link": "",
- "external_id": [
- {
- "Connect": {
- "SAP": 11035178
}
}
], - "removed": 0,
- "emergency_phone": "555-555-5555",
- "emergency_contact_name": "Bob Smith",
- "emergency_contact_relationship": "Parent",
- "account": {
- "id": 1235,
- "parent_id": 1235,
- "name": "Avetta",
- "type": "client",
- "con_id": 235843,
- "con_flag": 0,
- "external_id": [
- {
- "Connect": {
- "SAP": 11035178
}
}
]
}
}Returns a list of variances that could be filtered by the given parameters
| start | integer Default: 1 Offset of the first record to return |
| limit | integer Default: 3000 Maximum number of records to return |
| sort | string Enum: "id" "code" "title" "group" Name of field to sort by |
| showAll | boolean Return all results available, not only the ones configured |
| search | string Search term - It checks the term in login id, email, first name, last name, mobile phone, company name and company site name. |
| type | integer Enum: 2011 2012 2016 Filter down to only show role, site, requirement variances |
| account_id | integer Filter down from a group id where user belongs to |
| status | string Enum: "Green" "Amber" "Red" Filter the results for a specify rating (Green, Amber, Red) |
| user_id | integer Filter list of variances to ones assigned to the user |
| srch_id | integer Return all users regardless if they have training |
| search_type | integer Limit search to users fields only |
| role_id | integer Role ID to filter results |
| site_id | integer Site ID to filter results |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "variances": [
- {
- "id": 69004,
- "user": {
- "id": 265132,
- "login": "CLINETADMIN",
- "first_name": "Jhon",
- "last_name": "Matts",
- "photo": {
- "data": "data:image/jpeg;base64,/...",
- "size": 12345,
- "name": "ProfilePhoto.jpg"
}
}, - "files": [
- {
- "id": 12345,
- "name": "ProfilePhoto.jpg",
- "is_secure": false,
- "type": "web",
- "size": 12345
}
], - "account": {
- "id": 18139,
- "name": "Avetta",
- "con_id": 250000000
}, - "target": {
- "id": 18319,
- "code": 250084848,
- "title": "Abc Snackers",
- "type": "Group"
}, - "flag": "Green",
- "begin_date": "2021-07-20 00:00:00",
- "end_date": "2021-07-20 00:00:00",
- "reason": "Site Variance Test",
- "created_date": "2021-07-20 00:00:00",
- "created_by": "Adminclient"
}
]
}Save a new variance
| lng_id | integer Language ID to return the strings in |
| doc_id | integer Document ID to return the strings in |
| start | integer Default: 1 Offset of the first record to return |
| limit | integer Default: 3000 Maximum number of records to return |
| sort | string Enum: "id" "code" "title" "group" Name of field to sort by |
| search | string Search term - It checks the term in login id, email, first name, last name, mobile phone, company name and company site name. |
| type | integer Enum: 2011 2012 2016 Filter down to only show role, site, requirement variances |
| account_id | integer Filter down from a group id where user belongs to |
| status | string Enum: "Green" "Amber" "Red" Filter the results for a specify rating (Green, Amber, Red) |
| user_id | integer Filter list of variances to ones assigned to the user |
| showAll | boolean Return all results available, not only the ones configured |
| srch_id | integer Return all users regardless if they have training |
| search_type | integer Limit search to users fields only |
Variance data to insert or update
| VrnID | integer Variance ID |
| VrnUsrID | integer User ID |
| VrnGrpID | integer Group ID |
| VrnStatusTypID | integer Status Type ID |
| VrnRefTypID | integer Reference Type ID |
| VrnRefID | integer Reference ID |
| VrnBeginDateTime | string <date-time> Begin Date Time |
| VrnEndDateTime | string <date-time> End Date Time |
| VrnReason | string Reason |
{- "stats": {
- "command": "Variances",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 1,
- "records": 1
}, - "variances": {
- "message": "Saved variance",
- "status": "Success",
- "success": true,
- "code": 200,
- "detail": null,
- "id": 69004
}
}Returns the variance detail by the given id
| id | integer references an id to reduce list down to 1 item |
| lng_id | integer Language ID to return the strings in |
| doc_id | integer Document ID to return the strings in |
| start | integer Default: 1 Offset of the first record to return |
| limit | integer Default: 3000 Maximum number of records to return |
| sort | string Enum: "id" "code" "title" "group" Name of field to sort by |
| search | string Search term - It checks the term in login id, email, first name, last name, mobile phone, company name and company site name. |
| type | integer Enum: 2011 2012 2016 Filter down to only show role, site, requirement variances |
| account_id | integer Filter down from a group id where user belongs to |
| status | string Enum: "Green" "Amber" "Red" Filter the results for a specify rating (Green, Amber, Red) |
| user_id | integer Filter list of variances to ones assigned to the user |
| showAll | boolean Return all results available, not only the ones configured |
| srch_id | integer Return all users regardless if they have training |
| search_type | integer Limit search to users fields only |
{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "variances": [
- {
- "id": 69004,
- "user": {
- "id": 265132,
- "login": "CLINETADMIN",
- "first_name": "Jhon",
- "last_name": "Matts",
- "photo": {
- "data": "data:image/jpeg;base64,/...",
- "size": 12345,
- "name": "ProfilePhoto.jpg"
}
}, - "files": [
- {
- "id": 12345,
- "name": "ProfilePhoto.jpg",
- "is_secure": false,
- "type": "web",
- "size": 12345
}
], - "account": {
- "id": 18139,
- "name": "Avetta",
- "con_id": 250000000
}, - "target": {
- "id": 18319,
- "code": 250084848,
- "title": "Abc Snackers",
- "type": "Group"
}, - "flag": "Green",
- "begin_date": "2021-07-20 00:00:00",
- "end_date": "2021-07-20 00:00:00",
- "reason": "Site Variance Test",
- "created_date": "2021-07-20 00:00:00",
- "created_by": "Adminclient"
}
]
}Update the variance data with the data provided for the given id
| id | integer references an id to reduce list down to 1 item |
| lng_id | integer Language ID to return the strings in |
| doc_id | integer Document ID to return the strings in |
| start | integer Default: 1 Offset of the first record to return |
| limit | integer Default: 3000 Maximum number of records to return |
| sort | string Enum: "id" "code" "title" "group" Name of field to sort by |
| search | string Search term - It checks the term in login id, email, first name, last name, mobile phone, company name and company site name. |
| type | integer Enum: 2011 2012 2016 Filter down to only show role, site, requirement variances |
| account_id | integer Filter down from a group id where user belongs to |
| status | string Enum: "Green" "Amber" "Red" Filter the results for a specify rating (Green, Amber, Red) |
| user_id | integer Filter list of variances to ones assigned to the user |
| showAll | boolean Return all results available, not only the ones configured |
Variance data to insert or update
| VrnID | integer Variance ID |
| VrnUsrID | integer User ID |
| VrnGrpID | integer Group ID |
| VrnStatusTypID | integer Status Type ID |
| VrnRefTypID | integer Reference Type ID |
| VrnRefID | integer Reference ID |
| VrnBeginDateTime | string <date-time> Begin Date Time |
| VrnEndDateTime | string <date-time> End Date Time |
| VrnReason | string Reason |
{- "stats": {
- "command": "Variances",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 1,
- "records": 1
}, - "variances": {
- "message": "Saved variance",
- "status": "Success",
- "success": true,
- "code": 200,
- "detail": null,
- "id": 69004
}
}{- "stats": {
- "command": "Auth",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "timecard": {
- "count": 0
}
}Returns a list of the fields in variances not related to any variance
| lng_id | integer Language ID to return the strings in |
| search | string Search term - It checks the term in login id, email, first name, last name, mobile phone, company name and company site name. |
| search_type | integer Limit search to users fields only |
| account_id | integer Filter down from a group id where user belongs to |
| type | integer Enum: 2011 2012 2016 Filter down to only show role, site, requirement variances |
| user_id | integer Filter list of variances to ones assigned to the user |
| status | string Enum: "Green" "Amber" "Red" Filter the results for a specify rating (Green, Amber, Red) |
| showAll | boolean Return all results available, not only the ones configured |
| start | integer Default: 1 Offset of the first record to return |
| limit | integer Default: 3000 Maximum number of records to return |
| sort | string Enum: "id" "code" "title" "group" Name of field to sort by |
{- "stats": {
- "command": "Variances",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 0,
- "records": 0
}, - "fields": [
- {
- "key": "VrnUsrID",
- "label": "Worker",
- "type": 522,
- "value": null,
- "order": 1,
- "readonly": true,
- "help": "",
- "validation": {
- "required": true,
- "maxlength": null
}
}, - {
- "key": "VrnRefTypID",
- "values": [
- {
- "value": "Requirement",
- "id": 2012
}, - {
- "value": "Role",
- "id": 2016
}, - {
- "value": "Site",
- "id": 2011
}
], - "readonly": true,
- "order": 2,
- "type": 508,
- "help": "",
- "label": "Type",
- "value": null,
- "validation": {
- "required": true,
- "maxlength": null
}
}, - {
- "key": "VrnRefID",
- "validation": {
- "required": true,
- "maxlength": null
}, - "typename": "popup",
- "type": 503,
- "help": "",
- "label": "Target",
- "value": null,
- "readonly": true,
- "order": 3
}, - {
- "key": "VrnGrpID",
- "order": 4,
- "readonly": true,
- "validation": {
- "required": false,
- "maxlength": null
}, - "value": null,
- "help": "",
- "label": "Site",
- "type": 513
}, - {
- "key": "VrnStatusTypID",
- "values": [
- {
- "value": "Green",
- "id": 741
}, - {
- "value": "Red",
- "id": 743
}
], - "order": 5,
- "readonly": false,
- "value": null,
- "label": "Status",
- "help": "",
- "type": 508
}, - {
- "key": "VrnBeginDateTime",
- "order": 6,
- "readonly": false,
- "validation": {
- "required": true,
- "maxlength": null
}, - "value": null,
- "help": "",
- "label": "Start Date",
- "type": 518
}, - {
- "key": "VrnEndDateTime",
- "order": 7,
- "readonly": false,
- "validation": {
- "required": false,
- "minvalue": "2023-10-27",
- "maxlength": null
}, - "value": null,
- "help": "",
- "label": "End Date",
- "type": 518
}, - {
- "key": "VrnReason",
- "order": 8,
- "readonly": false,
- "validation": {
- "required": true,
- "maxlength": 4000
}, - "value": null,
- "help": "",
- "label": "Reason",
- "type": 502
}, - {
- "key": "srch_id",
- "readonly": true,
- "value": 231027000,
- "type": 503,
- "typename": "hidden"
}
], - "files": [ ]
}Returns a list of the fields in variances and the values for the given variance id
| id | integer references an id to reduce list down to 1 item |
| search | string Search term - It checks the term in login id, email, first name, last name, mobile phone, company name and company site name. |
| search_type | integer Limit search to users fields only |
| account_id | integer Filter down from a group id where user belongs to |
| type | integer Enum: 2011 2012 2016 Filter down to only show role, site, requirement variances |
| user_id | integer Filter list of variances to ones assigned to the user |
| status | string Enum: "Green" "Amber" "Red" Filter the results for a specify rating (Green, Amber, Red) |
| showAll | integer Set to true if to show past variances also |
| start | integer Default: 1 Offset of the first record to return |
| limit | integer Default: 3000 Maximum number of records to return |
| sort | string Enum: "id" "code" "title" "group" Name of field to sort by |
{- "stats": {
- "command": "Variances",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 0,
- "records": 0
}, - "fields": [
- {
- "key": "VrnUsrID",
- "label": "Worker",
- "type": 522,
- "value": null,
- "order": 1,
- "readonly": true,
- "help": "",
- "validation": {
- "required": true,
- "maxlength": null
}
}, - {
- "key": "VrnRefTypID",
- "values": [
- {
- "value": "Requirement",
- "id": 2012
}, - {
- "value": "Role",
- "id": 2016
}, - {
- "value": "Site",
- "id": 2011
}
], - "readonly": true,
- "order": 2,
- "type": 508,
- "help": "",
- "label": "Type",
- "value": null,
- "validation": {
- "required": true,
- "maxlength": null
}
}, - {
- "key": "VrnRefID",
- "validation": {
- "required": true,
- "maxlength": null
}, - "typename": "popup",
- "type": 503,
- "help": "",
- "label": "Target",
- "value": null,
- "readonly": true,
- "order": 3
}, - {
- "key": "VrnGrpID",
- "order": 4,
- "readonly": true,
- "validation": {
- "required": false,
- "maxlength": null
}, - "value": null,
- "help": "",
- "label": "Site",
- "type": 513
}, - {
- "key": "VrnStatusTypID",
- "values": [
- {
- "value": "Green",
- "id": 741
}, - {
- "value": "Red",
- "id": 743
}
], - "order": 5,
- "readonly": false,
- "value": null,
- "label": "Status",
- "help": "",
- "type": 508
}, - {
- "key": "VrnBeginDateTime",
- "order": 6,
- "readonly": false,
- "validation": {
- "required": true,
- "maxlength": null
}, - "value": null,
- "help": "",
- "label": "Start Date",
- "type": 518
}, - {
- "key": "VrnEndDateTime",
- "order": 7,
- "readonly": false,
- "validation": {
- "required": false,
- "minvalue": "2023-10-27",
- "maxlength": null
}, - "value": null,
- "help": "",
- "label": "End Date",
- "type": 518
}, - {
- "key": "VrnReason",
- "order": 8,
- "readonly": false,
- "validation": {
- "required": true,
- "maxlength": 4000
}, - "value": null,
- "help": "",
- "label": "Reason",
- "type": 502
}, - {
- "key": "srch_id",
- "readonly": true,
- "value": 231027000,
- "type": 503,
- "typename": "hidden"
}
], - "files": [ ]
}Store temp the given file for a new variance
| user_id | integer Filter list of variances to ones assigned to the user |
| srch_id | integer Return all users regardless if they have training |
File data to insert or delete for a variance
| method | string Value: "delete" Method to use - used to pass a delete method |
| DocID | integer Document ID to be deleted |
| DocFile | string <binary> Upload the file to be uploaded or to be deleted as a file type of data |
| DocSecure | boolean Enum: true false Flag to indicate if the file is secure |
{- "stats": {
- "command": "Variances",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 1,
- "records": 1
}, - "variances": {
- "message": "File uploaded",
- "status": "Success",
- "success": true,
- "code": 200,
- "detail": "The name of the file uploaded"
}
}Store the given file for the variance given by id
| id | integer references an id to reduce list down to 1 item |
| user_id | integer Filter list of variances to ones assigned to the user |
| srch_id | integer Return all users regardless if they have training |
File data to insert or delete for a variance
| method | string Value: "delete" Method to use - used to pass a delete method |
| DocID | integer Document ID to be deleted |
| DocFile | string <binary> Upload the file to be uploaded or to be deleted as a file type of data |
| DocSecure | boolean Enum: true false Flag to indicate if the file is secure |
{- "stats": {
- "command": "Variances",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 1,
- "records": 1
}, - "variances": {
- "message": "File uploaded",
- "status": "Success",
- "success": true,
- "code": 200,
- "detail": "The name of the file uploaded"
}
}Get the number of users by status for each connection, filter by the parameters provided
| start | integer Default: 1 Offset of the first record to return |
| limit | integer Default: 3000 Maximum number of records to return |
| search | string search string |
| flag | string flag |
| rol_id | integer role ID |
| site_id | integer site ID |
{- "stats": {
- "command": "Status::Connections",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "status::Connections": {
- "id": 27,
- "name": "Avetta",
- "con_id": 235843,
- "con_flag": "Red",
- "status": "Active",
- "user_flags": [
- {
- "id": 741,
- "text": "Green",
- "count": 0
}, - {
- "id": 742,
- "text": "Yellow",
- "count": 0
}, - {
- "id": 743,
- "text": "Red",
- "count": 7
}, - {
- "id": 0,
- "text": "Total",
- "count": 7
}
]
}
}Get the number of users by status for the connection id provided
| id | integer references an id to reduce list down to 1 item |
| start | integer Default: 1 Offset of the first record to return |
| limit | integer Default: 3000 Maximum number of records to return |
| search | string search string |
| flag | string flag |
| rol_id | integer role ID |
| site_id | integer site ID |
{- "stats": {
- "command": "Status::Connections",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "status::Connections": {
- "id": 27,
- "name": "Avetta",
- "con_id": 235843,
- "con_flag": "Red",
- "status": "Active",
- "user_flags": [
- {
- "id": 741,
- "text": "Green",
- "count": 0
}, - {
- "id": 742,
- "text": "Yellow",
- "count": 0
}, - {
- "id": 743,
- "text": "Red",
- "count": 7
}, - {
- "id": 0,
- "text": "Total",
- "count": 7
}
]
}
}Get the number of users by status for each role, filter by the parameters provided
| start | integer Default: 1 Offset of the first record to return |
| limit | integer Default: 3000 Maximum number of records to return |
| search | string search string |
| flag | string flag |
| rol_id | integer role ID |
| site_id | integer site ID |
| account_id | integer account ID |
{- "stats": {
- "command": "Status::Roles",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "status_roles": {
- "id": 27,
- "name": "Electrician",
- "con_id": 235843,
- "status": "Active",
- "user_flags": [
- {
- "id": 741,
- "text": "Green",
- "count": 0
}, - {
- "id": 742,
- "text": "Yellow",
- "count": 0
}, - {
- "id": 743,
- "text": "Red",
- "count": 7
}, - {
- "id": 0,
- "text": "Total",
- "count": 7
}
]
}
}Get the number of users by status for the role id provided
| id | integer references an id to reduce list down to 1 item |
| start | integer Default: 1 Offset of the first record to return |
| limit | integer Default: 3000 Maximum number of records to return |
| search | string search string |
| flag | string flag |
| rol_id | integer role ID |
| site_id | integer site ID |
| account_id | integer account ID |
{- "stats": {
- "command": "Status::Roles",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "status_roles": {
- "id": 27,
- "name": "Electrician",
- "con_id": 235843,
- "status": "Active",
- "user_flags": [
- {
- "id": 741,
- "text": "Green",
- "count": 0
}, - {
- "id": 742,
- "text": "Yellow",
- "count": 0
}, - {
- "id": 743,
- "text": "Red",
- "count": 7
}, - {
- "id": 0,
- "text": "Total",
- "count": 7
}
]
}
}Get the number of users by status for each site, filter by the parameters provided
| start | integer Default: 1 Offset of the first record to return |
| limit | integer Default: 3000 Maximum number of records to return |
| search | string search string |
| flag | string flag |
| rol_id | integer role ID |
| site_id | integer site ID |
| account_id | integer account ID |
{- "stats": {
- "command": "Status::Sites",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "status_roles": {
- "id": 26552,
- "name": "Site Name",
- "con_id": 165266,
- "status": "Active",
- "user_flags": [
- {
- "id": 741,
- "text": "Green",
- "count": 0
}, - {
- "id": 742,
- "text": "Yellow",
- "count": 0
}, - {
- "id": 743,
- "text": "Red",
- "count": 7
}, - {
- "id": 0,
- "text": "Total",
- "count": 7
}
]
}
}Get the number of users by status for the site id provided
| id | integer references an id to reduce list down to 1 item |
| start | integer Default: 1 Offset of the first record to return |
| limit | integer Default: 3000 Maximum number of records to return |
| search | string search string |
| flag | string flag |
| rol_id | integer role ID |
| site_id | integer site ID |
| account_id | integer account ID |
{- "stats": {
- "command": "Status::Sites",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "status_roles": {
- "id": 26552,
- "name": "Site Name",
- "con_id": 165266,
- "status": "Active",
- "user_flags": [
- {
- "id": 741,
- "text": "Green",
- "count": 0
}, - {
- "id": 742,
- "text": "Yellow",
- "count": 0
}, - {
- "id": 743,
- "text": "Red",
- "count": 7
}, - {
- "id": 0,
- "text": "Total",
- "count": 7
}
]
}
}Get a summary of the total users grouped by status filter by the parameters provided
| start | integer Default: 1 Offset of the first record to return |
| limit | integer Default: 3000 Maximum number of records to return |
| search | string search string |
| flag | string flag |
| rol_id | integer role ID |
| site_id | integer site ID |
| account_id | integer account ID |
{- "stats": {
- "command": "Status::Users",
- "version": "v1",
- "type": "token",
- "msg": "Good",
- "start": 1,
- "time": 0.71513,
- "limit": 3000,
- "apikey": "...",
- "owner": 1234567890,
- "count": 12,
- "records": 12
}, - "summary": [
- {
- "id": 741,
- "text": "Green",
- "count": 0
}, - {
- "id": 742,
- "text": "Yellow",
- "count": 0
}, - {
- "id": 743,
- "text": "Red",
- "count": 7
}, - {
- "id": 0,
- "text": "Total",
- "count": 7
}
]
}