EditUserProfile

This method is used to edit a professional's user profile. The Finnit Server credentials should be given with all the mandatory fields. Exceptions are thrown if the input values for all mandatory fields are not filled with valid data. If optional field inputs are not provided, the database updates these fields with null values. A Boolean value output indicates whether the edit is successful.

Notes

  • This method is accessed by the Finnit Server
  • Preference should be either Mobile or Email. If any strings other than these two are given the default value "Mobile" is set
  • The maximum image size supported is 2MB
  • Ensure the base64 encoded string is a valid image file
  • Supported image types are jpg ,png, gif, jpeg, bmp


Request

Parameter

Type

Mandatory/Optional

Maximum character length/limit

Description

input

EditUserProfileInput

Mandatory

Not relevant

Model with details of the user being edited

applicationNamestringMandatoryShould be less than or equal to 10 charactersThe name of the integration partner


Request - sample input

<EditUserProfile>
  <MethodParameters>
    <UserAuthentication>
      <UserName>username</UserName>
      <Password>password</Password>
      <AnyAttr attr0="XmlAttributeArray" isNull="false">
        <XmlAttributeArray0>System.Xml.XmlAttribute</XmlAttributeArray0>
      </AnyAttr>
    </UserAuthentication>
    <input>
      <BoligmappaUserName>charlizeT</BoligmappaUserName>
      <ProfileImage>
        <Url>http://imgsv.imaging.nikon.com/lineup/lens/zoom/normalzoom/af-s_dx_18-300mmf_35-56g_ed_vr/img/sample/sample4_l.jpg</Url>
        <Data isNull="false" />
      </ProfileImage>
      <ProfileDescription>Test profile</ProfileDescription>
      <FirstName>Charlize</FirstName>
      <LastName>Theron</LastName>
      <TelephoneNumber>+4740485956</TelephoneNumber>
      <Email>charlize@ict.no</Email>
      <PreferredCommunication>Mobile</PreferredCommunication>
    </input>
    <applicationName>test</applicationName>
  </MethodParameters>
</EditUserProfile>

Response

Type

Description

EditUserProfileOutput

The Boolean value indicates whether the edit is successful


Response - sample output

<EditUserProfile>
  <MethodParameters>
    <EditUserProfileOutput>
      <IsEditSuccessfull>True</IsEditSuccessfull>
    </EditUserProfileOutput>
  </MethodParameters>
</EditUserProfile>


Exceptions

Error Code

Description

113

One or more mandatory fields have not been supplied as input

123

An exception occurred while processing your request

167

You are not authorized to use this method

260The contact Email address is not valid
363TelephoneNumber is invalid
366The given UserName does not exist
367FirstName/LastName length has exceeded the maximum character limit allowed (50) 
368UserName length has exceeded the maximum character limit allowed (50) 
369Email length has exceeded the maximum character limit allowed (50) 
370Specializations length has exceeded the maximum character limit allowed (250) 
372ProfileImage input is invalid
373

ProfileDescription length has exceeded the maximum character limit allowed (250)

374The given Url is not a valid image file type
375The given image is more than 2MB in size
376The given Base64 string is invalid