Returns the account.
URI
GET /accounts/${KEY}
URI parameters
Name | Type | Default | Description |
---|---|---|---|
KEY | string | required | Account identifier or me |
Response
Account
Example
curl -fsSL \
-XPOST ${ENDPOINT}/accounts/me \
-H"Authorization: Bearer ${ACCESS_TOKEN}" \
| jq '.'
{
"id": "9074b6aa-a980-44e9-8973-29501900aa79"
}
Removes the account.
NOTE: the operation is only allowed for admins (members of 'admin' predefined group)
URI
DELETE /accounts/${KEY}
URI parameters
Name | Type | Default | Description |
---|---|---|---|
KEY | string | required | Account identifier or me |
Response
Removed account
Example
curl -fsSL \
-XDELETE ${ENDPOINT}/accounts/me \
-H"Authorization: Bearer ${ACCESS_TOKEN}" \
| jq '.'
{
"id": "9074b6aa-a980-44e9-8973-29501900aa79"
}
Returns 204 Success status code if account is enabled, otherwise - 404 Not Found.
NOTE: the operation is only allowed for admins (members of 'admin' predefined group)
URI
GET /accounts/${KEY}/enabled
URI parameters
Name | Type | Default | Description |
---|---|---|---|
KEY | string | required | Account identifier or me |
Example
curl -fsSL \
-XGET ${ENDPOINT}/accounts/9074b6aa-a980-44e9-8973-29501900aa79/disabled \
-H"Authorization: Bearer ${ACCESS_TOKEN}" \
| jq '.'
Enables account.
NOTE: the operation is only allowed for admins (members of 'admin' predefined group)
URI
PUT /accounts/${KEY}/enabled
URI parameters
Name | Type | Default | Description |
---|---|---|---|
KEY | string | required | Account identifier or me |
Example
curl -fsSL \
-XPUT ${ENDPOINT}/accounts/9074b6aa-a980-44e9-8973-29501900aa79/disabled \
-H"Authorization: Bearer ${ACCESS_TOKEN}" \
| jq '.'
Disables account.
NOTE: the operation is only allowed for admins (members of 'admin' predefined group)
URI
DELETE /accounts/${KEY}/enabled
URI parameters
Name | Type | Default | Description |
---|---|---|---|
KEY | string | required | Account identifier or me |
Example
curl -fsSL \
-XDELETE ${ENDPOINT}/accounts/9074b6aa-a980-44e9-8973-29501900aa79/disabled \
-H"Authorization: Bearer ${ACCESS_TOKEN}" \
| jq '.'