GET restapi/personal/messages/recipients/search/v1?searchText={searchText}
Search for message recipients.
Only returns persons that the user is allowed to communicate with given the customer's esafety rules configured in itslearning.
The searchText parameter is required and must contain at least 3 characters .
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
searchText |
The person name to search for. It must contains at least 3 characters. |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
List of persons that matches the searchText.
Returns HTTP error code 400 when searchText is too short.
Collection of Itslearning.RestApi.Entities.PersonSimpleName | Description | Type | Additional information |
---|---|---|---|
PersonId |
The unique id for for the person, in scope of a site (itslearning customer). |
integer |
None. |
FirstName |
The person's first name. It can only be used when first name is displayed without last name. Otherwise must be used. |
string |
None. |
LastName |
The person's last name. It can only be used when last name is displayed without first name. Otherwise must be used. |
string |
None. |
FullName |
The person's full name formatted according to regional settings of a site. |
string |
None. |
ProfileUrl |
The url to view the person's profile in itslearning. |
string |
None. |
AdditionalInfo |
Additional information about the person. This can be context sensitive. For example when using the rest api method for message recipients search, this field can contain extra information about the person, that helps the user distinguish between persons with identical names. |
string |
None. |
ProfileImageUrl |
The absolute URL to the person's profile image. This can be null or empty if the person does not have a profile image. |
string |
None. |
ProfileImageUrlSmall |
The absolute URL to the person's profile image. This can be null or empty if the person does not have a profile image. |
string |
None. |
Response Formats
application/json, text/json
[ { "PersonId": 1, "FirstName": "sample string 2", "LastName": "sample string 3", "FullName": "sample string 4", "ProfileUrl": "sample string 5", "AdditionalInfo": "sample string 6", "ProfileImageUrl": "sample string 7", "ProfileImageUrlSmall": "sample string 8" }, { "PersonId": 1, "FirstName": "sample string 2", "LastName": "sample string 3", "FullName": "sample string 4", "ProfileUrl": "sample string 5", "AdditionalInfo": "sample string 6", "ProfileImageUrl": "sample string 7", "ProfileImageUrlSmall": "sample string 8" } ]
application/xml, text/xml
<ArrayOfPersonSimple xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <PersonSimple> <AdditionalInfo>sample string 6</AdditionalInfo> <FirstName>sample string 2</FirstName> <FullName>sample string 4</FullName> <LastName>sample string 3</LastName> <PersonId>1</PersonId> <ProfileImageUrl>sample string 7</ProfileImageUrl> <ProfileImageUrlSmall>sample string 8</ProfileImageUrlSmall> <ProfileUrl>sample string 5</ProfileUrl> </PersonSimple> <PersonSimple> <AdditionalInfo>sample string 6</AdditionalInfo> <FirstName>sample string 2</FirstName> <FullName>sample string 4</FullName> <LastName>sample string 3</LastName> <PersonId>1</PersonId> <ProfileImageUrl>sample string 7</ProfileImageUrl> <ProfileImageUrlSmall>sample string 8</ProfileImageUrlSmall> <ProfileUrl>sample string 5</ProfileUrl> </PersonSimple> </ArrayOfPersonSimple>