Method: user/createUser
This method allows the creation of a Fotolia Member account. All
profile fields available on the website are available through the API.
Authentication
This method does not require authentication.
HTTP method
This method is called with HTTP method POST.
Arguments
| Argument | Type | Element (array) | Valid Values | Default Value | Detail | ||
|---|---|---|---|---|---|---|---|
properties[login] |
string | login of the account | required | Between 3 and 16 characters | |||
properties[password] |
string | password of the account | required | Between 3 and 16 characters | |||
properties[email] |
string | email of the account | required | ||||
properties[language_id] |
int |
|
required |
|
|||
properties[display_name] |
string | optional | alias name to use for the account (per default login is used) | ||||
properties[firstname] |
string | optional | Between 3 and 20 characters | ||||
properties[lastname] |
string | optional | Between 3 and 20 characters | ||||
properties[address] |
string | optional | Member postal address | ||||
properties[zipcode] |
string | optional | Member postal ZIP code | ||||
properties[city] |
string | optional | Member city | ||||
properties[country_id] |
int | optional | Member country ID (see getCountries) | ||||
properties[newsletter] |
boolean | 1 | 0 - 1 | optional | Newsletter subscription flag |
Returned Values
| Element (path) | Name | Type | Description | ||
|---|---|---|---|---|---|
| / | Member ID |
int | account member ID |
Example Query
POST http://API_KEY@api.fotolia.com/Rest/1/user/createUser?id=20
properties[login]=LOGIN&properties[password]=PASSWORD&properties[email]=EMAIL&properties[language_id]=LANGUAGE_ID
Example Response
42
Error Codes
001: Service currently unavailable- The requested service is temporarily unavailable.
002: Failed to parse request- The request could not be parsed.
010: Missing API Key- The API key passed is missing.
011: Invalid API Key- The API key passed is not valid or has expired.
031: Invalid Method- This method does not exist in the method list.
032: Method not Available- This method is not available for this API Key.
2001: Invalid language ID- The language ID passed does not exist.
6006: Cannot create user- Unknown error occurred, user cannot be created.
6007: Data validation error- Invalid data given in properties fields.
6008: Login already exists- The requested login is already in use.
6009: Email validation required- Account has to be validated by email to be confirmed.
6010: SMS validation required- Account has to be validated by SMS to be confirmed.


