MCPMCP-Tools/Kunden/update_client_portal_user

update_client_portal_user

Writeclients:write

Enable or disable a client's portal user, transfer ownership with makePrimary=true, or change which locations a member sees with locationIds (a list of the client's location ids, at least one; null = every location). The owner always sees every location. Matches the UI's row actions. Email and names cannot be changed here.

Parameter
status"active" | "disabled"optional
makePrimarytrueoptional
locationIdsoptional
includeFutureLocationsbooleanoptional
clientIdstringerforderlich
Accepts the database ID or public cli- ID. IDs must belong to the authenticated agency and permitted client.
userIdstringerforderlich
Beispielanfrage
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "update_client_portal_user",
    "arguments": {
      "clientId": "string",
      "userId": "string"
    }
  }
}
Beispielantwort
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "..."
      }
    ]
  }
}

Die Antwortform dient nur zur Veranschaulichung — der tatsächliche Inhalt hängt vom Tool und Ihren Daten ab.