Teams

Embed
Preview of the card
<a href="https://restorehub.net/docs/teams"><img src="https://restorehub.net/docs/_api/public/orgs/02205afa-581f-4b8b-b2a5-8aa1a06b0a65/spaces/3b58c1c8-7c23-44ef-9ff3-f4a5c899d9ac/pages/7c4ce470-103e-4cf2-9039-8db293e468a9/social-card.svg?v=3e7ae33eec8b" alt="Teams" width="600" height="315"></a>
GEThttps://api.restorehub.net/api/v1/servers/{id}/team

List team members

Required scope: teams:read

Parameters

idstringpathrequired

Code 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
errorstring
Human-readable error message
codestring
Machine-readable error code (optional)
detailsobject
Validation issues (optional)
requiredScopestring
Required scope (on 403 only)
yourScopesstring[]
Your key's scopes (on 403 only)
401 Unauthorized — missing or invalid API key

Same as 400 · GET /api/v1/servers/{id}/team

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/servers/{id}/team

429 Rate limit exceeded

Same as 400 · GET /api/v1/servers/{id}/team

POSThttps://api.restorehub.net/api/v1/servers/{id}/team/invite

Invite a team member

Required scope: teams:write

Parameters

idstringpathrequired

Request body

application/json
emailstringrequired
rolestringrequired
ADMIN | EDITOR | VIEWER
{
  "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
{}
400 Validation failed

Same as 400 · GET /api/v1/servers/{id}/team

401 Unauthorized — missing or invalid API key

Same as 400 · GET /api/v1/servers/{id}/team

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/servers/{id}/team

429 Rate limit exceeded

Same as 400 · GET /api/v1/servers/{id}/team

PUThttps://api.restorehub.net/api/v1/servers/{id}/team/{memberId}

Update a team member's role

Required scope: teams:write

Parameters

idstringpathrequired
memberIdstringpathrequired

Request body

application/json
rolestringrequired
ADMIN | EDITOR | VIEWER
{
  "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
{}
400 Validation failed

Same as 400 · GET /api/v1/servers/{id}/team

401 Unauthorized — missing or invalid API key

Same as 400 · GET /api/v1/servers/{id}/team

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/servers/{id}/team

429 Rate limit exceeded

Same as 400 · GET /api/v1/servers/{id}/team

DELETEhttps://api.restorehub.net/api/v1/servers/{id}/team/{memberId}

Remove a team member

Required scope: teams:write

Parameters

idstringpathrequired
memberIdstringpathrequired

Code 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
{}
400 Validation failed

Same as 400 · GET /api/v1/servers/{id}/team

401 Unauthorized — missing or invalid API key

Same as 400 · GET /api/v1/servers/{id}/team

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/servers/{id}/team

429 Rate limit exceeded

Same as 400 · GET /api/v1/servers/{id}/team

POSThttps://api.restorehub.net/api/v1/servers/{id}/team/accept

Accept a team invite for this server

Required scope: teams:write

Parameters

idstringpathrequired

Code 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
{}
400 Validation failed

Same as 400 · GET /api/v1/servers/{id}/team

401 Unauthorized — missing or invalid API key

Same as 400 · GET /api/v1/servers/{id}/team

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/servers/{id}/team

429 Rate limit exceeded

Same as 400 · GET /api/v1/servers/{id}/team

POSThttps://api.restorehub.net/api/v1/servers/{id}/team/transfer

Transfer ownership of the server (requires servers:delete + confirm)

Required scope: servers:delete

Parameters

idstringpathrequired

Request body

application/json
targetEmailstringrequired
confirmstringrequired
transfer-ownership
{
  "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
{}
400 Validation failed

Same as 400 · GET /api/v1/servers/{id}/team

401 Unauthorized — missing or invalid API key

Same as 400 · GET /api/v1/servers/{id}/team

403 Forbidden — missing required scope

Same as 400 · GET /api/v1/servers/{id}/team

429 Rate limit exceeded

Same as 400 · GET /api/v1/servers/{id}/team

Updated