User Accounts

JA
Last updated 4 months ago

get
Get Account data

https://sharedcloud.io
/api/v1/users/account/
This endpoint allows you to get the account data
Request
Response
Headers
Authorization
required
string
Authentication token
200: OK
User account successfully retrieved.
{
"uuid": "3a7e1abe-c26e-43a8-8a1b-574cdf1fb851",
"username": "johndoe",
"email": "[email protected]",
"last_login": None,
"date_joined": "22-03-2017 22:11:32",
"balance": 0.02,
"current_server_time": "27-05-2018 23:21:55"
}
401: Unauthorized
Invalid credentials
{
"detail": "Invalid token."
}

post
Create User Account

https://sharedcloud.io
/api/v1/users/
This endpoint allows you to create a new user account
Request
Response
Headers
Authorization
required
string
Authentication token
Body Parameters
email
required
string
email of the user
password
required
string
password of the user
username
required
string
username of the user
200: OK
User account successfully created.
[
{
"uuid": "49aee734-018f-5947-a1d5-2750ba20f845",
"username": "johndoe",
"email": "[email protected]",
"last_login": "04-10-2018 16:02:28",
"date_joined": "26-09-2018 17:51:07",
"balance": 0.08,
"current_server_time": "05-10-2018 14:12:37"
}
]
401: Unauthorized
Invalid credentials
{
"detail": "Invalid token."
}

put
Update User Account

https://sharedcloud.io
/api/v1/users/account/
This endpoint allows you update a user account
Request
Response
Headers
Authorization
required
string
Authentication token
Body Parameters
email
required
string
email of the user
password
required
string
password of the user
username
required
string
username of the user
200: OK
Account successfully updated
[
{
"uuid": "29aee732-518f-4944-a1d5-17e0baa0f845",
"username": "johndoe",
"email": "[email protected]",
"last_login": "04-10-2018 16:02:28",
"date_joined": "26-09-2018 17:51:07",
"balance": 0.08,
"current_server_time": "05-10-2018 14:12:37"
}
]
401: Unauthorized
Invalid credentials
{
"detail": "Invalid token."
}

patch
Partially update User Account

https://sharedcloud.io
/api/v1/users/account/
This endpoint allows to partially update a user account
Request
Response
Headers
Authorization
required
string
Authentication token
Body Parameters
email
optional
string
email of the user
password
optional
string
password of the user
username
optional
string
username of the user
200: OK
Account successfully partially updated
[
{
"uuid": "29aee734-218f-6947-a7d5-27e07aa0f845",
"username": "johndoe",
"email": "[email protected]",
"last_login": "04-10-2018 16:02:28",
"date_joined": "26-09-2018 17:51:07",
"balance": 0.08,
"current_server_time": "05-10-2018 14:12:37"
}
]
401: Unauthorized
Invalid credentials
{
"detail": "Invalid token."
}

delete
Delete User Account

https://sharedcloud.io
/api/v1/users/account/
This endpoint allows you to delete a user account
Request
Response
Headers
Authorization
required
string
Authentication token
200: OK
Account successfully deleted
{}
401: Unauthorized
Invalid credentials
{
"detail": "Invalid token."
}