> ## Documentation Index
> Fetch the complete documentation index at: https://learn.nexudus.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update RadiusServer

> Update an existing RadiusServer record.

Updates an existing RadiusServer record. You must include the `Id` of the record to update along with all required fields.

## Authentication

<Note>
  This endpoint requires OAuth2 authentication. Include a valid bearer token in the `Authorization` header.
  The authenticated user must be a full unrestricted administrator or have the **`RadiusServer-Edit`** role.
</Note>

## Enums

<Accordion title="eRadiusServerVendor — Vendor values">
  | Value | Name                        |
  | ----- | --------------------------- |
  | 0     | Aerohive\_Networks          |
  | 1     | Alcatel\_Lucent             |
  | 2     | Aruba\_Instant              |
  | 3     | Aruba\_Mobility\_Controller |
  | 4     | Avaya                       |
  | 5     | Bluesocket                  |
  | 6     | Casa\_Systems               |
  | 7     | ChilliSpot                  |
  | 8     | CoovaChilli                 |
  | 9     | Cisco\_Systems              |
  | 10    | Dell                        |
  | 11    | EnGenius                    |
  | 12    | ExtremeWireless             |
  | 13    | FortiGate                   |
  | 14    | ICC                         |
  | 15    | LigoWave                    |
  | 16    | Meraki\_Sign\_On            |
  | 17    | Meraki\_ClickThrough        |
  | 18    | Meru\_Networks              |
  | 19    | MikroTik                    |
  | 20    | Motorola                    |
  | 21    | Mojo\_Networks              |
  | 22    | Open\_Mesh\_Cloudtrax       |
  | 23    | pfSense                     |
  | 24    | Peplink                     |
  | 25    | Ruckus\_Wireless            |
  | 26    | Ruckus\_Virtual\_SZ         |
  | 27    | SonicWall                   |
  | 28    | Ubiquiti\_Networks          |
  | 29    | TP\_Link\_EAP               |
  | 30    | Trapeze\_Wireless           |
  | 31    | Trendnet                    |
  | 32    | Xirrus                      |
  | 33    | Virtual\_Controller         |
  | 34    | Other                       |
</Accordion>

## Request Body

### Required Fields

<ParamField body="Id" type="integer" required>
  The Id of the RadiusServer record to update.
</ParamField>

<ParamField body="BusinessId" type="integer" required>
  ID of the business linked to this record.
</ParamField>

<ParamField body="Name" type="string" required>
  The name value for this radius server.
</ParamField>

<ParamField body="Vendor" type="integer" required>
  The vendor value for this radius server.
</ParamField>

### Optional Fields

<ParamField body="Active" type="boolean">
  Whether this radius server is currently active.
</ParamField>

<ParamField body="Description" type="string">
  Free-text description of this radius server.
</ParamField>

## Code Examples

<CodeGroup>
  ```bash cURL theme={null}
  curl -X PUT \
    "https://spaces.nexudus.com/api/sys/radiusservers" \
    -H "Authorization: Bearer YOUR_TOKEN" \
    -H "Content-Type: application/json" \
    -d '{
      "BusinessId": 0,
      "Name": "",
      "Vendor": 0,
      "Id": 87654321
  }'
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    'https://spaces.nexudus.com/api/sys/radiusservers',
    {
      method: 'PUT',
      headers: {
        'Authorization': 'Bearer YOUR_TOKEN',
        'Content-Type': 'application/json'
      },
      body: JSON.stringify({
        BusinessId: 0,
        Name: '',
        Vendor: 0,
        Id: 87654321
      })
    }
  );

  const data = await response.json();
  ```

  ```python Python theme={null}
  import requests

  response = requests.put(
      'https://spaces.nexudus.com/api/sys/radiusservers',
      headers={
          'Authorization': 'Bearer YOUR_TOKEN',
          'Content-Type': 'application/json'
      },
      json={
          'BusinessId': 0,
          'Name': '',
          'Vendor': 0,
          'Id': 87654321
      }
  )

  data = response.json()
  ```
</CodeGroup>

## Response

### 200

<ResponseField name="Status" type="integer">
  HTTP status code. `200` on success.
</ResponseField>

<ResponseField name="Message" type="string">
  A human-readable message confirming the update.
</ResponseField>

<ResponseField name="Value" type="object">
  Contains the `Id` of the updated record.
</ResponseField>

<ResponseField name="WasSuccessful" type="boolean">
  `true` if the radiusserver was updated successfully.
</ResponseField>

<ResponseField name="Errors" type="array">
  `null` on success.
</ResponseField>

```json Example Response theme={null}
{
  "Status": 200,
  "Message": "RadiusServer was successfully updated.",
  "Value": {
    "Id": 87654321
  },
  "OpenInDialog": false,
  "OpenInWindow": false,
  "RedirectURL": null,
  "JavaScript": null,
  "UpdatedOn": "2025-01-15T10:30:00Z",
  "UpdatedBy": "admin@example.com",
  "Errors": null,
  "WasSuccessful": true
}
```

### 400

<ResponseField name="Message" type="string">
  A summary of the validation error(s), in the format `PropertyName: error message`.
</ResponseField>

<ResponseField name="Value" type="any">
  `null` on validation failure.
</ResponseField>

<ResponseField name="Errors" type="object[]">
  Array of validation errors.

  <Expandable>
    <ResponseField name="AttemptedValue" type="any">
      The value that was submitted for the field, or `null` if missing.
    </ResponseField>

    <ResponseField name="Message" type="string">
      The validation error message.
    </ResponseField>

    <ResponseField name="PropertyName" type="string">
      The name of the property that failed validation.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="WasSuccessful" type="boolean">
  `false` when the request fails validation.
</ResponseField>

```json Example Response theme={null}
{
  "Message": "Name: is a required field",
  "Value": null,
  "Errors": [
    {
      "AttemptedValue": null,
      "Message": "is a required field",
      "PropertyName": "Name"
    }
  ],
  "WasSuccessful": false
}
```
