v1

latestOpenAPI 3.0.02026-07-241010520.6 KB
Users

Update User

Update an existing user.

put/tenants/{tenant_id}/users/{id}

Path parameters

tenant_idstring uuid required

The ID of the tenant that the user is part of.

idstring uuid required

The ID of the user to update.

Request body

Example request

{
  "user": {
    "first_name": "Joe",
    "last_name": "Solar",
    "email": "jsolar@aurorasolar.com",
    "phone": "(415) 360-9291",
    "title": "Engineer",
    "job_function": "executive_or_owner",
    "external_provider_id": "https://test.salesforce.com/id/00556000000X3J3AFA/00540000001ulvMAEA",
    "role_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "locale": "en-US",
    "base_price_per_watt_max": 8.31,
    "base_price_per_watt_min": 1.72
  }
}

Response

User successfully updated.

Example response

{
  "user": {
    "first_name": "Joe",
    "last_name": "Solar",
    "email": "jsolar@aurorasolar.com",
    "account_status": "active",
    "phone": "(415) 360-9291",
    "title": "Engineer",
    "job_function": "executive_or_owner",
    "external_provider_id": "https://test.salesforce.com/id/00556000000X3J3AFA/00540000001ulvMAEA",
    "role_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "locale": "en-US",
    "base_price_per_watt_max": 8.31,
    "base_price_per_watt_min": 1.72
  }
}