GET users/{userIdentifier}/state
Gets the User's state information.
Authorization
Access to this endpoint is granted if all following conditions are true:
- Authenticated user passes at least one of the following conditions: Authenticated user matches identifier given in "userIdentifier, studentIdentifier" uri parameter. Authenticated user is a staff member and is assigned to the same center as a user who matches identifier given in "userIdentifier, studentIdentifier" uri parameter. Authenticated user is a staff member and is assigned to the online center as a user who matches identifier given in "userIdentifier, studentIdentifier" uri parameter. Authenticated user matches identifier given in "userIdentifier, studentIdentifier" uri parameter.
- Authenticated user who is either StaffMember, Student, Administrator, ProspectWithTrial, User
- Authenticated user who is either StaffMember, Student, QA, ISUSTeacher, Administrator, FocusTool, ProspectWithTrial, User
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
userIdentifier |
user's identifier |
PearsonEnglish.LearningServices.Business.Helpers.UserIdentifier |
Required |
Body Parameters
None.
Response Information
Resource Description
PearsonEnglish.LearningServices.Core.Models.Views.UserStateBackwardCompatibleViewModelName | Description | Type | Additional information |
---|---|---|---|
UserId | globally unique identifier |
None. |
|
IsNewUser | boolean |
None. |
|
UserName | string |
None. |
|
PrivacyPolicyApprove | boolean |
None. |
|
ServerTime | date |
None. |
|
Registration | PearsonEnglish.LearningServices.Core.Models.Views.RegistrationViewModel |
None. |
|
TimeZone | PearsonEnglish.LearningServices.Core.Models.Views.TimeZoneViewModel |
None. |
|
Bookmarks | Dictionary of string [key] and PearsonEnglish.LearningServices.Core.Models.Views.ContentItemViewModel [value] |
None. |
|
CurrentCourse | PearsonEnglish.LearningServices.Core.Models.CurrentCourse |
None. |
|
Lessons | Collection of PearsonEnglish.LearningServices.Core.Models.Views.ContentItemResultViewModel |
None. |
|
Surveys | Collection of PearsonEnglish.LearningServices.Core.Models.Views.UserSurveyViewModel |
None. |
|
Sessions | Collection of PearsonEnglish.LearningServices.Core.Models.Views.UserSessionStateViewModel |
None. |
|
TotalRescheduleCount | integer |
None. |
|
StudentLevelInfo | PearsonEnglish.LearningServices.Core.Models.StudentLevelInfo |
None. |
Response Formats
application/json
Sample:
{ "UserId": "df2f6d5e-a76a-4a43-80a1-50a83928d5b9", "IsNewUser": true, "UserName": "sample string 3", "PrivacyPolicyApprove": true, "ServerTime": "2024-12-20T14:14:49.0119301+00:00", "Registration": { "Id": "dc3b84da-7bba-467f-993c-47be886c546a", "UserId": "c4aed455-e636-4b04-8dfe-bfbf065e3910", "IsCurrent": true, "CenterId": "e61f0b24-476a-44b2-9573-f54a21da683a", "CenterZone": 5, "ContractId": "sample string 6", "CurrentContentItemId": "7ecc9fd5-d0eb-4982-a29f-8f98c2bd4fae", "EndDate": "2024-12-20T14:14:48.996309+00:00", "StartDate": "2024-12-20T14:14:48.996309+00:00", "SchedulePreferenceDate": "2024-12-20T14:14:48.996309+00:00", "TypeName": "sample string 10", "WorkbookType": 0, "EnglishAnytime": true, "AllowSelfBooking": true, "RegistrationStatus": "sample string 12", "CourseStatus": "sample string 13", "StudentCurrentContractStatus": "sample string 14", "OnlineClassAccess": true, "InCenterClassAccess": true, "IsMembership": true, "IsPromo": true, "OnboardingAccess": true, "IsCrossCenterBooking": true, "IsTeen": true, "IsGroupContract": true, "IsB2B": true, "ServiceType": 1 }, "TimeZone": { "Name": "sample string 1", "IanaName": "sample string 2", "LocalUtcOffset": "00:00:00.1234567", "LocalDateTime": "2024-12-20T14:14:48.996309+00:00" }, "Bookmarks": { "sample string 1": { "Id": "4a6ac6af-f827-4789-ac9a-1854b5a4f90f", "Description": "sample string 2", "Duration": 1, "IsSkippable": true, "Url": "sample string 3", "CourseId": "bc22b4c3-9c96-47e7-8565-2071126d1cb2", "Sequence": 1, "AncestorCategoryId": "6bb266a0-0f1e-4900-aa1f-f9dfe6294811", "TypeId": 5, "TypeName": "sample string 6", "Hierarchy": [ { "Id": "4feaf564-e429-4ccd-9788-6813cf086ae3", "Type": "sample string 2", "Sequence": 1, "Path": "sample string 3", "Attributes": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" }, "ChildCategories": [] }, { "Id": "4feaf564-e429-4ccd-9788-6813cf086ae3", "Type": "sample string 2", "Sequence": 1, "Path": "sample string 3", "Attributes": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" }, "ChildCategories": [] } ], "ContentOptimizationLevelId": 7, "ContentOptimizationLevelName": "sample string 8" }, "sample string 2": { "Id": "4a6ac6af-f827-4789-ac9a-1854b5a4f90f", "Description": "sample string 2", "Duration": 1, "IsSkippable": true, "Url": "sample string 3", "CourseId": "bc22b4c3-9c96-47e7-8565-2071126d1cb2", "Sequence": 1, "AncestorCategoryId": "6bb266a0-0f1e-4900-aa1f-f9dfe6294811", "TypeId": 5, "TypeName": "sample string 6", "Hierarchy": [ { "Id": "4feaf564-e429-4ccd-9788-6813cf086ae3", "Type": "sample string 2", "Sequence": 1, "Path": "sample string 3", "Attributes": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" }, "ChildCategories": [] }, { "Id": "4feaf564-e429-4ccd-9788-6813cf086ae3", "Type": "sample string 2", "Sequence": 1, "Path": "sample string 3", "Attributes": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" }, "ChildCategories": [] } ], "ContentOptimizationLevelId": 7, "ContentOptimizationLevelName": "sample string 8" } }, "CurrentCourse": { "Id": "a7df3458-ca63-4a2b-9a19-0728f752575d", "CategoryId": "e44d685d-b6cc-4f1b-9bae-7d10438bec37", "DisclaimerConfirmed": true }, "Lessons": [ { "Id": "c2849f41-0fbd-40fd-a240-232ff7c443a3", "Score": 1.0, "State": 1 }, { "Id": "c2849f41-0fbd-40fd-a240-232ff7c443a3", "Score": 1.0, "State": 1 } ], "Surveys": [ { "Id": "0ade3fba-74bf-4383-9703-6c0900efff79", "Questions": [ { "Id": "a5a8a483-2c48-4952-a821-ba41ac48b796", "Answers": "sample string 2" }, { "Id": "a5a8a483-2c48-4952-a821-ba41ac48b796", "Answers": "sample string 2" } ] }, { "Id": "0ade3fba-74bf-4383-9703-6c0900efff79", "Questions": [ { "Id": "a5a8a483-2c48-4952-a821-ba41ac48b796", "Answers": "sample string 2" }, { "Id": "a5a8a483-2c48-4952-a821-ba41ac48b796", "Answers": "sample string 2" } ] } ], "Sessions": [ { "Id": "3f4b622b-19eb-49c2-91f3-899f86570f51", "ContentItemId": "a9ea3e04-5652-427d-a810-6fa2e7bbc8a4", "Status": "sample string 3", "TeacherFeedbacks": [ { "Type": "sample string 1", "Value1": "sample string 2", "Value2": "sample string 3" }, { "Type": "sample string 1", "Value1": "sample string 2", "Value2": "sample string 3" } ], "RatingDate": "2024-12-20T14:14:48.996309+00:00", "RescheduleDate": "2024-12-20T14:14:48.996309+00:00" }, { "Id": "3f4b622b-19eb-49c2-91f3-899f86570f51", "ContentItemId": "a9ea3e04-5652-427d-a810-6fa2e7bbc8a4", "Status": "sample string 3", "TeacherFeedbacks": [ { "Type": "sample string 1", "Value1": "sample string 2", "Value2": "sample string 3" }, { "Type": "sample string 1", "Value1": "sample string 2", "Value2": "sample string 3" } ], "RatingDate": "2024-12-20T14:14:48.996309+00:00", "RescheduleDate": "2024-12-20T14:14:48.996309+00:00" } ], "TotalRescheduleCount": 4, "StudentLevelInfo": { "StartLevel": "sample string 1", "EndLevel": "sample string 2", "CurrentLevel": "sample string 3" } }
text/json
Sample:
{ "UserId": "df2f6d5e-a76a-4a43-80a1-50a83928d5b9", "IsNewUser": true, "UserName": "sample string 3", "PrivacyPolicyApprove": true, "ServerTime": "2024-12-20T14:14:49.0431823+00:00", "Registration": { "Id": "dc3b84da-7bba-467f-993c-47be886c546a", "UserId": "c4aed455-e636-4b04-8dfe-bfbf065e3910", "IsCurrent": true, "CenterId": "e61f0b24-476a-44b2-9573-f54a21da683a", "CenterZone": 5, "ContractId": "sample string 6", "CurrentContentItemId": "7ecc9fd5-d0eb-4982-a29f-8f98c2bd4fae", "EndDate": "2024-12-20T14:14:48.996309+00:00", "StartDate": "2024-12-20T14:14:48.996309+00:00", "SchedulePreferenceDate": "2024-12-20T14:14:48.996309+00:00", "TypeName": "sample string 10", "WorkbookType": 0, "EnglishAnytime": true, "AllowSelfBooking": true, "RegistrationStatus": "sample string 12", "CourseStatus": "sample string 13", "StudentCurrentContractStatus": "sample string 14", "OnlineClassAccess": true, "InCenterClassAccess": true, "IsMembership": true, "IsPromo": true, "OnboardingAccess": true, "IsCrossCenterBooking": true, "IsTeen": true, "IsGroupContract": true, "IsB2B": true, "ServiceType": 1 }, "TimeZone": { "Name": "sample string 1", "IanaName": "sample string 2", "LocalUtcOffset": "00:00:00.1234567", "LocalDateTime": "2024-12-20T14:14:48.996309+00:00" }, "Bookmarks": { "sample string 1": { "Id": "4a6ac6af-f827-4789-ac9a-1854b5a4f90f", "Description": "sample string 2", "Duration": 1, "IsSkippable": true, "Url": "sample string 3", "CourseId": "bc22b4c3-9c96-47e7-8565-2071126d1cb2", "Sequence": 1, "AncestorCategoryId": "6bb266a0-0f1e-4900-aa1f-f9dfe6294811", "TypeId": 5, "TypeName": "sample string 6", "Hierarchy": [ { "Id": "4feaf564-e429-4ccd-9788-6813cf086ae3", "Type": "sample string 2", "Sequence": 1, "Path": "sample string 3", "Attributes": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" }, "ChildCategories": [] }, { "Id": "4feaf564-e429-4ccd-9788-6813cf086ae3", "Type": "sample string 2", "Sequence": 1, "Path": "sample string 3", "Attributes": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" }, "ChildCategories": [] } ], "ContentOptimizationLevelId": 7, "ContentOptimizationLevelName": "sample string 8" }, "sample string 2": { "Id": "4a6ac6af-f827-4789-ac9a-1854b5a4f90f", "Description": "sample string 2", "Duration": 1, "IsSkippable": true, "Url": "sample string 3", "CourseId": "bc22b4c3-9c96-47e7-8565-2071126d1cb2", "Sequence": 1, "AncestorCategoryId": "6bb266a0-0f1e-4900-aa1f-f9dfe6294811", "TypeId": 5, "TypeName": "sample string 6", "Hierarchy": [ { "Id": "4feaf564-e429-4ccd-9788-6813cf086ae3", "Type": "sample string 2", "Sequence": 1, "Path": "sample string 3", "Attributes": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" }, "ChildCategories": [] }, { "Id": "4feaf564-e429-4ccd-9788-6813cf086ae3", "Type": "sample string 2", "Sequence": 1, "Path": "sample string 3", "Attributes": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" }, "ChildCategories": [] } ], "ContentOptimizationLevelId": 7, "ContentOptimizationLevelName": "sample string 8" } }, "CurrentCourse": { "Id": "a7df3458-ca63-4a2b-9a19-0728f752575d", "CategoryId": "e44d685d-b6cc-4f1b-9bae-7d10438bec37", "DisclaimerConfirmed": true }, "Lessons": [ { "Id": "c2849f41-0fbd-40fd-a240-232ff7c443a3", "Score": 1.0, "State": 1 }, { "Id": "c2849f41-0fbd-40fd-a240-232ff7c443a3", "Score": 1.0, "State": 1 } ], "Surveys": [ { "Id": "0ade3fba-74bf-4383-9703-6c0900efff79", "Questions": [ { "Id": "a5a8a483-2c48-4952-a821-ba41ac48b796", "Answers": "sample string 2" }, { "Id": "a5a8a483-2c48-4952-a821-ba41ac48b796", "Answers": "sample string 2" } ] }, { "Id": "0ade3fba-74bf-4383-9703-6c0900efff79", "Questions": [ { "Id": "a5a8a483-2c48-4952-a821-ba41ac48b796", "Answers": "sample string 2" }, { "Id": "a5a8a483-2c48-4952-a821-ba41ac48b796", "Answers": "sample string 2" } ] } ], "Sessions": [ { "Id": "3f4b622b-19eb-49c2-91f3-899f86570f51", "ContentItemId": "a9ea3e04-5652-427d-a810-6fa2e7bbc8a4", "Status": "sample string 3", "TeacherFeedbacks": [ { "Type": "sample string 1", "Value1": "sample string 2", "Value2": "sample string 3" }, { "Type": "sample string 1", "Value1": "sample string 2", "Value2": "sample string 3" } ], "RatingDate": "2024-12-20T14:14:48.996309+00:00", "RescheduleDate": "2024-12-20T14:14:48.996309+00:00" }, { "Id": "3f4b622b-19eb-49c2-91f3-899f86570f51", "ContentItemId": "a9ea3e04-5652-427d-a810-6fa2e7bbc8a4", "Status": "sample string 3", "TeacherFeedbacks": [ { "Type": "sample string 1", "Value1": "sample string 2", "Value2": "sample string 3" }, { "Type": "sample string 1", "Value1": "sample string 2", "Value2": "sample string 3" } ], "RatingDate": "2024-12-20T14:14:48.996309+00:00", "RescheduleDate": "2024-12-20T14:14:48.996309+00:00" } ], "TotalRescheduleCount": 4, "StudentLevelInfo": { "StartLevel": "sample string 1", "EndLevel": "sample string 2", "CurrentLevel": "sample string 3" } }