openapi: 3.0.3
info:
title: PebbleHost
description: ''
version: 1.0.0
servers:
-
url: 'https://panel.pebblehost.com'
paths:
/api/client/account:
get:
summary: 'Get user details.'
operationId: getUserDetails
description: 'Returns information about the currently authenticated user.'
parameters: []
responses:
200:
description: 'Authenticated user details'
content:
application/json:
schema:
type: object
example:
object: user
attributes:
id: null
admin: false
email: ethelyn.toy@langworth.com
language: en
properties:
object:
type: string
example: user
attributes:
type: object
properties:
id:
type: string
example: null
admin:
type: boolean
example: false
email:
type: string
example: ethelyn.toy@langworth.com
language:
type: string
example: en
tags:
- Account
/api/client/account/activity:
get:
summary: 'Get user activity logs.'
operationId: getUserActivityLogs
description: "Returns activity logs associated with the authenticated user's account."
parameters:
-
in: query
name: include
description: 'Additional relationships to include in the response'
example: actor
required: false
schema:
type: array
description: 'Additional relationships to include in the response'
example: actor
items:
type: string
enum:
- actor
-
in: query
name: 'filters[event]'
description: 'Filter by event type (partial)'
example: auth.success
required: false
schema:
type: string
description: 'Filter by event type (partial)'
example: auth.success
-
in: query
name: sort
description: 'Sort by field, by default the sort order is ascending, to sort in descending order prefix the field with a hypen (`-`)'
example: timestamp
required: false
schema:
type: string
description: 'Sort by field, by default the sort order is ascending, to sort in descending order prefix the field with a hypen (`-`)'
example: timestamp
-
in: query
name: page
description: 'Page number for pagination'
example: '2'
required: false
schema:
type: integer
description: 'Page number for pagination'
example: '2'
-
in: query
name: per_page
description: 'Maximum number of resources to return per-page'
example: '25'
required: false
schema:
type: integer
description: 'Maximum number of resources to return per-page'
example: '25'
responses:
200:
description: 'List of Activity Logs'
content:
application/json:
schema:
type: object
example:
object: list
data:
-
object: activity_log
attributes:
id: da39a3ee5e6b4b0d3255bfef95601890afd80709
batch: null
type: user
event: test
is_api: false
ip: null
description: 'Non explicabo soluta omnis expedita vel magni. Qui tempora saepe ut dicta et dolorum tempore. Similique et asperiores libero facilis animi rerum.'
properties: { }
has_additional_metadata: false
timestamp: '2025-03-14T18:50:02+00:00'
-
object: activity_log
attributes:
id: da39a3ee5e6b4b0d3255bfef95601890afd80709
batch: null
type: user
event: test
is_api: false
ip: null
description: 'Et sit odit est qui dolor placeat cupiditate qui. In maiores aut necessitatibus sed impedit suscipit. Sed voluptatem ab corrupti unde rerum.'
properties: { }
has_additional_metadata: false
timestamp: '2025-03-14T18:50:02+00:00'
meta:
pagination:
total: 2
count: 2
per_page: 25
current_page: 1
total_pages: 1
links: { }
properties:
object:
type: string
example: list
data:
type: array
example:
-
object: activity_log
attributes:
id: da39a3ee5e6b4b0d3255bfef95601890afd80709
batch: null
type: user
event: test
is_api: false
ip: null
description: 'Non explicabo soluta omnis expedita vel magni. Qui tempora saepe ut dicta et dolorum tempore. Similique et asperiores libero facilis animi rerum.'
properties: []
has_additional_metadata: false
timestamp: '2025-03-14T18:50:02+00:00'
-
object: activity_log
attributes:
id: da39a3ee5e6b4b0d3255bfef95601890afd80709
batch: null
type: user
event: test
is_api: false
ip: null
description: 'Et sit odit est qui dolor placeat cupiditate qui. In maiores aut necessitatibus sed impedit suscipit. Sed voluptatem ab corrupti unde rerum.'
properties: []
has_additional_metadata: false
timestamp: '2025-03-14T18:50:02+00:00'
items:
type: object
properties:
object:
type: string
example: activity_log
attributes:
type: object
properties:
id:
type: string
example: da39a3ee5e6b4b0d3255bfef95601890afd80709
batch:
type: string
example: null
type:
type: string
example: user
event:
type: string
example: test
is_api:
type: boolean
example: false
ip:
type: string
example: null
description:
type: string
example: 'Non explicabo soluta omnis expedita vel magni. Qui tempora saepe ut dicta et dolorum tempore. Similique et asperiores libero facilis animi rerum.'
properties:
type: object
properties: { }
has_additional_metadata:
type: boolean
example: false
timestamp:
type: string
example: '2025-03-14T18:50:02+00:00'
meta:
type: object
properties:
pagination:
type: object
properties:
total:
type: integer
example: 2
count:
type: integer
example: 2
per_page:
type: integer
example: 25
current_page:
type: integer
example: 1
total_pages:
type: integer
example: 1
links:
type: object
properties: { }
tags:
- Account
/api/client/account/deleted-servers:
get:
summary: 'Get deleted servers.'
operationId: getDeletedServers
description: 'Returns all deleted servers the authenticated user previously owned.'
parameters:
-
in: query
name: target_restore_server
description: 'If present and set to an ID of an active Server, a `restore_info` relation will be added to each `deleted_server` object, indicating if the deleted server has a backup and if that backup can be restored to the specified server id. The id of an existing record in the servers table.'
example: null
required: false
schema:
type: string
description: 'If present and set to an ID of an active Server, a `restore_info` relation will be added to each `deleted_server` object, indicating if the deleted server has a backup and if that backup can be restored to the specified server id. The id of an existing record in the servers table.'
example: null
-
in: query
name: 'filters[terminated_after]'
description: 'Filter servers that were terminated after a specific date'
example: ''
required: false
schema:
type: string
description: 'Filter servers that were terminated after a specific date'
example: ''
-
in: query
name: page
description: 'Page number for pagination'
example: '2'
required: false
schema:
type: integer
description: 'Page number for pagination'
example: '2'
-
in: query
name: per_page
description: 'Maximum number of resources to return per-page'
example: '10'
required: false
schema:
type: integer
description: 'Maximum number of resources to return per-page'
example: '10'
responses:
200:
description: 'List of Deleted Servers'
content:
application/json:
schema:
type: object
example:
object: list
data:
-
object: deleted_server
attributes:
id: 296
name: Hannah
memory: 2048
node_type: premium
ip: 144.152.251.200
port: 7397
terminated_at: '2025-03-14T18:50:02.000000Z'
-
object: deleted_server
attributes:
id: 279
name: Cornelius
memory: 2048
node_type: premium
ip: 144.100.54.109
port: 14072
terminated_at: '2025-03-14T18:50:03.000000Z'
meta:
pagination:
total: 2
count: 2
per_page: 10
current_page: 1
total_pages: 1
links: { }
properties:
object:
type: string
example: list
data:
type: array
example:
-
object: deleted_server
attributes:
id: 296
name: Hannah
memory: 2048
node_type: premium
ip: 144.152.251.200
port: 7397
terminated_at: '2025-03-14T18:50:02.000000Z'
-
object: deleted_server
attributes:
id: 279
name: Cornelius
memory: 2048
node_type: premium
ip: 144.100.54.109
port: 14072
terminated_at: '2025-03-14T18:50:03.000000Z'
items:
type: object
properties:
object:
type: string
example: deleted_server
attributes:
type: object
properties:
id:
type: integer
example: 296
name:
type: string
example: Hannah
memory:
type: integer
example: 2048
node_type:
type: string
example: premium
ip:
type: string
example: 144.152.251.200
port:
type: integer
example: 7397
terminated_at:
type: string
example: '2025-03-14T18:50:02.000000Z'
meta:
type: object
properties:
pagination:
type: object
properties:
total:
type: integer
example: 2
count:
type: integer
example: 2
per_page:
type: integer
example: 10
current_page:
type: integer
example: 1
total_pages:
type: integer
example: 1
links:
type: object
properties: { }
tags:
- Account
/api/client:
get:
summary: 'Get servers.'
operationId: getServers
description: "Returns all servers available to the authenticated user. Including\nboth servers they own and servers they are a subuser on."
parameters:
-
in: query
name: type
description: "Filters servers by the authenticated user's relationship to them.\n\nIf empty (the default), all servers the authenticated user has access to will be returned.\n\nIf set to `owner`, only servers the authenticated user directly owns will be returned.\n\n(Admin-only) If set to `admin`, all servers the authenticated user doesn't own will be returned.\n\n(Admin-only) If set to `admin-all`, all servers on the panel will be returned."
example: ''
required: false
schema:
type: string
description: "Filters servers by the authenticated user's relationship to them.\n\nIf empty (the default), all servers the authenticated user has access to will be returned.\n\nIf set to `owner`, only servers the authenticated user directly owns will be returned.\n\n(Admin-only) If set to `admin`, all servers the authenticated user doesn't own will be returned.\n\n(Admin-only) If set to `admin-all`, all servers on the panel will be returned."
example: ''
enum:
- owner
- admin
- admin-all
-
in: query
name: 'filters[uuid]'
description: "Filter by a server's uuid"
example: ''
required: false
schema:
type: string
description: "Filter by a server's uuid"
example: ''
-
in: query
name: 'filters[name]'
description: "Filter by a server's name"
example: ''
required: false
schema:
type: string
description: "Filter by a server's name"
example: ''
-
in: query
name: page
description: 'Page number for pagination'
example: '2'
required: false
schema:
type: integer
description: 'Page number for pagination'
example: '2'
-
in: query
name: per_page
description: 'Maximum number of resources to return per-page'
example: '50'
required: false
schema:
type: integer
description: 'Maximum number of resources to return per-page'
example: '50'
responses:
200:
description: 'List of Servers'
content:
application/json:
schema:
type: object
example:
object: list
data:
-
object: server
attributes:
server_owner: false
identifier: 5f1680e2
internal_id: null
external_id: null
parent: null
uuid: 5f1680e2-5833-4826-9028-ff14ce38812a
name: Aurelie
is_node_under_maintenance: false
in_conflict_state: false
sftp_details:
ip: 37.155.51.112
port: 2222
description: 'Sit voluptate modi quos hic totam tenetur. Sequi consequuntur reiciendis assumenda voluptatum. Eum est quos natus.'
limits:
memory: 512
swap: 0
disk: 512
io: 500
cpu: 0
threads: null
oom_killer: null
abilities: null
invocation: '/bin/bash echo "hello world"'
docker_image: 'foo/bar:latest'
egg_features:
- premium
- preinstalls
egg_name: 'Prof. Carmel Bashirian'
bot_type: null
owner_id: null
owner_email: null
feature_limits:
allocations: 1
backups: 4
databases: 1
subservers: 3
action: installing
status: null
status_reason: null
is_transferring: false
subdomain: null
node:
name: FactoryNode_Uh1muKWXBb
location: na
type: premium
status_link: 'https://status.pebblehost.com/nodes/name/FactoryNode_Uh1muKWXBb/d7c446ddd258'
migrate_by: null
timezone: Etc/GMT
relationships:
allocations:
object: list
data:
-
object: allocation
attributes:
id: 8848415
ip: 78.99.2.134
ip_alias: null
port: 44944
notes: null
is_default: false
variables:
object: null_resource
attributes: null
-
object: server
attributes:
server_owner: false
identifier: 7999f4a5
internal_id: null
external_id: null
parent: null
uuid: 7999f4a5-7bf0-442e-84a2-433d3a7ec2dd
name: Xander
is_node_under_maintenance: false
in_conflict_state: false
sftp_details:
ip: 58.229.72.185
port: 2222
description: 'A facilis neque qui facere vitae ea sunt. Magni laudantium ipsa cupiditate quidem vel pariatur et. Consequatur sit occaecati non velit quo.'
limits:
memory: 512
swap: 0
disk: 512
io: 500
cpu: 0
threads: null
oom_killer: null
abilities: null
invocation: '/bin/bash echo "hello world"'
docker_image: 'foo/bar:latest'
egg_features:
- premium
- preinstalls
egg_name: 'Albin Stoltenberg'
bot_type: null
owner_id: null
owner_email: null
feature_limits:
allocations: 1
backups: 4
databases: 1
subservers: 3
action: installing
status: null
status_reason: null
is_transferring: false
subdomain: null
node:
name: FactoryNode_BgDEccctOW
location: na
type: premium
status_link: 'https://status.pebblehost.com/nodes/name/FactoryNode_BgDEccctOW/a72149f822d5'
migrate_by: null
timezone: Etc/GMT
relationships:
allocations:
object: list
data:
-
object: allocation
attributes:
id: 8848419
ip: 114.185.13.48
ip_alias: null
port: 6070
notes: null
is_default: false
variables:
object: null_resource
attributes: null
meta:
pagination:
total: 2
count: 2
per_page: 50
current_page: 1
total_pages: 1
links: { }
properties:
object:
type: string
example: list
data:
type: array
example:
-
object: server
attributes:
server_owner: false
identifier: 5f1680e2
internal_id: null
external_id: null
parent: null
uuid: 5f1680e2-5833-4826-9028-ff14ce38812a
name: Aurelie
is_node_under_maintenance: false
in_conflict_state: false
sftp_details:
ip: 37.155.51.112
port: 2222
description: 'Sit voluptate modi quos hic totam tenetur. Sequi consequuntur reiciendis assumenda voluptatum. Eum est quos natus.'
limits:
memory: 512
swap: 0
disk: 512
io: 500
cpu: 0
threads: null
oom_killer: null
abilities: null
invocation: '/bin/bash echo "hello world"'
docker_image: 'foo/bar:latest'
egg_features:
- premium
- preinstalls
egg_name: 'Prof. Carmel Bashirian'
bot_type: null
owner_id: null
owner_email: null
feature_limits:
allocations: 1
backups: 4
databases: 1
subservers: 3
action: installing
status: null
status_reason: null
is_transferring: false
subdomain: null
node:
name: FactoryNode_Uh1muKWXBb
location: na
type: premium
status_link: 'https://status.pebblehost.com/nodes/name/FactoryNode_Uh1muKWXBb/d7c446ddd258'
migrate_by: null
timezone: Etc/GMT
relationships:
allocations:
object: list
data:
-
object: allocation
attributes:
id: 8848415
ip: 78.99.2.134
ip_alias: null
port: 44944
notes: null
is_default: false
variables:
object: null_resource
attributes: null
-
object: server
attributes:
server_owner: false
identifier: 7999f4a5
internal_id: null
external_id: null
parent: null
uuid: 7999f4a5-7bf0-442e-84a2-433d3a7ec2dd
name: Xander
is_node_under_maintenance: false
in_conflict_state: false
sftp_details:
ip: 58.229.72.185
port: 2222
description: 'A facilis neque qui facere vitae ea sunt. Magni laudantium ipsa cupiditate quidem vel pariatur et. Consequatur sit occaecati non velit quo.'
limits:
memory: 512
swap: 0
disk: 512
io: 500
cpu: 0
threads: null
oom_killer: null
abilities: null
invocation: '/bin/bash echo "hello world"'
docker_image: 'foo/bar:latest'
egg_features:
- premium
- preinstalls
egg_name: 'Albin Stoltenberg'
bot_type: null
owner_id: null
owner_email: null
feature_limits:
allocations: 1
backups: 4
databases: 1
subservers: 3
action: installing
status: null
status_reason: null
is_transferring: false
subdomain: null
node:
name: FactoryNode_BgDEccctOW
location: na
type: premium
status_link: 'https://status.pebblehost.com/nodes/name/FactoryNode_BgDEccctOW/a72149f822d5'
migrate_by: null
timezone: Etc/GMT
relationships:
allocations:
object: list
data:
-
object: allocation
attributes:
id: 8848419
ip: 114.185.13.48
ip_alias: null
port: 6070
notes: null
is_default: false
variables:
object: null_resource
attributes: null
items:
type: object
properties:
object:
type: string
example: server
attributes:
type: object
properties:
server_owner:
type: boolean
example: false
identifier:
type: string
example: 5f1680e2
internal_id:
type: string
example: null
external_id:
type: string
example: null
parent:
type: string
example: null
uuid:
type: string
example: 5f1680e2-5833-4826-9028-ff14ce38812a
name:
type: string
example: Aurelie
is_node_under_maintenance:
type: boolean
example: false
in_conflict_state:
type: boolean
example: false
sftp_details:
type: object
properties:
ip:
type: string
example: 37.155.51.112
port:
type: integer
example: 2222
description:
type: string
example: 'Sit voluptate modi quos hic totam tenetur. Sequi consequuntur reiciendis assumenda voluptatum. Eum est quos natus.'
limits:
type: object
properties:
memory:
type: integer
example: 512
swap:
type: integer
example: 0
disk:
type: integer
example: 512
io:
type: integer
example: 500
cpu:
type: integer
example: 0
threads:
type: string
example: null
oom_killer:
type: string
example: null
abilities:
type: string
example: null
invocation:
type: string
example: '/bin/bash echo "hello world"'
docker_image:
type: string
example: 'foo/bar:latest'
egg_features:
type: array
example:
- premium
- preinstalls
items:
type: string
egg_name:
type: string
example: 'Prof. Carmel Bashirian'
bot_type:
type: string
example: null
owner_id:
type: string
example: null
owner_email:
type: string
example: null
feature_limits:
type: object
properties:
allocations:
type: integer
example: 1
backups:
type: integer
example: 4
databases:
type: integer
example: 1
subservers:
type: integer
example: 3
action:
type: string
example: installing
status:
type: string
example: null
status_reason:
type: string
example: null
is_transferring:
type: boolean
example: false
subdomain:
type: string
example: null
node:
type: object
properties:
name:
type: string
example: FactoryNode_Uh1muKWXBb
location:
type: string
example: na
type:
type: string
example: premium
status_link:
type: string
example: 'https://status.pebblehost.com/nodes/name/FactoryNode_Uh1muKWXBb/d7c446ddd258'
migrate_by:
type: string
example: null
timezone:
type: string
example: Etc/GMT
relationships:
type: object
properties:
allocations:
type: object
properties:
object:
type: string
example: list
data:
type: array
example: [{ object: allocation, attributes: { id: 8848415, ip: 78.99.2.134, ip_alias: null, port: 44944, notes: null, is_default: false } }]
items: { type: object, properties: { object: { type: string, example: allocation }, attributes: { type: object, properties: { id: { type: integer, example: 8848415 }, ip: { type: string, example: 78.99.2.134 }, ip_alias: { type: string, example: null }, port: { type: integer, example: 44944 }, notes: { type: string, example: null }, is_default: { type: boolean, example: false } } } } }
variables:
type: object
properties:
object:
type: string
example: null_resource
attributes:
type: string
example: null
meta:
type: object
properties:
pagination:
type: object
properties:
total:
type: integer
example: 2
count:
type: integer
example: 2
per_page:
type: integer
example: 50
current_page:
type: integer
example: 1
total_pages:
type: integer
example: 1
links:
type: object
properties: { }
tags:
- Endpoints
/api/client/permissions:
get:
summary: 'Get permissions list.'
operationId: getPermissionsList
description: 'Returns all the subuser permissions available on the system.'
parameters: []
responses:
200:
description: 'List of Permissions'
content:
application/json:
schema:
type: object
example:
object: system_permissions
attributes:
permissions: []
properties:
object:
type: string
example: system_permissions
attributes:
type: object
properties:
permissions:
type: array
example: []
tags:
- Endpoints
/api/client/myip:
get:
summary: ''
operationId: getApiClientMyip
description: ''
parameters: []
responses:
200:
description: 'IP Address'
content:
text/plain:
schema:
type: string
example: 127.0.0.1
tags:
- Endpoints
'/api/client/servers/{server}':
get:
summary: 'Get server.'
operationId: getServer
description: 'Returns information about a given server.'
parameters: []
responses:
200:
description: Server
content:
application/json:
schema:
type: object
example:
object: server
attributes:
server_owner: false
identifier: 900530bb
internal_id: null
external_id: null
parent: null
uuid: 900530bb-84ae-4a40-82cf-4229633d952b
name: Hassie
is_node_under_maintenance: false
in_conflict_state: false
sftp_details:
ip: 10.107.85.153
port: 2222
description: 'Fuga labore veniam quia sint earum natus placeat sunt. Qui quia placeat ex vero dolores maxime. Magnam repudiandae et autem qui animi quisquam perspiciatis.'
limits:
memory: 512
swap: 0
disk: 512
io: 500
cpu: 0
threads: null
oom_killer: null
abilities: null
invocation: '/bin/bash echo "hello world"'
docker_image: 'foo/bar:latest'
egg_features:
- premium
- preinstalls
egg_name: 'Sibyl Torphy'
bot_type: null
owner_id: null
owner_email: null
feature_limits:
allocations: 1
backups: 4
databases: 1
subservers: 3
action: installing
status: null
status_reason: null
is_transferring: false
subdomain: null
node:
name: FactoryNode_J95CqJaBxX
location: na
type: premium
status_link: 'https://status.pebblehost.com/nodes/name/FactoryNode_J95CqJaBxX/9e306344fa96'
migrate_by: null
timezone: Etc/GMT
relationships:
allocations:
object: list
data:
-
object: allocation
attributes:
id: 8848423
ip: 128.254.252.83
ip_alias: null
port: 24593
notes: null
is_default: false
variables:
object: null_resource
attributes: null
properties:
object:
type: string
example: server
attributes:
type: object
properties:
server_owner:
type: boolean
example: false
identifier:
type: string
example: 900530bb
internal_id:
type: string
example: null
external_id:
type: string
example: null
parent:
type: string
example: null
uuid:
type: string
example: 900530bb-84ae-4a40-82cf-4229633d952b
name:
type: string
example: Hassie
is_node_under_maintenance:
type: boolean
example: false
in_conflict_state:
type: boolean
example: false
sftp_details:
type: object
properties:
ip:
type: string
example: 10.107.85.153
port:
type: integer
example: 2222
description:
type: string
example: 'Fuga labore veniam quia sint earum natus placeat sunt. Qui quia placeat ex vero dolores maxime. Magnam repudiandae et autem qui animi quisquam perspiciatis.'
limits:
type: object
properties:
memory:
type: integer
example: 512
swap:
type: integer
example: 0
disk:
type: integer
example: 512
io:
type: integer
example: 500
cpu:
type: integer
example: 0
threads:
type: string
example: null
oom_killer:
type: string
example: null
abilities:
type: string
example: null
invocation:
type: string
example: '/bin/bash echo "hello world"'
docker_image:
type: string
example: 'foo/bar:latest'
egg_features:
type: array
example:
- premium
- preinstalls
items:
type: string
egg_name:
type: string
example: 'Sibyl Torphy'
bot_type:
type: string
example: null
owner_id:
type: string
example: null
owner_email:
type: string
example: null
feature_limits:
type: object
properties:
allocations:
type: integer
example: 1
backups:
type: integer
example: 4
databases:
type: integer
example: 1
subservers:
type: integer
example: 3
action:
type: string
example: installing
status:
type: string
example: null
status_reason:
type: string
example: null
is_transferring:
type: boolean
example: false
subdomain:
type: string
example: null
node:
type: object
properties:
name:
type: string
example: FactoryNode_J95CqJaBxX
location:
type: string
example: na
type:
type: string
example: premium
status_link:
type: string
example: 'https://status.pebblehost.com/nodes/name/FactoryNode_J95CqJaBxX/9e306344fa96'
migrate_by:
type: string
example: null
timezone:
type: string
example: Etc/GMT
relationships:
type: object
properties:
allocations:
type: object
properties:
object:
type: string
example: list
data:
type: array
example:
-
object: allocation
attributes:
id: 8848423
ip: 128.254.252.83
ip_alias: null
port: 24593
notes: null
is_default: false
items:
type: object
properties:
object:
type: string
example: allocation
attributes:
type: object
properties: { id: { type: integer, example: 8848423 }, ip: { type: string, example: 128.254.252.83 }, ip_alias: { type: string, example: null }, port: { type: integer, example: 24593 }, notes: { type: string, example: null }, is_default: { type: boolean, example: false } }
variables:
type: object
properties:
object:
type: string
example: null_resource
attributes:
type: string
example: null
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- Server
parameters:
-
in: path
name: server
description: 'The server.'
example: 7cc97045-b39f-4f29-8509-6f8ec644ef6d
required: true
schema:
type: string
'/api/client/servers/{server}/resources':
get:
summary: 'Get server statistics.'
operationId: getServerStatistics
description: "Return the current resource utilization for a server. This value is cached for up to\n20 seconds at a time to ensure that repeated requests to this endpoint do not cause\na flood of unnecessary API calls."
parameters: []
responses:
200:
description: 'Server Stats'
content:
application/json:
schema:
type: object
example:
object: stats
attributes:
state: stopped
status: null
resources:
memory_bytes: 0
cpu_absolute: 0
disk_bytes: 0
network_rx_bytes: 0
network_tx_bytes: 0
uptime: 0
properties:
object:
type: string
example: stats
attributes:
type: object
properties:
state:
type: string
example: stopped
status:
type: string
example: null
resources:
type: object
properties:
memory_bytes:
type: integer
example: 0
cpu_absolute:
type: integer
example: 0
disk_bytes:
type: integer
example: 0
network_rx_bytes:
type: integer
example: 0
network_tx_bytes:
type: integer
example: 0
uptime:
type: integer
example: 0
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
502:
description: DaemonConnectionException
content:
application/json:
schema:
type: object
example:
errors:
-
code: DaemonConnectionException
status: '502'
detail: ''
properties:
errors:
type: array
example:
-
code: DaemonConnectionException
status: '502'
detail: ''
items:
type: object
properties:
code:
type: string
example: DaemonConnectionException
status:
type: string
example: '502'
detail:
type: string
example: ''
tags:
- Server
parameters:
-
in: path
name: server
description: 'The server.'
example: a593f358-418b-4494-bab7-5a70e8f00710
required: true
schema:
type: string
'/api/client/servers/{server}/activity':
get:
summary: 'Get server activity logs.'
operationId: getServerActivityLogs
description: 'Returns the activity logs for a server.'
parameters:
-
in: query
name: include
description: 'Additional relationships to include in the response'
example: actor
required: false
schema:
type: array
description: 'Additional relationships to include in the response'
example: actor
items:
type: string
enum:
- actor
-
in: query
name: 'filters[actor_id]'
description: 'Filter by actor'
example: ''
required: false
schema:
type: string
description: 'Filter by actor'
example: ''
-
in: query
name: 'filters[event]'
description: 'Filter by event type (partial)'
example: power.start
required: false
schema:
type: string
description: 'Filter by event type (partial)'
example: power.start
-
in: query
name: sort
description: 'Sort by field, by default the sort order is ascending, to sort in descending order prefix the field with a hypen (`-`)'
example: timestamp
required: false
schema:
type: string
description: 'Sort by field, by default the sort order is ascending, to sort in descending order prefix the field with a hypen (`-`)'
example: timestamp
-
in: query
name: page
description: 'Page number for pagination'
example: '2'
required: false
schema:
type: integer
description: 'Page number for pagination'
example: '2'
-
in: query
name: per_page
description: 'Maximum number of resources to return per-page'
example: '25'
required: false
schema:
type: integer
description: 'Maximum number of resources to return per-page'
example: '25'
responses:
200:
description: 'List of Activity Logs'
content:
application/json:
schema:
type: object
example:
object: list
data:
-
object: activity_log
attributes:
id: da39a3ee5e6b4b0d3255bfef95601890afd80709
batch: null
type: user
event: test
is_api: false
ip: null
description: 'Error vel qui qui eos sint qui et. Rem labore soluta nulla et aut. Nesciunt neque quia aut deserunt.'
properties: { }
has_additional_metadata: false
timestamp: '2025-03-14T18:50:05+00:00'
-
object: activity_log
attributes:
id: da39a3ee5e6b4b0d3255bfef95601890afd80709
batch: null
type: user
event: test
is_api: false
ip: null
description: 'Est et molestiae ipsam. Ut dignissimos aut aspernatur laboriosam non et. Perspiciatis et velit vel illum minima rerum eos.'
properties: { }
has_additional_metadata: false
timestamp: '2025-03-14T18:50:05+00:00'
meta:
pagination:
total: 2
count: 2
per_page: 25
current_page: 1
total_pages: 1
links: { }
properties:
object:
type: string
example: list
data:
type: array
example:
-
object: activity_log
attributes:
id: da39a3ee5e6b4b0d3255bfef95601890afd80709
batch: null
type: user
event: test
is_api: false
ip: null
description: 'Error vel qui qui eos sint qui et. Rem labore soluta nulla et aut. Nesciunt neque quia aut deserunt.'
properties: []
has_additional_metadata: false
timestamp: '2025-03-14T18:50:05+00:00'
-
object: activity_log
attributes:
id: da39a3ee5e6b4b0d3255bfef95601890afd80709
batch: null
type: user
event: test
is_api: false
ip: null
description: 'Est et molestiae ipsam. Ut dignissimos aut aspernatur laboriosam non et. Perspiciatis et velit vel illum minima rerum eos.'
properties: []
has_additional_metadata: false
timestamp: '2025-03-14T18:50:05+00:00'
items:
type: object
properties:
object:
type: string
example: activity_log
attributes:
type: object
properties:
id:
type: string
example: da39a3ee5e6b4b0d3255bfef95601890afd80709
batch:
type: string
example: null
type:
type: string
example: user
event:
type: string
example: test
is_api:
type: boolean
example: false
ip:
type: string
example: null
description:
type: string
example: 'Error vel qui qui eos sint qui et. Rem labore soluta nulla et aut. Nesciunt neque quia aut deserunt.'
properties:
type: object
properties: { }
has_additional_metadata:
type: boolean
example: false
timestamp:
type: string
example: '2025-03-14T18:50:05+00:00'
meta:
type: object
properties:
pagination:
type: object
properties:
total:
type: integer
example: 2
count:
type: integer
example: 2
per_page:
type: integer
example: 25
current_page:
type: integer
example: 1
total_pages:
type: integer
example: 1
links:
type: object
properties: { }
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- Server
parameters:
-
in: path
name: server
description: 'The server.'
example: 33fb0a5a-c072-4864-bf82-07cf99e76b0b
required: true
schema:
type: string
'/api/client/servers/{server}/activity/filters':
get:
summary: 'Get server activity log filters.'
operationId: getServerActivityLogFilters
description: 'Returns the possible values for a server.'
parameters: []
responses:
200:
description: 'List of available filters'
content:
application/json:
schema:
type: object
example:
events:
file:
- pull
- read
- write
- uploaded
- download
- compress
- delete
- decompress
- create-directory
- extract
- rename
- recycle
- restore
startup:
- edit
power:
- start
- restart
- kill
- stop
player:
- ban
- op
- deop
subuser:
- create
- delete
schedule:
- create
- update
- execute
task:
- create
- delete
subserver:
- create
- delete
- update
operation:
- cancel
console:
- command
database:
- create
backup:
- download-mysql
firewall:
- create
- ddos-create
- ddos-delete
- delete
allocation:
- create
whitelist:
- add
- remove
modpack:
- install
actors:
-
id: 1
email: user@example.com
-
id: 2
email: test@test.com
properties:
events:
type: object
properties:
file:
type: array
example:
- pull
- read
- write
- uploaded
- download
- compress
- delete
- decompress
- create-directory
- extract
- rename
- recycle
- restore
items:
type: string
startup:
type: array
example:
- edit
items:
type: string
power:
type: array
example:
- start
- restart
- kill
- stop
items:
type: string
player:
type: array
example:
- ban
- op
- deop
items:
type: string
subuser:
type: array
example:
- create
- delete
items:
type: string
schedule:
type: array
example:
- create
- update
- execute
items:
type: string
task:
type: array
example:
- create
- delete
items:
type: string
subserver:
type: array
example:
- create
- delete
- update
items:
type: string
operation:
type: array
example:
- cancel
items:
type: string
console:
type: array
example:
- command
items:
type: string
database:
type: array
example:
- create
items:
type: string
backup:
type: array
example:
- download-mysql
items:
type: string
firewall:
type: array
example:
- create
- ddos-create
- ddos-delete
- delete
items:
type: string
allocation:
type: array
example:
- create
items:
type: string
whitelist:
type: array
example:
- add
- remove
items:
type: string
modpack:
type: array
example:
- install
items:
type: string
actors:
type: array
example:
-
id: 1
email: user@example.com
-
id: 2
email: test@test.com
items:
type: object
properties:
id:
type: integer
example: 1
email:
type: string
example: user@example.com
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- Server
parameters:
-
in: path
name: server
description: 'The server.'
example: 76b0d3c6-faf5-49cd-aa53-6ae47c1ff6c1
required: true
schema:
type: string
'/api/client/servers/{server}/analytics':
get:
summary: 'Get Server resource analytics.'
operationId: getServerResourceAnalytics
description: 'Returns resource analytics for a server.'
parameters:
-
in: query
name: days
description: 'Number of days to get analytics for. Must not be greater than 10.'
example: 7
required: false
schema:
type: integer
description: 'Number of days to get analytics for. Must not be greater than 10.'
example: 7
responses:
200:
description: Analytics
content:
application/json:
schema:
type: array
items:
type: object
example:
-
t: 1726080323000
c: 0
m: 0
i: 0
o: 0
d: 0
-
t: 1726080385000
c: 0
m: 0
i: 0
o: 0
d: 0
-
t: 1726080444000
c: 0
m: 0
i: 0
o: 0
d: 0
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- Server
parameters:
-
in: path
name: server
description: 'The server.'
example: bfd33a13-b35d-4c9d-9dfb-c2a0d66cc606
required: true
schema:
type: string
'/api/client/servers/{server}/import':
post:
summary: 'Import server.'
operationId: importServer
description: 'Runs the server importer to import files from another host.'
parameters: []
responses:
204:
description: 'Import started'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
502:
description: DaemonConnectionException
content:
application/json:
schema:
type: object
example:
errors:
-
code: DaemonConnectionException
status: '502'
detail: ''
properties:
errors:
type: array
example:
-
code: DaemonConnectionException
status: '502'
detail: ''
items:
type: object
properties:
code:
type: string
example: DaemonConnectionException
status:
type: string
example: '502'
detail:
type: string
example: ''
tags:
- Server
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
protocol:
type: string
description: 'Protocol used to transfer data over.'
example: sftp
enum:
- ftp
- sftp
host:
type: string
description: 'Host to connect to.'
example: some-other-host.com
port:
type: number
description: 'Port to connect to. Must be at least 1. Must not be greater than 65535.'
example: 2022.0
user:
type: string
description: 'User to authenticate with.'
example: ''
pass:
type: string
description: 'Password to authenticate with.'
example: ''
required:
- protocol
- host
- port
- user
- pass
parameters:
-
in: path
name: server
description: 'The server.'
example: f6706474-4e0d-4869-b603-e29064af92e6
required: true
schema:
type: string
'/api/client/servers/{server}/migration':
get:
summary: 'Get server migration locations.'
operationId: getServerMigrationLocations
description: "Returns the locations a server is able to be migrate to based on it's tier."
parameters: []
responses:
200:
description: 'Available locations for migration or transfer'
content:
application/json:
schema:
type: array
items:
type: string
example:
- na
- eu
- au
- us
- fl
- sg
tags:
- Server
post:
summary: 'Migrate server.'
operationId: migrateServer
description: 'Starts the migration process for a server.'
parameters: []
responses:
204:
description: 'Migration started'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
502:
description: DaemonConnectionException
content:
application/json:
schema:
type: object
example:
errors:
-
code: DaemonConnectionException
status: '502'
detail: ''
properties:
errors:
type: array
example:
-
code: DaemonConnectionException
status: '502'
detail: ''
items:
type: object
properties:
code:
type: string
example: DaemonConnectionException
status:
type: string
example: '502'
detail:
type: string
example: ''
tags:
- Server
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
location:
type: string
description: 'Location to migrate the server to.'
example: na
enum:
- na
- eu
- au
- us
- fl
- sg
parameters:
-
in: path
name: server
description: 'The server.'
example: 35c20d73-bc2f-4170-ab26-e338e5898dc9
required: true
schema:
type: string
'/api/client/servers/{server}/settings/rename':
post:
summary: 'Rename server.'
operationId: renameServer
description: 'Renames a server.'
parameters: []
responses:
204:
description: 'Server renamed'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- Server
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: 'Name of your server. Must be at least 1 character. Must not be greater than 191 characters.'
example: 'My Minecraft Server'
description:
type: string
description: 'Description to store alongside the server.'
example: 'This is the main server.'
required:
- name
parameters:
-
in: path
name: server
description: 'The server.'
example: 5cb735d4-c95c-4159-bc40-a65560f6418b
required: true
schema:
type: string
'/api/client/servers/{server}/settings/subdomain':
post:
summary: 'Set server subdomain.'
operationId: setServerSubdomain
description: 'Sets the subdomain for a server.'
parameters: []
responses:
204:
description: 'Subdomain updated'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- Server
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
domain:
type: string
description: 'Subdomain to use, automatically suffixed by ".my.pebble.host".'
example: my-server
parameters:
-
in: path
name: server
description: 'The server.'
example: b94b6c17-f6a4-4c7c-8c0d-2ab02eb84e8d
required: true
schema:
type: string
'/api/client/servers/{server}/settings/timezone':
post:
summary: 'Adjusts server timezone.'
operationId: adjustsServerTimezone
description: 'Adjust the servers timezone'
parameters: []
responses:
204:
description: 'Timezone Updated'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- Server
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
timezone:
type: string
description: ''
example: Pacific/Guadalcanal
enum:
- Pacific/Kwajalein
- Pacific/Pago_Pago
- Pacific/Honolulu
- America/Anchorage
- America/Los_Angeles
- America/Denver
- America/Chicago
- America/New_York
- America/Halifax
- America/Argentina/Buenos_Aires
- Atlantic/South_Georgia
- Atlantic/Azores
- Etc/GMT
- Europe/London
- Europe/Berlin
- Europe/Athens
- Europe/Moscow
- Asia/Dubai
- Asia/Karachi
- Asia/Almaty
- Asia/Bangkok
- Asia/Shanghai
- Asia/Tokyo
- Australia/Sydney
- Pacific/Guadalcanal
- Pacific/Fiji
required:
- timezone
parameters:
-
in: path
name: server
description: 'The server.'
example: c6900484-aef2-4494-980a-f3c49841c203
required: true
schema:
type: string
'/api/client/servers/{server}/preinstalls':
get:
summary: 'Get server preinstalls.'
operationId: getServerPreinstalls
description: 'Returns a list of preinstalls that are able to be installed to the server.'
parameters: []
responses:
200:
description: 'List of Preinstalls'
content:
application/json:
schema:
type: object
example:
object: list
data:
-
object: preinstall
attributes:
id: null
name: 'Ms. Madaline Franecki'
description: 'Sed blanditiis illum.'
icon_url: 'https://dl.pebble.host/jar-icons/spigot.webp'
-
object: preinstall
attributes:
id: null
name: 'Roma Homenick'
description: 'Molestiae quia ex hic.'
icon_url: 'https://dl.pebble.host/jar-icons/spigot.webp'
properties:
object:
type: string
example: list
data:
type: array
example:
-
object: preinstall
attributes:
id: null
name: 'Ms. Madaline Franecki'
description: 'Sed blanditiis illum.'
icon_url: 'https://dl.pebble.host/jar-icons/spigot.webp'
-
object: preinstall
attributes:
id: null
name: 'Roma Homenick'
description: 'Molestiae quia ex hic.'
icon_url: 'https://dl.pebble.host/jar-icons/spigot.webp'
items:
type: object
properties:
object:
type: string
example: preinstall
attributes:
type: object
properties:
id:
type: string
example: null
name:
type: string
example: 'Ms. Madaline Franecki'
description:
type: string
example: 'Sed blanditiis illum.'
icon_url:
type: string
example: 'https://dl.pebble.host/jar-icons/spigot.webp'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- Server
post:
summary: 'Run server preinstall.'
operationId: runServerPreinstall
description: 'Runs a preinstall on a given server.'
parameters: []
responses: { }
tags:
- Server
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
id:
type: number
description: ''
example: 54.679170284
required:
- id
parameters:
-
in: path
name: server
description: 'The server.'
example: 35ad3a6a-eabe-4293-86da-a44e6b702c9d
required: true
schema:
type: string
'/api/client/servers/{server}/projects':
get:
summary: 'Get projects.'
operationId: getProjects
description: 'Returns a list of projects.'
parameters: []
responses:
200:
description: 'List of Projects'
content:
application/json:
schema:
type: object
example:
object: list
data:
-
object: project
attributes:
id: null
name: 'Idell Sanford'
description: 'Veniam quisquam alias.'
icon_url: /assets/logos/paper.webp
relationships:
versions:
object: list
data: []
-
object: project
attributes:
id: null
name: 'Vilma Toy'
description: 'Id libero tenetur.'
icon_url: /assets/logos/paper.webp
relationships:
versions:
object: list
data: []
properties:
object:
type: string
example: list
data:
type: array
example:
-
object: project
attributes:
id: null
name: 'Idell Sanford'
description: 'Veniam quisquam alias.'
icon_url: /assets/logos/paper.webp
relationships:
versions:
object: list
data: []
-
object: project
attributes:
id: null
name: 'Vilma Toy'
description: 'Id libero tenetur.'
icon_url: /assets/logos/paper.webp
relationships:
versions:
object: list
data: []
items:
type: object
properties:
object:
type: string
example: project
attributes:
type: object
properties:
id:
type: string
example: null
name:
type: string
example: 'Idell Sanford'
description:
type: string
example: 'Veniam quisquam alias.'
icon_url:
type: string
example: /assets/logos/paper.webp
relationships:
type: object
properties:
versions:
type: object
properties:
object:
type: string
example: list
data:
type: array
example: []
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- Server
parameters:
-
in: path
name: server
description: 'The server.'
example: 0a6644ce-4350-48c1-bf52-30dcc9063e09
required: true
schema:
type: string
'/api/client/servers/{server}/projects/{version_id}':
post:
summary: 'Install project version.'
operationId: installProjectVersion
description: 'Installs a ProjectVersion onto the server.'
parameters: []
responses:
200:
description: 'Jarfile Variable'
content:
application/json:
schema:
type: object
example:
object: egg_variable
attributes:
name: Henriette
description: 'Qui commodi perferendis impedit.'
env_variable: CUPIDITATE_QUI
dropdown_options: []
default_value: Black
server_value: null
is_editable: true
required_features: []
rules: required|string
properties:
object:
type: string
example: egg_variable
attributes:
type: object
properties:
name:
type: string
example: Henriette
description:
type: string
example: 'Qui commodi perferendis impedit.'
env_variable:
type: string
example: CUPIDITATE_QUI
dropdown_options:
type: array
example: []
default_value:
type: string
example: Black
server_value:
type: string
example: null
is_editable:
type: boolean
example: true
required_features:
type: array
example: []
rules:
type: string
example: required|string
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
502:
description: DaemonConnectionException
content:
application/json:
schema:
type: object
example:
errors:
-
code: DaemonConnectionException
status: '502'
detail: ''
properties:
errors:
type: array
example:
-
code: DaemonConnectionException
status: '502'
detail: ''
items:
type: object
properties:
code:
type: string
example: DaemonConnectionException
status:
type: string
example: '502'
detail:
type: string
example: ''
tags:
- Server
parameters:
-
in: path
name: server
description: 'The server.'
example: 97734284-b0e7-45b4-b438-581c7afe95c6
required: true
schema:
type: string
-
in: path
name: version_id
description: 'The ID of the version.'
example: 2
required: true
schema:
type: integer
'/api/client/servers/{server}/bot-node-versions':
get:
summary: 'Get server Node.js versions.'
operationId: getServerNodejsVersions
description: 'Returns a list of Node.js versions that can be selected by Node.js Bots.'
parameters: []
responses:
200:
description: 'List of Node.js versions'
content:
application/json:
schema:
type: array
items:
type: string
example:
- 22.2.0
- 18.14.0
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- Server
parameters:
-
in: path
name: server
description: 'The server.'
example: 84fe519a-25c6-418c-ae01-77648580748e
required: true
schema:
type: string
'/api/client/servers/{server}/notices':
get:
summary: 'Get server notices.'
operationId: getServerNotices
description: "Returns a list of banners to display for the server.\n\nThese banners may include:\n\n- resource warning (server constantly near or at resource limits)\n- modpack update"
parameters: []
responses:
200:
description: 'List of Notices'
content:
application/json:
schema:
type: object
example:
notes:
-
status: ''
color: 0
title: ''
html: ''
frontend_id: ''
resourceAnalytics:
type: mem
percentage: 0
memory_at_time: 0
modpackUpdate:
installed: ''
modpack:
id: 0
properties:
notes:
type: array
example:
-
status: ''
color: 0
title: ''
html: ''
frontend_id: ''
items:
type: object
properties:
status:
type: string
example: ''
color:
type: integer
example: 0
title:
type: string
example: ''
html:
type: string
example: ''
frontend_id:
type: string
example: ''
resourceAnalytics:
type: object
properties:
type:
type: string
example: mem
percentage:
type: integer
example: 0
memory_at_time:
type: integer
example: 0
modpackUpdate:
type: object
properties:
installed:
type: string
example: ''
modpack:
type: object
properties:
id:
type: integer
example: 0
tags:
- Server
parameters:
-
in: path
name: server
description: 'The server.'
example: 38d575e2-720c-4fb4-8984-ea0853484f83
required: true
schema:
type: string
'/api/client/servers/{server}/notices/resources':
delete:
summary: 'Dismiss server resource notice.'
operationId: dismissServerResourceNotice
description: 'Dismisses the resource warning notice for the given server.'
parameters: []
responses:
204:
description: 'Resource notice dismissed'
content:
application/json: { }
tags:
- Server
parameters:
-
in: path
name: server
description: 'The server.'
example: 3dd8f8c1-657a-4241-81a6-c406ff10fc76
required: true
schema:
type: string
'/api/client/servers/{server}/minecraft/adp':
get:
summary: 'Get Server ADP.'
operationId: getServerADP
description: 'Returns information about Advanced DDoS Protection for a server.'
parameters: []
responses:
200:
description: 'Advanced DDoS Protection details'
content:
application/json:
schema:
type: object
example:
protected: true
model:
id: 1
server_id: 1
allocation_id: 1
network_id: 1
backend_set_id: 1
domain_id: 1
domain: my-secure-server.secure.pebble.host
cname: uuid.ipv4.tcpshield.com
is_pebble_subdomain: true
verified: true
created_at: null
updated_at: null
properties:
protected:
type: boolean
example: true
model:
type: object
properties:
id:
type: integer
example: 1
server_id:
type: integer
example: 1
allocation_id:
type: integer
example: 1
network_id:
type: integer
example: 1
backend_set_id:
type: integer
example: 1
domain_id:
type: integer
example: 1
domain:
type: string
example: my-secure-server.secure.pebble.host
cname:
type: string
example: uuid.ipv4.tcpshield.com
is_pebble_subdomain:
type: boolean
example: true
verified:
type: boolean
example: true
created_at:
type: string
example: null
updated_at:
type: string
example: null
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Advanced DDoS Protection'
post:
summary: 'Enable Server ADP.'
operationId: enableServerADP
description: 'Enable Advanced DDoS Protection for a server.'
parameters:
-
in: query
name: domain
description: ''
example: excepturi
required: true
schema:
type: string
description: ''
example: excepturi
-
in: query
name: is_pebble_subdomain
description: ''
example: false
required: true
schema:
type: boolean
description: ''
example: false
responses:
204:
description: 'Advanced DDoS Protection enabled'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Advanced DDoS Protection'
patch:
summary: 'Update Server ADP.'
operationId: updateServerADP
description: 'Update the configuration for Advanced DDoS Protection on a server.'
parameters:
-
in: query
name: connections_per_second_threshold
description: ''
example: 8
required: true
schema:
type: integer
description: ''
example: 8
-
in: query
name: client_ban_seconds
description: ''
example: 20
required: true
schema:
type: integer
description: ''
example: 20
-
in: query
name: client_allow_seconds
description: ''
example: 11
required: true
schema:
type: integer
description: ''
example: 11
-
in: query
name: vpn_block
description: ''
example: true
required: true
schema:
type: boolean
description: ''
example: true
responses:
200:
description: 'Configuration updated'
content:
application/json:
schema:
type: object
example:
id: 4097
name: '10388'
protected_cname: xxxx.ipv4.tcpshield.com
txt_verification: xxxx
connections_per_second_threshold: 5
client_ban_seconds: 60
client_allow_seconds: 600
mitigation_message: xxxx
vpn_block: true
created_at: '2020-11-27T21:07:37Z'
updated_at: '2020-11-27T21:25:52Z'
properties:
id:
type: integer
example: 4097
name:
type: string
example: '10388'
protected_cname:
type: string
example: xxxx.ipv4.tcpshield.com
txt_verification:
type: string
example: xxxx
connections_per_second_threshold:
type: integer
example: 5
client_ban_seconds:
type: integer
example: 60
client_allow_seconds:
type: integer
example: 600
mitigation_message:
type: string
example: xxxx
vpn_block:
type: boolean
example: true
created_at:
type: string
example: '2020-11-27T21:07:37Z'
updated_at:
type: string
example: '2020-11-27T21:25:52Z'
400:
description: ADPNotConfiguredException
content:
application/json:
schema:
type: object
example:
errors:
-
code: ADPNotConfiguredException
status: '400'
detail: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
properties:
errors:
type: array
example:
-
code: ADPNotConfiguredException
status: '400'
detail: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
items:
type: object
properties:
code:
type: string
example: ADPNotConfiguredException
status:
type: string
example: '400'
detail:
type: string
example: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Advanced DDoS Protection'
delete:
summary: 'Disable Server ADP.'
operationId: disableServerADP
description: 'Disable Advanced DDoS Protection for a server.'
parameters: []
responses:
204:
description: 'Network deleted'
400:
description: ADPNotConfiguredException
content:
application/json:
schema:
type: object
example:
errors:
-
code: ADPNotConfiguredException
status: '400'
detail: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
properties:
errors:
type: array
example:
-
code: ADPNotConfiguredException
status: '400'
detail: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
items:
type: object
properties:
code:
type: string
example: ADPNotConfiguredException
status:
type: string
example: '400'
detail:
type: string
example: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Advanced DDoS Protection'
parameters:
-
in: path
name: server
description: 'The server.'
example: 4c3efcd5-fd8f-485d-ba32-7725692adf59
required: true
schema:
type: string
'/api/client/servers/{server}/minecraft/adp/settings':
get:
summary: 'Get Server ADP Settings.'
operationId: getServerADPSettings
description: 'Returns user-configurable settings for Advanced DDoS Protection.'
parameters: []
responses:
200:
description: Settings
content:
application/json:
schema:
type: object
example:
connections_per_second_threshold: 1
client_ban_seconds: 60
client_allow_seconds: 60
vpn_block: false
properties:
connections_per_second_threshold:
type: integer
example: 1
client_ban_seconds:
type: integer
example: 60
client_allow_seconds:
type: integer
example: 60
vpn_block:
type: boolean
example: false
400:
description: ADPNotConfiguredException
content:
application/json:
schema:
type: object
example:
errors:
-
code: ADPNotConfiguredException
status: '400'
detail: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
properties:
errors:
type: array
example:
-
code: ADPNotConfiguredException
status: '400'
detail: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
items:
type: object
properties:
code:
type: string
example: ADPNotConfiguredException
status:
type: string
example: '400'
detail:
type: string
example: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Advanced DDoS Protection'
parameters:
-
in: path
name: server
description: 'The server.'
example: a78cca56-34c0-4045-a7c4-08049982872c
required: true
schema:
type: string
'/api/client/servers/{server}/minecraft/adp/analytics':
get:
summary: 'Get Server ADP Analytics.'
operationId: getServerADPAnalytics
description: 'Returns analytics related to Advanced DDoS Protection for a server.'
parameters: []
responses:
200:
description: Analytics
content:
application/json:
schema:
type: object
example:
bandwidth:
free: 6839562
total: 6839562
premium: 0
unique_players:
value: 1
attacks_mitigated:
value: 1
properties:
bandwidth:
type: object
properties:
free:
type: integer
example: 6839562
total:
type: integer
example: 6839562
premium:
type: integer
example: 0
unique_players:
type: object
properties:
value:
type: integer
example: 1
attacks_mitigated:
type: object
properties:
value:
type: integer
example: 1
400:
description: ADPNotConfiguredException
content:
application/json:
schema:
type: object
example:
errors:
-
code: ADPNotConfiguredException
status: '400'
detail: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
properties:
errors:
type: array
example:
-
code: ADPNotConfiguredException
status: '400'
detail: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
items:
type: object
properties:
code:
type: string
example: ADPNotConfiguredException
status:
type: string
example: '400'
detail:
type: string
example: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Advanced DDoS Protection'
parameters:
-
in: path
name: server
description: 'The server.'
example: e5519c0e-7b42-4aea-b69c-9b5f08d0b9b7
required: true
schema:
type: string
'/api/client/servers/{server}/minecraft/adp/graphs':
get:
summary: 'Get Server ADP Graphs.'
operationId: getServerADPGraphs
description: "Returns data from Advanced DDoS Protection that can be displayed in\ngraphs for a server."
parameters: []
responses:
200:
description: 'Data for graphs'
content:
application/json:
schema:
type: object
example:
connections_per_second:
-
x: '2020-11-21T21:46:00Z'
'y': 1
-
x: '2020-11-21T22:00:00Z'
'y': 9
-
x: '2020-11-21T22:14:00Z'
'y': 6
players:
-
x: '2020-11-21T21:46:00Z'
'y': 19
-
x: '2020-11-21T22:00:00Z'
'y': 7
-
x: '2020-11-21T22:14:00Z'
'y': 7
versions:
1.7.10: 59
1.8.8: 83
1.10.2: 420
properties:
connections_per_second:
type: array
example:
-
x: '2020-11-21T21:46:00Z'
'y': 1
-
x: '2020-11-21T22:00:00Z'
'y': 9
-
x: '2020-11-21T22:14:00Z'
'y': 6
items:
type: object
properties:
x:
type: string
example: '2020-11-21T21:46:00Z'
'y':
type: integer
example: 1
players:
type: array
example:
-
x: '2020-11-21T21:46:00Z'
'y': 19
-
x: '2020-11-21T22:00:00Z'
'y': 7
-
x: '2020-11-21T22:14:00Z'
'y': 7
items:
type: object
properties:
x:
type: string
example: '2020-11-21T21:46:00Z'
'y':
type: integer
example: 19
versions:
type: object
properties:
1.7.10:
type: integer
example: 59
1.8.8:
type: integer
example: 83
1.10.2:
type: integer
example: 420
400:
description: ADPNotConfiguredException
content:
application/json:
schema:
type: object
example:
errors:
-
code: ADPNotConfiguredException
status: '400'
detail: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
properties:
errors:
type: array
example:
-
code: ADPNotConfiguredException
status: '400'
detail: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
items:
type: object
properties:
code:
type: string
example: ADPNotConfiguredException
status:
type: string
example: '400'
detail:
type: string
example: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Advanced DDoS Protection'
parameters:
-
in: path
name: server
description: 'The server.'
example: f16a93e4-90b6-43c0-b46b-e30eb309b96a
required: true
schema:
type: string
'/api/client/servers/{server}/minecraft/adp/verify':
post:
summary: 'Verify Server ADP Domain.'
operationId: verifyServerADPDomain
description: 'Verifies a domain for use with Advanced DDoS Protection.'
parameters: []
responses:
204:
description: 'Domain verified'
400:
description: ADPNotConfiguredException
content:
application/json:
schema:
type: object
example:
errors:
-
code: ADPNotConfiguredException
status: '400'
detail: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
properties:
errors:
type: array
example:
-
code: ADPNotConfiguredException
status: '400'
detail: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
items:
type: object
properties:
code:
type: string
example: ADPNotConfiguredException
status:
type: string
example: '400'
detail:
type: string
example: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Advanced DDoS Protection'
parameters:
-
in: path
name: server
description: 'The server.'
example: dc990299-2e0f-40d6-a1da-1a8bf3b7131d
required: true
schema:
type: string
'/api/client/servers/{server}/minecraft/adp/firewall':
get:
summary: 'Get Server ADP IP Firewall Rules.'
operationId: getServerADPIPFirewallRules
description: 'Returns a list of configured IP firewall rules.'
parameters: []
responses:
200:
description: 'List of IP Firewall Rules'
content:
application/json:
schema:
type: array
items:
type: object
example:
-
id: 1
cidr: 1.2.3.4/24
whitelist: true
-
id: 2
cidr: 1.1.1.1/32
whitelist: false
400:
description: ADPNotConfiguredException
content:
application/json:
schema:
type: object
example:
errors:
-
code: ADPNotConfiguredException
status: '400'
detail: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
properties:
errors:
type: array
example:
-
code: ADPNotConfiguredException
status: '400'
detail: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
items:
type: object
properties:
code:
type: string
example: ADPNotConfiguredException
status:
type: string
example: '400'
detail:
type: string
example: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Advanced DDoS Protection'
post:
summary: 'Create Server ADP IP Firewall Rule.'
operationId: createServerADPIPFirewallRule
description: 'Creates a new IP firewall rule.'
parameters: []
responses:
200:
description: 'IP Firewall Rule'
content:
application/json:
schema:
type: object
example:
id: 1000
cidr: 2.2.2.2/32
whitelist: true
properties:
id:
type: integer
example: 1000
cidr:
type: string
example: 2.2.2.2/32
whitelist:
type: boolean
example: true
400:
description: ADPNotConfiguredException
content:
application/json:
schema:
type: object
example:
errors:
-
code: ADPNotConfiguredException
status: '400'
detail: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
properties:
errors:
type: array
example:
-
code: ADPNotConfiguredException
status: '400'
detail: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
items:
type: object
properties:
code:
type: string
example: ADPNotConfiguredException
status:
type: string
example: '400'
detail:
type: string
example: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Advanced DDoS Protection'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
cidr:
type: string
description: 'Must match the regex /^([0-9]{1,3}\.){3}[0-9]{1,3}\/[0-9]+$/.'
example: 6.6.8.869/88419
whitelist:
type: boolean
description: ''
example: false
required:
- cidr
- whitelist
parameters:
-
in: path
name: server
description: 'The server.'
example: 57b38f33-297f-4ba0-a055-c102650d3ad1
required: true
schema:
type: string
'/api/client/servers/{server}/minecraft/adp/firewall/{id}':
delete:
summary: 'Delete Server ADP IP Firewall Rule.'
operationId: deleteServerADPIPFirewallRule
description: 'Delete an existing IP firewall rule.'
parameters: []
responses:
200:
description: 'Rule deleted'
content:
application/json:
schema:
type: object
example:
status: 0
message: 'IP firewall rule deleted successfully'
properties:
status:
type: integer
example: 0
message:
type: string
example: 'IP firewall rule deleted successfully'
400:
description: ADPNotConfiguredException
content:
application/json:
schema:
type: object
example:
errors:
-
code: ADPNotConfiguredException
status: '400'
detail: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
properties:
errors:
type: array
example:
-
code: ADPNotConfiguredException
status: '400'
detail: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
items:
type: object
properties:
code:
type: string
example: ADPNotConfiguredException
status:
type: string
example: '400'
detail:
type: string
example: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Advanced DDoS Protection'
parameters:
-
in: path
name: server
description: 'The server.'
example: 8375031d-4531-4d2f-a70e-f16dd970862c
required: true
schema:
type: string
-
in: path
name: id
description: 'The ID of the firewall.'
example: quidem
required: true
schema:
type: string
'/api/client/servers/{server}/minecraft/adp/asnFirewall':
get:
summary: 'Get Server ADP ASN Firewall Rules.'
operationId: getServerADPASNFirewallRules
description: 'Returns a list of configured ASN firewall rules.'
parameters: []
responses:
200:
description: 'List of ASN Firewall Rules'
content:
application/json:
schema:
type: array
items:
type: object
example:
-
id: 1
asn: 12345
whitelist: true
-
id: 2
asn: 54321
whitelist: false
400:
description: ADPNotConfiguredException
content:
application/json:
schema:
type: object
example:
errors:
-
code: ADPNotConfiguredException
status: '400'
detail: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
properties:
errors:
type: array
example:
-
code: ADPNotConfiguredException
status: '400'
detail: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
items:
type: object
properties:
code:
type: string
example: ADPNotConfiguredException
status:
type: string
example: '400'
detail:
type: string
example: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Advanced DDoS Protection'
post:
summary: 'Create Server ADP ASN Firewall Rule.'
operationId: createServerADPASNFirewallRule
description: 'Creates a new ASN firewall rule.'
parameters: []
responses:
200:
description: 'ASN Firewall Rule'
content:
application/json:
schema:
type: object
example:
id: 1000
asn: 13335
whitelist: true
properties:
id:
type: integer
example: 1000
asn:
type: integer
example: 13335
whitelist:
type: boolean
example: true
400:
description: ADPNotConfiguredException
content:
application/json:
schema:
type: object
example:
errors:
-
code: ADPNotConfiguredException
status: '400'
detail: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
properties:
errors:
type: array
example:
-
code: ADPNotConfiguredException
status: '400'
detail: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
items:
type: object
properties:
code:
type: string
example: ADPNotConfiguredException
status:
type: string
example: '400'
detail:
type: string
example: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Advanced DDoS Protection'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
asn:
type: integer
description: 'Must be at least 1.'
example: 39
whitelist:
type: boolean
description: ''
example: true
required:
- asn
- whitelist
parameters:
-
in: path
name: server
description: 'The server.'
example: dbc049d3-566c-4c71-9489-4c24d1a1e13f
required: true
schema:
type: string
'/api/client/servers/{server}/minecraft/adp/asnFirewall/{id}':
delete:
summary: 'Delete Server ADP ASN Firewall Rule.'
operationId: deleteServerADPASNFirewallRule
description: 'Delete an existing ASN firewall rule.'
parameters: []
responses:
200:
description: 'Rule deleted'
content:
application/json:
schema:
type: object
example:
status: 0
message: 'ASN firewall rule deleted successfully'
properties:
status:
type: integer
example: 0
message:
type: string
example: 'ASN firewall rule deleted successfully'
400:
description: ADPNotConfiguredException
content:
application/json:
schema:
type: object
example:
errors:
-
code: ADPNotConfiguredException
status: '400'
detail: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
properties:
errors:
type: array
example:
-
code: ADPNotConfiguredException
status: '400'
detail: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
items:
type: object
properties:
code:
type: string
example: ADPNotConfiguredException
status:
type: string
example: '400'
detail:
type: string
example: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Advanced DDoS Protection'
parameters:
-
in: path
name: server
description: 'The server.'
example: eb172e0a-d0f8-4b77-a09d-4c438fd5a7a0
required: true
schema:
type: string
-
in: path
name: id
description: 'The ID of the asnFirewall.'
example: dolores
required: true
schema:
type: string
'/api/client/servers/{server}/minecraft/adp/countryFirewall':
get:
summary: 'List Server ADP Country Firewall Rules.'
operationId: listServerADPCountryFirewallRules
description: 'Returns a list of configured country firewall rules.'
parameters: []
responses:
200:
description: 'List of Country Firewall Rules'
content:
application/json:
schema:
type: array
items:
type: object
example:
-
id: 1
country_code: AU
country_name: Australia
whitelist: true
-
id: 2
country_code: GB
country_name: 'United Kingdom'
whitelist: false
400:
description: ADPNotConfiguredException
content:
application/json:
schema:
type: object
example:
errors:
-
code: ADPNotConfiguredException
status: '400'
detail: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
properties:
errors:
type: array
example:
-
code: ADPNotConfiguredException
status: '400'
detail: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
items:
type: object
properties:
code:
type: string
example: ADPNotConfiguredException
status:
type: string
example: '400'
detail:
type: string
example: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Advanced DDoS Protection'
post:
summary: 'Create Server ADP Country Firewall Rule.'
operationId: createServerADPCountryFirewallRule
description: 'Creates a new country firewall rule.'
parameters: []
responses:
200:
description: 'Country Firewall Rules'
content:
application/json:
schema:
type: object
example:
id: 1000
country_id: RU
whitelist: false
properties:
id:
type: integer
example: 1000
country_id:
type: string
example: RU
whitelist:
type: boolean
example: false
400:
description: ADPNotConfiguredException
content:
application/json:
schema:
type: object
example:
errors:
-
code: ADPNotConfiguredException
status: '400'
detail: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
properties:
errors:
type: array
example:
-
code: ADPNotConfiguredException
status: '400'
detail: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
items:
type: object
properties:
code:
type: string
example: ADPNotConfiguredException
status:
type: string
example: '400'
detail:
type: string
example: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Advanced DDoS Protection'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
country_id:
type: string
description: 'Must be at least 1 character.'
example: nmcdtnagbqcamiprplxvuujzvhwzqpcynbucwzvjbyltjayrtwulyvgqvahrdhtrrwiwyrjtqvpeiqartntpljvsgi
whitelist:
type: boolean
description: ''
example: false
required:
- country_id
- whitelist
parameters:
-
in: path
name: server
description: 'The server.'
example: 449bb596-fbdf-4348-bb67-964f65900506
required: true
schema:
type: string
'/api/client/servers/{server}/minecraft/adp/countryFirewall/{id}':
delete:
summary: 'Delete Server ADP Country Firewall Rule.'
operationId: deleteServerADPCountryFirewallRule
description: 'Delete an existing country firewall rule.'
parameters: []
responses:
200:
description: 'Rule deleted'
content:
application/json:
schema:
type: object
example:
status: 0
message: 'Country firewall rule deleted successfully'
properties:
status:
type: integer
example: 0
message:
type: string
example: 'Country firewall rule deleted successfully'
400:
description: ADPNotConfiguredException
content:
application/json:
schema:
type: object
example:
errors:
-
code: ADPNotConfiguredException
status: '400'
detail: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
properties:
errors:
type: array
example:
-
code: ADPNotConfiguredException
status: '400'
detail: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
items:
type: object
properties:
code:
type: string
example: ADPNotConfiguredException
status:
type: string
example: '400'
detail:
type: string
example: 'You must have Advanced DDoS Protection configured in order to use this endpoint.'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Advanced DDoS Protection'
parameters:
-
in: path
name: server
description: 'The server.'
example: 446161b7-d6d4-4c36-a201-ae5b9090982e
required: true
schema:
type: string
-
in: path
name: id
description: 'The ID of the countryFirewall.'
example: non
required: true
schema:
type: string
'/api/client/servers/{server}/backups':
get:
summary: 'Get server backups.'
operationId: getServerBackups
description: "Returns all the backups for a given server instance in a paginated\nresult set."
parameters: []
responses:
200:
description: 'List of Backups'
content:
application/json:
schema:
type: object
example:
object: list
data:
-
object: backup
attributes:
id: null
uuid: null
is_successful: true
is_locked: false
is_exported: false
type: automatic
name: null
ignored_files: ''
checksum: ''
restore_fee: null
bytes: 0
created_at: '1970-01-01T00:00:00+00:00'
completed_at: '1970-01-01T00:00:00+00:00'
-
object: backup
attributes:
id: null
uuid: null
is_successful: true
is_locked: false
is_exported: false
type: automatic
name: null
ignored_files: ''
checksum: ''
restore_fee: null
bytes: 0
created_at: '1970-01-01T00:00:00+00:00'
completed_at: '1970-01-01T00:00:00+00:00'
properties:
object:
type: string
example: list
data:
type: array
example:
-
object: backup
attributes:
id: null
uuid: null
is_successful: true
is_locked: false
is_exported: false
type: automatic
name: null
ignored_files: ''
checksum: ''
restore_fee: null
bytes: 0
created_at: '1970-01-01T00:00:00+00:00'
completed_at: '1970-01-01T00:00:00+00:00'
-
object: backup
attributes:
id: null
uuid: null
is_successful: true
is_locked: false
is_exported: false
type: automatic
name: null
ignored_files: ''
checksum: ''
restore_fee: null
bytes: 0
created_at: '1970-01-01T00:00:00+00:00'
completed_at: '1970-01-01T00:00:00+00:00'
items:
type: object
properties:
object:
type: string
example: backup
attributes:
type: object
properties:
id:
type: string
example: null
uuid:
type: string
example: null
is_successful:
type: boolean
example: true
is_locked:
type: boolean
example: false
is_exported:
type: boolean
example: false
type:
type: string
example: automatic
name:
type: string
example: null
ignored_files:
type: string
example: ''
checksum:
type: string
example: ''
restore_fee:
type: string
example: null
bytes:
type: integer
example: 0
created_at:
type: string
example: '1970-01-01T00:00:00+00:00'
completed_at:
type: string
example: '1970-01-01T00:00:00+00:00'
tags:
- 'Server - Backups'
post:
summary: 'Create server backup.'
operationId: createServerBackup
description: 'Starts the backup process for a server.'
parameters: []
responses:
204:
description: 'Backup started'
content:
application/json: { }
tags:
- 'Server - Backups'
parameters:
-
in: path
name: server
description: 'The server.'
example: 351ce2cb-8a49-4081-8f18-00af3025d993
required: true
schema:
type: string
'/api/client/servers/{server}/backups/status':
get:
summary: 'Get server backup status.'
operationId: getServerBackupStatus
description: 'Return data about any current in-progress backup actions.'
parameters: []
responses:
200:
description: 'Backup status'
content:
application/json:
schema:
type: array
items:
type: object
example:
-
id: 587369
updated_time: 1722783103
serverid: 10388
action: export
progress: 70771329
total_steps: 2
step: 0
date: Aug-04-2024-06
daemon_name: na782
tags:
- 'Server - Backups'
parameters:
-
in: path
name: server
description: 'The server.'
example: 2238d4fc-4b2c-4410-a9ac-59629a36d77c
required: true
schema:
type: string
'/api/client/servers/{server}/backups/deletedRestore':
post:
summary: 'Restore deleted server backup.'
operationId: restoreDeletedServerBackup
description: 'Restore a backup from a deleted server onto this server.'
parameters: []
responses:
204:
description: 'Backup restore started'
content:
application/json: { }
tags:
- 'Server - Backups'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
deleted_server_id:
type: string
description: 'ID of a deleted server to restore the backup from. The id of an existing record in the deleted_servers table.'
example: 2
required:
- deleted_server_id
parameters:
-
in: path
name: server
description: 'The server.'
example: fcdda784-1ce1-4a41-bf56-381c90144fbf
required: true
schema:
type: string
'/api/client/servers/{server}/backups/{backup}/download':
get:
summary: 'Get server backup download url.'
operationId: getServerBackupDownloadUrl
description: 'Generate a download link for a backup that has been exported.'
parameters: []
responses:
200:
description: 'Download URL'
content:
application/json:
schema:
type: object
example:
object: signed_url
attributes:
url: 'https://...'
properties:
object:
type: string
example: signed_url
attributes:
type: object
properties:
url:
type: string
example: 'https://...'
tags:
- 'Server - Backups'
parameters:
-
in: path
name: server
description: 'The server.'
example: 0438cb7e-3b28-417e-9954-e3738db30ed2
required: true
schema:
type: string
-
in: path
name: backup
description: 'The backup.'
example: natus
required: true
schema:
type: string
'/api/client/servers/{server}/backups/{backup}/restore':
post:
summary: 'Restore server backup.'
operationId: restoreServerBackup
description: 'Restore a given backup onto the server.'
parameters: []
responses:
204:
description: 'Backup restore started'
content:
application/json: { }
tags:
- 'Server - Backups'
parameters:
-
in: path
name: server
description: 'The server.'
example: 718043fa-1383-4d3e-81ac-bd480584388e
required: true
schema:
type: string
-
in: path
name: backup
description: 'The backup.'
example: tempore
required: true
schema:
type: string
'/api/client/servers/{server}/backups/{backup}/export':
post:
summary: 'Export server backup.'
operationId: exportServerBackup
description: 'Start the export process for a given backup so it can be downloaded.'
parameters: []
responses:
204:
description: 'Backup export started'
content:
application/json: { }
tags:
- 'Server - Backups'
parameters:
-
in: path
name: server
description: 'The server.'
example: 2d093dd0-82cb-4d9d-a59f-d91d914fa481
required: true
schema:
type: string
-
in: path
name: backup
description: 'The backup.'
example: vel
required: true
schema:
type: string
'/api/client/servers/{server}/backups/{backup}':
delete:
summary: 'Delete server backup.'
operationId: deleteServerBackup
description: "Deletes a backup from the panel as well as the remote source where it is currently\nbeing stored."
parameters: []
responses:
204:
description: 'Backup deleted'
content:
application/json: { }
tags:
- 'Server - Backups'
parameters:
-
in: path
name: server
description: 'The server.'
example: 396c207a-57d7-4706-b7fa-21cb45e6711e
required: true
schema:
type: string
-
in: path
name: backup
description: 'The backup.'
example: qui
required: true
schema:
type: string
'/api/client/servers/{server}/websocket':
get:
summary: 'Get server websocket.'
operationId: getServerWebsocket
description: "Returns a token and endpoint used to connect to the WebSocket for this\nserver instance.\n\nThe token is a signed JWT that will expire every 10 minutes or so, this\ntoken is required to be refreshed periodically by the user in order to\nremain connected to the WebSocket."
parameters: []
responses:
200:
description: 'WebSocket Connection Information'
content:
application/json:
schema:
type: object
example:
data:
token: ''
socket: 'wss://demo.pebblehost.com/api/servers/%s/ws'
properties:
data:
type: object
properties:
token:
type: string
example: ''
socket:
type: string
example: 'wss://demo.pebblehost.com/api/servers/%s/ws'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Control'
parameters:
-
in: path
name: server
description: 'The server.'
example: 962b4a07-e96f-4488-999e-0c1ae39bf21e
required: true
schema:
type: string
'/api/client/servers/{server}/command':
post:
summary: 'Execute server command.'
operationId: executeServerCommand
description: "Runs a command on a server, if the server is offline an exception will be\nthrown."
parameters: []
responses:
204:
description: 'Command sent'
400:
description: ServerOfflineException
content:
application/json:
schema:
type: object
example:
errors:
-
code: ServerOfflineException
status: '400'
detail: 'Server is offline.'
properties:
errors:
type: array
example:
-
code: ServerOfflineException
status: '400'
detail: 'Server is offline.'
items:
type: object
properties:
code:
type: string
example: ServerOfflineException
status:
type: string
example: '400'
detail:
type: string
example: 'Server is offline.'
502:
description: DaemonConnectionException
content:
application/json:
schema:
type: object
example:
errors:
-
code: DaemonConnectionException
status: '502'
detail: ''
properties:
errors:
type: array
example:
-
code: DaemonConnectionException
status: '502'
detail: ''
items:
type: object
properties:
code:
type: string
example: DaemonConnectionException
status:
type: string
example: '502'
detail:
type: string
example: ''
tags:
- 'Server - Control'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
command:
type: string
description: 'Command to run on the server. Must be at least 1 character.'
example: 'say Hello, world!'
required:
- command
parameters:
-
in: path
name: server
description: 'The server.'
example: a61a52a7-1c41-4923-814f-d19141ee4186
required: true
schema:
type: string
'/api/client/servers/{server}/power':
post:
summary: 'Set server power.'
operationId: setServerPower
description: 'Perform a power action on the server.'
parameters: []
responses:
204:
description: 'Power action sent'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
502:
description: DaemonConnectionException
content:
application/json:
schema:
type: object
example:
errors:
-
code: DaemonConnectionException
status: '502'
detail: ''
properties:
errors:
type: array
example:
-
code: DaemonConnectionException
status: '502'
detail: ''
items:
type: object
properties:
code:
type: string
example: DaemonConnectionException
status:
type: string
example: '502'
detail:
type: string
example: ''
tags:
- 'Server - Control'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
signal:
type: string
description: 'Power action to perform on the server.'
example: start
enum:
- start
- stop
- restart
- kill
required:
- signal
parameters:
-
in: path
name: server
description: 'The server.'
example: 8aa7efa4-5270-4abb-86fc-9825993aa28f
required: true
schema:
type: string
'/api/client/servers/{server}/databases':
get:
summary: 'Get server databases.'
operationId: getServerDatabases
description: 'Return all the databases that belong to the given server.'
parameters: []
responses:
200:
description: 'List of Databases'
content:
application/json:
schema:
type: object
example:
object: list
data:
-
object: server_database
attributes:
id: ''
host:
address: 106.234.64.245
port: 3306
name: zudO7lE9Jv
username: ZrLrDxQ3ob
connections_from: '%'
max_connections: null
-
object: server_database
attributes:
id: ''
host:
address: 40.15.192.234
port: 3306
name: JDRYI98D5c
username: cuneyGKKtK
connections_from: '%'
max_connections: null
properties:
object:
type: string
example: list
data:
type: array
example:
-
object: server_database
attributes:
id: ''
host:
address: 106.234.64.245
port: 3306
name: zudO7lE9Jv
username: ZrLrDxQ3ob
connections_from: '%'
max_connections: null
-
object: server_database
attributes:
id: ''
host:
address: 40.15.192.234
port: 3306
name: JDRYI98D5c
username: cuneyGKKtK
connections_from: '%'
max_connections: null
items:
type: object
properties:
object:
type: string
example: server_database
attributes:
type: object
properties:
id:
type: string
example: ''
host:
type: object
properties:
address:
type: string
example: 106.234.64.245
port:
type: integer
example: 3306
name:
type: string
example: zudO7lE9Jv
username:
type: string
example: ZrLrDxQ3ob
connections_from:
type: string
example: '%'
max_connections:
type: string
example: null
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Databases'
post:
summary: 'Create server database.'
operationId: createServerDatabase
description: 'Create a new database for the given server.'
parameters: []
responses:
200:
description: Database
content:
application/json:
schema:
type: object
example:
object: server_database
attributes:
id: ''
host:
address: 194.114.55.200
port: 3306
name: 2VnYoM6fkh
username: 9suNq1UiR1
connections_from: '%'
max_connections: null
properties:
object:
type: string
example: server_database
attributes:
type: object
properties:
id:
type: string
example: ''
host:
type: object
properties:
address:
type: string
example: 194.114.55.200
port:
type: integer
example: 3306
name:
type: string
example: 2VnYoM6fkh
username:
type: string
example: 9suNq1UiR1
connections_from:
type: string
example: '%'
max_connections:
type: string
example: null
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Databases'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
database:
type: string
description: 'Name of the database to create. Must contain only letters, numbers, dashes and underscores. Must be at least 3 characters. Must not be greater than 48 characters.'
example: minecraft
remote:
type: string
description: 'Remote IPs and hostnames allowed to connect to this database. Set to % to allow all connections. Must match the regex /^[\w\-\/.%:]+$/.'
example: '%'
required:
- database
- remote
parameters:
-
in: path
name: server
description: 'The server.'
example: 46643fda-644d-4a6a-9b5d-c685725d552c
required: true
schema:
type: string
'/api/client/servers/{server}/databases/backups':
get:
summary: 'Get server database backups.'
operationId: getServerDatabaseBackups
description: 'Returns a list of available database backups for a server.'
parameters: []
responses:
200:
description: 'List of Database Backups'
content:
application/json:
schema:
type: object
example:
object: list
data:
-
object: database_backup
attributes:
id: null
uuid: null
is_successful: true
is_locked: false
is_exported: false
type: mysql
name: null
database_name: null
ignored_files: ''
checksum: ''
restore_fee: null
bytes: 0
created_at: '1970-01-01T00:00:00+00:00'
completed_at: '1970-01-01T00:00:00+00:00'
-
object: database_backup
attributes:
id: null
uuid: null
is_successful: true
is_locked: false
is_exported: false
type: mysql
name: null
database_name: null
ignored_files: ''
checksum: ''
restore_fee: null
bytes: 0
created_at: '1970-01-01T00:00:00+00:00'
completed_at: '1970-01-01T00:00:00+00:00'
properties:
object:
type: string
example: list
data:
type: array
example:
-
object: database_backup
attributes:
id: null
uuid: null
is_successful: true
is_locked: false
is_exported: false
type: mysql
name: null
database_name: null
ignored_files: ''
checksum: ''
restore_fee: null
bytes: 0
created_at: '1970-01-01T00:00:00+00:00'
completed_at: '1970-01-01T00:00:00+00:00'
-
object: database_backup
attributes:
id: null
uuid: null
is_successful: true
is_locked: false
is_exported: false
type: mysql
name: null
database_name: null
ignored_files: ''
checksum: ''
restore_fee: null
bytes: 0
created_at: '1970-01-01T00:00:00+00:00'
completed_at: '1970-01-01T00:00:00+00:00'
items:
type: object
properties:
object:
type: string
example: database_backup
attributes:
type: object
properties:
id:
type: string
example: null
uuid:
type: string
example: null
is_successful:
type: boolean
example: true
is_locked:
type: boolean
example: false
is_exported:
type: boolean
example: false
type:
type: string
example: mysql
name:
type: string
example: null
database_name:
type: string
example: null
ignored_files:
type: string
example: ''
checksum:
type: string
example: ''
restore_fee:
type: string
example: null
bytes:
type: integer
example: 0
created_at:
type: string
example: '1970-01-01T00:00:00+00:00'
completed_at:
type: string
example: '1970-01-01T00:00:00+00:00'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Databases'
parameters:
-
in: path
name: server
description: 'The server.'
example: 01801c8f-a4e4-4546-a4ca-734c407989f0
required: true
schema:
type: string
'/api/client/servers/{server}/databases/backups/{backup}/export':
post:
summary: 'Start server database export.'
operationId: startServerDatabaseExport
description: 'Starts the export process for a database so it can be downloaded.'
parameters: []
responses:
204:
description: 'Backup export started'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Databases'
parameters:
-
in: path
name: server
description: 'The server.'
example: e32856a7-8ee1-45fa-9d2e-c21ee1565d4c
required: true
schema:
type: string
-
in: path
name: backup
description: 'The backup.'
example: ad
required: true
schema:
type: string
'/api/client/servers/{server}/databases/backups/{backup}/download':
get:
summary: 'Get server database download url.'
operationId: getServerDatabaseDownloadUrl
description: 'Generate a download link for a database backup that has been exported.'
parameters: []
responses:
200:
description: 'Download URL'
content:
application/json:
schema:
type: object
example:
object: signed_url
attributes:
url: 'https://...'
properties:
object:
type: string
example: signed_url
attributes:
type: object
properties:
url:
type: string
example: 'https://...'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Databases'
parameters:
-
in: path
name: server
description: 'The server.'
example: 7c6eedfb-6090-4ea0-8c15-4238b0603c99
required: true
schema:
type: string
-
in: path
name: backup
description: 'The backup.'
example: iste
required: true
schema:
type: string
'/api/client/servers/{server}/databases/{database}/rotate-password':
post:
summary: 'Rotate server database password.'
operationId: rotateServerDatabasePassword
description: 'Rotates the password for the given database, returning the new password.'
parameters: []
responses:
200:
description: 'Database with Password'
content:
application/json:
schema:
type: object
example:
object: server_database
attributes:
id: ''
host:
address: 123.241.254.36
port: 3306
name: I6jd20F4cU
username: A64R4YTzq9
connections_from: '%'
max_connections: null
properties:
object:
type: string
example: server_database
attributes:
type: object
properties:
id:
type: string
example: ''
host:
type: object
properties:
address:
type: string
example: 123.241.254.36
port:
type: integer
example: 3306
name:
type: string
example: I6jd20F4cU
username:
type: string
example: A64R4YTzq9
connections_from:
type: string
example: '%'
max_connections:
type: string
example: null
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Databases'
parameters:
-
in: path
name: server
description: 'The server.'
example: e2a0b278-8fdb-4110-8ee5-c7228d904fd4
required: true
schema:
type: string
-
in: path
name: database
description: 'The database.'
example: 66865
required: true
schema:
type: integer
'/api/client/servers/{server}/databases/{database}':
delete:
summary: 'Delete server database.'
operationId: deleteServerDatabase
description: 'Removes a database from the server.'
parameters: []
responses:
204:
description: 'Database deleted'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Databases'
parameters:
-
in: path
name: server
description: 'The server.'
example: f1697230-d1e1-4d7f-9ef9-1eec52868622
required: true
schema:
type: string
-
in: path
name: database
description: 'The database.'
example: 66865
required: true
schema:
type: integer
'/api/client/servers/{server}/databases/{database}/export':
post:
summary: 'Get server database dump.'
operationId: getServerDatabaseDump
description: 'Returns a SQL dump of the database.'
parameters: []
responses:
200:
description: 'SQL Dump'
content:
application/json:
schema:
type: object
nullable: true
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Databases'
parameters:
-
in: path
name: server
description: 'The server.'
example: fc031161-fde2-4d12-a05a-7dcd6d02007c
required: true
schema:
type: string
-
in: path
name: database
description: 'The database.'
example: 66865
required: true
schema:
type: integer
'/api/client/servers/{server}/databases/{database}/import':
post:
summary: 'Import server database.'
operationId: importServerDatabase
description: 'Imports the given SQL dump to the database.'
parameters: []
responses:
204:
description: 'Database imported'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Databases'
parameters:
-
in: path
name: server
description: 'The server.'
example: e2817eb1-6e5f-4192-b5b6-ac502579e36b
required: true
schema:
type: string
-
in: path
name: database
description: 'The database.'
example: 66865
required: true
schema:
type: integer
'/api/client/servers/{server}/files/list':
get:
summary: 'List files.'
operationId: listFiles
description: 'Returns a listing of files in a given directory.'
parameters:
-
in: query
name: directory
description: 'Directory to list files in.'
example: /
required: false
schema:
type: string
description: 'Directory to list files in.'
example: /
responses:
200:
description: 'List of Files'
content:
application/json:
schema:
type: object
example:
object: list
data:
-
object: file_object
attributes:
name: null
modified: '2025-03-14T18:50:13+00:00'
mode: null
size: null
mime: application/octet-stream
-
object: file_object
attributes:
name: null
modified: '2025-03-14T18:50:13+00:00'
mode: null
size: null
mime: application/octet-stream
properties:
object:
type: string
example: list
data:
type: array
example:
-
object: file_object
attributes:
name: null
modified: '2025-03-14T18:50:13+00:00'
mode: null
size: null
mime: application/octet-stream
-
object: file_object
attributes:
name: null
modified: '2025-03-14T18:50:13+00:00'
mode: null
size: null
mime: application/octet-stream
items:
type: object
properties:
object:
type: string
example: file_object
attributes:
type: object
properties:
name:
type: string
example: null
modified:
type: string
example: '2025-03-14T18:50:13+00:00'
mode:
type: string
example: null
size:
type: string
example: null
mime:
type: string
example: application/octet-stream
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
502:
description: DaemonConnectionException
content:
application/json:
schema:
type: object
example:
errors:
-
code: DaemonConnectionException
status: '502'
detail: ''
properties:
errors:
type: array
example:
-
code: DaemonConnectionException
status: '502'
detail: ''
items:
type: object
properties:
code:
type: string
example: DaemonConnectionException
status:
type: string
example: '502'
detail:
type: string
example: ''
tags:
- 'Server - File Management'
parameters:
-
in: path
name: server
description: 'The server.'
example: e05336d7-5f6d-435a-8d5a-58bd1c99f957
required: true
schema:
type: string
'/api/client/servers/{server}/files/search':
get:
summary: 'Search files.'
operationId: searchFiles
description: 'Searches the files of a server.'
parameters:
-
in: query
name: root
description: 'Directory to start searching for files in, subdirectories will be recursed.'
example: /
required: false
schema:
type: string
description: 'Directory to start searching for files in, subdirectories will be recursed.'
example: /
-
in: query
name: query
description: 'Search query to match file names against.'
example: .jar
required: true
schema:
type: string
description: 'Search query to match file names against.'
example: .jar
responses:
200:
description: 'List of search results'
content:
application/json:
schema:
type: object
example:
object: list
data:
-
object: file_search_object
attributes:
name: null
path: null
mode: null
mime: application/octet-stream
rank: null
-
object: file_search_object
attributes:
name: null
path: null
mode: null
mime: application/octet-stream
rank: null
properties:
object:
type: string
example: list
data:
type: array
example:
-
object: file_search_object
attributes:
name: null
path: null
mode: null
mime: application/octet-stream
rank: null
-
object: file_search_object
attributes:
name: null
path: null
mode: null
mime: application/octet-stream
rank: null
items:
type: object
properties:
object:
type: string
example: file_search_object
attributes:
type: object
properties:
name:
type: string
example: null
path:
type: string
example: null
mode:
type: string
example: null
mime:
type: string
example: application/octet-stream
rank:
type: string
example: null
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
502:
description: DaemonConnectionException
content:
application/json:
schema:
type: object
example:
errors:
-
code: DaemonConnectionException
status: '502'
detail: ''
properties:
errors:
type: array
example:
-
code: DaemonConnectionException
status: '502'
detail: ''
items:
type: object
properties:
code:
type: string
example: DaemonConnectionException
status:
type: string
example: '502'
detail:
type: string
example: ''
tags:
- 'Server - File Management'
parameters:
-
in: path
name: server
description: 'The server.'
example: f68a8c35-ff1a-4277-9ef6-679192b00c9d
required: true
schema:
type: string
'/api/client/servers/{server}/files/contents':
get:
summary: 'Get file.'
operationId: getFile
description: 'Return the contents of a specified file for the user.'
parameters:
-
in: query
name: file
description: 'File path to read contents from.'
example: server.properties
required: true
schema:
type: string
description: 'File path to read contents from.'
example: server.properties
responses:
200:
description: 'Raw file content'
content:
application/json:
schema:
type: object
nullable: true
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
502:
description: DaemonConnectionException
content:
application/json:
schema:
type: object
example:
errors:
-
code: DaemonConnectionException
status: '502'
detail: ''
properties:
errors:
type: array
example:
-
code: DaemonConnectionException
status: '502'
detail: ''
items:
type: object
properties:
code:
type: string
example: DaemonConnectionException
status:
type: string
example: '502'
detail:
type: string
example: ''
tags:
- 'Server - File Management'
parameters:
-
in: path
name: server
description: 'The server.'
example: ad940f63-4189-4b40-81fe-e35164c0c8db
required: true
schema:
type: string
'/api/client/servers/{server}/files/download':
get:
summary: 'Get file download url.'
operationId: getFileDownloadUrl
description: "Generates a one-time token with a link that the user can use to\ndownload a given file."
parameters:
-
in: query
name: file_path
description: 'Download an individual file. (ignores root and paths). This field is required when paths is not present.'
example: server.properties
required: false
schema:
type: string
description: 'Download an individual file. (ignores root and paths). This field is required when paths is not present.'
example: server.properties
-
in: query
name: root
description: 'Base directory to download files from. (allows downloading of folders and multiple files, download will be a .tar.gz archive).'
example: /
required: false
schema:
type: string
description: 'Base directory to download files from. (allows downloading of folders and multiple files, download will be a .tar.gz archive).'
example: /
-
in: query
name: paths
description: 'File paths to download.'
example:
- world
required: false
schema:
type: array
description: 'File paths to download.'
example:
- world
items:
type: string
responses:
200:
description: 'Download URL'
content:
application/json:
schema:
type: object
example:
object: signed_url
attributes:
url: 'https://...'
properties:
object:
type: string
example: signed_url
attributes:
type: object
properties:
url:
type: string
example: 'https://...'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - File Management'
parameters:
-
in: path
name: server
description: 'The server.'
example: 1295402c-a011-44b7-b419-a3fe4a560f69
required: true
schema:
type: string
'/api/client/servers/{server}/files/sizes':
get:
summary: 'Get file sizes.'
operationId: getFileSizes
description: "Returns a map of file and directory names to their recursively\ncalculated size."
parameters:
-
in: query
name: root
description: 'Base directory to calculate file sizes within.'
example: /
required: false
schema:
type: string
description: 'Base directory to calculate file sizes within.'
example: /
responses:
200:
description: 'File sizes'
content:
application/json:
schema:
type: object
example:
world: 4096
plugins: 256
eula.txt: 200
server.properties: 1600
properties:
world:
type: integer
example: 4096
plugins:
type: integer
example: 256
eula.txt:
type: integer
example: 200
server.properties:
type: integer
example: 1600
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
502:
description: DaemonConnectionException
content:
application/json:
schema:
type: object
example:
errors:
-
code: DaemonConnectionException
status: '502'
detail: ''
properties:
errors:
type: array
example:
-
code: DaemonConnectionException
status: '502'
detail: ''
items:
type: object
properties:
code:
type: string
example: DaemonConnectionException
status:
type: string
example: '502'
detail:
type: string
example: ''
tags:
- 'Server - File Management'
post:
summary: 'Get file sizes till.'
operationId: getFileSizesTill
description: "Similar to get file sizes except with additional filtering and a required\nlimit at which the calcuation will be stopped. Useful for determining the\nsize of files that will be affected by a mass-operation without waiting\nall day for the exact size of all files and directories to be calculated."
parameters: []
responses:
200:
description: 'Total size of files'
content:
application/json:
schema:
type: object
example:
total_size: 4096
limit_reached: false
properties:
total_size:
type: integer
example: 4096
limit_reached:
type: boolean
example: false
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
502:
description: DaemonConnectionException
content:
application/json:
schema:
type: object
example:
errors:
-
code: DaemonConnectionException
status: '502'
detail: ''
properties:
errors:
type: array
example:
-
code: DaemonConnectionException
status: '502'
detail: ''
items:
type: object
properties:
code:
type: string
example: DaemonConnectionException
status:
type: string
example: '502'
detail:
type: string
example: ''
tags:
- 'Server - File Management'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
root:
type: string
description: 'Base directory to start the size calcuation from.'
example: /
paths:
type: array
description: 'File paths to include in the size calcuation.'
example:
- world
items:
type: string
limit:
type: integer
description: 'Number of bytes to stop the size calculation at.'
example: 5368709120
required:
- limit
parameters:
-
in: path
name: server
description: 'The server.'
example: 75a27839-3883-45ba-8ffa-48463a0236f5
required: true
schema:
type: string
'/api/client/servers/{server}/files/upload':
get:
summary: 'Get file upload url.'
operationId: getFileUploadUrl
description: "Returns an URL where files can be uploaded to. Each URL may only be used\nonce.\n\nTo uploads files, send a POST request to the returned URL with a\nForm Data body containing a `files` field. A single request may upload\nmultiple files, just add multiple items to the `files` field in the\nrequest body.\n\nTo upload multiple files simultaneously, use multiple separate upload\nURLs."
parameters: []
responses:
200:
description: 'Upload URL'
content:
application/json:
schema:
type: object
example:
object: signed_url
attributes:
url: 'https://...'
properties:
object:
type: string
example: signed_url
attributes:
type: object
properties:
url:
type: string
example: 'https://...'
tags:
- 'Server - File Management'
parameters:
-
in: path
name: server
description: 'The server.'
example: 3e8ef946-8603-494f-a580-b7dbae4f756b
required: true
schema:
type: string
'/api/client/servers/{server}/files/copy':
post:
summary: 'Copy file.'
operationId: copyFile
description: 'Copies a file on the server.'
parameters: []
responses:
204:
description: 'File copied'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
502:
description: DaemonConnectionException
content:
application/json:
schema:
type: object
example:
errors:
-
code: DaemonConnectionException
status: '502'
detail: ''
properties:
errors:
type: array
example:
-
code: DaemonConnectionException
status: '502'
detail: ''
items:
type: object
properties:
code:
type: string
example: DaemonConnectionException
status:
type: string
example: '502'
detail:
type: string
example: ''
tags:
- 'Server - File Management'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
location:
type: string
description: 'File path to duplicate.'
example: server.properties
required:
- location
parameters:
-
in: path
name: server
description: 'The server.'
example: 3ce00e14-6659-4374-86d0-cdc728f801fa
required: true
schema:
type: string
'/api/client/servers/{server}/files/write':
post:
summary: 'Write file.'
operationId: writeFile
description: "Writes the contents of the specified file to the server.\n\nThe path of the file to write to is set by the `file` query parameter.\n\nThe content to write to the file must be in the body."
parameters:
-
in: query
name: file
description: 'File path to write contents to.'
example: server.properties
required: true
schema:
type: string
description: 'File path to write contents to.'
example: server.properties
responses:
204:
description: 'File updated'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
502:
description: DaemonConnectionException
content:
application/json:
schema:
type: object
example:
errors:
-
code: DaemonConnectionException
status: '502'
detail: ''
properties:
errors:
type: array
example:
-
code: DaemonConnectionException
status: '502'
detail: ''
items:
type: object
properties:
code:
type: string
example: DaemonConnectionException
status:
type: string
example: '502'
detail:
type: string
example: ''
tags:
- 'Server - File Management'
parameters:
-
in: path
name: server
description: 'The server.'
example: bcf40347-7535-4cb2-bf53-9f03590bab29
required: true
schema:
type: string
'/api/client/servers/{server}/files/compress':
post:
summary: 'Compress files.'
operationId: compressFiles
description: "Compresses multiple files and or directories into an archive. Runs in\nthe background."
parameters: []
responses:
204:
description: 'Compression started in the background'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
502:
description: DaemonConnectionException
content:
application/json:
schema:
type: object
example:
errors:
-
code: DaemonConnectionException
status: '502'
detail: ''
properties:
errors:
type: array
example:
-
code: DaemonConnectionException
status: '502'
detail: ''
items:
type: object
properties:
code:
type: string
example: DaemonConnectionException
status:
type: string
example: '502'
detail:
type: string
example: ''
tags:
- 'Server - File Management'
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
root:
type: string
description: 'Base directory to compress files in.'
example: /
files:
type: array
description: 'Files to include in the archive.'
example:
- server.properties
items:
type: string
parameters:
-
in: path
name: server
description: 'The server.'
example: 68eae6c5-ffee-46c2-ae89-4c61e6e7a5cb
required: true
schema:
type: string
'/api/client/servers/{server}/files/extract':
post:
summary: 'Extract file.'
operationId: extractFile
description: 'Extracts an archive into a directory. Runs in the background.'
parameters: []
responses:
204:
description: 'Extraction started in the background'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
502:
description: DaemonConnectionException
content:
application/json:
schema:
type: object
example:
errors:
-
code: DaemonConnectionException
status: '502'
detail: ''
properties:
errors:
type: array
example:
-
code: DaemonConnectionException
status: '502'
detail: ''
items:
type: object
properties:
code:
type: string
example: DaemonConnectionException
status:
type: string
example: '502'
detail:
type: string
example: ''
tags:
- 'Server - File Management'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
root:
type: string
description: 'Base directory to extract the archive to.'
example: /
file:
type: string
description: 'Name of the archive to extract (relative to root).'
example: world.tar.gz
required:
- file
parameters:
-
in: path
name: server
description: 'The server.'
example: b7b22403-6947-4a0d-b0d3-f9b5e61c5c97
required: true
schema:
type: string
'/api/client/servers/{server}/files/delete':
post:
summary: 'Delete files'
operationId: deleteFiles
description: 'Deletes files or folders for the server in the given root directory.'
parameters: []
responses:
204:
description: 'Files deleted'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
502:
description: DaemonConnectionException
content:
application/json:
schema:
type: object
example:
errors:
-
code: DaemonConnectionException
status: '502'
detail: ''
properties:
errors:
type: array
example:
-
code: DaemonConnectionException
status: '502'
detail: ''
items:
type: object
properties:
code:
type: string
example: DaemonConnectionException
status:
type: string
example: '502'
detail:
type: string
example: ''
tags:
- 'Server - File Management'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
root:
type: string
description: 'Base directory to delete files in.'
example: /
files:
type: array
description: 'Files to delete.'
example:
- server.properties
items:
type: string
permanent:
type: boolean
description: 'By default files are moved into a trash bin where they can be recovered within 24 hours. This option bypasses the trash bin and will permanently delete the files.'
example: false
required:
- root
parameters:
-
in: path
name: server
description: 'The server.'
example: 0bdbb4e7-9e6b-483c-912b-1b28bfa7ce9e
required: true
schema:
type: string
'/api/client/servers/{server}/files/create-folder':
post:
summary: 'Create directory.'
operationId: createDirectory
description: 'Creates a new directory on the server.'
parameters: []
responses:
204:
description: 'Directory created'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
502:
description: DaemonConnectionException
content:
application/json:
schema:
type: object
example:
errors:
-
code: DaemonConnectionException
status: '502'
detail: ''
properties:
errors:
type: array
example:
-
code: DaemonConnectionException
status: '502'
detail: ''
items:
type: object
properties:
code:
type: string
example: DaemonConnectionException
status:
type: string
example: '502'
detail:
type: string
example: ''
tags:
- 'Server - File Management'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
root:
type: string
description: 'Base directory to create the directory in.'
example: /
name:
type: string
description: 'Name of the directory to create (relative to root).'
example: stuff
required:
- name
parameters:
-
in: path
name: server
description: 'The server.'
example: e76ff11e-5586-408e-9f1b-3e2381f852ad
required: true
schema:
type: string
'/api/client/servers/{server}/files/chmod':
post:
summary: 'Chmod files.'
operationId: chmodFiles
description: 'Updates file permissions for file(s) in the given root directory.'
parameters: []
responses:
204:
description: 'File permissions updated'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
502:
description: DaemonConnectionException
content:
application/json:
schema:
type: object
example:
errors:
-
code: DaemonConnectionException
status: '502'
detail: ''
properties:
errors:
type: array
example:
-
code: DaemonConnectionException
status: '502'
detail: ''
items:
type: object
properties:
code:
type: string
example: DaemonConnectionException
status:
type: string
example: '502'
detail:
type: string
example: ''
tags:
- 'Server - File Management'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
root:
type: string
description: 'Base directory to chmod files in.'
example: /
files:
type: array
description: 'Files to set permissions on.'
example:
-
file: server.properties
mode: '644'
items:
type: object
properties:
file:
type: string
description: 'File path to set the permission on.'
example: server.properties
mode:
type: integer
description: 'Permissions to set on the file.'
example: 644
required:
- file
- mode
required:
- root
parameters:
-
in: path
name: server
description: 'The server.'
example: cf1b4b00-f8a3-4774-8a26-26cca91e0ee8
required: true
schema:
type: string
'/api/client/servers/{server}/files/restore':
post:
summary: 'Restore files.'
operationId: restoreFiles
description: 'Restores recycled files on a server.'
parameters: []
responses:
204:
description: 'Files restored'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
502:
description: DaemonConnectionException
content:
application/json:
schema:
type: object
example:
errors:
-
code: DaemonConnectionException
status: '502'
detail: ''
properties:
errors:
type: array
example:
-
code: DaemonConnectionException
status: '502'
detail: ''
items:
type: object
properties:
code:
type: string
example: DaemonConnectionException
status:
type: string
example: '502'
detail:
type: string
example: ''
tags:
- 'Server - File Management'
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
ids:
type: array
description: 'Recycled file ids to restore.'
example:
- 1
items:
type: integer
root:
type: string
description: 'Directory to restore files from. This field is required when ids is not present.'
example: /
paths:
type: array
description: 'File paths to restore.'
example:
- ''
items:
type: string
parameters:
-
in: path
name: server
description: 'The server.'
example: 6032fcdf-e25f-4dab-968d-e1dc08a411db
required: true
schema:
type: string
'/api/client/servers/{server}/files/rename':
put:
summary: 'Rename file.'
operationId: renameFile
description: 'Renames a file on the server.'
parameters: []
responses:
204:
description: 'Files renamed'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
502:
description: DaemonConnectionException
content:
application/json:
schema:
type: object
example:
errors:
-
code: DaemonConnectionException
status: '502'
detail: ''
properties:
errors:
type: array
example:
-
code: DaemonConnectionException
status: '502'
detail: ''
items:
type: object
properties:
code:
type: string
example: DaemonConnectionException
status:
type: string
example: '502'
detail:
type: string
example: ''
tags:
- 'Server - File Management'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
root:
type: string
description: 'Base directory to rename files in.'
example: /
files:
type: array
description: 'Files to rename.'
example:
-
from: server.properties
to: server.properties.old
items:
type: object
properties:
from:
type: string
description: 'Source file path.'
example: server.properties
to:
type: string
description: 'Destination file path.'
example: server.properties.old
required:
- from
- to
required:
- root
parameters:
-
in: path
name: server
description: 'The server.'
example: e1bb119d-b36b-438c-b5fb-eb47a2d62d44
required: true
schema:
type: string
'/api/client/servers/{server}/files/pull':
get:
summary: 'List file pulls.'
operationId: listFilePulls
description: 'Returns an list of ongoing file pulls on the server.'
parameters: []
responses:
200:
description: 'List of File Pulls'
content:
application/json:
schema:
type: object
example:
object: list
attributes:
-
id: ''
path: ''
downloaded: 0
size: 0
properties:
object:
type: string
example: list
attributes:
type: array
example:
-
id: ''
path: ''
downloaded: 0
size: 0
items:
type: object
properties:
id:
type: string
example: ''
path:
type: string
example: ''
downloaded:
type: integer
example: 0
size:
type: integer
example: 0
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
502:
description: DaemonConnectionException
content:
application/json:
schema:
type: object
example:
errors:
-
code: DaemonConnectionException
status: '502'
detail: ''
properties:
errors:
type: array
example:
-
code: DaemonConnectionException
status: '502'
detail: ''
items:
type: object
properties:
code:
type: string
example: DaemonConnectionException
status:
type: string
example: '502'
detail:
type: string
example: ''
tags:
- 'Server - File Management'
post:
summary: 'Start file pull.'
operationId: startFilePull
description: 'Starts a file pull in the background for the server.'
parameters: []
responses:
204:
description: 'File pull started in the background'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
502:
description: DaemonConnectionException
content:
application/json:
schema:
type: object
example:
errors:
-
code: DaemonConnectionException
status: '502'
detail: ''
properties:
errors:
type: array
example:
-
code: DaemonConnectionException
status: '502'
detail: ''
items:
type: object
properties:
code:
type: string
example: DaemonConnectionException
status:
type: string
example: '502'
detail:
type: string
example: ''
tags:
- 'Server - File Management'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
url:
type: string
description: 'URL to download the file from. Must be a valid URL.'
example: 'https://example.com/minecraft.jar'
root:
type: string
description: 'Base directory to download the file to.'
example: /
filename:
type: string
description: 'Force the file to be downloaded with the given name.'
example: minecraft.jar
use_header:
type: boolean
description: 'Attempt to use the "Content-Disposition" header to set the file name.'
example: false
foreground:
type: boolean
description: 'Run the file pull in the foreground, only returning a response once the file has been downloaded.'
example: false
required:
- url
parameters:
-
in: path
name: server
description: 'The server.'
example: d63961b7-ffeb-4edd-afa1-079f4aac13ad
required: true
schema:
type: string
'/api/client/servers/{server}/files/pull/{id}':
delete:
summary: 'Cancel file pull.'
operationId: cancelFilePull
description: 'Cancels an on-going file pull for a server, any partially downloaded content will be removed.'
parameters: []
responses:
204:
description: 'File pull canceled'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
502:
description: DaemonConnectionException
content:
application/json:
schema:
type: object
example:
errors:
-
code: DaemonConnectionException
status: '502'
detail: ''
properties:
errors:
type: array
example:
-
code: DaemonConnectionException
status: '502'
detail: ''
items:
type: object
properties:
code:
type: string
example: DaemonConnectionException
status:
type: string
example: '502'
detail:
type: string
example: ''
tags:
- 'Server - File Management'
parameters:
-
in: path
name: server
description: 'The server.'
example: 269e71f2-2c91-44bd-aa61-91e8a82aa275
required: true
schema:
type: string
-
in: path
name: id
description: 'The ID of the pull.'
example: quia
required: true
schema:
type: string
'/api/client/servers/{server}/operations':
get:
summary: 'Get server operations.'
operationId: getServerOperations
description: 'Returns all operations that are being ran on the server.'
parameters: []
responses:
200:
description: 'List of Operations'
content:
application/json:
schema:
type: object
example:
operations:
-
id: ''
operation: ''
file: ''
properties:
operations:
type: array
example:
-
id: ''
operation: ''
file: ''
items:
type: object
properties:
id:
type: string
example: ''
operation:
type: string
example: ''
file:
type: string
example: ''
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
502:
description: DaemonConnectionException
content:
application/json:
schema:
type: object
example:
errors:
-
code: DaemonConnectionException
status: '502'
detail: ''
properties:
errors:
type: array
example:
-
code: DaemonConnectionException
status: '502'
detail: ''
items:
type: object
properties:
code:
type: string
example: DaemonConnectionException
status:
type: string
example: '502'
detail:
type: string
example: ''
tags:
- 'Server - File Management'
parameters:
-
in: path
name: server
description: 'The server.'
example: 62410998-2fb8-40cb-b428-d9a5cc992412
required: true
schema:
type: string
'/api/client/servers/{server}/operations/{operation}':
delete:
summary: 'Cancel server operation.'
operationId: cancelServerOperation
description: 'Cancels a running operation on a server.'
parameters: []
responses:
204:
description: 'Operation canceled'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
502:
description: DaemonConnectionException
content:
application/json:
schema:
type: object
example:
errors:
-
code: DaemonConnectionException
status: '502'
detail: ''
properties:
errors:
type: array
example:
-
code: DaemonConnectionException
status: '502'
detail: ''
items:
type: object
properties:
code:
type: string
example: DaemonConnectionException
status:
type: string
example: '502'
detail:
type: string
example: ''
tags:
- 'Server - File Management'
parameters:
-
in: path
name: server
description: 'The server.'
example: 06e95912-9058-45d2-8bc0-0f39807473fd
required: true
schema:
type: string
-
in: path
name: operation
description: 'The operation.'
example: qui
required: true
schema:
type: string
'/api/client/servers/{server}/firewall':
get:
summary: 'Get server firewall rules.'
operationId: getServerFirewallRules
description: 'Returns all the firewall rules for a given server instance.'
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
object: list
data:
-
object: server_firewall
attributes:
id: null
ip: 49.58.25.231
port: 54246
priority: 30
allow: true
-
object: server_firewall
attributes:
id: null
ip: 76.113.210.119
port: 5180
priority: 13
allow: true
properties:
object:
type: string
example: list
data:
type: array
example:
-
object: server_firewall
attributes:
id: null
ip: 49.58.25.231
port: 54246
priority: 30
allow: true
-
object: server_firewall
attributes:
id: null
ip: 76.113.210.119
port: 5180
priority: 13
allow: true
items:
type: object
properties:
object:
type: string
example: server_firewall
attributes:
type: object
properties:
id:
type: string
example: null
ip:
type: string
example: 49.58.25.231
port:
type: integer
example: 54246
priority:
type: integer
example: 30
allow:
type: boolean
example: true
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Firewall'
post:
summary: 'Create server firewall rule.'
operationId: createServerFirewallRule
description: 'Adds a firewall rule to a server.'
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
object: server_firewall
attributes:
id: null
ip: 59.192.229.134
port: 59668
priority: 75
allow: true
properties:
object:
type: string
example: server_firewall
attributes:
type: object
properties:
id:
type: string
example: null
ip:
type: string
example: 59.192.229.134
port:
type: integer
example: 59668
priority:
type: integer
example: 75
allow:
type: boolean
example: true
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Firewall'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
ip:
type: string
description: 'The IP or CIDR the rule should apply to.'
example: 1.1.1.0/24
port:
type: number
description: 'The port the rule should apply to. Must be at least 1. Must not be greater than 65535.'
example: 25565.0
priority:
type: string
description: 'Priority of the rule, higher priorities take precedence.'
example: 50
allow:
type: boolean
description: 'Controls whether traffic matching the rule should be allowed or dropped.'
example: false
required:
- port
parameters:
-
in: path
name: server
description: 'The server.'
example: 79c39d27-fb78-4a68-87a1-f431867be0bf
required: true
schema:
type: string
'/api/client/servers/{server}/firewall/{serverFirewall}':
get:
summary: 'Get server firewall rule.'
operationId: getServerFirewallRule
description: 'Returns information about a single firewall rule.'
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
object: server_firewall
attributes:
id: null
ip: 136.60.15.185
port: 7961
priority: 66
allow: true
properties:
object:
type: string
example: server_firewall
attributes:
type: object
properties:
id:
type: string
example: null
ip:
type: string
example: 136.60.15.185
port:
type: integer
example: 7961
priority:
type: integer
example: 66
allow:
type: boolean
example: true
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Firewall'
post:
summary: 'Update server firewall rule.'
operationId: updateServerFirewallRule
description: 'Updates an existing firewall rule for a server.'
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
object: server_firewall
attributes:
id: null
ip: 40.100.206.254
port: 28263
priority: 39
allow: true
properties:
object:
type: string
example: server_firewall
attributes:
type: object
properties:
id:
type: string
example: null
ip:
type: string
example: 40.100.206.254
port:
type: integer
example: 28263
priority:
type: integer
example: 39
allow:
type: boolean
example: true
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Firewall'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
ip:
type: string
description: 'The IP or CIDR the rule should apply to.'
example: 1.1.1.0/24
port:
type: number
description: 'The port the rule should apply to. Must be at least 1. Must not be greater than 65535.'
example: 25565.0
priority:
type: string
description: 'Priority of the rule, higher priorities take precedence.'
example: 50
allow:
type: boolean
description: 'Controls whether traffic matching the rule should be allowed or dropped.'
example: false
required:
- port
delete:
summary: 'Delete server firewall rule.'
operationId: deleteServerFirewallRule
description: 'Deletes an existing firewall rule for a server.'
parameters: []
responses:
204:
description: 'Firewall rule deleted'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Firewall'
parameters:
-
in: path
name: server
description: 'The server.'
example: 3e367323-7014-4e4b-8f5f-4c4d82737adf
required: true
schema:
type: string
-
in: path
name: serverFirewall
description: ''
example: 986007
required: true
schema:
type: integer
'/api/client/servers/{server}/minecraft/votifer':
post:
summary: 'Test server voting.'
operationId: testServerVoting
description: 'Sends a test vote to the server.'
parameters: []
responses:
200:
description: 'Vote sent'
content:
application/json:
schema:
type: object
example:
message: 'Vote sent successfully!'
properties:
message:
type: string
example: 'Vote sent successfully!'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
500:
description: 'Failed to send vote'
content:
application/json:
schema:
type: object
example:
error: 'Failed to send vote.'
properties:
error:
type: string
example: 'Failed to send vote.'
tags:
- 'Server - Minecraft'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
type:
type: string
description: 'Type of vote to send.'
example: nuvotifierv2
enum:
- votifier
- nuvotifier
- nuvotifierv2
host:
type: string
description: 'Host to send the vote to, this should be the IP of your server.'
example: 1.1.1.1
port:
type: number
description: 'Port to send the vote to, this should be the port you configured Votifier to use on your server.'
example: 19132.0
username:
type: string
description: 'Username of who voted, can be whatever you want.'
example: Notch
public_key:
type: string
description: 'Public key for Votifier and NuVotifier v1 (if type is `votifier` or `nuvotifier`).'
example: ''
token:
type: string
description: 'Token for NuVotifier v2 (if type is `nuvotifierv2`).'
example: ''
required:
- type
- host
- port
- username
parameters:
-
in: path
name: server
description: 'The server.'
example: 6dc42626-c1d9-400d-aee1-df4beba12ab9
required: true
schema:
type: string
'/api/client/servers/{server}/minecraft/modpacks':
get:
summary: 'Search modpacks.'
operationId: searchModpacks
description: 'List modpacks for a specific provider.'
parameters:
-
in: query
name: provider
description: 'Modpack provider to list modpacks from.'
example: modrinth
required: false
schema:
type: string
description: 'Modpack provider to list modpacks from.'
example: modrinth
enum:
- atlauncher
- curseforge
- ftb
- modrinth
-
in: query
name: page
description: 'Page number for pagination. Must be at least 1.'
example: 1
required: true
schema:
type: integer
description: 'Page number for pagination. Must be at least 1.'
example: 1
-
in: query
name: page_size
description: 'Maximum number of resources to return per-page. Must not be greater than 50.'
example: 25
required: true
schema:
type: integer
description: 'Maximum number of resources to return per-page. Must not be greater than 50.'
example: 25
-
in: query
name: search_query
description: 'Optional search query to filter plugins by.'
example: ''
required: false
schema:
type: string
description: 'Optional search query to filter plugins by.'
example: ''
responses: { }
tags:
- 'Server - Minecraft'
parameters:
-
in: path
name: server
description: 'The server.'
example: 23619b4e-bf34-46b0-a11a-712a0c089799
required: true
schema:
type: string
'/api/client/servers/{server}/minecraft/modpacks/modpack':
get:
summary: 'Get modpack.'
operationId: getModpack
description: 'Returns details about a specific modpack.'
parameters:
-
in: query
name: provider
description: 'Modpack provider to get a modpack from.'
example: modrinth
required: false
schema:
type: string
description: 'Modpack provider to get a modpack from.'
example: modrinth
enum:
- atlauncher
- curseforge
- ftb
- modrinth
-
in: query
name: modpack_id
description: 'ID of the modpack. Must be at least 1 character.'
example: 1KVo5zza
required: true
schema:
type: string
description: 'ID of the modpack. Must be at least 1 character.'
example: 1KVo5zza
responses: { }
tags:
- 'Server - Minecraft'
parameters:
-
in: path
name: server
description: 'The server.'
example: 0c554d5c-756f-437d-a22b-8ca0af319988
required: true
schema:
type: string
'/api/client/servers/{server}/minecraft/modpacks/versions':
get:
summary: 'Get modpack versions.'
operationId: getModpackVersions
description: 'List modpack versions of a specific modpack.'
parameters:
-
in: query
name: provider
description: 'Modpack provider to get a modpack from.'
example: modrinth
required: false
schema:
type: string
description: 'Modpack provider to get a modpack from.'
example: modrinth
enum:
- atlauncher
- curseforge
- ftb
- modrinth
-
in: query
name: modpack_id
description: 'ID of the modpack. Must be at least 1 character.'
example: 1KVo5zza
required: true
schema:
type: string
description: 'ID of the modpack. Must be at least 1 character.'
example: 1KVo5zza
responses: { }
tags:
- 'Server - Minecraft'
parameters:
-
in: path
name: server
description: 'The server.'
example: a788cf38-74de-4d5f-88de-2455900af730
required: true
schema:
type: string
'/api/client/servers/{server}/minecraft/modpacks/install':
post:
summary: 'Install modpack.'
operationId: installModpack
description: 'Starts the installation of a modpack.'
parameters: []
responses: { }
tags:
- 'Server - Minecraft'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
provider:
type: string
description: 'Modpack provider to install a modpack from.'
example: modrinth
enum:
- atlauncher
- curseforge
- ftb
- modrinth
modpack_id:
type: string
description: 'ID of the modpack. Must be at least 1 character.'
example: 1KVo5zza
modpack_version_id:
type: string
description: 'Version ID of the modpack.'
example: 1MTIwVAi
delete_server_files:
type: boolean
description: 'Should all server files be deleted before installing the modpack?.'
example: false
required:
- provider
- modpack_id
- modpack_version_id
- delete_server_files
parameters:
-
in: path
name: server
description: 'The server.'
example: 812a7a1f-5fce-48cf-8a7a-6cf81a847f75
required: true
schema:
type: string
'/api/client/servers/{server}/minecraft/players':
get:
summary: 'Get server players.'
operationId: getServerPlayers
description: 'Returns details about players that have played on the server.'
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
oneOf:
-
description: 'Online Server'
type: object
example:
success: true
online: true
online_mode: true
opped:
-
uuid: 069a79f4-44e9-4726-a5be-fca90e38aaf5
name: Notch
level: 4
bypassesPlayerLimit: true
avatar: 'https://minotar.net/helm/069a79f4-44e9-4726-a5be-fca90e38aaf5/256.png'
render: 'https://render.skinmc.net/3d.php?user=069a79f4-44e9-4726-a5be-fca90e38aaf5&vr=-20&hr=30&hrh=0&vrll=-20&vrrl=10&vrla=10&vrra=-10&ratio=20'
banned:
players:
-
uuid: 069a79f4-44e9-4726-a5be-fca90e38aaf5
name: Notch
reason: ''
avatar: 'https://minotar.net/helm/069a79f4-44e9-4726-a5be-fca90e38aaf5/256.png'
render: 'https://render.skinmc.net/3d.php?user=069a79f4-44e9-4726-a5be-fca90e38aaf5&vr=-20&hr=30&hrh=0&vrll=-20&vrrl=10&vrla=10&vrra=-10&ratio=20'
ips:
-
ip: 1.1.1.1
reason: ''
whitelist:
enabled: true
list:
-
uuid: 069a79f4-44e9-4726-a5be-fca90e38aaf5
name: Notch
avatar: 'https://minotar.net/helm/069a79f4-44e9-4726-a5be-fca90e38aaf5/256.png'
render: 'https://render.skinmc.net/3d.php?user=069a79f4-44e9-4726-a5be-fca90e38aaf5&vr=-20&hr=30&hrh=0&vrll=-20&vrrl=10&vrla=10&vrra=-10&ratio=20'
players:
online: 1
max: 20
list:
-
uuid: 069a79f4-44e9-4726-a5be-fca90e38aaf5
name: Notch
avatar: 'https://minotar.net/helm/069a79f4-44e9-4726-a5be-fca90e38aaf5/256.png'
render: 'https://render.skinmc.net/3d.php?user=069a79f4-44e9-4726-a5be-fca90e38aaf5&vr=-20&hr=30&hrh=0&vrll=-20&vrrl=10&vrla=10&vrra=-10&ratio=20'
properties:
success:
type: boolean
example: true
online:
type: boolean
example: true
online_mode:
type: boolean
example: true
opped:
type: array
example:
-
uuid: 069a79f4-44e9-4726-a5be-fca90e38aaf5
name: Notch
level: 4
bypassesPlayerLimit: true
avatar: 'https://minotar.net/helm/069a79f4-44e9-4726-a5be-fca90e38aaf5/256.png'
render: 'https://render.skinmc.net/3d.php?user=069a79f4-44e9-4726-a5be-fca90e38aaf5&vr=-20&hr=30&hrh=0&vrll=-20&vrrl=10&vrla=10&vrra=-10&ratio=20'
items:
type: object
properties:
uuid:
type: string
example: 069a79f4-44e9-4726-a5be-fca90e38aaf5
name:
type: string
example: Notch
level:
type: integer
example: 4
bypassesPlayerLimit:
type: boolean
example: true
avatar:
type: string
example: 'https://minotar.net/helm/069a79f4-44e9-4726-a5be-fca90e38aaf5/256.png'
render:
type: string
example: 'https://render.skinmc.net/3d.php?user=069a79f4-44e9-4726-a5be-fca90e38aaf5&vr=-20&hr=30&hrh=0&vrll=-20&vrrl=10&vrla=10&vrra=-10&ratio=20'
banned:
type: object
properties:
players:
type: array
example:
-
uuid: 069a79f4-44e9-4726-a5be-fca90e38aaf5
name: Notch
reason: ''
avatar: 'https://minotar.net/helm/069a79f4-44e9-4726-a5be-fca90e38aaf5/256.png'
render: 'https://render.skinmc.net/3d.php?user=069a79f4-44e9-4726-a5be-fca90e38aaf5&vr=-20&hr=30&hrh=0&vrll=-20&vrrl=10&vrla=10&vrra=-10&ratio=20'
items:
type: object
properties:
uuid:
type: string
example: 069a79f4-44e9-4726-a5be-fca90e38aaf5
name:
type: string
example: Notch
reason:
type: string
example: ''
avatar:
type: string
example: 'https://minotar.net/helm/069a79f4-44e9-4726-a5be-fca90e38aaf5/256.png'
render:
type: string
example: 'https://render.skinmc.net/3d.php?user=069a79f4-44e9-4726-a5be-fca90e38aaf5&vr=-20&hr=30&hrh=0&vrll=-20&vrrl=10&vrla=10&vrra=-10&ratio=20'
ips:
type: array
example:
-
ip: 1.1.1.1
reason: ''
items:
type: object
properties:
ip:
type: string
example: 1.1.1.1
reason:
type: string
example: ''
whitelist:
type: object
properties:
enabled:
type: boolean
example: true
list:
type: array
example:
-
uuid: 069a79f4-44e9-4726-a5be-fca90e38aaf5
name: Notch
avatar: 'https://minotar.net/helm/069a79f4-44e9-4726-a5be-fca90e38aaf5/256.png'
render: 'https://render.skinmc.net/3d.php?user=069a79f4-44e9-4726-a5be-fca90e38aaf5&vr=-20&hr=30&hrh=0&vrll=-20&vrrl=10&vrla=10&vrra=-10&ratio=20'
items:
type: object
properties:
uuid:
type: string
example: 069a79f4-44e9-4726-a5be-fca90e38aaf5
name:
type: string
example: Notch
avatar:
type: string
example: 'https://minotar.net/helm/069a79f4-44e9-4726-a5be-fca90e38aaf5/256.png'
render:
type: string
example: 'https://render.skinmc.net/3d.php?user=069a79f4-44e9-4726-a5be-fca90e38aaf5&vr=-20&hr=30&hrh=0&vrll=-20&vrrl=10&vrla=10&vrra=-10&ratio=20'
players:
type: object
properties:
online:
type: integer
example: 1
max:
type: integer
example: 20
list:
type: array
example:
-
uuid: 069a79f4-44e9-4726-a5be-fca90e38aaf5
name: Notch
avatar: 'https://minotar.net/helm/069a79f4-44e9-4726-a5be-fca90e38aaf5/256.png'
render: 'https://render.skinmc.net/3d.php?user=069a79f4-44e9-4726-a5be-fca90e38aaf5&vr=-20&hr=30&hrh=0&vrll=-20&vrrl=10&vrla=10&vrra=-10&ratio=20'
items:
type: object
properties:
uuid:
type: string
example: 069a79f4-44e9-4726-a5be-fca90e38aaf5
name:
type: string
example: Notch
avatar:
type: string
example: 'https://minotar.net/helm/069a79f4-44e9-4726-a5be-fca90e38aaf5/256.png'
render:
type: string
example: 'https://render.skinmc.net/3d.php?user=069a79f4-44e9-4726-a5be-fca90e38aaf5&vr=-20&hr=30&hrh=0&vrll=-20&vrrl=10&vrla=10&vrra=-10&ratio=20'
-
description: 'Offline Server'
type: object
example:
success: true
online: false
online_mode: true
opped:
-
uuid: 069a79f4-44e9-4726-a5be-fca90e38aaf5
name: Notch
level: 4
bypassesPlayerLimit: true
avatar: 'https://minotar.net/helm/069a79f4-44e9-4726-a5be-fca90e38aaf5/256.png'
render: 'https://render.skinmc.net/3d.php?user=069a79f4-44e9-4726-a5be-fca90e38aaf5&vr=-20&hr=30&hrh=0&vrll=-20&vrrl=10&vrla=10&vrra=-10&ratio=20'
banned:
players:
-
uuid: 069a79f4-44e9-4726-a5be-fca90e38aaf5
name: Notch
reason: ''
avatar: 'https://minotar.net/helm/069a79f4-44e9-4726-a5be-fca90e38aaf5/256.png'
render: 'https://render.skinmc.net/3d.php?user=069a79f4-44e9-4726-a5be-fca90e38aaf5&vr=-20&hr=30&hrh=0&vrll=-20&vrrl=10&vrla=10&vrra=-10&ratio=20'
ips:
-
ip: 1.1.1.1
reason: ''
whitelist:
enabled: true
list:
-
uuid: 069a79f4-44e9-4726-a5be-fca90e38aaf5
name: Notch
avatar: 'https://minotar.net/helm/069a79f4-44e9-4726-a5be-fca90e38aaf5/256.png'
render: 'https://render.skinmc.net/3d.php?user=069a79f4-44e9-4726-a5be-fca90e38aaf5&vr=-20&hr=30&hrh=0&vrll=-20&vrrl=10&vrla=10&vrra=-10&ratio=20'
properties:
success:
type: boolean
example: true
online:
type: boolean
example: false
online_mode:
type: boolean
example: true
opped:
type: array
example:
-
uuid: 069a79f4-44e9-4726-a5be-fca90e38aaf5
name: Notch
level: 4
bypassesPlayerLimit: true
avatar: 'https://minotar.net/helm/069a79f4-44e9-4726-a5be-fca90e38aaf5/256.png'
render: 'https://render.skinmc.net/3d.php?user=069a79f4-44e9-4726-a5be-fca90e38aaf5&vr=-20&hr=30&hrh=0&vrll=-20&vrrl=10&vrla=10&vrra=-10&ratio=20'
items:
type: object
properties:
uuid:
type: string
example: 069a79f4-44e9-4726-a5be-fca90e38aaf5
name:
type: string
example: Notch
level:
type: integer
example: 4
bypassesPlayerLimit:
type: boolean
example: true
avatar:
type: string
example: 'https://minotar.net/helm/069a79f4-44e9-4726-a5be-fca90e38aaf5/256.png'
render:
type: string
example: 'https://render.skinmc.net/3d.php?user=069a79f4-44e9-4726-a5be-fca90e38aaf5&vr=-20&hr=30&hrh=0&vrll=-20&vrrl=10&vrla=10&vrra=-10&ratio=20'
banned:
type: object
properties:
players:
type: array
example:
-
uuid: 069a79f4-44e9-4726-a5be-fca90e38aaf5
name: Notch
reason: ''
avatar: 'https://minotar.net/helm/069a79f4-44e9-4726-a5be-fca90e38aaf5/256.png'
render: 'https://render.skinmc.net/3d.php?user=069a79f4-44e9-4726-a5be-fca90e38aaf5&vr=-20&hr=30&hrh=0&vrll=-20&vrrl=10&vrla=10&vrra=-10&ratio=20'
items:
type: object
properties:
uuid:
type: string
example: 069a79f4-44e9-4726-a5be-fca90e38aaf5
name:
type: string
example: Notch
reason:
type: string
example: ''
avatar:
type: string
example: 'https://minotar.net/helm/069a79f4-44e9-4726-a5be-fca90e38aaf5/256.png'
render:
type: string
example: 'https://render.skinmc.net/3d.php?user=069a79f4-44e9-4726-a5be-fca90e38aaf5&vr=-20&hr=30&hrh=0&vrll=-20&vrrl=10&vrla=10&vrra=-10&ratio=20'
ips:
type: array
example:
-
ip: 1.1.1.1
reason: ''
items:
type: object
properties:
ip:
type: string
example: 1.1.1.1
reason:
type: string
example: ''
whitelist:
type: object
properties:
enabled:
type: boolean
example: true
list:
type: array
example:
-
uuid: 069a79f4-44e9-4726-a5be-fca90e38aaf5
name: Notch
avatar: 'https://minotar.net/helm/069a79f4-44e9-4726-a5be-fca90e38aaf5/256.png'
render: 'https://render.skinmc.net/3d.php?user=069a79f4-44e9-4726-a5be-fca90e38aaf5&vr=-20&hr=30&hrh=0&vrll=-20&vrrl=10&vrla=10&vrra=-10&ratio=20'
items:
type: object
properties:
uuid:
type: string
example: 069a79f4-44e9-4726-a5be-fca90e38aaf5
name:
type: string
example: Notch
avatar:
type: string
example: 'https://minotar.net/helm/069a79f4-44e9-4726-a5be-fca90e38aaf5/256.png'
render:
type: string
example: 'https://render.skinmc.net/3d.php?user=069a79f4-44e9-4726-a5be-fca90e38aaf5&vr=-20&hr=30&hrh=0&vrll=-20&vrrl=10&vrla=10&vrra=-10&ratio=20'
tags:
- 'Server - Minecraft'
parameters:
-
in: path
name: server
description: 'The server.'
example: 8df3847b-ef9b-4f53-b047-17bdca6cf48a
required: true
schema:
type: string
'/api/client/servers/{server}/minecraft/players/whitelist/status':
post:
summary: 'Set server whitelist.'
operationId: setServerWhitelist
description: 'Enables or disables the whitelist for a server.'
parameters: []
responses:
204:
description: 'Whitelist set'
content:
application/json: { }
tags:
- 'Server - Minecraft'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
enabled:
type: boolean
description: 'Should the whitelist be enabled?.'
example: false
required:
- enabled
parameters:
-
in: path
name: server
description: 'The server.'
example: ed135db0-973a-4ae2-97f0-6c656acdfadd
required: true
schema:
type: string
'/api/client/servers/{server}/minecraft/players/whitelist':
put:
summary: 'Whitelist player.'
operationId: whitelistPlayer
description: "Adds a player to the server's whitelist."
parameters: []
responses:
204:
description: 'Player whitelisted'
content:
application/json: { }
tags:
- 'Server - Minecraft'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: 'Name of a player to use. Must be at least 3 characters. Must not be greater than 16 characters.'
example: Notch
required:
- name
delete:
summary: 'Unwhitelist player.'
operationId: unwhitelistPlayer
description: "Removes a player from the server's whitelist."
parameters: []
responses:
204:
description: 'Player unwhitelisted'
content:
application/json: { }
tags:
- 'Server - Minecraft'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
uuid:
type: string
description: 'UUID of the player. Must be 36 characters.'
example: ''
required:
- uuid
parameters:
-
in: path
name: server
description: 'The server.'
example: 9d0f3f4e-d1f5-4d54-bbec-41f27bfa2dc0
required: true
schema:
type: string
'/api/client/servers/{server}/minecraft/players/op':
put:
summary: 'Op player.'
operationId: opPlayer
description: 'Ops a player on the server.'
parameters: []
responses:
204:
description: 'Player opped'
content:
application/json: { }
tags:
- 'Server - Minecraft'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: 'Name of a player to use. Must be at least 3 characters. Must not be greater than 16 characters.'
example: Notch
required:
- name
delete:
summary: 'Deop player.'
operationId: deopPlayer
description: 'De-ops a player on the server.'
parameters: []
responses:
204:
description: 'Player de-opped'
content:
application/json: { }
tags:
- 'Server - Minecraft'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
uuid:
type: string
description: 'UUID of the player. Must be 36 characters.'
example: ''
required:
- uuid
parameters:
-
in: path
name: server
description: 'The server.'
example: fb9d6afd-2116-4a6a-86c0-211c82e7525c
required: true
schema:
type: string
'/api/client/servers/{server}/minecraft/players/ban':
put:
summary: 'Ban player.'
operationId: banPlayer
description: 'Bans a player from the server.'
parameters: []
responses:
204:
description: 'Player banned'
content:
application/json: { }
tags:
- 'Server - Minecraft'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: 'Name of a player to ban. Must be at least 3 characters. Must not be greater than 16 characters.'
example: Notch
reason:
type: string
description: 'Reason to ban the player with. Must be at least 3 characters. Must not be greater than 255 characters.'
example: 'Creating Minecraft'
required:
- name
- reason
delete:
summary: 'Unban player.'
operationId: unbanPlayer
description: 'Unbans a player from the server.'
parameters: []
responses:
204:
description: 'Player unbanned'
content:
application/json: { }
tags:
- 'Server - Minecraft'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
uuid:
type: string
description: 'UUID of the player. Must be 36 characters.'
example: ''
required:
- uuid
parameters:
-
in: path
name: server
description: 'The server.'
example: d72735be-7685-4bf1-bc15-7abd76e43b66
required: true
schema:
type: string
'/api/client/servers/{server}/minecraft/players/ban-ip':
put:
summary: 'Bans an IP from the server.'
operationId: bansAnIPFromTheServer
description: ''
parameters: []
responses:
204:
description: 'IP banned'
content:
application/json: { }
tags:
- 'Server - Minecraft'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
ip:
type: string
description: 'IP to ban. Must be a valid IP address.'
example: 127.0.0.1
reason:
type: string
description: 'Reason to ban the IP with. Must not be greater than 255 characters.'
example: 'Not being IPv6'
required:
- ip
delete:
summary: 'Unban IP.'
operationId: unbanIP
description: 'Unbans an IP from the server.'
parameters: []
responses:
204:
description: 'IP unbanned'
content:
application/json: { }
tags:
- 'Server - Minecraft'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
ip:
type: string
description: 'IP to unban. Must be a valid IP address.'
example: 127.0.0.1
required:
- ip
parameters:
-
in: path
name: server
description: 'The server.'
example: 9cfd17dd-bf2e-410a-8828-ef62e3cc4616
required: true
schema:
type: string
'/api/client/servers/{server}/minecraft/players/ban-ip-player':
put:
summary: 'Ban player IP.'
operationId: banPlayerIP
description: 'Bans a player by their IP from the server.'
parameters: []
responses:
204:
description: 'Player IP banned'
400:
description: ''
content:
application/json:
schema:
oneOf:
-
description: 'Player offline'
type: object
example:
errors:
-
code: PlayerOfflineException
status: '400'
detail: 'Player is offline.'
properties:
errors:
type: array
example:
-
code: PlayerOfflineException
status: '400'
detail: 'Player is offline.'
items:
type: object
properties:
code:
type: string
example: PlayerOfflineException
status:
type: string
example: '400'
detail:
type: string
example: 'Player is offline.'
-
description: 'Server offline'
type: object
example:
errors:
-
code: ServerOfflineException
status: '400'
detail: 'Server is offline.'
properties:
errors:
type: array
example:
-
code: ServerOfflineException
status: '400'
detail: 'Server is offline.'
items:
type: object
properties:
code:
type: string
example: ServerOfflineException
status:
type: string
example: '400'
detail:
type: string
example: 'Server is offline.'
tags:
- 'Server - Minecraft'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
uuid:
type: string
description: 'UUID of the player. Must be 36 characters.'
example: ''
required:
- uuid
parameters:
-
in: path
name: server
description: 'The server.'
example: 292dd391-9b6e-481b-93b8-f570254f525c
required: true
schema:
type: string
'/api/client/servers/{server}/minecraft/players/kick':
post:
summary: 'Kick player.'
operationId: kickPlayer
description: 'Kicks a player from the server.'
parameters: []
responses:
204:
description: 'Player kicked'
400:
description: ''
content:
application/json:
schema:
oneOf:
-
description: 'Player offline'
type: object
example:
errors:
-
code: PlayerOfflineException
status: '400'
detail: 'Player is offline.'
properties:
errors:
type: array
example:
-
code: PlayerOfflineException
status: '400'
detail: 'Player is offline.'
items:
type: object
properties:
code:
type: string
example: PlayerOfflineException
status:
type: string
example: '400'
detail:
type: string
example: 'Player is offline.'
-
description: 'Server offline'
type: object
example:
errors:
-
code: ServerOfflineException
status: '400'
detail: 'Server is offline.'
properties:
errors:
type: array
example:
-
code: ServerOfflineException
status: '400'
detail: 'Server is offline.'
items:
type: object
properties:
code:
type: string
example: ServerOfflineException
status:
type: string
example: '400'
detail:
type: string
example: 'Server is offline.'
tags:
- 'Server - Minecraft'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
uuid:
type: string
description: 'UUID of the player to kick. Must be 36 characters.'
example: ''
reason:
type: string
description: 'Reason to kick the player with. Must be at least 3 characters. Must not be greater than 255 characters.'
example: 'Being on my server'
required:
- uuid
- reason
parameters:
-
in: path
name: server
description: 'The server.'
example: 14c04dd5-a638-437f-a430-8ef4f224093e
required: true
schema:
type: string
'/api/client/servers/{server}/minecraft/players/clear':
post:
summary: 'Clear player inventory.'
operationId: clearPlayerInventory
description: 'Clears the inventory of a player on the server.'
parameters: []
responses:
204:
description: 'Player cleared'
400:
description: ''
content:
application/json:
schema:
oneOf:
-
description: 'Player offline'
type: object
example:
errors:
-
code: PlayerOfflineException
status: '400'
detail: 'Player is offline.'
properties:
errors:
type: array
example:
-
code: PlayerOfflineException
status: '400'
detail: 'Player is offline.'
items:
type: object
properties:
code:
type: string
example: PlayerOfflineException
status:
type: string
example: '400'
detail:
type: string
example: 'Player is offline.'
-
description: 'Server offline'
type: object
example:
errors:
-
code: ServerOfflineException
status: '400'
detail: 'Server is offline.'
properties:
errors:
type: array
example:
-
code: ServerOfflineException
status: '400'
detail: 'Server is offline.'
items:
type: object
properties:
code:
type: string
example: ServerOfflineException
status:
type: string
example: '400'
detail:
type: string
example: 'Server is offline.'
tags:
- 'Server - Minecraft'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
uuid:
type: string
description: 'UUID of the player. Must be 36 characters.'
example: ''
required:
- uuid
parameters:
-
in: path
name: server
description: 'The server.'
example: dba4c3d9-76a7-45c8-8fd1-dcdd3d438bce
required: true
schema:
type: string
'/api/client/servers/{server}/minecraft/players/wipe':
post:
summary: 'Wipe player.'
operationId: wipePlayer
description: 'Wipes the data of a player on the server.'
parameters: []
responses:
204:
description: 'Player wiped'
400:
description: ''
content:
application/json:
schema:
oneOf:
-
description: 'Player offline'
type: object
example:
errors:
-
code: PlayerOfflineException
status: '400'
detail: 'Player is offline.'
properties:
errors:
type: array
example:
-
code: PlayerOfflineException
status: '400'
detail: 'Player is offline.'
items:
type: object
properties:
code:
type: string
example: PlayerOfflineException
status:
type: string
example: '400'
detail:
type: string
example: 'Player is offline.'
-
description: 'Server offline'
type: object
example:
errors:
-
code: ServerOfflineException
status: '400'
detail: 'Server is offline.'
properties:
errors:
type: array
example:
-
code: ServerOfflineException
status: '400'
detail: 'Server is offline.'
items:
type: object
properties:
code:
type: string
example: ServerOfflineException
status:
type: string
example: '400'
detail:
type: string
example: 'Server is offline.'
tags:
- 'Server - Minecraft'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
uuid:
type: string
description: 'UUID of the player. Must be 36 characters.'
example: ''
required:
- uuid
parameters:
-
in: path
name: server
description: 'The server.'
example: 4603c837-fd86-43ca-b1ec-ebb6f81cabe2
required: true
schema:
type: string
'/api/client/servers/{server}/minecraft/players/whisper':
post:
summary: 'Message player.'
operationId: messagePlayer
description: 'Sends a private message to a player on the server.'
parameters: []
responses:
204:
description: 'Message sent'
400:
description: ''
content:
application/json:
schema:
oneOf:
-
description: 'Player offline'
type: object
example:
errors:
-
code: PlayerOfflineException
status: '400'
detail: 'Player is offline.'
properties:
errors:
type: array
example:
-
code: PlayerOfflineException
status: '400'
detail: 'Player is offline.'
items:
type: object
properties:
code:
type: string
example: PlayerOfflineException
status:
type: string
example: '400'
detail:
type: string
example: 'Player is offline.'
-
description: 'Server offline'
type: object
example:
errors:
-
code: ServerOfflineException
status: '400'
detail: 'Server is offline.'
properties:
errors:
type: array
example:
-
code: ServerOfflineException
status: '400'
detail: 'Server is offline.'
items:
type: object
properties:
code:
type: string
example: ServerOfflineException
status:
type: string
example: '400'
detail:
type: string
example: 'Server is offline.'
tags:
- 'Server - Minecraft'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
uuid:
type: string
description: 'UUID of the player to message. Must be 36 characters.'
example: ''
message:
type: string
description: 'Message to send to the player. Must be at least 1 character. Must not be greater than 255 characters.'
example: Hello
required:
- uuid
- message
parameters:
-
in: path
name: server
description: 'The server.'
example: e3e5af53-18b0-4ad0-848a-50ea6d717582
required: true
schema:
type: string
'/api/client/servers/{server}/minecraft/players/kill':
post:
summary: 'Kill player.'
operationId: killPlayer
description: 'Kills a player on the server.'
parameters: []
responses:
204:
description: 'Player killed'
400:
description: ''
content:
application/json:
schema:
oneOf:
-
description: 'Player offline'
type: object
example:
errors:
-
code: PlayerOfflineException
status: '400'
detail: 'Player is offline.'
properties:
errors:
type: array
example:
-
code: PlayerOfflineException
status: '400'
detail: 'Player is offline.'
items:
type: object
properties:
code:
type: string
example: PlayerOfflineException
status:
type: string
example: '400'
detail:
type: string
example: 'Player is offline.'
-
description: 'Server offline'
type: object
example:
errors:
-
code: ServerOfflineException
status: '400'
detail: 'Server is offline.'
properties:
errors:
type: array
example:
-
code: ServerOfflineException
status: '400'
detail: 'Server is offline.'
items:
type: object
properties:
code:
type: string
example: ServerOfflineException
status:
type: string
example: '400'
detail:
type: string
example: 'Server is offline.'
tags:
- 'Server - Minecraft'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
uuid:
type: string
description: 'UUID of the player. Must be 36 characters.'
example: ''
required:
- uuid
parameters:
-
in: path
name: server
description: 'The server.'
example: c9f2b268-6b2e-42ef-bec6-9f97aafc59e2
required: true
schema:
type: string
'/api/client/servers/{server}/minecraft/plugins':
get:
summary: 'Search plugins.'
operationId: searchPlugins
description: 'Returns a list of plugins that can be installed onto the server.'
parameters:
-
in: query
name: provider
description: 'Plugin provider to list plugins from.'
example: modrinth
required: true
schema:
type: string
description: 'Plugin provider to list plugins from.'
example: modrinth
enum:
- curseforge
- hangar
- modrinth
- spigotmc
-
in: query
name: page
description: 'Page number for pagination. Must be at least 1.'
example: 1
required: true
schema:
type: integer
description: 'Page number for pagination. Must be at least 1.'
example: 1
-
in: query
name: page_size
description: 'Maximum number of resources to return per-page. Must not be greater than 50.'
example: 25
required: true
schema:
type: integer
description: 'Maximum number of resources to return per-page. Must not be greater than 50.'
example: 25
-
in: query
name: search_query
description: 'Optional search query to filter plugins by.'
example: ''
required: false
schema:
type: string
description: 'Optional search query to filter plugins by.'
example: ''
-
in: query
name: minecraft_version
description: 'Optional Minecraft version to filter for plugin compatibility.'
example: ''
required: false
schema:
type: string
description: 'Optional Minecraft version to filter for plugin compatibility.'
example: ''
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
object: list
data:
-
object: minecraft_plugin
attributes:
id: null
name: null
short_description: null
url: null
icon_url: null
loaders: null
external_url: null
-
object: minecraft_plugin
attributes:
id: null
name: null
short_description: null
url: null
icon_url: null
loaders: null
external_url: null
properties:
object:
type: string
example: list
data:
type: array
example:
-
object: minecraft_plugin
attributes:
id: null
name: null
short_description: null
url: null
icon_url: null
loaders: null
external_url: null
-
object: minecraft_plugin
attributes:
id: null
name: null
short_description: null
url: null
icon_url: null
loaders: null
external_url: null
items:
type: object
properties:
object:
type: string
example: minecraft_plugin
attributes:
type: object
properties:
id:
type: string
example: null
name:
type: string
example: null
short_description:
type: string
example: null
url:
type: string
example: null
icon_url:
type: string
example: null
loaders:
type: string
example: null
external_url:
type: string
example: null
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Minecraft'
parameters:
-
in: path
name: server
description: 'The server.'
example: 0fd51541-5bea-4e24-b971-1f3c169ea08c
required: true
schema:
type: string
'/api/client/servers/{server}/minecraft/plugins/versions':
get:
summary: 'Get plugin versions.'
operationId: getPluginVersions
description: 'Returns the installable versions for a given plugin.'
parameters:
-
in: query
name: provider
description: 'Plugin provider to fetch the plugin from.'
example: modrinth
required: true
schema:
type: string
description: 'Plugin provider to fetch the plugin from.'
example: modrinth
enum:
- curseforge
- hangar
- modrinth
- spigotmc
-
in: query
name: pluginId
description: 'Plugin ID to fetch versions for.'
example: ''
required: true
schema:
type: string
description: 'Plugin ID to fetch versions for.'
example: ''
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
object: list
data:
-
object: minecraft_plugin_version
attributes:
id: null
name: null
download_url: null
loaders: null
game_versions: null
-
object: minecraft_plugin_version
attributes:
id: null
name: null
download_url: null
loaders: null
game_versions: null
properties:
object:
type: string
example: list
data:
type: array
example:
-
object: minecraft_plugin_version
attributes:
id: null
name: null
download_url: null
loaders: null
game_versions: null
-
object: minecraft_plugin_version
attributes:
id: null
name: null
download_url: null
loaders: null
game_versions: null
items:
type: object
properties:
object:
type: string
example: minecraft_plugin_version
attributes:
type: object
properties:
id:
type: string
example: null
name:
type: string
example: null
download_url:
type: string
example: null
loaders:
type: string
example: null
game_versions:
type: string
example: null
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Minecraft'
parameters:
-
in: path
name: server
description: 'The server.'
example: 28541fbf-5e25-4c48-a2e7-8d1e1898d48b
required: true
schema:
type: string
'/api/client/servers/{server}/minecraft/plugins/install':
post:
summary: 'Install plugin.'
operationId: installPlugin
description: 'Installs the given plugin on the server.'
parameters: []
responses:
204:
description: 'Plugin installed'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
502:
description: DaemonConnectionException
content:
application/json:
schema:
type: object
example:
errors:
-
code: DaemonConnectionException
status: '502'
detail: ''
properties:
errors:
type: array
example:
-
code: DaemonConnectionException
status: '502'
detail: ''
items:
type: object
properties:
code:
type: string
example: DaemonConnectionException
status:
type: string
example: '502'
detail:
type: string
example: ''
tags:
- 'Server - Minecraft'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
provider:
type: string
description: 'Plugin provider to fetch the plugin from.'
example: modrinth
enum:
- curseforge
- hangar
- modrinth
- spigotmc
pluginId:
type: string
description: 'Plugin ID to fetch versions for.'
example: ''
pluginName:
type: string
description: TODO.
example: ''
versionId:
type: string
description: TODO.
example: ''
required:
- provider
- pluginId
- versionId
parameters:
-
in: path
name: server
description: 'The server.'
example: f923fc16-8bbe-4488-bc7c-d59b1d4da546
required: true
schema:
type: string
'/api/client/servers/{server}/network/allocations':
get:
summary: 'Get server allocations.'
operationId: getServerAllocations
description: 'Returns all allocations assigned to a server.'
parameters: []
responses:
200:
description: 'List of Allocations'
content:
application/json:
schema:
type: object
example:
object: list
data:
-
object: allocation
attributes:
id: null
ip: 34.192.97.59
ip_alias: null
port: 17582
notes: null
is_default: false
-
object: allocation
attributes:
id: null
ip: 19.49.73.158
ip_alias: null
port: 7215
notes: null
is_default: false
properties:
object:
type: string
example: list
data:
type: array
example:
-
object: allocation
attributes:
id: null
ip: 34.192.97.59
ip_alias: null
port: 17582
notes: null
is_default: false
-
object: allocation
attributes:
id: null
ip: 19.49.73.158
ip_alias: null
port: 7215
notes: null
is_default: false
items:
type: object
properties:
object:
type: string
example: allocation
attributes:
type: object
properties:
id:
type: string
example: null
ip:
type: string
example: 34.192.97.59
ip_alias:
type: string
example: null
port:
type: integer
example: 17582
notes:
type: string
example: null
is_default:
type: boolean
example: false
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Networking'
post:
summary: 'Add server allocation.'
operationId: addServerAllocation
description: 'Assigns an additional allocation to the server.'
parameters: []
responses:
200:
description: Allocation
content:
application/json:
schema:
type: object
example:
object: allocation
attributes:
id: null
ip: 60.248.143.244
ip_alias: null
port: 1103
notes: null
is_default: false
properties:
object:
type: string
example: allocation
attributes:
type: object
properties:
id:
type: string
example: null
ip:
type: string
example: 60.248.143.244
ip_alias:
type: string
example: null
port:
type: integer
example: 1103
notes:
type: string
example: null
is_default:
type: boolean
example: false
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Networking'
parameters:
-
in: path
name: server
description: 'The server.'
example: c0a86578-d42f-4fd7-9c6e-bbb50f9c7373
required: true
schema:
type: string
'/api/client/servers/{server}/network/allocations/{allocation}':
post:
summary: 'Update server allocation.'
operationId: updateServerAllocation
description: 'Update an allocation assigned to the server.'
parameters: []
responses:
200:
description: Allocation
content:
application/json:
schema:
type: object
example:
object: allocation
attributes:
id: null
ip: 247.131.205.199
ip_alias: null
port: 9921
notes: null
is_default: false
properties:
object:
type: string
example: allocation
attributes:
type: object
properties:
id:
type: string
example: null
ip:
type: string
example: 247.131.205.199
ip_alias:
type: string
example: null
port:
type: integer
example: 9921
notes:
type: string
example: null
is_default:
type: boolean
example: false
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Networking'
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
notes:
type: string
description: 'Notes to save on the allocation. Must not be greater than 256 characters.'
example: 'This is a special allocation'
put:
summary: 'Set server primary allocation.'
operationId: setServerPrimaryAllocation
description: 'Set the primary allocation for a server.'
parameters: []
responses:
200:
description: Allocation
content:
application/json:
schema:
type: object
example:
object: allocation
attributes:
id: null
ip: 147.158.134.171
ip_alias: null
port: 24996
notes: null
is_default: false
properties:
object:
type: string
example: allocation
attributes:
type: object
properties:
id:
type: string
example: null
ip:
type: string
example: 147.158.134.171
ip_alias:
type: string
example: null
port:
type: integer
example: 24996
notes:
type: string
example: null
is_default:
type: boolean
example: false
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Networking'
delete:
summary: 'Delete server allocation.'
operationId: deleteServerAllocation
description: 'Delete an allocation from a server.'
parameters: []
responses:
204:
description: 'Allocation deleted'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Networking'
parameters:
-
in: path
name: server
description: 'The server.'
example: 511b13d2-d331-4aaf-9768-c158b49c3a54
required: true
schema:
type: string
-
in: path
name: allocation
description: 'The allocation.'
example: 6433271
required: true
schema:
type: integer
'/api/client/servers/{server}/schedules':
get:
summary: 'Get server schedules.'
operationId: getServerSchedules
description: 'Returns all the schedules belonging to a given server.'
parameters: []
responses:
200:
description: 'List of Schedules'
content:
application/json:
schema:
type: object
example:
object: list
data:
-
object: server_schedule
attributes:
id: null
hashid: ''
name: Carolina
cron:
day_of_week: '*'
day_of_month: '*'
month: '*'
hour: '*'
minute: '*'
is_active: true
only_when_online: false
created_at: null
updated_at: null
relationships:
tasks:
object: list
data: []
-
object: server_schedule
attributes:
id: null
hashid: ''
name: Jessie
cron:
day_of_week: '*'
day_of_month: '*'
month: '*'
hour: '*'
minute: '*'
is_active: true
only_when_online: false
created_at: null
updated_at: null
relationships:
tasks:
object: list
data: []
properties:
object:
type: string
example: list
data:
type: array
example:
-
object: server_schedule
attributes:
id: null
hashid: ''
name: Carolina
cron:
day_of_week: '*'
day_of_month: '*'
month: '*'
hour: '*'
minute: '*'
is_active: true
only_when_online: false
created_at: null
updated_at: null
relationships:
tasks:
object: list
data: []
-
object: server_schedule
attributes:
id: null
hashid: ''
name: Jessie
cron:
day_of_week: '*'
day_of_month: '*'
month: '*'
hour: '*'
minute: '*'
is_active: true
only_when_online: false
created_at: null
updated_at: null
relationships:
tasks:
object: list
data: []
items:
type: object
properties:
object:
type: string
example: server_schedule
attributes:
type: object
properties:
id:
type: string
example: null
hashid:
type: string
example: ''
name:
type: string
example: Carolina
cron:
type: object
properties:
day_of_week:
type: string
example: '*'
day_of_month:
type: string
example: '*'
month:
type: string
example: '*'
hour:
type: string
example: '*'
minute:
type: string
example: '*'
is_active:
type: boolean
example: true
only_when_online:
type: boolean
example: false
created_at:
type: string
example: null
updated_at:
type: string
example: null
relationships:
type: object
properties:
tasks:
type: object
properties:
object:
type: string
example: list
data:
type: array
example: []
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Schedules'
post:
summary: 'Create server schedule.'
operationId: createServerSchedule
description: 'Store a new schedule for a server.'
parameters: []
responses:
200:
description: Schedule
content:
application/json:
schema:
type: object
example:
object: server_schedule
attributes:
id: null
hashid: ''
name: Kyler
cron:
day_of_week: '*'
day_of_month: '*'
month: '*'
hour: '*'
minute: '*'
is_active: true
only_when_online: false
created_at: null
updated_at: null
relationships:
tasks:
object: list
data: []
properties:
object:
type: string
example: server_schedule
attributes:
type: object
properties:
id:
type: string
example: null
hashid:
type: string
example: ''
name:
type: string
example: Kyler
cron:
type: object
properties:
day_of_week:
type: string
example: '*'
day_of_month:
type: string
example: '*'
month:
type: string
example: '*'
hour:
type: string
example: '*'
minute:
type: string
example: '*'
is_active:
type: boolean
example: true
only_when_online:
type: boolean
example: false
created_at:
type: string
example: null
updated_at:
type: string
example: null
relationships:
type: object
properties:
tasks:
type: object
properties:
object:
type: string
example: list
data:
type: array
example: []
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Schedules'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: 'Name for the schedule. Must not be greater than 191 characters.'
example: 'Daily Restart'
is_active:
type: boolean
description: "Should this schedule be active and run it's tasks?."
example: false
minute:
type: string
description: 'CRON minute (see https://crontab.guru/examples.html for examples).'
example: '*'
hour:
type: string
description: 'CRON hour (see https://crontab.guru/examples.html for examples).'
example: '*'
day_of_month:
type: string
description: 'CRON day (month) (see https://crontab.guru/examples.html for examples).'
example: '*'
month:
type: string
description: 'CRON month (see https://crontab.guru/examples.html for examples).'
example: '*'
day_of_week:
type: string
description: 'CRON day (week) (see https://crontab.guru/examples.html for examples).'
example: '*'
required:
- name
- minute
- hour
- day_of_month
- month
- day_of_week
parameters:
-
in: path
name: server
description: 'The server.'
example: ec8b7320-950d-40c1-a411-88df159e5e88
required: true
schema:
type: string
'/api/client/servers/{server}/schedules/{schedule}':
get:
summary: 'Get server schedule.'
operationId: getServerSchedule
description: 'Returns a specific schedule for the server.'
parameters: []
responses:
200:
description: Schedule
content:
application/json:
schema:
type: object
example:
object: server_schedule
attributes:
id: null
hashid: ''
name: Obie
cron:
day_of_week: '*'
day_of_month: '*'
month: '*'
hour: '*'
minute: '*'
is_active: true
only_when_online: false
created_at: null
updated_at: null
relationships:
tasks:
object: list
data: []
properties:
object:
type: string
example: server_schedule
attributes:
type: object
properties:
id:
type: string
example: null
hashid:
type: string
example: ''
name:
type: string
example: Obie
cron:
type: object
properties:
day_of_week:
type: string
example: '*'
day_of_month:
type: string
example: '*'
month:
type: string
example: '*'
hour:
type: string
example: '*'
minute:
type: string
example: '*'
is_active:
type: boolean
example: true
only_when_online:
type: boolean
example: false
created_at:
type: string
example: null
updated_at:
type: string
example: null
relationships:
type: object
properties:
tasks:
type: object
properties:
object:
type: string
example: list
data:
type: array
example: []
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Schedules'
post:
summary: 'Update server schedule.'
operationId: updateServerSchedule
description: 'Updates a given schedule with the new data provided.'
parameters: []
responses:
200:
description: Schedule
content:
application/json:
schema:
type: object
example:
object: server_schedule
attributes:
id: null
hashid: ''
name: Tod
cron:
day_of_week: '*'
day_of_month: '*'
month: '*'
hour: '*'
minute: '*'
is_active: true
only_when_online: false
created_at: null
updated_at: null
relationships:
tasks:
object: list
data: []
properties:
object:
type: string
example: server_schedule
attributes:
type: object
properties:
id:
type: string
example: null
hashid:
type: string
example: ''
name:
type: string
example: Tod
cron:
type: object
properties:
day_of_week:
type: string
example: '*'
day_of_month:
type: string
example: '*'
month:
type: string
example: '*'
hour:
type: string
example: '*'
minute:
type: string
example: '*'
is_active:
type: boolean
example: true
only_when_online:
type: boolean
example: false
created_at:
type: string
example: null
updated_at:
type: string
example: null
relationships:
type: object
properties:
tasks:
type: object
properties:
object:
type: string
example: list
data:
type: array
example: []
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Schedules'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: 'Name for the schedule. Must not be greater than 191 characters.'
example: 'Daily Restart'
is_active:
type: boolean
description: "Should this schedule be active and run it's tasks?."
example: false
minute:
type: string
description: 'CRON minute (see https://crontab.guru/examples.html for examples).'
example: '*'
hour:
type: string
description: 'CRON hour (see https://crontab.guru/examples.html for examples).'
example: '*'
day_of_month:
type: string
description: 'CRON day (month) (see https://crontab.guru/examples.html for examples).'
example: '*'
month:
type: string
description: 'CRON month (see https://crontab.guru/examples.html for examples).'
example: '*'
day_of_week:
type: string
description: 'CRON day (week) (see https://crontab.guru/examples.html for examples).'
example: '*'
required:
- name
- minute
- hour
- day_of_month
- month
- day_of_week
delete:
summary: 'Delete server schedule.'
operationId: deleteServerSchedule
description: "Deletes a schedule and it's associated tasks."
parameters: []
responses:
204:
description: 'Schedule deleted'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Schedules'
parameters:
-
in: path
name: server
description: 'The server.'
example: 1d6423f4-d949-4137-8194-33c924f75cff
required: true
schema:
type: string
-
in: path
name: schedule
description: 'The schedule.'
example: 78
required: true
schema:
type: integer
'/api/client/servers/{server}/schedules/{schedule}/execute':
post:
summary: 'Execute server schedule.'
operationId: executeServerSchedule
description: "Executes a given schedule immediately rather than waiting on it's normally scheduled time\nto pass. This does not care about the schedule state."
parameters: []
responses:
204:
description: 'Schedule executed'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Schedules'
parameters:
-
in: path
name: server
description: 'The server.'
example: 8b3a35eb-f5a7-4f6d-9008-f49559f9ef9d
required: true
schema:
type: string
-
in: path
name: schedule
description: 'The schedule.'
example: 78
required: true
schema:
type: integer
'/api/client/servers/{server}/schedules/{schedule}/tasks':
post:
summary: 'Create server schedule task.'
operationId: createServerScheduleTask
description: 'Create a new task for a given schedule and store it in the database.'
parameters: []
responses:
200:
description: Task
content:
application/json:
schema:
type: object
example:
object: schedule_task
attributes:
id: null
sequence_id: 7
action: command
payload: 'test command'
time_offset: 120
is_queued: false
continue_on_failure: false
created_at: null
updated_at: null
properties:
object:
type: string
example: schedule_task
attributes:
type: object
properties:
id:
type: string
example: null
sequence_id:
type: integer
example: 7
action:
type: string
example: command
payload:
type: string
example: 'test command'
time_offset:
type: integer
example: 120
is_queued:
type: boolean
example: false
continue_on_failure:
type: boolean
example: false
created_at:
type: string
example: null
updated_at:
type: string
example: null
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Schedules'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
action:
type: string
description: 'Action for this task to perform on the server.'
example: command
enum:
- command
- power
payload:
type: string
description: "Payload for the action.\n\nIf action is `command`, this will be a command that is ran on the server.\n\nIf action is `power`, this will be the power action to perform on the server (start, stop, restart, kill)."
example: 'say Server is restarting...'
time_offset:
type: integer
description: 'Time (in seconds) to wait after the previous task is ran before running this one. Must be at least 0. Must not be greater than 900.'
example: 15
sequence_id:
type: integer
description: 'The sequence id for the task. Tasks are executed in order of sequence, starting at sequence 1. Must be at least 1.'
example: 2
continue_on_failure:
type: boolean
description: 'If this task fails to run, should we continue (true) or stop (false) the execution of any other tasks?.'
example: false
required:
- action
- payload
- time_offset
- sequence_id
- continue_on_failure
parameters:
-
in: path
name: server
description: 'The server.'
example: 4d221c8c-792b-4387-b05b-dc2ffbb2db9b
required: true
schema:
type: string
-
in: path
name: schedule
description: 'The schedule.'
example: 78
required: true
schema:
type: integer
'/api/client/servers/{server}/schedules/{schedule}/tasks/{task}':
post:
summary: 'Update server schedule task.'
operationId: updateServerScheduleTask
description: 'Updates a given task for a server.'
parameters: []
responses:
200:
description: Task
content:
application/json:
schema:
type: object
example:
object: schedule_task
attributes:
id: null
sequence_id: 6
action: command
payload: 'test command'
time_offset: 120
is_queued: false
continue_on_failure: false
created_at: null
updated_at: null
properties:
object:
type: string
example: schedule_task
attributes:
type: object
properties:
id:
type: string
example: null
sequence_id:
type: integer
example: 6
action:
type: string
example: command
payload:
type: string
example: 'test command'
time_offset:
type: integer
example: 120
is_queued:
type: boolean
example: false
continue_on_failure:
type: boolean
example: false
created_at:
type: string
example: null
updated_at:
type: string
example: null
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Schedules'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
action:
type: string
description: 'Action for this task to perform on the server.'
example: command
enum:
- command
- power
payload:
type: string
description: "Payload for the action.\n\nIf action is `command`, this will be a command that is ran on the server.\n\nIf action is `power`, this will be the power action to perform on the server (start, stop, restart, kill)."
example: 'say Server is restarting...'
time_offset:
type: integer
description: 'Time (in seconds) to wait after the previous task is ran before running this one. Must be at least 0. Must not be greater than 900.'
example: 15
sequence_id:
type: integer
description: 'The sequence id for the task. Tasks are executed in order of sequence, starting at sequence 1. Must be at least 1.'
example: 2
continue_on_failure:
type: boolean
description: 'If this task fails to run, should we continue (true) or stop (false) the execution of any other tasks?.'
example: false
required:
- action
- payload
- time_offset
- sequence_id
- continue_on_failure
delete:
summary: 'Delete server schedule task.'
operationId: deleteServerScheduleTask
description: "Delete a given task for a schedule. If there are subsequent tasks stored in the database\nfor this schedule their sequence IDs are decremented properly."
parameters: []
responses:
204:
description: 'Schedule task deleted'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Schedules'
parameters:
-
in: path
name: server
description: 'The server.'
example: 0dadb7a3-7fbd-4e58-8e59-6a50ef411adc
required: true
schema:
type: string
-
in: path
name: schedule
description: 'The schedule.'
example: 78
required: true
schema:
type: integer
-
in: path
name: task
description: 'The task.'
example: 129
required: true
schema:
type: integer
'/api/client/servers/{server}/startup':
get:
summary: 'Get server variables.'
operationId: getServerVariables
description: "Returns the startup information for the server including all\nenvironment variables."
parameters: []
responses:
200:
description: 'List of Variables'
content:
application/json:
schema:
type: object
example:
object: list
data:
-
object: egg_variable
attributes:
name: Tina
description: 'Maiores nihil pariatur.'
env_variable: EARUM_IMPEDIT
dropdown_options: []
default_value: DarkGoldenRod
server_value: null
is_editable: true
required_features: []
rules: required|string
-
object: egg_variable
attributes:
name: Otto
description: 'Sed qui qui fugit.'
env_variable: POSSIMUS_MOLLITIA
dropdown_options: []
default_value: DimGray
server_value: null
is_editable: true
required_features: []
rules: required|string
properties:
object:
type: string
example: list
data:
type: array
example:
-
object: egg_variable
attributes:
name: Tina
description: 'Maiores nihil pariatur.'
env_variable: EARUM_IMPEDIT
dropdown_options: []
default_value: DarkGoldenRod
server_value: null
is_editable: true
required_features: []
rules: required|string
-
object: egg_variable
attributes:
name: Otto
description: 'Sed qui qui fugit.'
env_variable: POSSIMUS_MOLLITIA
dropdown_options: []
default_value: DimGray
server_value: null
is_editable: true
required_features: []
rules: required|string
items:
type: object
properties:
object:
type: string
example: egg_variable
attributes:
type: object
properties:
name:
type: string
example: Tina
description:
type: string
example: 'Maiores nihil pariatur.'
env_variable:
type: string
example: EARUM_IMPEDIT
dropdown_options:
type: array
example: []
default_value:
type: string
example: DarkGoldenRod
server_value:
type: string
example: null
is_editable:
type: boolean
example: true
required_features:
type: array
example: []
rules:
type: string
example: required|string
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Startup'
parameters:
-
in: path
name: server
description: 'The server.'
example: cb11b9e0-d8fe-407f-a020-e16057240f1c
required: true
schema:
type: string
'/api/client/servers/{server}/startup/variable':
put:
summary: 'Update server variable.'
operationId: updateServerVariable
description: 'Updates a single variable for a server.'
parameters: []
responses:
200:
description: Variable
content:
application/json:
schema:
type: object
example:
object: egg_variable
attributes:
name: Alessandra
description: 'Qui unde voluptatem.'
env_variable: DIGNISSIMOS_ET
dropdown_options: []
default_value: Red
server_value: null
is_editable: true
required_features: []
rules: required|string
properties:
object:
type: string
example: egg_variable
attributes:
type: object
properties:
name:
type: string
example: Alessandra
description:
type: string
example: 'Qui unde voluptatem.'
env_variable:
type: string
example: DIGNISSIMOS_ET
dropdown_options:
type: array
example: []
default_value:
type: string
example: Red
server_value:
type: string
example: null
is_editable:
type: boolean
example: true
required_features:
type: array
example: []
rules:
type: string
example: required|string
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Startup'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
key:
type: string
description: 'Environment variable key to update.'
example: JARFILE
value:
type: string
description: 'Value to set for the environment variable.'
example: paper-1.21.jar
required:
- key
parameters:
-
in: path
name: server
description: 'The server.'
example: b42ab521-c357-4340-8e27-ff28dd48038d
required: true
schema:
type: string
'/api/client/servers/{server}/startup/variables':
put:
summary: 'Update server variables.'
operationId: updateServerVariables
description: 'Updates one or more variables for a server.'
parameters: []
responses:
200:
description: 'List of Variables'
content:
application/json:
schema:
type: object
example:
object: list
data:
-
object: egg_variable
attributes:
name: Wava
description: 'Sed quam sit.'
env_variable: PERFERENDIS_OCCAECATI
dropdown_options: []
default_value: SlateBlue
server_value: null
is_editable: true
required_features: []
rules: required|string
-
object: egg_variable
attributes:
name: Guadalupe
description: 'Saepe nisi eos.'
env_variable: ELIGENDI_DUCIMUS
dropdown_options: []
default_value: Wheat
server_value: null
is_editable: true
required_features: []
rules: required|string
properties:
object:
type: string
example: list
data:
type: array
example:
-
object: egg_variable
attributes:
name: Wava
description: 'Sed quam sit.'
env_variable: PERFERENDIS_OCCAECATI
dropdown_options: []
default_value: SlateBlue
server_value: null
is_editable: true
required_features: []
rules: required|string
-
object: egg_variable
attributes:
name: Guadalupe
description: 'Saepe nisi eos.'
env_variable: ELIGENDI_DUCIMUS
dropdown_options: []
default_value: Wheat
server_value: null
is_editable: true
required_features: []
rules: required|string
items:
type: object
properties:
object:
type: string
example: egg_variable
attributes:
type: object
properties:
name:
type: string
example: Wava
description:
type: string
example: 'Sed quam sit.'
env_variable:
type: string
example: PERFERENDIS_OCCAECATI
dropdown_options:
type: array
example: []
default_value:
type: string
example: SlateBlue
server_value:
type: string
example: null
is_editable:
type: boolean
example: true
required_features:
type: array
example: []
rules:
type: string
example: required|string
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Startup'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
environment:
type: object
description: 'Environment variables to set for the server.'
example:
JARFILE: paper-1.21.jar
properties: { }
required:
- environment
parameters:
-
in: path
name: server
description: 'The server.'
example: 590431af-39d0-4d6e-b899-9deff6e1bb7f
required: true
schema:
type: string
'/api/client/servers/{server}/subservers':
get:
summary: 'Get subservers.'
operationId: getSubservers
description: 'Returns all subservers owned by a given server.'
parameters: []
responses:
200:
description: 'List of Subservers'
content:
application/json:
schema:
type: object
example:
object: list
data:
-
object: server
attributes:
server_owner: false
identifier: b9e07bed
internal_id: null
external_id: null
parent: null
uuid: b9e07bed-b023-4502-8ee8-7e0d8328b2a6
name: Matteo
is_node_under_maintenance: false
in_conflict_state: false
sftp_details:
ip: 224.49.171.248
port: 2222
description: 'Voluptas facilis soluta enim illo alias est. In expedita recusandae sit qui molestias dolor. Nihil recusandae repudiandae et qui culpa repellat non.'
limits:
memory: 512
swap: 0
disk: 512
io: 500
cpu: 0
threads: null
oom_killer: null
abilities: null
invocation: '/bin/bash echo "hello world"'
docker_image: 'foo/bar:latest'
egg_features:
- premium
- preinstalls
egg_name: 'Nia Kihn'
bot_type: null
owner_id: null
owner_email: null
feature_limits:
allocations: 1
backups: 4
databases: 1
subservers: 3
action: installing
status: null
status_reason: null
is_transferring: false
subdomain: null
node:
name: FactoryNode_vkBLj9TAMs
location: na
type: premium
status_link: 'https://status.pebblehost.com/nodes/name/FactoryNode_vkBLj9TAMs/2fbb7fe5342f'
migrate_by: null
timezone: Etc/GMT
relationships:
allocations:
object: list
data:
-
object: allocation
attributes:
id: 8848511
ip: 21.238.151.138
ip_alias: null
port: 11239
notes: null
is_default: false
variables:
object: null_resource
attributes: null
-
object: server
attributes:
server_owner: false
identifier: 4b00d8ce
internal_id: null
external_id: null
parent: null
uuid: 4b00d8ce-5c2b-4f16-8659-0936055a235b
name: Reyna
is_node_under_maintenance: false
in_conflict_state: false
sftp_details:
ip: 146.112.120.76
port: 2222
description: 'Est sunt ducimus esse et consequatur. Ex illum nam possimus nihil accusamus in. Rerum enim non vero.'
limits:
memory: 512
swap: 0
disk: 512
io: 500
cpu: 0
threads: null
oom_killer: null
abilities: null
invocation: '/bin/bash echo "hello world"'
docker_image: 'foo/bar:latest'
egg_features:
- premium
- preinstalls
egg_name: 'Myrl Lockman'
bot_type: null
owner_id: null
owner_email: null
feature_limits:
allocations: 1
backups: 4
databases: 1
subservers: 3
action: installing
status: null
status_reason: null
is_transferring: false
subdomain: null
node:
name: FactoryNode_KIauos1lFL
location: na
type: premium
status_link: 'https://status.pebblehost.com/nodes/name/FactoryNode_KIauos1lFL/0e4a2bcab573'
migrate_by: null
timezone: Etc/GMT
relationships:
allocations:
object: list
data:
-
object: allocation
attributes:
id: 8848515
ip: 142.227.42.160
ip_alias: null
port: 40136
notes: null
is_default: false
variables:
object: null_resource
attributes: null
properties:
object:
type: string
example: list
data:
type: array
example:
-
object: server
attributes:
server_owner: false
identifier: b9e07bed
internal_id: null
external_id: null
parent: null
uuid: b9e07bed-b023-4502-8ee8-7e0d8328b2a6
name: Matteo
is_node_under_maintenance: false
in_conflict_state: false
sftp_details:
ip: 224.49.171.248
port: 2222
description: 'Voluptas facilis soluta enim illo alias est. In expedita recusandae sit qui molestias dolor. Nihil recusandae repudiandae et qui culpa repellat non.'
limits:
memory: 512
swap: 0
disk: 512
io: 500
cpu: 0
threads: null
oom_killer: null
abilities: null
invocation: '/bin/bash echo "hello world"'
docker_image: 'foo/bar:latest'
egg_features:
- premium
- preinstalls
egg_name: 'Nia Kihn'
bot_type: null
owner_id: null
owner_email: null
feature_limits:
allocations: 1
backups: 4
databases: 1
subservers: 3
action: installing
status: null
status_reason: null
is_transferring: false
subdomain: null
node:
name: FactoryNode_vkBLj9TAMs
location: na
type: premium
status_link: 'https://status.pebblehost.com/nodes/name/FactoryNode_vkBLj9TAMs/2fbb7fe5342f'
migrate_by: null
timezone: Etc/GMT
relationships:
allocations:
object: list
data:
-
object: allocation
attributes:
id: 8848511
ip: 21.238.151.138
ip_alias: null
port: 11239
notes: null
is_default: false
variables:
object: null_resource
attributes: null
-
object: server
attributes:
server_owner: false
identifier: 4b00d8ce
internal_id: null
external_id: null
parent: null
uuid: 4b00d8ce-5c2b-4f16-8659-0936055a235b
name: Reyna
is_node_under_maintenance: false
in_conflict_state: false
sftp_details:
ip: 146.112.120.76
port: 2222
description: 'Est sunt ducimus esse et consequatur. Ex illum nam possimus nihil accusamus in. Rerum enim non vero.'
limits:
memory: 512
swap: 0
disk: 512
io: 500
cpu: 0
threads: null
oom_killer: null
abilities: null
invocation: '/bin/bash echo "hello world"'
docker_image: 'foo/bar:latest'
egg_features:
- premium
- preinstalls
egg_name: 'Myrl Lockman'
bot_type: null
owner_id: null
owner_email: null
feature_limits:
allocations: 1
backups: 4
databases: 1
subservers: 3
action: installing
status: null
status_reason: null
is_transferring: false
subdomain: null
node:
name: FactoryNode_KIauos1lFL
location: na
type: premium
status_link: 'https://status.pebblehost.com/nodes/name/FactoryNode_KIauos1lFL/0e4a2bcab573'
migrate_by: null
timezone: Etc/GMT
relationships:
allocations:
object: list
data:
-
object: allocation
attributes:
id: 8848515
ip: 142.227.42.160
ip_alias: null
port: 40136
notes: null
is_default: false
variables:
object: null_resource
attributes: null
items:
type: object
properties:
object:
type: string
example: server
attributes:
type: object
properties:
server_owner:
type: boolean
example: false
identifier:
type: string
example: b9e07bed
internal_id:
type: string
example: null
external_id:
type: string
example: null
parent:
type: string
example: null
uuid:
type: string
example: b9e07bed-b023-4502-8ee8-7e0d8328b2a6
name:
type: string
example: Matteo
is_node_under_maintenance:
type: boolean
example: false
in_conflict_state:
type: boolean
example: false
sftp_details:
type: object
properties:
ip:
type: string
example: 224.49.171.248
port:
type: integer
example: 2222
description:
type: string
example: 'Voluptas facilis soluta enim illo alias est. In expedita recusandae sit qui molestias dolor. Nihil recusandae repudiandae et qui culpa repellat non.'
limits:
type: object
properties:
memory:
type: integer
example: 512
swap:
type: integer
example: 0
disk:
type: integer
example: 512
io:
type: integer
example: 500
cpu:
type: integer
example: 0
threads:
type: string
example: null
oom_killer:
type: string
example: null
abilities:
type: string
example: null
invocation:
type: string
example: '/bin/bash echo "hello world"'
docker_image:
type: string
example: 'foo/bar:latest'
egg_features:
type: array
example:
- premium
- preinstalls
items:
type: string
egg_name:
type: string
example: 'Nia Kihn'
bot_type:
type: string
example: null
owner_id:
type: string
example: null
owner_email:
type: string
example: null
feature_limits:
type: object
properties:
allocations:
type: integer
example: 1
backups:
type: integer
example: 4
databases:
type: integer
example: 1
subservers:
type: integer
example: 3
action:
type: string
example: installing
status:
type: string
example: null
status_reason:
type: string
example: null
is_transferring:
type: boolean
example: false
subdomain:
type: string
example: null
node:
type: object
properties:
name:
type: string
example: FactoryNode_vkBLj9TAMs
location:
type: string
example: na
type:
type: string
example: premium
status_link:
type: string
example: 'https://status.pebblehost.com/nodes/name/FactoryNode_vkBLj9TAMs/2fbb7fe5342f'
migrate_by:
type: string
example: null
timezone:
type: string
example: Etc/GMT
relationships:
type: object
properties:
allocations:
type: object
properties:
object:
type: string
example: list
data:
type: array
example: [{ object: allocation, attributes: { id: 8848511, ip: 21.238.151.138, ip_alias: null, port: 11239, notes: null, is_default: false } }]
items: { type: object, properties: { object: { type: string, example: allocation }, attributes: { type: object, properties: { id: { type: integer, example: 8848511 }, ip: { type: string, example: 21.238.151.138 }, ip_alias: { type: string, example: null }, port: { type: integer, example: 11239 }, notes: { type: string, example: null }, is_default: { type: boolean, example: false } } } } }
variables:
type: object
properties:
object:
type: string
example: null_resource
attributes:
type: string
example: null
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Subservers'
post:
summary: 'Create subserver.'
operationId: createSubserver
description: 'Creates a new subserver.'
parameters: []
responses:
200:
description: Subserver
content:
application/json:
schema:
type: object
example:
object: server
attributes:
server_owner: false
identifier: 60ecaa29
internal_id: null
external_id: null
parent: null
uuid: 60ecaa29-ac5f-4ece-9192-8c5dd2fbd98b
name: Maude
is_node_under_maintenance: false
in_conflict_state: false
sftp_details:
ip: 9.61.204.46
port: 2222
description: 'Sit quia alias et molestiae. Temporibus consequatur adipisci ipsam sequi quis. Assumenda et consequatur sit incidunt quo.'
limits:
memory: 512
swap: 0
disk: 512
io: 500
cpu: 0
threads: null
oom_killer: null
abilities: null
invocation: '/bin/bash echo "hello world"'
docker_image: 'foo/bar:latest'
egg_features:
- premium
- preinstalls
egg_name: 'Hipolito Dickinson'
bot_type: null
owner_id: null
owner_email: null
feature_limits:
allocations: 1
backups: 4
databases: 1
subservers: 3
action: installing
status: null
status_reason: null
is_transferring: false
subdomain: null
node:
name: FactoryNode_rg3inGk8Cg
location: na
type: premium
status_link: 'https://status.pebblehost.com/nodes/name/FactoryNode_rg3inGk8Cg/c51dd2e2e887'
migrate_by: null
timezone: Etc/GMT
relationships:
allocations:
object: list
data:
-
object: allocation
attributes:
id: 8848519
ip: 128.119.87.26
ip_alias: null
port: 31017
notes: null
is_default: false
variables:
object: null_resource
attributes: null
properties:
object:
type: string
example: server
attributes:
type: object
properties:
server_owner:
type: boolean
example: false
identifier:
type: string
example: 60ecaa29
internal_id:
type: string
example: null
external_id:
type: string
example: null
parent:
type: string
example: null
uuid:
type: string
example: 60ecaa29-ac5f-4ece-9192-8c5dd2fbd98b
name:
type: string
example: Maude
is_node_under_maintenance:
type: boolean
example: false
in_conflict_state:
type: boolean
example: false
sftp_details:
type: object
properties:
ip:
type: string
example: 9.61.204.46
port:
type: integer
example: 2222
description:
type: string
example: 'Sit quia alias et molestiae. Temporibus consequatur adipisci ipsam sequi quis. Assumenda et consequatur sit incidunt quo.'
limits:
type: object
properties:
memory:
type: integer
example: 512
swap:
type: integer
example: 0
disk:
type: integer
example: 512
io:
type: integer
example: 500
cpu:
type: integer
example: 0
threads:
type: string
example: null
oom_killer:
type: string
example: null
abilities:
type: string
example: null
invocation:
type: string
example: '/bin/bash echo "hello world"'
docker_image:
type: string
example: 'foo/bar:latest'
egg_features:
type: array
example:
- premium
- preinstalls
items:
type: string
egg_name:
type: string
example: 'Hipolito Dickinson'
bot_type:
type: string
example: null
owner_id:
type: string
example: null
owner_email:
type: string
example: null
feature_limits:
type: object
properties:
allocations:
type: integer
example: 1
backups:
type: integer
example: 4
databases:
type: integer
example: 1
subservers:
type: integer
example: 3
action:
type: string
example: installing
status:
type: string
example: null
status_reason:
type: string
example: null
is_transferring:
type: boolean
example: false
subdomain:
type: string
example: null
node:
type: object
properties:
name:
type: string
example: FactoryNode_rg3inGk8Cg
location:
type: string
example: na
type:
type: string
example: premium
status_link:
type: string
example: 'https://status.pebblehost.com/nodes/name/FactoryNode_rg3inGk8Cg/c51dd2e2e887'
migrate_by:
type: string
example: null
timezone:
type: string
example: Etc/GMT
relationships:
type: object
properties:
allocations:
type: object
properties:
object:
type: string
example: list
data:
type: array
example:
-
object: allocation
attributes:
id: 8848519
ip: 128.119.87.26
ip_alias: null
port: 31017
notes: null
is_default: false
items:
type: object
properties:
object:
type: string
example: allocation
attributes:
type: object
properties: { id: { type: integer, example: 8848519 }, ip: { type: string, example: 128.119.87.26 }, ip_alias: { type: string, example: null }, port: { type: integer, example: 31017 }, notes: { type: string, example: null }, is_default: { type: boolean, example: false } }
variables:
type: object
properties:
object:
type: string
example: null_resource
attributes:
type: string
example: null
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
502:
description: DaemonConnectionException
content:
application/json:
schema:
type: object
example:
errors:
-
code: DaemonConnectionException
status: '502'
detail: ''
properties:
errors:
type: array
example:
-
code: DaemonConnectionException
status: '502'
detail: ''
items:
type: object
properties:
code:
type: string
example: DaemonConnectionException
status:
type: string
example: '502'
detail:
type: string
example: ''
tags:
- 'Server - Subservers'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: 'Name of the subserver. Must be at least 1 character. Must not be greater than 191 characters.'
example: 'My Other Minecraft Server'
description:
type: string
description: 'Description for the subserver.'
example: 'Some other server I created'
threads:
type: integer
description: 'Number of threads to assign to the new subserver. Must be at least 1.'
example: 1
memory_gigabytes:
type: integer
description: 'Number of gigabytes of memory to assign to the new subserver. Must be at least 1.'
example: 1
location_name:
type: string
description: 'Location to create the subserver in.'
example: na
enum:
- na
- eu
- au
- us
- fl
- sg
sync_subusers:
type: boolean
description: 'Should subusers from this server be synced to the new subserver?.'
example: false
required:
- name
- threads
- memory_gigabytes
- sync_subusers
parameters:
-
in: path
name: server
description: 'The server.'
example: 4e4a0bbd-e429-4d81-9534-8ecbf9743959
required: true
schema:
type: string
'/api/client/servers/{server}/subservers/{subserver}':
delete:
summary: 'Delete subserver.'
operationId: deleteSubserver
description: 'Delete a subserver.'
parameters: []
responses:
204:
description: 'Subserver deleted'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
502:
description: DaemonConnectionException
content:
application/json:
schema:
type: object
example:
errors:
-
code: DaemonConnectionException
status: '502'
detail: ''
properties:
errors:
type: array
example:
-
code: DaemonConnectionException
status: '502'
detail: ''
items:
type: object
properties:
code:
type: string
example: DaemonConnectionException
status:
type: string
example: '502'
detail:
type: string
example: ''
tags:
- 'Server - Subservers'
patch:
summary: 'Update subserver.'
operationId: updateSubserver
description: 'Updates a subserver.'
parameters: []
responses:
200:
description: Subserver
content:
application/json:
schema:
type: object
example:
object: server
attributes:
server_owner: false
identifier: '26714362'
internal_id: null
external_id: null
parent: null
uuid: 26714362-ff43-40bf-9677-500672569948
name: Rylee
is_node_under_maintenance: false
in_conflict_state: false
sftp_details:
ip: 239.76.103.181
port: 2222
description: 'Laborum distinctio qui qui eveniet. Ut sapiente voluptas natus cumque possimus voluptatem tempore. Cupiditate magnam ducimus beatae eaque vitae non velit.'
limits:
memory: 512
swap: 0
disk: 512
io: 500
cpu: 0
threads: null
oom_killer: null
abilities: null
invocation: '/bin/bash echo "hello world"'
docker_image: 'foo/bar:latest'
egg_features:
- premium
- preinstalls
egg_name: 'Isadore Parisian V'
bot_type: null
owner_id: null
owner_email: null
feature_limits:
allocations: 1
backups: 4
databases: 1
subservers: 3
action: installing
status: null
status_reason: null
is_transferring: false
subdomain: null
node:
name: FactoryNode_dKoCDjS2wg
location: na
type: premium
status_link: 'https://status.pebblehost.com/nodes/name/FactoryNode_dKoCDjS2wg/b15557f1cb3a'
migrate_by: null
timezone: Etc/GMT
relationships:
allocations:
object: list
data:
-
object: allocation
attributes:
id: 8848523
ip: 89.137.250.37
ip_alias: null
port: 16779
notes: null
is_default: false
variables:
object: null_resource
attributes: null
properties:
object:
type: string
example: server
attributes:
type: object
properties:
server_owner:
type: boolean
example: false
identifier:
type: string
example: '26714362'
internal_id:
type: string
example: null
external_id:
type: string
example: null
parent:
type: string
example: null
uuid:
type: string
example: 26714362-ff43-40bf-9677-500672569948
name:
type: string
example: Rylee
is_node_under_maintenance:
type: boolean
example: false
in_conflict_state:
type: boolean
example: false
sftp_details:
type: object
properties:
ip:
type: string
example: 239.76.103.181
port:
type: integer
example: 2222
description:
type: string
example: 'Laborum distinctio qui qui eveniet. Ut sapiente voluptas natus cumque possimus voluptatem tempore. Cupiditate magnam ducimus beatae eaque vitae non velit.'
limits:
type: object
properties:
memory:
type: integer
example: 512
swap:
type: integer
example: 0
disk:
type: integer
example: 512
io:
type: integer
example: 500
cpu:
type: integer
example: 0
threads:
type: string
example: null
oom_killer:
type: string
example: null
abilities:
type: string
example: null
invocation:
type: string
example: '/bin/bash echo "hello world"'
docker_image:
type: string
example: 'foo/bar:latest'
egg_features:
type: array
example:
- premium
- preinstalls
items:
type: string
egg_name:
type: string
example: 'Isadore Parisian V'
bot_type:
type: string
example: null
owner_id:
type: string
example: null
owner_email:
type: string
example: null
feature_limits:
type: object
properties:
allocations:
type: integer
example: 1
backups:
type: integer
example: 4
databases:
type: integer
example: 1
subservers:
type: integer
example: 3
action:
type: string
example: installing
status:
type: string
example: null
status_reason:
type: string
example: null
is_transferring:
type: boolean
example: false
subdomain:
type: string
example: null
node:
type: object
properties:
name:
type: string
example: FactoryNode_dKoCDjS2wg
location:
type: string
example: na
type:
type: string
example: premium
status_link:
type: string
example: 'https://status.pebblehost.com/nodes/name/FactoryNode_dKoCDjS2wg/b15557f1cb3a'
migrate_by:
type: string
example: null
timezone:
type: string
example: Etc/GMT
relationships:
type: object
properties:
allocations:
type: object
properties:
object:
type: string
example: list
data:
type: array
example:
-
object: allocation
attributes:
id: 8848523
ip: 89.137.250.37
ip_alias: null
port: 16779
notes: null
is_default: false
items:
type: object
properties:
object:
type: string
example: allocation
attributes:
type: object
properties: { id: { type: integer, example: 8848523 }, ip: { type: string, example: 89.137.250.37 }, ip_alias: { type: string, example: null }, port: { type: integer, example: 16779 }, notes: { type: string, example: null }, is_default: { type: boolean, example: false } }
variables:
type: object
properties:
object:
type: string
example: null_resource
attributes:
type: string
example: null
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
502:
description: DaemonConnectionException
content:
application/json:
schema:
type: object
example:
errors:
-
code: DaemonConnectionException
status: '502'
detail: ''
properties:
errors:
type: array
example:
-
code: DaemonConnectionException
status: '502'
detail: ''
items:
type: object
properties:
code:
type: string
example: DaemonConnectionException
status:
type: string
example: '502'
detail:
type: string
example: ''
tags:
- 'Server - Subservers'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: 'Name of the subserver. Must be at least 1 character. Must not be greater than 191 characters.'
example: 'My Other Minecraft Server'
description:
type: string
description: 'Description for the subserver.'
example: 'Some other server I created'
threads:
type: integer
description: 'Number of threads to assign to the new subserver. Must be at least 1.'
example: 1
memory_gigabytes:
type: integer
description: 'Number of gigabytes of memory to assign to the new subserver. Must be at least 1.'
example: 1
required:
- name
- threads
- memory_gigabytes
parameters:
-
in: path
name: server
description: 'The server.'
example: 2debc7ef-b6bb-450e-aa28-0d311c13ae71
required: true
schema:
type: string
-
in: path
name: subserver
description: 'The subserver.'
example: eligendi
required: true
schema:
type: string
'/api/client/servers/{server}/subservers/{subserver}/subusers':
post:
summary: 'Sync subusers.'
operationId: syncSubusers
description: 'Syncs subusers from the parent server to a subserver.'
parameters: []
responses:
204:
description: 'Subusers synced'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Subservers'
parameters:
-
in: path
name: server
description: 'The server.'
example: 1da232dc-3f6a-44c1-8514-0166b64e0ed5
required: true
schema:
type: string
-
in: path
name: subserver
description: 'The subserver.'
example: ab
required: true
schema:
type: string
'/api/client/servers/{server}/users':
get:
summary: 'Get server subusers.'
operationId: getServerSubusers
description: 'Return the users associated with this server instance.'
parameters: []
responses:
200:
description: 'List of Subusers'
content:
application/json:
schema:
type: object
example:
object: list
data:
-
object: server_subuser
attributes:
uuid: 9094ab7a-d780-41de-b5f9-da4924223d99
email: ilene.harvey@jacobi.com
image: null
2fa_enabled: false
created_at: '2025-03-14T18:50:28+00:00'
permissions:
- websocket.connect
- websocket.logs
-
object: server_subuser
attributes:
uuid: 27822a64-5609-4398-ae23-bbe2b7cc56c1
email: eileen15@gmail.com
image: null
2fa_enabled: false
created_at: '2025-03-14T18:50:29+00:00'
permissions:
- websocket.connect
- websocket.logs
properties:
object:
type: string
example: list
data:
type: array
example:
-
object: server_subuser
attributes:
uuid: 9094ab7a-d780-41de-b5f9-da4924223d99
email: ilene.harvey@jacobi.com
image: null
2fa_enabled: false
created_at: '2025-03-14T18:50:28+00:00'
permissions:
- websocket.connect
- websocket.logs
-
object: server_subuser
attributes:
uuid: 27822a64-5609-4398-ae23-bbe2b7cc56c1
email: eileen15@gmail.com
image: null
2fa_enabled: false
created_at: '2025-03-14T18:50:29+00:00'
permissions:
- websocket.connect
- websocket.logs
items:
type: object
properties:
object:
type: string
example: server_subuser
attributes:
type: object
properties:
uuid:
type: string
example: 9094ab7a-d780-41de-b5f9-da4924223d99
email:
type: string
example: ilene.harvey@jacobi.com
image:
type: string
example: null
2fa_enabled:
type: boolean
example: false
created_at:
type: string
example: '2025-03-14T18:50:28+00:00'
permissions:
type: array
example:
- websocket.connect
- websocket.logs
items:
type: string
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Subusers'
post:
summary: 'Add server subuser.'
operationId: addServerSubuser
description: 'Create a new subuser for the given server.'
parameters: []
responses:
200:
description: Subuser
content:
application/json:
schema:
type: object
example:
object: server_subuser
attributes:
uuid: 5c249829-e439-4a0c-ad2a-fe35e00eb6df
email: verla.sporer@yahoo.com
image: null
2fa_enabled: false
created_at: '2025-03-14T18:50:31+00:00'
permissions:
- websocket.connect
- websocket.logs
properties:
object:
type: string
example: server_subuser
attributes:
type: object
properties:
uuid:
type: string
example: 5c249829-e439-4a0c-ad2a-fe35e00eb6df
email:
type: string
example: verla.sporer@yahoo.com
image:
type: string
example: null
2fa_enabled:
type: boolean
example: false
created_at:
type: string
example: '2025-03-14T18:50:31+00:00'
permissions:
type: array
example:
- websocket.connect
- websocket.logs
items:
type: string
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Subusers'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
email:
type: string
description: 'Email address for the subuser. Must be a valid email address. Must be between 1 and 191 characters.'
example: subuser@example.com
permissions:
type: array
description: 'Permission node.'
example:
- control.console
items:
type: string
required:
- email
parameters:
-
in: path
name: server
description: 'The server.'
example: e2e3cd11-223c-4d53-85a3-c749250461fc
required: true
schema:
type: string
'/api/client/servers/{server}/users/{user}':
get:
summary: 'Get server subuser.'
operationId: getServerSubuser
description: 'Returns a single subuser associated with this server instance.'
parameters: []
responses:
200:
description: Subuser
content:
application/json:
schema:
type: object
example:
object: server_subuser
attributes:
uuid: 3c34bfa7-9340-4f76-b162-4df6652fdb65
email: arno.hammes@ziemann.net
image: null
2fa_enabled: false
created_at: '2025-03-14T18:50:33+00:00'
permissions:
- websocket.connect
- websocket.logs
properties:
object:
type: string
example: server_subuser
attributes:
type: object
properties:
uuid:
type: string
example: 3c34bfa7-9340-4f76-b162-4df6652fdb65
email:
type: string
example: arno.hammes@ziemann.net
image:
type: string
example: null
2fa_enabled:
type: boolean
example: false
created_at:
type: string
example: '2025-03-14T18:50:33+00:00'
permissions:
type: array
example:
- websocket.connect
- websocket.logs
items:
type: string
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Subusers'
post:
summary: 'Update server subuser.'
operationId: updateServerSubuser
description: 'Update a given subuser for the server.'
parameters: []
responses:
200:
description: Subuser
content:
application/json:
schema:
type: object
example:
object: server_subuser
attributes:
uuid: 238444ed-9c4b-4578-9f85-b827cc513554
email: jacobi.zaria@yahoo.com
image: null
2fa_enabled: false
created_at: '2025-03-14T18:50:35+00:00'
permissions:
- websocket.connect
- websocket.logs
properties:
object:
type: string
example: server_subuser
attributes:
type: object
properties:
uuid:
type: string
example: 238444ed-9c4b-4578-9f85-b827cc513554
email:
type: string
example: jacobi.zaria@yahoo.com
image:
type: string
example: null
2fa_enabled:
type: boolean
example: false
created_at:
type: string
example: '2025-03-14T18:50:35+00:00'
permissions:
type: array
example:
- websocket.connect
- websocket.logs
items:
type: string
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Subusers'
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
permissions:
type: array
description: 'Permission node.'
example:
- control.console
items:
type: string
delete:
summary: 'Remove server subuser.'
operationId: removeServerSubuser
description: "Removes a subusers from a server's assignment."
parameters: []
responses:
204:
description: 'Subuser deleted'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
tags:
- 'Server - Subusers'
parameters:
-
in: path
name: server
description: 'The server.'
example: 48874064-31bb-4a4d-82cb-e7e9e6b0f3b0
required: true
schema:
type: string
-
in: path
name: user
description: 'The user.'
example: ab9ca93b-9005-40bc-a793-190240b2ee8a
required: true
schema:
type: string
'/api/client/servers/{server}/tasks':
get:
summary: 'Get server tasks.'
operationId: getServerTasks
description: 'Returns a list of tasks that are able to be ran on the server.'
parameters: []
responses:
200:
description: 'List of Tasks'
content:
application/json:
schema:
type: object
example:
object: list
data:
-
object: egg_task
attributes:
id: null
name: 'Evelyn Sipes'
description: 'Dolores quidem explicabo at.'
start_on_completion: false
permission: file.update
relationships:
variables:
object: list
data: []
-
object: egg_task
attributes:
id: null
name: 'Emil Lebsack'
description: 'Occaecati qui tempore praesentium.'
start_on_completion: false
permission: file.update
relationships:
variables:
object: list
data: []
properties:
object:
type: string
example: list
data:
type: array
example:
-
object: egg_task
attributes:
id: null
name: 'Evelyn Sipes'
description: 'Dolores quidem explicabo at.'
start_on_completion: false
permission: file.update
relationships:
variables:
object: list
data: []
-
object: egg_task
attributes:
id: null
name: 'Emil Lebsack'
description: 'Occaecati qui tempore praesentium.'
start_on_completion: false
permission: file.update
relationships:
variables:
object: list
data: []
items:
type: object
properties:
object:
type: string
example: egg_task
attributes:
type: object
properties:
id:
type: string
example: null
name:
type: string
example: 'Evelyn Sipes'
description:
type: string
example: 'Dolores quidem explicabo at.'
start_on_completion:
type: boolean
example: false
permission:
type: string
example: file.update
relationships:
type: object
properties:
variables:
type: object
properties:
object:
type: string
example: list
data:
type: array
example: []
tags:
- 'Server - Tasks'
delete:
summary: 'Cancel server task.'
operationId: cancelServerTask
description: 'Cancels a running task on the server.'
parameters: []
responses:
204:
description: 'Task canceled'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
502:
description: DaemonConnectionException
content:
application/json:
schema:
type: object
example:
errors:
-
code: DaemonConnectionException
status: '502'
detail: ''
properties:
errors:
type: array
example:
-
code: DaemonConnectionException
status: '502'
detail: ''
items:
type: object
properties:
code:
type: string
example: DaemonConnectionException
status:
type: string
example: '502'
detail:
type: string
example: ''
tags:
- 'Server - Tasks'
parameters:
-
in: path
name: server
description: 'The server.'
example: 5fa86f15-e465-4f0f-bd7d-46333c312c81
required: true
schema:
type: string
'/api/client/servers/{server}/tasks/{eggTask}':
post:
summary: 'Run server task.'
operationId: runServerTask
description: 'Runs the given task on the server.'
parameters: []
responses:
204:
description: 'Running task'
403:
description: AuthorizationException
content:
application/json:
schema:
type: object
example:
errors:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
properties:
errors:
type: array
example:
-
code: AuthorizationException
status: '403'
detail: 'This action is unauthorized.'
items:
type: object
properties:
code:
type: string
example: AuthorizationException
status:
type: string
example: '403'
detail:
type: string
example: 'This action is unauthorized.'
502:
description: DaemonConnectionException
content:
application/json:
schema:
type: object
example:
errors:
-
code: DaemonConnectionException
status: '502'
detail: ''
properties:
errors:
type: array
example:
-
code: DaemonConnectionException
status: '502'
detail: ''
items:
type: object
properties:
code:
type: string
example: DaemonConnectionException
status:
type: string
example: '502'
detail:
type: string
example: ''
tags:
- 'Server - Tasks'
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
variables:
type: object
description: 'Variables to run the task with.'
example: []
properties: { }
parameters:
-
in: path
name: server
description: 'The server.'
example: cc709a49-217e-45a0-8985-488138f44d35
required: true
schema:
type: string
-
in: path
name: eggTask
description: ''
example: 129
required: true
schema:
type: integer
tags:
-
name: Account
description: ''
-
name: Endpoints
description: ''
-
name: Server
description: ''
-
name: 'Server - Advanced DDoS Protection'
description: ''
-
name: 'Server - Backups'
description: ''
-
name: 'Server - Control'
description: ''
-
name: 'Server - Databases'
description: ''
-
name: 'Server - File Management'
description: ''
-
name: 'Server - Firewall'
description: ''
-
name: 'Server - Minecraft'
description: ''
-
name: 'Server - Networking'
description: ''
-
name: 'Server - Schedules'
description: ''
-
name: 'Server - Startup'
description: ''
-
name: 'Server - Subservers'
description: ''
-
name: 'Server - Subusers'
description: ''
-
name: 'Server - Tasks'
description: ''
components:
securitySchemes:
default:
type: http
scheme: bearer
description: 'You can retrieve your token by visiting your dashboard and clicking Generate API token.'
security:
-
default: []