Modify which services and functions a specific user has access to. This includes granting or revoking permissions for VPS, web hosting, domains, invoice management, and support tickets. This API returns an ID that may be needed for follow-up actions.
contactId integer · min: 1 required Example Unique contact identifier
Accept Example Content-Type Example services array required domains array required dnsZones array required canViewInvoices boolean required canReceiveInvoices boolean required canOpenTickets boolean required canViewTickets boolean required canReceiveTicketEmails boolean required canCloseTickets boolean required accessAllVps boolean required accessAllHosting boolean required accessAllDomains boolean required canPlaceOrders boolean required success boolean timestamp string requestId string data object https://cloud.hostup.se/api/contacts/{contactId}/permissions curl -X POST "https://cloud.hostup.se/api/contacts/10456/permissions" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"services": [
{
"id": "string",
"name": "string",
"hasAccess": true
}
],
"domains": [
"string"
],
"dnsZones": [
"string"
],
"canViewInvoices": true,
"canReceiveInvoices": true,
"canOpenTickets": true,
"canViewTickets": true,
"canReceiveTicketEmails": true,
"canCloseTickets": true,
"accessAllVps": true,
"accessAllHosting": true,
"accessAllDomains": true,
"canPlaceOrders": true
}' {
"success": true,
"timestamp": "string",
"requestId": "string",
"data": {
"message": "string"
}
} {
"services": [
{
"id": "string",
"name": "string",
"hasAccess": true
}
],
"domains": [
"string"
],
"dnsZones": [
"string"
],
"canViewInvoices": true,
"canReceiveInvoices": true,
"canOpenTickets": true,
"canViewTickets": true,
"canReceiveTicketEmails": true,
"canCloseTickets": true,
"accessAllVps": true,
"accessAllHosting": true,
"accessAllDomains": true,
"canPlaceOrders": true
}