# Connecting a Client

To connect a client to the Floating Server, you can register users, manage licenses, and track consumption through the API. While the API provides a flexible way to manage these tasks programmatically, the UI also offers insights and visibility into license usage and consumption.

Starting from version 1.6.0, licenses are identified by **license IDs** after being added to the floating server. Previously, the **product code** was used to address a license.

{% hint style="info" %}
From version 1.6.0 onward:

* You can include **license IDs** in the body of requests to the floating server API to specify a particular license.
* If a license ID is not provided in the request, the **most recently added license** for the given product code will be addressed.

Prior to version 1.6.0:

* Only one license was supported per product code.
* As a result, there was no need to include a license ID in API requests.
  {% endhint %}

### Registering a User

To register a new user on the Floating Server, use the API to send a POST request. The API allows you to provide details such as product code, license Id, user info, and host information.

* API Endpoint: `/register`
* Full API Documentation: [**Register user**](/floating-server/floating-server-v1/api-reference/registration/register-user.md)

### Unregistering a User

You can remove a user from the system by sending an API request to unregister them. The server will remove the user's registration for the given product.

* API Endpoint: `/unregister`
* Full API Documentation: [**Unregister user**](/floating-server/floating-server-v1/api-reference/registration/unregister-user.md)

### Unregistering all Users of a Product

To quickly remove all users registered to a product, use the `unregister/all` API endpoint. This will clear all user registrations for a specific product.

* API Endpoint: `/unregister/all`
* Full API Documentation: [**Unregister all users**](/floating-server/floating-server-v1/api-reference/registration/unregister-all-users.md)

### Borrowing a License Slot

If a user needs to "borrow" a license for use in an offline scenario, the API allows you to reserve a license slot for a user until a specific date.

* API Endpoint: `/borrow`
* Full API Documentation: [**Borrow license slot**](/floating-server/floating-server-v1/api-reference/registration/borrow-license-slot.md)

#### Client-Related Capabilities in the UI

The Floating Server's user interface also allows for easy management of client registrations, license usage, and consumption tracking without requiring API knowledge. For more information about the capabilities of the UI related to registrations, see [**Registrations**](/floating-server/floating-server-v1/user-interface/registrations.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.licensespring.com/floating-server/floating-server-v1/connecting-a-client.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
