set_attributes
This method associates a list of attribute fields with a user.
Parameters
| string |
method |
(required)
set_attributes
|
| string |
api_key |
(required)
API key assigned to your account.
|
| string |
userid |
(required)
Valid user id returned by register or signin.
|
| POST |
attr |
(required)
List of attributes to be set. This must be expressed as a JSON array - see example below.
|
Sample JSON
{"first_name":"John","last_name":"Public","email":"john@example.com"}
Result explanation
| integer |
attr_count |
count of attributes successfully set
|
Errors
| Missing method |
Method is not specified in the request. |
| Missing API key |
API key is missing in the request. |
| Invalid API key |
API key not accepted. |
| Missing userid |
Userid is missing in the request. |
| Invalid attribute data |
Missing or invalid attribute data was sent in the POST. |
| Invalid attribute 'attribute' |
The attribute 'attribute' is not supported - see list of attributes. |