Update user permissions for services and accounts

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.

Path Parameters

contactId integer · min: 1 required Example

Unique contact identifier

Headers

Accept Example
Content-Type Example

Body

required
application/json
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

Responses

200
success boolean
timestamp string
requestId string
data object
POST https://cloud.hostup.se/api/contacts/{contactId}/permissions
For AI assistants
cURL
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
  }'
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "message": "string"
  }
}
Request Body
{
  "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
}