Groups
The Group object is used to represent any subset of employees, such as PayGroup, Team, or Department. Employees can be in multiple Groups.
GET /2023-03-01/xhr/groups
curl \
-X GET https://api.affixapi.com/2023-03-01/xhr/groups \
-H "Authorization: $API_KEY"
Response examples (200)
[
{
"id": "4B9bKBpX5tnwjiG93TAqF7ci",
"name": "backend",
"type": "team",
"remote_id": "df6c28e8"
},
{
"id": "132Xpnw2a38aaQG93TAqF7ci",
"name": "engineering",
"type": "department",
"remote_id": "355c65922637"
}
]
Response examples (202)
# Headers
Retry-After: 42
# Payload
{
"message": "string"
}
Response examples (401)
{
"error": "authentication_error",
"message": "Your password is incorrect",
"code": "incorrect_username_or_password"
}
Response examples (429)
# Headers
Retry-After: 42
# Payload
{
"message": "string"
}
Response examples (500)
{
"message": "string"
}
Response examples (501)
{
"message": "string"
}