Panels
GET
https://api.restorehub.net /api/v1/servers/{id}/panels List panels
Required scope: panels:read
Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://api.restorehub.net/api/v1/servers/{id}/panels" \
-H "Authorization: Bearer $RESTOREHUB_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
{}400 Validation failed
Example
{
"error": "string",
"code": "string",
"details": {},
"requiredScope": "string",
"yourScopes": [
"string"
]
}Schema
errorstringHuman-readable error message
codestringMachine-readable error code (optional)
detailsobjectValidation issues (optional)
requiredScopestringRequired scope (on 403 only)
yourScopesstring[]Your key's scopes (on 403 only)
POST
https://api.restorehub.net /api/v1/servers/{id}/panels Create a panel
Required scope: panels:write
Parameters
idstringpathrequiredRequest body
application/json
namestringrequiredtitlestringdescriptionstringcolorstringbuttonLabelstring{
"name": "string",
"title": "string",
"description": "string",
"color": "string",
"buttonLabel": "string"
}Code samples
cURL
curl -X POST "https://api.restorehub.net/api/v1/servers/{id}/panels" \
-H "Authorization: Bearer $RESTOREHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","title":"string","description":"string","color":"string","buttonLabel":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
{}GET
https://api.restorehub.net /api/v1/servers/{id}/panels/{panelId} Get a panel
Required scope: panels:read
Parameters
idstringpathrequiredpanelIdstringpathrequiredCode samples
cURL
curl -X GET "https://api.restorehub.net/api/v1/servers/{id}/panels/{panelId}" \
-H "Authorization: Bearer $RESTOREHUB_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
{}PUT
https://api.restorehub.net /api/v1/servers/{id}/panels/{panelId} Update a panel
Required scope: panels:write
Parameters
idstringpathrequiredpanelIdstringpathrequiredRequest body
application/json
namestringtitlestringdescriptionstringcolorstringbuttonLabelstring{
"name": "string",
"title": "string",
"description": "string",
"color": "string",
"buttonLabel": "string"
}Code samples
cURL
curl -X PUT "https://api.restorehub.net/api/v1/servers/{id}/panels/{panelId}" \
-H "Authorization: Bearer $RESTOREHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","title":"string","description":"string","color":"string","buttonLabel":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
{}DELETE
https://api.restorehub.net /api/v1/servers/{id}/panels/{panelId} Delete a panel
Required scope: panels:write
Parameters
idstringpathrequiredpanelIdstringpathrequiredCode samples
cURL
curl -X DELETE "https://api.restorehub.net/api/v1/servers/{id}/panels/{panelId}" \
-H "Authorization: Bearer $RESTOREHUB_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
{}POST
https://api.restorehub.net /api/v1/servers/{id}/panels/{panelId}/send Send the panel to a Discord channel
Required scope: panels:write
Parameters
idstringpathrequiredpanelIdstringpathrequiredRequest body
application/json
channelIdstringrequired{
"channelId": "string"
}Code samples
cURL
curl -X POST "https://api.restorehub.net/api/v1/servers/{id}/panels/{panelId}/send" \
-H "Authorization: Bearer $RESTOREHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"channelId":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
{}Updated