Create a user with the given information.
JSON Parameters: | |
---|---|
|
The following optional additional parameters are available to authenticated enterprise partners:
JSON Parameters: | |
---|---|
|
Note
Authenticated enterprise partners may omit the username parameter, in which case an automatically incrementing numbered username will be generated and used. This is useful when users are identified by email address rather than username. The generated username will be returned in the username field of the response.
Status Codes: |
|
---|
Example Success Response:
HTTP/1.1 200 OK
Content-type: text/javascript
{
"username": "user_auto_12345", // example auto-generated username
"temp_password": "1234-12345-1234" // if password was omitted
}
Example Conflict Response:
HTTP/1.1 409 Conflict
Content-type: text/javascript
{
"reason": "The following fields conflict with an existing account",
"conflicts": ["username", "email"]
}
List existing users. This method is only available to partners, while authenticated.
Query Parameters: | |
---|---|
|
Field name | Separators | Value |
---|---|---|
username | = | string |
name | = | string |
= | string | |
share_id | = | string |
creation_time | >, >=, =, <=, < | integer |
last_login | >, >=, =, <=, < | integer |
num_devices | >, >=, =, <=, < | integer |
bytes_stored | >, >=, =, <=, < | integer |
storage_bytes | >, >=, =, <=, < | integer |
bonus_bytes | >, >=, =, <=, < | integer |
plan_id | >, >=, =, <=, < | integer |
group_id | >, >=, =, <=, < | integer |
group_id | >, >=, =, <=, < | integer |
enabled | = | 1 for True 0 for False |
purgehold_active | = | 1 for True 0 for False |
recently_stopped_uploading | = | Two integers separated by a |. Example 2592000|1209600. This searches for users who have uploaded within the past 2592000 seconds, but have not uploaded within the past 1209600 seconds. |
Status Codes: |
|
---|
Returns a JSON list of objects containing the same information as Viewing Account Info (authenticated), below.
View user information. This method is only available to partners, while authenticated.
Status Codes: |
|
---|
Returns the following information in successful response:
JSON Parameters: | |
---|---|
|
View device information. This method is only available to partners, while authenticated.
Status Codes: |
|
---|
Returns a JSON list with the following information for each device in successful response:
JSON Parameters: | |
---|---|
|
View extra info associated with this account. This method is only available to partners, while authenticated.
Status Codes: |
|
---|
Associate an arbitrary JSON object with the account. This method is only available to partners, while authenticated.
Status Codes: |
|
---|
Modify user information. This method is only available to partners, while authenticated.
The following parameters are modifyable. You may include any number of the parameters below in the request.
JSON Parameters: | |
---|---|
|
The following response codes are possible:
Status Codes: |
|
---|
Delete the specified user. This method is only available to partners, while authenticated.
This action is available using either the HTTP DELETE method, or POST with the ?action=delete query parameter.
Status Codes: |
|
---|
Send the specified user an activation email. This method is only available to partners, while authenticated. Additionally, the user must not have set up any devices yet, as the account password will be set to a temporary activation code which will be sent in the email.
Status Codes: |
|
---|