Each visitor group is created by an employee and includes a set of their visitors who are pre-registered to attend the same events. Use the visitor group API to retrieve your visitor group list, add a new visitor group, or update or delete a visitor group.
Learn more about visitor groups in the OnLocation Help Center.
Returns a list of all visitor groups added by employees.
A comma separated list of tag:value search parameters, a colon separator performs an exact match, a percent separator performs a starts-with search and greater/less than search number/date ranges.
List of registered visitor groups
Access denied to this resource
Resource not found
Internal server error
curl -i -X GET \ 'https://api.whosonlocation.com/v1/visitor/group?q=string'
[- {
- "id": 197,
- "created": "2021-11-29T10:58:12+13:00",
- "modified": "2021-11-29T13:58:12+13:00",
- "location_id": 301,
- "created_staff_id": 823,
- "staff_id": 823,
- "name": "Visitor Group 1",
- "description": "Group 1 description",
- "members": 2
}
]
Create a new visitor group and assign it the the relevant employee and location.
Group created
Access denied to this resource
Internal server error
{- "name": "Updated visitor group name",
- "description": "Group description",
- "location_id": 301,
- "staff_id": 556
}
{- "id": 197,
- "created": "2021-11-29T10:58:12+13:00",
- "modified": "2021-11-29T13:58:12+13:00",
- "location_id": 301,
- "created_staff_id": 823,
- "staff_id": 823,
- "name": "Visitor Group 1",
- "description": "Group 1 description",
- "members": 2
}
Retrieves a single visitor group, filtering with the provided ID.
Group returned
Access denied to resource
Resource not found
Internal server error
curl -i -X GET \ https://api.whosonlocation.com/v1/visitor/group/:id
{- "id": 197,
- "created": "2021-11-29T10:58:12+13:00",
- "modified": "2021-11-29T13:58:12+13:00",
- "location_id": 301,
- "created_staff_id": 823,
- "staff_id": 823,
- "name": "Visitor Group 1",
- "description": "Group 1 description",
- "members": 2
}
Updates the specified visitor group based on the provided ID.
Information used to update the visitor group record:
Updated group
Access denied to this resource
Internal server error
{- "name": "Updated visitor group name",
- "description": "Group description",
- "location_id": 301,
- "staff_id": 556
}
Deletes the specified visitor group.
Visitor group deleted
Access denied to resource
Resource not found
Internal server error
curl -i -X DELETE \ https://api.whosonlocation.com/v1/visitor/group/:id