Assign a user to a group

Add a user to a specific Group ID. The Employee ID is supplied in the body and the Group ID in the path. Assigning a user to a group does not remove the user from previously assigned groups; users can belong to multiple groups. If the user is assigned to a parent group, the user is also associated with any subgroups. POST methods do not return an object review, only a standard HTTP code.

post
https://api.us.vzconnect.com/cmd/v1/groups/{groupid}/users

Path Parameters

groupidstringrequired

The Group ID, the unique alphanumeric identifier associated with the group created within the REVEAL account. Must be unique within the account.

Example:CPTG1

Body

application/json

The employee ID of the user to assign to the group.

EmployeeIdBody

Request body to add a user to a Group ID.

EmployeeIdintegerrequired

Employee ID is the unique identifier for the user within REVEAL. The Employee ID is not mandatory within the REVEAL account, but is required for the API.

Example:324234346

Response

application/json

Successfully assigned the user to the group.

 
application/json

Assign an external user to a group

Assigns an external user to the specified group. External users are managed outside of the REVEAL system and identified by their external ID.

post
https://api.us.vzconnect.com/cmd/v1/groups/{groupid}/users/external

Path Parameters

groupidstringrequired

The unique group ID identifying the group to assign the external user to.

Body

application/json

The external ID of the user to assign to the group.

ExternalIdBody

Request body to add an external user to a Group ID.

ExternalIdstringrequired

The external ID that identifies the user outside REVEAL. The external ID is required for the API.

Example:HR-SYSTEM:100096

Response

application/json

Successfully assigned the external user to the group.

 
application/json

Remove an external user from a group

Removes the specified external user from the specified group. The external user is not deleted; it is only unassigned from the group.

delete
https://api.us.vzconnect.com/cmd/v1/groups/{groupid}/users/external/{externalId}

Path Parameters

externalIdstringrequired

The external ID identifying the external user to remove from the group.

groupidstringrequired

The unique group ID identifying the group to remove the external user from.

Response

application/json

Successfully removed the external user from the group.

 
application/json

Remove a user from a group

Remove a user from a specific Group ID. The Employee ID and the Group ID are supplied in the path. If the user is removed from all group associations it is placed within the Ungrouped Group. This does NOT delete the user record from the REVEAL account. DELETE methods do not return an object review, only a standard HTTP code.

delete
https://api.us.vzconnect.com/cmd/v1/groups/{groupid}/users/{employeeid}

Path Parameters

employeeidintegerrequired

The Employee ID, the unique identifier for the user within REVEAL.

Example:324234346

groupidstringrequired

The Group ID, the unique alphanumeric identifier associated with the group created within the REVEAL account. Must be unique within the account.

Example:CPTG1

Response

application/json

Successfully removed the user from the group.

 
application/json

Assign a vehicle to a group

Add a vehicle to a specific Group ID. The Vehicle Number is supplied in the body and the Group ID in the path. Assigning a vehicle to a group does not remove the vehicle from previously assigned groups; vehicles can belong to multiple groups. If the vehicle is assigned to a parent group, the vehicle is also associated with any subgroups. POST methods do not return an object review, only a standard HTTP code.

post
https://api.us.vzconnect.com/cmd/v1/groups/{groupid}/vehicles

Path Parameters

groupidstringrequired

The Group ID, the unique alphanumeric identifier associated with the group created within the REVEAL account. Must be unique within the account.

Example:CPTG1

Body

application/json

The vehicle number to assign to the group.

VehicleNumberBody

Request body to add a vehicle to a Group ID.

VehicleNumberstringrequired

The Vehicle Number is the unique identifier within the API. The Vehicle Number is not a mandatory field within the REVEAL account, but is required for the API.

Example:77771-1

Response

application/json

Successfully assigned the vehicle to the group.

 
application/json