SOAP API method User_setPhoto

Back to API references

Description
Change the photo of the user

Parameters
Parameter 'id' : int
Unique identifier (id) of the object User. The method only applies to the user with this id.
Parameter 'filedata' : Structure of type 'filedata'
Parameter 'login' : Structure of type 'login'
Optional login data

Return values
Return value 'image' : Structure of type 'image'

Structure 'filedata'
This structure filedata was mentioned above. This structure has the following properties:
Property 'name' : string
The name of the data of the file.
Property 'mimetype' : string
The mimetype of the data of the file.
Property 'data' : binary
The data of the file. The data is base64 encoded.

Structure 'login'
This structure login was mentioned above. This structure has the following properties:
Property 'username' : string
The username of the login attempt
Property 'account' : string
The account name of the login attempt
Property 'password' : string
The password for the login attempt

Structure 'image'
This structure image was mentioned above. This structure has the following properties:
Property 'id' : int
The ID of the image.
Property 'name' : string
The filename of the image.
Property 'extension' : string
The extension of this image.
Property 'width' : int
The width of the image.
Property 'height' : int
The height of the image.
Property 'hashcode' : string
Expose the data hashcode
Property 'data' : binary
The data of the image. The data is base64 encoded.
Property 'mimetype' : string
The mime type of the image.
Property 'thumbwidth' : int
The width of the thumbnail of the image.
Property 'thumbheight' : int
The height of the thumbnail of the image.
Property 'thumbdata' : binary
The data of the thumnail of the image. The data is base64 encoded.