Groups
Update group
Changed onUpdate a group identified by given groupId.
put/v2/organisation/groups/{groupId}
Request
- Base URLhttps://api.quinyx.com
- AuthOAuth 2Client credentialsToken URL/oauth/tokenScopesgroups:update
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
groupIdinteger required
Request body
Example request
{
"name": "Stockholm Central",
"parentGroupId": 170300,
"groupType": "unit",
"districtAttributesDto": {
"districtId": 567,
"managerId": 1234
},
"sectionAttributesDto": {
"sectionId": 789,
"managerGroupId": 170305,
"costCentre": 1001,
"managerId": 1234
},
"unitAttributesDto": {
"unitId": 170305,
"address": {
"country": "SE",
"address": "123 Main Street",
"zipCode": "11120",
"city": "Stockholm",
"municipality": "Stockholm Municipality",
"timeZone": "Europe/Stockholm"
},
"costCentre": 1001,
"managerId": 1234,
"currency": "SEK",
"publishedTo": "2026-04-20",
"shiftRules": {
"maxHoursPerDay": 8,
"maxHoursPerWeek": 40,
"minRest": 11,
"numberOfBreaks": 1
},
"shiftRulesDto": {
"maxHoursPerDay": 8,
"maxHoursPerWeek": 40,
"minRest": 11,
"numberOfBreaks": 1
}
}
}Response
Group created.
Example response
{
"id": 170305,
"name": "Stockholm Central",
"groupType": "unit",
"parentGroupId": 170300,
"districtAttributesDto": {
"districtId": 567,
"managerId": 1234
},
"sectionAttributesDto": {
"sectionId": 789,
"managerGroupId": 170305,
"costCentre": 1001,
"managerId": 1234
},
"unitAttributesDto": {
"unitId": 170305,
"address": {
"country": "SE",
"address": "123 Main Street",
"zipCode": "11120",
"city": "Stockholm",
"municipality": "Stockholm Municipality",
"timeZone": "Europe/Stockholm"
},
"costCentre": 1001,
"managerId": 1234,
"currency": "SEK",
"publishedTo": "2026-04-20",
"shiftRules": {
"maxHoursPerDay": 8,
"maxHoursPerWeek": 40,
"minRest": 11,
"numberOfBreaks": 1
},
"shiftRulesDto": {
"maxHoursPerDay": 8,
"maxHoursPerWeek": 40,
"minRest": 11,
"numberOfBreaks": 1
}
}
}Changes
- info
the endpoint scheme security
OAuth2ClientCredentialswas added to the API
- info