# Upload offline license file

Upload an offline license file to the Floating Server.

**URL**: `/api/v4/license/upload`\
**Method**: `POST`\
**Content-Type**: `multipart/form-data`\
**Accept**: `application/json`

{% hint style="warning" %}
This endpoint uses **multipart/form-data**. Do not send `Content-Type: application/json` for uploads.
{% endhint %}

### Success response

**Code**: `200 OK`

### Example request

The multipart field name depends on the server version/build. Use the field name expected by your server.

```bash
curl -X POST 'http://localhost:8080/api/v4/license/upload' \
  -H 'Accept: application/json' \
  -F '<file_field_name>=@/path/to/offline-license-file'
```


---

# 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/api-reference/license/upload-offline-license-file.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.
