SOAP API method Database_createInterest

Back to API references

Description
This method returns the newly created 'Interest' object on success or 'false' on failure. An optional groupname can also be supplied. There may not already exist an interest with the same name in the database.

Parameters
Parameter 'id' : int
Unique identifier (id) of the object Database. The method only applies to the database with this id.
Parameter 'name' : string
Name of the interest
Parameter 'group' : string
Optional groupname
Parameter 'login' : Structure of type 'login'
Optional login data

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

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 'interest'
This structure interest was mentioned above. This structure has the following properties:
Property 'id' : int
The ID of this interest.
Property 'name' : string
The name of the interest.
Property 'groupname' : string
The name of the group that this interest belongs to.
Property 'weight' : int
The weight of the interest.