Admin

List access control rules

SecurityToken
Request
query Parameters
type
string
action
string
user
string
group
string
page
integer

A page number within the paginated result set.

page_size
integer

Number of results to return per page.

Responses
200
get/admin/access-control-rules/
Request samples
rehive.admin.access_control_rules.get()
Response samples
application/json
{
  • "status": "string",
  • "data": {
    }
}

Create access control rule

SecurityToken
Request
Request Body schema: application/json
action
required
string (Action)
Enum: "allow" "deny"
type
required
string (Type)
Value: "ip"
value
required
string (Value) [ 1 .. 100 ] characters
label
string or null (Label) <= 50 characters
user
string or null (User)
group
string or null (Group)
Responses
201
post/admin/access-control-rules/
Request samples
application/json
{
  • "action": "allow",
  • "type": "ip",
  • "value": "string",
  • "label": "string",
  • "user": "string",
  • "group": "string"
}
Response samples
application/json
{
  • "status": "string",
  • "data": {
    }
}

Retrieve access control rule

SecurityToken
Request
path Parameters
id
required
string
Responses
200
get/admin/access-control-rules/{id}/
Request samples
rehive.admin.access_control_rules.get(
  access_control_rule_id
)
Response samples
application/json
{
  • "status": "string",
  • "data": {
    }
}

Updated access control rule

SecurityToken
Request
path Parameters
id
required
string
Request Body schema: application/json
action
required
string (Action)
Enum: "allow" "deny"
type
required
string (Type)
Value: "ip"
value
required
string (Value) [ 1 .. 100 ] characters
label
string or null (Label) <= 50 characters
user
string or null (User)
group
string or null (Group)
Responses
200
put/admin/access-control-rules/{id}/
Request samples
application/json
{
  • "action": "allow",
  • "type": "ip",
  • "value": "string",
  • "label": "string",
  • "user": "string",
  • "group": "string"
}
Response samples
application/json
{
  • "status": "string",
  • "data": {
    }
}

Prtially upadate access control rule

SecurityToken
Request
path Parameters
id
required
string
Request Body schema: application/json
action
required
string (Action)
Enum: "allow" "deny"
type
required
string (Type)
Value: "ip"
value
required
string (Value) [ 1 .. 100 ] characters
label
string or null (Label) <= 50 characters
user
string or null (User)
group
string or null (Group)
Responses
200
patch/admin/access-control-rules/{id}/
Request samples
application/json
{
  • "action": "allow",
  • "type": "ip",
  • "value": "string",
  • "label": "string",
  • "user": "string",
  • "group": "string"
}
Response samples
application/json
{
  • "status": "string",
  • "data": {
    }
}

Delete access control rule

SecurityToken
Request
path Parameters
id
required
string
Responses
204
delete/admin/access-control-rules/{id}/
Request samples
rehive.admin.access_control_rules.delete(
  access_control_rule_id
)
Response samples
application/json
{
  • "status": "string"
}

List account asset

SecurityToken
Request
query Parameters
account__name
string
account__name__contains
string
active
string
account
string
currency
string
balance
number
balance__gt
number
balance__lt
number
historic
string
orderby
string
user
string
page
integer

A page number within the paginated result set.

page_size
integer

Number of results to return per page.

Responses
200
get/admin/account-currencies/
Response samples
application/json
{
  • "status": "string",
  • "data": {
    }
}

List account definitions

SecurityToken
Request
query Parameters
archived
string
created
string
created__lt
string
created__gt
string
created__lte
string
created__gte
string
group
string
orderby
string
page
integer

A page number within the paginated result set.

page_size
integer

Number of results to return per page.

Responses
200
get/admin/account-definitions/
Request samples
rehive.admin.account.definitions.get().then(function (res) {
    ...
}, function (err) {
    ...
});
Response samples
application/json
{
  • "status": "string",
  • "data": {
    }
}

Create account definitions

SecurityToken
Request
Request Body schema: application/json
name
required
string (Name) [ 1 .. 200 ] characters
label
string or null (Label) <= 200 characters
recon
boolean (Recon)
archived
boolean (Archived)
Responses
201
post/admin/account-definitions/
Request samples
application/json
{
  • "name": "string",
  • "label": "string",
  • "recon": true,
  • "archived": true
}
Response samples
application/json
{
  • "status": "string",
  • "data": {
    }
}

Retrieve account definition

SecurityToken
Request
path Parameters
definition_name
required
string
Responses
200
get/admin/account-definitions/{definition_name}/
Request samples
rehive.admin.account_definitions.get({
  "name": accountDefinitionName
}).then( function (res) {
    ...
}, function (err) {
    ...
});
Response samples
application/json
{
  • "status": "string",
  • "data": {
    }
}

Updated account definition

SecurityToken
Request
path Parameters
definition_name
required
string
Request Body schema: application/json
name
required
string (Name) [ 1 .. 200 ] characters
label
string or null (Label) <= 200 characters
recon
boolean (Recon)
archived
boolean (Archived)
Responses
200
put/admin/account-definitions/{definition_name}/
Request samples
application/json
{
  • "name": "string",
  • "label": "string",
  • "recon": true,
  • "archived": true
}
Response samples
application/json
{
  • "status": "string",
  • "data": {
    }
}

Partially update account definition

SecurityToken
Request
path Parameters
definition_name
required
string
Request Body schema: application/json
name
required
string (Name) [ 1 .. 200 ] characters
label
string or null (Label) <= 200 characters
recon
boolean (Recon)
archived
boolean (Archived)
Responses
200
patch/admin/account-definitions/{definition_name}/
Request samples
application/json
{
  • "name": "string",
  • "label": "string",
  • "recon": true,
  • "archived": true
}
Response samples
application/json
{
  • "status": "string",
  • "data": {
    }
}

List account definitions groups

SecurityToken
Request
path Parameters
definition_name
required
string
query Parameters
page
integer

A page number within the paginated result set.

page_size
integer

Number of results to return per page.

Responses
200
get/admin/account-definitions/{definition_name}/groups/
Request samples
rehive.admin.account.definitions.groups.get(accountDefinitionName)
.then(function (res) {
    ...
}, function (err) {
    ...
});
Response samples
application/json
{
  • "status": "string",
  • "data": {
    }
}

Create account definitions

SecurityToken
Request
path Parameters
definition_name
required
string
Request Body schema: application/json
group
required
string (Group) non-empty
default
boolean (Default)
primary
boolean (Primary)
currencies
Array of strings
Responses
201
post/admin/account-definitions/{definition_name}/groups/
Request samples
application/json
{
  • "group": "string",
  • "default": true,
  • "primary": true,
  • "currencies": [
    ]
}
Response samples
application/json
{
  • "status": "string",
  • "data": {
    }
}

Retrieve account definitions group

SecurityToken
Request
path Parameters
definition_group_name
required
string
definition_name
required
string
Responses
200
get/admin/account-definitions/{definition_name}/groups/{definition_group_name}/
Request samples
rehive.admin.account.definitions.groups.get(
accountDefinitionName, {"name": groupName}).then(function (res) {
    ...
}, function (err) {
    ...
});
Response samples
application/json
{
  • "status": "string",
  • "data": {
    }
}

Update account definitions group

SecurityToken
Request
path Parameters
definition_group_name
required
string
definition_name
required
string
Request Body schema: application/json
default
boolean (Default)
primary
boolean (Primary)
currencies
Array of strings
archived
boolean (Archived)
Responses
200
put/admin/account-definitions/{definition_name}/groups/{definition_group_name}/
Request samples
application/json
{
  • "default": true,
  • "primary": true,
  • "currencies": [
    ],
  • "archived": true
}
Response samples
application/json
{
  • "status": "string",
  • "data": {
    }
}

Partially update account definitions group

SecurityToken
Request
path Parameters
definition_group_name
required
string
definition_name
required
string
Request Body schema: application/json
default
boolean (Default)
primary
boolean (Primary)
currencies
Array of strings
archived
boolean (Archived)
Responses
200
patch/admin/account-definitions/{definition_name}/groups/{definition_group_name}/
Request samples
application/json
{
  • "default": true,
  • "primary": true,
  • "currencies": [
    ],
  • "archived": true
}
Response samples
application/json
{
  • "status": "string",
  • "data": {
    }
}

List account definition group currencies

SecurityToken
Request
path Parameters
definition_group_name
required
string
definition_name
required
string
query Parameters
page
integer

A page number within the paginated result set.

page_size
integer

Number of results to return per page.

Responses
200
get/admin/account-definitions/{definition_name}/groups/{definition_group_name}/currencies/
Request samples
rehive.admin.account.definitions.groups.currencies.get(
  accountDefinitionName, groupName).then(function (res) {
    ...
}, function (err) {
    ...
});
Response samples
application/json
{
  • "status": "string",
  • "data": {
    }
}

Create account deffinition group currency

SecurityToken
Request
path Parameters
definition_group_name
required
string
definition_name
required
string
Request Body schema: application/json
currency
required
string (Currency) non-empty
Responses
201
post/admin/account-definitions/{definition_name}/groups/{definition_group_name}/currencies/
Request samples
application/json
{
  • "currency": "string"
}
Response samples
application/json
{
  • "status": "string",
  • "data": {
    }
}

Retrieve account definition group currency

SecurityToken
Request
path Parameters
currency_code
required
string
definition_group_name
required
string
definition_name
required
string
Responses
200
get/admin/account-definitions/{definition_name}/groups/{definition_group_name}/currencies/{currency_code}/
Request samples
rehive.admin.account.definitions.groups.currencies(
accountDefinitionName, groupName, {
  "code": currencyCode
}).then(function (res) {
    ...
}, function (err) {
    ...
});
Response samples
application/json
{
  • "status": "string",
  • "data": {
    }
}

Update account definition group currency

SecurityToken
Request
path Parameters
currency_code
required
string
definition_group_name
required
string
definition_name
required
string
Request Body schema: application/json
archived
boolean (Archived)
Responses
200
put/admin/account-definitions/{definition_name}/groups/{definition_group_name}/currencies/{currency_code}/
Request samples
application/json
{
  • "archived": true
}
Response samples
application/json
{
  • "status": "string",
  • "data": {
    }
}

Partially update account definition group currency

SecurityToken
Request
path Parameters
currency_code
required
string
definition_group_name
required
string
definition_name
required
string
Request Body schema: application/json
archived
boolean (Archived)
Responses
200
patch/admin/account-definitions/{definition_name}/groups/{definition_group_name}/currencies/{currency_code}/
Request samples
application/json
{
  • "archived": true
}
Response samples
application/json
{
  • "status": "string",
  • "data": {
    }
}

List accounts

SecurityToken
Request
query Parameters
reference
string
reference__contains
string
name
string
primary
string
archived
string
currency
string
user
string
user__isnull
string
group
string
active
string
balance
number
balance__gt
number
balance__lt
number
recon
string
search
string
orderby
string
page
integer

A page number within the paginated result set.

page_size
integer

Number of results to return per page.

Responses
200
get/admin/accounts/
Request samples
rehive.admin.accounts.get().then(function (res) {
    ...
}, function (err) {
    ...
});
Response samples
application/json
{
  • "status": "string",
  • "data": {
    }
}

Create accounts

SecurityToken
Request
Request Body schema: application/json
reference
string or null (Reference) <= 50 characters
name
required
string (Name) non-empty
label
string or null (Label) [ 1 .. 200 ] characters
primary
boolean (Primary)
recon
boolean (Recon)
user
string or null (User)
metadata
object or null (Metadata)
archived
boolean (Archived)
Responses
201
post/admin/accounts/
Request samples
application/json
{
  • "reference": "string",
  • "name": "string",
  • "label": "string",
  • "primary": true,
  • "recon": true,
  • "user": "string",
  • "metadata": { },
  • "archived": true
}
Response samples
application/json
{
  • "status": "string",
  • "data": {
    }
}

Retrieve account

SecurityToken
Request
path Parameters
reference
required
string
Responses
200
get/admin/accounts/{reference}/
Request samples
rehive.admin.accounts.get({
  "reference: accountReference"
}).then(function (res) {
    ...
}, function (err) {
    ...
});
Response samples
application/json
{
  • "status": "string",
  • "data": {
    }
}

Update account

SecurityToken
Request
path Parameters
reference
required
string
Request Body schema: application/json
name
required
string (Name) non-empty
label
string or null (Label) [ 1 .. 200 ] characters
primary
boolean (Primary)
recon
boolean (Recon)
metadata
object or null (Metadata)
archived
boolean (Archived)
Responses
200
put/admin/accounts/{reference}/
Request samples
application/json
{
  • "name": "string",
  • "label": "string",
  • "primary": true,
  • "recon": true,
  • "metadata": { },
  • "archived": true
}
Response samples
application/json
{
  • "status": "string",
  • "data": {
    }
}

Update account

SecurityToken
Request
path Parameters
reference
required
string
Request Body schema: application/json
name
required
string (Name) non-empty
label
string or null (Label) [ 1 .. 200 ] characters
primary
boolean (Primary)
recon
boolean (Recon)
metadata
object or null (Metadata)
archived
boolean (Archived)
Responses
200
patch/admin/accounts/{reference}/
Request samples
application/json
{
  • "name": "string",
  • "label": "string",
  • "primary": true,
  • "recon": true,
  • "metadata": { },
  • "archived": true
}
Response samples
application/json
{
  • "status": "string",
  • "data": {
    }
}

List account currencies

SecurityToken
Request
path Parameters
reference
required
string
query Parameters
account__name
string
account__name__contains
string
active
string
account
string
currency
string
balance
number
balance__gt
number
balance__lt
number
historic
string
orderby
string
user
string
page
integer

A page number within the paginated result set.

page_size
integer

Number of results to return per page.

Responses
200
get/admin/accounts/{reference}/currencies/
Request samples
admin.accounts.currencies.get(accountReference)
.then(function (res) {
    ...
}, function (err) {
    ...
});
Response samples
application/json
{
  • "status": "string",
  • "data": {
    }
}

Create account currency

SecurityToken
Request
path Parameters
reference
required
string
Request Body schema: application/json
currency
required
string (Currency) non-empty
active
boolean (Active)
Responses
201
post/admin/accounts/{reference}/currencies/
Request samples
application/json
{
  • "currency": "string",
  • "active": true
}
Response samples
application/json
{
  • "status": "string",
  • "data": {
    }
}

Retrieve account currency

SecurityToken
Request
path Parameters
code
required
string
reference
required
string
Responses
200
get/admin/accounts/{reference}/currencies/{code}/
Request samples
rehive.admin.accounts.currencies.get(accountReference, {
  "code": currencyCode
}).then(function (res) {
    ...
}, function (err) {
    ...
});
Response samples
application/json
{
  • "status": "string",
  • "data": {
    }
}

Update account currency

SecurityToken
Request
path Parameters
code
required
string
reference
required
string
Request Body schema: application/json
active
required
boolean (Active)
archived
boolean (Archived)
Responses
200
put/admin/accounts/{reference}/currencies/{code}/
Request samples
application/json
{
  • "active": true,
  • "archived": true
}
Response samples
application/json
{
  • "status": "string",
  • "data": {
    }
}

Partially update account currency

SecurityToken
Request
path Parameters
code
required
string
reference
required
string
Request Body schema: application/json
active
required
boolean (Active)
archived
boolean (Archived)
Responses
200
patch/admin/accounts/{reference}/currencies/{code}/
Request samples
application/json
{
  • "active": true,
  • "archived": true
}
Response samples
application/json
{
  • "status": "string",
  • "data": {