# Console: organizations

Source: https://docs.neode.sk/development/api-reference/console-organizations/
Last updated: 2026-12-03

> 26 operations. Organizations with their users, devices and settings.

These routes are on the console, port 3375. They take an API token as `Authorization: Bearer ndt_...`; see [API tokens](https://docs.neode.sk/command-line/api-tokens.md).

Organizations with their users, devices and settings.

## GET /api/panel/org

List organizations.

Lists every organization: the console calls the server API with its own key, so the account does not have to be a member. The console passes the call on to the server API with its own key and answers what it said, errors as {"error": "..."}.

Needs `user.view`. `neodesk organizations list` calls it.

**200**: Done (`application/json`)

| Field | Type | Required |
|---|---|---|
| `organizations` | array of [Organization](https://docs.neode.sk/development/api-reference/schemas.md#organization) | yes |

| Error | When |
|---|---|
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |

## POST /api/panel/org

Make an organization.

The server API makes the organization. The console then makes a device group named after it, with the organization's id as its team; billing packages attach to that group. The console passes the call on to the server API with its own key and answers what it said, errors as {"error": "..."}.

Needs `org.create`. `neodesk organizations create` calls it.

Request body, `application/json`:

| Field | Type | Required | What it is |
|---|---|---|---|
| `name` | string | yes | Trimmed, 1 to 120 characters; at most 120 characters |
| `slug` | string | yes | 3 to 64 lowercase letters, digits and hyphens, not starting or ending with a hyphen; taken in lower case |
| `logo_url` | string |  | An http or https address with a host, or empty |
| `settings` | string |  | A JSON text to keep with the organization, "{}" when left out |

**201**: Created (`application/json`)

[Organization](https://docs.neode.sk/development/api-reference/schemas.md#organization).

| Error | When |
|---|---|
| 400 | The name, slug or logo address is not valid |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |
| 409 | The slug is in use |

## GET /api/panel/org/{id}

Show one organization.

The console passes the call on to the server API with its own key and answers what it said, errors as {"error": "..."}.

Needs `user.view`. `neodesk organizations get` calls it.

| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
| `id` | path | string | yes | The organization's id (a UUID) |

**200**: Done (`application/json`)

[Organization](https://docs.neode.sk/development/api-reference/schemas.md#organization).

| Error | When |
|---|---|
| 400 | An id has characters a path can't take ("Invalid orgId") |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |
| 404 | There is no such organization |

## PUT /api/panel/org/{id}

Change an organization.

The console passes the call on to the server API with its own key and answers what it said, errors as {"error": "..."}.

Needs `org.edit`. `neodesk organizations update` calls it.

| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
| `id` | path | string | yes | The organization's id (a UUID) |

Request body, `application/json`:

The fields to change. A field left out stays as it is.

| Field | Type | What it is |
|---|---|---|
| `name` | string | Trimmed, 1 to 120 characters; at most 120 characters |
| `slug` | string | 3 to 64 lowercase letters, digits and hyphens; taken in lower case |
| `logo_url` | string | An http or https address with a host, or empty |
| `settings` | string | A JSON text to keep with the organization |

**200**: Done (`application/json`)

[Organization](https://docs.neode.sk/development/api-reference/schemas.md#organization).

| Error | When |
|---|---|
| 400 | The request is not valid, or an id has characters a path can't take ("Invalid orgId") |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |
| 404 | There is no such organization |
| 409 | The slug is in use |

## DELETE /api/panel/org/{id}

Delete an organization. Its devices and device groups stay.

The server API deletes the organization with its users, devices, invitations, settings, address book and saved device passwords. The console's device groups made with it stay with their members, access lists and billing packages, and lose its team id. The console passes the call on to the server API with its own key and answers what it said, errors as {"error": "..."}.

Needs `org.delete`. `neodesk organizations delete` calls it. It cannot be undone.

| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
| `id` | path | string | yes | The organization's id (a UUID) |

**204**: Deleted

| Error | When |
|---|---|
| 400 | An id has characters a path can't take ("Invalid orgId") |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |
| 404 | There is no such organization |

## GET /api/panel/org/{id}/address-book

Show an organization's address book.

The console passes the call on to the server API with its own key and answers what it said, errors as {"error": "..."}.

Needs `user.view`. `neodesk organizations address-book` calls it.

| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
| `id` | path | string | yes | The organization's id (a UUID) |

**200**: Done (`application/json`)

| Field | Type | Required | What it is |
|---|---|---|---|
| `data` | string | yes | The address book as JSON text, "{}" when none is stored |
| `enabled` | boolean | yes | Whether the organization shares the address book; true unless it was turned off |

| Error | When |
|---|---|
| 400 | An id has characters a path can't take ("Invalid orgId") |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |

## PUT /api/panel/org/{id}/address-book

Replace an organization's address book.

The console passes the call on to the server API with its own key and answers what it said, errors as {"error": "..."}.

Needs `org.edit`. `neodesk organizations address-book-set` calls it.

| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
| `id` | path | string | yes | The organization's id (a UUID) |

Request body, `application/json`:

| Field | Type | What it is |
|---|---|---|
| `data` | object or string | The address book, as an object or as JSON text. The password and hash of every peer are removed before it is stored; at most 512 kB. Left out or null keeps the stored one |
| `enabled` | boolean | Turns sharing on or off |

**200**: Done (`application/json`)

[OrganizationOk](https://docs.neode.sk/development/api-reference/schemas.md#organizationok).

| Error | When |
|---|---|
| 400 | The request is not valid, or an id has characters a path can't take ("Invalid orgId") |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |
| 413 | The address book is larger than 512 kB |

## GET /api/panel/org/{id}/available-users

List accounts that can join an organization.

The console passes the call on to the server API with its own key and answers what it said, errors as {"error": "..."}.

Needs `org.manage_users`. `neodesk organizations available-users` calls it.

| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
| `id` | path | string | yes | The organization's id (a UUID) |

**200**: Done (`application/json`)

| Field | Type | Required |
|---|---|---|
| `users` | array of [OrganizationAvailableAccount](https://docs.neode.sk/development/api-reference/schemas.md#organizationavailableaccount) | yes |

| Error | When |
|---|---|
| 400 | An id has characters a path can't take ("Invalid orgId") |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |

## GET /api/panel/org/{id}/device-groups

List an organization's device groups.

The console's device groups and user groups whose team is the organization, without the groups of folders. An id no organization has gets empty lists.

Needs `user.view`. `neodesk organizations device-groups` calls it.

| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
| `id` | path | string | yes | The organization's id (a UUID) |

**200**: Done (`application/json`)

| Field | Type | Required | What it is |
|---|---|---|---|
| `org_id` | string | yes |  |
| `device_groups` | array of object | yes |  |
| `device_groups[].id` | integer |  |  |
| `device_groups[].guid` | string |  |  |
| `device_groups[].name` | string |  |  |
| `device_groups[].note` | string |  |  |
| `device_groups[].team_id` | string |  |  |
| `device_groups[].source_type` | string |  |  |
| `device_groups[].tag_filter` | string |  |  |
| `device_groups[].created_at` | string (date-time) |  |  |
| `device_groups[].member_count` | integer |  | The number of devices in the group |
| `device_groups[].allowed_users` | array of string |  | Account names |
| `device_groups[].allowed_groups` | array of string |  | User group GUIDs |
| `device_groups[].allowed_user_groups` | array of string |  | User group GUIDs |
| `user_groups` | array of object | yes |  |
| `user_groups[].guid` | string |  |  |
| `user_groups[].name` | string |  |  |
| `user_groups[].note` | string |  |  |
| `user_groups[].member_count` | integer |  |  |

| Error | When |
|---|---|
| 400 | The id has characters a path can't take ("Invalid orgId") |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |

## GET /api/panel/org/{id}/devices

List an organization's devices.

Only the devices the account sees. The console passes the call on to the server API with its own key and answers what it said, errors as {"error": "..."}.

Needs `user.view`. `neodesk organizations devices` calls it.

| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
| `id` | path | string | yes | The organization's id (a UUID) |

**200**: Done (`application/json`)

| Field | Type | Required |
|---|---|---|
| `devices` | array of [OrganizationDevice](https://docs.neode.sk/development/api-reference/schemas.md#organizationdevice) | yes |

| Error | When |
|---|---|
| 400 | An id has characters a path can't take ("Invalid orgId") |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |

## POST /api/panel/org/{id}/devices

Add a device to an organization.

The account must see the device. A device in the organization already gets the new details. The console passes the call on to the server API with its own key and answers what it said, errors as {"error": "..."}.

Needs `org.manage_devices`. `neodesk organizations device-add` calls it.

| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
| `id` | path | string | yes | The organization's id (a UUID) |

Request body, `application/json`:

| Field | Type | Required | What it is |
|---|---|---|---|
| `device_id` | string | yes | The id of a device the server has |
| `assigned_user_id` | string |  |  |
| `department` | string |  |  |
| `location` | string |  |  |
| `building` | string |  |  |
| `tags` | string |  | Text, such as "office,ground-floor" |

**201**: Added (`application/json`)

[OrganizationDevice](https://docs.neode.sk/development/api-reference/schemas.md#organizationdevice).

| Error | When |
|---|---|
| 400 | The request is not valid, or an id has characters a path can't take ("Invalid orgId") |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account may not do this or does not see the device |
| 404 | No device has this id on the server |

## DELETE /api/panel/org/{id}/devices/{did}

Take a device out of an organization.

The account must see the device. Answers 204 also for a device that is not in the organization. The console passes the call on to the server API with its own key and answers what it said, errors as {"error": "..."}.

Needs `org.manage_devices`. `neodesk organizations device-remove` calls it. It cannot be undone.

| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
| `id` | path | string | yes | The organization's id (a UUID) |
| `did` | path | string | yes | The device's id |

**204**: Done

| Error | When |
|---|---|
| 400 | An id has characters a path can't take ("Invalid deviceId") |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account may not do this or does not see the device |

## GET /api/panel/org/{id}/invitations

List an organization's invitations.

All invitations, used and expired ones too, by the end of their validity, latest first, without their codes. The console passes the call on to the server API with its own key and answers what it said, errors as {"error": "..."}.

Needs `org.manage_users`. `neodesk organizations invitations` calls it.

| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
| `id` | path | string | yes | The organization's id (a UUID) |

**200**: Done (`application/json`)

| Field | Type | Required |
|---|---|---|
| `invitations` | array of [OrganizationInvitation](https://docs.neode.sk/development/api-reference/schemas.md#organizationinvitation) | yes |

| Error | When |
|---|---|
| 400 | An id has characters a path can't take ("Invalid orgId") |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |

## DELETE /api/panel/org/{id}/invitations/{invId}

Withdraw an invitation to an organization.

The console writes the withdrawal to its audit log. The console passes the call on to the server API with its own key and answers what it said, errors as {"error": "..."}.

Needs `org.manage_users`. `neodesk organizations invitation-delete` calls it. It cannot be undone.

| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
| `id` | path | string | yes | The organization's id (a UUID) |
| `invId` | path | string | yes | The invitation's id (a UUID) |

**204**: Withdrawn

| Error | When |
|---|---|
| 400 | An id has characters a path can't take ("Invalid orgId") |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |
| 404 | The organization has no such invitation |
| 409 | The invitation was used |

## POST /api/panel/org/{id}/invite

Invite someone to an organization (the code is shown once).

Makes an invitation with the role user. Its code is in the answer this once: the server API keeps only its hash. The person opens the link on the console's /invite page and picks a username and password. The console writes the invitation to its audit log. The console passes the call on to the server API with its own key and answers what it said, errors as {"error": "..."}.

Needs `org.manage_users`. `neodesk organizations invite` calls it.

| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
| `id` | path | string | yes | The organization's id (a UUID) |

Request body, `application/json`:

| Field | Type | What it is |
|---|---|---|
| `email` | string (email) | One address, or empty; trimmed |
| `expires_in_hours` | integer | default `72`, at least 1, at most 720 |

**201**: Created (`application/json`)

[OrganizationInvitation](https://docs.neode.sk/development/api-reference/schemas.md#organizationinvitation).

| Error | When |
|---|---|
| 400 | The request is not valid, or an id has characters a path can't take ("Invalid orgId") |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |
| 404 | There is no such organization |

## POST /api/panel/org/{id}/members

Add a console account to an organization.

The account becomes a member with the role user. The console passes the call on to the server API with its own key and answers what it said, errors as {"error": "..."}.

Needs `org.manage_users`. `neodesk organizations member-add` calls it.

| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
| `id` | path | string | yes | The organization's id (a UUID) |

Request body, `application/json`:

| Field | Type | Required | What it is |
|---|---|---|---|
| `user_id` | integer | yes | The console account's id; at least 1 |

**201**: Created (`application/json`)

[OrganizationUser](https://docs.neode.sk/development/api-reference/schemas.md#organizationuser).

| Error | When |
|---|---|
| 400 | The request is not valid, or an id has characters a path can't take ("Invalid orgId") |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |
| 404 | There is no such organization or account |
| 409 | The account is a member already, or the organization has a user with its username |

## DELETE /api/panel/org/{id}/members/{userId}

Take a console account out of an organization.

The console passes the call on to the server API with its own key and answers what it said, errors as {"error": "..."}.

Needs `org.manage_users`. `neodesk organizations member-remove` calls it. It cannot be undone.

| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
| `id` | path | string | yes | The organization's id (a UUID) |
| `userId` | path | string | yes | The console account's id, a whole number |

**204**: Done

| Error | When |
|---|---|
| 400 | The id is no whole number ("invalid user_id") or has characters a path can't take |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |
| 404 | The account is not a member of the organization |

## GET /api/panel/org/{id}/peer-credentials

List the saved device sign-ins of an organization.

The devices with a saved connect password, only those the account sees. The passwords are not in the answer. The console passes the call on to the server API with its own key and answers what it said, errors as {"error": "..."}.

Needs `org.manage_devices`. `neodesk organizations credentials` calls it.

| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
| `id` | path | string | yes | The organization's id (a UUID) |

**200**: Done (`application/json`)

| Field | Type | Required |
|---|---|---|
| `credentials` | array of [OrganizationPeerCredential](https://docs.neode.sk/development/api-reference/schemas.md#organizationpeercredential) | yes |

| Error | When |
|---|---|
| 400 | An id has characters a path can't take ("Invalid orgId") |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |

## PUT /api/panel/org/{id}/peer-credentials/{peerId}

Save the sign-in of a device in an organization.

Saves the connect password of a device the account sees, sealed. NeoDesk clients of the organization get it with the shared address book; the answer never holds it. The console passes the call on to the server API with its own key and answers what it said, errors as {"error": "..."}.

Needs `org.edit`. `neodesk organizations credential-set` calls it.

| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
| `id` | path | string | yes | The organization's id (a UUID) |
| `peerId` | path | string | yes | The device's id: 6 to 16 letters, digits, _ or - |

Request body, `application/json`:

| Field | Type | Required | What it is |
|---|---|---|---|
| `password` | string | yes | Trimmed, 1 to 128 bytes; at most 128 characters |

**200**: Done (`application/json`)

| Field | Type | Required |
|---|---|---|
| `status` | `"ok"` | yes |
| `password_set` | `true` | yes |

| Error | When |
|---|---|
| 400 | The device id or the password is not valid |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account may not do this or does not see the device |
| 503 | The server has no key to seal passwords with ("peer credential vault not configured") |

## DELETE /api/panel/org/{id}/peer-credentials/{peerId}

Delete the saved sign-in of a device in an organization.

Answers ok also when no password was saved. The console passes the call on to the server API with its own key and answers what it said, errors as {"error": "..."}.

Needs `org.edit`. `neodesk organizations credential-delete` calls it. It cannot be undone.

| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
| `id` | path | string | yes | The organization's id (a UUID) |
| `peerId` | path | string | yes | The device's id: 6 to 16 letters, digits, _ or - |

**200**: Done (`application/json`)

[OrganizationOk](https://docs.neode.sk/development/api-reference/schemas.md#organizationok).

| Error | When |
|---|---|
| 400 | The device id is not valid |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account may not do this or does not see the device |

## GET /api/panel/org/{id}/settings

Show an organization's settings.

The stored settings, the policy groups among them. The console passes the call on to the server API with its own key and answers what it said, errors as {"error": "..."}.

Needs `user.view`. `neodesk organizations settings` calls it.

| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
| `id` | path | string | yes | The organization's id (a UUID) |

**200**: Done (`application/json`)

| Field | Type | Required |
|---|---|---|
| `settings` | array of [OrganizationSetting](https://docs.neode.sk/development/api-reference/schemas.md#organizationsetting) | yes |

| Error | When |
|---|---|
| 400 | An id has characters a path can't take ("Invalid orgId") |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |

## PUT /api/panel/org/{id}/settings

Change an organization's settings.

Stores one setting. Nothing checks the key against a list: the policies have their own routes. The console passes the call on to the server API with its own key and answers what it said, errors as {"error": "..."}.

Needs `org.edit`. `neodesk organizations settings-set` calls it.

| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
| `id` | path | string | yes | The organization's id (a UUID) |

Request body, `application/json`:

| Field | Type | Required | What it is |
|---|---|---|---|
| `key` | string | yes | Not one of the retired connection_policy, allow_file_transfer, allow_clipboard and max_session_duration_min |
| `value` | string |  |  |

**200**: Done (`application/json`)

[OrganizationOk](https://docs.neode.sk/development/api-reference/schemas.md#organizationok).

| Error | When |
|---|---|
| 400 | No key, a retired key, or an id a path can't take |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |

## GET /api/panel/org/{id}/users

List an organization's users.

The sign-ins of the organization and the console accounts linked to it. The console passes the call on to the server API with its own key and answers what it said, errors as {"error": "..."}.

Needs `org.manage_users and user.view`. `neodesk organizations users` calls it.

| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
| `id` | path | string | yes | The organization's id (a UUID) |

**200**: Done (`application/json`)

| Field | Type | Required |
|---|---|---|
| `users` | array of [OrganizationUser](https://docs.neode.sk/development/api-reference/schemas.md#organizationuser) | yes |

| Error | When |
|---|---|
| 400 | An id has characters a path can't take ("Invalid orgId") |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |

## POST /api/panel/org/{id}/users

Make a user of an organization (NeoDesk Desktop sign-in).

Makes a sign-in of the organization for NeoDesk Desktop, with the role user. The console passes the call on to the server API with its own key and answers what it said, errors as {"error": "..."}.

Needs `org.manage_users`. `neodesk organizations user-create` calls it.

| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
| `id` | path | string | yes | The organization's id (a UUID) |

Request body, `application/json`:

| Field | Type | Required | What it is |
|---|---|---|---|
| `username` | string | yes | 3 to 64 characters: letters, digits and . _ @ - |
| `password` | string | yes | 8 to 128 characters; at least 8 characters, at most 128 characters |
| `display_name` | string |  |  |
| `email` | string |  |  |

**201**: Created (`application/json`)

[OrganizationUser](https://docs.neode.sk/development/api-reference/schemas.md#organizationuser).

| Error | When |
|---|---|
| 400 | The request is not valid, or an id has characters a path can't take ("Invalid orgId") |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |
| 404 | There is no such organization |
| 409 | The organization has a user with this username |

## PUT /api/panel/org/{id}/users/{uid}

Change a user of an organization.

The server API finds the user by its id alone, without checking that it belongs to the organization in the path. The console passes the call on to the server API with its own key and answers what it said, errors as {"error": "..."}.

Needs `org.manage_users`. `neodesk organizations user-set` calls it.

| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
| `id` | path | string | yes | The organization's id (a UUID) |
| `uid` | path | string | yes | The user's id (a UUID) |

Request body, `application/json`:

The fields to change. A field left out stays as it is.

| Field | Type | What it is |
|---|---|---|
| `display_name` | string |  |
| `email` | string |  |
| `password` | string | 8 to 128 characters; empty keeps the password; at most 128 characters |

**200**: Done (`application/json`)

[OrganizationUser](https://docs.neode.sk/development/api-reference/schemas.md#organizationuser).

| Error | When |
|---|---|
| 400 | The request is not valid, or an id has characters a path can't take ("Invalid orgId") |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |
| 404 | There is no user with this id |

## DELETE /api/panel/org/{id}/users/{uid}

Delete a user of an organization.

Answers 204 also for an id no user has. The server API deletes the user by its id alone, without checking that it belongs to the organization in the path. The console passes the call on to the server API with its own key and answers what it said, errors as {"error": "..."}.

Needs `org.manage_users`. `neodesk organizations user-delete` calls it. It cannot be undone.

| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
| `id` | path | string | yes | The organization's id (a UUID) |
| `uid` | path | string | yes | The user's id (a UUID) |

**204**: Deleted

| Error | When |
|---|---|
| 400 | An id has characters a path can't take ("Invalid orgId") |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |
