API user preference migration 2023
Until February 2023 contact methods as well as notification preferences were part of the user REST resource. They have now been moved into their own resources.
Why was this change introduced?
The old user resource request / response schema
{
"id": 0,
"firstName": "string",
"lastName": "string",
"email": "string",
"mobile": {
"regionCode": "string",
"number": "string"
},
"landline": {
"regionCode": "string",
"number": "string"
},
"timezone": "Europe/Berlin",
"position": "string",
"department": "string",
"avatarUrl": "string",
"language": "DE",
"role": "STAKEHOLDER",
"notificationPreferences": [
{
"delay": 0,
"method": "EMAIL"
}
],
"lowPriorityNotificationPreferences": [
{
"delay": 0,
"method": "EMAIL"
}
],
"onCallNotificationPreferences": [
{
"beforeMin": 0,
"method": "EMAIL"
}
],
"subscribedAlertUpdateStates": [ "ACCEPTED" ],
"subscribedAlertUpdateNotificationTypes": [ "EMAIL" ],
"subscriptionNotificationTypes": [ "EMAIL" ],
"shiftColor": "string"
}The new user resource request / response schema
Moved resources
Resource / field
Moved from
Moved to
How does the live migration work in particular?
What action do I have to take?
Migrating ilert-go and/or Terraform
Client
Old version
New version
Migration example for Terraform
Last updated
Was this helpful?