Get a specific user
Retrieves a specific user by Employee ID. Only ACTIVE users within a REVEAL account are returned; no deactivated or deleted users are returned in the query.
Path Parameters
Employee ID is the unique identifier for the user within REVEAL. Must be an integer.
Example:982736342
Response
application/json
Response
Successfully retrieved the user details.
UserRecord
A wrapper object containing a user and supplemental hypermedia links.
A REVEAL user record.
Show Child Parameters
The links provided enable the integration user to gather additional meta data for a User record. The groups link provides details on which groups the User record belongs to within the REVEAL account.
Show Child Parameters
Update a user
Edits an existing user record within the REVEAL account. PUT methods do not return an object review; the response is limited to a set of standard HTTP codes.
Path Parameters
Employee ID is the unique identifier for the user within REVEAL. Must be an integer.
Example:777099
Body
application/json
Body
The updated user details to apply. May include name, email, role, or other profile fields.
UserInput
The request body fields provided when creating (POST) or editing (PUT) a user record.
The first name of the user.
Example:Lonny
The last name of the user.
Example:Arking
The email address for the user. The email address is also the REVEAL username login and is mandatory when creating a user record.
Example:user@example.com
Employee ID is the unique identifier for the user within REVEAL. Not a mandatory field within the REVEAL account, but required for the API.
Example:777099
The phone number for the user.
Example:null
Boolean field for true or false. Default is false. True indicates that the user is an Administrator for the referenced REVEAL account.
Default:false
Example:true
Boolean field for true or false. Default is false. Can only be set to true if the corresponding REVEAL account is enabled with Regional Administration permission.
Default:false
Example:false
The name of the role applied to the user. Required when creating a user: it must match the name of an existing role in the REVEAL account, including for Administrators and Regional Administrators.
Example:Demo
The time zone selection for the user. Follows ISO time zone abbreviations. If NULL, defaults to the Account Preferences selection.
Example:null
The Region selection for the user. Follows ISO alpha 3 country codes.
Example:null
The Language selection for the user. Follows IETF language tags.
Example:null
Boolean field for true or false. Default is false. If the user should also be a Driver, a unique Driver Number must also be provided.
Default:false
Example:false
The Driver Number is the unique identifier used to reference the driver within the API. Required for the API when the user is a Driver.
Example:null
Response
application/json
Response
Successfully updated the user.
Deactivate a user
Flags a user as deactivated within a REVEAL account. REVEAL allows for both deactivated and deleted object row states, however only the deactivation option is made available through the API. PUT methods do not return an object review; the response is limited to a set of standard HTTP codes.
Path Parameters
Employee ID is the unique identifier for the user within REVEAL. Must be an integer.
Example:777099
Body
application/json
Body
Required request body. Set Deactivate to true to deactivate the user. If Deactivate is false the request makes no change and still returns 204.
DeactivateInput
The request body used to flag a user as deactivated.
Set to true to flag the user as deactivated within the REVEAL account.
Example:true
Response
application/json
Response
Successfully deactivated the user.
User
objectA REVEAL user record.
The first name of the user.
Example:Dan
The last name of the user.
Example:Bowyer
The email address for the user. The email address is also the REVEAL username login and is mandatory when creating a user record.
Example:user@example.com
Employee ID is the unique identifier for the user within REVEAL. The Employee ID is not a mandatory field within the REVEAL account, but it is required for the API.
Example:982736342
The phone number for the user.
Boolean field for true or false. Default is false. True indicates that the user is an Administrator for the referenced REVEAL account. Administrator is the highest level role within a REVEAL account.
Default:false
Boolean field for true or false. Default is false. This field can only be set to true if the corresponding REVEAL account is enabled with Regional Administration permission.
Default:false
Example:true
Role can be NULL if the user is an Administrator or a Regional Admin. If the user is not an administrator, then the name of the role applied to the user is returned. Roles are created within the REVEAL account’s Admin section.
The time zone selection that the user has configured for how time should be represented when logged into REVEAL. If NULL, the user’s time zone is set to the Account Preferences selection. Time Zone requests and responses follow ISO time zone abbreviations.
Example:Eastern Standard Time
The Region selection for the user. Region requests and responses follow ISO alpha 3 country codes for the list of countries currently supported by REVEAL.
Example:USA
The Language selection for the user. Language requests and responses follow IETF language tags for the list of languages currently supported by REVEAL.
Example:en-US
Boolean field for true or false. Default is false. When creating or editing a user, the user can be specified to also appear as a Driver within the REVEAL account. If the API user requests for a User to also be a Driver, a unique Driver Number must also be provided.
Default:false
The Driver Number is the unique identifier that will be used to reference the driver within the API. The Driver Number is not a mandatory field within the REVEAL account, but is required for the API.
An integer that serves as a primary key, uniquely identifying each record in the table.
Example:1
DeactivateInput
objectThe request body used to flag a user as deactivated.
Set to true to flag the user as deactivated within the REVEAL account.
Example:true