Teams
GET
https://api.restorehub.net /api/v1/servers/{id}/team List team members
Required scope: teams:read
Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://api.restorehub.net/api/v1/servers/{id}/team" \
-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}/team/invite Invite a team member
Required scope: teams:write
Parameters
idstringpathrequiredRequest body
application/json
emailstringrequiredrolestringrequired{
"email": "string",
"role": "ADMIN"
}Code samples
cURL
curl -X POST "https://api.restorehub.net/api/v1/servers/{id}/team/invite" \
-H "Authorization: Bearer $RESTOREHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"email":"string","role":"ADMIN"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
{}PUT
https://api.restorehub.net /api/v1/servers/{id}/team/{memberId} Update a team member's role
Required scope: teams:write
Parameters
idstringpathrequiredmemberIdstringpathrequiredRequest body
application/json
rolestringrequired{
"role": "ADMIN"
}Code samples
cURL
curl -X PUT "https://api.restorehub.net/api/v1/servers/{id}/team/{memberId}" \
-H "Authorization: Bearer $RESTOREHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"role":"ADMIN"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
{}DELETE
https://api.restorehub.net /api/v1/servers/{id}/team/{memberId} Remove a team member
Required scope: teams:write
Parameters
idstringpathrequiredmemberIdstringpathrequiredCode samples
cURL
curl -X DELETE "https://api.restorehub.net/api/v1/servers/{id}/team/{memberId}" \
-H "Authorization: Bearer $RESTOREHUB_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
{}POST
https://api.restorehub.net /api/v1/servers/{id}/team/accept Accept a team invite for this server
Required scope: teams:write
Parameters
idstringpathrequiredCode samples
cURL
curl -X POST "https://api.restorehub.net/api/v1/servers/{id}/team/accept" \
-H "Authorization: Bearer $RESTOREHUB_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
{}POST
https://api.restorehub.net /api/v1/servers/{id}/team/transfer Transfer ownership of the server (requires servers:delete + confirm)
Required scope: servers:delete
Parameters
idstringpathrequiredRequest body
application/json
targetEmailstringrequiredconfirmstringrequired{
"targetEmail": "string",
"confirm": "transfer-ownership"
}Code samples
cURL
curl -X POST "https://api.restorehub.net/api/v1/servers/{id}/team/transfer" \
-H "Authorization: Bearer $RESTOREHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"targetEmail":"string","confirm":"transfer-ownership"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
{}Updated