GET v2/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.View.UserStateViewModelResponse Formats
application/json
Sample:
{ "UserId": "8a0ef37c-5435-4330-9de4-3889845deb90", "IsNewUser": true, "UserName": "sample string 3", "PrivacyPolicyApprove": true, "ServerTime": "2024-12-20T14:10:26.5092004+00:00", "Registration": [ { "Id": "69e0ad65-ed3d-4e14-b701-622896757509", "UserId": "bfd51694-d6a8-4bef-8286-6c376706f2ee", "IsCurrent": true, "CenterId": "a18d5401-dd27-469e-92c9-c81e7fd449e2", "CenterZone": 5, "ContractId": "sample string 6", "CurrentContentItemId": "c3968ae4-a00c-4b47-911a-a32e1498f808", "EndDate": "2024-12-20T14:10:26.4935812+00:00", "StartDate": "2024-12-20T14:10:26.4935812+00:00", "SchedulePreferenceDate": "2024-12-20T14:10:26.4935812+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 }, { "Id": "69e0ad65-ed3d-4e14-b701-622896757509", "UserId": "bfd51694-d6a8-4bef-8286-6c376706f2ee", "IsCurrent": true, "CenterId": "a18d5401-dd27-469e-92c9-c81e7fd449e2", "CenterZone": 5, "ContractId": "sample string 6", "CurrentContentItemId": "c3968ae4-a00c-4b47-911a-a32e1498f808", "EndDate": "2024-12-20T14:10:26.4935812+00:00", "StartDate": "2024-12-20T14:10:26.4935812+00:00", "SchedulePreferenceDate": "2024-12-20T14:10:26.4935812+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:10:26.4935812+00:00" }, "Bookmarks": { "sample string 1": { "Id": "8c336bc1-2670-43f5-be73-e1346c080694", "Description": "sample string 2", "Duration": 1, "IsSkippable": true, "Url": "sample string 3", "CourseId": "4499f9bd-721e-41e0-ae75-6d97b8fab01f", "Sequence": 1, "AncestorCategoryId": "0857eefc-20dc-4992-afd8-0f81edc8977f", "TypeId": 5, "TypeName": "sample string 6", "Hierarchy": [ { "Id": "065eea59-db36-4504-95ee-2e7e62ed4e69", "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": "065eea59-db36-4504-95ee-2e7e62ed4e69", "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": "8c336bc1-2670-43f5-be73-e1346c080694", "Description": "sample string 2", "Duration": 1, "IsSkippable": true, "Url": "sample string 3", "CourseId": "4499f9bd-721e-41e0-ae75-6d97b8fab01f", "Sequence": 1, "AncestorCategoryId": "0857eefc-20dc-4992-afd8-0f81edc8977f", "TypeId": 5, "TypeName": "sample string 6", "Hierarchy": [ { "Id": "065eea59-db36-4504-95ee-2e7e62ed4e69", "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": "065eea59-db36-4504-95ee-2e7e62ed4e69", "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": "291cf2a9-323f-432b-84f1-581221ec2dc6", "CategoryId": "5cc49c42-9958-40c3-96f9-9a13d58e1bac", "DisclaimerConfirmed": true }, "Lessons": [ { "Id": "16386f54-0604-4892-bf88-d87912fff3ed", "Score": 1.0, "State": 1 }, { "Id": "16386f54-0604-4892-bf88-d87912fff3ed", "Score": 1.0, "State": 1 } ], "Surveys": [ { "Id": "3de55639-3c5c-436a-8386-6fdc84dcfb33", "Questions": [ { "Id": "57dc9255-2e41-4f28-ba4a-e73d55bd0a43", "Answers": "sample string 2" }, { "Id": "57dc9255-2e41-4f28-ba4a-e73d55bd0a43", "Answers": "sample string 2" } ] }, { "Id": "3de55639-3c5c-436a-8386-6fdc84dcfb33", "Questions": [ { "Id": "57dc9255-2e41-4f28-ba4a-e73d55bd0a43", "Answers": "sample string 2" }, { "Id": "57dc9255-2e41-4f28-ba4a-e73d55bd0a43", "Answers": "sample string 2" } ] } ], "Sessions": [ { "Id": "b66662dd-cae1-4df5-a318-319e15d09d49", "ContentItemId": "7252506b-b04c-4078-9c7b-49bb5d8c91b1", "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:10:26.4935812+00:00", "RescheduleDate": "2024-12-20T14:10:26.4935812+00:00" }, { "Id": "b66662dd-cae1-4df5-a318-319e15d09d49", "ContentItemId": "7252506b-b04c-4078-9c7b-49bb5d8c91b1", "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:10:26.4935812+00:00", "RescheduleDate": "2024-12-20T14:10:26.4935812+00:00" } ], "TotalRescheduleCount": 4, "StudentLevelInfo": { "StartLevel": "sample string 1", "EndLevel": "sample string 2", "CurrentLevel": "sample string 3" } }
text/json
Sample:
{ "UserId": "8a0ef37c-5435-4330-9de4-3889845deb90", "IsNewUser": true, "UserName": "sample string 3", "PrivacyPolicyApprove": true, "ServerTime": "2024-12-20T14:10:26.5717052+00:00", "Registration": [ { "Id": "69e0ad65-ed3d-4e14-b701-622896757509", "UserId": "bfd51694-d6a8-4bef-8286-6c376706f2ee", "IsCurrent": true, "CenterId": "a18d5401-dd27-469e-92c9-c81e7fd449e2", "CenterZone": 5, "ContractId": "sample string 6", "CurrentContentItemId": "c3968ae4-a00c-4b47-911a-a32e1498f808", "EndDate": "2024-12-20T14:10:26.4935812+00:00", "StartDate": "2024-12-20T14:10:26.4935812+00:00", "SchedulePreferenceDate": "2024-12-20T14:10:26.4935812+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 }, { "Id": "69e0ad65-ed3d-4e14-b701-622896757509", "UserId": "bfd51694-d6a8-4bef-8286-6c376706f2ee", "IsCurrent": true, "CenterId": "a18d5401-dd27-469e-92c9-c81e7fd449e2", "CenterZone": 5, "ContractId": "sample string 6", "CurrentContentItemId": "c3968ae4-a00c-4b47-911a-a32e1498f808", "EndDate": "2024-12-20T14:10:26.4935812+00:00", "StartDate": "2024-12-20T14:10:26.4935812+00:00", "SchedulePreferenceDate": "2024-12-20T14:10:26.4935812+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:10:26.4935812+00:00" }, "Bookmarks": { "sample string 1": { "Id": "8c336bc1-2670-43f5-be73-e1346c080694", "Description": "sample string 2", "Duration": 1, "IsSkippable": true, "Url": "sample string 3", "CourseId": "4499f9bd-721e-41e0-ae75-6d97b8fab01f", "Sequence": 1, "AncestorCategoryId": "0857eefc-20dc-4992-afd8-0f81edc8977f", "TypeId": 5, "TypeName": "sample string 6", "Hierarchy": [ { "Id": "065eea59-db36-4504-95ee-2e7e62ed4e69", "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": "065eea59-db36-4504-95ee-2e7e62ed4e69", "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": "8c336bc1-2670-43f5-be73-e1346c080694", "Description": "sample string 2", "Duration": 1, "IsSkippable": true, "Url": "sample string 3", "CourseId": "4499f9bd-721e-41e0-ae75-6d97b8fab01f", "Sequence": 1, "AncestorCategoryId": "0857eefc-20dc-4992-afd8-0f81edc8977f", "TypeId": 5, "TypeName": "sample string 6", "Hierarchy": [ { "Id": "065eea59-db36-4504-95ee-2e7e62ed4e69", "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": "065eea59-db36-4504-95ee-2e7e62ed4e69", "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": "291cf2a9-323f-432b-84f1-581221ec2dc6", "CategoryId": "5cc49c42-9958-40c3-96f9-9a13d58e1bac", "DisclaimerConfirmed": true }, "Lessons": [ { "Id": "16386f54-0604-4892-bf88-d87912fff3ed", "Score": 1.0, "State": 1 }, { "Id": "16386f54-0604-4892-bf88-d87912fff3ed", "Score": 1.0, "State": 1 } ], "Surveys": [ { "Id": "3de55639-3c5c-436a-8386-6fdc84dcfb33", "Questions": [ { "Id": "57dc9255-2e41-4f28-ba4a-e73d55bd0a43", "Answers": "sample string 2" }, { "Id": "57dc9255-2e41-4f28-ba4a-e73d55bd0a43", "Answers": "sample string 2" } ] }, { "Id": "3de55639-3c5c-436a-8386-6fdc84dcfb33", "Questions": [ { "Id": "57dc9255-2e41-4f28-ba4a-e73d55bd0a43", "Answers": "sample string 2" }, { "Id": "57dc9255-2e41-4f28-ba4a-e73d55bd0a43", "Answers": "sample string 2" } ] } ], "Sessions": [ { "Id": "b66662dd-cae1-4df5-a318-319e15d09d49", "ContentItemId": "7252506b-b04c-4078-9c7b-49bb5d8c91b1", "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:10:26.4935812+00:00", "RescheduleDate": "2024-12-20T14:10:26.4935812+00:00" }, { "Id": "b66662dd-cae1-4df5-a318-319e15d09d49", "ContentItemId": "7252506b-b04c-4078-9c7b-49bb5d8c91b1", "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:10:26.4935812+00:00", "RescheduleDate": "2024-12-20T14:10:26.4935812+00:00" } ], "TotalRescheduleCount": 4, "StudentLevelInfo": { "StartLevel": "sample string 1", "EndLevel": "sample string 2", "CurrentLevel": "sample string 3" } }