Changes to User Public API: Status property
 25 days ago by Gabriela Romero
Impact: response payload of the following endpoints
- Get list of users: GET https://{tenant}.siffletdata.com/api/v1/users
- Create a user: POST https://{tenant}.siffletdata.com/api/v1/users
- Update a user: PATCH https://{tenant}.siffletdata.com/api/v1/users/{id}
- Get a user by id: GET https://{tenant}.siffletdata.com/api/v1/users/{id}
The response payload for those endpoints contains a new property named status indicating if a user is enabled or disabled. This property is represented as an enum string with two possible values: ENABLED and DISABLED.
Example of the new response payload
{
   "id":"80807519-9b52-4c6c-88b1-3945e9b35a2e",
   "name":"Roger",
   "email":"[email protected]",
   "role":"EDITOR",
   "permissions":[
      {
         "domainId":"aaaabbbb-aaaa-bbbb-aaaa-bbbbaaaabbbb",
         "domainRole":"EDITOR"
      }
   ],
   "authTypes":[
      "LOGIN_PASSWORD"
   ],
   "status":"ENABLED"
}
