2019-05-09 18:54:39 +12:00
|
|
|
# Account Service
|
|
|
|
|
|
|
|
## Get Account
|
|
|
|
|
|
|
|
```http request
|
2019-10-09 17:16:38 +13:00
|
|
|
GET https://appwrite.io/v1/account
|
2019-05-09 18:54:39 +12:00
|
|
|
```
|
|
|
|
|
2019-10-09 17:16:38 +13:00
|
|
|
** /docs/references/account/get.md **
|
2019-05-09 18:54:39 +12:00
|
|
|
|
|
|
|
## Delete Account
|
|
|
|
|
|
|
|
```http request
|
2019-10-09 17:16:38 +13:00
|
|
|
DELETE https://appwrite.io/v1/account
|
2019-05-09 18:54:39 +12:00
|
|
|
```
|
|
|
|
|
2019-10-09 17:16:38 +13:00
|
|
|
** /docs/references/account/delete.md **
|
2019-05-09 18:54:39 +12:00
|
|
|
|
|
|
|
## Update Account Email
|
|
|
|
|
|
|
|
```http request
|
2019-10-09 17:16:38 +13:00
|
|
|
PATCH https://appwrite.io/v1/account/email
|
2019-05-09 18:54:39 +12:00
|
|
|
```
|
|
|
|
|
2019-10-09 17:16:38 +13:00
|
|
|
** /docs/references/account/update-email.md **
|
2019-05-09 18:54:39 +12:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
| Field Name | Type | Description | Default |
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
| email | string | Email Address | |
|
|
|
|
| password | string | User Password | |
|
|
|
|
|
|
|
|
## Update Account Name
|
|
|
|
|
|
|
|
```http request
|
2019-10-09 17:16:38 +13:00
|
|
|
PATCH https://appwrite.io/v1/account/name
|
2019-05-09 18:54:39 +12:00
|
|
|
```
|
|
|
|
|
2019-10-09 17:16:38 +13:00
|
|
|
** /docs/references/account/update-name.md **
|
2019-05-09 18:54:39 +12:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
| Field Name | Type | Description | Default |
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
| name | string | User name | |
|
|
|
|
|
|
|
|
## Update Account Password
|
|
|
|
|
|
|
|
```http request
|
2019-10-09 17:16:38 +13:00
|
|
|
PATCH https://appwrite.io/v1/account/password
|
2019-05-09 18:54:39 +12:00
|
|
|
```
|
|
|
|
|
2019-10-09 17:16:38 +13:00
|
|
|
** /docs/references/account/update-password.md **
|
2019-05-09 18:54:39 +12:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
| Field Name | Type | Description | Default |
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
| password | string | New password | |
|
|
|
|
| old-password | string | Old password | |
|
|
|
|
|
|
|
|
## Get Account Preferences
|
|
|
|
|
|
|
|
```http request
|
2019-10-09 17:16:38 +13:00
|
|
|
GET https://appwrite.io/v1/account/prefs
|
2019-05-09 18:54:39 +12:00
|
|
|
```
|
|
|
|
|
2019-10-09 17:16:38 +13:00
|
|
|
** /docs/references/account/get-prefs.md **
|
2019-05-09 18:54:39 +12:00
|
|
|
|
|
|
|
## Update Account Prefs
|
|
|
|
|
|
|
|
```http request
|
2019-10-09 17:16:38 +13:00
|
|
|
PATCH https://appwrite.io/v1/account/prefs
|
2019-05-09 18:54:39 +12:00
|
|
|
```
|
|
|
|
|
2019-10-09 17:16:38 +13:00
|
|
|
** /docs/references/account/update-prefs.md **
|
2019-05-09 18:54:39 +12:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
| Field Name | Type | Description | Default |
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
| prefs | string | Prefs key-value JSON object string. | |
|
|
|
|
|
|
|
|
## Get Account Security Log
|
|
|
|
|
|
|
|
```http request
|
2019-10-09 17:16:38 +13:00
|
|
|
GET https://appwrite.io/v1/account/security
|
2019-05-09 18:54:39 +12:00
|
|
|
```
|
|
|
|
|
2019-10-09 17:16:38 +13:00
|
|
|
** /docs/references/account/get-security.md **
|
2019-05-09 18:54:39 +12:00
|
|
|
|
|
|
|
## Get Account Active Sessions
|
|
|
|
|
|
|
|
```http request
|
2019-10-09 17:16:38 +13:00
|
|
|
GET https://appwrite.io/v1/account/sessions
|
2019-05-09 18:54:39 +12:00
|
|
|
```
|
|
|
|
|
2019-10-09 17:16:38 +13:00
|
|
|
** /docs/references/account/get-sessions.md **
|
2019-05-09 18:54:39 +12:00
|
|
|
|